/* ============================================================================
   app.css — components. Every colour comes from tokens.css; none is declared
   here as a literal, so both themes resolve as a set.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

/* A figure is read, not written. The I-beam says "type here", which is a
   promise this board cannot keep — so the pointer stays a pointer, and the
   text stays selectable for anyone who wants to copy a number out. */
body { cursor: default; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-md);
  line-height: 1.5;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
}

/* Every figure on the page is mono with tabular digits — that is the rule that
   makes columns line up and stops numbers shimmying as they update. */
.num, td.num, .stat-v, .flow-n, .kpi-v { font-family: var(--num); font-variant-numeric: tabular-nums; }
/* Genuinely code — a config key, an env var — still wants a real monospace. */
code, kbd, pre { font-family: var(--mono); font-size: .94em; }

.ico { width: 1em; height: 1em; flex: none; }
.flow-arrow .ico { width: 15px; height: 15px; display: block; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
::selection { background: var(--surface-3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============================================================== app shell == */
.app { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }

.app.rail-hidden { grid-template-columns: minmax(0, 1fr); }
.app.rail-hidden .rail { display: none; }
.rail-hide { padding: 2px 5px; color: var(--ink-3); }
.rail {
  position: sticky; top: 0; align-self: start; height: 100vh;
  display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--border);
}

.rail-top { padding: 18px 16px 14px; }
.logo { display: flex; align-items: center; gap: 9px; font-size: var(--t-md); font-weight: 600; letter-spacing: -0.01em; }
.logo-mark {
  width: 22px; height: 22px; border-radius: var(--r-sm); flex: none;
  background: var(--action); color: var(--ink-on);
  display: grid; place-items: center; font-family: var(--num); font-size: 11px; font-weight: 600;
}
.logo-sub { font-size: var(--t-xs); color: var(--ink-3); letter-spacing: .04em; margin-top: 3px; padding-left: 31px; }

.nav { flex: 1; overflow-y: auto; padding: 6px 10px; display: flex; flex-direction: column; gap: 1px; }
.nav-label {
  font-size: var(--t-xs); font-weight: 500; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-3); padding: 16px 8px 6px;
}
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: var(--r-sm);
  color: var(--ink-2); text-decoration: none; font-size: var(--t-md); font-weight: 450;
  transition: background .12s var(--ease), color .12s var(--ease);
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--surface-3); color: var(--ink); font-weight: 550; }
.nav svg { width: 15px; height: 15px; flex: none; stroke-width: 1.6; }
.nav .count {
  margin-left: auto; font-family: var(--num); font-size: var(--t-xs);
  padding: 1px 6px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2);
}
/* Work that is genuinely late is the one place the rail shouts: a filled red
   chip with a white figure, not a tinted one. It has to be readable from the
   other side of a desk. */
.nav .count.alert {
  background: var(--bad); color: #fff; font-weight: 700;
}

.rail-foot { padding: 10px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 1px; }
.whoami { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: var(--r-sm); }
.avatar {
  width: 26px; height: 26px; border-radius: 999px; flex: none; display: grid; place-items: center;
  background: var(--surface-3); color: var(--ink-2); font-family: var(--num); font-size: var(--t-xs); font-weight: 600;
}
.whoami-t { min-width: 0; }
.whoami-t b { display: block; font-size: var(--t-sm); font-weight: 550; }
.whoami-t span { display: block; font-size: var(--t-xs); color: var(--ink-3); }

/* ================================================================= topbar == */
.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 24px; min-height: 57px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar h1 { font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.015em; }
.topbar .sub { font-size: var(--t-sm); color: var(--ink); font-weight: 500; white-space: nowrap; }
/* The Dashboard's tabs stand where a page title would: a size up, in ink. */
.seg.dash-tabs { gap: 24px; }
.seg.dash-tabs button { font-size: var(--t-md); padding: 4px 0 7px; }
.grow { flex: 1 1 auto; }

/* Every pixel above the first chart is a pixel the chart does not get. The
   page opens on the figures and the trend they belong to; the tables are for
   whoever scrolls. */
.page { padding: 14px 24px 72px; display: flex; flex-direction: column; gap: 12px; }
.page.narrow { max-width: 880px; }

/* ================================================================ controls == */
.btn {
  appearance: none; cursor: pointer; font: inherit; font-size: var(--t-sm); font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 6px 11px; border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-1);
  transition: background .12s var(--ease), border-color .12s var(--ease), opacity .12s;
}
.btn:hover { background: var(--surface-2); }
.btn svg { width: 14px; height: 14px; stroke-width: 1.7; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-primary { background: var(--action); color: var(--ink-on); border-color: var(--action); }
.btn-primary:hover { background: var(--action-hover); border-color: var(--action-hover); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-danger { color: var(--bad); border-color: var(--border-strong); }
.btn-danger:hover { background: var(--bad-bg); border-color: var(--bad); }
.btn-lg { padding: 9px 16px; font-size: var(--t-md); }

/* A tray with a raised tile inside it is a control from a different board. A
   set of names with a rule under the one you are on is the same gesture with
   nothing drawn around it — and it is the same gesture everywhere .seg is
   used: the dashboard's tabs, a month toggle, a sub-view picker. */
.seg { display: inline-flex; background: none; border: 0; border-radius: 0; padding: 0; gap: 20px; }
.seg button {
  appearance: none; cursor: pointer; font: inherit; font-size: var(--t-sm); font-weight: 450;
  color: var(--ink); background: none; border: 0; border-bottom: 1px solid transparent; border-radius: 0;
  padding: 3px 0 6px;
  transition: color .12s var(--ease), border-color .12s var(--ease);
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: none; color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--ink); padding-bottom: 5px; }

.sel { position: relative; display: inline-flex; }
.sel select, .inp, .ta {
  appearance: none; font: inherit; font-size: var(--t-sm); color: var(--ink);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  padding: 6px 10px; box-shadow: var(--shadow-1); width: 100%;
  transition: border-color .12s var(--ease);
}
.sel select { cursor: pointer; padding-right: 26px; }
.sel::after {
  content: ''; position: absolute; right: 9px; top: 50%; pointer-events: none;
  width: 5px; height: 5px; border-right: 1.4px solid var(--ink-3); border-bottom: 1.4px solid var(--ink-3);
  transform: translateY(-4px) rotate(45deg);
}
.sel.on select { border-color: var(--focus); }
.inp:hover, .ta:hover, .sel select:hover { border-color: var(--ink-3); }
.inp::placeholder, .ta::placeholder { color: var(--ink-3); }
.ta { resize: vertical; min-height: 84px; line-height: 1.55; font-size: var(--t-md); }
.inp.num-in { font-family: var(--num); }

.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: var(--t-sm); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i {
  width: 30px; height: 18px; border-radius: 999px; background: var(--surface-3); position: relative;
  transition: background .16s var(--ease); flex: none;
}
.switch i::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 999px;
  background: var(--surface); box-shadow: var(--shadow-1); transition: transform .16s var(--ease);
}
.switch input:checked + i { background: var(--action); }
.switch input:checked + i::after { transform: translateX(12px); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: block; cursor: pointer; font-size: var(--t-sm); color: var(--ink-2);
  border: 1px solid var(--border-strong); border-radius: 999px; padding: 5px 12px;
  background: var(--surface); transition: all .12s var(--ease); user-select: none;
}
.chip span:hover { border-color: var(--ink-3); color: var(--ink); }
.chip input:checked + span { background: var(--action); border-color: var(--action); color: var(--ink-on); }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ================================================================== cards == */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; }

.text-left { text-align: left !important; }
.text-right { text-align: right !important; }
.text-center { text-align: center !important; }
.card-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.card-h h2 { font-size: var(--t-md); font-weight: 600; letter-spacing: -0.01em; }
.card-h .hint { font-size: var(--t-sm); color: var(--ink-2); }
.card-b { padding: 16px; }
.card-b.flush { padding: 0; }

.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.side { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }

/* ============================================================= stat tiles == */
/* Separate cards, each tinted with its own metric's hue — a flat directional
   wash and a matching border, so a tile is identifiable before a word is read.

   Sized to be scanned: this strip is the first thing on the board now, so it
   has to fit on one screen rather than dominate it. One size for every label,
   one for every value, one for every sub-line — the strip reads as a set, and
   no tile looks more important than its neighbour for reasons of type rather
   than of data. */
/* Eight money tiles have to sit on one line: the row reads as a sum, and a
   figure that falls to a line of its own stops being part of it. */
/* No gap and no frames: the tiles are divided by a hairline between them,
   the way columns in a statement are, rather than floated as separate cards
   on a grey page. One rule does the work eight borders used to. */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(152px, 100%), 1fr)); align-items: stretch;
         border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
/* A secondary row: counts and rates, under the money the business is run on.
   auto-FILL, not auto-fit — the empty tracks stay empty, so three tiles are
   three small tiles rather than three enormous ones. */
.stats.sm { grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); margin-top: 0; border-top: 0; }
.stats.sm .stat { padding: 8px 10px 9px; }
.stats.sm .stat-l { font-size: 9px; }
.stats.sm .stat-v { font-size: var(--t-lg); margin-top: 2px; }
.stats.sm .stat-g { font-size: 10px; margin-top: auto; padding-top: 4px; }
/* A definition that used to be a paragraph under the tiles. It cost sixty
   pixels of the first screen — the height of the chart the tiles are read
   against — to say something you need once. It is on the tile now. */
.stat.has-hint { cursor: default; }
.stat {
  position: relative; padding: 13px 16px 14px;
  display: flex; flex-direction: column; gap: 2px;
  transition: background .14s var(--ease);
}
.stat + .stat { border-left: 1px solid var(--border); }
.stat:hover { background: var(--surface-2); }

/* A met goal turns the frame gold and puts a trophy in the corner. The border
   does the work: eight tiles read as a row of frames, and the gold ones are
   countable without reading a single figure. */
/* A met goal is a mark on the edge of the tile, not a gold frame around it.
   Eight tiles still read as one row and the gold ones are still countable
   without reading a figure — but the row stays a row. */
.stat.hit { box-shadow: inset 0 2px 0 var(--goal); }
.stat.hit .stat-g { color: var(--goal); }
.stat-win { position: absolute; top: 10px; right: 12px; font-size: 11px; line-height: 1; opacity: .9; }
/* A light passes over a met goal now and then — one transform on one pseudo
   element, GPU-composited, nothing the board has to compute. Off entirely for
   anyone who asked the OS for less motion. */

/* The tiles sit closer to what follows them than cards sit to each other:
   they are the headline, the rest is the page. */
.stats + * { margin-top: -4px; }

/* Master view: one bar, the cash split into what it cost and what is left. */
.stackbar { display: flex; height: 10px; border-radius: 0; overflow: hidden; background: var(--surface-3); gap: 0; }
/* A hairline of the paper between segments, so the ladder reads as separate
   parts without a rounded pill around each one. */
.stackbar i { display: block; height: 100%; min-width: 2px; box-shadow: 1px 0 0 var(--surface); }
.stackbar i:last-child { box-shadow: none; }
.legend .lg { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-sm); color: var(--ink-2); }
.legend .lg i { width: 12px; height: 2px; border-radius: 0; display: inline-block; }

