/* CS Shootboard
   ------------------------------------------------------------------
   Two surfaces: phone = call-sheet cards · desktop = spreadsheet sheet + month grid.
   day (default) = paper in daylight on a shoot floor · night = studio black.

   TYPE — one face (Inter), hierarchy from weight and scale only. Six steps,
   no drift: 10 label · 13 data · 15 body · 20 title · 28 section · display.
   Weight contrast does the work: 800 for the one loud thing, 500 for the rest.

   MATERIAL — panels are frosted glass: translucent fill, backdrop blur, a 1px
   border and an inset top highlight for the lit edge. This is a web
   approximation of the Apple frosted-glass idiom, not an Apple material. Blur
   only reads against a non-flat backdrop, so `.ambient` lays two very soft
   tint fields behind everything for the glass to sample. Solid fallback under
   prefers-reduced-transparency.

   COLOR — teal is the one action accent; brass = needs a human;
   red = tally (unverified). Both themes designed together, not inverted.

   SHAPE — containers 16px · fields 10px · controls full pill. No other radii. */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: light;

  --bg: #e9e6de;
  --ink: #16150f;
  --ink-2: rgba(22, 21, 15, .64);
  --ink-3: rgba(22, 21, 15, .38); /* decoration only — under AA, never for text that informs */
  --muted: #6b6558;
  --line: rgba(22, 21, 15, .10);
  --line-2: rgba(22, 21, 15, .18);

  --teal: #04716d;
  --teal-hi: #025c59;
  --teal-tint: rgba(4, 113, 109, .11);
  --teal-line: rgba(4, 113, 109, .34);
  --brass: #7c5c24;
  --brass-tint: rgba(124, 92, 36, .09);
  --brass-line: rgba(124, 92, 36, .34);
  --rec: #b32a30;
  --rec-tint: rgba(179, 42, 48, .10);
  --rec-line: rgba(179, 42, 48, .34);

  /* glass, day: white-ish panes lifting off a warm tinted field */
  --glass: linear-gradient(158deg, rgba(255, 255, 255, .80), rgba(255, 255, 255, .52));
  --glass-2: linear-gradient(158deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .70));
  --glass-bd: rgba(22, 21, 15, .10);
  --glass-in: inset 0 1px 0 rgba(255, 255, 255, .92);
  --glass-sh: 0 6px 20px rgba(22, 21, 15, .06);
  --glass-sh-2: 0 12px 34px rgba(22, 21, 15, .10);
  --fill: rgba(22, 21, 15, .055); /* neutral fill — teal stays a signal, never decoration */
  --blur: blur(20px) saturate(155%);
  --blur-lite: blur(13px) saturate(140%);
  --bar-bg: rgba(233, 230, 222, .62);

  /* ambient tint fields the blur samples */
  --amb-1: rgba(4, 113, 109, .085);
  --amb-2: rgba(163, 122, 52, .085);
  --grain-op: .045;
  --grain-blend: multiply;

  --sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --r-card: 16px;
  --r-field: 10px;
  --r-pill: 999px;
}

/* night: the same instrument in the dark — re-mixed, not inverted */
html[data-theme="night"] {
  color-scheme: dark;

  --bg: #0c0c0e;
  --ink: #eeeae3;
  --ink-2: rgba(238, 234, 227, .62);
  --ink-3: rgba(238, 234, 227, .34);
  --muted: #9a948a;
  --line: rgba(255, 255, 255, .085);
  --line-2: rgba(255, 255, 255, .16);

  --teal: #10b3ab;
  --teal-hi: #35ccbd;
  --teal-tint: rgba(16, 179, 171, .14);
  --teal-line: rgba(16, 179, 171, .34);
  --brass: #d0a765;
  --brass-tint: rgba(208, 167, 101, .10);
  --brass-line: rgba(208, 167, 101, .32);
  --rec: #f0575c;
  --rec-tint: rgba(240, 87, 92, .14);
  --rec-line: rgba(240, 87, 92, .34);

  --glass: linear-gradient(158deg, rgba(255, 255, 255, .062), rgba(255, 255, 255, .022));
  --glass-2: linear-gradient(158deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .04));
  --glass-bd: rgba(255, 255, 255, .10);
  --glass-in: inset 0 1px 0 rgba(255, 255, 255, .10);
  --glass-sh: 0 8px 26px rgba(0, 0, 0, .34);
  --glass-sh-2: 0 14px 40px rgba(0, 0, 0, .46);
  --fill: rgba(255, 255, 255, .07);
  --bar-bg: rgba(12, 12, 14, .60);

  --amb-1: rgba(16, 179, 171, .13);
  --amb-2: rgba(208, 167, 101, .075);
  --grain-op: .038;
  --grain-blend: normal;
}

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 500 15px/1.5 var(--sans);
  font-variant-numeric: tabular-nums;
  min-height: 100dvh;
  padding-bottom: calc(56px + env(safe-area-inset-bottom));
  transition: background .3s var(--ease), color .3s var(--ease);
}

