@font-face {
  font-family: Inter;
  src: url("/static/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}
:root {
  --black: #111111;
  --white: #ffffff;
  --bg: #f7f7f7;
  --ink: #111111;
  --muted: #555555;
  --paper: #f7f7f7;
  --card: #ffffff;
  --line: #e5e5e5;
  --soft: #f7f7f7;
  --wash: #f7f7f7;
  --accent: #111111;
  --accent-ink: #ffffff;
  --accent-deep: #000000;
  --header-bg: #f7f7f7;
  --header-ink: #111111;
  --header-muted: #5c5c5c;
  --header-line: #e5e5e5;
  --header-hover: rgba(0, 0, 0, 0.06);
  --ok: #084536;
  --ok-wash: #e7f0ed;
  --warn: #5c4300;
  --warn-wash: #fff4d6;
  --bad: #b42318;
  --bad-wash: #fdecea;
  --clay: var(--bad);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 24px rgba(0, 0, 0, 0.05);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.04), 0 16px 32px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  color-scheme: light;
  accent-color: #111111;
}
[data-theme="light"] {
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #000000;
  --ink: #ffffff;
  --muted: #a8a8a8;
  --paper: #000000;
  --card: #111111;
  --line: #262626;
  --soft: #111111;
  --wash: #111111;
  --accent: #ffffff;
  --accent-ink: #111111;
  --accent-deep: #e6e6e6;
  --header-bg: #000000;
  --header-ink: #ffffff;
  --header-muted: rgba(255, 255, 255, 0.78);
  --header-line: #2e2e2e;
  --header-hover: rgba(255, 255, 255, 0.08);
  --ok: #13a581;
  --ok-wash: #0b2a22;
  --warn: #f5d27a;
  --warn-wash: #2b2208;
  --bad: #ff8a80;
  --bad-wash: #2c1212;
  --clay: var(--bad);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 24px rgba(0, 0, 0, 0.45);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.4), 0 16px 32px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
  accent-color: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --ink: #ffffff;
    --muted: #a8a8a8;
    --paper: #000000;
    --card: #111111;
    --line: #262626;
    --soft: #111111;
    --wash: #111111;
    --accent: #ffffff;
    --accent-ink: #111111;
    --accent-deep: #e6e6e6;
    --header-bg: #000000;
    --header-ink: #ffffff;
    --header-muted: rgba(255, 255, 255, 0.78);
    --header-line: #2e2e2e;
    --header-hover: rgba(255, 255, 255, 0.08);
    --ok: #13a581;
    --ok-wash: #0b2a22;
    --warn: #f5d27a;
    --warn-wash: #2b2208;
    --bad: #ff8a80;
    --bad-wash: #2c1212;
    --clay: var(--bad);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 24px rgba(0, 0, 0, 0.45);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.4), 0 16px 32px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
    accent-color: #ffffff;
  }
}
:root {
  font-family: Inter;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --text-caption: 13px;
  --text-sm: 15px;
  --text-md: 16px;
  --text-lg: 20px;
  --text-xl: 28px;
  --text-2xl: 36px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); overflow-x: clip; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
  word-break: normal;
  overflow-x: clip;
}
a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.15em; }
a:hover, a:focus { text-decoration: underline; text-underline-offset: 0.15em; }
a.brand:hover,
.top a:hover,
a.home-tile:hover,
a.download:hover { color: inherit; text-decoration: none; }
a.button:hover { color: var(--accent-ink); text-decoration: none; }
a.secondary:hover,
a.button.secondary:hover,
button.secondary:hover { color: var(--ink); text-decoration: none; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 8px; }
h1 { font-size: 1.85rem; }
p { margin: 0 0 12px; }
.wrap { width: min(1280px, calc(100% - 80px)); margin: 0 auto; min-width: 0; }
.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  transform: translateY(calc(-100% - 16px));
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 30;
}
.skip:focus,
.skip:focus-visible {
  transform: none;
  color: var(--accent-ink);
}