/* The classic green dot: real data behind this source in the last 30 days. */
.live { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.live.on  { background: #22c55e; box-shadow: 0 0 0 2px color-mix(in srgb, #22c55e 22%, transparent); }
.live.off { background: #e5484d; box-shadow: 0 0 0 2px color-mix(in srgb, #e5484d 18%, transparent); }
.live.warm { background: #e0a106; box-shadow: 0 0 0 2px color-mix(in srgb, #e0a106 20%, transparent); }

/* Setter team: a tracked link, shown short, copied whole. */
code.lnk { font-size: var(--t-xs); color: var(--ink-2); background: var(--surface-2); padding: 3px 6px; border-radius: 4px; white-space: nowrap; }
/* The same class on a <button> had no rule at all, so "Forgot your password?"
   and the × that drops a chip were drawn by the operating system — a grey
   bevelled box in the middle of the sign-in card. A button that reads as prose
   is set as prose. */
button.lnk {
  font: inherit; font-size: inherit; color: var(--ink-2); background: none; border: 0;
  padding: 0; cursor: pointer; border-bottom: 1px solid var(--border); line-height: 1.3;
  transition: color .14s var(--ease), border-color .14s var(--ease);
}
button.lnk:hover { color: var(--ink); border-color: var(--ink); }

/* Master view: the ring and the stacked months. */
.donut { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.donut svg { width: 172px; height: 172px; flex: none; }
.donut-v { font-family: var(--num); font-size: 15px; font-weight: 700; fill: var(--ink); font-variant-numeric: tabular-nums; }
.donut-l { font-size: 7.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; fill: var(--ink-3); }
.donut-legend { display: flex; flex-direction: column; gap: 7px; min-width: 0; flex: 1 1 200px; }
.dl { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; font-size: var(--t-sm); color: var(--ink-2); }
.dl i { width: 10px; height: 10px; border-radius: 3px; }
.dl b { font-family: var(--num); color: var(--ink); font-variant-numeric: tabular-nums; }
.dl .dim { font-family: var(--num); font-variant-numeric: tabular-nums; }
.bars { display: block; width: 100%; height: 220px; }
.bars .ax { font-size: 11px; fill: var(--ink-3); font-family: var(--num); }
.bars path { transition: opacity .12s; }
.bars path:hover { opacity: .8; }

/* Settings → Monthly goals: the table of inputs. */
.goals-grid td.num { padding: 2px 4px; }
.goals-grid td.name { padding-top: 4px; padding-bottom: 4px; }
/* Room for eight digits and nothing more; no box until the cell is hovered
   or being typed in, so the grid reads like a sheet, not a form. */
.goals-grid .goal-in { width: 104px; padding: 5px 22px 5px 8px; text-align: right; font-size: var(--t-md); border-color: transparent; background: transparent; }
.goals-grid .gcell:hover .goal-in, .goals-grid .goal-in:focus { border-color: var(--border-strong); background: var(--surface); }
/* No spinner arrows on any number box: they are noise beside a typed figure. */
.inp[type=number]::-webkit-outer-spin-button, .inp[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.inp[type=number] { -moz-appearance: textfield; appearance: textfield; }
/* A goal cell: the box, a ⊘ to switch the goal off, a ✓ to lock a change
   in, and the fill handle in the corner — all hidden until the cell is
   hovered, focused or edited. */
.gcell { position: relative; display: inline-block; }
.gcell .g-off, .gcell .g-ok { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: none; cursor: pointer; color: var(--ink-3);
  font-size: 12px; line-height: 1; padding: 3px 4px; border-radius: 4px; opacity: 0; pointer-events: none; }
/* Only the button that is showing can be clicked — the hidden one must not
   sit on top of it and swallow the click. */
.gcell:hover .g-off, .gcell:focus-within .g-off, .gcell.off .g-off { pointer-events: auto; }
.gcell.dirty .g-off { pointer-events: none; }
.gcell.dirty .g-ok { pointer-events: auto; }
.gcell .g-off { right: 4px; }
.gcell .g-ok { right: 4px; color: var(--good); font-weight: 700; }
.gcell:hover .g-off, .gcell:focus-within .g-off { opacity: .8; }
.gcell.dirty .g-off { opacity: 0; }
.gcell.dirty .g-ok { opacity: 1; background: color-mix(in srgb, var(--good) 14%, transparent); }
.gcell .g-off:hover, .gcell .g-ok:hover { opacity: 1; background: var(--surface-2); }
.gcell.dirty .goal-in { border-color: var(--good); }
.gcell.off .goal-in { color: var(--ink-3); background: linear-gradient(to top right, transparent calc(50% - .5px), var(--ink-3) calc(50% - .5px), var(--ink-3) calc(50% + .5px), transparent calc(50% + .5px)); }
.gcell.off .g-off { opacity: .9; color: var(--ink); }
.gcell .g-fill { position: absolute; right: -3px; bottom: -3px; width: 8px; height: 8px; border-radius: 2px; background: var(--focus); border: 1px solid var(--surface); cursor: crosshair; opacity: 0; z-index: 2; }
.gcell:hover .g-fill, .gcell:focus-within .g-fill, .gcell.filling .g-fill { opacity: 1; }
.gcell.fill-target .goal-in { background: color-mix(in srgb, var(--focus) 14%, transparent); border-color: var(--focus); }
.chk { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.chk input { margin: 0; cursor: pointer; }
.chk .live { cursor: pointer; }
.goals-grid th { white-space: nowrap; }
.goals-grid th.mk { color: var(--series-3); }

.stat-h { display: flex; align-items: flex-start; gap: 8px; min-height: 13px; }
/* One line, always. A label that wrapped to two ("SALES COMMISSIONS") pushed
   its own figure half a line below every figure beside it, and a row of tiles
   that is meant to read as a sum stopped lining up at all. Labels are kept
   short enough to fit; this is the guarantee, not the plan. */
.stat-l {
  font-size: 9.5px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink); font-weight: 650;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
/* Room for the trophy, and only on the tile that has one. Every tile used to
   reserve it, which cost fifteen pixels of label width on all of them and
   truncated "CASH COLLECTED" to make space for a cup that was not there. */
.stat.hit .stat-l { padding-right: 15px; }
.stat-v { font-size: 25px; font-weight: 500; letter-spacing: -0.028em; line-height: 1.15; margin-top: 4px; white-space: nowrap; }
.stat-d { font-size: var(--t-xs); color: var(--ink-2); display: flex; align-items: center; gap: 4px; }
.stat-d b { font-weight: 600; color: var(--ink-2); }

/* The target, always in the goal colour, always the last line. */
.stat-g {
  margin-top: auto; padding-top: 6px;
  font-size: var(--t-xs); font-weight: 450; letter-spacing: .02em;
  color: var(--ink-3); font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- meters -- */
/* A quantity as a count of lit segments out of twenty. Twenty is the number:
   enough that a fill reads as a proportion, few enough that you can actually
   count them — which is the whole advantage over a smooth bar. */
.meter { position: relative; display: flex; gap: 3px; height: 22px; }
.meter s {
  flex: 1; height: 100%; border-radius: 2px; background: var(--off);
  text-decoration: none;
}
.meter s.on { background: var(--tone, var(--series-1)); }
/* Where it should have reached by now. */
/* The goal mark, in the one gold used for every goal on the board. A
   surface-coloured halo keeps it visible whether it lands on a lit segment or
   an unlit one. */
.meter u {
  position: absolute; top: -3px; bottom: -3px; width: 2px; border-radius: 1px;
  background: var(--goal); box-shadow: 0 0 0 1.5px var(--surface);
  text-decoration: none;
}

/* ---------------------------------------------------------------- gauges -- */
/* An open ring of ticks, 270° from the lower left. Same argument as the meter:
   a count lands faster than a length. */
.gauge { display: block; width: 100%; max-width: 128px; margin: 0 auto; }
.gauge-wrap { text-align: center; color: var(--grade-none); }
.gauge-v {
  font-family: var(--num); font-variant-numeric: tabular-nums;
  font-size: var(--t-xl); font-weight: 600; letter-spacing: -0.03em;
  margin-top: -46px; margin-bottom: 26px; position: relative;
}
.gauge-n { font-size: var(--t-sm); color: var(--ink-3); }

/* A change, in the direction that is good for the thing it describes. */
.badge {
  font-family: var(--num); font-variant-numeric: tabular-nums;
  font-size: var(--t-xs); font-weight: 600;
  padding: 2px 7px; border-radius: var(--r-sm);
  color: var(--tone, var(--ink-2));
  background: color-mix(in srgb, var(--tone, var(--ink-3)) 16%, transparent);
}

/* An actual with its target beneath it, inside a table or a figure. Same shape
   wherever it appears, so the pair always reads as one scale. */
.of {
  display: block; font-size: var(--t-xs); font-weight: 600;
  font-family: var(--num); font-variant-numeric: tabular-nums;
}

/* Distance from goal, one scale, wherever it is carried — a figure, a gauge's
   ticks, a table cell. */
.g-on    { color: var(--grade-on); }
.g-near  { color: var(--grade-near); }
.g-under { color: var(--grade-under); }
.g-bad   { color: var(--grade-bad); }
.g-none  { color: var(--grade-none); }
.pf-n.g-none, .stat-v.g-none { color: var(--ink); }   /* an ungraded figure is still a figure */

/* ======================================================== the funnel flow == */
/* Each stage is a box the height of its goal, with the volume filling it from
   the bottom. The boxes narrow left to right because the goals do; how full
   each one is says how the month is going; and a fill that overruns its box is
   past goal, readable from across the room without a number.

   One shared scale across all four, so the funnel is a shape before it is a
   set of figures. */
.pf { display: grid; align-items: start; overflow-x: auto; column-gap: 6px; padding-top: 8px; text-align: center; }

/* Kept short on purpose: the pipeline is one glance on the way down the
   page, not the page. */
.pf-col { position: relative; height: 92px; }

/* The goal's worth of bar, hatched. Drawing the shortfall rather than leaving
   it as empty space turns "how much is left" into a shape you can measure by
   eye — it is the same trick as a fuel gauge marking the empty half. */
.pf-bar {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 68px; border-radius: 6px 6px 3px 3px;
  background-color: color-mix(in srgb, var(--ink) 5%, transparent);
  background-image: repeating-linear-gradient(45deg,
    color-mix(in srgb, var(--ink) 11%, transparent) 0 2px,
    transparent 2px 6px);
}

/* What is actually done, solid, growing from a baseline it never leaves — so
   the foot stays square while the head is rounded. */
.pf-got {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 68px; border-radius: 6px 6px 3px 3px;
  transition: height .35s var(--ease);
}
/* Where a fill meets an overflow both edges go square, so the two read as one
   bar rather than two stacked with a notch between them. */
.pf-got.capped { border-radius: 0 0 3px 3px; }

/* Past goal, in gold rather than the stage colour — the same hatching as the
   shortfall, so the texture always means "not ordinary volume" and the colour
   says which kind: grey below is what is missing, gold above is what was won
   on top. Reusing the stage colour made it read as a bar on top of a bar. */
.pf-over {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 68px; border-radius: 6px 6px 0 0;
  background-color: color-mix(in srgb, var(--goal) 26%, transparent);
  background-image: repeating-linear-gradient(45deg,
    color-mix(in srgb, var(--goal) 85%, transparent) 0 2px,
    transparent 2px 6px);
}

/* The rate as an arc, with the flow arrow in the hole. */
.pf-ring {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 44px; height: 44px;
}
.pf-ring svg { display: block; width: 100%; height: 100%; }
.pf-ring circle { fill: none; stroke-width: 5.5; }
.pf-ring-t { stroke: var(--surface-3); }
.pf-ring-a { stroke: currentColor; stroke-linecap: round; }
/* The target rate, in the goal colour and heavy enough to actually see. */
.pf-ring-g { stroke: var(--goal); stroke-width: 3; stroke-linecap: round; }
.pf-arrow {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; color: var(--ink-3);
}
.pf-arrow .ico { width: 15px; height: 15px; }

/* The goal: emoji, line, figure — laid out as one row with the line in the
   middle. The two ends sit outside the bar's own width on purpose, so when a
   fill grows past its goal the only thing crossing it is the rule itself. A
   number printed over a bar is unreadable exactly when it matters most. */
.pf-goal {
  position: absolute; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 4px;
  line-height: 1; pointer-events: none;
}
/* Just past the bar on each side — far enough to read as crossing it, not so
   far that the rule becomes the widest thing in the column. Bar is 68px. */
.pf-goal span { flex: 0 1 84px; height: 0; border-top: 2px solid var(--goal); }
.pf-goal i { font-style: normal; font-size: 11px; flex: none; }
.pf-goal b {
  flex: none; font-family: var(--num); font-variant-numeric: tabular-nums;
  font-size: 10px; font-weight: 700; letter-spacing: 0; color: var(--goal);
}

/* Figure, then name, then how it stands — three lines, one per idea, rather
   than a figure with a goal wedged in beside it. */
.pf-n {
  font-family: var(--num); font-variant-numeric: tabular-nums;
  font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink); padding-top: 8px; white-space: nowrap;
}
.pf-l, .pf-goal-l { white-space: nowrap; }
/* The stage name, set as a label: caps and tracked, so the row of names reads
   as one band and never competes with the figure above it. */
.pf-l {
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-2);
  padding-top: 5px; line-height: 1.3;
}
/* The goal underneath, all in gold, with the emoji sitting on the text's own
   centre line rather than floating above it. */
.pf-goal-l {
  /* flex, not inline-flex: it is its own line under the name, not a tail on
     the end of it. */
  display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 4px;
  font-style: normal; font-size: var(--t-xs); font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; color: var(--goal);
  font-family: var(--num); font-variant-numeric: tabular-nums;
}
.pf-goal-l::first-letter { font-size: 1.05em; }

@media (max-width: 620px) {
  .pf       { column-gap: 3px; }
  .pf-col   { height: 108px; }
  .pf-bar, .pf-got, .pf-over { max-width: 48px; }
  .pf-goal  { max-width: 58px; }
  .pf-ring  { width: 40px; height: 40px; }
  .pf-arrow .ico { width: 12px; height: 12px; }
  .pf-n     { font-size: var(--t-lg); }
  .pf-l     { font-size: var(--t-sm); }
}

/* ========================================================= the compare board */
/* A rule under cash splits the funnel counts above from the money below — two
   kinds of figure that happen to share a table. */
.rule { border-bottom: 2px solid var(--border-strong) !important; }
thead th .of { color: var(--ink-3); font-weight: 400; }
.legend.wrap { flex-wrap: wrap; row-gap: 4px; margin-bottom: 6px; }

/* The pinned period: a faint column wash and a gold header, so it stays
   findable while the eye runs across whichever row you came for. */
th.best, td.best { background: color-mix(in srgb, var(--goal) 8%, transparent); }
th.best .c-pin { color: var(--goal); }
th.best .c-pin .of { color: var(--goal); opacity: .85; }

/* A column header is the pin control. It has to look pressable without
   becoming a button in a row of labels. */
.c-pin {
  appearance: none; background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: inherit; cursor: pointer; text-align: right; width: 100%;
  letter-spacing: inherit; text-transform: inherit;
}
.c-pin:hover { color: var(--goal); }
.c-pin:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }

/* More columns on screen: a comparison is worth more the more of it you can
   see at once, and the figures are tabular so they stay readable tight. */
#c-body thead th, #c-body tbody td { padding-left: 9px; padding-right: 9px; }

/* The goal column reads as a reference, not as another period — its own ground,
   ruled off on both sides, in the one gold every goal uses. */
th.goal, td.goal {
  background: var(--surface-2); color: var(--goal);
  border-left: 1px solid var(--border); border-right: 1px solid var(--border);
}
th.goal .of { color: var(--goal); opacity: .8; }

/* ============================================================== recordings == */
/* A tile that reads as a video and is a link. There is no player here on
   purpose — the call lives in Fathom, and embedding it would mean loading a
   video on a page where somebody is scanning twenty of them. It looks
   pressable because pressing it does take you to the call. */
.tape { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 14px; }
.reel { display: flex; flex-direction: column; gap: 9px; }

.reel-v {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r);
  background:
    radial-gradient(120% 100% at 50% 0%, color-mix(in srgb, var(--series-1) 22%, var(--surface-2)) 0%, var(--surface-2) 70%);
  border: 1px solid var(--border); overflow: hidden;
  transition: border-color .14s var(--ease), transform .14s var(--ease);
}
.reel-v:hover { border-color: var(--series-1); transform: translateY(-1px); }
.reel-v:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.reel-play {
  position: absolute; inset: 0; margin: auto; width: 46px; height: 46px;
  display: grid; place-items: center; border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 88%, transparent); color: var(--surface);
  transition: transform .14s var(--ease);
}
.reel-play .ico { width: 22px; height: 22px; margin-left: 1px; }
.reel-v:hover .reel-play { transform: scale(1.06); }

.reel-time {
  position: absolute; right: 8px; bottom: 8px;
  padding: 2px 6px; border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--ink) 78%, transparent); color: var(--surface);
  font-size: var(--t-xs); font-weight: 600; font-variant-numeric: tabular-nums;
}

.reel-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.reel-n { font-size: var(--t-md); font-weight: 600; }
.reel-m { font-size: var(--t-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.reel-o { margin-top: 4px; }
.reel-a { display: flex; gap: 6px; }
.reel-a .btn { flex: 1; justify-content: center; padding: 5px 8px; font-size: var(--t-xs); }

/* ================================================== the closer's own board == */
/* Bars on the left, figures on the right. The bars answer "am I on track",
   which is a shape; the figures answer "what exactly", which is a number. */
.split-num { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; }

.kpi-bars { display: flex; flex-direction: column; gap: 15px; }
.kbar-h, .kbar-f { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.kbar-h { font-size: var(--t-md); font-weight: 550; margin-bottom: 6px; }
.kbar-h b { font-family: var(--num); font-variant-numeric: tabular-nums; font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.02em; }
/* The track holds everything. It is scaled to whichever is larger — the goal or
   the figure — so a bar past goal grows inside it and the card never has to
   clip anything. */
.kbar-track { position: relative; height: 9px; border-radius: 5px; background: var(--off); }
.kbar-track i { position: absolute; inset: 0 auto 0 0; border-radius: 5px; background: currentColor; }
/* The stretch past goal, in the goal's own gold. */
.kbar-track s { position: absolute; top: 0; bottom: 0; border-radius: 0 5px 5px 0; background: var(--goal); text-decoration: none; }
/* Where the goal sits on that scale — at the far right until it is beaten. */
.kbar-track u {
  position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px;
  border-radius: 1px; background: var(--goal); box-shadow: 0 0 0 1.5px var(--surface);
}
.kbar-f .over { color: var(--goal); font-weight: 700; }
.won { font-style: normal; font-size: 12px; }

/* Four states, and they mean pace rather than distance: on track is blue
   because it is a neutral "keep going", not a reward; gold is the reward, and
   it is the same gold every goal on this board uses. */
.t-hit     { color: var(--goal); }
.t-ontrack { color: var(--todo); }
.t-behind  { color: var(--warn); }
.t-far     { color: var(--bad); }
.t-none    { color: var(--ink-2); }
.kbar-f { margin-top: 6px; font-size: var(--t-xs); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.kbar-f em { font-style: normal; font-weight: 600; color: var(--goal); }

/* The number a closer actually came to look at. The only card on their board
   with the goal colour as its ground. */
.stat.pay {
  background: linear-gradient(150deg, color-mix(in srgb, var(--goal) 20%, var(--surface)) 0%, var(--surface) 70%);
  border-color: color-mix(in srgb, var(--goal) 45%, var(--border));
}
.pay-v {
  font-family: var(--num); font-variant-numeric: tabular-nums;
  font-size: var(--t-3xl); font-weight: 600; letter-spacing: -0.04em;
  line-height: 1.05; color: var(--goal); margin: 6px 0 4px;
}

/* Pace, as bars rather than rails. Two per window — yours and the floor's —
   each scaled to its OWN goal, so the two shapes are directly comparable.
   Scaling both to the floor's target would leave a closer's bar a fifth of the
   height and tell them nothing about themselves. */
.pace-set { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; }
.pwin-h {
  font-size: var(--t-md); font-weight: 600; margin-bottom: 14px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
}
.pwin-h em {
  font-style: normal; font-size: var(--t-xs); font-weight: 500; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.pwin-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.pcol { text-align: center; }
.pcol-bar { position: relative; height: 116px; }

/* The goal, hatched, exactly as the funnel draws it — same idea, same look. */
.pcol-box {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 46px; border-radius: 8px 8px 3px 3px;
  background-color: color-mix(in srgb, var(--ink) 5%, transparent);
  background-image: repeating-linear-gradient(45deg,
    color-mix(in srgb, var(--ink) 11%, transparent) 0 2px, transparent 2px 6px);
}
.pcol-fill {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 100%; max-width: 46px; border-radius: 8px 8px 3px 3px;
  background: var(--tok); transition: height .35s var(--ease);
}
/* A bar past its goal takes the goal colour above the line, the same way the
   funnel marks an overrun. */
.pcol-fill.t-hit { background: linear-gradient(180deg, var(--goal) 0 var(--over, 0%), var(--tok) var(--over, 0%)); }

.pcol-goal {
  position: absolute; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 3px;
  line-height: 1; pointer-events: none;
}
.pcol-goal span { flex: 0 1 54px; height: 0; border-top: 2px solid var(--goal); }
.pcol-goal i { font-style: normal; font-size: 10px; flex: none; }
.pcol-goal b {
  flex: none; font-family: var(--num); font-variant-numeric: tabular-nums;
  font-size: 9.5px; font-weight: 700; color: var(--goal);
}

.pcol-n {
  font-family: var(--num); font-variant-numeric: tabular-nums;
  font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.02em; margin-top: 12px;
}
.pcol-l { font-size: var(--t-xs); color: var(--ink-3); margin-top: 2px; }

.chart.small { height: 190px; }

@media (max-width: 1000px) { .split-num { grid-template-columns: minmax(0, 1fr); } }

/* ===================================================== the by-closer table == */
/* Any rate column can be the one the floor is ranked on. The header is the
   control, and the live one is marked so you always know what "top" means —
   "who is best" has no answer until you say best at what. */
th.rank .c-pin { text-align: right; }
th.rank.on { color: var(--goal); }

/* The leader: a gold rail down their row and a cup by the name. The rail is on
   the first cell only, so it reads as a marker on the row rather than a box
   drawn around it. */
td.lead { background: color-mix(in srgb, var(--goal) 7%, transparent); }
td.name.lead { box-shadow: inset 3px 0 0 var(--goal); }
.lead-cup { font-style: normal; margin-right: 6px; }

/* ================================================================= tables == */
.tbl-wrap { overflow-x: auto; border-radius: inherit; }
table { width: 100%; border-collapse: collapse; }
thead th {
  position: sticky; top: 0; z-index: 1; text-align: right; white-space: nowrap;
  font-size: 9.5px; font-weight: 650; color: var(--ink); letter-spacing: .13em; text-transform: uppercase;
  padding: 9px 12px; background: var(--surface); border-bottom: 1px solid var(--border);
}
/* The faintest vertical rules: an Excel grid read at a whisper, so a figure
   belongs to a column without the column shouting about it. */
thead th + th, tbody td + td { border-left: 1px solid var(--surface-3); }
thead th:first-child, tbody td:first-child { text-align: left; }
tbody td { text-align: right; white-space: nowrap; padding: 8px 12px; border-bottom: 1px solid var(--surface-3); font-size: var(--t-md); font-weight: 450; }
tbody tr:last-child td { border-bottom: 0; }
/* The row you are reading lifts off the paper and marks its own edge. */
tbody tr { transition: background .12s var(--ease); }
tbody tr:hover td { background: var(--surface-2); }
tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 var(--ink); }
td.name { font-weight: 500; text-align: left; }
td.dim, .dim { color: var(--ink-3); }
td.wrap-cell { white-space: normal; min-width: 200px; }

th.text-left, td.text-left, .table th.text-left, .table td.text-left { text-align: left !important; }
th.text-right, td.text-right, .table th.text-right, .table td.text-right { text-align: right !important; }
th.text-center, td.text-center, .table th.text-center, .table td.text-center { text-align: center !important; }

/* A hairline bar under a figure — magnitude without a second chart. */
.bar-cell { position: relative; }
.bar-cell i { position: absolute; right: 12px; bottom: 4px; height: 2px; border-radius: 1px; background: var(--series-1); }

/* ================================================== pills, tags, statuses == */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--t-xs); font-weight: 500; padding: 2px 8px; border-radius: var(--r-sm);
  background: var(--surface-3); color: var(--ink-2); white-space: nowrap;
}
.pill.win  { background: var(--good-bg); color: var(--good); }
.pill.loss { background: var(--bad-bg);  color: var(--bad);  }
.pill.open { background: var(--warn-bg); color: var(--warn); }
.pill.void { background: var(--surface-3); color: var(--ink-3); }
.pill svg { width: 11px; height: 11px; stroke-width: 2; }

.dot { width: 6px; height: 6px; border-radius: 999px; flex: none; }

/* A filled amber block is the loudest thing on a page of figures, and most of
   these notes are housekeeping. The note is a ruled line of prose now; the
   status colour is carried by the icon alone, where it is still the first
   thing seen and no longer the only thing seen. */
.note {
  display: flex; align-items: flex-start; gap: 9px; padding: 9px 0;
  border-radius: 0; font-size: var(--t-sm); color: var(--ink-2);
  background: none; border: 1px solid var(--border); border-left: 0; border-right: 0;
}
.note svg { width: 14px; height: 14px; flex: none; margin-top: 1px; stroke-width: 1.8; }
.note b { color: var(--ink); font-weight: 600; }
.note.warn svg { color: var(--warn); }
.note.warn b { color: var(--ink); }
.note.bad svg { color: var(--bad); }
.note.bad b { color: var(--ink); }
.note.good svg { color: var(--good); }
.note.good b { color: var(--ink); }
.note.info svg { color: var(--todo); }

/* ============================================================ call queue == */
/* A closer's outstanding calls. The card itself carries the urgency, so the
   list can be scanned without reading a single word. */
/* One call is one line, always. A queue is read by scanning it, and a row that
   wraps to three lines turns twelve open calls into a page you have to scroll —
   at which point the queue stops being a list and starts being a chore. So
   nothing here wraps: the time, the name and the buttons hold their width and
   the middle column gives, truncating the email long before the row grows. */
.queue { display: flex; flex-direction: column; gap: 6px; }
.qcard {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 7px 12px; background: var(--surface);
  border: 1px solid var(--border); border-left: 3px solid var(--border-strong);
  border-radius: var(--r); transition: border-color .12s var(--ease), box-shadow .12s var(--ease);
}
.qcard:hover { box-shadow: var(--shadow-1); }
/* The left edge carries how long a call has been sitting, so running an eye
   down the rail is enough: blue is fresh, amber has passed twelve hours, red
   has passed twenty-four. Two steps rather than one cliff — a closer watches
   it coming instead of finding it already late. */
.qcard.age-fresh { border-left-color: var(--todo); }
.qcard.age-due   { border-left-color: var(--warn); background: var(--warn-bg); }
.qcard.age-late  { border-left-color: var(--bad);  background: var(--bad-bg); }
.qcard.done      { opacity: .55; border-left-color: var(--good); }

.qtime { font-family: var(--num); font-size: var(--t-md); font-weight: 600; white-space: nowrap; }
.qtime span { font-size: var(--t-xs); font-weight: 400; color: var(--ink-3); margin-left: 6px; }

/* Name and detail share the line. The name never truncates — it is what the
   row is about — so the meta beside it is what gives when space runs out. */
.qwho { display: flex; align-items: baseline; gap: 10px; min-width: 0; overflow: hidden; }
.qname {
  font-weight: 550; font-size: var(--t-md); white-space: nowrap;
  flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis;
}
.qmeta {
  font-size: var(--t-sm); color: var(--ink-3); display: flex; flex-wrap: nowrap;
  gap: 10px; min-width: 0; overflow: hidden; white-space: nowrap;
}
.qmeta span { flex: 0 0 auto; }
.qmeta .grow { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.qactions { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; justify-content: flex-end; }

/* Between a phone and a wide desktop the five buttons and the call's detail
   cannot both have the room they want, and the row is not allowed to grow. The
   buttons win — filing the call is the whole reason the row is here — so the
   detail gives way in order of how little it is missed: source and email first,
   then the name ellipsises rather than being cut mid-word. */
@media (max-width: 1180px) {
  .qcard { gap: 10px; }
  .qmeta { display: none; }
  .qactions { gap: 4px; }
  .qactions .btn { padding-left: 8px; padding-right: 8px; }
}

/* ================================================================= modal == */
.scrim {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px;
  background: color-mix(in srgb, var(--ink) 45%, transparent); backdrop-filter: blur(3px);
  animation: fade .16s var(--ease);
}
.modal {
  width: min(660px, 100%); max-height: min(86vh, 900px); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-2); animation: rise .2s var(--ease);
}
.modal-h { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px 13px; border-bottom: 1px solid var(--border); }
.modal-h h2 { font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.015em; }
.modal-h p { font-size: var(--t-sm); color: var(--ink-3); margin-top: 2px; }
.modal-b { padding: 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.modal-f { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-top: 1px solid var(--border); }

/* While Claude writes a formula: the field and the button shimmer, quick and
   quiet, so the wait reads as work rather than as a hang. */
@keyframes think { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }
.thinking { background-image: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--focus) 22%, transparent) 50%, transparent 70%);
  background-size: 200% 100%; animation: think 1.1s linear infinite; }
@media (prefers-reduced-motion: reduce) { .thinking { animation: none; } }
.hint.good { color: var(--good); } .hint.bad { color: var(--bad); }

/* The fulfillment cost sheet: as tight as the spreadsheet it replaces. An
   input in every cell, no chrome until it is hovered or focused. */
table.sheet thead th, table.sheet tbody td { padding: 3px 8px; font-size: 12.5px; }
table.sheet tbody td { border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
table.sheet tbody tr:hover td { background: transparent; }
table.sheet tr.sec td { background: var(--surface-2); font-weight: 600; padding-top: 5px; padding-bottom: 5px; text-align: left; }
table.sheet tr.sec input.cell { font-weight: 600; }
table.sheet tr.sub td { font-weight: 600; border-bottom: 2px solid var(--border-strong); }
table.sheet tr.add td { padding: 0 8px; border-bottom: 0; }
table.sheet tr.grand td { font-weight: 700; font-size: 13px; padding-top: 6px; padding-bottom: 6px; }
table.sheet tr.grand td.bad { color: var(--bad); }
table.sheet td.tot { font-family: var(--num); font-variant-numeric: tabular-nums; }
table.sheet input.cell { width: 100%; min-width: 120px; background: transparent; border: 1px solid transparent; border-radius: 3px;
  padding: 2px 5px; font: inherit; font-size: 12.5px; color: inherit; }
table.sheet input.cell.num { text-align: right; width: 104px; min-width: 0; font-family: var(--num); font-variant-numeric: tabular-nums; }
table.sheet input.cell::placeholder { color: var(--ink-3); opacity: .6; }
table.sheet input.cell:hover { border-color: var(--border); }
table.sheet input.cell:focus { outline: none; border-color: var(--focus); background: var(--surface); }
table.sheet .x { opacity: 0; background: none; border: 0; color: var(--ink-3); cursor: pointer; padding: 2px; line-height: 0; }
table.sheet .x svg { width: 12px; height: 12px; }
table.sheet tr:hover .x, table.sheet .x:focus { opacity: .8; }
table.sheet .addl { font-size: 11.5px; color: var(--ink-3); background: none; border: 0; cursor: pointer; padding: 3px 0; }
table.sheet .addl:hover { color: var(--ink); }
/* The month grid: lines down, months across; the current month's column
   is tinted, an empty month's header is dim. Number cells are narrow. */
table.months input.cell { min-width: 0; }
table.months td.ln input.cell { min-width: 150px; width: 100%; }
table.months th.ln { text-align: left; min-width: 160px; }
table.months th.k, table.months td.k { width: 30px; text-align: center; padding-left: 2px; padding-right: 2px; }
table.months th.mo { text-align: right; min-width: 92px; }
table.months th.mo.empty { color: var(--ink-3); font-weight: 400; }
table.months th.mo.cur, table.months td.cur { background: color-mix(in srgb, var(--focus) 7%, transparent); }
table.months th.mo.cur { color: var(--ink); font-weight: 600; }
table.months td.c { padding-left: 4px; padding-right: 4px; }
table.months input.cell.num { width: 84px; }
table.months .kt { font-family: var(--num); font-size: 11px; font-weight: 600; width: 22px; height: 20px; border-radius: 4px; border: 1px solid var(--border); background: var(--surface-2); color: var(--ink-2); cursor: pointer; padding: 0; }
table.months tr[data-kind="variable"] .kt { color: var(--series-3); border-color: color-mix(in srgb, var(--series-3) 40%, transparent); }
table.months .fill { border: 0; background: none; color: var(--focus); cursor: pointer; font-size: 12px; padding: 0 2px; }
table.months td.tot.bad { color: var(--bad); }
table.months tr.sec td { text-align: left; }
/* A section's own row: the twist, the name, how many lines are folded away,
   and the section's total in every month — so a closed sheet still answers
   what each team costs. The flex lives on a span inside the cell, never on
   the cell: a table cell told to be a flex box leaves the column grid and
   its row drifts out of line with every other row. */
/* A selected block. The fill marks the area, the ring marks its edge, and
   both are drawn in ink so a selection never competes with a figure. */
table.months input.cell.sel { background: color-mix(in srgb, var(--ink) 7%, var(--surface)); }
table.months input.cell.sel:focus { background: color-mix(in srgb, var(--ink) 10%, var(--surface)); }
/* Back end revenue is the one band on this sheet that is money coming in,
   and it sits under four that are money going out. A wash of green across
   its row says which way it points before a figure is read. */
table.months tr.sec[data-rev-sec] > td { background: color-mix(in srgb, var(--good) 9%, var(--surface)); }
table.months tr.sec[data-rev-sec] .sec-t,
table.months tr.sec[data-rev-sec] td.sec-tot { color: var(--good); }
/* The grip is the only part of a row that drags. A row that is draggable
   everywhere cannot have its text selected, and the name field is text. It
   stays out of the way until the row is under the pointer. */
table.months td.ln { position: relative; }
table.months .grip {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  color: var(--ink-3); opacity: 0; cursor: grab; font-size: 11px; line-height: 1;
  padding: 4px 1px; transition: opacity .12s var(--ease);
}
table.months tbody tr:hover .grip { opacity: .6; }
table.months .grip:hover { opacity: 1; }
table.months .grip:active { cursor: grabbing; }
table.months tr.dragging { opacity: .4; }
/* Where it would land: one rule, on the edge it would land against. */
table.months tr.drop-above > td { box-shadow: inset 0 2px 0 var(--ink); }
table.months tr.drop-below > td { box-shadow: inset 0 -2px 0 var(--ink); }
table.months tr.sec .sec-h { display: inline-flex; align-items: center; gap: 6px; width: 100%; }
table.months tr.sec input.sec-name { font-weight: 600; min-width: 0; flex: 1; }
table.months tr.sec td.sec-tot { text-align: right; font-weight: 600; font-family: var(--num); font-variant-numeric: tabular-nums; }
table.months .twist { flex: none; border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 11px; line-height: 1; padding: 2px 3px; border-radius: 4px; }
table.months .twist:hover { color: var(--ink); background: var(--surface); }
table.months tr.sec .sec-t { font-weight: 600; }
table.months tr.sec .n-lines { font-size: 11px; font-weight: 400; margin-left: auto; padding-left: 8px; }
table.months tr.sec.open .n-lines { opacity: 0; }
table.months tr.sec.open { border-top: 1px solid var(--border-strong); }

/* One rule down the sheet, between the names and the months, and one before
   the goal — so a figure is never read against the wrong month. */
table.months th.mo1, table.months td.mo1 { border-left: 1px solid var(--border-strong); }
table.months th.goalcol, table.months td.goalcol { border-left: 1px solid var(--border-strong); }
table.months th.mo, table.months td.c, table.months td.tot { border-right: 1px solid color-mix(in srgb, var(--border) 45%, transparent); }
table.months tr.add td { border-right: 0; }
/* Every figure on the same grid: one width, right-aligned, tabular digits. */
table.months td.tot, table.months td.c { text-align: right; }
table.months td.tot { font-family: var(--num); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.months tr.grand td.ln, table.months tr.sec td.ln { text-align: left; }
.pill.good { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, transparent); }
/* A sheet-like table: tighter cells, links and buttons that read as text. */
.dense-tbl thead th, .dense-tbl tbody td { padding: 5px 9px; font-size: 12.5px; }
.dense-tbl thead th:not(:first-child), .dense-tbl tbody td:not(:first-child) { text-align: left; }
.dense-tbl tbody td.num, .dense-tbl thead th.num { text-align: right; }
.dense-tbl td a { color: inherit; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 2px; }
.dense-tbl .btn.btn-ghost { padding: 2px 6px; min-height: 0; }
.dense-tbl .fx-copy { gap: 6px; white-space: nowrap; }
.deal-grid { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 14px; align-items: start; }
@media (max-width: 720px) { .deal-grid { grid-template-columns: 1fr; } }
.fx-line { display: block; font-family: var(--font-mono, monospace); font-size: 12px; line-height: 1.4; padding: 7px 10px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--ink); white-space: normal; word-break: break-word; }
.fx-line.dim { color: var(--ink-3); font-family: inherit; }
.dense-tbl .cp { gap: 5px; white-space: nowrap; font-family: inherit; font-size: 12px; color: var(--ink-2); }
.dense-tbl .cp svg, .dense-tbl .fx-copy svg { width: 12px; height: 12px; flex: none; }
.dense-tbl tr.archived td { color: var(--ink-3); }
.pill.warn { color: var(--warn, #b7791f); border-color: color-mix(in srgb, var(--warn, #b7791f) 45%, transparent); background: color-mix(in srgb, var(--warn, #b7791f) 10%, transparent); }
@keyframes fade { from { opacity: 0 } }
@keyframes rise { from { opacity: 0; transform: translateY(8px) scale(.99) } }

/* ================================================================== forms == */
.fields { display: grid; gap: 14px; }
.fields.c2 { grid-template-columns: 1fr 1fr; }
.fields.c3 { grid-template-columns: 1fr 1fr 1fr; }
.fg { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fg > label { font-size: var(--t-sm); font-weight: 500; color: var(--ink-2); }
.fg > label em { font-style: normal; color: var(--bad); }
.fg .help { font-size: var(--t-xs); color: var(--ink-3); }
.fg .err { font-size: var(--t-xs); color: var(--bad); display: none; }
.fg.bad .err { display: block; }
.fg.bad .inp, .fg.bad .ta, .fg.bad select { border-color: var(--bad); }

/* A credential field's own controls, under the box they belong to. */
.fg > label .conn-set {
  font-style: normal; font-weight: 600; color: var(--good);
  font-family: var(--num); font-size: var(--t-xs); margin-left: 6px;
}
.conn-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.conn-row .btn { padding: 4px 10px; font-size: var(--t-xs); }
.conn-result { font-size: var(--t-xs); color: var(--ink-3); }
.conn-result.ok { color: var(--good); font-weight: 600; }
.conn-result.no { color: var(--bad); font-weight: 600; }

fieldset { border: 0; display: flex; flex-direction: column; gap: 12px; }
legend { font-size: var(--t-xs); font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 8px; width: 100%; border-bottom: 1px solid var(--border); }

/* ================================================================ charts == */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.gridline { stroke: var(--border); stroke-width: 1; }
.axis-t { fill: var(--ink-3); font-size: 11px; font-family: var(--num); font-variant-numeric: tabular-nums; letter-spacing: -0.005em; }
.avgline { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; opacity: .7; }
/* Zero, when the plot runs below it: darker than a gridline, because the side
   of it a line is on is the whole question. */
.zeroline { stroke: var(--ink-3); stroke-width: 1.25; opacity: .85; }
/* Which column is this month, on a window that runs past it. */
.nowline { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 4; opacity: .55; }
.axis-t.axis-now { fill: var(--ink); font-weight: 700; }

/* A readout floating above the chart, in the page's own colours.

   It used to invert: black box, white type, on a white page. Inverting is a
   fine idea for a one-line pill, and it was one when the radius was written —
   but this holds a date and three labelled figures, and a 999px radius on a
   four-line box is not a pill, it is two enormous arcs biting into the first
   and last rows. That is what made it look cut off. A readout with rows in it
   is a small card, so it is drawn as one: surface, border, card radius. */
.tip {
  position: absolute; z-index: 5; pointer-events: none; opacity: 0;
  transform: translate(-50%, -100%) translateY(-10px);
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--border); border-radius: var(--r);
  padding: 9px 12px 10px; white-space: nowrap;
  box-shadow: var(--shadow-2);
  transition: opacity .12s var(--ease), transform .12s var(--ease);
}
.tip.on { opacity: 1; transform: translate(-50%, -100%) translateY(-13px); }
.tip .t-d { font-size: var(--t-xs); color: var(--ink-3); margin-bottom: 5px; }
.tip .t-r { display: flex; align-items: center; gap: 7px; font-size: var(--t-sm); white-space: nowrap; }
.tip .t-r + .t-r { margin-top: 3px; }
.tip .t-k { width: 7px; height: 7px; border-radius: 999px; flex: none; }
.tip .t-v { margin-left: auto; padding-left: 10px; font-family: var(--num); font-weight: 600; }

.legend { display: flex; gap: 14px; align-items: center; }
.legend button { appearance: none; cursor: pointer; background: none; border: 0; font: inherit; display: flex; align-items: center; gap: 6px; font-size: var(--t-sm); color: var(--ink-2); padding: 0; }
.legend button[aria-pressed="false"] { opacity: .38; }
/* A rounded chip, not a hairline — big enough to carry a colour at a glance. */
.legend i { width: 11px; height: 11px; border-radius: 4px; }
/* The dashed series gets a dimmed chip, so the key matches its line. */
.legend button[data-s="revenue"] i { opacity: .6; }

/* Radar — a closer's skill profile. Axis labels are buttons: each opens that
   skill's week-by-week trend. */
.radar-wrap { display: flex; align-items: center; justify-content: center; padding: 6px 0; }
.radar-wrap svg { width: 100%; max-width: 430px; height: auto; }
.radar text { font-size: 10px; fill: var(--ink-2); font-family: var(--sans); }
.radar .rgrid { fill: none; stroke: var(--border); stroke-width: 1; }
.radar .rspoke { stroke: var(--border); stroke-width: 1; }
.radar .rarea { fill: var(--series-1); fill-opacity: .16; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; }
.radar .rprev { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 3 3; }
.radar .rdot { fill: var(--series-1); stroke: var(--surface); stroke-width: 2; }

.skills { display: flex; flex-direction: column; gap: 1px; }
.skill {
  display: grid; grid-template-columns: minmax(0,1fr) 54px 40px; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: var(--r-sm); cursor: pointer; border: 0; background: none;
  font: inherit; text-align: left; color: var(--ink); width: 100%;
}
.skill:hover { background: var(--surface-2); }
.skill[aria-pressed="true"] { background: var(--surface-3); }
.skill-n { font-size: var(--t-md); display: flex; flex-direction: column; gap: 5px; min-width: 0; }
/* display:block — a bare inline span ignores height and the track vanishes. */
.skill-t { display: block; height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.skill-t i { display: block; height: 100%; border-radius: 2px; background: var(--series-1); }
.skill-v { font-family: var(--num); font-size: var(--t-sm); font-weight: 600; text-align: right; }
.skill-delta { font-family: var(--num); font-size: var(--t-xs); text-align: right; }
.skill-delta.up { color: var(--good); } .skill-delta.down { color: var(--bad); }

/* ================================================================= login == */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.login-card { width: min(380px, 100%); display: flex; flex-direction: column; gap: 18px; }
.login-card .logo { justify-content: flex-start; }
.login h1 { font-size: var(--t-xl); font-weight: 600; letter-spacing: -0.02em; }
.login p.lede { font-size: var(--t-md); color: var(--ink-3); }
.demo-keys { display: flex; flex-direction: column; gap: 6px; }
.demo-key {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer;
  font: inherit; font-size: var(--t-sm); padding: 9px 11px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--border); color: var(--ink);
}
.demo-key:hover { border-color: var(--ink-3); }
.demo-key b { font-weight: 550; }
/* :last-of-type, not `span` — the avatar is a span too, and a second auto
   margin would split the free space and centre the row. */
.demo-key > span:last-of-type { color: var(--ink-3); margin-left: auto; font-family: var(--num); font-size: var(--t-xs); }

/* ============================================================== utilities == */
.empty { padding: 40px 16px; text-align: center; color: var(--ink-3); font-size: var(--t-md); }
.empty svg { width: 22px; height: 22px; margin-bottom: 8px; stroke-width: 1.5; opacity: .6; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a.link { color: var(--series-1); text-decoration: none; }
a.link:hover { text-decoration: underline; }

.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 80;
  display: flex; align-items: center; gap: 9px; padding: 10px 15px; border-radius: var(--r);
  background: var(--action); color: var(--ink-on); font-size: var(--t-sm); font-weight: 500;
  box-shadow: var(--shadow-2); animation: rise .2s var(--ease);
}

/* ============================================================ responsive == */
@media (max-width: 1180px) { .grid.side { grid-template-columns: minmax(0, 1fr); } .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; flex-direction: row; align-items: center; gap: 8px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .rail-top { padding: 12px 14px; } .logo-sub { display: none; }
  .nav { flex-direction: row; padding: 8px; gap: 2px; }
  .nav-label { display: none; } .nav a { white-space: nowrap; }
  .rail-foot { border-top: 0; padding: 8px; } .whoami-t { display: none; }
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: minmax(0, 1fr); }
  .page, .topbar { padding-left: 14px; padding-right: 14px; }
  .fields.c2, .fields.c3 { grid-template-columns: 1fr; }
  .qcard { grid-template-columns: auto minmax(0,1fr); gap: 10px; }
  .qactions { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
}

/* ============================================================================
   The admin's Closer view. Deliberately the loudest thing on the page — an
   admin who forgets which mode they're in is the one about to file a report
   on somebody's real call.
   ========================================================================== */
.preview-bar {
  position: sticky; top: 57px; z-index: 19;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 24px;
  background: var(--warn-bg); color: var(--warn);
  border-bottom: 1px solid var(--border);
  font-size: var(--t-sm);
}
.preview-bar b { font-weight: 650; }
/* Real data gets the calmer info colour — the amber is for "this isn't real". */
.preview-bar.real { background: var(--info-bg); color: var(--ink-2); }
.preview-bar.real b { color: var(--ink); }
.preview-bar .ico { width: 15px; height: 15px; flex: none; }
.preview-bar .sel select { background: var(--surface); border-color: var(--border-strong); color: var(--ink); }
.preview-bar .btn { background: var(--surface); }

@media (max-width: 900px) {
  .preview-bar { position: static; padding: 10px 14px; }
}

/* ========================================================== payments views == */

.gen-timeline {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
}

.gen-tl-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.gen-tl-node {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.gen-tl-node:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 18px;
  bottom: -10px;
  width: 2px;
  background: var(--border);
}

.gen-tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--series-1);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border-strong);
  flex-shrink: 0;
  z-index: 1;
}