/* the field the glass samples — without it, blur has nothing to do */
.ambient {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58vw 52vh at 8% -6%, var(--amb-1), transparent 72%),
    radial-gradient(62vw 58vh at 104% 34%, var(--amb-2), transparent 70%),
    radial-gradient(70vw 50vh at 46% 108%, var(--amb-1), transparent 74%);
  transition: background .3s var(--ease);
}

/* film grain over everything — matte, not vector void */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 60;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  opacity: var(--grain-op);
  mix-blend-mode: var(--grain-blend);
}

::selection { background: var(--teal-line); }

/* ---- the glass recipe ---- */
.card, .sheet-wrap, .icon-btn, .tool-pair, button.mnav, #notice {
  background-color: transparent; /* <button> defaults to opaque buttonface — reset before the glass fill */
  background-image: var(--glass);
  border: 1px solid var(--glass-bd);
  box-shadow: var(--glass-in), var(--glass-sh);
  -webkit-backdrop-filter: var(--blur-lite);
  backdrop-filter: var(--blur-lite);
}
.sheet-wrap, #notice {
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
}
@media (prefers-reduced-transparency: reduce) {
  .card, .sheet-wrap, .icon-btn, .tool-pair, button.mnav, #notice, nav#tabs {
    background-image: none;
    background-color: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ---- silkscreen: the small printed label ---- */
.eyebrow, .day-head .d, .today-tag, .field .k, .status, .conf,
.sect .t, .sect .n, .source summary, .sub, .diff .dk, .empty-state .e,
.dow, .month-head .cnt, .hero .k {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---- masthead ---- */
header {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top)) 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
h1 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
}
.meta { margin-top: 8px; }

.mast-tools { display: flex; align-items: center; gap: 10px; }

/* honest controls: real hit areas, pressable, glass */
.icon-btn {
  appearance: none;
  font: inherit;
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 44px; height: 40px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  text-decoration: none;
  transition: color .2s var(--ease), transform .15s var(--ease), border-color .2s var(--ease);
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.icon-btn:active { transform: scale(.94); }
.icon-btn[disabled], .icon-btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* import + export read as one control block */
.tool-pair {
  display: flex;
  align-items: center;
  border-radius: var(--r-pill);
  padding: 0;
}
.tool-pair .icon-btn {
  background: none;
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  width: 42px;
}
.tool-pair .icon-btn + .icon-btn { border-left: 1px solid var(--glass-bd); border-radius: 0 var(--r-pill) var(--r-pill) 0; }
.tool-pair .icon-btn:first-child { border-radius: var(--r-pill) 0 0 var(--r-pill); }

.i { width: 19px; height: 19px; display: block; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme="day"] .i-sun { display: none; }
html[data-theme="night"] .i-moon { display: none; }

/* ---- tabs ---- */
nav#tabs {
  position: sticky; top: 0; z-index: 30;
  display: flex;
  justify-content: space-between;
  height: 48px;
  /* Line the tabs up with the column headers inside the box, not the box edge:
     main is max-width 1200 with 16px padding (inner edge at 50% - 584px) and
     .sheet th adds 14px, so "aaj" starts exactly where the D of DATE does. */
  padding: 0 max(30px, calc(50% - 570px));
  background: var(--bar-bg);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--line);
}
nav#tabs button {
  appearance: none; background: none; border: 0; cursor: pointer;
  flex: 0 0 auto;
  min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 0 2px;
  font: 700 11px/1 var(--sans);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
nav#tabs button.active { color: var(--teal-hi); border-bottom-color: var(--teal); }
.badge {
  font: 700 10px/1 var(--sans);
  font-variant-numeric: tabular-nums;
  color: var(--rec);
  background: var(--rec-tint);
  border: 1px solid var(--rec-line);
  border-radius: var(--r-pill);
  padding: 3px 7px;
  min-width: 21px;
  text-align: center;
}