.top-stack {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
}
.top {
  background: var(--header-bg);
  color: var(--header-ink);
  border-bottom: 1px solid var(--header-line);
  position: relative;
  padding-top: env(safe-area-inset-top);
  box-shadow: none;
}
.bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  min-height: 76px;
}
.brand { color: var(--header-ink); text-decoration: none; display: flex; align-items: center; gap: 12px; min-width: 0; flex: 0 0 auto; }
.wordmark { display: block; color: var(--accent); line-height: 0; }
.wordmark svg { height: 30px; width: auto; display: block; fill: currentColor; }
.wordmark svg path { fill: currentColor; }
.wordmark svg path.mark { fill: var(--ok); }
.brand-tag { font-size: 13px; line-height: 1.2; color: var(--header-muted); font-weight: 550; max-width: 11rem; }
.tabs { display: flex; align-items: center; gap: 4px; margin-right: auto; min-width: 0; }
.free-week-line {
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 550;
  color: var(--header-muted);
  white-space: nowrap;
}
.top .tabs a {
  color: var(--header-muted);
  text-decoration: none;
  font-size: 16px;
  font-weight: 650;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  flex: 0 0 auto;
}
.top .tabs a:hover { background: var(--header-hover); color: var(--header-ink); text-decoration: none; }
.top .tabs a[aria-current="page"] {
  color: var(--header-ink);
  background: transparent;
  box-shadow: none;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.28em;
}
.session { display: flex; align-items: center; gap: 14px; margin-left: auto; flex: 0 0 auto; }
.session .who-name { color: var(--header-ink); font-weight: 650; font-size: 16px; }
.session .quiet-link { color: var(--header-muted); font-size: 14px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.session .quiet-link:hover { color: var(--header-ink); text-decoration: underline; }
.top :focus-visible { outline: 2px solid var(--header-ink); outline-offset: 3px; }
.top .signout {
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  box-shadow: none;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
}
.top .signout:hover { background: var(--accent-deep); color: var(--accent-ink); }
.footline { margin: 0; font-size: 0.72rem; color: var(--muted); }
.footline a { color: var(--accent); }
.footline a:hover { color: var(--accent); }
.stamp { letter-spacing: 0.01em; }
.hero { padding: 28px 0 6px; }
.hero h2 { font-size: 1.85rem; letter-spacing: -0.03em; margin: 0 0 10px; max-width: 18em; color: var(--ink); }
.hero-sub { margin: 0 0 8px; max-width: 40rem; font-size: 1.125rem; line-height: 1.5; color: var(--ink); }
.hero-assure { margin: 0; font-size: 1rem; color: var(--muted); }
nav { display: flex; align-items: center; gap: 4px; }
nav > a, .more > summary {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  list-style: none;
  cursor: pointer;
}
nav > a:hover, .more > summary:hover { background: var(--soft); }
.more { position: relative; }
.more > summary::-webkit-details-marker { display: none; }
.more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  min-width: 180px;
  padding: 6px;
  display: grid;
}
.more-menu a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
}
.more-menu a:hover { background: var(--paper); }
.who { font-size: 0.82rem; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.who-name { color: var(--ink); font-weight: 600; }
.who form { display: inline; }
.who button {
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 8px 0;
  min-height: 44px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.banner { background: var(--warn-wash); color: var(--warn); border-bottom: 1px solid var(--line); }
.banner .wrap, .notice .wrap { padding: 8px 0; font-size: 0.82rem; line-height: 1.35; }
.notice { color: var(--muted); }

main { padding: 20px 0 12px; }
.grid { display: grid; gap: 16px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.card, .panel, .empty {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.empty { border-style: solid; }
.card .label { color: var(--muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.card .figure { font-size: 1.7rem; font-weight: 600; letter-spacing: -0.04em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.missing { color: var(--warn); font-weight: 650; }
.ok { color: var(--ok); font-weight: 650; }
.bad { color: var(--bad); font-weight: 650; }

table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; min-width: 0; }
.amount, td.amount, td.amount summary { white-space: nowrap; font-variant-numeric: tabular-nums; }
.exception-cards { display: none; }
.exception-card {
  display: grid;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.exception-card h3 { margin: 0; font-size: 1.05rem; }
.exception-who { margin: 0; font-weight: 650; }
.exception-card .amount { margin: 0; font-size: 1.4rem; font-weight: 600; }
.exception-card .button { width: 100%; }
.source-disclosure summary { min-height: 44px; display: flex; align-items: center; font-weight: 650; cursor: pointer; }
.source-disclosure p { overflow-wrap: anywhere; }

form.stack, .stack { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: var(--text-sm); font-weight: 600; color: var(--muted); }
input, select, textarea {
  font: inherit;
  font-weight: 500;
  font-size: var(--text-md);
  color: var(--ink);
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  width: 100%;
  height: 44px;
  min-height: 44px;
  line-height: 1.2;
}
textarea { height: auto; min-height: 88px; padding: 12px 14px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input[type="radio"], input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  min-height: 0;
  min-width: 0;
  padding: 0;
  accent-color: var(--accent);
  flex: 0 0 auto;
}
label:has(> input[type="radio"]),
label:has(> input[type="checkbox"]) {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 550;
}
input:disabled, select:disabled, textarea:disabled {
  color: var(--muted);
  background: var(--soft);
  border-color: var(--line);
  opacity: 1;
}
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--bad);
  background: var(--bad-wash);
}
button, .button {
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  height: 44px;
  min-height: 44px;
  font: inherit;
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}
button:hover:not(:disabled):not(.secondary):not(.check-ok):not(.password-toggle):not(.text-copy):not(.amount-tap):not(.danger):not(.quiet),
a.button:hover:not(.secondary):not(.quiet) {
  background: var(--accent-deep);
  color: var(--accent-ink);
  text-decoration: none;
}
button:focus-visible, .button:focus-visible, a.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
button.secondary, a.secondary, .button.secondary {
  background: var(--card);
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
}
button:disabled, .button:disabled {
  opacity: 1;
  background: var(--line);
  color: var(--muted);
}
button.secondary:hover, a.secondary:hover, .button.secondary:hover {
  background: var(--soft);
  color: var(--ink);
  border-color: var(--ink);
}
button.quiet, a.quiet, .button.quiet {
  background: transparent;
  color: var(--ink);
  border: 0;
  box-shadow: none;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  min-height: 44px;
  height: auto;
  padding: 8px 12px;
}
button.quiet:hover, a.quiet:hover, .button.quiet:hover {
  background: var(--soft);
  color: var(--ink);
}
button.danger { background: var(--clay); }
button:disabled { cursor: not-allowed; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.row > * { flex: 1 1 180px; }
.error {
  background: var(--bad-wash);
  color: var(--bad);
  border: 1px solid var(--bad);
  border-radius: 12px;
  padding: 12px 14px;
}
.status {
  background: var(--soft);
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
}
.steps { display: grid; gap: 8px; padding-left: 18px; margin: 0; }
.tag {
  display: inline-block;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--soft);
  color: var(--accent-deep);
  font-size: 0.75rem;
  font-weight: 700;
}
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; }
footer { color: var(--muted); font-size: 0.82rem; padding: 4px 0 calc(12px + env(safe-area-inset-bottom)); }
.progress { height: 6px; background: var(--soft); border-radius: 99px; overflow: hidden; display: none; }
.progress > div { height: 100%; width: 0; background: var(--accent); }
.wait { margin: 0; }

.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 22px; }
.flow a {
  display: flex; align-items: center; gap: 8px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 8px 10px; color: var(--ink); font-weight: 600; font-size: 0.88rem; min-height: 44px;
}
.flow a span {
  width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--soft); color: var(--accent-deep); font-size: 0.8rem; flex: 0 0 auto;
}
.flow a[aria-current="step"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.flow a[aria-current="step"] span { background: var(--card); color: var(--ink); }
.kind { display: inline-block; border-radius: 999px; padding: 2px 8px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.kind-unmatched { background: var(--warn-wash); color: var(--warn); }
.kind-ambiguous { background: var(--bad-wash); color: var(--bad); }
.kind-conflicting { background: var(--soft); color: var(--accent-deep); }
.kind-built { background: var(--ok-wash); color: var(--ok); }
.kind-idea { background: var(--soft); color: var(--muted); }
.file-cards { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 16px; }
.downloads { display: grid; gap: 10px; }
.download {
  display: grid; gap: 4px; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--card);
}
.download:hover { border-color: var(--accent); }
.download strong { color: var(--ink); }
.muted { color: var(--muted); }
details.why { margin: 0; }
details.why summary {
  min-height: 44px; display: flex; align-items: center; cursor: pointer; list-style: none;
  font-variant-numeric: tabular-nums; font-weight: 600;
}
details.why summary::-webkit-details-marker { display: none; }
.card details.why summary { font-size: 1.7rem; letter-spacing: -0.04em; margin-top: 6px; }
.why-body { margin: 4px 0 8px; padding: 12px; background: var(--paper); border-radius: 12px; font-size: 0.88rem; font-weight: 450; }
.why-title { font-weight: 700; margin-bottom: 6px; }
.sources { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 8px; }
.sources .muted { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hp, .hp label, .hp input {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hp { pointer-events: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.desk-wrap { width: min(1280px, calc(100% - 80px)); }
.carrier-name { color: var(--muted); font-weight: 650; font-size: 0.92rem; white-space: nowrap; }
.week-select select {
  width: auto; min-height: 40px; padding: 8px 12px; border-radius: 999px; background: var(--card);
  font-weight: 600; color: var(--ink);
}
.user-menu { position: relative; }
.user-menu > summary {
  list-style: none; cursor: pointer; font-weight: 650; padding: 8px 12px; border-radius: 999px;
  min-height: 40px; display: flex; align-items: center;
}
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover { background: var(--soft); }
.user-menu .more-menu { min-width: 260px; max-height: 70vh; overflow: auto; }
.user-menu .more-menu button { width: 100%; margin-top: 4px; }
.menu-label { margin: 8px 12px 0; color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.menu-files { list-style: none; margin: 4px 0 8px; padding: 0 12px; display: grid; gap: 4px; color: var(--muted); font-size: 0.82rem; }
.menu-note { margin: 4px 12px 8px; color: var(--muted); font-size: 1rem; }
.menu-form, .menu-practice { padding: 8px 12px 4px; display: grid; gap: 8px; }
.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 8px 14px;
  font-size: 0.85rem; font-weight: 600; z-index: 50; box-shadow: var(--shadow);
}
.intake { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.72fr); gap: 16px; align-items: stretch; }
.drop-hit {
  min-height: 152px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; border-radius: 18px; margin: 0; padding: 18px 28px;
}
.drop-mark {
  width: 44px; height: 44px; border-radius: 14px; background: var(--wash); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.drop-hint { color: var(--muted); font-size: 1rem; font-weight: 500; max-width: 36rem; line-height: 1.5; }
.drop.uploading { border-style: solid; }
.checklist {
  list-style: none; margin: 0; padding: 6px 18px; background: var(--wash); border: 1px solid var(--accent);
  border-radius: 20px; box-shadow: var(--shadow); display: grid; align-content: center; gap: 0;
}
.checklist li { display: flex; align-items: center; gap: 8px; font-weight: 650; letter-spacing: -0.01em; padding: 12px 2px; font-size: 1rem; color: var(--ink); }
.checklist li + li { border-top: 1px solid var(--line); }
.checklist li.ok { color: var(--ink); }
.checklist li.wait { color: var(--warn); }
.tie-row {
  display: flex; justify-content: space-between; gap: 24px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
  padding: 16px 22px;
}
.tie { flex: 1 1 auto; min-width: 0; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.35; margin: 10px 0 0; max-width: 40rem; color: var(--ink); }
.tie.clear { color: var(--ok); }
.tie .check {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 0.9rem; margin-right: 8px; vertical-align: 2px;
}
.prompt {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
  padding: 14px 22px; display: flex; align-items: center; gap: 20px;
}
.prompt p { margin: 0; font-weight: 650; font-size: 1.05rem; letter-spacing: -0.02em; flex: 1 1 280px; min-width: 0; }
.prompt-fields { display: grid; grid-template-columns: 200px minmax(220px, 280px) auto; gap: 10px; align-items: end; flex: 0 1 auto; }
.pay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pay-card { padding: 20px 24px 8px; }
.pay-card h2 { font-size: 1.2rem; margin: 0; letter-spacing: -0.03em; }
.take { margin: 8px 0 0; font-size: 1.7rem; font-weight: 600; letter-spacing: -0.04em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.gap { margin: 8px 0 0; color: var(--muted); font-size: 1rem; }
.empty-card { min-height: 140px; grid-column: 1 / -1; }
.card-pay { display: grid; gap: 10px; margin: 8px 0 12px; }
.quiet-fold { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px 12px; }
.quiet-fold summary { cursor: pointer; font-weight: 650; min-height: 44px; display: flex; align-items: center; }
.desk { display: grid; gap: 22px; }
.desk-head { display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; }
.desk-head h1 { font-size: 2.05rem; margin: 0; }
.title-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.title-line .eyebrow { margin: 0; }
.file-fold .menu-files { padding-left: 0; }
.issue-body { flex: 1; min-width: 0; }
.pay-list > h2 { font-size: 1.15rem; margin: 0; }
.open-list {
  list-style: none; margin: 0; padding: 0; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.open-list li + li { border-top: 1px solid var(--line); }
.open-line {
  display: flex; align-items: center; gap: 10px; margin: 0; padding: 8px 16px;
  min-height: 48px; flex-wrap: wrap;
}
.open-line p, .open-line > span { margin: 0; flex: 1 1 220px; font-weight: 600; }
.open-line select, .open-line input {
  width: auto; min-width: 8.5rem; flex: 0 1 11rem; min-height: 40px; margin: 0;
}
.open-line button { min-height: 40px; }
.amber {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  background: var(--warn-wash); color: var(--warn); font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.01em; vertical-align: 3px;
}
.breakdown { width: 100%; border-collapse: collapse; margin: 2px 0 12px; }
.breakdown th, .breakdown td {
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 1rem;
}
.breakdown th { text-align: left; color: var(--muted); font-weight: 650; width: 46%; }
.breakdown td { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }
.eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 15px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; }
.lede { color: var(--muted); font-size: 1.05rem; max-width: 36rem; }
.count-line { color: var(--muted); max-width: 40rem; margin-top: 8px; }
.waiting { color: var(--ink); font-weight: 600; }
.not-final {
  display: block; margin-top: 4px; color: var(--warn);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.desk-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; flex: 0 0 auto; }
.desk-actions .button, .desk-actions button { white-space: nowrap; }
.desk-actions form { margin: 0; }
.drop {
  background: var(--card);
  border: 2px dashed var(--accent);
  border-radius: 20px;
  padding: 0;
  text-align: center;
  box-shadow: var(--shadow);
  min-width: 0;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.drop.drag {
  border-color: var(--accent);
  border-style: solid;
  background: var(--wash);
  animation: drop-glow 1.1s ease-in-out infinite;
}
.drop.drag .drop-mark {
  background: var(--accent);
  color: var(--accent-ink);
  animation: drop-bob 0.8s ease-in-out infinite;
}
.drop-title { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; margin: 0; }
.drop p { color: var(--muted); }
.drop .drop-kicker { margin: 0 0 6px; color: var(--accent-deep); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.file-btn {
  margin-top: 8px;
  cursor: pointer;
}
.file-btn input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pick-count { min-height: 1.2em; font-weight: 650; color: var(--ink); }
.ask { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.ask p { font-size: 1.15rem; font-weight: 600; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  gap: 2px;
  min-width: min(100%, 220px);
  box-shadow: 0 1px 2px rgba(28, 26, 23, 0.05);
}
.chip strong { font-size: 0.95rem; color: var(--accent); }
.chip.wait strong { color: var(--warn); }
.chip span { color: var(--muted); font-size: 0.78rem; }
.empty-state {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 24px;
  box-shadow: none;
}
.empty-state h2 { font-size: var(--text-lg); font-weight: 650; }
.empty-state p { color: var(--muted); max-width: 38rem; margin: 0; }
.week-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); font-size: 1rem; }
.issues, .pay-list { display: grid; gap: 12px; }
.issues h2, .pay-list { margin-top: 4px; }
.issue {
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.issue h3 { font-size: 1.05rem; margin: 0 0 8px; }
.issue-amount { margin: 0; font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fix { display: grid; grid-template-columns: minmax(160px, 220px) minmax(200px, 340px) auto; gap: 10px; align-items: end; justify-content: start; margin-top: 4px; }
.pay-card {
  background: var(--card);
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.pay-card details { margin-top: auto; }
.pay-card header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.pay-card header p { margin: 0; color: var(--muted); }
.takehome { text-align: right; }
.takehome span { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; }
.takehome strong { font-size: 1.85rem; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; font-weight: 650; color: var(--ok); }
.takehome strong.waiting { color: var(--ink); font-size: 1.2rem; letter-spacing: -0.03em; }
.pay-card dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 0 8px; background: var(--paper); border-radius: 14px; padding: 14px 16px; }
.pay-card dt { color: var(--muted); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.03em; text-transform: uppercase; }
.pay-card dd { margin: 4px 0 0; font-size: 1.05rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pay-card details { border-top: 1px solid var(--line); }
.pay-card summary, .fold > summary { cursor: pointer; font-weight: 650; min-height: 44px; display: flex; align-items: center; }
.loads { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.loads li { display: grid; gap: 2px; }
.fold { background: var(--card); border-radius: 16px; border: 1px solid var(--line); padding: 4px 18px 12px; }
.sheet-link { margin: 0; }

@media (max-width: 720px) {
  .wrap, .desk-wrap { width: min(1280px, calc(100% - 32px)); }
  .bar { flex-wrap: wrap; gap: 8px 12px; min-height: 0; padding: 10px 0; }
  .free-week-line { order: 2; flex: 1 0 100%; margin: 0; white-space: normal; }
  .tabs { order: 3; width: 100%; margin-right: 0; flex-wrap: wrap; overflow: visible; row-gap: 4px; }
  .session { margin-left: auto; }
  .carrier-name { white-space: normal; }
  nav { order: 3; }
  .intake, .prompt-fields { grid-template-columns: 1fr; }
  .prompt { flex-direction: column; align-items: stretch; }
  .prompt-fields { width: 100%; }
  .pay-grid { grid-template-columns: 1fr; }
  .desk-head { flex-direction: column; align-items: stretch; gap: 14px; }
  .desk-head h1 { font-size: 1.55rem; }
  .tie-row { flex-direction: column; align-items: stretch; padding: 16px; }
  .tie { font-size: 1.08rem; }
  .pay-card header { flex-wrap: wrap; }
  .desk-actions, .desk-actions .button, .desk-actions button, .prompt button, .prompt-fields button { width: 100%; }
  .drop-hit { min-height: 210px; padding: 28px 16px; }
  .drop-title { font-size: 1.35rem; }
  .user-menu .more-menu { right: 0; left: auto; }
  .takehome { text-align: left; }
  .pay-card dl, .fix { grid-template-columns: 1fr 1fr; }
  .fix button { grid-column: 1 / -1; }
  .open-line select, .open-line input, .open-line button { width: 100%; flex-basis: 100%; }
  .exception-table { display: none; }
  .exception-cards { display: grid; gap: 12px; }
  .split { grid-template-columns: 1fr; }
  .flow { display: flex; overflow-x: auto; }
  .flow a { flex: 0 0 auto; }
  .row > button, .stack > button, .empty .button { width: 100%; }
  h1 { font-size: 1.5rem; }
  .more-menu { right: auto; left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .home-tile:hover,
  .next-card:hover,
  .driver-card:hover,
  .download-pay:hover,
  .gate-submit:hover,
  .next-go:hover,
  .top .signout:hover,
  .drop.drag .drop-mark {
    transform: none !important;
  }
}

.ethos {
  margin: 0;
  padding: 14px 0 2px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 7%, transparent), transparent);
}
.ethos .wrap { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.35; }
.practice-line { margin: 0; }
.practice-line .wrap { display: block; padding: 8px 0; font-size: 0.875rem; line-height: 1.35; }

.stage { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stage-meta { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.stage-meta .eyebrow { margin: 0; }
.stage-error { margin: 0; }
.carrier-inline { margin: 0; }
.carrier-inline select { min-height: 44px; width: auto; padding: 8px 12px; }
.desk-page .intake { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.desk-page .drop { flex: 1; display: flex; min-height: 0; }
.desk-page .drop-hit {
  flex: 1; min-height: 0; justify-content: center; gap: 12px;
  width: 100%; box-sizing: border-box;
}
.desk-page .checklist {
  display: flex; flex: 0 1 auto; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 8px; background: var(--card); border: 1px solid var(--line); box-shadow: none;
  padding: 12px 16px; margin: 0; border-radius: 12px;
  width: 100%; max-width: 100%;
}
.desk-page .checklist li {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  padding: 8px 14px; font-size: 15px; white-space: nowrap; max-width: 100%;
  animation: rise 0.45s ease both;
}
.desk-page .checklist li:nth-child(2) { animation-delay: 0.05s; }
.desk-page .checklist li:nth-child(3) { animation-delay: 0.1s; }
.desk-page .checklist li:nth-child(4) { animation-delay: 0.15s; }
.desk-page .checklist li + li { border-top: 0; }
.desk-page .checklist li.ok { color: var(--ink); }
.practice-inline { margin: 0; display: flex; justify-content: center; }
.practice-inline button { min-height: 44px; padding: 12px 16px; font-size: var(--text-md); }
.ask-inline {
  display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 16px;
}
.ask-inline p { margin: 0; white-space: nowrap; }
.ask-inline label { display: flex; align-items: center; gap: 8px; margin: 0; }
.ask-inline input { width: auto; min-height: 40px; }
.close-files { margin: 0 0 18px; }
.close-files .step-lead { margin: 0 0 10px; }
.close-files .choice-row label { width: auto; font-weight: 500; }
.pay-bar {
  display: grid;
  justify-items: start;
  gap: 12px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.assign-card {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.assign-card p { margin: 0; font-size: var(--text-md); font-weight: 600; color: var(--ink); }
.assign-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.assign-row label { min-width: min(100%, 16rem); font-size: var(--text-sm); }
.assign-row select, .assign-row input { min-height: 44px; }
.assign-row button { min-height: 44px; }
.desk-ask { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.desk-ask:not(:has(form)) { display: none; }
.prompt-line { margin: 0; font-weight: 650; }
.prompt-form { display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; margin: 0; min-width: 0; }
.prompt-form p { margin: 0; font-weight: 650; font-size: 15px; flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prompt-form select, .prompt-form input { width: 9rem; min-width: 0; min-height: 44px; flex: 0 0 9rem; padding: 12px 14px; font-size: var(--text-md); }
.prompt-form button { flex: 0 0 auto; min-height: 44px; padding: 12px 16px; font-size: var(--text-md); }
.strip p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-weight: 600; }
.strip strong { font-variant-numeric: tabular-nums; }
.complete {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.25;
}
.complete-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.status-pill {
  display: inline-flex; align-items: center; flex: 0 0 auto;
  min-height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 11px; font-weight: 750; letter-spacing: 0.06em;
}
.status-pill.draft { background: var(--warn-wash); color: var(--warn); }
.status-pill.final { background: var(--ok-wash); color: var(--ok); gap: 4px; }
.complete-totals {
  margin: 0; min-width: 0; font-weight: 700; font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.complete-meta, .complete-miss {
  margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.complete-miss { color: var(--warn); font-weight: 650; }
.complete-form, .complete-checks { display: flex; flex-wrap: nowrap; gap: 2px 10px; align-items: center; margin-top: 4px; }
.complete .tick {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  font-size: 13px; font-weight: 650; color: var(--ink);
}
.complete .tick input, .complete .expect input { width: auto; min-height: 28px; }
.complete .expect { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650; color: var(--ink); white-space: nowrap; }
.complete .expect input { width: 6.2rem; padding: 2px 8px; font-size: 14px; min-height: 28px; }
.complete .secondary { min-height: 28px; padding: 2px 10px; }
.pay-actions { display: flex; align-items: center; gap: 12px; }
.pay-actions form { margin: 0; }
.download-pay { min-height: 44px; padding: 12px 16px; font-size: var(--text-md); border-radius: 12px; white-space: nowrap; }
.pay-status { margin: 0; color: var(--ink); font-size: var(--text-md); font-weight: 600; line-height: 1.45; }
.draft-flag, .approved-flag {
  display: inline-flex; align-items: center; min-height: 28px; padding: 2px 10px;
  border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
}
.draft-flag { background: var(--warn-wash); color: var(--warn); }
.approved-flag { background: var(--soft); color: var(--accent); }
button.count-badge {
  background: var(--paper); color: var(--ink); box-shadow: none; min-height: 32px;
  padding: 2px 12px; border-radius: 999px; border: 1px solid var(--line);
}
button.count-badge-open { background: var(--warn-wash); color: var(--warn); border-color: transparent; }
.driver-line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mini-row {
  display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; min-width: 0; flex: 1;
  scrollbar-width: thin;
}
.mini-card {
  flex: 0 0 auto; min-width: 148px; max-width: 210px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px;
  box-shadow: var(--shadow);
}
.mini-card strong { display: block; font-size: 0.95rem; letter-spacing: -0.02em; }
.mini-card span {
  display: block; margin-top: 2px; color: var(--muted); font-weight: 650;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.driver-line > button { flex: 0 0 auto; min-height: 40px; }
dialog.drawer {
  margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(520px, 100vw);
  border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 18px 20px 28px;
  box-shadow: -16px 0 40px rgba(28, 26, 23, 0.12); background: var(--paper);
}
dialog.drawer::backdrop { background: rgba(28, 26, 23, 0.35); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.drawer-head h2 { margin: 0; font-size: 1.25rem; }
.drawer-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; margin-bottom: 10px;
}
.drawer-card header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.drawer-card h3 { margin: 0; font-size: 1rem; }
.drawer-card .gap { margin: 6px 0 8px; }

@media (min-width: 900px) {
  body.desk-page { min-height: 100vh; }
  body.desk-page main { padding: 8px 0 24px; }
}

html:has(body.gate) { background: var(--bg); }
body.gate {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.gate-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 24px;
}
.site-foot {
  flex: none;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
}
.site-foot p { margin: 0; }
body.desk-page .site-foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.gate-logo {
  display: flex;
  justify-content: center;
  margin: 0 0 8px;
  color: var(--accent);
}
.gate-card .wordmark,
.gate-logo .wordmark { color: var(--accent); }
.gate-logo .wordmark svg { height: 36px; width: auto; max-width: 100%; }
.gate-tagline {
  margin: 0 0 28px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}
.gate-card > #signin {
  display: grid;
  gap: 0;
  margin: 0;
}
.gate-card {
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
  padding: 32px;
  display: grid;
  gap: 0;
}
.gate-card h1 {
  margin: 0 0 22px;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  text-align: left;
}
.gate-card label { margin-bottom: 14px; }
.gate-lead {
  margin: 0 0 22px;
  color: var(--muted);
}
.wizard-card { width: min(480px, 100%); }
.upload-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.upload-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 650;
}
.upload-list a { font-weight: 650; color: var(--accent); }
.import-progress {
  list-style: none;
  margin: 8px 0 12px;
  padding: 0;
}
.import-progress li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: var(--muted);
}
.import-progress li.is-now { color: var(--ink); font-weight: 650; }
.import-progress li.is-done { color: var(--ink); }
.first-settlement {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 24px;
  margin: 0 0 18px;
}
.first-settlement h2 {
  margin: 0 0 8px;
  font-family: Inter;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.first-who { margin: 8px 0 0; color: var(--muted); }
.first-net {
  margin: 0;
  font-family: Inter;
  font-size: 2.4rem;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-weight: 600;
  color: var(--ink);
}
.first-net.missing { color: var(--warn); font-size: 2rem; }
.first-actions { margin: 12px 0 0; }
.first-help { margin: 12px 0 0; }
.first-help a { color: var(--accent); font-weight: 650; }
@media (max-width: 720px) {
  .first-settlement { padding: 18px 16px; }
  .first-settlement .button { width: 100%; }
  .upload-list li { flex-direction: column; align-items: flex-start; gap: 4px; }
}
.wizard-steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0 0 16px;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
}
.wizard-steps li[aria-current="step"] { color: var(--ink); font-weight: 650; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 84px; }
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: auto;
  min-height: 32px;
  padding: 4px 12px;
  background: transparent;
  color: var(--accent);
  box-shadow: none;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.password-toggle:hover { background: var(--soft); }
.gate-submit {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  font-size: var(--text-md);
  border-radius: 12px;
}
.gate-alt {
  margin: 16px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}
.gate-alt a { font-weight: 700; color: var(--accent); text-decoration: underline; text-underline-offset: 0.15em; }
.gate-alt a:hover { text-decoration: underline; }
.gate-demo { margin: 12px 0 4px; }
.gate-demo button { width: 100%; min-height: 44px; }
.gate :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.hello { margin: 8px 0 18px; }
.hello h1 { font-size: 2.5rem; margin: 0 0 8px; }
.hello-lead { margin: 0; max-width: 36rem; color: var(--muted); font-size: 1.1rem; }
.next-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(28, 26, 23, 0.04), 0 18px 40px rgba(0, 0, 0, 0.08);
  padding: 28px 28px 28px 30px;
}
.next-card h2 { margin: 0 0 8px; font-size: 1.65rem; max-width: 22em; }
.next-card p { margin: 0; color: var(--muted); max-width: 40rem; }
.kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.next-go { min-height: 52px; padding: 12px 22px; font-size: 18px; border-radius: 12px; white-space: nowrap; }
.home-status {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0;
  padding: 0;
}
.home-status li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--wash);
  border: 1px solid var(--accent);
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 650;
  font-size: 16px;
  color: var(--ink);
  animation: rise 0.5s ease both;
}
.home-status li:nth-child(2) { animation-delay: 0.05s; }
.home-status li:nth-child(3) { animation-delay: 0.1s; }
.home-status li:nth-child(4) { animation-delay: 0.15s; }
.home-status .is-in,
.home-status .is-out { box-shadow: inset 3px 0 0 var(--accent); }
.home-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.home-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 176px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}
.home-tile:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
.home-tile strong { font-size: 1.15rem; letter-spacing: -0.02em; }
.home-tile span:last-child { color: var(--muted); font-size: 0.98rem; }
.tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.driver-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.driver-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px;
}
.driver-card h2 { margin: 0 0 4px; font-size: 1.25rem; }
.driver-card p { margin: 0; }
.driver-setup { margin-top: 20px; }

@media (max-width: 980px) {
  .home-tiles, .home-status { grid-template-columns: 1fr 1fr; }
  .next-card { flex-direction: column; align-items: stretch; }
  .next-go { text-align: center; }
}

@media (max-width: 640px) {
  .gate-stage { align-items: flex-start; padding: 24px 16px 32px; }
  .gate-card { padding: 28px 18px 22px; border-radius: 18px; }
  .gate-card h1 { font-size: 1.45rem; }
  .gate-logo .wordmark svg { height: 30px; }
  .gate-tagline { font-size: 13px; margin-bottom: 22px; }
}
@media (max-width: 720px) {
  .pay-bar, .driver-line, .ask-inline { flex-direction: column; align-items: stretch; }
  .download-pay, .pay-actions, .pay-actions button, .driver-line > button { width: 100%; }
  .desk-page .drop-hit { min-height: 0; }
  .complete-form, .complete-checks { flex-wrap: wrap; }
  .complete-totals { white-space: normal; }
  .week-ready { justify-content: center; }
}

.chip-dot, .chip-dot-invoices {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 999px; background: var(--ok); flex: 0 0 auto;
  vertical-align: 1px;
}
.chip-dot.is-wait { background: var(--line); }
.ready-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; color: var(--ok); background: none; flex: 0 0 auto;
}
.ready-check svg, .pill-check svg { width: 100%; height: 100%; display: block; }
.pill-check { width: 12px; height: 12px; display: inline-flex; }
.ready-dot {
  width: 9px; height: 9px; border-radius: 999px; background: var(--ok);
  box-shadow: 0 0 0 4px var(--wash); flex: 0 0 auto;
}
.week-ready.is-draft { color: var(--ok); }
.pay-quiet { margin: 0; color: var(--ink); font-size: var(--text-md); font-weight: 600; }
.week-ready.is-final { color: var(--ok); }
.chip-n, .countup { font-variant-numeric: tabular-nums; }
.week-ready {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ok);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.check-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}
.check-card h2 {
  margin: 0 0 8px;
  font-size: var(--text-lg);
  font-weight: 650;
  color: var(--ink);
}
.check-note { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; color: var(--muted); }
.check-main { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; min-width: 0; }
.check-evidence, .check-deadline { flex-basis: 100%; color: var(--muted); font-size: 13px; }
.check-list form { margin: 0; }
.check-sentence { margin: 0; color: var(--ink); font-size: var(--text-md); line-height: 1.45; }
.check-ok {
  min-height: 44px; padding: 12px 16px; border-radius: 12px;
  background: var(--card); color: var(--accent); border: 1px solid var(--line);
  box-shadow: none; font-size: var(--text-md); font-weight: 600;
}
.desk-tie {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.tie-note { color: var(--accent); font-weight: 550; }
.tie-money { color: var(--ink); font-variant-numeric: tabular-nums; }
.tie-money.is-pos, .net-state.is-pos { color: var(--ok); }
.is-matched { color: var(--ok); font-style: normal; }
.empty-art { display: block; width: min(280px, 72%); height: auto; color: var(--ink); }
.empty-art svg { width: 100%; height: auto; display: block; }

.hello, .gate-card, .next-card, .home-tile, .gate-points li { animation: rise 0.12s ease both; }

.home-tile, .next-card, .driver-card, .gate-card, .download-pay, .gate-submit, .next-go, .top .signout {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.next-card:hover, .driver-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
.download-pay:hover, .gate-submit:hover, .next-go:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}
button.download-pay:disabled,
button.download-pay:disabled:hover { transform: none; }
.top .signout:hover { transform: translateY(-1px); }

.draw { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .draw {
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    animation: draw-check 0.55s ease forwards;
  }
}

@keyframes rise {
  from { opacity: 0; translate: 0 10px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes draw-check { to { stroke-dashoffset: 0; } }
@keyframes drop-glow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.16), 0 12px 28px rgba(0, 0, 0, 0.1); }
  50% { box-shadow: 0 0 0 7px rgba(0, 0, 0, 0.24), 0 18px 36px rgba(0, 0, 0, 0.16); }
}
@keyframes drop-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}

/* One type scale, one spacing grid, no internal chrome. */
html, body, button, input, select, textarea { font-family: Inter; }
code, pre, kbd, samp { font-family: inherit; font-size: inherit; background: none; padding: 0; }
a, a:hover, a:focus { color: var(--accent); text-decoration: underline; text-underline-offset: 0.15em; }
a.brand, a.button, a.home-tile, a.download, .top .tabs a, .week-steps a, .flow a, .skip {
  text-decoration: none;
}
body { font-size: var(--text-md); line-height: 1.55; }
h1 { font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; }
h2 { font-size: var(--text-lg); font-weight: 650; letter-spacing: -0.02em; }
p, li, label, button, input, select { font-size: var(--text-md); }
.muted, .complete-meta, .complete-miss, .gap, .hello-lead { color: var(--muted); font-size: var(--text-sm); }
.checklist li.wait, .chip.wait strong, .missing, .complete-miss { color: var(--muted); }
.page { padding: var(--space-6) 0 var(--space-7); }
.page-head { margin-bottom: var(--space-5); }
.page-head h1, .desk-hello { margin: 0 0 var(--space-2); }
.empty-state {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 24px; max-width: 36rem; box-shadow: none;
}
.empty-inline { margin: 0; color: var(--ink); font-size: var(--text-md); }
.aside { margin: 0; }
.aside summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 650;
  color: var(--ink);
  font-size: var(--text-md);
}
.aside p { margin: 0 0 8px; }
.empty-state h1, .empty-state h2 { margin-bottom: var(--space-3); }
.empty-state p { margin-bottom: var(--space-4); }
.empty-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.top {
  background: var(--header-bg); color: var(--header-ink);
  box-shadow: none; border-bottom: 1px solid var(--header-line);
}
.top .wordmark { color: var(--header-ink); }
.top .tabs a {
  color: var(--header-muted); font-size: var(--text-md); font-weight: 600; text-decoration: none;
  white-space: nowrap; overflow-wrap: normal; word-break: normal; flex: 0 0 auto;
}
.top .tabs a[aria-current="page"] {
  color: var(--header-ink); background: transparent; box-shadow: none; font-weight: 700;
  text-decoration: underline; text-underline-offset: 0.28em;
}
.account { position: relative; margin-left: auto; }
.account summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--space-2);
  min-height: 44px;
}
.account summary::-webkit-details-marker { display: none; }
.avatar {
  width: 36px; height: 36px; border-radius: 999px; background: var(--header-ink); color: var(--header-bg);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600;
}
.account-name { font-weight: 600; }
.account-menu {
  position: absolute; right: 0; top: calc(100% + 8px); background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: var(--space-4); min-width: 220px; z-index: 50;
}
.account-line { margin: 0 0 var(--space-2); }
.top .signout { background: var(--accent); color: var(--accent-ink); }
.setting-value { margin: 0 0 var(--space-2); font-weight: 600; }
.text-link { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 0.15em; }
.narrow { max-width: 28rem; }
.week-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.week-list li {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4) var(--space-5);
}
.week-date { margin: 0; font-weight: 600; font-size: var(--text-lg); }
.week-meta { margin: var(--space-1) 0 0; color: var(--muted); }
.desk-page .checklist li.wait {
  background: var(--soft);
  border-color: var(--line);
  color: var(--muted);
  box-shadow: none;
}
.desk-page .checklist li.wait .chip-name { color: var(--muted); }
.chip-dot.is-wait { background: var(--line); }
.question-card .choice-row button {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
}
.pay-step { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pay-step[hidden], .tap-entry[hidden], .pay-step input[hidden] { display: none; }
.pay-step input { width: 12rem; min-height: 40px; }
.pay-step button { min-height: 40px; }
.amounts { display: grid; gap: 8px; }
.amount-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px;
}
.amount-line .who {
  flex: 1 0 100%;
  font-size: var(--text-lg);
  font-weight: 650;
  line-height: 1.3;
  color: var(--ink);
}
.tap-amount { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.tap-label { color: var(--muted); font-size: 14px; }
.amount-tap {
  min-height: 34px; min-width: 72px; padding: 4px 12px; border-radius: 999px;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: none;
}
.amount-tap.is-blank {
  background: var(--soft);
  border-color: var(--line);
  color: var(--muted);
  font-size: 13px;
  min-width: 7.5rem;
}
.tap-entry { display: inline-flex; gap: 6px; align-items: center; }
.tap-entry input { width: 7rem; min-height: 34px; }
.tap-entry button { min-height: 34px; padding: 4px 12px; }
.net-foot {
  flex: 1 0 100%;
  margin-left: 0;
  display: grid;
  justify-items: stretch;
  gap: 2px;
  width: 100%;
  max-width: none;
}
.net-state { font-weight: 650; color: var(--muted); text-align: left; }
.round-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.35; text-align: left; }
#explain-week, #explain-week input { scroll-margin-bottom: 160px; }
.stub-actions { display: inline-flex; flex-wrap: wrap; gap: 14px; align-items: baseline; }
.quiet-link, .text-copy, .wa-send {
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.wa-send { white-space: nowrap; }
.text-copy {
  background: none;
  border: 0;
  box-shadow: none;
  height: auto;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  display: inline;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}
.week-actions { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.week-actions .quiet-link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 4px; }
.setting-note, .check-note, .round-note, .gate-tagline, .week-meta {
  font-size: var(--text-caption);
  line-height: 1.45;
}
.setting-note { margin: 0; color: var(--muted); }
.recovery-code {
  margin: 12px 0 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.phone-row { margin-top: 12px; }
.copy-source[hidden] { display: none; }
.carry-rows { display: grid; gap: 6px; margin-top: 8px; }
.carry-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.carry-name { color: var(--muted); min-width: 5rem; }
.question-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-5); display: grid; gap: var(--space-4);
}
.question-card p { margin: 0; font-size: var(--text-lg); font-weight: 600; }
.choice-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.desk-hello { font-size: var(--text-2xl); }
.panel, .stack { display: grid; gap: var(--space-3); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-5); margin-bottom: var(--space-4); box-shadow: none; }
.people { margin: var(--space-3) 0 0; padding-left: 1.1rem; }
.stage-meta .eyebrow { text-transform: none; letter-spacing: 0; font-size: var(--text-lg); font-weight: 600; color: var(--ink); }
.drop-status:empty { display: none; }
.drop-status { margin: 0; color: var(--muted); font-size: var(--text-sm); }
.top .tabs a:hover { background: var(--header-hover); color: var(--header-ink); text-decoration: none; }
.top :focus-visible { outline: 2px solid var(--header-ink); outline-offset: 3px; }
.source-tags {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
.source-pill { display: inline-flex; align-items: baseline; gap: 6px; }
.source-pill-name { color: var(--muted); font-size: var(--text-sm); }
.source-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}
.source-tag[data-kind="matched"] {
  color: var(--ok);
  background: transparent;
  border-color: var(--ok);
}
.source-tag[data-kind="computed"] {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}
.source-tag[data-kind="missing"] {
  color: var(--warn);
  background: var(--warn-wash);
  border-color: transparent;
}
.source-tag[data-file]:hover::after,
.source-tag[data-file]:focus::after,
.source-tag[data-file]:focus-visible::after {
  content: attr(data-file);
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 6;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
}
.explain-answer { display: grid; gap: 8px; }
.explain-answer p { margin: 0; }
.explain-unknown { color: var(--muted); }
.demo-caption {
  position: fixed;
  left: auto;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  width: max-content;
  max-width: min(420px, calc(100% - 48px));
  margin: 0;
  background: #111111;
  color: #ffffff;
  font: 600 20px/1.2 Inter, sans-serif;
  padding: 8px 14px;
  border-radius: 8px;
  pointer-events: none;
}
body.desk-page .demo-caption { bottom: 96px; left: auto; right: 24px; }
.empty-art { color: var(--ink); }
.gate-lead, .gate-tagline, .week-meta, .account-line { line-height: 1.45; }
.week-steps { margin: 2px 0 18px; overflow-x: auto; }
.week-steps ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: max(100%, 1120px);
  gap: 12px;
  margin: 0;
  padding: 0;
}
.week-steps a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 44px;
  padding: 4px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
}
.step-label, .step-short { white-space: nowrap; }
.step-short { display: none; }
.week-steps a:hover { color: var(--ink); text-decoration: none; }
.step-index {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.week-steps a[aria-current="step"] { color: var(--ink); }
.week-steps a[aria-current="step"] .step-index {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.week-steps .is-done .step-index {
  background: var(--soft);
  border-color: transparent;
  color: var(--accent);
}
.step-lead { margin: 0 0 16px; color: var(--muted); font-size: var(--text-sm); line-height: 1.45; }
.step-go {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  margin: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  width: 100%;
  box-sizing: border-box;
  background: var(--bg);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
}
.step-go .button {
  width: min(420px, 100%);
  min-height: 44px;
  padding: 12px 16px;
  font-size: var(--text-md);
  border-radius: 12px;
  justify-content: center;
}
body.desk-page:has(.flow-step:not([hidden]) .step-go) { padding-bottom: 168px; }
body.desk-page:has(.flow-step:not([hidden]) .step-go) .toast { bottom: 100px; }
.flow-step[hidden] { display: none !important; }
.extra-lines { flex: 1 0 100%; display: grid; gap: 8px; }
.fee-line, .expense-row { margin: 0; font-size: 14px; }
.mini-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.mini-form label { display: grid; gap: 6px; font-size: var(--text-sm); color: var(--muted); }
.mini-form input { min-height: 44px; min-width: 8rem; font-size: var(--text-md); }
.mini-form button { min-height: 44px; padding: 12px 16px; font-size: var(--text-md); }
@media (max-width: 800px) {
  .wrap { width: min(1280px, calc(100% - 32px)); }
  .bar { flex-wrap: wrap; }
  .account-name { display: none; }
  .week-list li { flex-direction: column; align-items: flex-start; }
  .week-actions, .week-actions .button { width: 100%; }
  .week-actions { flex-wrap: wrap; }
  .amount-line { align-items: flex-start; }
  .net-foot { margin-left: 0; width: 100%; max-width: none; justify-items: start; }
  .round-note { text-align: left; }
  .stub-actions { width: 100%; }
  .prompt-form { flex-wrap: wrap; }
  .prompt-form p { white-space: normal; }
  h1, .desk-hello { font-size: var(--text-xl); }
  .step-go .button { width: 100%; }
  .amount-tap, .tap-entry button, .tap-entry input, .ask-inline input, .pay-step input, .pay-step button {
    min-height: 44px;
  }
  .week-actions .quiet-link, .top .tabs a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .password-toggle { min-height: 44px; }
  .week-steps { overflow-x: hidden; }
  .week-steps ol { width: 100%; gap: 4px; }
  .week-steps a { position: relative; gap: 4px; font-size: 13px; }
  .step-index { width: 22px; height: 22px; font-size: 12px; }
  .step-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .step-short { display: inline; }
  .section-nav { position: static; }
}
.brand { min-height: 44px; }
.avatar { width: 44px; height: 44px; }
.skip { min-height: 44px; display: inline-flex; align-items: center; }
.stub-actions .quiet-link,
.stub-actions .wa-send,
.stub-actions .text-copy {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  height: auto;
  padding: 8px 4px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.section-nav {
  position: sticky;
  top: 80px;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
  padding: 8px 0;
  background: var(--bg);
}
.section-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 650;
  white-space: nowrap;
}
.section-nav a:hover,
.section-nav a:focus {
  background: var(--soft);
  color: var(--ink);
  text-decoration: none;
}
.settings-card { scroll-margin-top: 148px; }
.settings-card > h2 { margin: 0; }
.settings-block { display: grid; gap: 12px; }
.settings-block + .settings-block {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 8px;
}
.settings-block h3 {
  margin: 0;
  font-size: var(--text-md);
  font-weight: 650;
  letter-spacing: -0.02em;
}
@media (max-width: 800px) {
  .section-nav { position: static; }
}
.carrier-line {
  margin: 0;
  padding: 0 0 12px;
  color: var(--header-muted);
  font-size: 14px;
  line-height: 1.3;
}
.week-report { margin: 0; }
.week-report a { font-weight: 650; min-height: 44px; display: inline-flex; align-items: center; }
.weekly-report, .weekly-metrics, .first-settlement {
  font-family: Inter;
}
.weekly-report, .weekly-metrics {
  display: grid;
  gap: var(--space-4);
  min-width: 0;
  overflow-wrap: anywhere;
}
.weekly-report section, .weekly-metrics {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-4);
}
.weekly-report h2, .weekly-metrics h2 { margin: 0; }
.heads-up h2 { margin: 0 0 8px; }
.heads-up ul { margin: 0; padding-left: 1.1rem; }
.heads-up li { margin: 4px 0; }
.money-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  min-width: 0;
}
.money-row strong {
  margin-left: auto;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-weight: 400;
  white-space: nowrap;
}
.money-row.net strong {
  font-weight: 600;
  font-size: 1.35rem;
}
.driver-unit { margin: 0; color: var(--muted); }
.weekly-status {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--soft);
  font-weight: 650;
}
.weekly-status.needs { color: var(--warn); background: var(--warn-wash); }
.dispute-list, .driver-list, .missing-list, .metric-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.driver-card, .metric-list li, .dispute-list li {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.driver-name { margin: 0; font-weight: 650; }
.weekly-actions { display: grid; gap: 8px; }
.weekly-actions .button { width: 100%; }
@media (min-width: 800px) {
  .weekly-actions .button { width: auto; }
}