.gen-tl-dot.first {
  background: var(--series-2);
}

.gen-tl-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gen-tl-day {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink);
}

.gen-tl-lbl {
  font-size: var(--t-xs);
  color: var(--ink-3);
}

.gen-tl-amt {
  font-size: var(--t-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.gen-tl-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--t-sm);
}

.gen-tl-foot b {
  font-size: var(--t-md);
  color: var(--series-2);
  font-variant-numeric: tabular-nums;
}

.gen-result-card {
  max-width: 620px;
  margin: 20px auto;
}

.gen-check-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--good-bg);
  color: var(--good);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gen-check-icon .ico {
  width: 28px;
  height: 28px;
}

.gen-link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 10px 14px;
  margin-bottom: 16px;
}

.gen-url-text {
  font-family: var(--font-mono, monospace);
  font-size: var(--t-xs);
  color: var(--series-1);
  word-break: break-all;
  flex: 1;
  text-align: left;
}

.gen-url-short {
  font-family: var(--font-mono, monospace);
  font-size: var(--t-xs);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

.gen-res-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 18px;
  font-size: var(--t-sm);
}

.gen-res-meta span {
  font-size: var(--t-xs);
  color: var(--ink-3);
  display: block;
}

.gen-res-meta b {
  color: var(--ink);
}