/* ---- main ---- */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.col { width: 100%; max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

/* ---- today hero: the one loud thing ---- */
.hero { padding: 14px 4px 12px; }
.hero .k { display: block; margin-bottom: 14px; }
.hero-line { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.hero .ht {
  font-size: clamp(52px, 14vw, 76px);
  font-weight: 800;
  line-height: .86;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.hero .hc {
  font-size: clamp(19px, 4.4vw, 25px);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink-2);
}
.hero-sub { margin-top: 12px; font-size: 13px; font-weight: 500; color: var(--muted); }

/* ---- day groups (card views) ---- */
.day { display: flex; flex-direction: column; gap: 12px; }
.day + .day { margin-top: 16px; }
.day-head { display: flex; align-items: center; gap: 12px; padding: 0 4px; }
.day-head .d { color: var(--ink-2); }
.today-tag { color: var(--teal-hi); }
.day-head .rule { flex: 1; height: 1px; background: var(--line); }
.day-head .ghost {
  font-size: 30px;
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  opacity: .5;
}

/* ---- cards ---- */
.card {
  border-radius: var(--r-card);
  padding: 16px 16px 15px;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
@media (hover: hover) {
  .card:hover {
    border-color: var(--line-2);
    transform: translateY(-1px);
    box-shadow: var(--glass-in), var(--glass-sh-2);
  }
}
.card.unverified { border-color: var(--rec-line); }
.card.cancelled { opacity: .5; }
.card.cancelled .client {
  text-decoration: line-through;
  text-decoration-color: var(--rec-line);
  text-decoration-thickness: 1px;
}
.card.done { opacity: .58; }
.card.review { border-color: var(--brass-line); }

.card .top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.client {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.15;
  min-width: 0;
}
/* the heading IS the client field — no duplicate row below, and the unverified
   dot sits on the right so the name always starts at the same x */
h2.client .v { font: inherit; letter-spacing: inherit; }
h2.client input { font: 700 20px/1.15 var(--sans); letter-spacing: -.025em; }
.top-right { flex: none; display: flex; align-items: center; gap: 8px; }
.status { flex: none; cursor: pointer; padding: 4px 0 4px 8px; }
.status .v.st { font: inherit; letter-spacing: inherit; text-transform: inherit; }
.st.tentative { color: var(--brass); }
.st.cancelled { color: var(--rec); }
.st.done { color: var(--teal-hi); }

/* the tally light: red = still rolling (unverified) */
.tally {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rec);
  box-shadow: 0 0 8px var(--rec-line);
  margin-right: 7px;
  vertical-align: 2px;
  animation: tally 1.6s steps(1) infinite;
}
@keyframes tally { 50% { opacity: .35; } }

/* ---- fields (two-tap edit, shared by cards + sheet) ---- */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px 14px; }
.fields .field {
  min-width: 0;
  padding: 4px 6px;
  margin: -4px -6px;
  border-radius: var(--r-field);
}
.field { cursor: pointer; transition: background .18s var(--ease); }
.fields .field.wide { grid-column: 1 / -1; }
.field:active, .field.editing { background: var(--teal-tint); }
.field .k { display: block; font-size: 9.5px; margin-bottom: 4px; }
.field .v {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  /* break long words only when they genuinely cannot fit, never mid-word on
     short values like times or statuses */
  overflow-wrap: break-word;
  word-break: normal;
}
.field .v.empty { color: var(--muted); }
.field input, .field select {
  width: 100%;
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--teal);
  border-radius: 0;
  outline: none;
  color: var(--ink);
  caret-color: var(--teal-hi);
  font: 500 16px/1.3 var(--sans); /* 16px: iOS zooms the page on focus below this */
  font-variant-numeric: tabular-nums;
  padding: 0 0 2px;
}
.field select { cursor: pointer; }
.field.saved { animation: saved 1.1s var(--ease); }
@keyframes saved { 0% { background: var(--teal-tint); } }

