:root {
  color-scheme: light;
  --background: #f0f0f0;
  --sidebar: #262626;
  --surface: #fff;
  --ink: #202020;
  --muted: #565656;
  --line: #ddd;
  --line-strong: #bcbcbc;
  --control-border: #909090;
  --accent: #303030;
  --accent-hover: #484848;
  --soft: #e9e9e9;
  --radius: 0.8rem;
  --shadow: 0 1px 2px rgb(0 0 0 / 5%);
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-size: 100%;
  font-synthesis: none;
  background: var(--background);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 16rem; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:enabled { cursor: pointer; }
button:disabled { opacity: 0.5; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid #595959; outline-offset: 3px; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 680; line-height: 1.15; }
h1 { font-size: clamp(2rem, 4.2vw, 2.95rem); letter-spacing: -0.045em; }
h2 { font-size: 1.32rem; letter-spacing: -0.025em; }
h3 { font-size: 1.05rem; letter-spacing: -0.012em; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 4;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.workspace { display: grid; grid-template-columns: 14rem minmax(0, 1fr); min-height: 100vh; }
.workspace.choosing-country { display: block; }
.choosing-country .sidebar, .choosing-country .topbar > :not(.language-switch) { display: none; }
.choosing-country .topbar { min-height: 3.5rem; }
.choosing-country .main { min-height: calc(100vh - 3.5rem); display: grid; place-items: center; }
.country-entry { width: min(100%, 42rem); text-align: center; }
.country-entry p { margin-top: 0.5rem; }
.country-options { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0.9rem; margin-top: 1.8rem; }
.country-choice {
  --country-symbol-size: 3.35rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.85rem;
  min-height: 10rem;
  padding: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 1.25rem;
  font-weight: 680;
  text-decoration: none;
}
.country-choice:hover { background: #f8f8f8; border-color: var(--control-border); }
.country-flag { font: var(--country-symbol-size)/1.2 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.world-icon {
  position: relative;
  width: calc(var(--country-symbol-size) * 0.84);
  height: calc(var(--country-symbol-size) * 0.84);
  margin-block: calc(var(--country-symbol-size) * 0.18);
  border: 2px solid currentColor;
  border-radius: 50%;
  color: var(--muted);
}
.world-icon::before,
.world-icon::after { content: ""; position: absolute; border-radius: 50%; }
.world-icon::before { inset: -2px 24%; border-inline: 1.5px solid currentColor; }
.world-icon::after { inset: 23% -2px; border-block: 1.5px solid currentColor; }
.global-overview {
  padding: clamp(0.9rem, 3vw, 1.25rem);
  text-align: start;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.global-overview-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.65rem; }
.global-overview-metrics > div {
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: #f8f8f8;
  overflow-wrap: anywhere;
}
.global-overview-metrics dt { min-height: 2.5em; color: var(--muted); font-size: 0.875rem; font-weight: 620; line-height: 1.25; }
.global-overview-metrics dd {
  display: grid;
  row-gap: 0.15rem;
  margin-top: 0.3rem;
  font-size: 1.1rem;
  font-weight: 680;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.global-report-links { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 0.85rem; }
.home-account-links, .account-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.55rem; }
.home-account-links { margin-top: 0.75rem; }
.hosting-renewal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 1rem;
  text-align: start;
}
.hosting-renewal h2 { font-size: 1.05rem; }
.hosting-renewal-info p { margin-top: 0.15rem; }
.hosting-renewal-dialog { padding: 1.4rem; }
.hosting-renewal-dialog form { display: grid; gap: 0.85rem; margin-top: 0.85rem; }
.hosting-code {
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: var(--soft);
  font-family: ui-monospace, monospace;
  overflow-wrap: anywhere;
}
.account-links:empty, .environment:empty { display: none; }
.global-report .navigation { display: none; }
.workspace-content { min-width: 0; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1.55rem 1rem;
  background: var(--sidebar);
  color: #fff;
  border-right: 1px solid #151515;
}
.sidebar :focus-visible { outline-color: #e0e0e0; }
.brand { display: flex; align-items: center; gap: 0.7rem; padding-inline: 0.35rem; }
.brand-mark {
  display: flex;
  gap: 0.19rem;
  align-items: flex-end;
  justify-content: center;
  flex: 0 0 2.6rem;
  height: 2.6rem;
  padding-bottom: 0.72rem;
  background: #424242;
  border: 1px solid #626262;
  border-radius: 0.65rem;
  box-shadow: 0 1px 3px rgb(0 0 0 / 20%);
}
.brand-mark i { width: 0.25rem; border-radius: 1px; background: #dedede; height: 0.66rem; }
.brand-mark i:nth-child(2) { height: 0.93rem; }
.brand-mark i:nth-child(3) { height: 1.18rem; }
.brand-copy { min-width: 0; display: grid; align-content: center; }
.brand-name { font-weight: 720; font-size: 1.15rem; letter-spacing: -0.034em; line-height: 1.22; }
.brand-caption { color: #c4c4c4; font-size: 0.8rem; line-height: 1.4; }

.navigation { display: grid; gap: 0.28rem; margin-top: 2.1rem; }
.navigation button {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
  min-height: 2.7rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.6rem;
  background: transparent;
  text-align: left;
  font-size: 0.925rem;
  font-weight: 620;
  color: #d4d4d4;
}
.navigation button:hover { background: #3c3c3c; color: #fff; }
.navigation button[aria-current="page"], .navigation button.active, .navigation button[aria-selected="true"] {
  background: #4b4b4b;
  color: #fff;
  border-color: #707070;
}
.nav-icon { display: inline-block; position: relative; flex: 0 0 1.02rem; width: 1.02rem; height: 1.02rem; }
.nav-icon::before, .nav-icon::after { content: ""; position: absolute; }
.nav-operations::before { inset: 0.04rem 0.12rem; border: 1.4px solid currentColor; border-radius: 0.12rem; }
.nav-operations::after { height: 1px; background: currentColor; left: 0.3rem; right: 0.3rem; top: 0.35rem; box-shadow: 0 0.22rem currentColor; }
.nav-contacts::before { inset: 0.04rem 0.32rem auto; height: 0.38rem; border: 1.4px solid currentColor; border-radius: 50%; }
.nav-contacts::after { inset: 0.52rem 0.12rem 0.06rem; border: 1.4px solid currentColor; border-radius: 0.4rem 0.4rem 0.12rem 0.12rem; }
.nav-schedule::before { inset: 0.17rem 0.04rem 0.04rem; border: 1.4px solid currentColor; border-radius: 0.14rem; }
.nav-schedule::after { inset: 0.44rem 0.1rem auto; height: 1px; background: currentColor; }
.nav-credits::before { inset: 0.15rem 0; border: 1.4px solid currentColor; border-radius: 0.17rem; }
.nav-credits::after { height: 1px; background: currentColor; left: 0.07rem; right: 0.07rem; top: 0.43rem; }
.nav-activity::before { inset: 0.04rem; border: 1.4px solid currentColor; border-radius: 50%; }
.nav-activity::after { height: 0.34rem; width: 0.25rem; top: 0.2rem; left: 0.47rem; border: solid currentColor; border-width: 0 0 1px 1px; }
.nav-conversions::before { inset: 0.14rem 0.06rem; border-block: 1.4px solid currentColor; }
.nav-conversions::after { height: 0.32rem; width: 0.32rem; top: 0; right: 0.1rem; border: solid currentColor; border-width: 1.4px 1.4px 0 0; transform: rotate(45deg); }
.nav-transports::before { inset: 0.14rem 0.05rem 0.26rem; border: 1.4px solid currentColor; border-radius: 0.12rem 0.26rem 0.12rem 0.12rem; }
.nav-transports::after { width: 0.18rem; height: 0.18rem; left: 0.2rem; bottom: 0.09rem; border-radius: 50%; background: currentColor; box-shadow: 0.47rem 0 currentColor; }
.nav-reports::before { inset: 0.03rem 0.05rem 0.08rem; border: solid currentColor; border-width: 0 0 1.4px 1.4px; }
.nav-reports::after { width: 0.13rem; height: 0.29rem; bottom: 0.2rem; left: 0.29rem; background: currentColor; box-shadow: 0.23rem -0.13rem currentColor, 0.46rem -0.35rem currentColor; }
.nav-statistics::before { inset: 0.05rem; border: 1.4px solid currentColor; border-radius: 50%; }
.nav-statistics::after { top: 0.05rem; right: 0.07rem; width: 0.47rem; height: 0.48rem; border: solid currentColor; border-width: 0 0 1.4px 1.4px; }

.topbar {
  min-height: 4.15rem;
  padding: 0.65rem clamp(1rem, 3.6vw, 2.75rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.language-switch select { appearance: auto; cursor: pointer; }
.environment {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.6rem;
  border: 1px solid #ddd;
  border-radius: 0.45rem;
  background: #e9e9e9;
  color: var(--accent);
  white-space: nowrap;
  font-weight: 650;
  font-size: 0.8rem;
}
.environment::before { content: ""; width: 0.36rem; height: 0.36rem; border-radius: 50%; background: #666; }
.identity { color: var(--muted); font-size: 0.875rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.identity:empty { display: none; }
.main { width: min(100%, 92rem); margin-inline: auto; padding: 2.35rem clamp(1rem, 3.6vw, 2.75rem) 4rem; }
.main:focus { outline: none; }
#app { display: grid; gap: 1.35rem; min-width: 0; }

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem 1.5rem;
  padding-bottom: 0.3rem;
}
.page-header p { margin-top: 0.48rem; }
.eyebrow { font-size: 0.83rem; font-weight: 670; color: var(--accent); margin-bottom: 0.42rem; }
.muted { color: var(--muted); }
.subtle { color: var(--muted); font-size: 0.875rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-height: 2.5rem;
  padding: 0.52rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.55rem;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.925rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.button:is(:hover, :focus-visible) { background: #f3f3f3; }
.button.primary, .button-primary { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: var(--shadow); }
.button.primary:is(:hover, :focus-visible), .button-primary:is(:hover, :focus-visible) { background: var(--accent-hover); border-color: var(--accent-hover); }
.button.quiet, .button-quiet { background: transparent; border-color: transparent; color: var(--accent); }
.button.quiet:is(:hover, :focus-visible), .button-quiet:is(:hover, :focus-visible) { background: var(--soft); }
.button.small { min-height: 2rem; padding: 0.36rem 0.66rem; font-size: 0.875rem; }
.link-button, .table-link {
  background: transparent;
  padding: 0;
  border: 0;
  color: var(--accent);
  font-weight: 675;
  text-decoration: underline;
  text-decoration-color: #777;
  text-underline-offset: 0.2rem;
}
.link-button:hover, .table-link:hover { color: #202020; }
.record-link { color: var(--accent); font-weight: 700; text-underline-offset: 0.18rem; white-space: nowrap; }
.record-link:hover { color: #202020; }
.cell-secondary { display: block; margin-top: 0.14rem; font-size: 0.82rem; color: var(--muted); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.48rem; color: var(--muted); font-size: 0.875rem; margin-bottom: 0.9rem; }
.breadcrumb a { color: var(--accent); }
.demo-callout {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  border: 1px solid #bcbcbc;
  border-radius: var(--radius);
  background: #f8f8f8;
  padding: 0.8rem 1rem;
}
.demo-callout span:first-child { flex: 1 1 20rem; }
.demo-callout .muted { font-size: 0.925rem; }
.demo-callout .button { text-decoration: none; }
.check-field { display: flex; align-items: baseline; gap: 0.55rem; font-size: 0.925rem; }
.check-field input { flex: none; }
.form-hint { color: var(--muted); font-size: 0.925rem; }
.gold-fix-preview {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--soft);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.gold-fix-preview output { font-weight: 670; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 0.88rem; }
.metric, .panel, .detail-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.metric { display: grid; align-content: start; gap: 0.22rem; padding: 1.05rem 1.16rem 1rem; }
.metric .metric-label, .metric .label { color: var(--muted); font-size: 0.875rem; font-weight: 620; }
.metric :is(.metric-value, .value, strong) { line-height: 1.12; letter-spacing: -0.043em; font-weight: 690; font-size: clamp(1.6rem, 3vw, 2.2rem); font-variant-numeric: tabular-nums; }
.metric .metric-note { color: var(--muted); font-size: 0.875rem; }

.coverage-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.25rem), 1fr));
  gap: 0.65rem;
  padding: 0 1.2rem 1.1rem;
}
.coverage-summary .metric {
  background: #f8f8f8;
  box-shadow: none;
  padding: 0.8rem 0.85rem;
}
.coverage-summary .metric-value { font-size: clamp(1.35rem, 3vw, 1.8rem); }
.coverage-warning, .coverage-note { margin: 0 1.2rem 0.95rem; }
.coverage-warning {
  padding: 0.65rem 0.8rem;
  border-left: 3px solid var(--accent);
  border-radius: 0.25rem;
  background: var(--soft);
}
.coverage-note { color: var(--muted); font-size: 0.875rem; }
.coverage-row-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end; }

.panel-header, .toolbar { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 1rem; padding: 1.1rem 1.2rem; }
.panel-header + .toolbar { padding-top: 0; }
.panel-header p { margin-top: 0.3rem; }
.panel-body { padding: 1.18rem; }
.schedule-filter-fields { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.schedule-filter-fields .field { flex: 0 1 12rem; min-width: min(100%, 10.75rem); }
.schedule-filter-fields .field:has([name="name"]) { flex: 1 1 15rem; }
.schedule-results { display: grid; gap: 1.35rem; min-width: 0; }
.schedule-summary .metric-value { overflow-wrap: anywhere; font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.schedule-table :is(.schedule-amount, time) { white-space: nowrap; }
.report-filter-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.65rem;
  padding-bottom: 0.7rem;
}
.report-filter-fields .field { flex: 1 1 8.5rem; min-width: min(100%, 8.5rem); }
.report-filter-fields .field:has([name="contact"]) { flex-basis: 13rem; }
.report-filter-hint { padding: 0 1.18rem 0.85rem; }
.report-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.report-metric { position: relative; text-align: left; }
.report-metric .metric-label { padding-right: 0.9rem; }
.report-metric .metric-note { margin-top: 0.18rem; }
.report-metric::after {
  content: "";
  position: absolute;
  top: 1.25rem;
  right: 1rem;
  width: 0.43rem;
  height: 0.43rem;
  color: var(--muted);
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.report-metric:hover, .report-metric[aria-expanded="true"] { border-color: var(--control-border); background: #f8f8f8; }
.report-metric[aria-expanded="true"]::after { transform: translateY(0.18rem) rotate(225deg); }
.report-metric-values { display: grid; gap: 0.2rem; margin-block: 0.16rem; overflow-wrap: anywhere; }
.report-metric-values .metric-value { font-size: clamp(1.42rem, 2.3vw, 1.95rem); }
:is(.report-section, .report-detail) .data-table th { white-space: normal; line-height: 1.25; }
:is(.report-section, .report-detail) .data-table :is(th, td) { padding-inline: 0.62rem; }
:is(.report-section, .report-detail) .data-table :is(th, td):first-child { padding-left: 1.18rem; }
:is(.report-section, .report-detail) .data-table :is(th, td):last-child { padding-right: 1.18rem; }
:is(.report-section, .report-detail) .data-table td.align-right { white-space: nowrap; }
.income-statement { width: min(100%, 56rem); }
.income-statement-table tbody th {
  border: 0;
  border-top: 1px solid #e9e9e9;
  background: inherit;
  color: var(--ink);
  font-size: 0.925rem;
  font-weight: 580;
  white-space: normal;
}
.income-statement-table tbody tr:first-child th { border-top: 0; }
.income-statement-table thead th:first-child { width: 45%; }
.income-statement-table td.align-right { white-space: nowrap; }
.income-statement-table tbody .income-statement-subtotal { background: #f1f1f1; font-weight: 670; }
.income-statement-table tbody .income-statement-total { background: #e4e4e4; font-weight: 720; }
.income-statement-table :is(.income-statement-subtotal, .income-statement-total) :is(th, td) { font-weight: inherit; }
.income-statement-table .income-statement-total :is(th, td) { border-top: 1px solid var(--line-strong); }
.income-statement-table .income-statement-total td { font-size: 1.13rem; }
.income-statement-table .income-statement-total .cell-secondary { font-weight: 580; }
.income-statement-footer { display: grid; gap: 0.78rem; }
.income-statement-notes { display: grid; gap: 0.35rem; }
.income-statement-footer .button[aria-expanded="true"] { border-color: var(--control-border); background: var(--soft); }
.contacts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); align-items: start; gap: 0.88rem; }
.payment-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.payment-correction-history { margin-top: 0.32rem; }
.payment-correction-history summary { cursor: pointer; color: var(--muted); font-weight: 620; }
.payment-correction-history .cell-secondary { margin-top: 0.18rem; overflow-wrap: anywhere; }
.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li { padding: 0.75rem 1.2rem; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.contact-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.45rem 0.9rem; }
.contact-name { flex: 1 1 8rem; min-width: 0; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.contact-archive { border-top: 1px solid var(--line); }
.contact-archive summary {
  padding: 0.7rem 1.2rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 650;
  cursor: pointer;
}
.toolbar { align-items: end; }
.toolbar .field { flex: 0 1 auto; }
.toolbar .field:first-child { flex: 1 1 12rem; }
.toolbar label { font-size: 0.875rem; }
.toolbar .filters { display: flex; align-items: end; flex-wrap: wrap; gap: 0.7rem; }
.table-wrap { max-width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.925rem; font-variant-numeric: tabular-nums; }
.data-table :is(th, td) { padding: 0.78rem 0.85rem; vertical-align: middle; }
.data-table th:first-child, .data-table td:first-child { padding-left: 1.2rem; }
.data-table th:last-child, .data-table td:last-child { padding-right: 1.2rem; }
.data-table th { background: #ededed; border-block: 1px solid var(--line); font-weight: 650; font-size: 0.875rem; color: #565656; white-space: nowrap; }
.data-table td { border-top: 1px solid #e9e9e9; }
.data-table tbody tr:first-child td { border-top: 0; }
.data-table tbody tr:hover { background: #f7f7f7; }
.data-table tbody tr:last-child td:first-child { border-bottom-left-radius: var(--radius); }
.data-table tbody tr:last-child td:last-child { border-bottom-right-radius: var(--radius); }
.data-table :is(th, td).align-right, .align-right { text-align: right; }
.coverage-panel .data-table :is(th, td) { padding-inline: 0.55rem; }
.coverage-panel .data-table :is(th, td):first-child { padding-inline-start: 1.2rem; }
.coverage-panel .data-table :is(th, td):last-child { padding-inline-end: 1.2rem; }
.coverage-panel .data-table td { overflow-wrap: anywhere; }
.coverage-panel .data-table th { white-space: normal; }
.coverage-row-actions .button { min-height: 2rem; padding: 0.36rem 0.6rem; font-size: 0.875rem; }
.number, .nowrap { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cell-title { display: block; color: var(--ink); font-weight: 650; }
.cell-note { display: block; color: var(--muted); font-size: 0.85rem; }

.badge {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  width: max-content;
  max-width: 100%;
  padding: 0.22rem 0.58rem;
  line-height: 1.3;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #f5f5f5;
  font-size: 0.875rem;
  font-weight: 610;
}
.badge.pending { color: var(--accent); background: var(--soft); border-color: #c7c7c7; }
.badge.settlement { color: var(--ink); background: #d6d6d6; border-color: #acacac; }
.badge.complete { color: #fff; background: var(--accent); border-color: var(--accent); }
.status-stack { display: grid; justify-items: start; gap: 0.32rem; }

.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 0.9rem; align-items: start; }
.detail-card { padding: 1.18rem; display: grid; align-content: start; gap: 0.88rem; }
.detail-card .actions { margin-top: 0.15rem; }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0.55rem 0.85rem; }
.kv dt, .kv > .label { color: var(--muted); }
.kv dd, .kv > .value { margin: 0; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kv > div { display: contents; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.55rem; }
.actions.end { justify-content: flex-end; }
.empty, .loading { padding: 2.2rem 1.2rem; text-align: center; color: var(--muted); }
.empty p { margin-top: 0.45rem; }
.empty .actions { justify-content: center; margin-top: 0.85rem; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.86rem; }
.field { display: grid; gap: 0.3rem; font-size: 0.925rem; min-width: 0; }
label.field, .field > label, .field > span:first-child { color: #303030; font-weight: 630; }
.field-full, .full, .span-2 { grid-column: 1 / -1; }
.field input:not([type="checkbox"], [type="radio"]), .field select, .field textarea,
.toolbar input:not([type="checkbox"], [type="radio"]), .toolbar select {
  display: block;
  width: 100%;
  min-height: 2.56rem;
  min-width: 0;
  padding: 0.48rem 0.67rem;
  background: var(--surface);
  border: 1px solid var(--control-border);
  border-radius: 0.5rem;
  color: var(--ink);
  font-size: 1rem;
}
.field select, .toolbar select {
  appearance: none;
  padding-right: 2rem;
  background-image: linear-gradient(45deg, transparent 50%, #666 50%), linear-gradient(135deg, #666 50%, transparent 50%);
  background-position: calc(100% - 1rem) 52%, calc(100% - 0.7rem) 52%;
  background-size: 0.31rem 0.31rem;
  background-repeat: no-repeat;
}
.field input::placeholder, .toolbar input::placeholder { color: #636363; }
.field textarea { resize: vertical; }
.checkbox, .check, .check-row { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.925rem; }
:is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--accent); inline-size: 1rem; block-size: 1rem; margin: 0.21rem 0 0; }
.help, .field-help { color: var(--muted); font-size: 0.875rem; font-weight: 450; }
.form-error, .error { color: var(--ink); font-weight: 650; }
.form-error { padding: 0.45rem 0.7rem; border-left: 3px solid var(--accent); background: var(--soft); }

dialog {
  width: min(38rem, calc(100% - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  overflow-y: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 1.2rem 5rem rgb(0 0 0 / 20%);
}
dialog::backdrop { background: rgb(0 0 0 / 40%); }
#dialog-content { padding: 1.4rem; }
#dialog-content > :is(h2, .dialog-header) { margin-bottom: 0.75rem; }
#dialog-content :is(.dialog-header p, h2 + p) { margin-bottom: 0.8rem; }
#dialog-content form { display: grid; gap: 1rem; }
#dialog-content .actions { justify-content: flex-end; padding-top: 0.28rem; }
.notice {
  position: fixed;
  z-index: 2;
  right: 1.25rem;
  bottom: 1.25rem;
  max-width: min(29rem, calc(100% - 2.5rem));
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  border: 1px solid #bcbcbc;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 0.55rem 1.55rem rgb(0 0 0 / 13%);
  font-weight: 620;
}
.notice:empty, [hidden] { display: none !important; }
.notice:is(.error, [data-kind="error"], [data-type="error"]) { background: #e9e9e9; color: var(--ink); border-color: #303030; }

@media (max-width: 67rem) {
  .report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 56rem) {
  .workspace { grid-template-columns: 11.6rem minmax(0, 1fr); }
  .sidebar { padding-inline: 0.72rem; }
  .main { padding-top: 1.8rem; }
  .global-overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 44rem) {
  .workspace { display: block; }
  .sidebar { position: static; height: auto; padding: 0.85rem 1rem 0.6rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0; }
  .navigation { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); margin-top: 0.75rem; gap: 0.3rem; }
  .navigation button { justify-content: center; gap: 0.38rem; padding-inline: 0.55rem; }
  .topbar { min-height: 2.65rem; padding-block: 0.38rem; }
  .main { padding-top: 1.25rem; }
  #app { gap: 1rem; }
  .schedule-results { gap: 1rem; }
  .page-header h1 { font-size: 2.05rem; }
  .panel-header, .toolbar, .panel-body, .detail-card { padding: 0.92rem; }
  .report-filter-fields { padding-bottom: 0.65rem; }
  .report-filter-hint { padding-inline: 0.92rem; }
  .contact-list li { padding-inline: 0.92rem; }
  .data-table :is(th, td) { padding-inline: 0.68rem; }
  .data-table th:first-child, .data-table td:first-child { padding-left: 0.92rem; }
  .data-table th:last-child, .data-table td:last-child { padding-right: 0.92rem; }
}

@media (max-width: 36rem) {
  .country-options { gap: 0.55rem; }
  .country-choice { --country-symbol-size: 2.6rem; gap: 0.55rem; min-height: 7.6rem; padding: 0.75rem 0.35rem; font-size: 1.045rem; }
}

@media (max-width: 28rem) {
  .navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { flex-wrap: wrap; gap: 0.45rem; }
  .navigation button { font-size: 0.88rem; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { padding: 0.8rem; }
  .report-metric::after { top: 0.99rem; right: 0.68rem; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .toolbar .field { flex: 1 1 7rem; }
  #dialog-content { padding: 1rem; }
}

@media (max-width: 22rem) {
  .country-options { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .country-choice:only-child, .country-choice:nth-child(3) { grid-column: 1 / -1; }
}

@media (max-width: 19rem) {
  .global-overview-metrics { grid-template-columns: minmax(0, 1fr); }
  .global-overview-metrics dt { min-height: 0; }
}