.btn-sm {
  padding: 4px 8px;
  font-size: var(--t-xs);
  height: auto;
}

.row-clickable {
  cursor: pointer;
}

.row-clickable:hover {
  background: var(--surface-2) !important;
}

.badge.warn {
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px solid var(--warn);
}

.row-age-red {
  background: rgba(239, 68, 68, 0.08) !important;
  border-left: 3px solid #ef4444 !important;
}

.row-age-red:hover {
  background: rgba(239, 68, 68, 0.16) !important;
}

.row-age-orange {
  background: rgba(249, 115, 22, 0.08) !important;
  border-left: 3px solid #f97316 !important;
}

.row-age-orange:hover {
  background: rgba(249, 115, 22, 0.16) !important;
}




/* ------------------------------------------------------------------ fold -- */
/* Calls booked further out are reference, not work, so they arrive folded.
   <details> rather than a button and a class: the open state is the element's
   own, it survives a re-render without being tracked anywhere, and a keyboard
   reaches it for free. */
.fold-card { padding: 0; }
.fold > summary {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 13px 16px; cursor: pointer; list-style: none;
  transition: background .12s var(--ease);
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary:hover { background: var(--surface-2); }
.fold > summary h2 { font-size: var(--t-md); font-weight: 600; letter-spacing: -0.01em; }
.fold > summary .hint { font-size: var(--t-sm); color: var(--ink-3); }
/* The chevron is the affordance — it points where opening will take you. */
.fold > summary svg { color: var(--ink-3); transform: rotate(90deg); transition: transform .15s var(--ease); }
.fold[open] > summary svg { transform: rotate(-90deg); }
.fold[open] > summary { border-bottom: 1px solid var(--border); }

.fold-day + .fold-day { margin-top: 16px; }
.fold-day-h {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 7px;
  font-size: var(--t-sm); font-weight: 600;
}
.fold-day-h .hint { font-weight: 400; color: var(--ink-3); }
.fold-more { margin-top: 14px; font-size: var(--t-sm); color: var(--ink-3); }

/* A booked call is not overdue and must not borrow the colour of one. Grey
   rail, full contrast text: quiet, not disabled. */
.qcard.age-ahead { border-left-color: var(--border-strong); }

/* ------------------------------------------------------- credential boxes -- */
/* Masked without type="password". Browsers and password managers autofill a
   password input on sight, and a settings page full of them invites exactly
   the silent overwrite that makes a pasted key save as something else. */
.inp.masked { -webkit-text-security: disc; text-security: disc; font-family: var(--num); letter-spacing: .04em; }
.inp.masked.unmasked { -webkit-text-security: none; text-security: none; }

/* -- Funnel Scorecard metric lists ---------------------------------------- */
.mlist { display: flex; flex-direction: column; }
.mrow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 9px 14px; border-bottom: 1px solid var(--border); }
.mrow:last-child { border-bottom: 0; }
.mrow-l { color: var(--ink-2); font-size: var(--t-md); }
.mrow-l em { cursor: help; font-style: normal; }
.mrow-v { font-weight: 600; font-variant-numeric: tabular-nums; }


/* ----------------------------------------------------------- data fault -- */
/* Over everything, because a board quietly showing yesterday's numbers is
   worse than a board that says it is broken. */
/* Bottom right, not across the page. A failed pull is worth knowing about
   and never worth blocking the work somebody came here to do: this sits in
   the corner, stays until dismissed, and leaves the board usable behind it. */
.fault { position: fixed; inset: auto 16px 16px auto; z-index: 55; display: block;
         max-width: calc(100vw - 32px); pointer-events: none; }
.fault-b { width: min(380px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--bad);
  pointer-events: auto; border-radius: var(--r-lg, 12px);
  box-shadow: 0 12px 32px rgba(0,0,0,.28); overflow: hidden; animation: rise .16s; }
.fault-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; color: var(--bad);
  background: color-mix(in srgb, var(--bad) 10%, transparent); border-bottom: 1px solid var(--border); }