/* ---- the sheet (desktop week): one glass pane holding the data ---- */
.sheet-wrap { overflow-x: auto; border-radius: var(--r-card); }
table.sheet { width: 100%; border-collapse: collapse; }
.sheet th {
  font: 700 9.5px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 13px 14px 11px;
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
.sheet td {
  border-top: 1px solid var(--line);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}
.sheet tr.day-row td {
  font: 700 10px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--fill);
  padding: 9px 14px 8px;
}
.sheet td.field { padding: 0; }
.sheet td.field > .v, .sheet td.field > input, .sheet td.field > select {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  width: 100%;
}
.sheet td.field > input, .sheet td.field > select { padding-bottom: 9px; }
.sheet .v.empty { color: transparent; } /* blank cell reads as a sheet; tap still edits */
@media (hover: hover) {
  .sheet tbody tr.row:hover td { background: var(--glass-2); }
}
/* Short-value columns must never break mid-word ("10:00" -> "10:0 / 0"). */
.sheet .c-date, .sheet .c-time, .sheet .c-status { white-space: nowrap; }
.sheet .c-date .v, .sheet .c-time .v, .sheet .c-status .v { word-break: normal; white-space: nowrap; }
.sheet .c-date { width: 74px; }
.sheet .c-time { width: 88px; }
.sheet .c-status { width: 96px; }
/* Client names all start at the same x — the unverified dot moved to the right
   edge of the row so nothing indents the name. */
.sheet .c-client .v {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.02em;
  white-space: nowrap;
}
/* "1st Half" and "2nd Half" are the same length but "nd" is wider than "st",
   which put one of them over the wrap boundary. Hold the column open. */
.sheet .c-notes { min-width: 84px; }
.sheet tr.cancelled td { opacity: .5; }
.sheet tr.cancelled .c-client .v { text-decoration: line-through; text-decoration-color: var(--rec-line); }
.sheet .c-act {
  width: 76px;
  text-align: right;
  padding-right: 10px;
  white-space: nowrap;
}
.sheet .c-act .tally { margin-right: 8px; vertical-align: middle; }
button.rowverify {
  appearance: none; cursor: pointer;
  font: 700 13px/1 var(--sans);
  color: var(--teal-hi);
  background: var(--teal-tint);
  border: 1px solid var(--teal-line);
  border-radius: var(--r-pill);
  width: 34px; height: 30px;
  transition: transform .15s var(--ease), background .2s var(--ease);
}
button.rowverify:hover { background: var(--teal-line); }
button.rowverify:active { transform: scale(.94); }

/* ---- month grid ---- */
.month-head { display: flex; align-items: center; gap: 6px; padding: 0 2px 6px; }
.month-head .mt {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.035em;
  margin: 0 8px;
  min-width: 168px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.month-head .cnt { margin-left: auto; }
button.mnav {
  appearance: none; cursor: pointer;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font: 500 16px/1 var(--sans);
  width: 44px; height: 36px;
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
button.mnav:hover { color: var(--ink); border-color: var(--line-2); }
button.mnav:active { transform: scale(.94); }

.dow-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; padding: 0 2px; }
.dow { text-align: center; font-size: 9px; padding: 5px 0; }
.mgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
/* 35+ cells: tinted fill and hairline, no per-cell blur (the grid is the pane) */
.mcell {
  appearance: none;
  font: inherit;
  color: inherit;
  text-align: left;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-field);
  min-height: 52px;
  padding: 6px 7px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .15s var(--ease);
}
.mcell.blank { background: none; border-color: transparent; pointer-events: none; }
.mcell:hover { border-color: var(--line-2); }
.mcell:active { transform: scale(.98); }
.mcell.sel { border-color: var(--teal-line); background: var(--teal-tint); }
.mnum {
  font: 700 11.5px/1 var(--sans);
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.mcell.today .mnum { color: var(--teal-hi); font-weight: 800; }
.mdots { display: flex; gap: 3px; flex-wrap: wrap; margin-top: auto; }
.mdot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-2); }
.mdot.unv { background: var(--rec); }
.mchip {
  display: none;
  font: 600 10.5px/1.2 var(--sans);
  color: var(--ink-2);
  background: var(--fill);
  border-radius: 5px;
  padding: 3px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.mchip.unv { color: var(--rec); background: var(--rec-tint); }
.mchip.cancelled { text-decoration: line-through; opacity: .6; }
.mmore { font: 600 10px/1 var(--sans); color: var(--muted); background: none; padding: 1px 6px; }
.mhint { text-align: center; padding: 18px 0 4px; }
@media (min-width: 700px) {
  .mcell { min-height: 96px; }
  .mchip { display: block; }
  .mdots { display: none; }
}

/* ---- source message (whatsapp) ---- */
.source { margin-top: 14px; }
.source summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px 0;
  -webkit-user-select: none;
  user-select: none;
  transition: color .2s var(--ease);
}
.source summary::-webkit-details-marker { display: none; }
.source summary::before {
  content: '\203A';
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--muted);
  transition: transform .2s var(--ease);
}
.source[open] summary::before { transform: rotate(90deg); }
.source summary:hover { color: var(--ink-2); }
.source blockquote {
  margin: 8px 0 2px 3px;
  padding: 2px 0 2px 12px;
  border-left: 2px solid var(--teal-line);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-2);
  white-space: pre-wrap;
}