.fault-h .ico { width: 20px; height: 20px; flex: none; }
.fault-l { padding: 6px 14px 10px; max-height: 40vh; overflow: auto; }
.fault-r { display: grid; gap: 3px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.fault-r:last-child { border-bottom: 0; }
.fault-r b { font-size: var(--t-md); }
.fault-r span { color: var(--ink-2); font-size: var(--t-sm); }
.fault-r em { font-style: normal; color: var(--ink-3); font-size: var(--t-xs); line-height: 1.45; word-break: break-word; }
.fault-f { padding: 12px 16px; border-top: 1px solid var(--border); color: var(--ink-3); font-size: var(--t-sm); background: var(--surface-2); }

.newbuild { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 95;
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: var(--t-sm); animation: rise .18s; }

/* ============================================================== coaching == */
/* The week calendar is a grid of plain boxes, not a chart: a box is drawn on
   whole pixels by the browser, so it stays sharp at every width, where a
   scaled SVG goes soft. Three-hour bands down the side, days across the top,
   ink at a strength set by how many calls fell in the band — one colour, and
   no figure inside, because "more" is the only thing a square has to say.
   The count is on the hover.

   The grid is held to a width where its squares stay squares. Stretched to
   the card, seven columns turned into long thin bars that read as a table
   of rules rather than a map; the room that frees up on the right carries
   the week's answer in words. */
.wk-host { position: relative; }
/* The calendar and its week read as one object: the figures sit a short
   step from the grid's right edge, and the pair is centred in the card, so a
   wider screen adds the same margin to both sides instead of a gap between
   the grid and the words that explain it. */
.wk-wrap { display: flex; gap: 32px; align-items: stretch; justify-content: center; }
/* Fixed columns: stretched to the card they turned into long bars. The
   squares keep the first calendar's shape, a little under twice as wide as
   tall, at a size the page can afford. */
.wk { display: grid; gap: 5px; flex: 0 0 auto; min-width: 0; --wk-w: 76px; }
.wk-d { font-size: 12.5px; color: var(--ink-3); text-align: center; padding-bottom: 6px; white-space: nowrap; }
.wk-d b { font-weight: 500; color: var(--ink-2); margin-right: 2px; }
.wk-d.today b, .wk-d.today { color: var(--ink); font-weight: 600; }
.wk-d.out { opacity: .4; }
.wk-h { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; align-self: center; white-space: nowrap; }
/* A fixed height, not a ratio: with a ratio, every bit of width the calendar
   gained came back as height too, and a wider grid turned into a taller one. */
.wk-c { display: block; height: 46px; border-radius: 5px;
        background: color-mix(in srgb, var(--ink) calc(var(--a) * 100%), var(--surface-3));
        transition: box-shadow .12s var(--ease); cursor: default; }
.wk-c:hover { box-shadow: 0 0 0 1.5px var(--ink); position: relative; z-index: 1; }

/* The column beside the grid stands exactly as tall as the grid: its
   blocks spread from the top edge to the bottom one, so the words end where
   the squares end instead of trailing past them. */
.wk-side { flex: 0 0 200px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-width: 0; }
.wk-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wk-side .stat-l { font-size: 10.5px; }
.wk-side .hint { font-size: 12.5px; margin-top: 2px; }
.wk-big { font-size: 34px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; margin-top: 4px; font-variant-numeric: tabular-nums; }
.wk-mid { font-size: 19px; font-weight: 500; letter-spacing: -0.015em; margin-top: 4px; font-variant-numeric: tabular-nums; }

/* The week is chosen where it is read: its number, its dates, and two arrows
   big enough to hit without aiming. */
.wk-nav { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.wk-num { font-size: 34px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.wk-arrows { display: flex; gap: 6px; }
.wk-arrow { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface);
            color: var(--ink); font: 500 18px/1 var(--sans); cursor: pointer; display: grid; place-items: center;
            transition: background .12s var(--ease), border-color .12s var(--ease); }
.wk-arrow:hover:not(:disabled) { background: var(--surface-2); border-color: var(--ink-3); }
.wk-arrow:disabled { opacity: .35; cursor: default; }
.wk-rule { height: 1px; background: var(--border); margin: -2px 0; }
.wk-key { display: flex; align-items: center; gap: 4px; font-size: 10.5px; color: var(--ink-3); margin-top: 4px; }
.wk-key i { width: 14px; height: 10px; border-radius: 3px;
            background: color-mix(in srgb, var(--ink) calc(var(--a) * 100%), var(--surface-3)); }
.wk-key span:first-child { margin-right: 2px; } .wk-key span:last-child { margin-left: 2px; }
@media (max-width: 760px) { .wk-wrap { flex-direction: column; } .wk-side { flex-direction: row; flex-wrap: wrap; padding-top: 0; } }

/* What a cell holds, on a card of its own rather than the OS tooltip: when,
   how many, and with whom. It never takes the pointer, so moving across the
   grid slides it from cell to cell instead of flickering. */
.wk-tip { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; min-width: 170px; max-width: 260px;
          background: var(--ink); color: var(--surface); border-radius: 8px; padding: 9px 12px 10px;
          box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .35); transition: transform .08s var(--ease); }
.wk-tip-n { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.wk-tip-w { font-size: 11px; opacity: .7; margin-top: 1px; }
.wk-tip-c { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.wk-tip-c span { font-size: 11px; padding: 2px 7px; border-radius: 999px;
                 background: color-mix(in srgb, var(--surface) 16%, transparent); }

/* Every column on this page starts where its heading starts. The board's
   tables push figures to the right, which reads as a ledger; here the heading
   and its figures share one edge, so the eye goes straight down a column. */
.coach-t th, .coach-t td, .coach-days th, .coach-days td { text-align: left !important; }
.coach-t tr.coach-r { cursor: pointer; }
.coach-t tr.coach-r.open td { background: var(--surface-2); }
/* Past two hours either way: tracked more than was booked is red, less is
   green. Inside the margin the figure stays plain. */
.coach-t td.over { color: var(--bad); font-weight: 600; }
.coach-t td.under { color: var(--good); font-weight: 600; }
/* The team's line is a sum, not one more coach, so the rule above it is a
   step heavier and a step darker than the rows' own, running the full width:
   just enough that the eye stops there before reading on. */
.coach-t tr.coach-tot td { font-weight: 600; border-top: 2px solid var(--border-strong); background: var(--surface-2); }
.coach-t tr.coach-d > td { padding: 0; background: var(--surface-2); white-space: normal; text-align: left; }
.coach-dt { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 20px; padding: 16px; }
.coach-days { max-height: 360px; overflow: auto; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); }
.coach-days thead th { position: sticky; top: 0; }
.coach-inv pre { margin: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-sm);
                 background: var(--surface); font: 12.5px/1.6 var(--sans); font-variant-numeric: tabular-nums;
                 white-space: pre-wrap; user-select: all; cursor: text; }
@media (max-width: 900px) { .coach-dt { grid-template-columns: 1fr; } }
/* The unfolded detail is one cell spanning the table, so the table-wide hover
   rule would draw its 2px edge down the whole block. */
.coach-t tr.coach-d:hover > td { background: var(--surface-2); box-shadow: none; }
.coach-days th, .coach-days td { padding: 6px 10px; font-size: var(--t-sm); }

/* Coaching labels: the board's default is a small, pale, tracked caption,
   which on this page — read for its figures, row by row — was too faint to
   find. Here the labels are set in ink and at weight, so a column's name
   and a tile's name read as easily as the number under them. */
.coaching .stat-l,
.coaching .coach-t thead th,
.coaching .coach-days thead th { color: var(--ink); font-weight: 700; }
.coaching .wk-d, .coaching .wk-d b { color: var(--ink); font-weight: 600; }
.coaching .wk-h { color: var(--ink); font-weight: 600; }
.coaching .wk-d.out, .coaching .wk-d.out b { color: var(--ink-3); }

/* ------------------------------------------------------ month picker -- */
/* A button naming the month, and under it two wheels — month and year — the
   way a phone picks a date. Seven rows show at once: the chosen one in the
   band across the middle, three either side fading out toward the edges, so
   it reads as a drum that turns rather than a list that ends. */
.mp { position: relative; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.mp-btn { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--sans); letter-spacing: -0.01em;
          color: var(--ink); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px;
          padding: 8px 12px; cursor: pointer; transition: background .12s var(--ease), border-color .12s var(--ease); }
.mp-btn:hover, .mp-btn[aria-expanded="true"] { background: var(--surface-2); border-color: var(--ink-3); }
.mp-btn svg { color: var(--ink-3); }
.mp-pop { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; width: 300px;
          background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
          box-shadow: 0 18px 44px -14px rgba(0, 0, 0, .28), 0 2px 6px rgba(0, 0, 0, .06); overflow: hidden;
          animation: rise .14s; }
.mp-wheels { position: relative; display: grid; grid-template-columns: 1.6fr 1fr; padding: 6px 10px; }
.mp-band { position: absolute; left: 10px; right: 10px; top: calc(6px + 3 * 34px); height: 34px;
           background: var(--surface-3); border-radius: 7px; pointer-events: none; }
.mp-col { position: relative; }
.mp-wheel { position: relative; height: calc(7 * 34px); overflow-y: auto; scroll-snap-type: y mandatory;
            scrollbar-width: none; overscroll-behavior: contain;
            /* Three rows of air above the first entry and below the last, so
               either end can still come to rest in the middle band. */
            padding: calc(3 * 34px) 0;
            -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 32%, #000 68%, transparent 100%);
                    mask-image: linear-gradient(to bottom, transparent 0, #000 32%, #000 68%, transparent 100%); }
.mp-wheel::-webkit-scrollbar { display: none; }
.mp-item { height: 34px; display: flex; align-items: center; justify-content: center; scroll-snap-align: center;
           font: 450 15px/1 var(--sans); color: var(--ink-3); cursor: pointer; user-select: none;
           font-variant-numeric: tabular-nums; transition: color .1s var(--ease); }
.mp-item.on { color: var(--ink); font-weight: 600; }
.mp-item.off { color: var(--border-strong); }
.mp-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); }

/* ------------------------------------------------- coaching, by tab -- */
/* The two views and the month share one line at the top of the page. */
.co-top { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 2px; }
.co-top .mp { margin-bottom: 0; }
.co-tabs button { font-size: 14px; }

/* The week's number with its arrows on the same line, so the column it
   heads can be narrow. */
.wk-numrow { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.wk-numrow .wk-arrows { gap: 4px; }
.wk-numrow .wk-arrow { width: 30px; height: 30px; font-size: 16px; }

/* The answers the grid is for, set where the eye lands: a pale plate behind
   each, the value large and in ink. */
.wk-hot { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px 10px; }
.wk-hot-v { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; margin-top: 3px; font-variant-numeric: tabular-nums; color: var(--ink); }

@media (max-width: 1180px) { .wk-wrap { flex-wrap: wrap; } }

/* ------------------------------------------------------------ skill web -- */
/* One card per coach, three to a row: the web drawn at its own size so its
   labels and rules stay sharp, the six scores under it, last month dashed
   behind this month's shape. In ink, like the rest of the page. */
/* A score: green from 7.5, red under 5, ink between. */
.q { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.q.q-hi { color: var(--good); }
.q.q-lo { color: var(--bad); }
.q-of { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.sw-vals.sw-team { margin: 0 0 2px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 900px) { .sw-vals.sw-team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sw-vals .q { font-size: 16px; text-transform: none; letter-spacing: 0; overflow: visible; }
.sw-card { cursor: pointer; transition: border-color .12s; }
.sw-card:hover, .sw-card:focus-visible { border-color: var(--ink-3); }
.sw-card .card-h .q { font-size: 18px; }

/* One coach, over the page — over the content, never over the rail, so the
   board stays where it was underneath. Closed by ✕, Esc or a click beside. */
.sw-over { position: fixed; inset: 0 0 0 var(--rail); z-index: 40; overflow-y: auto; overscroll-behavior: contain;
           background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(2px);
           padding: 28px 28px 48px; }
.app.rail-hidden .sw-over { left: 0; }
@media (max-width: 900px) { .sw-over { left: 0; padding: 12px; } }
.sw-panel { max-width: 1080px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border);
            border-radius: var(--r-md, 10px); box-shadow: 0 18px 50px rgba(0,0,0,.12); }
.sw-ph { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--border);
         position: sticky; top: -28px; background: var(--surface); z-index: 1; border-radius: var(--r-md, 10px) var(--r-md, 10px) 0 0; }
.sw-ph h2 { font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.01em; }
.sw-x .ico { width: 18px; height: 18px; }
.sw-pb { padding: 16px 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.sw-pb .stats { margin-top: 0; }
.sw-top2 { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 20px; align-items: center; }
@media (max-width: 980px) { .sw-top2 { grid-template-columns: minmax(0, 1fr); } }
.sw-axes { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.sw-axes th { text-align: left; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink);
              padding: 8px 10px; border-bottom: 1px solid var(--border); }
.sw-axes td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--border); }
.sw-axes .up { color: var(--good); font-size: 10px; margin-left: 4px; }
.sw-axes .down { color: var(--bad); font-size: 10px; margin-left: 4px; }
.sw-wk-h { margin-top: 4px; }
.sw-week { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.sw-wh { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2, var(--bg)); }
.sw-wh .q { font-size: 16px; }
.sw-fb { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); }
.sw-fb > div { padding: 10px 14px; }
.sw-fb > div + div { border-left: 1px solid var(--border); }
.sw-fb p { margin-top: 4px; font-size: var(--t-sm); line-height: 1.45; }
.sw-fix .stat-l { color: var(--bad); }
.sw-keep .stat-l { color: var(--good); }
@media (max-width: 700px) { .sw-fb { grid-template-columns: 1fr; } .sw-fb > div + div { border-left: 0; border-top: 1px solid var(--border); } }
.sw-call + .sw-call { border-top: 1px solid var(--border); }
.sw-call summary { list-style: none; cursor: pointer; display: grid; align-items: center; gap: 12px; padding: 9px 14px;
                   grid-template-columns: 150px 150px 52px minmax(0, 1fr) 36px; font-size: var(--t-sm); }
.sw-call summary::-webkit-details-marker { display: none; }
.sw-call summary:hover { background: var(--surface-2, var(--bg)); }
.sw-call[open] summary { border-bottom: 1px solid var(--border); }
.sw-cw { color: var(--ink-2); white-space: nowrap; }
.sw-cs { font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-csum { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-call summary .q { text-align: right; }
@media (max-width: 800px) { .sw-call summary { grid-template-columns: minmax(0, 1fr) auto; } .sw-call summary .hint, .sw-csum, .sw-cw { display: none; } }
.sw-cb { padding: 4px 14px 14px; }
.sw-ct { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.sw-ct td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.45; }
.sw-ct td:first-child { padding-left: 0; }
.sw-cl { width: 130px; font-weight: 600; white-space: nowrap; }
.sw-ct td:nth-child(2) { width: 40px; }
.sw-ct blockquote { margin: 5px 0 0; padding-left: 10px; border-left: 2px solid var(--border); color: var(--ink-3); font-style: italic; }
.sw-cfoot { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; font-size: var(--t-sm); line-height: 1.45; }
.sw-cfoot .stat-l { display: inline; margin-right: 6px; }
.sw-cfoot a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.sw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.sw-card .card-b { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sw-web { display: flex; justify-content: center; }
.coaching .radar text { font-size: 11px; fill: var(--ink); font-weight: 500; }
.coaching .radar .rgrid, .coaching .radar .rspoke { stroke: var(--border); vector-effect: non-scaling-stroke; }
.coaching .radar .rarea { fill: var(--ink); fill-opacity: .1; stroke: var(--ink); stroke-width: 1.75; vector-effect: non-scaling-stroke; }
.coaching .radar .rprev { stroke: var(--ink-3); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.coaching .radar .rdot { fill: var(--ink); }
.sw-vals { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border);
           border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.sw-vals div { background: var(--surface); padding: 7px 10px; display: flex; flex-direction: column; gap: 2px; }
.sw-vals span { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink);
                white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw-vals b { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* The calendar's card and the coach list's card side by side. The list's
   card is as tall as its list and no taller. */
.co-row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.co-cal { flex: 1 1 auto; min-width: 0; }
.co-who { flex: 0 0 auto; }
/* Busiest time and day share a row, so the column stays the grid's height. */
.wk-hots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wk-hots .wk-hot { padding: 8px 10px 9px; }
.wk-hots .wk-hot-v { font-size: 19px; }

/* A table ruled on every side: an outer frame and a line between every
   cell, so it reads as a grid of figures. A long name is cut, not wrapped,
   and is whole on hover. */
.who-grid { border-collapse: collapse; width: auto; border: 1px solid var(--border-strong); }
.who-grid th, .who-grid td { text-align: left !important; padding: 8px 12px; white-space: nowrap; font-size: 13px;
                             border: 1px solid var(--border); }
.who-grid th { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
               background: var(--surface-2); position: static; }
.who-grid td:first-child { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.who-grid td:not(:first-child) { font-variant-numeric: tabular-nums; font-weight: 500; }
.who-grid tbody tr:hover td { background: var(--surface-2); }
.who-grid tbody tr:hover td:first-child { box-shadow: none; }
.who-grid tfoot td { font-weight: 700; background: var(--surface-2); border-top: 2px solid var(--border-strong); }

/* What a coach costs: green, unsigned, in dollars. It is money going out,
   but on this page it is a figure to read, not a warning. */
.coaching .cost, .coach-t td.cost { color: var(--good); font-weight: 600; }
.coach-t tr.coach-tot td.cost { color: var(--good); }

/* Settings → Coaching Team: one row per coach. */
.rate-t { width: 100%; border-collapse: collapse; }
.rate-t th { text-align: left !important; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
             color: var(--ink); padding: 10px 16px 8px; border-bottom: 1px solid var(--border); background: none; position: static; }
.rate-t td { text-align: left !important; padding: 6px 16px; border-bottom: 1px solid var(--surface-3); }
.rate-t td + td, .rate-t th + th { border-left: 0; }
.rate-t .inp { width: 100%; }
.rate-t td:nth-child(3) .inp { max-width: 120px; }
.rate-t td:last-child { width: 40px; }
.rate-t tbody tr:hover td:first-child { box-shadow: none; }

/* Under "By source": the words (No Attribution) is made of, to ask about. */
.na-note { padding: 10px 16px 12px; border-top: 1px solid var(--border); font-size: var(--t-sm); line-height: 1.7;
           display: flex; flex-wrap: wrap; gap: 2px 14px; }
.na-note:empty { display: none; }
.na-note b { font-weight: 600; margin-right: 2px; }
.na-w { white-space: nowrap; }

/* Money kept is green, money lost red — on tiles and in the by-month table. */
.stat-v .pos, .num .pos, td.num.up { color: var(--good); }
.stat-v .neg, .num .neg, td.num.down { color: var(--bad); }
.stat-d .neg { color: var(--bad); font-weight: 500; }

/* The master view's year as a P&L: lines down, months across, the bottom
   line at the bottom. */
.pl-t { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pl-t thead th { text-align: right; padding: 9px 8px; }
.pl-t thead th:first-child, .pl-t tbody th { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.pl-t tbody th { text-align: left; font-weight: 500; white-space: nowrap; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--surface-3); }
.pl-t tbody td { padding: 8px 8px; border-bottom: 1px solid var(--surface-3); white-space: nowrap; }
.pl-t .pl-yr { font-weight: 600; border-left: 1px solid var(--border) !important; }
.pl-cost th { color: var(--ink-2); font-weight: 450 !important; }
.pl-cost td { color: var(--ink-2); }
.pl-dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 8px; vertical-align: 0; }
.pl-cash th, .pl-cash td { font-weight: 600; }
.pl-sub th, .pl-sub td { font-weight: 600; border-top: 1px solid var(--ink); }
.pl-profit th, .pl-profit td { font-weight: 650; font-size: var(--t-md); padding-top: 11px; padding-bottom: 11px; }
.pl-profit th, .pl-profit td { border-bottom: 1px solid var(--border); }
.pl-margin th, .pl-margin td { font-weight: 500; border-bottom: 0; }
.pl-t td .pos { color: var(--good); } .pl-t td .neg { color: var(--bad); }

/* The Master view's tiles: one size for both rows, a step smaller. */
.stats.md { grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); }
.stats.md .stat { padding: 10px 14px 11px; }
.stats.md .stat-v { font-size: 21px; margin-top: 2px; }
.stats.md + .stats.md { margin-top: 0; border-top: 0; }
/* The month picker in the topbar opens towards the page, not off its edge. */
.mp.mp-right { margin-bottom: 0; }
.mp.mp-right .mp-pop { left: auto; right: 0; }
.topbar .mp-btn { font-size: 14px; }

/* While the numbers from the last visit are on screen and the latest load. */
.sync-note { font-size: var(--t-xs); color: var(--ink-3); white-space: nowrap; animation: sync-pulse 1.2s ease-in-out infinite; }
@keyframes sync-pulse { 50% { opacity: .45; } }

/* Not tracked yet: a month or tile whose figure is missing or partial is
   drawn in blue, with what is missing on hover. */
:root { --gap: #2563eb; --gap-bg: #eff4ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --gap: #7aa7ff; --gap-bg: #14203a; } }
:root[data-theme="dark"] { --gap: #7aa7ff; --gap-bg: #14203a; }
.pl-t td.pl-gap { background: var(--gap-bg); color: var(--gap) !important; }
.pl-t td.pl-gap .pos, .pl-t td.pl-gap .neg { color: var(--gap); }
.stat.gap { background: var(--gap-bg); }
.stat.gap .stat-v, .stat.gap .stat-v .pos, .stat.gap .stat-v .neg { color: var(--gap); }
.gap-key { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); color: var(--gap); }
.gap-key i { width: 10px; height: 10px; border-radius: 2px; background: var(--gap-bg); border: 1px solid var(--gap); }

/* Under a list shown a page at a time. */
.pager { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--border); font-size: var(--t-sm); }
.pager-n { color: var(--ink); font-variant-numeric: tabular-nums; min-width: 90px; text-align: center; }

/* Master view: the ring small, the months wide. */
.grid.mv-split { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); }
@media (max-width: 1100px) { .grid.mv-split { grid-template-columns: minmax(0, 1fr); } }
.donut-sm .donut { flex-direction: column; align-items: stretch; gap: 14px; }
.donut-sm .donut svg { width: 128px; height: 128px; align-self: center; }
.donut-sm .donut-legend { flex: none; }
/* The month card on a bar. */
.bars-tip { position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; min-width: 200px;
            background: var(--ink); color: var(--surface); border-radius: 8px; padding: 9px 11px; font-size: 12px;
            box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.bars-tip .bt-h { font-weight: 600; margin-bottom: 6px; }
.bars-tip .bt-r { display: flex; justify-content: space-between; gap: 16px; padding: 2px 0; font-variant-numeric: tabular-nums; }
.bars-tip .bt-r span { display: inline-flex; align-items: center; gap: 6px; opacity: .85; }
.bars-tip .bt-r i { width: 8px; height: 8px; border-radius: 2px; }
.bars-tip .bt-cash { border-bottom: 1px solid rgba(255,255,255,.15); padding-bottom: 5px; margin-bottom: 3px; }
.bars-tip .bt-p { border-top: 1px solid rgba(255,255,255,.15); padding-top: 5px; margin-top: 3px; }
.bars-tip .pos { color: #4ade80; } .bars-tip .neg { color: #f87171; }
.bar-hit { cursor: default; }

/* Settings → Team: one clean line per person. */
.users-t td { vertical-align: middle; }
.users-t td.acts { width: 1%; }
.users-t .btn-ghost { padding: 6px 8px; }
.btn.btn-sm { padding: 5px 10px; font-size: var(--t-sm); }
/* Settings → APIs: a connection switched off reads grey. */
tr.conn-off td:not(:last-child) { opacity: .5; }
.live.none { background: var(--ink-4, #c4c4c4); box-shadow: none; }

/* Coaching → Calls recorded. */
.co-top #rec-open { margin-left: 4px; }
.rec-t { width: 100%; }
.rec-t th:not(:first-child), .rec-t td:not(:first-child) { text-align: left; }
.rec-t tr.rec-r { cursor: pointer; }
.rec-t tr.rec-r.ok { cursor: default; }
.rec-t tr.rec-r:hover td { background: var(--surface-2); }
.rec-t tr.rec-d td { white-space: normal; text-align: left; padding: 2px 12px 10px 36px; }
.rec-t tr.rec-d ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; font-size: var(--t-sm); }
.rec-t tr.rec-d li { padding: 3px 0; break-inside: avoid; }
.rec-bar { display: inline-block; width: 120px; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; vertical-align: middle; }
.rec-bar i { display: block; height: 100%; background: var(--good, #22c55e); }
.rec-t .neg, .rec-b .neg { color: var(--bad); }
.rec-slack { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.rec-slack > div:first-child { max-width: 380px; }

/* Settings → Google Drive. */
.drive-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: var(--t-sm); color: var(--ink-2); }
.drive-steps .btn { vertical-align: baseline; }

/* Invoices: the drop field beside the list. */
.iv-grid { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 4px; }
@media (max-width: 960px) { .iv-grid { grid-template-columns: minmax(0, 1fr); } }
.iv-left { display: grid; gap: 12px; position: sticky; top: 76px; }
.iv-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  min-height: 260px; padding: 24px; border: 1.5px dashed var(--border-strong); border-radius: 12px; background: var(--surface);
  cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease); }
.iv-drop:hover, .iv-drop.on { border-color: var(--focus); background: color-mix(in srgb, var(--focus) 6%, var(--surface)); }
.iv-drop .iv-ico svg { width: 26px; height: 26px; color: var(--ink-3); }
.iv-drop b { font-size: var(--t-md); }
.iv-drop .iv-up { margin-top: 6px; pointer-events: none; }
.iv-queue { display: grid; gap: 4px; font-size: var(--t-sm); }
.iv-q { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; border-radius: 8px; background: var(--surface-2); }
.iv-q span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iv-q.read span:last-child { color: var(--focus); }
.iv-q.done span:last-child { color: var(--good); }
.iv-q.fail span:last-child { color: var(--bad); white-space: normal; text-align: right; }
.iv-drive { font-size: var(--t-sm); }
.iv-t { width: 100%; }
.iv-t th, .iv-t td { text-align: left; vertical-align: middle; }
.iv-t th.num, .iv-t td.num { text-align: right; }
.iv-t td.iv-who { white-space: normal; min-width: 220px; }
.iv-t td.iv-who .dim { font-size: var(--t-sm); }
.iv-t .iv-open { text-align: left; color: inherit; }
.iv-t .iv-err { font-size: var(--t-xs); margin-top: 2px; }
.iv-t .iv-due { font-size: var(--t-xs); }
.iv-t tr.iv-m td { background: var(--surface-2); font-size: var(--t-sm); padding-top: 7px; padding-bottom: 7px; }
.iv-t select.iv-unset { color: var(--bad); }
.iv-t .iv-date { width: 136px; padding: 3px 6px; font-size: var(--t-sm); }
.iv-t .iv-acts { width: 1%; }
.iv-t .pill.good { cursor: pointer; }

/* P&L: blocks that fold open, like the fulfillment sheet. */
.pn-t tbody th { cursor: default; }
.pn-t tr.pn-r:has(.twist) th { cursor: pointer; }
.pn-t .pn-l { display: inline-flex; align-items: center; gap: 6px; }
.pn-t .twist { border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 11px; line-height: 1; padding: 2px 3px; border-radius: 4px; width: 18px; }
.pn-t .twist:hover { color: var(--ink); background: var(--surface-2); }
.pn-t .twist-sp { display: inline-block; width: 18px; }
.pn-t .pn-n { font-size: 11px; font-weight: 400; margin-left: 4px; }
.pn-t .pn-note { font-size: 11px; font-weight: 400; margin-left: 4px; }
.pn-t tr.pn-top th { font-weight: 600; }
.pn-t tr.pn-top td { font-weight: 600; }
.pn-t tr.pn-top.open th, .pn-t tr.pn-top.open td { border-top: 1px solid var(--border-strong); }
.pn-t tr.d1 th, .pn-t tr.d1 td { font-weight: 450; color: var(--ink-2); }
.pn-t tr.d2 th, .pn-t tr.d2 td { font-weight: 400; color: var(--ink-3); font-size: 12px; }
.pn-t tr.pn-rev.pn-top th, .pn-t tr.pn-rev.pn-top td { color: var(--good); background: color-mix(in srgb, var(--good) 7%, var(--surface)); }
.pn-t th.cur, .pn-t td.cur { background: color-mix(in srgb, var(--focus) 6%, transparent); }

.iv-t td.iv-who { min-width: 200px; }
.iv-t .iv-meta { font-size: var(--t-xs); margin-top: 1px; }
.iv-t select { min-width: 132px; }
.iv-t .iv-date { width: 124px; }
.iv-t td { padding-left: 10px; padding-right: 10px; }

/* Invoices: the month on the left, the Drive lamp on the right. */
.iv-top { align-items: center; gap: 10px; margin-bottom: 12px; }
.drive-lamp { display: inline-flex; align-items: center; gap: 2px; font-size: var(--t-sm); padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink-2); font: inherit; font-size: var(--t-sm); }
.drive-lamp.on { color: var(--good); border-color: color-mix(in srgb, var(--good) 35%, transparent); background: color-mix(in srgb, var(--good) 8%, var(--surface)); }
button.drive-lamp { cursor: pointer; }
button.drive-lamp:hover { border-color: var(--border-strong); }
/* P&L: net cash closes the money-in block. */
.pn-t tr.pn-net th, .pn-t tr.pn-net td { font-weight: 600; border-top: 1px solid var(--border-strong); }

/* P&L: the bar, the three profits, refunds you can type in. */
.pn-bar { align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.pn-t tr.pn-profit th, .pn-t tr.pn-profit td { font-weight: 600; border-top: 1px solid var(--border-strong); background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.pn-t tr.pn-strong th, .pn-t tr.pn-strong td { font-weight: 700; font-size: 13.5px; border-top: 2px solid var(--border-strong); }
.pn-t td.pn-edit { cursor: pointer; text-decoration: underline dotted var(--ink-3); text-underline-offset: 3px; }
.pn-t td.pn-edit:hover { background: var(--surface-2); }

/* A page's own controls in the topbar (the P&L). */
.tb-own { gap: 12px; align-items: center; flex-wrap: nowrap; }
.tb-own .seg.dash-tabs { gap: 24px; }
.tb-own .ctl { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-sm); color: var(--ink-3); }
.tb-own .ctl .sel select { min-width: 170px; }
.seg.seg-sm button { font-size: var(--t-sm); padding: 4px 10px; }
/* P&L · Sources: a channel per column, its agency under its name. */
.pn-src thead th.pn-sh { vertical-align: bottom; white-space: normal; min-width: 92px; line-height: 1.25; }
.pn-src tbody td { padding-left: 6px; padding-right: 8px; }
.pn-src tbody th { padding-right: 6px; }
.pn-src thead th.pn-sh .lnk { display: block; margin-left: auto; font-weight: 600; color: var(--ink); text-align: right; }
.pn-src thead th.pn-sh .dim { display: block; font-size: 11px; font-weight: 400; text-transform: none; letter-spacing: 0; margin-top: 2px; }
.pn-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; }
.pn-head h2 { font-size: var(--t-lg); font-weight: 600; }
.card-h.pn-ch { padding-top: 8px; padding-bottom: 8px; }

/* P&L: margin and return on cost stand out; the back-end column is set apart. */
.pn-t tr.pn-mark th, .pn-t tr.pn-mark td { background: color-mix(in srgb, var(--good) 7%, var(--surface)); font-weight: 600; }
.pn-src th.pn-back, .pn-src td.pn-back { border-left: 1px solid var(--border-strong); }

/* ===================================================== CSM team + controlling */
.csm-ctl { gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.csm-t { width: 100%; }
.csm-t th, .csm-t td { text-align: left; }
.sw-vals.csm-vals { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.csm-one { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; }
@media (max-width: 900px) { .csm-one { grid-template-columns: minmax(0, 1fr); } }
.csm-one-r { display: grid; gap: 12px; }

.ct-bar { gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 14px; }
.ct-card { cursor: pointer; padding: 18px 20px; display: grid; gap: 16px; transition: border-color .12s; }
.ct-card:hover, .ct-card:focus-visible { border-color: var(--ink-3); }
.ct-card-h { display: flex; align-items: center; gap: 12px; }
.ct-card-h .avatar { width: 40px; height: 40px; font-size: 14px; }
.ct-card-h h2 { font-size: var(--t-lg); font-weight: 600; }
.ct-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); border-radius: 10px; overflow: hidden; }
.ct-nums div { background: var(--surface-2); padding: 12px 12px; display: grid; gap: 3px; }
.ct-nums b { font-size: 20px; font-weight: 600; font-family: var(--num); }
.ct-nums b .q { font-size: 20px; }
.ct-nums span { font-size: var(--t-xs); color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.ct-due { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-sm); color: var(--ink-3); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); }
.ct-due.alert { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); background: color-mix(in srgb, var(--bad) 8%, var(--surface)); }
.ct-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 22%, transparent); }
.ct-ok { font-size: var(--t-sm); color: var(--good); }
.ct-week { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; background: var(--surface); }
.ct-week.due { border-color: color-mix(in srgb, var(--bad) 35%, var(--border)); }
.ct-wh { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.ct-week textarea { resize: vertical; }

.kp-key { display: inline-flex; gap: 10px; align-items: center; font-size: var(--t-xs); color: var(--ink-3); }
.kp-key i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: -6px; }
.kp-key i.on, .kp-tile.on::before, .kp-card.on::before { background: var(--good); }
.kp-key i.close, .kp-tile.close::before, .kp-card.close::before { background: #e0a106; }
.kp-key i.off, .kp-tile.off::before, .kp-card.off::before { background: var(--bad); }
.kp-lib .card-b { display: grid; gap: 8px; }
.kp-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kp-group .stat-l { width: 76px; flex: none; }
.kp-chip { border: 1px solid var(--border); background: var(--surface-2); color: var(--ink); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: var(--t-sm); cursor: grab; }
.kp-chip.auto { border-color: color-mix(in srgb, var(--good) 45%, var(--border)); }
.kp-chip.picked { background: var(--ink); color: var(--surface); }
.kp-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0; margin-top: 10px; transition: border-color .12s, background .12s; }
.kp-row.over { border-color: var(--focus); background: color-mix(in srgb, var(--focus) 5%, var(--surface)); }
.kp-who { display: flex; align-items: center; gap: 10px; padding: 14px; border-right: 1px solid var(--border); }
.kp-who > div { display: grid; }
.kp-cards { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px; align-items: flex-start; min-height: 64px; }
.kp-empty { align-self: center; }
.kp-card { position: relative; width: 186px; border: 1px solid var(--border); border-radius: 10px; padding: 10px 10px 10px 14px; display: grid; gap: 6px; background: var(--surface); font-size: var(--t-sm); }
.kp-card::before, .kp-tile::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--border); }
.kp-ch { display: flex; justify-content: space-between; font-weight: 600; }
.kp-x { border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 15px; line-height: 1; }
.kp-card label { display: flex; align-items: center; gap: 6px; color: var(--ink-3); justify-content: space-between; }
.kp-in { width: 76px; padding: 3px 6px; text-align: right; }
.kp-auto { color: var(--ink); font-family: var(--num); }
.kp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.kp-tile { position: relative; border: 1px solid var(--border); border-radius: 12px; padding: 14px 14px 14px 18px; display: grid; gap: 4px; background: var(--surface); }
.kp-tile b { font-size: 26px; font-weight: 600; font-family: var(--num); letter-spacing: -0.02em; }
.kp-tile.on b { color: var(--good); } .kp-tile.off b { color: var(--bad); } .kp-tile.close b { color: #c58b00; }
.kp-l { font-size: var(--t-sm); color: var(--ink-2); font-weight: 500; }
.kp-g { font-size: var(--t-xs); color: var(--ink-3); }
.kp-live { margin-bottom: 12px; }

.vt-search { flex: 1; min-width: 260px; max-width: 520px; }
.vt-sec { margin-bottom: 22px; }
.vt-cat { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--ink-2); margin: 0 0 8px; }
.vt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 12px; }
.vt-item { padding: 14px; display: grid; gap: 8px; align-content: start; }
.vt-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vt-ctx { font-size: var(--t-sm); color: var(--ink-3); }
.vt-text { text-align: left; white-space: pre-wrap; font: inherit; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); background: var(--surface-2); border: 1px solid transparent;
  border-radius: 8px; padding: 9px 11px; cursor: copy; max-height: 190px; overflow: auto; transition: border-color .12s, background .12s; }