.conf.high { color: var(--teal-hi); }
.conf.medium { color: var(--brass); }
.conf.low { color: var(--rec); }

/* ---- actions ---- */
.actions { display: flex; gap: 8px; margin-top: 16px; }
.actions button {
  appearance: none;
  cursor: pointer;
  font: 700 11px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  padding: 13px 18px;
  transition: transform .15s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.actions button:active { transform: scale(.98); }
button.verify {
  /* sized to its label, not stretched across the card */
  color: var(--teal-hi);
  background: var(--teal-tint);
  border: 1px solid var(--teal-line);
  padding: 10px 20px;
}
button.verify:hover { background: var(--teal-line); }
button.small {
  color: var(--ink-2);
  background: none;
  border: 1px solid var(--line-2);
}
button.small:hover { color: var(--ink); border-color: var(--ink-3); }
button[disabled] { opacity: .45; pointer-events: none; }

/* one pinned day, opened from verify's "change" */
.focus-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 4px;
}
.focus-bar button.small {
  appearance: none; cursor: pointer;
  font: 700 10px/1 var(--sans);
  letter-spacing: .14em; text-transform: uppercase;
  border-radius: var(--r-pill);
  padding: 9px 14px;
  color: var(--ink-2); background: none;
  border: 1px solid var(--line-2);
}
.focus-bar button.small:hover { color: var(--ink); border-color: var(--ink-3); }

/* verified settles: one teal pulse after the tap */
.card.settle, tr.settle td { animation: settle 1.1s var(--ease); }
@keyframes settle { 0% { background: var(--teal-tint); } }
.card.settle { animation-name: settlecard; }
@keyframes settlecard {
  0% { border-color: var(--teal-line); box-shadow: var(--glass-in), 0 0 26px var(--teal-tint); }
}

/* ---- verify tab ---- */
.sect { display: flex; align-items: center; gap: 12px; margin: 12px 4px 2px; }
.sect:first-child { margin-top: 0; }
.sect .rule { flex: 1; height: 1px; background: var(--line); }
.sect .n { color: var(--ink-2); }
.sect .n.rec { color: var(--rec); }
.sect.brass .t { color: var(--brass); }

.sub { display: block; margin-bottom: 8px; }
.sub .ok { color: var(--teal-hi); }
.card .sub + .client { margin-bottom: 12px; }

.diffs { display: flex; flex-direction: column; gap: 7px; margin: 12px 0 2px; }
.diff {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.diff .dk { min-width: 54px; }
.diff s { color: var(--muted); text-decoration-color: var(--muted); }
.diff .arrow { color: var(--teal-hi); font-size: 13px; }
.diff .dv { color: var(--ink); font-weight: 700; }

.reason {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.015em;
  color: var(--brass);
  margin-bottom: 6px;
}

/* ---- headline: the loud line on wrap + empty screens ---- */
.wrap-banner { text-align: center; padding: 36px 16px 24px; }
.headline {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-bottom: 12px;
}
.empty-state { text-align: center; padding: 76px 20px; }
.empty-state .headline { font-size: 26px; color: var(--ink-2); }

/* ---- notice ---- */
#notice {
  position: fixed;
  left: 50%; bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 50;
  white-space: nowrap;
  border-color: var(--rec-line);
  color: var(--ink);
  font: 600 12px/1 var(--sans);
  letter-spacing: .05em;
  padding: 13px 20px;
  border-radius: var(--r-pill);
  box-shadow: var(--glass-in), var(--glass-sh-2);
}
#notice.ok { border-color: var(--teal-line); }

/* ---- entrance (tab switch only, not the 60s refresh) ---- */
.enter > *, .enter .col > * { animation: rise .4s var(--ease) both; }
.enter > *:nth-child(2), .enter .col > *:nth-child(2) { animation-delay: .05s; }
.enter > *:nth-child(3), .enter .col > *:nth-child(3) { animation-delay: .1s; }
.enter > *:nth-child(n+4), .enter .col > *:nth-child(n+4) { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ---- focus + reduced motion ---- */
:where(button, a, .field, summary):focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