.vt-text:hover { border-color: var(--border-strong); }
.vt-text.copied { border-color: var(--good); background: color-mix(in srgb, var(--good) 8%, var(--surface)); }
.vt-link { display: flex; gap: 6px; align-items: center; color: var(--focus); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-n { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 4px; }

.sw-call .sw-ct td { white-space: normal; text-align: left; vertical-align: top; }
.vt-text { overflow-wrap: anywhere; }

/* CSM Team → Clients: big numbers in rows, like the CSM Council metrics. */
.cl-head { margin-bottom: 6px; }
.cl-sec { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; color: var(--ink-3); margin: 18px 0 8px; }
.cl-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.cl-k { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 14px 16px; display: grid; gap: 4px; }
.cl-l { font-size: var(--t-sm); color: var(--ink-2); font-weight: 500; }
.cl-k b { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; font-family: var(--num); }
.cl-s { font-size: var(--t-xs); color: var(--ink-3); }
.cl-lv td, .cl-mo td { vertical-align: middle; }
.cl-mo th:not(:first-child), .cl-mo td:not(:first-child) { text-align: right; }
section.card + .cl-sec, .cl-row + section.card { margin-top: 16px; }

/* ============================================ Controlling: protocol, updates, KPI board */
.tab-dot { display: inline-block; margin-left: 6px; vertical-align: 2px; width: 7px; height: 7px; }
.pr-t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pr-t th, .pr-t td { border-bottom: 1px solid var(--surface-3); padding: 7px 10px; text-align: left; vertical-align: top; white-space: normal; }
.pr-t th { position: sticky; top: 0; background: var(--surface); z-index: 1; font-weight: 500; min-width: 200px; }
.pr-t td.pr-item, .pr-t th.pr-item { width: 220px; min-width: 200px; color: var(--ink-2); position: sticky; left: 0; background: var(--surface); }
.pr-wh { display: grid; gap: 3px; justify-items: start; }
.pr-wh small { color: var(--ink-3); font-size: 11px; }
.pr-wh .btn { margin-top: 2px; }
.pr-t tr.pr-person td { background: var(--surface-2); padding-top: 9px; padding-bottom: 9px; position: static; }
.pr-t tr.pr-note td, .pr-t tr.pr-foot td { color: var(--ink-3); font-size: 12px; }
.pr-t td.pr-c { cursor: pointer; }
.pr-t td.pr-c:hover { background: var(--surface-2); }
.pr-cell { display: grid; gap: 2px; border-left: 3px solid var(--border); padding-left: 7px; }
.pr-cell b { font-weight: 600; font-size: 12px; }
.pr-cell span { color: var(--ink-3); font-size: 11.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pr-cell.good { border-color: var(--good); } .pr-cell.good b { color: var(--good); }
.pr-cell.okay { border-color: #e0a106; } .pr-cell.okay b { color: #c58b00; }
.pr-cell.bad { border-color: var(--bad); } .pr-cell.bad b { color: var(--bad); }
.pr-empty { color: var(--ink-3); opacity: .35; }
.pr-dots, .pr-mini { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.pr-dots i, .pr-mini i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-left: 4px; }
i.good { background: var(--good); } i.okay, i.warn { background: #e0a106; } i.bad { background: var(--bad); }
.pr-seg button.good[aria-pressed="true"] { background: var(--good); color: #fff; }
.pr-seg button.okay[aria-pressed="true"] { background: #e0a106; color: #fff; }
.pr-seg button.bad[aria-pressed="true"] { background: var(--bad); color: #fff; }
.pr-form { display: grid; gap: 16px; }
.pr-fh { margin-bottom: 6px; }
.pr-line { display: grid; grid-template-columns: 220px auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 4px 0; }
.pr-ln { font-size: var(--t-sm); }

.up-card .card-h { align-items: center; gap: 10px; }
.up-body { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 1000px) { .up-body { grid-template-columns: minmax(0, 1fr); } }
.up-loom { aspect-ratio: 16 / 9; background: var(--surface-2); border-radius: 10px; overflow: hidden; display: grid; place-items: center; }
.up-loom iframe { width: 100%; height: 100%; border: 0; }
.up-fields { display: grid; gap: 10px; align-content: start; }
.up-f p { margin: 3px 0 0; white-space: pre-wrap; font-size: var(--t-sm); }

.me-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.me-head .avatar { width: 44px; height: 44px; font-size: 15px; }
.me-head h1 { font-size: 20px; font-weight: 600; }
.me-upd textarea { resize: vertical; }
.me-fb { display: grid; gap: 10px; margin-top: 14px; }
.me-fb p { margin: 4px 0 0; font-size: var(--t-sm); color: var(--ink-2); }
.kp-glance { display: grid; gap: 14px; }

/* KPI board, after the CSM Council's "Setting The KPIs" */
.kb-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.kb-week { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 999px; padding: 3px 6px; background: var(--surface); }
.kb-week b { font-size: var(--t-md); }
.kb-key { display: flex; gap: 14px; font-size: var(--t-sm); color: var(--ink-3); }
.kb-key i, .kg-sum i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.kb-bar { position: sticky; top: 56px; z-index: 3; background: var(--bg, var(--surface)); padding: 10px 0 8px; border-bottom: 1px solid var(--border); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.kb-g { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kb-gl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: var(--ink-3); margin-right: 2px; }
.kb-chip { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 5px 11px; font-size: var(--t-sm); cursor: grab; user-select: none; }
.kb-chip:hover { border-color: var(--ink-3); }
.kb-chip.auto { border-color: color-mix(in srgb, var(--good) 50%, var(--border)); }
.kb-chip.sel { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.kb-bar .hint { flex-basis: 100%; margin: 2px 0 0; }
.kb-rows { display: grid; gap: 10px; }
.kb-rows.selecting .kb-row { outline: 1px dashed var(--ink-3); outline-offset: -1px; cursor: copy; }
.kb-row { display: grid; grid-template-columns: 230px minmax(0, 1fr); border: 1px solid var(--border); border-radius: 14px; background: var(--surface); transition: border-color .12s, background .12s; }
.kb-row.team { background: color-mix(in srgb, var(--surface-2) 50%, var(--surface)); }
.kb-row.over { border-color: var(--focus); background: color-mix(in srgb, var(--focus) 5%, var(--surface)); }
.kb-who { padding: 14px; border-right: 1px solid var(--border); display: grid; gap: 10px; align-content: start; }
.kb-wt { display: flex; gap: 10px; align-items: center; }
.kb-lv { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.kb-lv small { width: 100%; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.kb-pill { border: 1px solid var(--border); background: none; border-radius: 999px; padding: 2px 8px; font: inherit; font-size: 11.5px; color: var(--ink-3); cursor: pointer; }
.kb-pill.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.kb-tiles { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px; align-content: flex-start; min-height: 86px; }
.kb-empty { align-self: center; color: var(--ink-3); font-size: var(--t-sm); padding: 0 6px; }
.kt { position: relative; width: 196px; border: 1px solid var(--border); border-radius: 12px; padding: 10px 11px 10px 15px; display: grid; gap: 7px; background: var(--surface); font-size: var(--t-sm); cursor: grab; }
.kt::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--border); }
.kt.good::before { background: var(--good); } .kt.warn::before { background: #e0a106; } .kt.bad::before { background: var(--bad); }
.kt-h { display: flex; justify-content: space-between; gap: 6px; }
.kt-n { font-weight: 600; }
.kt-x { border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 15px; line-height: 1; }
.kt-l { display: flex; justify-content: space-between; align-items: center; color: var(--ink-3); gap: 6px; }
.kt-l label { display: inline-flex; align-items: center; gap: 3px; color: var(--ink-2); }
.kt-l input { width: 62px; padding: 3px 6px; text-align: right; border: 1px solid var(--border); border-radius: 6px; background: var(--surface-2); color: var(--ink); font: inherit; }
.kt-l input.wide { width: 80px; }
.kt-l.act b { font-family: var(--num); color: var(--ink); font-size: 14px; }
.kt.good .kt-l.act b { color: var(--good); } .kt.bad .kt-l.act b { color: var(--bad); } .kt.warn .kt-l.act b { color: #c58b00; }
.kt-auto { font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--good); margin-left: 3px; }
.kb-glance { margin-top: 18px; }
.kb-glance .gold { color: #c9a35b; }
.kg-t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.kg-t th, .kg-t td { padding: 9px 10px; border-bottom: 1px solid var(--surface-3); text-align: left; white-space: nowrap; }
.kg-t th small, .kg-t td.person small, .kg-c small { display: block; font-size: 10.5px; color: var(--ink-3); font-weight: 400; }
.kg-t td.none { color: var(--ink-3); }
.kg-c { display: grid; border-left: 3px solid var(--border); padding-left: 8px; }
.kg-c.good { border-color: var(--good); } .kg-c.warn { border-color: #e0a106; } .kg-c.bad { border-color: var(--bad); }
.kg-c b { font-family: var(--num); font-size: 15px; }
.kg-sum { display: flex; gap: 10px; }
.kb-rhythm { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; border: 1px solid var(--border); border-radius: 14px; padding: 20px 22px; background: var(--surface); }
.kb-rhythm h2 { font-size: 19px; margin-top: 4px; }
.kb-rhythm ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: var(--t-sm); color: var(--ink-2); }
@media (max-width: 900px) { .kb-row, .kb-rhythm { grid-template-columns: minmax(0, 1fr); } .kb-who { border-right: 0; border-bottom: 1px solid var(--border); } }

/* Clients → over time: small charts, a week a point. */
.ot-top { display: flex; align-items: center; gap: 12px; text-transform: uppercase; }
.ot-top .seg { text-transform: none; letter-spacing: 0; }
.ot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 18px; }
.ot-card { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 12px 14px 8px; display: grid; gap: 6px; }
.ot-h { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 8px; }
.ot-h .cl-l { grid-column: 1 / -1; }
.ot-h b { font-size: 20px; font-weight: 600; font-family: var(--num); }
.ot-d { font-size: var(--t-xs); color: var(--ink-3); }
.ot-d.up { color: var(--good); } .ot-d.dn { color: var(--bad); }
.ot-svg { width: 100%; height: 64px; display: block; }
.ot-line { fill: none; stroke: var(--ink-2); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.ot-svg.up .ot-line { stroke: var(--good); } .ot-svg.dn .ot-line { stroke: var(--bad); }
.ot-area { fill: color-mix(in srgb, var(--ink) 5%, transparent); }
.ot-svg.up .ot-area { fill: color-mix(in srgb, var(--good) 10%, transparent); } .ot-svg.dn .ot-area { fill: color-mix(in srgb, var(--bad) 8%, transparent); }
.ot-hit { fill: transparent; } .ot-hit:hover { fill: var(--ink-2); }
.ot-ax { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--ink-3); }
.ot-none { font-size: var(--t-xs); color: var(--ink-3); padding: 18px 0; }

/* Coaching → availability: days across, hours down, a lane per coach. */
.av-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 18px; }
@media (max-width: 1100px) { .av-wrap { grid-template-columns: minmax(0, 1fr); } }
.av-grid { display: grid; grid-template-columns: 44px repeat(7, minmax(0, 1fr)); gap: 0 4px; }
.av-axis { position: relative; height: var(--h); margin-top: 26px; }
.av-axis span { position: absolute; right: 6px; transform: translateY(-50%); font-size: 10.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.av-dh { height: 26px; font-size: var(--t-sm); color: var(--ink-2); text-align: center; }
.av-day.today .av-dh b { color: var(--focus); }
.av-day.past { opacity: .55; }
.av-col { position: relative; height: var(--h); border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.av-hr { position: absolute; left: 0; right: 0; height: 1px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.av-lane { position: absolute; top: 0; bottom: 0; padding: 0 1px; }
.av-b { position: absolute; left: 1px; right: 1px; border-radius: 3px; }
.av-b.open { background: color-mix(in srgb, var(--c) 32%, transparent); border-left: 2px solid var(--c); }
.av-b.booked { background: var(--c); opacity: .95; z-index: 1; }
.av-side { display: grid; gap: 12px; align-content: start; }
.av-list { display: grid; gap: 2px; }
.av-co { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; border: 0; background: none; font: inherit; font-size: var(--t-sm);
  color: var(--ink); padding: 5px 6px; border-radius: 6px; cursor: pointer; text-align: left; }
.av-co:hover, .av-co.on { background: var(--surface-2); }
.av-co.off { opacity: .45; }
.av-co i { width: 10px; height: 10px; border-radius: 3px; }
.av-co span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-co b { font-variant-numeric: tabular-nums; font-weight: 600; }
.av-co em { font-style: normal; color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 38px; text-align: right; }
.av-key { display: flex; gap: 14px; font-size: var(--t-xs); color: var(--ink-3); }
.av-key i { display: inline-block; width: 12px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.av-key i.o { background: color-mix(in srgb, var(--ink) 25%, transparent); border-left: 2px solid var(--ink-2); }
.av-key i.b { background: var(--ink-2); }

/* Q&A Vault: topics left, one compact line per template right. */
.vt { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .vt { grid-template-columns: minmax(0, 1fr); } }
.vt-nav { position: sticky; top: 70px; display: grid; gap: 2px; }
.vt-search { position: relative; margin-bottom: 8px; }
.vt-search .inp { width: 100%; padding-right: 26px; }
.vt-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 16px; }
.vt-cat { display: flex; justify-content: space-between; gap: 8px; border: 0; background: none; font: inherit; font-size: var(--t-sm); color: var(--ink-2); text-align: left;
  padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.vt-cat:hover { background: var(--surface-2); }
.vt-cat.on { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.vt-cat b { font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.vt-main { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.vt-head { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.vt-head h2 { font-size: var(--t-md); font-weight: 600; }
.vt-row { border-bottom: 1px solid var(--surface-3); }
.vt-row:last-child { border-bottom: 0; }
.vt-line { display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; cursor: copy; }
.vt-line .vt-title { flex: 0 0 250px; }
.vt-line .vt-prev { flex: 1; min-width: 0; }
.vt-line:hover { background: var(--surface-2); }
.vt-line.copied, .vt-var.copied { background: color-mix(in srgb, var(--good) 10%, var(--surface)); }
.vt-tw { border: 0; background: none; color: var(--ink-3); cursor: pointer; font-size: 11px; padding: 2px; }
.vt-title { font-weight: 600; font-size: var(--t-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-tag { font-size: 10.5px; color: var(--ink-3); border: 1px solid var(--border); border-radius: 999px; padding: 1px 7px; white-space: nowrap; }
.vt-tag:empty { display: none; }
.vt-prev { color: var(--ink-3); font-size: var(--t-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-n { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.vt-cp, .vt-del { border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 3px; line-height: 0; border-radius: 6px; }
.vt-cp:hover { color: var(--ink); background: var(--surface-3); }
.vt-del { opacity: 0; } .vt-line:hover .vt-del { opacity: .7; } .vt-del:hover { color: var(--bad); opacity: 1; }
.vt-cp svg, .vt-del svg { width: 14px; height: 14px; }
.vt-body { padding: 2px 16px 14px 36px; display: grid; gap: 8px; }
.vt-ctx { font-size: var(--t-sm); color: var(--ink-3); font-style: italic; }
.vt-var { border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px 10px; background: var(--surface-2); cursor: copy; transition: background .12s, border-color .12s; }
.vt-var:hover { border-color: var(--border-strong); }
.vt-vh { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 4px; }
.vt-text { white-space: pre-wrap; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.vt-ed { width: 100%; font: inherit; font-size: var(--t-sm); }
.vt-ed.multi { font-size: 12.5px; line-height: 1.5; resize: vertical; }
.vt-addv { justify-self: start; font-size: var(--t-sm); }
/* The new vault over the old one's rules. */
.vt .vt-cat { text-transform: none; letter-spacing: 0; margin: 0; font-size: var(--t-sm); font-weight: 400; }
.vt .vt-cat.on { font-weight: 600; }
.vt .vt-search { flex: none; min-width: 0; max-width: none; }
.vt .vt-var .vt-text { max-height: none; overflow: visible; background: none; border: 0; padding: 0; border-radius: 0; cursor: inherit; }

/* KPIs · results: who hit their goals this week. */
.kr-sum { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.kr-big { display: flex; align-items: baseline; gap: 8px; margin-right: 10px; }
.kr-big b { font-size: 28px; font-weight: 600; font-family: var(--num); }
.kr-big span { color: var(--ink-3); font-size: var(--t-sm); }
.kr-pill { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; font-size: var(--t-sm); background: var(--surface); }
.kr-pill b { font-family: var(--num); }
.kr-pill.good { border-color: color-mix(in srgb, var(--good) 50%, var(--border)); } .kr-pill.good b { color: var(--good); }
.kr-pill.warn b { color: #c58b00; } .kr-pill.bad { border-color: color-mix(in srgb, var(--bad) 45%, var(--border)); } .kr-pill.bad b { color: var(--bad); }
.kr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.kr-card { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 14px 16px; display: grid; gap: 10px; align-content: start; border-top: 3px solid var(--border); }
.kr-card.good { border-top-color: var(--good); } .kr-card.warn { border-top-color: #e0a106; } .kr-card.bad { border-top-color: var(--bad); }
.kr-h { display: flex; align-items: center; gap: 10px; }
.kr-h > div:nth-child(2) { display: grid; }
.kr-score { display: grid; justify-items: end; }
.kr-score b { font-size: 22px; font-family: var(--num); font-weight: 600; }
.kr-card.good .kr-score b { color: var(--good); } .kr-card.warn .kr-score b { color: #c58b00; } .kr-card.bad .kr-score b { color: var(--bad); }
.kr-score span { font-size: var(--t-xs); color: var(--ink-3); }
.kr-lines { display: grid; }
.kr-line { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--surface-3); }
.kr-line i, .kr-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); display: inline-block; }
.kr-line.good i, .kr-dot.good { background: var(--good); } .kr-line.warn i, .kr-dot.warn { background: #e0a106; } .kr-line.bad i, .kr-dot.bad { background: var(--bad); }
.kr-n { font-size: var(--t-sm); }
.kr-v { font-family: var(--num); font-size: 15px; text-align: right; }
.kr-line.good .kr-v { color: var(--good); } .kr-line.bad .kr-v { color: var(--bad); } .kr-line.warn .kr-v { color: #c58b00; }
.kr-g { grid-column: 3; font-size: 10.5px; color: var(--ink-3); text-align: right; }
.kr-in { display: inline-flex; align-items: center; gap: 3px; justify-self: end; color: var(--ink-3); font-size: var(--t-sm); }
.kr-in input { width: 70px; padding: 3px 6px; text-align: right; border: 1px dashed var(--border-strong); border-radius: 6px; background: var(--surface-2); color: var(--ink); font: inherit; }
.kr-miss { margin-top: -2px; }
.kr-work { margin-top: 16px; }

/* Protocol ratings: four coloured dots. */
.pr-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.pr-opt { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-2);
  border-radius: 999px; padding: 5px 12px 5px 9px; font: inherit; font-size: var(--t-sm); cursor: pointer; }
.pr-opt i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); }
.pr-opt.good i { background: var(--good); } .pr-opt.okay i { background: #e0a106; } .pr-opt.bad i { background: var(--bad); } .pr-opt.na i { background: #9aa0a6; }
.pr-opt:hover { border-color: var(--border-strong); }
.pr-opt[aria-pressed="true"] { color: #fff; border-color: transparent; }
.pr-opt[aria-pressed="true"] i { background: #fff; }
.pr-opt.good[aria-pressed="true"] { background: var(--good); } .pr-opt.okay[aria-pressed="true"] { background: #e0a106; }
.pr-opt.bad[aria-pressed="true"] { background: var(--bad); } .pr-opt.na[aria-pressed="true"] { background: #8a9096; }
.pr-cell.na { border-color: #9aa0a6; } .pr-cell.na b { color: var(--ink-3); }

/* Protocol · fill in this week */
.pf { padding: 0; }
.pf-top { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.pf-person { padding: 10px 16px 6px; border-bottom: 1px solid var(--surface-3); }
.pf-ph { display: flex; gap: 10px; align-items: baseline; margin-bottom: 4px; }
.pf-row { display: grid; grid-template-columns: 230px auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 5px 0; }
.pf-item { font-size: var(--t-sm); }
.pf-row .inp { font-size: var(--t-sm); }
.pf-foot { display: flex; align-items: flex-end; gap: 16px; padding: 14px 16px; flex-wrap: wrap; }
.pf-foot .fg { flex: 1; min-width: 280px; }
.pf-done .btn-primary { padding: 9px 18px; }
@media (max-width: 1000px) { .pf-row { grid-template-columns: minmax(0, 1fr); } }
/* Checkpoint editor */
.ce { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 12px; align-items: start; }
.ce-card { border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: grid; gap: 8px; background: var(--surface-2); }
.ce-h { display: flex; gap: 8px; align-items: center; }
.ce-name { flex: 1; font-weight: 600; } .ce-title { flex: 1.2; }
.ce-list { display: grid; gap: 4px; }
.ce-item { display: flex; gap: 6px; align-items: center; }
.ce-item .inp { flex: 1; }
.ce-mv { display: grid; }
.ce-mv button { border: 0; background: none; color: var(--ink-3); font-size: 8px; line-height: 1; padding: 1px 3px; cursor: pointer; }
.ce-mv button:disabled { opacity: .3; cursor: default; }
.ce-add { justify-self: start; font-size: var(--t-sm); }
#ce-addp { justify-self: start; align-self: start; }
.pf, .pf .pf-item, .pf .fg label { text-align: left; }
.pf .fg { display: grid; gap: 4px; justify-items: stretch; }

/* Protocol fill-in: notes that grow, Save beside them, sections edited in place. */
.pf-row { grid-template-columns: 230px auto minmax(0, 560px); }
.pf-nb { display: flex; gap: 6px; align-items: flex-start; }
.pf-note { flex: 1; resize: none; min-height: 32px; height: 32px; line-height: 1.45; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--t-sm); padding: 6px 9px; }
.pf-note.open { white-space: pre-wrap; overflow: auto; }
.pf-save { flex: none; opacity: .55; }
.pf-nb:focus-within .pf-save, .pf-save:hover { opacity: 1; }
.pf-ph { align-items: center; }
.pf-more { border: 0; background: none; color: var(--ink-3); font-size: 18px; line-height: 1; padding: 2px 8px; border-radius: 6px; cursor: pointer; }
.pf-more:hover { background: var(--surface-2); color: var(--ink); }
.pf-person.editing { background: color-mix(in srgb, var(--focus) 4%, var(--surface)); }
.pe-name { width: 200px; font-weight: 600; } .pe-title { width: 240px; }
.pe-list { display: grid; gap: 6px; margin: 8px 0; max-width: 620px; }
.pe-item { display: flex; gap: 6px; align-items: center; }
.pe-item .inp { flex: 1; }
.pe-add { font-size: var(--t-sm); margin-bottom: 6px; }
.pe-del { color: var(--bad); }
.pf-addsec { padding: 12px 16px; border-bottom: 1px solid var(--surface-3); }

/* Protocol · completed: one week, readable. */
.pc { padding: 0; text-align: left; }
.pc-count { gap: 4px; font-size: var(--t-sm); color: var(--ink-2); }
.pc-count i { margin-left: 8px; }
.pc-loom { padding: 14px 16px; border-bottom: 1px solid var(--surface-3); }
.pc-loom iframe { width: min(560px, 100%); aspect-ratio: 16 / 9; border: 0; border-radius: 10px; display: block; background: var(--surface-2); }
.pc-row { display: grid; grid-template-columns: 230px 130px minmax(0, 1fr); gap: 14px; align-items: start; padding: 8px 0; border-top: 1px solid var(--surface-3); }
.pf-ph + .pc-row { border-top: 0; }
.pc-item { font-size: var(--t-md); color: var(--ink); }
.pc-note { font-size: var(--t-md); color: var(--ink); line-height: 1.5; white-space: pre-wrap; }
.pc-pnote .pc-item { color: var(--ink-2); font-style: italic; }
.pc-pill { display: inline-flex; align-items: center; gap: 7px; font-size: var(--t-sm); font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 999px; justify-self: start;
  background: var(--surface-2); color: var(--ink-2); }
.pc-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); }
.pc-pill.good { background: color-mix(in srgb, var(--good) 14%, var(--surface)); color: var(--good); } .pc-pill.good i { background: var(--good); }
.pc-pill.okay { background: color-mix(in srgb, #e0a106 16%, var(--surface)); color: #b07c00; } .pc-pill.okay i { background: #e0a106; }
.pc-pill.bad { background: color-mix(in srgb, var(--bad) 14%, var(--surface)); color: var(--bad); } .pc-pill.bad i { background: var(--bad); }
.pc-pill.na i { background: #9aa0a6; } .pc-pill.none { font-weight: 400; color: var(--ink-3); } .pc-pill.none i { background: transparent; border: 1px solid var(--border-strong); }
@media (max-width: 900px) { .pc-row { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* KPIs · Goals and Owners. */
#kp-step { flex: none; }
.kgo-t { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.kgo-t th { text-align: left !important; font-weight: 500; color: var(--ink-3); padding: 9px 14px; border-bottom: 1px solid var(--surface-3); white-space: nowrap; }
.kgo-t td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--surface-3); vertical-align: middle; }
.kgo-t td .hint { font-size: var(--t-xs, 12px); margin-top: 2px; max-width: 520px; }
.kgo-t th:first-child, .kgo-t td:first-child { width: 48px; padding-right: 0; }
.kgo-g td { background: var(--surface-2); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); padding: 7px 14px; }
.kgo-r.off td:not(:first-child) { opacity: .5; }
.kgo-lv td { padding-top: 7px; padding-bottom: 7px; }
.kgo-lv td:nth-child(2) { padding-left: 30px; }
.kgo-now { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kgo-src { color: var(--action); }
.kg-in { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; color: var(--ink-3); }
.kg-in input { width: 76px; padding: 5px 8px; border: 1px solid var(--line, var(--surface-3)); border-radius: 7px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; }
.ko-lv { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.ko-lvc { display: grid; gap: 5px; }

.kgo-add { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.kgo-tag { font-size: 11px; color: var(--ink-3); border: 1px solid var(--surface-3); border-radius: 5px; padding: 0 5px; margin-left: 6px; font-weight: 500; }
.kgo-ed { border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 2px 4px; vertical-align: middle; }
.kgo-ed:hover { color: var(--ink); } .kgo-ed svg { width: 13px; height: 13px; }
.kgo-form { display: grid; gap: 12px; }
.kgo-3 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .kgo-3 { grid-template-columns: 1fr 1fr; } }
.kgo-del { color: var(--bad); }

/* Invoices — the drop field shows the upload in place; status chip; pages. */
.iv-drop { height: 260px; min-height: 0; overflow: hidden; }
.iv-drop.busy { border-style: solid; border-color: color-mix(in srgb, var(--focus) 45%, transparent); background: color-mix(in srgb, var(--focus) 4%, var(--surface)); cursor: progress; }
.iv-drop.done { border-style: solid; border-color: color-mix(in srgb, var(--good) 40%, transparent); background: color-mix(in srgb, var(--good) 5%, var(--surface)); }
.iv-fname { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-sm); }
.iv-spin { width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid color-mix(in srgb, var(--focus) 18%, transparent); border-top-color: var(--focus); animation: iv-spin .8s linear infinite; }
@keyframes iv-spin { to { transform: rotate(360deg); } }
.iv-bar { position: relative; width: 70%; height: 3px; border-radius: 3px; overflow: hidden; background: color-mix(in srgb, var(--focus) 14%, transparent); margin: 4px 0 2px; }
.iv-bar i { position: absolute; inset: 0 auto 0 0; width: 38%; border-radius: 3px; background: var(--focus); animation: iv-bar 1.3s ease-in-out infinite; }
@keyframes iv-bar { 0% { transform: translateX(-100%); } 100% { transform: translateX(270%); } }
.iv-ok { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); animation: iv-pop .35s ease-out; }
.iv-ok svg { width: 18px; height: 18px; }
@keyframes iv-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.iv-fails { display: grid; gap: 4px; font-size: var(--t-sm); }
.iv-fails .iv-q { align-items: center; }
.iv-fails .iv-q span:nth-child(2) { color: var(--bad); flex: 1; text-align: right; }
.iv-t th, .iv-t th.num, .iv-t td.iv-amt { text-align: left !important; }
.iv-t td.iv-amt { white-space: nowrap; font-variant-numeric: tabular-nums; }
.iv-t select.iv-matched { color: var(--ink-3); }
.iv-stat { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 8px; font: inherit; font-size: var(--t-sm); font-weight: 600; cursor: pointer; white-space: nowrap; border: 1px solid var(--border, var(--surface-3)); background: var(--surface); color: var(--ink); transition: background .15s, border-color .15s; }
.iv-stat:hover { border-color: var(--border-strong, var(--ink-3)); }
.iv-stat.paid { color: var(--good); border-color: color-mix(in srgb, var(--good) 35%, transparent); background: color-mix(in srgb, var(--good) 8%, var(--surface)); }
.iv-stat.paid svg { width: 14px; height: 14px; }
.iv-stat.paid em { font-style: normal; font-weight: 500; color: var(--ink-2); }
.iv-stat.working { opacity: .6; cursor: progress; }
.iv-t tr.iv-new td { animation: iv-new 1.6s ease-out; }
@keyframes iv-new { from { background: color-mix(in srgb, var(--good) 14%, transparent); } to { background: transparent; } }
.iv-pager { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--surface-3); }
.iv-pg { font-size: var(--t-sm); font-variant-numeric: tabular-nums; min-width: 44px; text-align: center; }
.iv-left { top: 76px; }
.iv-grid { grid-template-columns: 280px minmax(0, 1fr); }
@media (max-width: 960px) { .iv-grid { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================================
   Ace Sales Tools — additions on top of the data board's design system.
   ========================================================================== */

/* Page numbers under a paged list: 1 2 3 4 5 … 12 */
.pager { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--border); }
.pager:empty { display: none; }
.pager .btn { min-width: 32px; justify-content: center; font-variant-numeric: tabular-nums; }

/* Contracts, laid out as on tools.benkelly.co: groups flow into columns, one
   row per contract with its price and two buttons. */
.clist { columns: 3 320px; column-gap: 24px; }
.cgroup { break-inside: avoid; display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.cgroup h3 { font-size: var(--t-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); margin-bottom: 2px; }
.crow { display: flex; align-items: center; gap: 8px; padding: 9px 10px 9px 14px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.crow .cn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: var(--t-lg); white-space: nowrap; }
.crow .cn > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.crow .cn .emoji { font-size: 18px; }
.crow .cn small { font-weight: 400; color: var(--ink-3); font-size: var(--t-sm); margin-left: 6px; }
.cprice { font-size: var(--t-md); color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; margin-right: 2px; }
.cbtn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 32px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink); cursor: pointer; }
.cbtn:hover { background: var(--surface-3); }
.cbtn svg { width: 15px; height: 15px; }

/* The cash calculator is its own page (copied whole from tools.benkelly.co)
   shown in a frame that fills the page under the topbar. */
.calc-frame { display: block; width: 100%; height: calc(100vh - 110px); min-height: 560px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }

/* Offer map — the board from tools.benkelly.co on this design system. The
   board is a fixed size and scaled to the stage by JS. */
.om { display: flex; flex-direction: column; height: calc(100vh - 110px); min-height: 520px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2); overflow: hidden; }
.om-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border-bottom: 1px solid var(--border); background: var(--surface); }
.om-doc { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 8px; border: 1px solid var(--border); border-radius: 999px; font-size: var(--t-md); color: var(--ink); text-decoration: none; max-width: 60%; white-space: nowrap; overflow: hidden; }
.om-doc span { overflow: hidden; text-overflow: ellipsis; }
.om-doc:hover { background: var(--surface-3); }
.om-stage { flex: 1; position: relative; overflow: hidden; cursor: grab; user-select: none; touch-action: none; }
.om-stage.panning { cursor: grabbing; }
.om-board { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.om-edges { position: absolute; inset: 0; overflow: visible; z-index: 1; pointer-events: none; }
.om-section { position: absolute; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r); }
.om-section h2 { position: absolute; left: 16px; top: 12px; font-size: var(--t-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); }
.om-card { position: absolute; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 5px; text-align: left; padding: 12px 14px;
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--r-sm); color: var(--ink); cursor: pointer; font: inherit;
  transition: opacity .15s, box-shadow .15s, border-color .15s; }
.om-card:hover { border-color: var(--ink-3); }
.om-card.focus { box-shadow: var(--shadow-1); outline: 2px solid var(--ink); outline-offset: 1px; }
.om-name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--t-lg); letter-spacing: -.01em; line-height: 1.2; }
.om-emoji { font-size: 18px; line-height: 1; }
.om-price { font-size: var(--t-md); font-variant-numeric: tabular-nums; }
.om-purpose { font-size: var(--t-sm); color: var(--ink-3); line-height: 1.3; }
.om-tag { align-self: flex-start; margin-top: auto; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; padding: 2px 7px; border: 1px solid var(--border); border-radius: 4px; color: var(--ink-3); }
.om-card.flagship .om-tag { border-color: var(--ink); color: var(--ink); }
.om-card.pill { border-radius: 999px; align-items: center; padding: 8px 16px; background: var(--surface-2); border-style: dashed; gap: 0; }
.om-card.pill .om-name { font-size: var(--t-md); }
.om-card.pill .om-purpose { font-size: var(--t-xs); }
.om-board.dim .om-card:not(.focus):not(.linked) { opacity: .22; }
.om-board.dim .om-edge:not(.linked) { opacity: .12; }
.om-edge path { fill: none; stroke: var(--ink-3); stroke-width: 1.5; marker-end: url(#om-arrow); }
.om-edge.dashed path { stroke-dasharray: 5 5; }
.om-edge.linked path { stroke: var(--ink); stroke-width: 2; marker-end: url(#om-arrow-hi); }
.om-edge text { font-size: 10.5px; fill: var(--ink-3); }
.om-edge.linked text { fill: var(--ink); font-weight: 600; }
.om-edge rect { fill: var(--surface); stroke: none; }
#om-arrow path { fill: var(--ink-3); }
#om-arrow-hi path { fill: var(--ink); }
.om-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 340px; max-width: 100%; z-index: 20; overflow: auto; padding: 20px 22px;
  background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow-2, var(--shadow-1)); transform: translateX(100%); transition: transform .2s; }
.om-panel.open { transform: none; }
.om-close { position: absolute; top: 10px; right: 10px; }
.om-ptag { display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; padding: 2px 7px; border: 1px solid var(--border); border-radius: 4px; color: var(--ink-3); margin-bottom: 10px; }
.om-panel h2 { font-size: var(--t-xl); font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; padding-right: 30px; }
.om-pprice { font-size: var(--t-lg); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.om-ppurpose { color: var(--ink-2); font-size: var(--t-md); line-height: 1.45; margin-bottom: 14px; }
.om-panel h4 { margin: 16px 0 6px; font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.om-panel ul { padding-left: 18px; font-size: var(--t-md); line-height: 1.5; }
.om-panel li { margin-bottom: 3px; }
.om-panel > .om-panel-b > div:last-child { font-size: var(--t-md); }
.om-conn { display: flex; flex-direction: column; gap: 4px; font-size: var(--t-md); line-height: 1.5; }
.om-conn span { color: var(--ink-3); }
.om-conn b { font-weight: 600; cursor: pointer; }
.om-conn b:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .om-card, .om-panel { transition: none; } }

/* Payment links — the generator laid out as on CG Sales: the form, and the
   schedule and summary beside it. */
.gen-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 960px) { .gen-grid { grid-template-columns: 1fr; } }
.gen-split { gap: 12px; background: var(--surface-2); padding: 14px; border-radius: var(--r-sm); border: 1px solid var(--border); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline dotted var(--ink-3); text-underline-offset: 3px; }
.linkish:hover { text-decoration-color: var(--ink); }

/* Plain text in a status colour, for a figure inside a table cell. */
.warn-t { color: var(--warn); } .bad-t { color: var(--bad); }

/* Rail: the name top left is the way home; the "Close & collect" group —
   generate a link, see the cash, send the contract — sits on its own card so
   the three things used on every deal are the first thing the eye finds. */
.logo-home { display: flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; border-radius: var(--r-sm); }
.logo-home:hover .logo-mark { opacity: .85; }
.nav-primary { display: flex; flex-direction: column; gap: 2px; padding: 4px; margin: 2px 0 6px;
  background: color-mix(in srgb, var(--series-2) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--series-2) 28%, var(--border)); border-radius: var(--r); }
.nav-primary a { font-weight: 550; color: var(--ink); }
.nav-primary a svg { color: var(--series-2); }
.nav-primary a[aria-current="page"] { background: color-mix(in srgb, var(--series-2) 16%, var(--surface)); }

/* Offer map: the pricing document is the source the map is drawn from, so its
   link reads as a link — tinted, with an arrow — without getting any bigger. */
.om-doc { border-color: color-mix(in srgb, var(--series-1) 45%, var(--border)); background: color-mix(in srgb, var(--series-1) 9%, var(--surface)); font-weight: 600; }
.om-doc:hover { background: color-mix(in srgb, var(--series-1) 15%, var(--surface)); }
.om-doc svg { width: 14px; height: 14px; flex: none; color: var(--series-1); }

/* ================================================================ included == */
/* What each package gets. A reference table read during a call, so it is
   dense on purpose: the whole thing on one screen beats a prettier table
   somebody has to scroll while a prospect waits. */
.inc-tbl { width: 100%; border-collapse: collapse; }
.inc-tbl th, .inc-tbl td { border-bottom: 1px solid var(--border); }
.inc-tbl tbody tr:last-child th, .inc-tbl tbody tr:last-child td { border-bottom: 0; }

.inc-lbl-h { text-align: left; padding: 8px 12px; width: 34%; }
.inc-col { padding: 8px 6px; text-align: center; vertical-align: bottom; white-space: nowrap; }
.inc-emoji { display: block; font-size: 17px; line-height: 1.1; }
.inc-name { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 700; color: var(--ink); }

/* ACE+ PLUS is the one most deals land on, so it reads as the spine of the
   table rather than one column among five. */
.inc-best { background: var(--surface-2); }

.inc-lbl { padding: 7px 12px; text-align: left; font-weight: 500; color: var(--ink-2); }
.inc-cell { padding: 7px 6px; text-align: center; }

.inc-yes {
  display: inline-grid; place-items: center; width: 20px; height: 20px;
  border-radius: 999px; background: var(--good-bg); color: var(--good);
}
.inc-yes svg { width: 12px; height: 12px; }
.inc-no { display: inline-block; width: 12px; height: 2px; border-radius: 999px; background: var(--border-strong); vertical-align: middle; }
.inc-word { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--goal); }

.inc-sub { margin: 16px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.inc-extras { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.inc-extra {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface);
}
.inc-extra-e { flex: none; white-space: nowrap; font-size: 14px; line-height: 1.35; }
.inc-extra b { display: block; font-size: 12.5px; color: var(--ink); }
.inc-extra small { display: block; margin-top: 1px; font-size: 11.5px; line-height: 1.35; color: var(--ink-3); }
.inc-foot { margin-top: 10px; }

@media (max-width: 720px) {
  .inc-lbl-h, .inc-lbl { width: auto; padding-left: 8px; padding-right: 8px; font-size: 12px; }
  .inc-col, .inc-cell { padding-left: 3px; padding-right: 3px; }
  .inc-name { font-size: 11px; }
}
