/* Atlas — "the season, planned", in a calm workspace.
   V3 (30 Sep 2026): a warm neutral canvas, one ink colour for every grey, hairline borders
   instead of heavy rules and shadows, a light sidebar, compact controls with a bevelled
   primary button, sunken pill toggles, and colour kept for meaning (charts, status).
   The Overview headline keeps Bricolage Grotesque. Principles adapted from Lovable's app
   (studied 30 Sep); no brand assets, gradient or typeface copied.

   Headlines are sentences that answer the page's question, set in Bricolage Grotesque;
   everything else in Schibsted Grotesk. Chart colours are checked for colour-blind
   separation (dataviz validator), light and dark. The V3 component layer is at the end. */

@font-face { font-family: "Bricolage"; src: url("/static/fonts/bricolage.woff") format("woff");
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Schibsted"; src: url("/static/fonts/schibsted.woff") format("woff");
  font-weight: 400 900; font-display: swap; }

:root {
  --paper: #f7f6f3; --sheet: #fdfdfb; --raised: #ffffff; --ink: #1c1b19; --ink-2: #5a5752; --ink-3: #6e6b65;
  --rule: #e9e7e2; --rule-soft: #f0eeea; --rule-strong: #d8d5ce;
  --cover: #f1f0ec; --cover-ink: #1c1b19; --cover-muted: #6e6b65; --cover-hover: rgba(28, 27, 25, 0.05); --cover-on: rgba(28, 27, 25, 0.07);
  --night: #1c1b19; --night-ink: #f3f2ee; --night-muted: #a9a59d;
  --mark: #ffd84d; --mark-soft: rgba(255, 216, 77, 0.42);
  --accent: #1f64b8; --tint: rgba(28, 27, 25, 0.045); --ring: rgba(42, 120, 214, 0.24);
  --yr1: #4f493e; --yr2: #6b6455; --yr3: #8a8272; --yr4: #aca391;
  --rk1: #104281; --rk2: #256abf; --rk3: #5598e7; --rk4: #86b6ef;
  --series1: #2a78d6; --series2: #eb6834; --series3: #1baf7a; --series4: #eda100; --series5: #e87ba4; --series6: #008300; --series7: #4a3aa7; --series8: #e34948;
  --cmp: #e7e1d6; --cmp-line: #aca391; --series1-soft: rgba(42, 120, 214, 0.1);
  --good: #1a8f3c; --warning: #e0a100; --serious: #e2703f; --critical: #d03b3b;
  --good-ink: #147034; --bad-ink: #bb2f2f;
  --warning-mark: #b07d00; --seg-on: #ffffff;
  --shadow-sm: 0 1px 2px rgba(28, 27, 25, 0.06);
  --shadow-pop: 0 1px 2px rgba(28, 27, 25, 0.04), 0 8px 24px rgba(28, 27, 25, 0.1), 0 0 0 1px rgba(28, 27, 25, 0.06);
  --bevel: inset 0 0.5px 0 rgba(255, 255, 255, 0.22), inset 0 0 0 0.5px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.06);
  --ease: cubic-bezier(.2, 0, 0, 1);
  /* aliases kept for older markup */
  --surface: var(--sheet); --page: var(--paper); --grid: var(--rule); --baseline: var(--rule-strong); --muted: var(--ink-3);
  --display: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --text: "Schibsted", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 6px; --r: 8px; --r-md: 12px; --r-lg: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111110; --sheet: #181817; --raised: #1f1f1d; --ink: #f3f2ee; --ink-2: #b6b2aa; --ink-3: #86827b;
    --rule: #292826; --rule-soft: #212120; --rule-strong: #3a3936;
    --cover: #0c0c0b; --cover-ink: #eceae5; --cover-muted: #8b877f; --cover-hover: rgba(255, 255, 255, 0.05); --cover-on: rgba(255, 255, 255, 0.08);
    --night: #0c0c0b; --night-ink: #f3f2ee; --night-muted: #9c988f;
    --mark: #f5cf45; --mark-soft: rgba(245, 207, 69, 0.22);
    --accent: #6ea8f0; --tint: rgba(255, 255, 255, 0.055); --ring: rgba(110, 168, 240, 0.3);
    --yr1: #c9c2b4; --yr2: #a39b8c; --yr3: #7d7566; --yr4: #5a5347;
    --rk1: #9ec5f4; --rk2: #5598e7; --rk3: #256abf; --rk4: #184f95;
    --series1: #3987e5; --series2: #d95926; --series3: #199e70; --series4: #c98500; --series5: #d55181; --series6: #008300; --series7: #9085e9; --series8: #e66767;
    --cmp: #34312b; --cmp-line: #787062; --series1-soft: rgba(57, 135, 229, 0.14);
    --good: #3fbf62; --warning: #f0b92a; --serious: #ee8a5c; --critical: #ef5d5d;
    --good-ink: #5fd07d; --bad-ink: #f27d74;
    --warning-mark: #f0b92a; --seg-on: #2c2b29;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-pop: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.07);
    --bevel: inset 0 0.5px 0 rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --paper: #111110; --sheet: #181817; --raised: #1f1f1d; --ink: #f3f2ee; --ink-2: #b6b2aa; --ink-3: #86827b;
    --rule: #292826; --rule-soft: #212120; --rule-strong: #3a3936;
    --cover: #0c0c0b; --cover-ink: #eceae5; --cover-muted: #8b877f; --cover-hover: rgba(255, 255, 255, 0.05); --cover-on: rgba(255, 255, 255, 0.08);
    --night: #0c0c0b; --night-ink: #f3f2ee; --night-muted: #9c988f;
    --mark: #f5cf45; --mark-soft: rgba(245, 207, 69, 0.22);
    --accent: #6ea8f0; --tint: rgba(255, 255, 255, 0.055); --ring: rgba(110, 168, 240, 0.3);
    --yr1: #c9c2b4; --yr2: #a39b8c; --yr3: #7d7566; --yr4: #5a5347;
    --rk1: #9ec5f4; --rk2: #5598e7; --rk3: #256abf; --rk4: #184f95;
    --series1: #3987e5; --series2: #d95926; --series3: #199e70; --series4: #c98500; --series5: #d55181; --series6: #008300; --series7: #9085e9; --series8: #e66767;
    --cmp: #34312b; --cmp-line: #787062; --series1-soft: rgba(57, 135, 229, 0.14);
    --good: #3fbf62; --warning: #f0b92a; --serious: #ee8a5c; --critical: #ef5d5d;
    --good-ink: #5fd07d; --bad-ink: #f27d74;
    --warning-mark: #f0b92a; --seg-on: #2c2b29;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-pop: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.07);
    --bevel: inset 0 0.5px 0 rgba(255, 255, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
}

/* ---------------------------------------------------------------- base */
/* hidden means hidden, whatever display a class sets (the chart tooltip stayed on screen without this) */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--text);
  -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 0; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 600; }
h2 { font-family: var(--display); font-size: 1.5rem; letter-spacing: -0.015em; font-variation-settings: "opsz" 36; }
h3 { font-size: 1rem; }
p { margin: 0 0 8px; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
code { font-size: 0.875em; background: var(--paper); border: 1px solid var(--rule); padding: 1px 5px; border-radius: 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.quiet { color: var(--ink-2); }
.small { font-size: 0.875rem; }
.note, .meta { font-size: 0.8125rem; color: var(--ink-3); margin: 4px 0 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; z-index: 60; }
.skip-link:focus { left: 8px; }
.icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon .icon-cut { stroke-width: 1.8; }
.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- controls */
button, .btn {
  font: 600 0.9375rem/1 var(--text); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r); border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); cursor: pointer; text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
button:hover, .btn:hover { background: color-mix(in srgb, var(--ink) 86%, var(--accent)); }
button.ghost, .btn.secondary, .custom-range button { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
button.ghost:hover, .btn.secondary:hover, .custom-range button:hover { border-color: var(--ink); background: transparent; }
button.link { background: none; border: 0; min-height: 0; padding: 0; color: inherit; font-weight: 500; text-decoration: underline; }
input, select {
  font: 400 0.9375rem var(--text); min-height: 44px; padding: 0 12px; border-radius: var(--r);
  border: 1px solid var(--rule-strong); background: var(--sheet); color: var(--ink);
}
input:focus, select:focus { outline: 3px solid var(--tint); outline-offset: 0; border-color: var(--accent); }
input[type="file"] { padding: 9px 12px; }
label { font-size: 0.875rem; font-weight: 500; }

/* ---------------------------------------------------------------- frame: the cover and its tabs */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--cover); color: var(--cover-ink); position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 22px; padding: 22px 0 20px 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cover-ink); text-decoration: none; padding-right: 16px;
  font: 700 1.375rem/1 var(--display); letter-spacing: -0.02em; font-stretch: 90%; }
.mark { width: 18px; height: 18px; border-radius: 50%; border: 3px solid currentColor; position: relative; flex: none; }
.mark::after { content: ""; position: absolute; left: -3px; right: -3px; top: 5px; height: 2px; background: currentColor; }
.client { display: flex; align-items: center; gap: 8px; margin-right: 16px; font-size: 0.875rem; font-weight: 600; color: var(--cover-ink);
  padding: 10px 12px; border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r); }
.client-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mark); flex: none; }
.nav-scroll { display: flex; flex-direction: column; gap: 16px; }
.nav-group { display: grid; gap: 2px; }
.nav-label { margin: 0 0 4px; padding-left: 12px; font-size: 0.8125rem; color: var(--cover-muted); }
.side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side ul a { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 16px 0 12px; border-radius: var(--r) 0 0 var(--r);
  color: var(--cover-ink); text-decoration: none; font-weight: 500; font-size: 0.9375rem; opacity: 0.86; }
.side ul a .icon { color: var(--cover-muted); }
.side ul a:hover { background: var(--cover-hover); opacity: 1; }
/* the open tab joins the page, like a divider tab */
.side ul a[aria-current="page"] { background: var(--paper); color: var(--ink); opacity: 1; font-weight: 650; }
.side ul a[aria-current="page"] .icon { color: var(--accent); }
.side-foot { margin-top: auto; display: grid; gap: 10px; padding-right: 16px; font-size: 0.875rem; color: var(--cover-muted); }
.side-foot .link { color: var(--cover-muted); }
.switcher { display: grid; gap: 4px; }
.switcher label { color: var(--cover-muted); }

.content { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 10px 56px; background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.topbar-title { color: var(--ink-2); font-weight: 600; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px 0 4px; margin-left: -4px;
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.9375rem; border-radius: var(--r); }
.back:hover { color: var(--ink); background: var(--tint); }
.topbar-end { display: flex; align-items: center; gap: 16px; }
.fresh { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--ink-2); white-space: nowrap; }
.fresh-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.theme-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--rule); border-radius: 999px; background: var(--sheet); }
.theme-opt { width: 38px; min-height: 38px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--ink-3); }
.theme-opt:hover { background: var(--tint); color: var(--ink); }
.theme-opt[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.main { width: 100%; max-width: 1320px; padding: 16px 56px 112px; }

/* ---------------------------------------------------------------- page head: answer first */
.page-head { margin: 8px 0 40px; max-width: 64rem; }
.page-name { font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.page-name::before { content: ""; width: 22px; height: 8px; border-radius: 2px; background: var(--mark); }
.lede { font-family: var(--display); font-weight: 620; font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem); line-height: 1.06;
  letter-spacing: -0.012em; font-stretch: 92%; font-variation-settings: "opsz" 72; max-width: 24ch; text-wrap: balance; }
.intro { margin: 16px 0 0; font-size: 1.125rem; color: var(--ink-2); max-width: 62ch; line-height: 1.5; }
section { margin-bottom: 64px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 16px; }
.section-head h2, section > h2 { margin-bottom: 16px; }
.section-head h2 { margin: 0; }

/* ---------------------------------------------------------------- banners and notices */
.banner, .notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 0 0 16px; max-width: 80ch;
  border-left: 3px solid var(--accent); background: var(--sheet); border-radius: 0 var(--r) var(--r) 0; color: var(--ink); }
.banner .icon { color: var(--accent); margin-top: 3px; }
.banner.error { border-left-color: var(--critical); } .banner.error .icon { color: var(--critical); }
.banner.warn { border-left-color: var(--warning); } .banner.warn .icon { color: var(--warning); }
.notice { border-left-color: var(--good); } .notice .icon { color: var(--good); margin-top: 3px; }
.setup { display: flex; gap: 14px; padding: 18px 20px; margin: 0 0 32px; background: var(--sheet); border-radius: var(--r);
  border-left: 3px solid var(--critical); }
.setup .icon { color: var(--critical); width: 20px; height: 20px; margin-top: 2px; }
.setup p:last-child { margin: 0; color: var(--ink-2); }

/* ---------------------------------------------------------------- the season strip */
.season-strip { margin: -8px 0 56px; }
.chart.strip { width: 100%; height: auto; display: block; overflow: visible; }
.strip .grid { stroke: var(--rule); stroke-dasharray: 2 4; }
.strip .tick { fill: var(--ink-3); font: 500 13px var(--text); }
.strip .month { fill: var(--ink-2); font: 600 14px var(--text); }
.strip .month-rule { stroke: var(--rule-strong); stroke-width: 1; }
.strip .baseline { stroke: var(--ink); stroke-width: 1.5; }
.strip .ghost { fill: none; stroke: var(--ink-3); stroke-width: 1.25; stroke-dasharray: 3 2; }
.strip .bar { fill: var(--series1); }
.strip .now-label { fill: var(--ink); font: 700 13px var(--text); }
.strip .bar-g:hover .ghost, .strip .bar-g.on .ghost { stroke: var(--ink); }
.strip .bar-g.on .bar { fill: color-mix(in srgb, var(--series1) 80%, var(--ink)); }
.strip-key { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; font-size: 0.875rem; color: var(--ink-2); }
.key-solid, .key-ghost { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.key-solid { background: var(--series1); }
.key-ghost { border: 1.25px dashed var(--ink-3); margin-left: 10px; }

/* ---------------------------------------------------------------- the spread: main column + margin notes */
.spread { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; margin-bottom: 64px; }
.spread-main > section:last-child { margin-bottom: 0; }
.margin { position: sticky; top: 84px; margin: 0; padding-left: 28px; border-left: 1px solid var(--rule-strong); }
.margin h2 { font-size: 1.25rem; margin-bottom: 16px; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.note-item { position: relative; padding-left: 16px; }
.note-item::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 4px; width: 3px; border-radius: 2px; background: var(--ink-3); }
.note-item.sev-critical::before { background: var(--critical); }
.note-item.sev-serious::before { background: var(--serious); }
.note-item.sev-warning::before { background: var(--warning); }
.note-money { font: 650 1.25rem/1.2 var(--display); letter-spacing: -0.02em; margin: 0 0 4px; font-variant-numeric: tabular-nums; }
.note-finding { font-weight: 600; font-size: 0.9375rem; line-height: 1.4; margin: 0 0 6px; }
.note-action { font-size: 0.875rem; color: var(--ink-2); line-height: 1.45; margin: 0; }

/* ---------------------------------------------------------------- filter bar: one compact sticky row */
.period-bar { position: sticky; top: 64px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  margin: 0 0 28px; padding: 8px 0; background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.seg a, .seg .disabled { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: var(--r-sm);
  color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; font-weight: 500; position: relative; }
.seg a:hover { color: var(--ink); background: var(--tint); }
.seg a[aria-current="true"] { color: var(--ink); font-weight: 650; background: var(--sheet); box-shadow: inset 0 -2px 0 var(--accent); }
.seg .disabled { color: var(--ink-3); cursor: not-allowed; text-decoration: line-through; text-decoration-thickness: 1px; }
.seg.compare a, .seg.grain a { font-size: 0.875rem; min-height: 36px; }
/* segmented pills: a sunken track with the chosen option raised */
.seg.pills { flex-wrap: nowrap; gap: 2px; padding: 3px; border-radius: 9px; background: color-mix(in srgb, var(--ink) 6%, transparent); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.spread-main, .spread > * { min-width: 0; }
.chart-switches .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg.pills a { min-height: 32px; padding: 0 11px; font-size: 0.875rem; border-radius: 7px; white-space: nowrap; }
.seg.pills a:hover { background: color-mix(in srgb, var(--sheet) 60%, transparent); }
.chart-switches .seg { flex-wrap: nowrap; gap: 2px; padding: 3px; border-radius: 9px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.chart-switches .seg a, .chart-switches .seg .disabled { min-height: 30px; padding: 0 10px; font-size: 0.8125rem; border-radius: 7px; }
.range-label { margin-left: auto; font-size: 0.8125rem; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.custom-pop { position: relative; }
.custom-pop summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px;
  border: 1px solid var(--rule-strong); border-radius: 9px; font-size: 0.875rem; font-weight: 500; color: var(--ink-2); background: var(--sheet); }
.custom-pop summary::-webkit-details-marker { display: none; }
.custom-pop summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 2px; }
.custom-pop[data-on] summary { color: var(--ink); font-weight: 650; border-color: var(--ink); }
.custom-pop[open] .custom-range { position: absolute; top: calc(100% + 6px); left: 0; z-index: 25; padding: 14px; background: var(--sheet);
  border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--shadow-pop); flex-wrap: nowrap; }
.custom-range { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.875rem; }
.custom-range label { color: var(--ink-2); font-weight: 500; }
.custom-range input[type="date"] { min-height: 38px; padding: 0 10px; }
.custom-range button { min-height: 38px; }

/* ---------------------------------------------------------------- figures: a ruled strip, not a wall of cards */
.figure-row, .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 0 0 8px;
  border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--rule); }
/* each figure carries a rule on its left; the one at the start of a row is clipped away */
.figure-row, .tiles { overflow: hidden; }
.fig, .tile { padding: 18px 20px; margin: 0 0 0 -1px; border-left: 1px solid var(--rule); display: grid; align-content: start; gap: 4px; min-width: 0; }
.fig dt, .tile h3 { font-size: 0.875rem; font-weight: 500; color: var(--ink-2); }
.fig dd { margin: 0; }
.fig-value, .tile .value { font: 620 2rem/1.1 var(--display); letter-spacing: -0.01em; font-stretch: 92%; font-variant-numeric: tabular-nums; margin: 2px 0; }
.fig-cmp, .cmp { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 0.8125rem; margin: 0; }
.vs { color: var(--ink-3); }
.delta { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-variant-numeric: tabular-nums; }
.delta.good { color: var(--good-ink); } .delta.bad { color: var(--bad-ink); } .delta.flat { color: var(--ink-2); }
.delta .icon { width: 13px; height: 13px; }
.fig-spark .spark { margin-top: 6px; }
.spark { width: 100%; max-width: 180px; height: 34px; display: block; }
.spark-line { fill: none; stroke: var(--series1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark-cmp { fill: none; stroke: var(--ink-3); stroke-width: 1.25; stroke-dasharray: 3 2; stroke-linejoin: round; }
.spark-dot { fill: var(--series1); }
.tile .note { font-size: 0.75rem; }
/* period tiles you can click to chart */
.tile.tab { color: var(--ink); text-decoration: none; cursor: pointer; position: relative; transition: background-color .15s; }
.tile.tab:hover { background: var(--tint); }
.tile.tab.on::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--accent); }
.chart-hint { font-size: 0.75rem; color: var(--ink-3); margin-top: 4px; }
.tile.tab.on .chart-hint { color: var(--accent); font-weight: 650; }
.standing { font-size: 1.25rem; margin: 16px 0 6px; }
.standing-note { margin-bottom: 16px; }

/* ---------------------------------------------------------------- period section and charts */
.period { margin-bottom: 64px; }
.period-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 18px; }
.period-head h2 { font-size: 1.375rem; }
.period-head .note { width: 100%; }
.period-tiles { margin-bottom: 24px; }
.chart-pick { margin-bottom: 12px; }
.panel, .block { background: var(--sheet); border-radius: var(--r-lg); padding: 24px 28px; margin: 0; }
.block { margin-bottom: 40px; }
.block h2 { font-size: 1.375rem; }
.block > .meta { margin: 2px 0 18px; }
.period-panel { padding: 22px 26px 18px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.chart-head h3 { font: 600 1.0625rem var(--display); }
.chart-narrow { display: none; }
.chart-switches { display: flex; flex-wrap: wrap; gap: 8px; }
.chart-sum { margin: 2px 0 0; font-size: 0.8125rem; color: var(--ink-2); }
.chart-key { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 0.8125rem; color: var(--ink-2); }
.trend { margin-top: 20px; }
.trend .chart-pick { margin: 0 0 14px; }
/* time columns: this period solid, the comparison an outlined ghost behind it */
.chart.cols .grid { stroke: var(--rule); stroke-dasharray: 2 4; }
.chart.cols .baseline { stroke: var(--ink); stroke-width: 1.25; }
.chart.cols .tick.x { fill: var(--ink-2); font-weight: 600; }
.chart.cols .month-rule { stroke: var(--rule-strong); stroke-width: 1; }
.chart.cols .bar { fill: var(--series1); }
.chart.cols .bar.peak { fill: color-mix(in srgb, var(--series1) 82%, var(--ink)); }
.chart.cols .ghost { fill: color-mix(in srgb, var(--ink-3) 14%, transparent); stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2.5 2; }
.chart.cols .avg { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 5 4; }
.chart.cols .peak-label { fill: var(--ink); font: 700 12.5px var(--text); paint-order: stroke; stroke: var(--sheet); stroke-width: 4px; }
.chart.cols .bar-g:hover .bar, .chart.cols .bar-g.on .bar { fill: color-mix(in srgb, var(--series1) 75%, var(--ink)); }
.chart.cols .bar-g:hover .ghost, .chart.cols .bar-g.on .ghost { stroke: var(--ink); }
.chart.cols .bar-g:hover .hit, .chart.cols .bar-g.on .hit { fill: color-mix(in srgb, var(--ink) 5%, transparent); }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(460px, 1fr)); gap: 24px; }
.panel figcaption { margin-bottom: 12px; }
.panel figcaption h3 { font: 600 1.0625rem var(--display); }
.panel figcaption p { color: var(--ink-2); font-size: 0.875rem; margin: 2px 0 0; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--rule); stroke-width: 1; }
.chart .baseline { stroke: var(--rule-strong); stroke-width: 1; }
.chart .tick { fill: var(--ink-3); font: 500 13px var(--text); }
.chart .line { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.chart .line-cmp { stroke-width: 1.75; stroke-dasharray: 4 3; }
.chart .area { fill-opacity: 0.1; stroke: none; }
.chart .dot { stroke: var(--sheet); stroke-width: 2; }
.chart .end-label { fill: var(--ink); font: 700 13px var(--text); }
.chart .hit { fill: transparent; }
.chart .xh { stroke: var(--ink-2); stroke-width: 1; opacity: 0; }
.chart .col.on .xh { opacity: 0.55; }
.chart .bar-g.on .bar { opacity: 0.82; }
.chart .connector { stroke: var(--rule-strong); stroke-width: 1; }
.chart .hlabel { fill: var(--ink); font: 500 14px var(--text); }
.chart .hsub, .chart .hvalue { fill: var(--ink-2); font: 500 13px var(--text); }
.chart .hlabel.strong, .chart .hvalue.strong { font-weight: 700; fill: var(--ink); }
.chart.split { height: 14px; width: 100%; }
.chart-empty { color: var(--ink-3); padding: 24px 0; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; padding: 0; font-size: 0.875rem; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 6px; }
.swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.key-line { width: 16px; height: 2px; border-radius: 1px; display: inline-block; }
.sw-series1 { background: var(--series1); } .sw-series2 { background: var(--series2); } .sw-series3 { background: var(--series3); }
.sw-series4 { background: var(--series4); } .sw-series5 { background: var(--series5); } .sw-series6 { background: var(--series6); }
.sw-critical { background: var(--critical); }
.tip { position: fixed; z-index: 100; pointer-events: none; display: grid; gap: 4px; min-width: 150px; max-width: 300px; padding: 10px 12px;
  background: var(--ink); color: var(--paper); border-radius: var(--r); box-shadow: var(--shadow-pop); font-size: 0.8125rem; }
.tip-title { color: color-mix(in srgb, var(--paper) 72%, transparent); font-size: 0.75rem; }
.tip-row { display: flex; align-items: center; gap: 8px; }
.tip-row strong { font-variant-numeric: tabular-nums; }
.tip-key { width: 12px; height: 3px; border-radius: 2px; background: var(--paper); flex: none; }
.tip-name { color: color-mix(in srgb, var(--paper) 72%, transparent); }

/* ---------------------------------------------------------------- split panels (sites, customers) */
.split-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.split-panels .panel { background: none; padding: 0; border-radius: 0; display: grid; gap: 12px; align-content: start; }
.split-panels .panel h3 { font: 600 1.125rem var(--display); }
.big-figure { font: 620 2.5rem/1 var(--display); letter-spacing: -0.01em; font-stretch: 92%; margin: 0; display: flex; align-items: center; gap: 12px; font-variant-numeric: tabular-nums; }
.big-figure .delta { font: 700 0.875rem var(--text); letter-spacing: 0; }
.mini-table { font-size: 0.9375rem; }

/* ---------------------------------------------------------------- areas: an index, not a card grid */
.areas h2 { margin-bottom: 8px; }
.area-index { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.area-index li { border-bottom: 1px solid var(--rule); }
.area-row { display: grid; grid-template-columns: minmax(220px, 1.3fr) minmax(0, 2fr) 150px 150px; gap: 24px; align-items: center;
  padding: 18px 12px; margin: 0 -12px; color: var(--ink); text-decoration: none; border-radius: var(--r); transition: background-color .15s; }
.area-row:hover { background: var(--sheet); }
.area-name { display: flex; align-items: flex-start; gap: 14px; }
.area-name > .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--accent); }
.area-name strong { display: block; font: 650 1.1875rem/1.2 var(--display); letter-spacing: -0.01em; }
.area-blurb { display: block; font-size: 0.875rem; color: var(--ink-2); margin-top: 2px; }
.area-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.af { display: grid; gap: 2px; min-width: 0; }
.af-label { font-size: 0.8125rem; color: var(--ink-2); }
.af-value { font-weight: 650; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.af-value .delta { font-size: 0.75rem; margin-left: 4px; }
.af-value .delta .icon { display: none; }
.area-spark .spark { max-width: 150px; }
.area-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.issue-count { font-size: 0.8125rem; font-weight: 650; color: var(--bad-ink); }
.area-open { font-size: 0.875rem; font-weight: 650; color: var(--accent); }
.area-row:hover .area-open { text-decoration: underline; }

/* ---------------------------------------------------------------- quick look */
dialog.quick { width: min(820px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 20px;
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow-pop); overflow: auto; }
dialog.quick::backdrop { background: rgba(9, 12, 22, 0.55); }
dialog.quick[open] { animation: pop .2s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.quick-inner { padding: 32px 36px 36px; display: grid; gap: 24px; }
.quick-close { position: absolute; top: 18px; right: 18px; width: 44px; padding: 0; border-radius: 999px; background: var(--sheet); color: var(--ink); border-color: var(--rule); }
.quick-close:hover { background: var(--sheet); border-color: var(--ink); }
.quick-head h2 { display: flex; align-items: center; gap: 12px; font-size: 2rem; letter-spacing: -0.025em; }
.quick-head h2 .icon { width: 24px; height: 24px; color: var(--accent); }
.quick-head .meta { font-size: 0.9375rem; color: var(--ink-2); }
.quick-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--rule); }
.quick-figs { overflow: hidden; }
.qf { display: grid; gap: 2px; padding: 14px 16px; margin-left: -1px; border-left: 1px solid var(--rule); align-content: start; justify-items: start; }
.qf span:first-child { font-size: 0.8125rem; color: var(--ink-2); }
.qf strong { font: 650 1.375rem/1.15 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.qf .delta { font-size: 0.75rem; }
.quick-chart { margin: 0; background: var(--sheet); border-radius: var(--r-lg); padding: 18px 20px; }
.quick-chart figcaption { font: 600 1rem var(--display); margin-bottom: 8px; }
.quick-issues h3 { font: 600 1.125rem var(--display); margin-bottom: 10px; }
.quick-issues ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.quick-issues li { display: flex; gap: 10px; align-items: flex-start; }
.quick-issues li .icon { color: var(--critical); margin-top: 4px; }
.quick-foot { margin: 0; }
.quick .split-panels { grid-template-columns: 1fr; gap: 24px; margin: 0; }

/* ---------------------------------------------------------------- issues ledger (area pages) */
.issues { margin-bottom: 64px; }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.entry { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.entry-money { display: grid; align-content: start; justify-items: end; text-align: right; gap: 2px; }
.entry-money strong { font: 650 1.75rem/1.1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.entry-money span { font-size: 0.8125rem; color: var(--ink-2); }
.entry-body { display: grid; gap: 6px; justify-items: start; }
.finding { font-weight: 650; margin: 0; max-width: 70ch; font-size: 1.0625rem; }
.mechanism { color: var(--ink-2); margin: 0; max-width: 70ch; }
.action { margin: 4px 0 0; max-width: 70ch; }
.action span { font-weight: 650; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.chip .icon { width: 14px; height: 14px; }
.chip.sev-critical .icon, .chip.st-error .icon { color: var(--critical); }
.chip.sev-serious .icon { color: var(--serious); }
.chip.sev-warning .icon { color: var(--warning); }
.chip.sev-info .icon, .chip.st-disconnected .icon, .chip.st-syncing .icon, .chip.st-waiting .icon { color: var(--ink-3); }
.chip.st-connected .icon, .chip.sev-ok .icon { color: var(--good); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 64px; }
.two-col h2 { font-size: 1.25rem; margin-bottom: 12px; }
.findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.findings li { display: flex; gap: 10px; align-items: flex-start; }
.findings li .icon { margin-top: 4px; }
.findings.good .icon { color: var(--good-ink); } .findings.bad .icon { color: var(--bad-ink); }

/* ---------------------------------------------------------------- tables: quiet rules, real numbers */
.table-wrap, .table-scroll { overflow-x: auto; }
.table-scroll { background: var(--sheet); border-radius: 12px; max-height: 560px; overflow-y: auto; border: 1px solid var(--rule); }
.table-scroll.tall { max-height: 720px; }
.table-card { position: relative; }
.table-card .table-scroll { border-radius: 12px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
th { text-align: left; font-weight: 600; font-size: 0.8125rem; color: var(--ink-3); padding: 11px 16px; border-bottom: 1px solid var(--rule-strong); }
td { padding: 13px 16px; border-bottom: 1px solid var(--rule); vertical-align: middle; color: var(--ink); }
tbody th { font-size: 0.9375rem; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--rule); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody tr:hover td, tbody tr:hover th { background: color-mix(in srgb, var(--ink) 3%, var(--sheet)); }
th.num, td.num { text-align: right; }
td.strong { font-weight: 650; }
table.data thead th { position: sticky; top: 0; background: var(--sheet); z-index: 2; white-space: nowrap; }
table.data td, table.data th { white-space: nowrap; }
/* the first column stays put when a wide table scrolls sideways */
table.data tbody th, table.data tfoot th { position: sticky; left: 0; background: var(--sheet); z-index: 1; }
table.data thead th:first-child { left: 0; z-index: 3; }
table.data tfoot td, table.data tfoot th { position: sticky; bottom: 0; background: var(--sheet); border-top: 1px solid var(--ink); border-bottom: 0; font-weight: 650; padding-top: 12px; padding-bottom: 12px; }
table.data tfoot th { z-index: 2; }
table.data td.items { white-space: normal; min-width: 240px; max-width: 420px; color: var(--ink-2); }
table.data td .delta { font-size: 0.8125rem; font-weight: 600; }
.pcell { display: flex; align-items: center; gap: 12px; }
.pname { display: block; font-weight: 600; }
.sku { display: block; color: var(--ink-3); font-size: 0.8125rem; font-weight: 400; margin-top: 1px; max-width: 460px; overflow: hidden; text-overflow: ellipsis; }
.pdot { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(128, 128, 128, 0.35); }
.pdot.none { box-shadow: inset 0 0 0 1.5px var(--rule-strong); }
.pdot.c-black { background: #1f2024; } .pdot.c-blush { background: #e9b9b3; } .pdot.c-green { background: #3f7d5a; }
.pdot.c-grey { background: #9aa0a8; } .pdot.c-navy { background: #1f2f5c; } .pdot.c-orange { background: #e8772e; }
.pdot.c-pink { background: #e0609e; } .pdot.c-tan { background: #c79a6b; } .pdot.c-turquoise { background: #2bb3b1; }
.kind-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 0.6875rem; font-weight: 600;
  color: var(--ink-2); background: color-mix(in srgb, var(--ink) 7%, transparent); vertical-align: 2px; }
a.sort { color: inherit; text-decoration: none; }
a.sort:hover, a.sort.on { color: var(--ink); }
a.sort.on::after { content: " ↓"; }
.share { display: inline-flex; align-items: center; gap: 10px; min-width: 140px; }
.share-bar { display: inline-block; height: 6px; border-radius: 3px; background: var(--series1); min-width: 2px; max-width: 80px; flex: none; }
.table-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }
.table-search { margin-left: auto; }
.table-search input { min-height: 38px; width: 240px; padding: 0 12px 0 34px; border-radius: 9px; border: 1px solid var(--rule-strong); background: var(--sheet) no-repeat 11px 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%237d8397' stroke-width='2'%3E%3Ccircle cx='6' cy='6' r='4.5'/%3E%3Cpath d='m9.5 9.5 3 3'/%3E%3C/svg%3E"); }
.table-empty { padding: 28px; text-align: center; color: var(--ink-2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; margin: 0 0 24px; border-radius: var(--r); background: var(--sheet); border: 1px solid var(--rule); }
.callout p { margin: 0; } .callout .icon { margin-top: 3px; color: var(--accent); flex: none; }
.callout.good .icon { color: var(--good-ink); }
.empty-state { display: flex; gap: 12px; align-items: center; padding: 32px; border-radius: 12px; background: var(--sheet); border: 1px dashed var(--rule-strong); }
.empty-state p { margin: 0; }
.review-form select, .review-form input { min-height: 36px; font-size: 0.875rem; }
.year-in { width: 88px; }
.review-form table.data tbody th { white-space: normal; min-width: 260px; max-width: 400px; }
.review-form select { max-width: 220px; }
.form-foot { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.back-link { font-weight: 600; }
.mini-table th, .mini-table td { padding: 8px 6px; }
.mini-table tbody th { font-size: 0.9375rem; }
.runs { margin-top: 8px; }
details summary { cursor: pointer; color: var(--ink-2); font-size: 0.9375rem; font-weight: 500; padding: 8px 0; }
details.breakdown { margin-top: 16px; }
.product-table { margin-top: 48px; }

/* ---------------------------------------------------------------- orders */
.stage-filter { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 16px; }
.stage-filter a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: var(--r-sm);
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.stage-filter a:hover { background: var(--tint); color: var(--ink); }
.stage-filter a[aria-current="true"] { background: var(--sheet); color: var(--ink); font-weight: 650; box-shadow: inset 0 -2px 0 var(--accent); }
.stage-filter .n { color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.order-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.order-search input[type="search"] { width: min(360px, 100%); }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.pager a { font-weight: 600; }

/* ---------------------------------------------------------------- stock and storage */
.stock { margin: 48px 0 64px; }
.status-chips { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 16px; }
.pallet-shelf { margin: 0 0 40px; display: grid; gap: 12px; }
.pallet-shelf h3 { font: 600 1.25rem var(--display); }

/* ---------------------------------------------------------------- costs entry */
.cost-entry { grid-column: 1 / -1; display: grid; gap: 12px; }
.cost-entry h3 { font: 600 1.25rem var(--display); }
.cost-entry td:last-child { white-space: nowrap; }
.inline-cost { display: flex; flex-wrap: nowrap; gap: 6px; align-items: center; }
.inline-cost input[name="cogs"] { width: 100px; }
.inline-cost input[type="date"] { width: 160px; }
.inline-cost button { min-height: 44px; }
.upload { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.upload > label { flex-basis: 100%; }

/* ---------------------------------------------------------------- connections */
.conns { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
.conn { display: grid; gap: 10px; padding: 24px 0; border-bottom: 1px solid var(--rule); background: none; border-radius: 0; }
.conn-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.conn-head h2 { font-size: 1.375rem; }
.conn-head h2 .quiet { font-weight: 500; }
.conn .actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.conn .actions form { margin: 0; }
.conn > form:not(.token-form) { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.token-form { display: grid; gap: 8px; margin: 8px 0; max-width: 64ch; }
.token-form .inline { display: flex; gap: 8px; flex-wrap: wrap; }
.token-form .inline input { flex: 1 1 280px; min-width: 0; }
.key-once { border-left: 3px solid var(--good); background: var(--sheet); border-radius: 0 var(--r) var(--r) 0; padding: 14px 18px; margin: 8px 0; }
.key-once h3 { margin: 0 0 6px; display: flex; gap: 8px; align-items: center; }
.key-once h3 .icon { color: var(--good); }
code.secret { display: inline-block; word-break: break-all; padding: 8px 12px; border: 1px dashed var(--rule-strong); user-select: all; font-size: 0.9375rem; background: var(--paper); }
ol.steps { padding-left: 22px; display: grid; gap: 8px; color: var(--ink-2); max-width: 74ch; }
ol.steps code { white-space: nowrap; }
ol.steps code.url { white-space: normal; overflow-wrap: break-word; }
fieldset.choice { flex-basis: 100%; border: 0; padding: 0; margin: 0 0 8px; display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
fieldset.choice legend { flex-basis: 100%; font-weight: 600; margin-bottom: 8px; padding: 0; }
.upload fieldset.choice label { flex-basis: auto; display: inline-flex; gap: 8px; align-items: center; font-weight: 400; font-size: 1rem; min-height: 44px; }
fieldset.choice input[type="radio"] { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--accent); }
.connections-page section.panel { background: none; padding: 0; }

/* ---------------------------------------------------------------- sign-in */
.login-body { display: grid; place-items: center; min-height: 100vh; padding: 16px; background: var(--cover); }
.login { width: 100%; max-width: 420px; background: var(--paper); border-radius: 20px; padding: 36px; display: grid; gap: 14px; }
.login .brand { color: var(--ink); padding: 0; }
.login h1 { font: 650 2rem/1.1 var(--display); letter-spacing: -0.025em; }
.login form { display: grid; gap: 10px; }
.login .dev { font-size: 0.875rem; background: var(--sheet); padding: 10px 12px; border-radius: var(--r); }

/* ---------------------------------------------------------------- accounts: sign in, sign up, reset, invite */
.auth-body { margin: 0; min-height: 100vh; background: var(--paper); }
.auth { display: grid; grid-template-columns: minmax(320px, 5fr) 7fr; min-height: 100vh; }
.auth-side { background: var(--cover); color: var(--cover-ink); padding: 40px 48px; display: flex; flex-direction: column; gap: 48px; }
.auth-side .brand { color: var(--cover-ink); font: 650 1.25rem var(--display); }
.auth-pitch { margin-top: auto; margin-bottom: auto; max-width: 30rem; }
.auth-kicker { display: inline-block; font-size: 0.8125rem; font-weight: 650; color: var(--cover); background: var(--mark); padding: 3px 10px; border-radius: 4px; margin: 0 0 18px; }
.auth-kicker.dark { margin-bottom: 12px; }
.auth-line { font: 600 clamp(1.6rem, 2.6vw, 2.25rem)/1.15 var(--display); letter-spacing: -0.02em; margin: 0 0 28px; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--cover-muted); }
.auth-points li { display: flex; gap: 10px; align-items: center; }
.auth-points .icon { color: var(--mark); }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font: 650 2.125rem/1.1 var(--display); letter-spacing: -0.025em; margin: 0 0 8px; }
.auth-sub { color: var(--ink-2); margin: 0 0 24px; }
.auth-form { display: grid; gap: 8px; }
.auth-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.auth-form label { font-weight: 600; font-size: 0.875rem; margin-top: 8px; }
.auth-form input:not([type="hidden"]), .auth-form select { width: 100%; background: var(--sheet); }
.auth-form button.wide, .btn.wide { width: 100%; margin-top: 16px; justify-content: center; }
.auth-foot { margin-top: 28px; }
.auth-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--accent); margin-bottom: 18px; }
.auth-icon .icon { width: 22px; height: 22px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; }
.label-row label { margin-top: 0; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 72px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 32px; padding: 0 10px; font-size: 0.8125rem;
  background: transparent; color: var(--ink-2); border: 0; }
.pw-toggle:hover { background: var(--tint); color: var(--ink); }
.pw-toggle[hidden] { display: none; }
.or { display: flex; align-items: center; gap: 12px; margin: 28px 0 20px; color: var(--ink-3); font-size: 0.8125rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--rule-strong); }
.inline-field { display: flex; gap: 8px; }
.inline-field input { flex: 1; min-width: 0; }
button.secondary { background: var(--sheet); color: var(--ink); border-color: var(--rule-strong); }
button.secondary:hover { border-color: var(--ink); background: var(--sheet); }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two-fields > div { display: grid; gap: 8px; }
.dev { font-size: 0.875rem; background: var(--sheet); padding: 10px 12px; border-radius: var(--r); border: 1px dashed var(--rule-strong); }
@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 20px 20px; gap: 0; }
  .auth-pitch { display: none; }
  .auth-main { place-items: start center; padding: 28px 16px; }
}

/* ---------------------------------------------------------------- account and team */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-bottom: 24px; }
.panel.settings h2 { font-size: 1.25rem; margin: 0 0 14px; }
.stack-form { display: grid; gap: 8px; max-width: 440px; }
.stack-form label { font-weight: 600; font-size: 0.875rem; margin-top: 6px; }
.stack-form button { justify-self: start; margin-top: 10px; }
.stack-form.narrow { margin-top: 16px; }
.wide-panel { margin-bottom: 32px; }
.new-workspace { margin-top: 18px; }
.invite-form { display: grid; grid-template-columns: minmax(220px, 2fr) minmax(140px, 1fr) auto; gap: 12px; align-items: end; }
.invite-form > div { display: grid; gap: 6px; }
.invite-form label { font-weight: 600; font-size: 0.875rem; }
.role-help { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 24px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); }
.role-help dt { font-weight: 650; font-size: 0.875rem; } .role-help dd { margin: 2px 0 0; color: var(--ink-2); font-size: 0.875rem; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; font-size: 0.875rem;
  background: color-mix(in srgb, var(--accent) 14%, var(--sheet)); color: var(--accent); }
.avatar.ghost { background: transparent; border: 1.5px dashed var(--rule-strong); color: var(--ink-3); }
tr.pending th, tr.pending td { color: var(--ink-2); }
form.inline { display: inline; margin: 0; }
button.linkish { background: none; border: 0; min-height: 32px; padding: 0 6px; color: var(--accent); font-weight: 600; font-size: 0.875rem; }
button.linkish:hover { background: var(--tint); }
button.linkish.danger { color: var(--bad-ink); }
.role-form select { min-height: 34px; font-size: 0.875rem; }
.copy-row { display: flex; gap: 8px; margin-top: 10px; }
.copy-row input { flex: 1; min-width: 0; font-size: 0.8125rem; }
.callout.bad .icon { color: var(--critical); }
@media (max-width: 860px) { .invite-form { grid-template-columns: 1fr; } }

.start { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); max-width: 960px; gap: 16px; }
.start-step { display: flex; gap: 16px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 22px; }
.start-step h3 { font: 650 1.0625rem var(--display); margin: 2px 0 6px; }
.start-step p { color: var(--ink-2); margin: 0 0 14px; font-size: 0.9375rem; }
.start-n { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; background: var(--mark); color: #1b2238; }

.add-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 12px; }
.add-card { display: grid; gap: 8px; align-content: start; padding: 18px; border: 1px solid var(--rule); border-radius: 12px; }
.add-card h3 { font: 650 1rem var(--display); margin: 0; }
.add-card button { justify-self: start; margin-top: 6px; }
.add-card label { font-weight: 600; font-size: 0.875rem; }

/* ---------------------------------------------------------------- customers */
.segments { margin-bottom: 32px; }
.segments + .panel { margin-bottom: 40px; }
.segments .section-head { display: block; }
.segments .section-head p { margin: 6px 0 0; }
.seg-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.seg-card { position: relative; display: flex; flex-direction: column; gap: 10px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 20px 22px 18px; }
.seg-card::before { content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 3px; border-radius: 0 2px 2px 0; background: var(--ink-3); }
.seg-card.tone-act::before { background: var(--accent); } .seg-card.tone-good::before { background: var(--good); } .seg-card.tone-watch::before { background: var(--warning); }
.seg-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.seg-top h3 { font: 650 1.0625rem/1.25 var(--display); margin: 0; }
.seg-count { font: 700 1.75rem/1 var(--display); color: var(--ink); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.seg-count span { font: 500 0.8125rem var(--text); color: var(--ink-3); }
.seg-bar { display: block; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 7%, transparent); overflow: hidden; }
.seg-fill { display: block; height: 100%; background: var(--series1); border-radius: 2px; }
.seg-who { margin: 0; font-size: 0.875rem; color: var(--ink-2); }
.seg-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 4px 0 0; }
.seg-facts dt { font-size: 0.75rem; color: var(--ink-3); } .seg-facts dd { margin: 1px 0 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.seg-due { display: flex; gap: 8px; align-items: flex-start; margin: 2px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--mark-soft); font-size: 0.875rem; }
.seg-due .icon { margin-top: 3px; flex: none; }
.seg-todo { margin: 0; font-size: 0.875rem; color: var(--ink-2); line-height: 1.5; }
.seg-todo strong { color: var(--ink); }
.seg-open { margin-top: auto; font-weight: 600; font-size: 0.875rem; }
.seg-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink-2); }
.seg-tag.tone-act { background: var(--tint); color: var(--accent); }
.seg-tag.tone-good { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good-ink); }
.season-dots { display: inline-flex; gap: 3px; }
.sdot { display: inline-grid; place-items: center; min-width: 26px; height: 20px; padding: 0 4px; border-radius: 5px; font-size: 0.6875rem; font-weight: 700;
  background: color-mix(in srgb, var(--series1) 12%, transparent); color: var(--accent); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 0; font-weight: 600; }
.mono-lede { font-size: clamp(2rem, 4vw, 3rem); }
.cust-link { color: inherit; text-decoration: none; display: block; }
.cust-link:hover .pname { color: var(--accent); text-decoration: underline; }
.customer-list { margin-bottom: 56px; }
.block-title { font-size: 1.375rem; margin: 16px 0 16px; padding-top: 24px; border-top: 1.5px solid var(--ink); }
.timeline { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 28px; max-width: 820px; }
.tl-season h2 { font-size: 1.125rem; margin: 0 0 10px; }
.tl-season > ul { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--rule-strong); display: grid; gap: 12px; }
.tl-order { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 16px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; }
.tl-order::before { content: ""; position: absolute; left: -26px; top: 20px; width: 12px; height: 12px; border-radius: 50%; background: var(--series1); box-shadow: 0 0 0 3px var(--paper); }
.tl-order.cancelled { opacity: 0.6; } .tl-order.cancelled::before { background: var(--ink-3); }
.tl-date { font-weight: 600; font-size: 0.875rem; color: var(--ink-2); }
.tl-head { margin: 0 0 6px; }
.tl-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 0.9375rem; }
.tl-items li { display: flex; align-items: center; gap: 8px; }
@media (max-width: 860px) { .tl-order { grid-template-columns: 1fr; gap: 4px; } }

/* ---------------------------------------------------------------- exceptions and work queue */
.exceptions { margin-top: 32px; }
.exceptions .section-head { display: block; } .exceptions .section-head p { margin: 4px 0 0; }
.ex-list, .sg-list, .task-list { list-style: none; margin: 0; padding: 0; }
.ex-row, .sg-row { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1px solid var(--rule); }
.ex-row:first-child, .sg-row:first-child { border-top: 0; }
.ex-title, .sg-title { display: flex; gap: 8px; align-items: baseline; margin: 0 0 4px; }
.ex-title .icon, .sg-title .icon { flex: none; transform: translateY(2px); }
.sev-serious .ex-title .icon, .sev-serious .sg-title .icon { color: var(--serious); }
.sev-critical .sg-title .icon { color: var(--critical); }
.sev-warning .ex-title .icon, .sev-warning .sg-title .icon { color: var(--warning); }
.sev-info .ex-title .icon, .sev-info .sg-title .icon { color: var(--ink-3); }
.ex-main p, .sg-main p { margin: 0 0 4px; }
.ex-examples { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px !important; }
.order-chip { font: 600 0.75rem ui-monospace, Menlo, monospace; padding: 3px 8px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); text-decoration: none; }
.order-chip:hover { background: var(--tint); color: var(--accent); }
.ex-act, .sg-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.sg-money { font: 700 1.125rem var(--display); font-variant-numeric: tabular-nums; }
.suggest { margin-bottom: 32px; }
.evidence summary { font-size: 0.8125rem; padding: 4px 0; }
.own-task { display: flex; gap: 8px; margin: 0 0 20px; }
.own-task input[name="title"] { flex: 1; min-width: 0; background: var(--sheet); }
.own-task input[type="date"] { width: 170px; background: var(--sheet); }
.queue-group { font-size: 1rem; margin: 24px 0 10px; }
.task { display: flex; justify-content: space-between; gap: 20px; padding: 16px 18px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; margin-bottom: 10px; }
.task.st-doing { border-left: 3px solid var(--accent); }
.task.st-done .task-title, .task.st-dismissed .task-title { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1px; }
.task-title { font-weight: 650; margin: 0 0 4px; }
.task-main p { margin: 0 0 4px; }
.task-meta { color: var(--ink-3); }
.overdue { color: var(--bad-ink); }
.task-act { flex: none; display: flex; gap: 6px; align-items: flex-start; }
.small-btn { min-height: 34px; padding: 0 12px; font-size: 0.875rem; }
.history { margin: 6px 0 0; padding-left: 18px; font-size: 0.8125rem; display: grid; gap: 2px; }
@media (max-width: 860px) { .ex-row, .sg-row, .task { flex-direction: column; } .ex-act, .sg-side { align-items: flex-start; } .own-task { flex-wrap: wrap; } }

/* ---------------------------------------------------------------- daily brief */
.brief-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--rule); margin-bottom: 32px; }
.brief-block { padding: 20px 24px 22px; border-left: 1px solid var(--rule); }
.brief-block:first-child { border-left: 0; padding-left: 0; }
.brief-block h3 { font: 600 0.9375rem var(--text); color: var(--ink-2); margin: 0 0 6px; }
.brief-big { font: 700 2.25rem/1.05 var(--display); letter-spacing: -0.02em; margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.brief-cmp { margin: 0 0 14px; font-size: 0.875rem; color: var(--ink-2); }
.brief-facts { display: flex; gap: 28px; margin: 0; }
.brief-facts dt { font-size: 0.75rem; color: var(--ink-3); } .brief-facts dd { margin: 2px 0 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.brief-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; margin-bottom: 24px; }
.brief-two h2, .weekly h2 { font-size: 1.125rem; margin: 0 0 14px; }
.sold, .needs { list-style: none; margin: 0; padding: 0; }
.sold li { display: grid; grid-template-columns: 14px 1fr auto auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.sold li:first-child { border-top: 0; }
.sold-name { font-weight: 600; } .sold-n { color: var(--ink-2); font-size: 0.875rem; } .sold-v { font-weight: 650; min-width: 72px; text-align: right; }
.needs li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--rule); }
.needs li:first-child { border-top: 0; }
.needs .icon { flex: none; margin-top: 4px; }
.weekly-lede { font-size: 1.0625rem; max-width: 70ch; }
.weekly-actions { margin: 16px 0 0; padding-left: 20px; display: grid; gap: 12px; }
.weekly-actions p { margin: 0 0 2px; }
@media (max-width: 860px) { .brief-block { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); } .brief-block:first-child { border-top: 0; } }

/* ---------------------------------------------------------------- marketing */
.chart.cols .band { fill: color-mix(in srgb, var(--ink) 5%, transparent); stroke: var(--rule-strong); stroke-width: 1; stroke-dasharray: 3 3; }
.chart.cols .band-label { fill: var(--ink-2); font: 600 11.5px var(--text); paint-order: stroke; stroke: var(--sheet); stroke-width: 4px; }
.key-band { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-left: 10px; background: color-mix(in srgb, var(--ink) 6%, transparent); border: 1px dashed var(--rule-strong); }
.campaigns, .sources, .emails { margin-top: 40px; }
.emails h3 { margin: 24px 0 8px; } .emails .table-scroll + .quiet, .emails h3 + .quiet { margin-top: 6px; }
/* asking the owner to tag email links (email-tracking.ts) */
.em-ask { margin: 20px 0 4px; padding: 14px 16px; border-radius: 12px; background: var(--tint); }
.em-ask h3 { margin: 0 0 6px; }
.em-ask p { margin: 0 0 8px; max-width: 70ch; }
.em-ask-tools { display: grid; gap: 6px; margin: 4px 0 10px; }
.em-ask-tool > summary { cursor: pointer; font-weight: 600; width: fit-content; }
.em-ask-tool ol { margin: 6px 0 4px; padding-left: 20px; font-size: 0.875rem; }
.em-ask-tool li + li { margin-top: 3px; }
.sources .section-head { display: block; } .sources .section-head p { margin: 4px 0 0; }
.add-campaign { margin-bottom: 16px; padding: 16px 24px; }
.add-campaign summary { font-weight: 650; color: var(--ink); }
.campaign-form { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 14px; }
.campaign-form > div { display: grid; gap: 6px; }
.campaign-form label { font-weight: 600; font-size: 0.875rem; }
.campaign-form .cf-wide { grid-column: span 2; }
.campaign-form .cf-go { align-self: end; }
.src-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.src-card { display: flex; flex-direction: column; gap: 8px; background: var(--sheet); border: 1px dashed var(--rule-strong); border-radius: 14px; padding: 18px 20px; }
.src-head { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.src-head h3 { font: 650 1rem var(--display); margin: 0; }
.src-card p { margin: 0; }
.src-shows { margin: 0; padding-left: 18px; font-size: 0.875rem; color: var(--ink-2); }
.src-card .btn { align-self: flex-start; margin-top: auto; }

/* ---------------------------------------------------------------- data and definitions */
.fresh-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.fresh-tag.ok { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good-ink); }
.fresh-tag.old { background: color-mix(in srgb, var(--warning) 22%, transparent); color: var(--ink); }
.coverage { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px 32px; }
.coverage p { margin: 6px 0 0; }
.cov-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.cov-n { font: 700 1.5rem var(--display); font-variant-numeric: tabular-nums; }
.seg-fill.low { background: var(--serious); }
.defs { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px 32px; margin: 0; }
.defs dt { font-weight: 650; } .defs dd { margin: 3px 0 0; color: var(--ink-2); font-size: 0.9375rem; }
main .panel + .panel { margin-top: 24px; }
.panel h2 { font-size: 1.25rem; margin: 0 0 14px; }

/* ---------------------------------------------------------------- guide */
.guide { display: grid; gap: 12px; }
.guide-count { color: var(--ink-3); font-size: 0.875rem; margin: 0; }
.guide-dots { list-style: none; margin: 0 0 12px; padding: 0; display: flex; gap: 6px; }
.guide-dots li { width: 28px; height: 4px; border-radius: 2px; background: var(--rule); }
.guide-dots li.done { background: var(--rule-strong); }
.guide-dots li.on { background: var(--ink); }
.guide-body { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: 48px; align-items: start; }
.guide-text h1 { font: 650 2.25rem/1.1 var(--display); letter-spacing: -0.025em; margin-bottom: 16px; }
.guide-text ul { margin: 0 0 24px; padding-left: 20px; display: grid; gap: 10px; max-width: 60ch; }
.guide-text li { color: var(--ink-2); }
.guide-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.skip { color: var(--ink-2); font-size: 0.875rem; }
.guide-shot { margin: 0; }
.guide-shot img { width: 100%; height: auto; display: block; border-radius: var(--r-lg); background: var(--sheet); }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 1100px) {
  .spread { grid-template-columns: 1fr; gap: 40px; }
  .margin { position: static; padding-left: 0; border-left: 0; border-top: 1.5px solid var(--ink); padding-top: 20px; }
  .area-row { grid-template-columns: minmax(200px, 1fr) minmax(0, 1.4fr) 120px; }
  .area-spark { display: none; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .period-bar { position: static; }
  .range-label { margin-left: 0; width: 100%; }
  .custom-pop[open] .custom-range { flex-wrap: wrap; width: min(92vw, 360px); }
  .side { position: static; height: auto; padding: 14px 16px 0; gap: 12px; display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .client { grid-column: 2; margin: 0; padding: 6px 10px; }
  .nav-scroll { grid-column: 1 / -1; display: flex; flex-direction: row; overflow-x: auto; gap: 2px; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .nav-group { display: block; flex: none; }
  .nav-label { display: none; }
  .nav-group ul { display: flex; gap: 2px; }
  .side ul a { white-space: nowrap; min-height: 44px; padding: 0 12px; border-radius: var(--r) var(--r) 0 0; }
  .side-foot { grid-column: 1 / -1; display: none; }
  .topbar { padding: 8px 16px; min-height: 56px; }
  .fresh { display: none; }
  .main { padding: 12px 16px 72px; }
  .page-head { margin-bottom: 28px; }
  .intro { font-size: 1rem; }
  section { margin-bottom: 48px; }
  .figure-row, .tiles { grid-template-columns: 1fr 1fr; }
  .fig, .tile { padding: 14px 12px; border-bottom: 1px solid var(--rule); }
  .fig-value, .tile .value { font-size: 1.5rem; }
  .split-panels, .two-col { grid-template-columns: 1fr; gap: 32px; }
  .charts { grid-template-columns: 1fr; }
  .chart-wide { display: none; } .chart-narrow { display: block; }
  .panel, .block { padding: 18px 16px; }
  .area-row { grid-template-columns: 1fr; gap: 12px; }
  .money-went, .pallet-shelf, .charts .panel { overflow-x: auto; }
  .money-went .chart, .pallet-shelf .chart, .charts .panel .chart { min-width: 560px; }
  .area-end { flex-direction: row; justify-content: space-between; align-items: center; }
  .entry { grid-template-columns: 1fr; gap: 8px; }
  .entry-money { justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 8px; }
  .guide-body { grid-template-columns: 1fr; gap: 20px; }
  .guide-shot { order: -1; }
  .quick-inner { padding: 24px 18px; }
  .cost-entry thead { display: none; }
  .cost-entry table, .cost-entry tbody, .cost-entry tr, .cost-entry td { display: block; }
  .cost-entry tr { padding: 12px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
  .cost-entry td { border: 0; padding: 0; }
  .cost-entry td:nth-child(4) { grid-column: 1 / -1; }
}

/* ---- Product detail, profit column, year cost (30 Sep) ---- */
.pcell.big { gap: 14px; align-items: center; }
.pcell.big .pdot { width: 22px; height: 22px; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 24px; margin-bottom: 12px; }
.panel-head h3 { margin: 0 0 4px; }
.panel-head p { margin: 0; }
.panel-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.kv { display: grid; gap: 0; margin: 0; }
.kv > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--ink-2); font-size: 0.9375rem; white-space: nowrap; flex: none; }
.kv dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.kv > div.total { border-top: 1px solid var(--rule-strong); border-bottom: 0; font-weight: 600; }
.kv > div.total dt { color: var(--ink); }
.sub-h { font-size: 0.875rem; font-weight: 600; color: var(--ink-2); margin: 20px 0 4px; }
.section-h { font: 600 1.25rem var(--display); margin: 8px 0 14px; }
a.row-link { color: inherit; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .15s; }
a.row-link:hover, a.row-link:focus-visible { background-size: 100% 1px; }
.sub-num { display: block; font-size: 0.75rem; color: var(--ink-3, var(--ink-2)); font-weight: 400; }
.neg { color: var(--critical); font-weight: 600; }
.year-cost { border: 1px solid var(--rule); border-radius: var(--r); padding: 16px 18px; margin: 12px 0 24px; background: var(--sheet); }
.year-cost-title { margin: 0 0 12px; }
.year-cost-fields { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; }
.year-cost-fields label { display: grid; gap: 4px; font-size: 0.8125rem; color: var(--ink-2); }
.year-cost-fields input[name=cogs] { width: 96px; }
@media (max-width: 860px) { .split-panels { grid-template-columns: 1fr; } }
.contacts-upload { margin: 16px 0 8px; border: 1px solid var(--rule); border-radius: var(--r); padding: 12px 16px; background: var(--sheet); }
.contacts-upload summary { cursor: pointer; font-weight: 600; }
.contacts-upload[open] summary { margin-bottom: 8px; }
.contact-card { max-width: 640px; margin: 0 0 32px; }
.contact-card dd { text-align: right; overflow-wrap: anywhere; }

/* ---- Marketing: ads, search, website (30 Sep) ---- */
.mk-section { margin: 0 0 56px; }
.mk-section h3 { font: 600 1rem var(--text, inherit); margin: 20px 0 10px; }
.mk-split { margin-top: 8px; }
.mk-split > div { min-width: 0; }
.mk-opps { margin: 16px 0; }
.opp-list { list-style: none; margin: 8px 0 0; padding: 0; }
.opp-list li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-top: 1px solid var(--rule); }
.opp-list li > div { display: grid; gap: 2px; min-width: 0; }
.opp-list form { flex: none; }
.funnel-steps { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 10px; }
.funnel-steps li { display: grid; grid-template-columns: 150px 1fr 80px 190px; align-items: center; gap: 12px; }
.f-label { font-size: 0.9375rem; color: var(--ink-2); }
.f-bar { height: 12px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 6%, transparent); overflow: hidden; }
.f-bar .bar { display: block; height: 100%; border-radius: 6px; background: var(--series1, var(--accent)); }
.f-num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.f-rate { font-size: 0.8125rem; color: var(--ink-2); }
.google-picker table { margin: 8px 0 12px; }
.google-picker select { max-width: 280px; }
@media (max-width: 860px) {
  .funnel-steps li { grid-template-columns: 1fr 70px; }
  .funnel-steps .f-bar { grid-column: 1 / -1; order: 3; }
  .funnel-steps .f-rate { grid-column: 1 / -1; order: 4; }
  .opp-list li { flex-direction: column; align-items: flex-start; }
}

/* ================================================================ V3 component layer
   Calm workspace. Every rule below refines an earlier one; tokens are at the top. */

body { font-size: 0.9375rem; line-height: 1.55; }
h2 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; }
a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent); }
a:hover { text-decoration-color: currentColor; }
code { background: var(--tint); border: 0; border-radius: 5px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }

/* ---- controls: 36px, 8px corners, a bevelled dark primary */
button, .btn {
  font: 500 0.875rem/1 var(--text); min-height: 36px; padding: 0 14px; border-radius: var(--r); border: 0;
  background: var(--ink); color: var(--paper); box-shadow: var(--bevel);
  transition: background-color .15s var(--ease), opacity .15s var(--ease), box-shadow .15s var(--ease);
}
button:hover, .btn:hover { background: color-mix(in srgb, var(--ink) 88%, var(--paper)); }
button:active, .btn:active { opacity: 0.82; }
button.ghost, .btn.secondary, button.secondary, .custom-range button {
  background: var(--sheet); color: var(--ink); border: 1px solid var(--rule-strong); box-shadow: var(--shadow-sm);
}
button.ghost:hover, .btn.secondary:hover, button.secondary:hover, .custom-range button:hover { background: color-mix(in srgb, var(--ink) 4%, var(--sheet)); border-color: var(--rule-strong); }
button.link, button.linkish { box-shadow: none; }
button.linkish { color: var(--ink); min-height: 30px; border-radius: 6px; font-weight: 500; }
button.linkish:hover { background: var(--tint); }
input, select {
  font: 400 0.875rem var(--text); min-height: 36px; padding: 0 11px; border-radius: var(--r);
  border: 1px solid var(--rule-strong); background: var(--raised); box-shadow: var(--shadow-sm);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
input:hover, select:hover { border-color: color-mix(in srgb, var(--ink) 28%, var(--rule-strong)); }
input:focus, select:focus { outline: 2px solid transparent; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
input[type="file"] { padding: 6px 10px; box-shadow: none; background: transparent; border-style: dashed; }
input[type="radio"], input[type="checkbox"] { box-shadow: none; }
label { font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); }

/* ---- the sidebar: light, quiet, rounded items */
.shell { grid-template-columns: 248px minmax(0, 1fr); }
.side { background: var(--cover); border-right: 1px solid var(--rule); padding: 18px 12px 16px; gap: 18px; }
.brand { padding: 2px 8px; font: 650 1.1875rem/1 var(--display); letter-spacing: -0.02em; color: var(--cover-ink); }
.mark { width: 16px; height: 16px; border-width: 2.5px; }
.mark::after { top: 4.5px; }
.client { margin: 0; padding: 8px 10px; gap: 10px; border: 1px solid var(--rule); background: var(--sheet); border-radius: 10px;
  color: var(--cover-ink); font-weight: 550; box-shadow: var(--shadow-sm); }
.client-dot { width: 20px; height: 20px; border-radius: 6px; background: var(--ink); position: relative; }
.client-dot::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--mark); }
.nav-scroll { gap: 14px; }
.nav-label { padding-left: 10px; margin: 0 0 2px; font-size: 0.75rem; font-weight: 500; color: var(--cover-muted); }
.side ul { gap: 1px; }
.side ul a { min-height: 34px; padding: 0 10px; gap: 10px; border-radius: var(--r); font-size: 0.875rem; font-weight: 450;
  color: var(--cover-ink); opacity: 1; transition: background-color .12s var(--ease); }
.side ul a .icon { color: var(--cover-muted); width: 16px; height: 16px; }
.side ul a:hover { background: var(--cover-hover); }
.side ul a[aria-current="page"] { background: var(--cover-on); color: var(--cover-ink); font-weight: 600; box-shadow: none; }
.side ul a[aria-current="page"] .icon { color: var(--cover-ink); }
.side-foot { padding: 0 6px; color: var(--cover-muted); font-size: 0.8125rem; }
.side-foot .link, .side-foot button.link { color: var(--cover-muted); font-size: 0.8125rem; }
.side-foot select { min-height: 34px; width: 100%; }

/* ---- top bar and page head */
.topbar { min-height: 56px; padding: 8px 48px; background: color-mix(in srgb, var(--paper) 86%, transparent); border-bottom: 1px solid transparent; }
.back { min-height: 32px; font-size: 0.875rem; font-weight: 500; border-radius: var(--r); padding: 0 8px 0 4px; }
.back:hover { background: var(--tint); }
.theme-switch { background: color-mix(in srgb, var(--ink) 5%, transparent); border: 0; padding: 3px; }
.theme-opt { width: 30px; min-height: 30px; box-shadow: none; background: transparent; }
.theme-opt:hover { background: color-mix(in srgb, var(--sheet) 70%, transparent); }
.theme-opt[aria-pressed="true"] { background: var(--sheet); color: var(--ink); box-shadow: var(--shadow-sm); }
.fresh { font-size: 0.8125rem; }
.main { max-width: 1240px; padding: 12px 48px 112px; }
.page-head { margin: 12px 0 36px; }
.page-name { font-size: 0.8125rem; font-weight: 500; color: var(--ink-3); margin: 0 0 12px; }
.page-name::before { width: 6px; height: 6px; border-radius: 50%; background: var(--mark); box-shadow: 0 0 0 3px var(--mark-soft); }
.page-name a { color: var(--ink-3); text-decoration: none; }
.page-name a:hover { color: var(--ink); }
.lede { font-weight: 600; font-size: clamp(1.9rem, 1.15rem + 1.9vw, 2.75rem); line-height: 1.08; letter-spacing: -0.028em; max-width: 26ch; }
.intro { font-size: 1rem; margin-top: 12px; line-height: 1.55; }
section { margin-bottom: 56px; }

/* ---- surfaces: hairline, no shadow */
.panel, .block { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 22px 24px; }
.split-panels .panel { border: 0; }
.quick-chart { border: 1px solid var(--rule); border-radius: var(--r-md); }
.chart-head h3, .panel figcaption h3 { font: 600 1rem var(--text); letter-spacing: -0.005em; }

/* ---- figures: one card with hairline dividers */
.figure-row, .tiles { border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--sheet); margin: 0 0 16px; }
.fig, .tile { padding: 16px 20px; border-left-color: var(--rule); }
.fig dt, .tile h3 { font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); }
.fig-value, .tile .value { font: 600 1.75rem/1.15 var(--display); letter-spacing: -0.02em; }
.quick-figs { border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--sheet); }
.tile.tab.on::after { height: 2px; background: var(--ink); }
.tile.tab.on .chart-hint { color: var(--ink); }

/* ---- toggles: a sunken track, the chosen option raised */
.seg { gap: 2px; padding: 3px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 5.5%, transparent); flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg a, .seg .disabled { min-height: 30px; padding: 0 11px; border-radius: 7px; font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: background-color .12s var(--ease), color .12s var(--ease); }
.seg a:hover { background: color-mix(in srgb, var(--sheet) 60%, transparent); color: var(--ink); }
.seg a[aria-current="true"], .seg.pills a[aria-current="true"], .chart-switches .seg a[aria-current="true"] {
  background: var(--seg-on); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(28, 27, 25, 0.1), inset 0 0 0 1px var(--rule-strong); }
.seg.compare a, .seg.grain a { min-height: 30px; font-size: 0.8125rem; }
.period-bar { top: 56px; gap: 8px; padding: 10px 0; margin-bottom: 24px; background: color-mix(in srgb, var(--paper) 90%, transparent); }
.custom-pop summary { min-height: 36px; border-radius: 10px; border: 1px solid var(--rule-strong); background: var(--raised); box-shadow: var(--shadow-sm); font-size: 0.8125rem; color: var(--ink-2); }
.custom-pop[data-on] summary { border-color: var(--ink-3); color: var(--ink); }
.custom-pop[open] .custom-range { border-radius: var(--r-md); border: 0; box-shadow: var(--shadow-pop); }
.range-label { color: var(--ink-3); }

/* ---- tables: hairline rows, muted headers, a soft hover */
.table-scroll { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-md); }
.table-card .table-scroll { border-radius: var(--r-md); }
table { font-size: 0.875rem; }
th { font-weight: 500; font-size: 0.75rem; letter-spacing: 0.01em; color: var(--ink-3); padding: 10px 16px; border-bottom: 1px solid var(--rule); }
td { padding: 11px 16px; border-bottom: 1px solid var(--rule-soft); }
tbody th { font-size: 0.875rem; font-weight: 550; border-bottom: 1px solid var(--rule-soft); }
tbody tr { transition: background-color .1s var(--ease); }
tbody tr:hover td, tbody tr:hover th { background: color-mix(in srgb, var(--ink) 2.5%, var(--sheet)); }
table.data thead th { background: color-mix(in srgb, var(--ink) 1.5%, var(--sheet)); }
table.data tfoot td, table.data tfoot th { border-top: 1px solid var(--rule-strong); font-weight: 600; }
td.strong { font-weight: 600; }
.pname { font-weight: 550; }
.sku { font-size: 0.75rem; color: var(--ink-3); }
a.row-link:hover { text-decoration: none; }
tbody tr:has(a.row-link):hover .pname, tbody tr:has(a.cust-link):hover .pname { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ink-3); }
a.cust-link { color: inherit; text-decoration: none; }
.kind-tag { border-radius: 6px; padding: 1px 6px; font-weight: 500; }
.table-tools { gap: 8px; margin-bottom: 12px; }
.table-search input { min-height: 34px; border-radius: 9px; background-color: var(--raised); }
.share-bar { height: 5px; }
.pdot { width: 12px; height: 12px; }

/* ---- callouts and notices: soft tints, no heavy bars */
.callout, .banner, .notice { border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--sheet); padding: 12px 16px; }
.banner.error, .callout.bad { background: color-mix(in srgb, var(--critical) 5%, var(--sheet)); border-color: color-mix(in srgb, var(--critical) 25%, var(--rule)); }
.banner.warn { background: color-mix(in srgb, var(--warning) 7%, var(--sheet)); border-color: color-mix(in srgb, var(--warning) 30%, var(--rule)); }
.notice, .callout.good { background: color-mix(in srgb, var(--good) 5%, var(--sheet)); border-color: color-mix(in srgb, var(--good) 22%, var(--rule)); }
.banner, .notice { border-left-width: 1px; }
.callout .icon, .banner .icon { color: var(--ink-2); }
.setup { border: 1px solid color-mix(in srgb, var(--critical) 22%, var(--rule)); border-left-width: 1px; border-radius: var(--r-md);
  background: color-mix(in srgb, var(--critical) 4%, var(--sheet)); padding: 14px 18px; }
.empty-state { border-radius: var(--r-md); border: 1px dashed var(--rule-strong); background: transparent; }

/* ---- lists that used heavy top rules */
.area-index, .ledger, .conns { border-top: 1px solid var(--rule); }
.area-row { border-radius: var(--r-md); }
.area-row:hover { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.area-name > .icon { color: var(--ink-2); }
.area-open { color: var(--ink); font-weight: 550; }
.margin { border-left: 1px solid var(--rule); }
.note-item { padding-left: 18px; }
.note-item::before { top: 9px; bottom: auto; width: 7px; height: 7px; border-radius: 50%; }
.note-money { font-weight: 600; }
.stage-filter a { min-height: 32px; border-radius: 8px; font-size: 0.875rem; }
.stage-filter a:hover { background: var(--tint); }
.stage-filter a[aria-current="true"] { background: var(--raised); box-shadow: 0 1px 2px rgba(28, 27, 25, 0.1), 0 0 0 1px var(--rule); }

/* ---- charts: quieter grids and baselines */
.chart .grid, .chart.cols .grid, .strip .grid { stroke: var(--rule-soft); stroke-dasharray: none; }
.chart.cols .baseline, .strip .baseline { stroke: var(--rule-strong); stroke-width: 1; }
.chart .tick, .strip .tick { fill: var(--ink-3); font-size: 12px; }
.chart.cols .tick.x, .strip .month { fill: var(--ink-2); font-weight: 500; }
.chart.cols .month-rule, .strip .month-rule { stroke: var(--rule); }
.tip { border-radius: 10px; background: var(--night); color: var(--night-ink); box-shadow: var(--shadow-pop); }

/* ---- dialogs */
dialog.quick { border-radius: 16px; background: var(--paper); box-shadow: var(--shadow-pop); }
dialog.quick::backdrop { background: rgba(20, 19, 17, 0.4); backdrop-filter: blur(2px); }
.quick-close { width: 34px; min-height: 34px; background: var(--sheet); color: var(--ink); border: 1px solid var(--rule); box-shadow: none; }

/* ---- sign-in pages: the dark panel is its own colour now the sidebar is light */
.login-body { background: var(--paper); }
.login { background: var(--sheet); border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--shadow-pop); }
.auth-side { background: var(--night); color: var(--night-ink); }
.auth-side .brand { color: var(--night-ink); }
.auth-kicker { color: var(--night); }
.auth-points { color: var(--night-muted); }
.auth-card h1 { font-weight: 600; letter-spacing: -0.03em; }

/* ---- motion: fast and restrained; none for people who ask for none */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---- touch: bigger targets on phones */
@media (max-width: 860px) {
  button, .btn, input, select { min-height: 44px; }
  .seg a { min-height: 36px; }
  .side ul a { min-height: 40px; }
  .main { padding: 8px 16px 96px; }
  .topbar { padding: 8px 16px; }
  .shell { grid-template-columns: 1fr; }
  .side { padding: 12px 16px 6px; gap: 10px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .side ul a { padding: 0 12px; }
  .fig, .tile { padding: 14px 14px; }
  .panel, .block { padding: 18px 16px; }
  .margin { border-top: 1px solid var(--rule); }
  .period-bar { position: static; }
}
@media (max-width: 1100px) { .margin { border-top: 1px solid var(--rule); } }

/* ---- status badges: a soft tint per meaning, in tables and headers */
td .chip, .conn-head .chip, .src-head .chip { padding: 3px 8px 3px 6px; border-radius: 6px; font-weight: 500; font-size: 0.75rem;
  background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); gap: 5px; }
td .chip .icon, .conn-head .chip .icon, .src-head .chip .icon { width: 12px; height: 12px; }
td .chip.sev-ok, .chip.st-connected { background: color-mix(in srgb, var(--good) 12%, transparent); color: var(--good-ink); }
td .chip.sev-warning { background: color-mix(in srgb, var(--warning) 16%, transparent); color: color-mix(in srgb, var(--warning) 45%, var(--ink)); }
td .chip.sev-serious { background: color-mix(in srgb, var(--serious) 14%, transparent); color: color-mix(in srgb, var(--serious) 60%, var(--ink)); }
td .chip.sev-critical, .chip.st-error { background: color-mix(in srgb, var(--critical) 11%, transparent); color: var(--bad-ink); }
td .chip + .sku { margin-top: 4px; }
.seg-tag { border-radius: 6px; font-weight: 500; padding: 2px 8px; }

/* ---- design review fixes (HIG review, 30 Sep) */
.note-item.sev-warning::before { background: var(--warning-mark); }
.chip.sev-warning .icon, .banner.warn .icon { color: var(--warning-mark); }
.note-sev { display: block; font-size: 0.75rem; font-weight: 600; color: var(--ink-2); margin: 0 0 2px; }
.topbar { border-bottom-color: var(--rule); }
.pw-toggle, button.linkish, .quick-close, button.link { box-shadow: none; }
.pw-toggle { min-height: 28px; }
.seg-tag.tone-act { background: var(--mark-soft); color: var(--ink); }
.sdot { background: var(--tint); color: var(--ink-2); }
.avatar { background: var(--tint); color: var(--ink); }
.page-name::before { box-shadow: none; }
.tile.tab.on::after { background: var(--mark); height: 3px; }
.fig-value, .tile .value { font-variation-settings: "opsz" 32; font-stretch: 92%; }
.fig dt, .tile h3 { letter-spacing: 0; }
@media (prefers-contrast: more) {
  :root { --ink-2: #3d3b37; --ink-3: #55524c; --rule: #cfccc5; --rule-strong: #a9a59d; }
}
@media (forced-colors: active) {
  .seg a[aria-current="true"], .side ul a[aria-current="page"], .stage-filter a[aria-current="true"] { outline: 1px solid CanvasText; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .auth-side { background: var(--raised); border-right: 1px solid var(--rule); } }
:root[data-theme="dark"] .auth-side { background: var(--raised); border-right: 1px solid var(--rule); }
@media (max-width: 860px) {
  .auth { grid-template-rows: auto 1fr; }
  .auth-side { padding: 16px 20px; }
  .seg a { min-height: 40px; }
}

/* ---- saving in place (data-async forms) */
.async-status { flex-basis: 100%; margin: 8px 0 0; font-size: 0.8125rem; color: var(--ink-2); }
.async-status.ok { color: var(--good-ink); }
.async-status.bad { color: var(--bad-ink); }
.inline-cost .async-status { display: none; }
.inline-cost .async-status.bad { display: block; }
.inline-cost:has(.async-status.bad) { flex-wrap: wrap; }
tr.row-saved td, tr.row-saved th { background: color-mix(in srgb, var(--good) 6%, var(--sheet)); color: var(--ink-2); transition: background-color .3s var(--ease); }
.saved-note { font-size: 0.8125rem; font-weight: 550; color: var(--good-ink); }
button:disabled { opacity: 0.6; cursor: progress; }

/* ---- charts, modernised (30 Sep): validated indigo-led palette (dataviz validator, light and dark),
   the comparison as a quiet solid grey instead of dashed outlines, 4px rounded data ends,
   hairline solid grids, a soft wash under the lead line */
.chart .grid, .chart.cols .grid, .strip .grid { stroke: var(--rule-soft); stroke-width: 1; stroke-dasharray: none; }
.chart .baseline, .chart.cols .baseline, .strip .baseline { stroke: var(--rule-strong); stroke-width: 1; }
.chart .tick, .strip .tick { fill: var(--ink-3); font: 500 11.5px var(--text); }
.chart.cols .tick.x, .strip .month { fill: var(--ink-3); font: 500 11.5px var(--text); }
.chart.cols .month-rule, .strip .month-rule { stroke: var(--rule-soft); }
.chart.cols .ghost, .strip .ghost { fill: var(--cmp); stroke: none; stroke-dasharray: none; }
.chart.cols .bar-g:hover .ghost, .chart.cols .bar-g.on .ghost, .strip .bar-g:hover .ghost, .strip .bar-g.on .ghost { fill: color-mix(in srgb, var(--cmp) 70%, var(--ink-3)); stroke: none; }
.chart.cols .bar, .strip .bar { fill: var(--series1); }
.chart.cols .bar.peak { fill: var(--series1); }
.chart.cols .bar-g:hover .bar, .chart.cols .bar-g.on .bar, .strip .bar-g.on .bar { fill: color-mix(in srgb, var(--series1) 82%, var(--ink)); }
.chart.cols .bar-g:hover .hit, .chart.cols .bar-g.on .hit { fill: color-mix(in srgb, var(--ink) 3%, transparent); }
.chart.cols .avg { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.7; }
.chart.cols .peak-label { fill: var(--ink); font: 650 11.5px var(--text); stroke: var(--sheet); stroke-width: 3px; }
.strip .now-label { fill: var(--ink-3); font: 600 11px var(--text); letter-spacing: .02em; }
.strip .now-rule { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 3; }
.chart .line { stroke-width: 2; }
.chart .line-cmp { stroke-width: 1.75; stroke-dasharray: none; }
.chart .area { fill-opacity: 0.09; }
.chart .dot { stroke: var(--sheet); stroke-width: 2; }
.chart .end-label { fill: var(--ink); font: 650 12px var(--text); }
.chart .xh { stroke: var(--ink-3); }
.chart .bar-cmp { opacity: 1; }
.key-solid { background: var(--series1); border-radius: 3px; }
.key-ghost { background: var(--cmp); border: 0; border-radius: 3px; margin-left: 12px; }
.sw-series7 { background: var(--series7); } .sw-series8 { background: var(--series8); }
.sw-cmp { background: var(--cmp); } .sw-cmp-line { background: var(--cmp-line); }
.swatch { border-radius: 3px; }
.key-line { height: 3px; border-radius: 2px; }
.spark-line { stroke: var(--series1); stroke-width: 1.75; }
.spark-cmp { stroke: var(--cmp-line); stroke-width: 1.25; stroke-dasharray: none; }
.share-bar { background: var(--series1); opacity: 0.85; }
.f-bar .bar { background: var(--series1); }
.tip { background: var(--raised); color: var(--ink); border: 1px solid var(--rule); box-shadow: var(--shadow-pop); padding: 10px 12px; }
.tip-title, .tip-name { color: var(--ink-3); }
.tip-key { height: 8px; width: 8px; border-radius: 2px; }

/* ---- season / year and compare menus */
.pick-pop summary { gap: 6px; }
.pick-pop summary .quiet { font-weight: 500; }
.pick-pop[open] .pick-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 25; min-width: 240px; max-height: 60vh; overflow-y: auto;
  padding: 6px; background: var(--raised); border-radius: var(--r-md); box-shadow: var(--shadow-pop); }
.pick-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.pick-menu a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 7px 10px; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-size: 0.875rem; white-space: nowrap; }
.pick-menu a:hover { background: var(--tint); }
.pick-menu a[aria-current="true"] { font-weight: 600; background: var(--tint); }
.pick-menu a[aria-current="true"]::after { content: "✓"; color: var(--ink-2); margin-left: 8px; }
.pick-h { margin: 6px 10px 4px; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.pick-sub { color: var(--ink-3); font-size: 0.8125rem; }
.compare-pop summary { border-color: var(--rule-strong); color: var(--ink); font-weight: 550; }

/* ---- look closer: expand a chart full screen */
.zoomable { position: relative; }
.zoom-btn { position: absolute; top: -2px; right: 0; width: 30px; height: 30px; min-height: 0; padding: 0; display: grid; place-items: center;
  border-radius: 8px; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink-2); box-shadow: var(--shadow-sm); opacity: 0; transition: opacity .15s var(--ease), color .15s; cursor: zoom-in; }
.zoom-btn svg { width: 15px; height: 15px; }
.zoom-btn:hover { color: var(--ink); border-color: var(--rule-strong); }
[data-expand] { cursor: zoom-in; }
.zoomable:hover .zoom-btn, .zoom-btn:focus-visible { opacity: 1; }
@media (hover: none) { .zoom-btn { opacity: 1; } }
dialog.chart-zoom { width: min(1500px, 96vw); max-height: 94vh; padding: 20px 24px 24px; border: 0; border-radius: 16px;
  background: var(--sheet); color: var(--ink); box-shadow: var(--shadow-pop); }
dialog.chart-zoom::backdrop { background: rgba(20, 19, 17, 0.45); backdrop-filter: blur(3px); }
.zoom-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.zoom-title { margin: 0; font-weight: 600; }
.zoom-body svg.chart { width: 100%; height: auto; max-height: 76vh; }
.zoom-close { min-height: 32px; }

/* ---- confirm before removing */
dialog.confirm { width: min(440px, calc(100vw - 32px)); padding: 22px 24px 20px; border: 0; border-radius: 14px; background: var(--raised); color: var(--ink); box-shadow: var(--shadow-pop); }
dialog.confirm::backdrop { background: rgba(20, 19, 17, 0.4); backdrop-filter: blur(2px); }
dialog.confirm[open] { animation: pop .18s var(--ease); }
.confirm-title { font: 600 1.0625rem var(--text); margin: 0 0 8px; letter-spacing: -0.01em; }
.confirm-text { color: var(--ink-2); font-size: 0.9375rem; margin: 0 0 20px; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; }
dialog.confirm button.danger { background: var(--critical); color: #fff; }
dialog.confirm button.danger:hover { background: color-mix(in srgb, var(--critical) 88%, #000); }

/* ---- daily brief, V3: scannable, not paragraphs */
.brief-grid { border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--sheet); overflow: hidden; margin-bottom: 24px; }
.brief-block { padding: 18px 22px 20px; border-left: 1px solid var(--rule); margin-left: -1px; }
.brief-block:first-child { padding-left: 22px; }
.brief-block h3 { font: 500 0.8125rem var(--text); color: var(--ink-2); margin: 0 0 8px; }
.brief-big { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font: 600 2rem/1.1 var(--display); letter-spacing: -0.02em; margin: 0 0 4px; }
.brief-cmp { font-size: 0.8125rem; color: var(--ink-3); margin: 0 0 14px; }
.brief-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-stat { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; background: var(--tint); font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.chip-stat .k { font-weight: 500; color: var(--ink-2); }
.pill { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 999px; font: 600 0.75rem/1.4 var(--text); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.pill.good { background: color-mix(in srgb, var(--good) 13%, transparent); color: var(--good-ink); }
.pill.bad { background: color-mix(in srgb, var(--critical) 11%, transparent); color: var(--bad-ink); }
.pill.flat { background: var(--tint); color: var(--ink-2); }
.brief-two .panel h2, .weekly h2 { font: 600 1.0625rem var(--text); margin: 0 0 12px; letter-spacing: -0.01em; }
.sold { list-style: none; margin: 0; padding: 0; }
.sold li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--rule-soft); font-size: 0.875rem; }
.sold li:first-child { border-top: 0; }
.sold-n { color: var(--ink-3); font-size: 0.8125rem; } .sold-v { font-weight: 600; font-variant-numeric: tabular-nums; }
.needs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.need a, .need .need-ok { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px;
  background: var(--tint); color: var(--ink); text-decoration: none; font-size: 0.875rem; font-weight: 500; }
.need a:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.need-n { min-width: 30px; height: 26px; padding: 0 8px; border-radius: 7px; display: inline-grid; place-items: center; font-weight: 650; font-variant-numeric: tabular-nums; background: var(--raised); box-shadow: var(--shadow-sm); }
.need.tone-serious .need-n { color: var(--bad-ink); }
.need.tone-warning .need-n { color: var(--warning-mark); }
.need .icon { color: var(--ink-3); }
.need .need-ok { grid-template-columns: auto; color: var(--good-ink); display: flex; gap: 8px; }
.need.tone-good .need-ok .icon { color: var(--good-ink); }
.weekly { margin-top: 40px; }
.week-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--sheet); overflow: hidden; margin-bottom: 24px; }
.wk { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 14px 18px; border-left: 1px solid var(--rule); margin-left: -1px; }
.wk .k { flex-basis: 100%; font-size: 0.8125rem; color: var(--ink-2); }
.wk strong { font: 600 1.375rem/1.2 var(--display); letter-spacing: -0.015em; }
.wk .s { flex-basis: 100%; font-size: 0.75rem; color: var(--ink-3); }
.actions-h { font: 600 0.9375rem var(--text); margin: 0 0 10px; }
.action-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.action-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 12px; background: var(--sheet); }
.ac-dot { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--ink-3); }
.action-card.sev-critical .ac-dot { background: var(--critical); } .action-card.sev-serious .ac-dot { background: var(--serious); }
.action-card.sev-warning .ac-dot { background: var(--warning-mark); }
.ac-finding { font-weight: 600; margin: 0 0 6px; line-height: 1.4; }
.ac-do { display: flex; gap: 8px; align-items: baseline; margin: 0; font-size: 0.875rem; color: var(--ink-2); }
.ac-label { flex: none; font-size: 0.6875rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; padding: 1px 6px; border-radius: 5px; background: var(--mark-soft); color: var(--ink); }
.ac-why { margin-top: 6px; }
.ac-why summary { font-size: 0.8125rem; padding: 2px 0; color: var(--ink-3); }
.ac-why p { font-size: 0.8125rem; color: var(--ink-2); margin: 4px 0 0; }
@media (max-width: 860px) { .brief-block, .wk { border-left: 0; margin-left: 0; border-top: 1px solid var(--rule); } .brief-block:first-child, .wk:first-child { border-top: 0; } }
.needs li.need { display: block; padding: 0; border: 0; }
.needs .need .icon { margin-top: 0; }
.brief-two { align-items: stretch; }
.brief-two > section { margin: 0; }

/* ---- settings */
.settings-lede { max-width: 70ch; margin: 0 0 16px; }
.season-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.season-form input[type="date"] { width: 160px; }
.season-len { margin-left: 4px; }
.season-form .async-status { flex-basis: auto; margin: 0 0 0 4px; }
.seasons-table td { white-space: normal; }
.settings-forms { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; margin-top: 20px; }
.season-add h3 { font: 600 1rem var(--text); margin: 0 0 10px; }
.sf-row { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.sf-row label { display: grid; gap: 4px; }
.sf-row input[type="number"] { width: 100px; } .sf-row input[type="text"] { width: 90px; }

/* ---- dashboard: right now (today, this month, last month's profit and loss) */
.dash { margin: 0 0 32px; }
.dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.dash-card { grid-column: span 4; display: flex; flex-direction: column; min-width: 0; padding: 18px 20px 16px; border: 1px solid var(--rule);
  border-radius: var(--r-lg); background: var(--sheet); color: var(--ink); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.dash-card:hover { border-color: var(--rule-strong); box-shadow: var(--shadow-pop); }
.dash-card:focus-visible { outline: 2px solid var(--series1); outline-offset: 2px; }
.dash-card.c-wide { grid-column: span 8; }
.dash-card.c-pnl { grid-column: span 8; }
.dash-card h3 { font: 500 0.8125rem var(--text); color: var(--ink-2); margin: 0 0 6px; }
.dash-big { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font: 600 2rem/1.1 var(--display); letter-spacing: -0.02em; margin: 0 0 2px; font-variant-numeric: tabular-nums; }
.dash-sub { font-size: 0.8125rem; color: var(--ink-3); margin: 0 0 12px; }
.dash-sub a { color: var(--series1); }
.dash-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 12px; }
.dash-split > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 8px 10px; border-radius: 10px; background: var(--tint); }
.dash-split .k { flex-basis: 100%; font-size: 0.75rem; color: var(--ink-2); }
.dash-split strong { font: 600 1.125rem/1.2 var(--display); font-variant-numeric: tabular-nums; }
.dash-foot { font-size: 0.75rem; color: var(--ink-3); margin: auto 0 0; padding-top: 6px; }
.dash-card .chart { margin-top: auto; }
.dash-card .legend { margin-top: 4px; }
.chart.mini-bars { width: 100%; height: auto; display: block; margin: 4px 0 0; overflow: visible; }
.chart .mini-mark { font: 500 10px var(--text); fill: var(--ink-3); }
.chart .mini-mark.on { fill: var(--ink); font-weight: 650; }
.chart .bar-quiet { opacity: 1; }
.chart.gauge { width: 100%; max-width: 260px; height: auto; display: block; margin: 4px auto 0; }
.gauge-track { fill: none; stroke: var(--cmp); stroke-width: 16; stroke-linecap: round; }
.gauge-fill { fill: none; stroke-width: 16; stroke-linecap: round; }
.gauge-mark { stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
table.pnl { width: 100%; border-collapse: collapse; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
table.pnl th, table.pnl td { padding: 6px 8px; border-top: 1px solid var(--rule-soft); text-align: left; font-weight: 400; }
table.pnl thead th { border-top: 0; font-size: 0.75rem; color: var(--ink-3); font-weight: 500; }
table.pnl .num { text-align: right; white-space: nowrap; }
table.pnl tr.total th, table.pnl tr.total td { font-weight: 600; border-top-color: var(--rule); }
table.pnl tr.result th, table.pnl tr.result td { font-weight: 700; border-top: 1.5px solid var(--ink); font-size: 0.9375rem; }
table.pnl tr.cost th { padding-left: 20px; color: var(--ink-2); }
@media (max-width: 1100px) { .dash-card, .dash-card.c-pnl { grid-column: span 6; } .dash-card.c-wide { grid-column: span 12; } }
@media (max-width: 700px) { .dash-card, .dash-card.c-wide, .dash-card.c-pnl { grid-column: span 12; } .dash-big { font-size: 1.75rem; } }

/* ---- channels and locations */
.split-panels.mix { margin-top: 24px; }
.panel-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink); text-decoration: none; margin: 0 0 10px; }
.panel-link h3 { margin: 0; font: 600 1.0625rem var(--text); }
.panel-link .icon { color: var(--ink-3); transition: transform 0.15s; }
.panel-link:hover .icon { transform: translateX(2px); color: var(--ink); }
.mini-h { font: 600 0.8125rem var(--text); color: var(--ink-2); margin: 18px 0 6px; }
ol.rank { list-style: none; margin: 0; padding: 0; counter-reset: r; }
ol.rank li { display: grid; grid-template-columns: 1.6em 1fr auto auto; gap: 10px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--rule-soft); font-size: 0.875rem; counter-increment: r; }
ol.rank li::before { content: counter(r); color: var(--ink-3); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
ol.rank li:first-child { border-top: 0; }
.rank-v { font-weight: 600; font-variant-numeric: tabular-nums; }
.rank-n { font-size: 0.75rem; text-align: right; min-width: 6.5em; }
p.chips { display: flex; flex-wrap: wrap; gap: 6px; }
p.chips .chip { padding: 3px 9px; border-radius: 999px; background: var(--tint); font-weight: 500; }

/* ---- pop-ups behind "needs doing" */
.needs-table .sub { display: block; font-size: 0.75rem; color: var(--ink-3); }
.needs-table td.items { max-width: 260px; white-space: normal; font-size: 0.8125rem; color: var(--ink-2); }
.needs-table td { vertical-align: top; }
ul.task-mini { list-style: none; margin: 0; padding: 0; }
ul.task-mini li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--rule-soft); }
ul.task-mini li.due .t { color: var(--bad-ink); }
.quick { max-width: min(900px, calc(100vw - 32px)); }

/* ---- brief charts and monthly review */
.brief-charts { margin-bottom: 24px; }
.brief-charts figure { margin: 0; }
.bars-14 .chart.mini-bars { height: auto; }
.bars-14-x { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--ink-3); margin-top: 6px; }
.brief-spark { margin-top: 12px; }
.brief-spark .spark { width: 100%; height: 36px; }
.monthly { margin-top: 40px; }
.month-chart { margin: 0 0 16px; }
.month-two { margin-top: 0; }
dl.pnl-mini { margin: 0; display: grid; }
dl.pnl-mini > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--rule-soft); font-size: 0.875rem; }
dl.pnl-mini > div:first-child { border-top: 0; }
dl.pnl-mini dt { color: var(--ink-2); } dl.pnl-mini dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
dl.pnl-mini > div.total { border-top: 1.5px solid var(--ink); } dl.pnl-mini > div.total dt { color: var(--ink); font-weight: 600; }
ul.bullets { list-style: none; margin: 0 0 12px; padding: 0; }
ul.bullets li { position: relative; padding: 6px 0 6px 16px; font-size: 0.875rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
ul.bullets li::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--series1); }

/* ---- sortable table headers */
th.sortable a { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; }
th.sortable.num a { justify-content: flex-end; }
th.sortable a:hover { color: var(--ink); }
.sort-mark { font-size: 0.75rem; color: var(--ink-3); opacity: 0.5; }
th.sortable[aria-sort] .sort-mark { opacity: 1; color: var(--ink); }
th.sortable[aria-sort] a { color: var(--ink); font-weight: 600; }

/* ---- season strip: verdict and running total beside the weekly bars */
.strip-verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 12px; }
.strip-verdict .sv-k { flex-basis: 100%; font-size: 0.8125rem; color: var(--ink-2); }
.strip-verdict strong { font: 600 1.625rem/1.1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.strip-verdict .sv-t { font-size: 0.875rem; color: var(--ink-2); }
.strip-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.strip-sub { font-size: 0.8125rem; color: var(--ink-2); margin: 0 0 4px; }
.strip-run .chart { width: 100%; height: auto; }
@media (max-width: 1000px) { .strip-grid { grid-template-columns: 1fr; } }

/* ---- pinch to zoom in an expanded chart */
.zoom-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -4px 0 10px; }
.zoom-hint { font-size: 0.8125rem; color: var(--ink-3); margin-right: auto; }
.zoom-tools button { font-size: 0.8125rem; padding: 4px 10px; }
.chart-zoom .zoom-body { touch-action: pan-y; overflow: hidden; }
.chart-zoom .zoom-body svg.chart { transition: transform 0.12s ease-out; will-change: transform; }
.chart-zoom .zoom-body.loading { opacity: 0.55; transition: opacity 0.15s; }
.brief-two > .panel + .panel, .split-panels > .panel + .panel, .split-panels > div > .panel { margin-top: 0; }

/* ---- dashboard polish: compare bars, legend keys, gradient areas */
.cmp-bars { list-style: none; margin: 6px 0 14px; padding: 0; display: grid; gap: 10px; }
.cmp-bars li { display: grid; grid-template-columns: 5.5em 1fr auto; gap: 10px; align-items: center; font-size: 0.8125rem; color: var(--ink-2); }
.cb-track { height: 10px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.cb-fill { display: block; height: 100%; border-radius: 999px; background: var(--cmp-line); }
.cmp-bars li.lead .cb-fill { background: var(--series1); }
.cmp-bars li.lead { color: var(--ink); font-weight: 600; }
.cb-v { font-variant-numeric: tabular-nums; }
.mini-key { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mini-key .k-lead, .mini-key .k-accent { width: 8px; height: 8px; border-radius: 2px; display: inline-block; background: var(--series1); }
.mini-key .k-accent { background: var(--series2); margin-left: 8px; }
.chart .area.grad { fill-opacity: 1; }
.dash-card .chart .line { stroke-width: 2.25; }
.dash-card .chart .line-cmp { stroke-width: 1.75; stroke-dasharray: 3 4; }
.dash-card .grid { stroke: var(--rule-soft); }

/* ---- daily brief: day navigation, traffic and sales */
.brief-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.brief-bar > :first-child { margin: 0; }
.day-nav { display: flex; align-items: center; gap: 6px; }
.dn-step { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); }
.dn-step:hover { border-color: var(--rule-strong); }
.dn-step .icon { width: 16px; height: 16px; }
.dn-step:not(.next) .icon { transform: rotate(180deg); }
.dn-step.off { visibility: hidden; }
.dn-pick input[type="date"] { height: 36px; border-radius: 10px; padding: 0 10px; font: 500 0.875rem var(--text); }
.dn-latest { font-size: 0.875rem; font-weight: 600; margin-left: 4px; }
.brief-traffic { margin: 8px 0 32px; }
.brief-traffic .brief-two { margin-bottom: 16px; }
.drivers-card h3 { font: 600 1.0625rem var(--text); margin: 0; }
.drivers-card .meta { font-size: 0.8125rem; color: var(--ink-3); margin: 2px 0 14px; }
.equation { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 0 0 6px; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.equation b { font: 650 1.25rem/1.1 var(--display); letter-spacing: -0.01em; }
.equation .eq-op { color: var(--ink-3); font-size: 1rem; }
.equation .eq-r b { color: var(--series1); }
.equation.before { font-size: 0.8125rem; color: var(--ink-3); margin-bottom: 16px; }
.equation.before .eq-k { font-weight: 600; margin-right: 4px; }
.drivers { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.drivers li { display: grid; grid-template-columns: minmax(150px, 1fr) 1.2fr 80px; gap: 12px; align-items: center; font-size: 0.875rem; }
.dr-name { display: flex; align-items: center; gap: 6px; }
.dr-bar { position: relative; height: 12px; }
.dr-mid { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--rule-strong); }
.dr-fill { position: absolute; top: 0; height: 100%; border-radius: 3px; }
.drivers li.dv-pos .dr-fill { left: 50%; background: var(--series1); }
.drivers li.dv-neg .dr-fill { right: 50%; background: var(--series2); }
.dr-v { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.verdict { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--rule-soft); font-size: 0.875rem; font-weight: 500; }

/* ---- campaign-aware comparisons */
.adjust { margin: 0 0 16px; border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
.adjust > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 9px 2px; cursor: pointer; list-style: none; font-size: 0.8125rem; color: var(--ink-2); }
.adjust > summary::-webkit-details-marker { display: none; }
.adjust > summary::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: rotate(-45deg); transition: transform .15s; margin-right: 2px; }
.adjust[open] > summary::before { transform: rotate(45deg); }
.adjust .adj-k { font-weight: 600; color: var(--ink); }
.adjust .adj-s { display: inline-flex; gap: 6px; align-items: center; font-variant-numeric: tabular-nums; }
.adj-body { padding: 4px 2px 14px; }
.adj-t { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.adj-t th, .adj-t td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-top: 1px solid var(--rule-soft); }
.adj-t thead th { border-top: 0; font-size: 0.75rem; font-weight: 600; color: var(--ink-3); }
.adj-t tbody th { font-weight: 500; color: var(--ink-2); width: 30%; }
.adj-t td { font-variant-numeric: tabular-nums; }
.adj-t td > .small { display: block; margin-top: 2px; }
.adj-camps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.adj-body > p { margin: 10px 0 0; }
.adj-method { margin-top: 10px; }
.adj-method > summary { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; font-size: 0.8125rem; color: var(--accent); list-style: none; }
.adj-method > summary::-webkit-details-marker { display: none; }
.adj-method .icon { width: 14px; height: 14px; }
.adj-method ul { margin: 8px 0 0; padding-left: 18px; color: var(--ink-2); display: grid; gap: 4px; }
@media (max-width: 640px) { .adj-t tbody th { width: auto; } }
.camp-chip { display: flex; gap: 6px; align-items: flex-start; margin: 10px 0 0; font-size: 0.8125rem; color: var(--ink-3); }
.camp-chip .icon { width: 14px; height: 14px; color: var(--ink-3); flex: none; margin-top: 2px; }
.est { font-size: 0.6875rem; font-weight: 600; padding: 0 6px; border-radius: 999px; background: var(--tint); color: var(--ink-3); margin-left: 4px; vertical-align: 1px; }
.camp-caveat { margin: 8px 0 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 6px; }
.choice-row .choice { position: relative; }
.choice-row .choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice-row .choice span { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--rule); font-size: 0.875rem; font-weight: 500; background: var(--sheet); }
.choice-row .choice input:checked + span { background: color-mix(in srgb, var(--accent) 12%, var(--sheet)); border-color: var(--accent); color: var(--accent); }
.choice-row .choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.campaign-form .cf-step { grid-column: 1 / -1; }
.campaign-form .cf-l { font-weight: 600; font-size: 0.875rem; }
.cf-dates { display: flex; flex-wrap: wrap; gap: 10px; }
.cf-dates label { display: grid; gap: 4px; font-weight: 400; }
.campaign-form .cf-more { grid-column: 1 / -1; }
.campaign-form .cf-more summary, .spike-more summary { font-size: 0.8125rem; color: var(--accent); cursor: pointer; }
.campaign-form .cf-more input { margin-top: 8px; width: 100%; }
.campaign-form input[name="name"], .campaign-form select { max-width: 460px; }
.add-campaign > summary { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; cursor: pointer; }
.add-campaign > summary .icon { width: 18px; height: 18px; color: var(--accent); }
.spike-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.spike-quick form { margin: 0; }
.camp-inline { color: var(--ink-2); }
.camp-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.camp { padding: 18px 20px; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--sheet); }
.camp-head { display: flex; justify-content: space-between; gap: 12px; }
.camp-name { font-weight: 650; margin: 0; }
.camp-meta { font-size: 0.8125rem; color: var(--ink-3); margin: 2px 0 0; }
.camp-notes { font-size: 0.8125rem; color: var(--ink-2); margin: 4px 0 0; }
.series-tag { padding: 1px 7px; border-radius: 999px; background: var(--tint); color: var(--ink-2); }
.camp-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 14px 0 0; }
.camp-figs div { padding: 10px 12px; border-radius: 10px; background: var(--tint); }
.camp-figs dt { font-size: 0.75rem; color: var(--ink-2); }
.camp-figs dd { margin: 2px 0 0; font-weight: 650; font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pair { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule-soft); }
.pair-h { font-size: 0.875rem; margin: 0 0 4px; }
/* what Atlas read each campaign as (124): kind and event, the reason, a way to put it right */
.camp-read { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 12px 0 0; font-size: 0.8125rem; }
.camp-kind { display: inline-flex; align-items: baseline; gap: 6px; padding: 2px 8px; border-radius: 999px; background: var(--tint); color: var(--ink); font-weight: 600; white-space: nowrap; }
.camp-event { font-weight: 400; color: var(--ink-2); }
.camp-why { color: var(--ink-2); flex: 1 1 260px; min-width: 0; }
.camp-read-unsure .camp-kind { box-shadow: inset 0 0 0 1px var(--warning-mark); }
.camp-kind-edit { flex-basis: 100%; }
.camp-kind-edit > summary { cursor: pointer; color: var(--accent); width: fit-content; font-size: 0.8125rem; }
.camp-kind-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; margin-top: 8px; }
.camp-kind-form label { display: grid; gap: 2px; }
.camp-kind-form input { width: min(320px, 100%); }
.pair-usual .pair-h strong { font-weight: 650; }
.series-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 0.8125rem; }
.series-form input { width: 200px; }
.campaign-form .hint { display: block; font-size: 0.75rem; color: var(--ink-3); margin-top: 4px; }
.spikes { margin-top: 24px; }
.spikes h3 { font: 600 1.0625rem var(--text); margin: 0 0 4px; }
.spike-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.spike-list li { padding: 12px 16px; border: 1px solid var(--rule); border-radius: 12px; background: var(--sheet); }
.spike-top { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.875rem; }
.spike-list .spike-more { margin-top: 8px; }

/* ---- richer hover: the column under the pointer lights up, the rest step back */
.chart .bar-g .hit, .chart .col .hit { fill: transparent; transition: fill .12s; }
.chart .bar-g:hover .hit, .chart .bar-g.on .hit { fill: var(--tint); }
.chart.cols .bar, .chart .bar { transition: opacity .15s; }
.chart.cols:hover .bar-g:not(:hover) .bar, .chart.cols:hover .bar-g:not(:hover) .ghost { opacity: .45; }
.chart .hover-dot { opacity: 0; stroke: var(--sheet); stroke-width: 2; transition: opacity .1s; pointer-events: none; }
.chart .col:hover .hover-dot, .chart .col.on .hover-dot { opacity: 1; }
.chart .col:hover .xh, .chart .col.on .xh { opacity: .5; }
.chart:hover .end-label { opacity: .35; }

/* ---- refresh button */
.refresh-form { margin: 0; }
.refresh-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; min-height: 0; padding: 0 12px 0 10px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--sheet); color: var(--ink-2); font: 500 0.8125rem var(--text); box-shadow: var(--shadow-sm); cursor: pointer; }
.refresh-btn:hover { color: var(--ink); border-color: var(--rule-strong); }
.refresh-btn svg { width: 14px; height: 14px; }
.refresh-btn.spinning svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .refresh-btn.spinning svg { animation-duration: 3s; } }
@media (max-width: 600px) { .refresh-label { display: none; } .refresh-btn { padding: 0 9px; } }

/* ---- traffic and sales cards (plain figures, no equation) */
.tr-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tr-total { display: flex; align-items: center; gap: 8px; }
.tr-total strong { font: 600 1.5rem/1.1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.drivers-card .verdict { border-top: 0; padding-top: 0; margin: 6px 0 16px; font-size: 0.9375rem; }
.tr-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tr-tile { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px; background: var(--tint); }
.tr-tile .k { font-size: 0.75rem; color: var(--ink-2); }
.tr-tile strong { font: 600 1.25rem/1.15 var(--display); font-variant-numeric: tabular-nums; }
.tr-tile .s { font-size: 0.75rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.tr-part { font-size: 0.75rem; font-weight: 600; margin-top: 2px; }
.tr-part.pos { color: var(--good-ink); } .tr-part.neg { color: var(--bad-ink); }
@media (max-width: 560px) { .tr-tiles { grid-template-columns: 1fr; } }

/* ---- live traffic */
.live-card { margin: 0 0 16px; }
.live-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.live-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font: 600 1.0625rem var(--text); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); }
.live-dot.on { background: #1f9d55; box-shadow: 0 0 0 0 rgba(31, 157, 85, 0.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 157, 85, 0.45); } 70% { box-shadow: 0 0 0 8px rgba(31, 157, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 157, 85, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot.on { animation: none; } }
.live-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 0 6px; }
.live-figs div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--tint); }
.live-figs strong { font: 600 1.5rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.live-figs span { font-size: 0.75rem; color: var(--ink-2); }
.live-card.compact .live-figs { margin-bottom: 0; }
.live-card.compact .chart.mini-bars, .live-card.compact .dash-foot { display: none; }
.live-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
@media (max-width: 700px) { .live-figs { grid-template-columns: 1fr 1fr; } .live-lists { grid-template-columns: 1fr; } }
.funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.funnel li { display: grid; grid-template-columns: 150px 1fr 60px 44px; gap: 10px; align-items: center; font-size: 0.875rem; }
.fn-bar { height: 14px; border-radius: 4px; background: var(--tint); overflow: hidden; }
.fn-fill { display: block; height: 100%; background: var(--series1); border-radius: 4px; min-width: 2px; }
.fn-v { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.fn-step { text-align: right; font-size: 0.75rem; color: var(--ink-3); }
.traffic-sources { margin: 24px 0; }
.traffic-sources .brief-two, .traffic-sources .table-card { margin-bottom: 16px; }
.live-setup { margin-top: 24px; }
.snippet-site { margin-top: 14px; }
.snippet-h { font-weight: 650; margin: 0 0 6px; }
.steps-small { margin: 0; padding-left: 20px; display: grid; gap: 10px; font-size: 0.875rem; }
pre.code { margin: 6px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--tint); border: 1px solid var(--rule); overflow-x: auto; font-size: 0.75rem; user-select: all; }
.tk-lead { margin: 0 0 12px; max-width: 68ch; }
.tk-plat { display: block; margin: 4px 0 4px; font-size: 0.8125rem; color: var(--ink-2); }
.snippet-site select { margin-bottom: 10px; }
.tk-steps .steps-small > li { line-height: 1.5; }
.tk-why { display: block; margin-top: 6px; font-size: 0.8125rem; color: var(--ink-2); }
.tk-copy { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 6px; }
.tk-copy + pre.code { margin-top: 4px; white-space: pre-wrap; word-break: break-all; max-height: 260px; }
.tk-alt { margin-top: 10px; font-size: 0.875rem; }
.tk-alt summary { cursor: pointer; }
.tk-missing { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.tk-missing p { margin: 0; }
/* sending sales to an ad platform (views.ts metaSendSection): its own block inside the Meta card */
.meta-send { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); }
.meta-send h4 { margin: 0 0 6px; font-size: 0.9375rem; font-weight: 650; }
.meta-send > p { max-width: 68ch; }
.meta-send ol.steps > li { margin-bottom: 14px; }
.meta-send ol.steps > li > p, .meta-send ol.steps > li form { margin-top: 8px; }

.chart.mini-bars:not(.marked) { height: 64px; }

/* ---- no browser focus ring on chart marks (the crosshair shows where you are) */
.chart g:focus, .chart g:focus-visible, .chart .col:focus { outline: none; }
.chart .bar-g.clickable { cursor: pointer; }
.quick-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 12px; }
.quick-two ol.rank + ol.rank { margin-top: 10px; }
.qf-cmp { display: flex; flex-direction: column; gap: 2px; font-size: 0.75rem; color: var(--ink-3); }
.qf-cmp span { display: flex; align-items: center; gap: 4px; }
@media (max-width: 640px) { .quick-two { grid-template-columns: 1fr; } }

/* ---- profit pop-up */
.pnl-t tr.sum th, .pnl-t tr.sum td { border-top: 1px solid var(--rule-strong); font-weight: 600; }
.pnl-t tr.total th, .pnl-t tr.total td { font-weight: 700; }
.pnl-t td:first-of-type { color: var(--ink); }
.pnl-t td { color: var(--ink-2); }
.more-rows { text-align: center; margin: 14px 0 0; overflow-anchor: none; }
.pnl-t tbody th, .pnl-t thead th { background: transparent; }
.campaign-form .cf-go { justify-self: start; }
.spike-rest { margin-top: 10px; }
.spike-rest > summary { font-size: 0.875rem; font-weight: 600; color: var(--accent); cursor: pointer; }
.camp-figs .range { font-weight: 400; font-size: 0.75rem; color: var(--ink-3); }
.table-scroll.endless { max-height: none; }
.refresh-btn.ready { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--rule)); }
.qf-vs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 0.75rem; color: var(--ink-3); }
.quick-head.month-step { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.quick-head.month-step .dn-step { width: 36px; height: 36px; }

/* ---- live traffic: not receiving, and the set-up check */
.live-warn { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 10px 14px; border-radius: 10px;
  background: color-mix(in srgb, var(--warning) 14%, var(--sheet)); border: 1px solid color-mix(in srgb, var(--warning) 45%, var(--rule)); font-size: 0.875rem; }
.live-warn .icon { width: 16px; height: 16px; color: var(--warning-mark); flex: none; margin-top: 2px; }
.live-warn strong { display: block; }
.live-warn a { margin-left: 4px; font-weight: 600; }
.live-card.stale .live-figs strong { color: var(--ink-3); }
.track-check { margin: 18px 0 10px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 12px; background: var(--tint); display: grid; gap: 12px; justify-items: start; }
.track-status { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.track-status li { display: flex; gap: 10px; align-items: flex-start; }
.track-status li .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.track-status li.ok .icon { color: var(--good); }
.track-status li.off .icon { color: var(--warning-mark); }
.track-status strong { display: block; font-size: 0.9375rem; }
.track-status .small { color: var(--ink-2); }
[data-quick-body].loading { opacity: .5; transition: opacity .15s; }
.camp-extend { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: var(--tint); font-size: 0.875rem; }
.camp-extend .icon { width: 16px; height: 16px; color: var(--accent); flex: none; }
.camp-extend p { margin: 0; flex: 1 1 320px; }
.camp-edit { margin-top: 10px; }
.camp-edit summary { font-size: 0.8125rem; color: var(--accent); cursor: pointer; }
.camp-edit form { margin-top: 8px; align-items: end; }

/* ---- ring cards: part of a whole, Activity-ring style */
.ring-card { display: flex; flex-direction: column; gap: 18px; padding: 22px 24px 18px; }
.ring-head h3 { margin: 0; font: 600 0.8125rem var(--text); letter-spacing: 0.01em; color: var(--ink-3); }
.ring-lede { margin: 4px 0 0; font: 600 1.1875rem/1.3 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.ring-lede strong { font-weight: 700; }
.ring-body { display: grid; grid-template-columns: minmax(150px, 190px) minmax(0, 1fr); gap: 28px; align-items: center; }
.ring-fig { position: relative; }
.chart.ring { display: block; width: 100%; height: auto; overflow: visible; }
.chart.ring .ring-track { stroke: color-mix(in srgb, var(--ink) 6%, transparent); }
.chart.ring .ring-seg { transition: opacity .2s ease, stroke-width .2s ease; animation: ring-draw 1s cubic-bezier(.2, .8, .2, 1) both; cursor: pointer; }
.chart.ring .ring-seg:nth-of-type(2) { animation-delay: .08s; } .chart.ring .ring-seg:nth-of-type(3) { animation-delay: .16s; } .chart.ring .ring-seg:nth-of-type(4) { animation-delay: .24s; }
@keyframes ring-draw { from { stroke-dasharray: 0 100; } }
@media (prefers-reduced-motion: reduce) { .chart.ring .ring-seg { animation: none; } }
.chart.ring[data-focus] .ring-seg { opacity: .28; }
.chart.ring[data-focus] .ring-seg.on { opacity: 1; stroke-width: 32; }
.chart.ring .ring-v { font: 700 30px var(--display); letter-spacing: -0.03em; fill: var(--ink); font-variant-numeric: tabular-nums; }
.chart.ring .ring-c { font: 500 13px var(--text); fill: var(--ink-3); }
.rg-series1 .a { stop-color: color-mix(in srgb, var(--series1) 78%, white); } .rg-series1 .b { stop-color: var(--series1); }
.rg-series2 .a { stop-color: color-mix(in srgb, var(--series2) 78%, white); } .rg-series2 .b { stop-color: var(--series2); }
.rg-series3 .a { stop-color: color-mix(in srgb, var(--series3) 78%, white); } .rg-series3 .b { stop-color: var(--series3); }
.rg-series4 .a { stop-color: color-mix(in srgb, var(--series4) 78%, white); } .rg-series4 .b { stop-color: var(--series4); }
.ring-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ring-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px;
  background: color-mix(in srgb, var(--ink) 3%, transparent); transition: background .15s ease; cursor: default; outline: none; }
.ring-row:hover, .ring-row.on, .ring-row:focus-visible { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.ring-row:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.ring-dot { width: 10px; height: 10px; border-radius: 50%; }
.rr-main { display: grid; gap: 1px; min-width: 0; }
.rr-name { font-weight: 600; font-size: 0.9375rem; }
.rr-sub { font-size: 0.8125rem; color: var(--ink-3); }
.rr-fig { display: grid; justify-items: end; gap: 1px; }
.rr-v { font: 650 1rem var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.rr-share { font-size: 0.8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rr-delta { min-width: 64px; display: flex; justify-content: flex-end; }
.rr-delta .delta { font-size: 0.8125rem; }
.ring-note { margin: 0; font-size: 0.8125rem; color: var(--ink-3); }
@media (max-width: 560px) { .ring-body { grid-template-columns: 1fr; justify-items: center; } .chart.ring { max-width: 190px; } .ring-rows { width: 100%; } }
.table-scroll.list-box { max-height: min(70vh, 760px); overflow-y: auto; overscroll-behavior: contain; }
.table-scroll.list-box .more-rows { margin: 0; padding: 14px 0; }
section.swapping { opacity: .55; transition: opacity .12s; pointer-events: none; }
.split-panels .panel.ring-card { display: flex; background: var(--sheet); border: 1px solid var(--rule); border-radius: 20px; padding: 22px 22px 18px; container-type: inline-size; }
@container (max-width: 520px) {
  .ring-body { grid-template-columns: 1fr; justify-items: center; gap: 18px; }
  .ring-fig { width: 176px; }
  .ring-rows { width: 100%; }
}
.dash-head { align-items: center; }
.dash-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dash-nav .dn-step { width: 32px; height: 32px; }
.dash-nav .dn-latest { font-size: 0.8125rem; font-weight: 600; }

/* ======================================================================
   The month in review: full screen, one slide at a time
   ====================================================================== */
.recap-body { margin: 0; background: var(--paper); color: var(--ink); overflow: hidden; }
.recap { position: fixed; inset: 0; display: grid; grid-template-rows: auto 1fr; outline: none;
  background:
    radial-gradient(1200px 600px at 85% -10%, color-mix(in srgb, var(--series1) 14%, transparent), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, color-mix(in srgb, var(--series3) 12%, transparent), transparent 60%),
    var(--paper); }
.rc-top { padding: max(14px, env(safe-area-inset-top)) 20px 0; position: relative; z-index: 3; max-width: 980px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.rc-progress { display: flex; gap: 4px; }
.rc-progress span { flex: 1; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 14%, transparent); overflow: hidden; }
.rc-progress i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 3px; transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.rc-progress span.done i { width: 100%; }
.rc-bar-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.rc-month select { appearance: none; border: 0; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); font: 600 0.875rem var(--text);
  padding: 7px 30px 7px 12px; border-radius: 999px; min-height: 0; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
.rc-count-label { margin-left: auto; font-size: 0.8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rc-close { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-size: 22px; line-height: 1; text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, var(--ink) 7%, transparent); }
.rc-close:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.rc-stage { position: relative; overflow: hidden; }
.rc-slide { position: absolute; inset: 0; overflow-y: auto; display: grid; align-items: center; justify-items: center; padding: 20px 20px max(40px, env(safe-area-inset-bottom));
  opacity: 0; transform: translateX(40px) scale(.985); pointer-events: none; visibility: hidden;
  transition: opacity .5s cubic-bezier(.2, .8, .2, 1), transform .6s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .6s; }
.rc-slide.on { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.rc-slide.past { transform: translateX(-40px) scale(.985); }
.rc-inner { width: 100%; max-width: 760px; }
.rc-slide.on .rc-inner > * { animation: rc-up .7s cubic-bezier(.2, .8, .2, 1) both; }
.rc-slide.on .rc-inner > *:nth-child(2) { animation-delay: .06s; } .rc-slide.on .rc-inner > *:nth-child(3) { animation-delay: .12s; }
.rc-slide.on .rc-inner > *:nth-child(4) { animation-delay: .18s; } .rc-slide.on .rc-inner > *:nth-child(5) { animation-delay: .24s; }
.rc-slide.on .rc-inner > *:nth-child(n+6) { animation-delay: .3s; }
@keyframes rc-up { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { .rc-slide, .rc-slide.on .rc-inner > * { transition: none; animation: none; transform: none; } }
.rc-eyebrow { margin: 0 0 10px; font: 600 0.8125rem var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.rc-hero { margin: 0; font: 700 clamp(3.25rem, 11vw, 6.5rem)/1 var(--display); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.rc-hero.small { font-size: clamp(2.5rem, 8vw, 4.5rem); margin-top: 18px; }
.rc-title { margin: 0 0 26px; font: 650 clamp(1.5rem, 3.6vw, 2.25rem)/1.18 var(--display); letter-spacing: -0.025em; max-width: 24ch; text-wrap: balance; }
.rc-sub { margin: 10px 0 0; font-size: 1.125rem; color: var(--ink-2); }
.rc-compare { margin-top: 30px; display: grid; gap: 14px; justify-items: start; }
.rc-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.rc-seg button { border: 0; background: none; color: var(--ink-2); font: 600 0.875rem var(--text); padding: 7px 14px; border-radius: 999px; min-height: 0; cursor: pointer; }
.rc-seg button.on { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.rc-big-line { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 1.0625rem; color: var(--ink-2); }
.rc-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font: 700 0.9375rem var(--text); font-variant-numeric: tabular-nums; }
.rc-chip.up { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good-ink); }
.rc-chip.down { background: color-mix(in srgb, var(--critical) 14%, transparent); color: var(--bad-ink); }
.rc-chip.flat { background: var(--tint); color: var(--ink-2); }
.rc-big-line .rc-chip { font-size: 1.125rem; padding: 6px 12px; }
.rc-rank { margin: 28px 0 0; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1rem; padding: 10px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--ink) 5%, transparent); }
.rc-rank .icon { width: 18px; height: 18px; color: var(--ink-3); }
.rc-rank.top .icon { color: var(--good); }
.rc-hint { margin: 42px 0 0; font-size: 0.8125rem; color: var(--ink-3); }
.rc-note { margin: 20px 0 0; font-size: 0.875rem; color: var(--ink-3); max-width: 60ch; }
.rc-card { padding: 18px 20px; border-radius: 20px; background: color-mix(in srgb, var(--sheet) 88%, transparent); border: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .04); }
.rc-k { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-3); }
.rc-v { margin: 6px 0 0; font: 700 1.75rem/1.1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rc-s { margin: 6px 0 0; font-size: 0.875rem; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rc-s.up { color: var(--good-ink); } .rc-s.down { color: var(--bad-ink); }
.rc-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.rc-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.rc-wide { margin-top: 18px; }
.rc-gap { margin-top: 24px; }
/* drivers */
.rc-drivers { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rc-drivers li { display: grid; grid-template-columns: minmax(160px, 1fr) 1.3fr 90px; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 18px; background: color-mix(in srgb, var(--sheet) 88%, transparent); }
.rd-name { display: grid; gap: 3px; font-weight: 650; }
.rd-vals { font-weight: 400; font-size: 0.875rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rd-vals strong { color: var(--ink); font-weight: 650; }
.rd-bar { position: relative; height: 14px; }
.rd-mid { position: absolute; left: 50%; top: -6px; bottom: -6px; width: 1.5px; background: var(--rule-strong); border-radius: 1px; }
.rd-fill { position: absolute; top: 0; height: 100%; width: 0; border-radius: 7px; transition: width .9s cubic-bezier(.2, .8, .2, 1) .25s; }
.rc-drivers li.d-pos .rd-fill { left: 50%; background: linear-gradient(90deg, color-mix(in srgb, var(--series1) 70%, white), var(--series1)); }
.rc-drivers li.d-neg .rd-fill { right: 50%; background: linear-gradient(270deg, color-mix(in srgb, var(--series2) 70%, white), var(--series2)); }
.rd-v { text-align: right; font: 700 1.0625rem var(--display); font-variant-numeric: tabular-nums; }
/* rhythm */
.rc-days { display: flex; align-items: flex-end; gap: 3px; height: 180px; padding: 10px 0; }
.rc-day { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: default; }
.rc-day .rc-bar, .rc-day .rc-ghost { position: absolute; bottom: 0; width: 72%; height: 0; border-radius: 5px 5px 2px 2px; transition: height .8s cubic-bezier(.2, .8, .2, 1); }
.rc-day .rc-ghost { width: 100%; background: color-mix(in srgb, var(--cmp) 80%, transparent); }
.rc-day .rc-bar { background: linear-gradient(180deg, color-mix(in srgb, var(--series1) 75%, white), var(--series1)); }
.rc-day.best .rc-bar { background: linear-gradient(180deg, color-mix(in srgb, var(--series3) 70%, white), var(--series3)); }
.rc-day:hover .rc-bar { filter: brightness(1.08); }
.rc-wd { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin-top: 10px; }
.rc-wd span { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.rc-wd i { width: 100%; height: 0; border-radius: 6px; background: color-mix(in srgb, var(--series1) 35%, transparent); transition: height .8s cubic-bezier(.2, .8, .2, 1) .2s; }
.rc-wd span.top i { background: var(--series1); }
.rc-wd b { font-size: 0.6875rem; color: var(--ink-3); font-weight: 600; }
/* customers */
.rc-ringrow { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: 28px; align-items: center; }
.rc-stack { display: grid; gap: 12px; }
/* products and places */
.rc-lines, .rc-places { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rc-lines details { border-radius: 16px; background: color-mix(in srgb, var(--sheet) 88%, transparent); }
.rc-lines summary { display: grid; grid-template-columns: 24px minmax(90px, 1fr) 1.4fr 70px; gap: 12px; align-items: center; padding: 12px 16px; cursor: pointer; list-style: none; }
.rc-lines summary::-webkit-details-marker { display: none; }
.rl-rank { font: 700 0.875rem var(--display); color: var(--ink-3); }
.rl-name { font-weight: 650; }
.rl-bar { height: 10px; border-radius: 5px; background: color-mix(in srgb, var(--ink) 6%, transparent); overflow: hidden; }
.rl-bar span { display: block; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, color-mix(in srgb, var(--series1) 70%, white), var(--series1)); transition: width .9s cubic-bezier(.2, .8, .2, 1) .2s; }
.rl-v { text-align: right; font: 650 0.9375rem var(--display); font-variant-numeric: tabular-nums; }
.rl-more { margin: 0; padding: 0 16px 14px 52px; font-size: 0.875rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rc-places li { display: grid; grid-template-columns: minmax(110px, 1fr) 1.4fr 70px 70px; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 16px; background: color-mix(in srgb, var(--sheet) 88%, transparent); }
.rp-name { font-weight: 650; } .rp-v { text-align: right; font: 650 0.9375rem var(--display); font-variant-numeric: tabular-nums; } .rp-c { text-align: right; }
.rp-c .rc-chip { font-size: 0.75rem; padding: 2px 8px; }
.rc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rc-pill { padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--sheet) 88%, transparent); border: 1px solid color-mix(in srgb, var(--ink) 7%, transparent); font-size: 0.9375rem; }
.rc-pill b { margin-left: 4px; }
/* money */
.rc-stackbar { display: flex; gap: 3px; height: 44px; border-radius: 14px; overflow: hidden; }
.rc-stackbar span { width: 0; height: 100%; transition: width .9s cubic-bezier(.2, .8, .2, 1) .2s; }
.rc-stackbar span:first-child { border-radius: 14px 0 0 14px; } .rc-stackbar span:last-child { border-radius: 0 14px 14px 0; }
.sb-0 { background: var(--series2); } .sb-1 { background: var(--series5); } .sb-2 { background: var(--series4); } .sb-3 { background: var(--series7); }
.sb-kept { background: linear-gradient(90deg, color-mix(in srgb, var(--series3) 75%, white), var(--series3)); }
.rc-legend { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.9375rem; color: var(--ink-2); }
.rc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.rc-legend b { color: var(--ink); margin-left: 4px; font-variant-numeric: tabular-nums; }
/* campaigns */
.rc-camps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rc-est { font: 600 0.75rem var(--text); padding: 2px 8px; border-radius: 999px; background: var(--tint); color: var(--ink-3); vertical-align: middle; letter-spacing: 0; }
/* season */
.rc-track { position: relative; height: 22px; border-radius: 11px; background: color-mix(in srgb, var(--ink) 7%, transparent); margin-top: 8px; }
.rt-done { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 11px; background: linear-gradient(90deg, color-mix(in srgb, var(--series1) 70%, white), var(--series1)); transition: width 1s cubic-bezier(.2, .8, .2, 1) .2s; }
.rt-range { position: absolute; top: -4px; bottom: -4px; border-radius: 8px; border: 2px dashed color-mix(in srgb, var(--series1) 60%, transparent); }
.rt-prior { position: absolute; top: -8px; bottom: -8px; width: 3px; border-radius: 2px; background: var(--ink); }
/* verdict */
.rc-verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rc-verdict section { padding: 18px; border-radius: 22px; background: color-mix(in srgb, var(--sheet) 88%, transparent); border: 1px solid color-mix(in srgb, var(--ink) 7%, transparent); }
.rc-verdict h3 { margin: 0 0 10px; font: 650 1.0625rem var(--display); }
.rc-verdict ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rc-verdict details { border-radius: 14px; background: color-mix(in srgb, var(--ink) 4%, transparent); }
.rc-verdict summary { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; cursor: pointer; list-style: none; }
.rc-verdict summary::-webkit-details-marker { display: none; }
.rv-icon .icon { width: 18px; height: 18px; } .rv-icon.up .icon { color: var(--good); } .rv-icon.down .icon { color: var(--warning-mark); }
.rv-t { font-weight: 600; font-size: 0.9375rem; }
.rv-a { font: 700 0.9375rem var(--display); font-variant-numeric: tabular-nums; } .rv-a.up { color: var(--good-ink); } .rv-a.down { color: var(--bad-ink); }
.rc-verdict details p { margin: 0; padding: 0 14px 10px 46px; font-size: 0.875rem; color: var(--ink-2); }
.rc-verdict .rv-do { color: var(--ink); font-weight: 500; }
/* next */
.rc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
/* navigation */
.rc-nav { position: absolute; top: 50%; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: color-mix(in srgb, var(--sheet) 80%, transparent); color: var(--ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .08); transition: opacity .2s; min-height: 0; padding: 0; }
.rc-nav .icon { width: 18px; height: 18px; }
.rc-nav.prev { left: max(16px, calc(50% - 560px)); } .rc-nav.prev .icon { transform: rotate(180deg); }
.rc-nav.next { right: max(16px, calc(50% - 560px)); }
.rc-nav[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 760px) {
  .rc-nav { display: none; }
  .rc-ringrow, .rc-verdict { grid-template-columns: 1fr; }
  .rc-ringrow .rc-ring { max-width: 200px; margin: 0 auto; }
  .rc-drivers li { grid-template-columns: 1fr 80px; } .rc-drivers .rd-bar { grid-column: 1 / -1; grid-row: 2; }
  .rc-places li { grid-template-columns: 1fr 70px 60px; } .rc-places .rl-bar { grid-column: 1 / -1; grid-row: 2; }
  .rc-lines summary { grid-template-columns: 20px 1fr 70px; } .rc-lines .rl-bar { grid-column: 2 / -1; grid-row: 2; }
  .rc-three { grid-template-columns: 1fr 1fr; }
}
/* the invitation on the Overview */
.recap-invite { position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; margin: 0 0 20px; padding: 22px 24px; border-radius: 22px; text-decoration: none; color: var(--ink);
  background: linear-gradient(120deg, color-mix(in srgb, var(--series1) 16%, var(--sheet)), color-mix(in srgb, var(--series3) 14%, var(--sheet)));
  border: 1px solid color-mix(in srgb, var(--series1) 20%, var(--rule)); transition: transform .2s ease, box-shadow .2s ease; }
.recap-invite:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
.ri-glow { position: absolute; right: -60px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--series1) 30%, transparent), transparent 70%); pointer-events: none; }
.ri-text { position: relative; display: grid; gap: 4px; flex: 1; }
.ri-k { font: 600 0.75rem var(--text); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.ri-text strong { font: 700 1.375rem/1.2 var(--display); letter-spacing: -0.02em; }
.ri-chg { font: 600 0.9375rem var(--text); color: var(--ink-2); margin-left: 6px; }
.ri-s { font-size: 0.875rem; color: var(--ink-2); }
.ri-play { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; padding-left: 3px; box-sizing: border-box;
  background: var(--ink); color: var(--paper); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.rc-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 4px 0 0; font-size: 0.8125rem; color: var(--ink-3); }
.rc-key span { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: -8px; }
.rc-key .k1 { background: var(--series1); } .rc-key .k2 { background: var(--cmp); } .rc-key .k3 { background: var(--series3); }
.recap-invite .ri-play svg { width: 20px; height: 20px; fill: var(--paper); margin-left: 2px; }

/* ---- Your day: the daily story, in the month in review's frame ---- */
.invites { display: grid; gap: 14px; margin: 0 0 20px; }
.invites.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.invites .recap-invite { margin: 0; }
.day-invite { background: linear-gradient(120deg, color-mix(in srgb, var(--series4) 18%, var(--sheet)), color-mix(in srgb, var(--series5) 16%, var(--sheet)));
  border-color: color-mix(in srgb, var(--series2) 22%, var(--rule)); }
.day-invite .ri-glow { background: radial-gradient(circle, color-mix(in srgb, var(--series2) 32%, transparent), transparent 70%); }
.day-invite .ri-s b { font-weight: 650; color: var(--ink); }
.rc-daypick { display: inline-flex; align-items: center; gap: 8px; }
.rc-daypick .dn-step { width: 32px; height: 32px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, transparent); border: 0; }
.rc-daylabel { font: 600 0.875rem var(--text); min-width: 8ch; text-align: center; }
.rc-hours { gap: 2px; height: 160px; }
.rc-hours .rc-day .rc-bar, .rc-hours .rc-day .rc-ghost { border-radius: 4px 4px 1px 1px; }
.rc-axis { display: flex; justify-content: space-between; margin: 6px 0 10px; font-size: 0.75rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rc-week { gap: 12px; height: 200px; padding-bottom: 26px; }
.rc-week .rc-day .rc-bar, .rc-week .rc-day .rc-ghost { bottom: 22px; }
.rc-week .rc-day .rc-bar { width: 56%; }
.rc-wdl { position: absolute; bottom: 0; font: 600 0.75rem var(--text); color: var(--ink-3); }
.rt-end { position: absolute; top: -8px; bottom: -8px; width: 3px; border-radius: 2px; background: var(--ink-3); }
.rt-swatch { display: inline-block; width: 3px; height: 14px; border-radius: 2px; }
.rt-swatch.prior { background: var(--ink); } .rt-swatch.end { background: var(--ink-3); }
.rc-todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: td; }
.rc-todo li { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 20px;
  background: color-mix(in srgb, var(--sheet) 90%, transparent); border: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .04); opacity: 0; transform: translateY(10px); }
.rc-slide.on .rc-todo li { animation: td-in .5s cubic-bezier(.2, .8, .2, 1) forwards; }
.rc-slide.on .rc-todo li:nth-child(2) { animation-delay: .08s; } .rc-slide.on .rc-todo li:nth-child(3) { animation-delay: .16s; } .rc-slide.on .rc-todo li:nth-child(4) { animation-delay: .24s; }
@keyframes td-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rc-todo li { opacity: 1; transform: none; } .rc-slide.on .rc-todo li { animation: none; } }
.td-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; }
.td-icon .icon { width: 22px; height: 22px; }
.td-act .td-icon { background: color-mix(in srgb, var(--series1) 14%, transparent); color: var(--series1); }
.td-check .td-icon { background: color-mix(in srgb, var(--warning) 18%, transparent); color: var(--warning-mark); }
.td-good .td-icon { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good-ink); }
.td-text { min-width: 0; }
.td-k { margin: 0; font: 600 0.75rem var(--text); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.td-t { margin: 2px 0 0; font: 650 1.0625rem/1.3 var(--display); }
.td-why { margin: 4px 0 0; font-size: 0.875rem; line-height: 1.45; color: var(--ink-2); }
.td-go { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; padding: 9px 14px; border-radius: 999px; font: 600 0.875rem var(--text);
  background: var(--ink); color: var(--paper); text-decoration: none; }
.td-go:hover { filter: brightness(1.15); }
.td-go .icon { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .rc-todo li { grid-template-columns: 36px 1fr; gap: 12px; padding: 16px; }
  .td-icon { width: 36px; height: 36px; border-radius: 12px; }
  .td-go { grid-column: 2; justify-self: start; }
  .rc-week { gap: 6px; }
}

/* ---- The side panel: every quick look slides in from the right (from the bottom on a phone),
   so the page it came from stays in view beside it. ---- */
dialog.quick::backdrop { background: rgba(9, 12, 22, 0.28); backdrop-filter: blur(2px); }
@media (min-width: 900px) {
  dialog.quick { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(700px, 58vw); height: 100vh; max-height: 100vh; border-radius: 24px 0 0 24px;
    box-shadow: -1px 0 0 var(--rule), -24px 0 60px rgba(9, 12, 22, .16); overscroll-behavior: contain; }
  dialog.quick[open] { animation: sheet-in .32s cubic-bezier(.2, .8, .2, 1); }
  dialog.quick .quick-inner { padding: 36px 40px 48px; }
}
@media (max-width: 899px) {
  dialog.quick { position: fixed; inset: auto 0 0 0; margin: 0; width: 100vw; max-width: 100vw; max-height: 90vh; border-radius: 24px 24px 0 0;
    padding-bottom: env(safe-area-inset-bottom); overscroll-behavior: contain; }
  dialog.quick[open] { animation: sheet-up .32s cubic-bezier(.2, .8, .2, 1); }
  dialog.quick::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; margin: 10px auto 0; background: var(--rule-strong); }
  dialog.quick .quick-inner { padding: 20px 20px 32px; }
}
@keyframes sheet-in { from { transform: translateX(48px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { dialog.quick[open] { animation: none; } }
svg.chart .bar-g[data-s] { cursor: pointer; }
.recap svg.chart .bar-g[data-s] { cursor: default; }

/* ---- Charts draw themselves in the first time they come into view ---- */
@media (prefers-reduced-motion: no-preference) {
  svg.chart.will-draw .bar, svg.chart.will-draw .ghost { transform: scaleY(0); transform-box: fill-box; transform-origin: 50% 100%; }
  svg.chart.drawn .bar, svg.chart.drawn .ghost { transform: none; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
  svg.chart.drawn .bar-g:nth-child(4n+1) .bar { transition-delay: .02s; } svg.chart.drawn .bar-g:nth-child(4n+2) .bar { transition-delay: .06s; }
  svg.chart.drawn .bar-g:nth-child(4n+3) .bar { transition-delay: .1s; } svg.chart.drawn .bar-g:nth-child(4n) .bar { transition-delay: .14s; }
  svg.chart.will-draw path.line:not(.line-cmp) { stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); }
  svg.chart.drawn path.line:not(.line-cmp) { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s cubic-bezier(.35, .1, .2, 1); }
  svg.chart.will-draw .area, svg.chart.will-draw .dot, svg.chart.will-draw .end-label, svg.chart.will-draw .peak-label, svg.chart.will-draw .line-cmp { opacity: 0; }
  svg.chart.drawn .area, svg.chart.drawn .dot, svg.chart.drawn .end-label, svg.chart.drawn .peak-label { opacity: 1; transition: opacity .5s ease .7s; }
  svg.chart.drawn .line-cmp { opacity: 1; transition: opacity .6s ease .1s; }
}

/* ---- The Atlas agent ---- */
.ag-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 34px 36px; margin: 8px 0 18px;
  border-radius: 28px; border: 1px solid color-mix(in srgb, var(--series1) 18%, var(--rule));
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--series1) 20%, var(--sheet)) 0%, transparent 55%),
              radial-gradient(120% 140% at 100% 100%, color-mix(in srgb, var(--series3) 18%, var(--sheet)) 0%, transparent 60%),
              linear-gradient(120deg, color-mix(in srgb, var(--series7) 8%, var(--sheet)), var(--sheet)); }
.ag-orb { position: relative; width: 84px; height: 84px; }
.ag-orb span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--series1) 55%, transparent); }
.ag-orb span:first-child { inset: 22px; border: 0; background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--series1) 40%, white), var(--series1) 60%, var(--series7));
  box-shadow: 0 6px 20px color-mix(in srgb, var(--series1) 45%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .ag-orb span:not(:first-child) { animation: ag-ping 2.8s cubic-bezier(.2, .6, .2, 1) infinite; opacity: 0; }
  .ag-orb span:nth-child(3) { animation-delay: 1.4s; }
  .ag-orb span:first-child { animation: ag-breathe 2.8s ease-in-out infinite; }
}
@keyframes ag-ping { 0% { transform: scale(.45); opacity: .9; } 100% { transform: scale(1.15); opacity: 0; } }
@keyframes ag-breathe { 50% { transform: scale(1.06); } }
.ag-eyebrow { margin: 0 0 6px; font: 600 0.75rem var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ag-head { margin: 0; font: 700 clamp(1.5rem, 3vw, 2.25rem)/1.15 var(--display); letter-spacing: -0.03em; text-wrap: balance; max-width: 26ch; }
.ag-sub { margin: 10px 0 0; color: var(--ink-2); max-width: 62ch; }
.ag-play { display: grid; justify-items: center; gap: 8px; text-decoration: none; color: var(--ink); font: 600 0.8125rem var(--text); }
.ag-play .ri-play svg { width: 20px; height: 20px; fill: var(--paper); margin-left: 2px; }
.ag-play:hover .ri-play { transform: scale(1.05); }
.ag-play .ri-play { transition: transform .2s ease; }
.ag-loop { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ag-loop li { display: flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--rule); font-size: 0.875rem; }
.ag-loop li b { font-weight: 650; } .ag-loop li span { color: var(--ink-3); font-size: 0.8125rem; }
.ag-loop li:not(:last-child)::after { content: "→"; margin-left: 10px; color: var(--ink-3); }
.ag-loop li:last-child::after { content: "↺"; margin-left: 10px; color: var(--series1); font-weight: 700; }
.ag-section { margin: 0 0 28px; }
.ag-h { margin: 0 0 12px; font: 700 1.25rem var(--display); letter-spacing: -0.02em; }
.ag-note { margin: -4px 0 14px; font-size: 0.875rem; color: var(--ink-2); }
.ag-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ag-card { padding: 22px 24px; border-radius: 22px; background: var(--sheet); border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px rgba(0, 0, 0, .05); display: grid; gap: 16px; }
.ag-card.doing { border-color: color-mix(in srgb, var(--series1) 40%, var(--rule)); }
@media (prefers-reduced-motion: no-preference) {
  .ag-card { animation: td-in .5s cubic-bezier(.2, .8, .2, 1) both; opacity: 0; transform: translateY(10px); }
  .ag-card:nth-child(2) { animation-delay: .07s; } .ag-card:nth-child(3) { animation-delay: .14s; } .ag-card:nth-child(4) { animation-delay: .21s; }
}
.ag-top { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.ag-t { margin: 2px 0 0; font: 650 1.1875rem/1.3 var(--display); letter-spacing: -0.01em; }
.ag-why { margin: 6px 0 0; color: var(--ink-2); line-height: 1.5; max-width: 70ch; }
.ag-aud { margin-left: 60px; }
.ag-k { margin: 0 0 8px; font: 600 0.75rem var(--text); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.ag-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 0.875rem;
  background: color-mix(in srgb, var(--series1) 9%, var(--sheet)); border: 1px solid color-mix(in srgb, var(--series1) 22%, var(--rule)); }
.ag-chip b { font-variant-numeric: tabular-nums; }
.ag-chip .icon { width: 12px; height: 12px; color: var(--ink-3); }
.ag-chip:hover { border-color: var(--series1); }
.ag-draft { margin-left: 60px; border-radius: 16px; background: color-mix(in srgb, var(--ink) 3.5%, var(--paper)); border: 1px solid var(--rule); }
.ag-draft summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; cursor: pointer; list-style: none; font-weight: 600; font-size: 0.9375rem; }
.ag-draft summary::-webkit-details-marker { display: none; }
.ag-draft summary .icon { width: 14px; height: 14px; transition: transform .2s ease; color: var(--ink-3); }
.ag-draft[open] summary .icon { transform: rotate(90deg); }
.ag-subj { margin: 0 16px 10px; font-weight: 600; } .ag-subj span { font-weight: 500; color: var(--ink-3); margin-right: 6px; }
.ag-body { margin: 0 16px; padding: 14px 16px; border-radius: 12px; background: var(--sheet); border: 1px solid var(--rule-soft); white-space: pre-wrap; font: 0.9375rem/1.55 var(--text); max-height: 340px; overflow: auto; }
.ag-draft-foot { display: flex; align-items: center; gap: 10px; padding: 12px 16px 14px; }
.ag-copied { font-size: 0.8125rem; color: var(--good-ink); font-weight: 600; }
.ag-actions { margin-left: 60px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ag-form { margin: 0; display: inline; }
.ag-later { color: var(--ink-3); }
.ag-empty { display: flex; gap: 12px; align-items: center; padding: 22px 24px; border-radius: 20px; background: color-mix(in srgb, var(--good) 8%, var(--sheet)); border: 1px solid color-mix(in srgb, var(--good) 22%, var(--rule)); }
.ag-empty p { margin: 0; } .ag-empty .icon { width: 24px; height: 24px; color: var(--good); flex: none; }
.ag-empty.soft { background: var(--sheet); border-color: var(--rule); color: var(--ink-2); }
.ag-two { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.ag-outcomes { list-style: none; margin: 0; padding: 0; border-radius: 20px; background: var(--sheet); border: 1px solid var(--rule); }
.ag-outcomes li { display: grid; grid-template-columns: 12px 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; }
.ag-outcomes li + li { border-top: 1px solid var(--rule-soft); }
.ag-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); }
.ag-dot.worked { background: var(--good); } .ag-dot.quiet { background: var(--critical); }
.ag-o-t { margin: 0; font-weight: 600; } .ag-o-d { margin: 2px 0 0; font-size: 0.8125rem; color: var(--ink-3); }
.ag-o-v { display: grid; justify-items: end; gap: 3px; font-variant-numeric: tabular-nums; }
.ag-o-v strong { font: 700 1.0625rem var(--display); } .ag-o-v > span:not(.rc-chip) { font-size: 0.75rem; color: var(--ink-3); }
.ag-o-v .rc-chip { font-size: 0.75rem; padding: 2px 8px; }
.ag-checks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.ag-checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 16px; background: var(--sheet); border: 1px solid var(--rule); }
.ag-checks li .icon { width: 20px; height: 20px; margin-top: 1px; }
.ag-checks li.ok .icon { color: var(--good); } .ag-checks li.no .icon { color: var(--warning-mark); }
.ag-checks p { margin: 0; font-weight: 600; } .ag-checks span { font-size: 0.875rem; color: var(--ink-2); }
@media (max-width: 860px) {
  .ag-hero { grid-template-columns: 1fr; padding: 26px 22px; gap: 18px; }
  .ag-orb { width: 64px; height: 64px; } .ag-orb span:first-child { inset: 16px; }
  .ag-play { display: inline-flex; align-items: center; gap: 12px; justify-self: start; }
  .ag-loop { display: grid; grid-template-columns: 1fr 1fr; }
  .ag-loop li { padding: 8px 12px; flex-direction: column; gap: 0; }
  .ag-loop li::after { display: none; }
  .ag-two { grid-template-columns: 1fr; }
  .ag-aud, .ag-draft, .ag-actions { margin-left: 0; }
  .ag-card { padding: 18px; }
}
.ag-strip { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding: 12px 16px 12px 12px; border-radius: 18px; text-decoration: none; color: var(--ink);
  background: var(--sheet); border: 1px solid color-mix(in srgb, var(--series1) 22%, var(--rule)); box-shadow: 0 1px 2px rgba(0, 0, 0, .03); transition: box-shadow .2s ease, transform .2s ease; }
.ag-strip:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .07); transform: translateY(-1px); }
.ag-orb.small { width: 36px; height: 36px; flex: none; } .ag-orb.small span:first-child { inset: 10px; }
.ag-strip-t { flex: 1; min-width: 0; font-size: 0.9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-strip-t b { font-weight: 700; margin-right: 6px; }
.ag-strip-first { color: var(--ink-2); }
.ag-strip-go { display: inline-flex; align-items: center; gap: 4px; font: 600 0.875rem var(--text); color: var(--accent); white-space: nowrap; }
.ag-strip-go .icon { width: 14px; height: 14px; }
@media (max-width: 640px) { .ag-strip-go { display: none; } .ag-strip-t { white-space: normal; } }
.ag-card.ag-gone { opacity: 0; transform: translateX(24px) scale(.98); padding-top: 0; padding-bottom: 0; margin: 0; border-width: 0; overflow: hidden;
  transition: opacity .25s ease, transform .3s ease, height .4s cubic-bezier(.2, .8, .2, 1) .1s, padding .4s ease .1s; }
.ag-subj em { font-style: normal; font-weight: 500; color: var(--ink-3); margin: 0 4px; }

/* Where the money went, on a phone: the same steps as a list, each bar where it falls. */
.wf-list { display: none; list-style: none; margin: 0; padding: 0; }
@media (max-width: 600px) {
  .wf-svg { display: none; }
  .wf-list { display: grid; gap: 12px; margin: 4px 0 12px; }
  .wf-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 0.875rem; }
  .wf-list .wf-k { color: var(--ink-2); } .wf-list .wf-v { font-variant-numeric: tabular-nums; font-weight: 600; }
  .wf-list .wf-t .wf-k, .wf-list .wf-r .wf-k, .wf-list .wf-n .wf-k { color: var(--ink); font-weight: 650; }
  .wf-track { grid-column: 1 / -1; position: relative; height: 10px; border-radius: 5px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
  .wf-track i { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 5px; min-width: 2px; }
  .wf-t .wf-track i { background: var(--series1); } .wf-l .wf-track i { background: var(--series2); }
  .wf-r .wf-track i { background: var(--series3); } .wf-n .wf-track i { background: var(--critical); }
  .inline-cost { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
  .inline-cost input[name="cogs"], .inline-cost input[type="date"] { width: 100%; }
  .inline-cost input[type="date"] { grid-column: 1 / -1; }
  .inline-cost button { grid-column: 1 / -1; width: 100%; }
}
.ag-record { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.8125rem; color: var(--ink-2); }
.ag-record span:not(:last-child) { padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--sheet) 70%, transparent); border: 1px solid var(--rule); }
.ag-record b { font-variant-numeric: tabular-nums; color: var(--ink); }

/* Wide tables on a phone: a card per row, every value labelled with its column. */
@media (max-width: 600px) {
  table.as-cards { min-width: 0 !important; width: 100%; }
  table.as-cards thead { display: none; }
  table.as-cards, table.as-cards tbody { display: block; }
  table.as-cards tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding: 14px 4px; border-bottom: 1px solid var(--rule); }
  table.as-cards td, table.as-cards th { display: block; padding: 0; border: 0; text-align: left !important; white-space: normal; min-width: 0; }
  table.as-cards tr > :first-child { grid-column: 1 / -1; font-weight: 600; }
  table.as-cards td, table.as-cards th[scope="row"] { background: transparent !important; }
  table.as-cards [data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: 0.75rem; font-weight: 500; color: var(--ink-3); margin-bottom: 2px; }
  table.as-cards [data-label=""]::before { display: none; }
  .table-wrap:has(table.as-cards), .table-scroll:has(table.as-cards) { overflow-x: visible; }
}
.ag-card { scroll-margin-top: 80px; }
.ag-card:target { border-color: var(--series1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--series1) 22%, transparent), 0 10px 30px rgba(0, 0, 0, .06); }
.filter-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; font-size: 0.875rem;
  background: color-mix(in srgb, var(--series1) 8%, var(--sheet)); border: 1px solid color-mix(in srgb, var(--series1) 22%, var(--rule)); }
.filter-chip .icon { width: 16px; height: 16px; color: var(--series1); }
.filter-chip a { font-weight: 600; }
.banner.warn { border-left-color: var(--warning); } .banner.warn .icon { color: var(--warning-mark); }

/* Following up: what happened after each action */
.fu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fu { display: grid; grid-template-columns: 36px 1fr auto; gap: 14px; align-items: start; padding: 16px 18px; border-radius: 18px; background: var(--sheet); border: 1px solid var(--rule); }
.fu.due { border-color: color-mix(in srgb, var(--warning) 45%, var(--rule)); }
.fu-dot { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); }
.fu-dot .icon { width: 18px; height: 18px; }
.fu-good .fu-dot { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good-ink); }
.fu-warn .fu-dot { background: color-mix(in srgb, var(--warning) 18%, transparent); color: var(--warning-mark); }
.fu-info .fu-dot { color: var(--series1); }
.fu-k { margin: 0; font: 600 0.75rem var(--text); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.fu-t { margin: 2px 0 0; font: 650 1rem/1.3 var(--display); }
.fu-r { margin: 4px 0 0; color: var(--ink-2); font-size: 0.9375rem; }
.fu-bar { display: block; margin-top: 10px; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 7%, transparent); overflow: hidden; max-width: 360px; }
.fu-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--good); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.fu-still { margin-top: 8px; font-size: 0.875rem; } .fu-still summary { cursor: pointer; color: var(--ink-2); }
.fu-still p { margin: 6px 0 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .fu { grid-template-columns: 32px 1fr; } .fu-close { grid-column: 2; } }

/* Overview: filters first, then today's three, then the rest */
.overview-filters { position: sticky; top: 56px; z-index: 5; margin: 0 0 16px; padding: 8px 0; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); }
.overview-filters .period-bar { margin: 0; }
.ag-today { margin: 0 0 18px; padding: 18px 20px; border-radius: 22px; background: var(--sheet);
  border: 1px solid color-mix(in srgb, var(--series1) 22%, var(--rule)); box-shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 10px 30px rgba(0, 0, 0, .04); }
.ag-today-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.ag-today-head h2 { margin: 0; font: 700 1.25rem var(--display); letter-spacing: -0.02em; }
.ag-since { margin: 2px 0 0; font-size: 0.875rem; color: var(--ink-2); } .ag-since b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ag-today-all { display: inline-flex; align-items: center; gap: 4px; font: 600 0.875rem var(--text); color: var(--accent); text-decoration: none; white-space: nowrap; }
.ag-today-all .icon { width: 14px; height: 14px; }
.ag-today-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.ag-today-list a { display: grid; grid-template-columns: 28px 1fr 16px; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, var(--ink) 3%, var(--paper)); border: 1px solid var(--rule-soft); transition: border-color .15s ease, transform .15s ease; }
.ag-today-list a:hover { border-color: var(--series1); transform: translateX(2px); }
.ag-n { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font: 700 0.875rem var(--display); background: color-mix(in srgb, var(--series1) 12%, transparent); color: var(--series1); }
.td-check .ag-n { background: color-mix(in srgb, var(--warning) 18%, transparent); color: var(--warning-mark); }
.td-good .ag-n { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good-ink); }
.ag-today-t { font-weight: 600; min-width: 0; } .ag-today-list .icon { width: 14px; height: 14px; color: var(--ink-3); }
@media (max-width: 640px) { .ag-today-head { grid-template-columns: auto 1fr; } .ag-today-all { grid-column: 1 / -1; } .overview-filters { position: static; } }
/* What to do first (plan-views.ts): the plan's moves, each with its reasons, its steps and how it's measured */
.ag-today-t .td-why { display: block; font-weight: 400; }
.gp-well-line { display: flex; gap: 8px; align-items: flex-start; margin: 12px 2px 0; font-size: 0.875rem; line-height: 1.45; color: var(--ink-2); }
.gp-well-line .icon, .gp-well h3 .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--good-ink); }
.gp > .ag-note { max-width: 72ch; line-height: 1.5; margin-top: 0; } .gp > .gp-season { color: var(--ink); }
.gp-moves { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gp-move { padding: 16px 18px; border-radius: 16px; background: var(--sheet); border: 1px solid var(--rule); scroll-margin-top: 80px; }
.gp-move:target { border-color: var(--series1); box-shadow: 0 0 0 3px var(--ring); }
.gp-top { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.gp-top h3 { margin: 3px 0 0; font: 700 1.0625rem/1.35 var(--display); letter-spacing: -0.01em; text-wrap: pretty; }
.gp-why, .gp-steps { margin: 10px 0 0 40px; padding: 0 0 0 18px; display: grid; gap: 4px; font-size: 0.9375rem; line-height: 1.5; max-width: 72ch; }
.gp-why { color: var(--ink-2); }
.gp-label { display: block; margin: 12px 0 0 40px; font: 600 0.75rem var(--text); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }
.gp-measure { margin: 12px 0 0 40px; font-size: 0.9375rem; line-height: 1.5; max-width: 72ch; }
.gp-measure .gp-label { display: inline; margin: 0 6px 0 0; }
.gp-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: 4px 0 0 40px; font: 600 0.875rem var(--text); color: var(--accent); text-decoration: none; }
.gp-link .icon { width: 14px; height: 14px; }
.gp-well { margin: 14px 0 0; padding: 14px 18px; border-radius: 16px; background: color-mix(in srgb, var(--good) 7%, var(--sheet)); border: 1px solid color-mix(in srgb, var(--good) 22%, var(--rule)); }
.gp-well h3 { display: flex; gap: 8px; align-items: center; margin: 0; font: 700 1rem var(--display); }
.gp-well ul { margin: 8px 0 0; padding: 0 0 0 42px; display: grid; gap: 4px; font-size: 0.9375rem; line-height: 1.5; max-width: 72ch; }
@media (max-width: 640px) { .gp-why, .gp-steps, .gp-label, .gp-measure, .gp-link { margin-left: 0; } .gp-well ul { padding-left: 18px; } }
.coverage .cov-steps { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.coverage .cov-steps li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--rule); }
.coverage .cov-steps li .icon { width: 18px; height: 18px; margin-top: 2px; }
.coverage .cov-steps li.ok .icon { color: var(--good); } .coverage .cov-steps li.no .icon { color: var(--warning-mark); }
.coverage .cov-steps p { margin: 0; font-weight: 600; } .coverage .cov-steps span { font-size: 0.8125rem; color: var(--ink-2); }
.cov-orders { margin: 0 0 8px; }

/* ---------------------------------------------------------------- Ask Atlas
   The analyst lives in the Agent's world: the same breathing orb, the same soft blue-green
   wash as the Agent hero, rounded sheets and pill chips. The panel floats in from the right
   (docked beside the page on wide screens, over it elsewhere, full screen on phones). Your
   question is a note handed over on the right; Atlas's answer is a sheet on the left, with
   the reasoning on ruled lines and the figure check as a badge at the foot. */

/* the button in the top bar */
.ask-btn { display: inline-flex; align-items: center; gap: 8px; height: 32px; min-height: 0; padding: 0 14px 0 8px; border-radius: 999px; white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--series1) 26%, var(--rule)); color: var(--ink); font: 600 0.8125rem var(--text); cursor: pointer;
  background: linear-gradient(120deg, color-mix(in srgb, var(--series1) 9%, var(--sheet)), color-mix(in srgb, var(--series3) 7%, var(--sheet)));
  box-shadow: var(--shadow-sm); transition: border-color .2s ease, box-shadow .2s ease; }
.ask-btn:hover { border-color: color-mix(in srgb, var(--series1) 55%, var(--rule)); box-shadow: 0 4px 14px color-mix(in srgb, var(--series1) 18%, transparent);
  background: linear-gradient(120deg, color-mix(in srgb, var(--series1) 13%, var(--sheet)), color-mix(in srgb, var(--series3) 10%, var(--sheet))); }
.ag-orb.tiny { width: 18px; height: 18px; flex: none; } .ag-orb.tiny span:first-child { inset: 4px; box-shadow: none; }
.ag-orb.tiny span:not(:first-child) { border-width: 1.5px; }
@media (max-width: 600px) { .ask-btn > span:last-child { display: none; } .ask-btn { padding: 0 7px; } }

/* the panel */
.ask { position: fixed; z-index: 60; top: 10px; right: 10px; bottom: 10px; width: min(468px, calc(100vw - 20px)); display: flex; flex-direction: column;
  border-radius: 26px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--series1) 14%, var(--rule));
  background: radial-gradient(90% 260px at 0% 0%, color-mix(in srgb, var(--series1) 13%, var(--sheet)) 0%, transparent 70%),
              radial-gradient(80% 240px at 100% 0%, color-mix(in srgb, var(--series3) 11%, var(--sheet)) 0%, transparent 70%), var(--sheet);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 24px 64px rgba(16, 24, 40, .16); }
.ask-scrim { position: fixed; inset: 0; z-index: 59; background: rgba(20, 22, 30, 0.2); }
@media (min-width: 1600px) { .ask-scrim { display: none; } html.ask-on .content { padding-right: 488px; transition: padding-right .3s var(--ease); } }
@media (max-width: 640px) { .ask { inset: 0; width: 100%; border-radius: 0; border: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .ask:not([hidden]) { animation: ask-in .38s cubic-bezier(.16, 1, .3, 1); }
  .ask-scrim:not([hidden]) { animation: ask-fade .3s ease; }
  .ask.closing { animation: ask-out .2s ease forwards; }
}
@keyframes ask-in { from { transform: translateX(28px) scale(.985); opacity: 0; } }
@keyframes ask-out { to { transform: translateX(20px); opacity: 0; } }
@keyframes ask-fade { from { opacity: 0; } }
.ask-in { display: flex; flex-direction: column; min-height: 0; height: 100%; }

.ask-head { display: flex; align-items: center; gap: 12px; padding: 16px 14px 12px 18px; }
.ask-orb { width: 42px; height: 42px; flex: none; } .ask-orb span:first-child { inset: 11px; }
.ask.thinking .ask-orb span:not(:first-child) { animation-duration: 1.2s !important; }
.ask-title { flex: 1; min-width: 0; }
.ask-head h2 { margin: 0; font: 700 1.25rem/1.1 var(--display); letter-spacing: -0.02em; }
.ask-ctx { display: flex; gap: 4px; margin: 6px 0 0; overflow: hidden; flex-wrap: nowrap; mask-image: linear-gradient(90deg, #000 85%, transparent); }
.ask-ctx span { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 500; color: var(--ink-2);
  background: color-mix(in srgb, var(--sheet) 70%, transparent); border: 1px solid var(--rule); }
.ask-icon { width: 36px; height: 36px; min-height: 0; padding: 0; flex: none; border-radius: 999px; display: grid; place-items: center; box-shadow: none;
  background: color-mix(in srgb, var(--sheet) 70%, transparent); color: var(--ink-2); border: 1px solid var(--rule); }
.ask-icon:hover { background: var(--sheet); color: var(--ink); border-color: var(--rule-strong); }
.ask-icon svg { width: 16px; height: 16px; }

.ask-body { flex: 1; overflow-y: auto; padding: 8px 18px 16px; overscroll-behavior: contain; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { .ask-body { scroll-behavior: auto; } }
.ask-hello { margin: 18px 0 18px; }
.ask-hi { margin: 0; font: 700 1.625rem/1.15 var(--display); letter-spacing: -0.025em; text-wrap: balance; }
.ask-sub { margin: 8px 0 0; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.5; max-width: 40ch; }
.ask-setup-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-weight: 600; color: var(--accent); text-decoration: none; }
.ask-setup-link .icon { width: 12px; height: 12px; }
.ask-k { margin: 6px 0 8px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-3); }
.ask-focus { margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; font-size: 0.875rem; line-height: 1.45; color: var(--ink-2);
  background: color-mix(in srgb, var(--series1) 7%, var(--sheet)); border-left: 3px solid var(--series1); }
.ask-sugs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ask-sug { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 0; padding: 12px 14px; border-radius: 16px; text-align: left; box-shadow: none;
  background: var(--sheet); color: var(--ink); border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); font: 500 0.9rem/1.4 var(--text);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
button.ask-sug:hover { background: var(--sheet); border-color: color-mix(in srgb, var(--series1) 40%, var(--rule)); transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 24, 40, .07); }
.ask-sug > span:nth-child(2) { flex: 1; }
.ask-sug > .icon { width: 12px; height: 12px; color: var(--ink-3); flex: none; }
.ask-sug-i { width: 28px; height: 28px; flex: none; border-radius: 9px; display: grid; place-items: center; color: var(--series1);
  background: color-mix(in srgb, var(--series1) 12%, transparent); }
.ask-sug-i svg { width: 13px; height: 13px; }
.ask-sugs.preview .ask-sug { color: var(--ink-2); border-style: dashed; }
@media (prefers-reduced-motion: no-preference) {
  .ask-sugs li, .ask-hello { animation: ask-rise .45s cubic-bezier(.2, .8, .2, 1) both; }
  .ask-sugs li:nth-child(2) { animation-delay: .05s; } .ask-sugs li:nth-child(3) { animation-delay: .1s; }
  .ask-sugs li:nth-child(4) { animation-delay: .15s; } .ask-sugs li:nth-child(5) { animation-delay: .2s; }
}
.ask-skel { display: grid; gap: 10px; padding-top: 22px; }
.ask-skel i { display: block; height: 14px; border-radius: 8px; background: linear-gradient(90deg, var(--rule-soft), var(--rule), var(--rule-soft)); background-size: 200% 100%; }
.ask-skel i:nth-child(1) { width: 70%; height: 26px; } .ask-skel i:nth-child(2) { width: 90%; } .ask-skel i:nth-child(3) { width: 100%; height: 48px; border-radius: 16px; }
.ask-skel i:nth-child(4) { width: 100%; height: 48px; border-radius: 16px; }
@media (prefers-reduced-motion: no-preference) { .ask-skel i { animation: ask-shim 1.2s linear infinite; } }
@keyframes ask-shim { to { background-position: -200% 0; } }

/* the conversation */
.ans { margin: 4px 0 26px; }
.ans-q { margin: 0 0 12px auto; max-width: 86%; width: fit-content; padding: 10px 14px; border-radius: 18px 18px 6px 18px; font-size: 0.9375rem; font-weight: 500; line-height: 1.4;
  background: var(--ink); color: var(--sheet); }
.ans-q p { margin: 0; }
.ans-q .ans-about { margin-bottom: 4px; font-size: 0.8125rem; font-weight: 400; opacity: .72; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ans-card { padding: 18px 18px 12px; border-radius: 20px; background: var(--sheet); border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 10px 28px rgba(16, 24, 40, .06); }
@media (prefers-reduced-motion: no-preference) { .ans.ans-new .ans-card { animation: ask-rise .45s cubic-bezier(.2, .8, .2, 1) both; } .ans.ans-new .ans-q { animation: ask-fade .25s ease both; } }
.ans-verdict { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }
.ans-dot { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; }
.ans-dot .icon { width: 14px; height: 14px; }
.v-good .ans-dot { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good-ink); }
.v-watch .ans-dot { background: color-mix(in srgb, var(--warning) 20%, transparent); color: var(--warning-mark); }
.v-act .ans-dot { background: color-mix(in srgb, var(--serious) 17%, transparent); color: var(--serious); }
.v-unclear .ans-dot, .v-info .ans-dot { background: color-mix(in srgb, var(--series1) 13%, transparent); color: var(--series1); }
.ans-head { margin: 0 0 12px; font: 700 1.3125rem/1.22 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.ans-points { list-style: none; margin: 0; padding: 0; }
.ans-points > li { padding: 11px 0; border-top: 1px solid var(--rule-soft); }
.ans-points p { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--ink); }
.rules { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rule { display: contents; }
.rule summary { display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer; padding: 3px 10px 3px 4px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 500; color: var(--ink-2); background: var(--paper); border: 1px solid var(--rule); transition: border-color .15s ease, background .15s ease; }
.rule summary::-webkit-details-marker { display: none; }
.rule summary b { display: inline-grid; place-items: center; min-width: 22px; height: 18px; padding: 0 5px; border-radius: 999px; font-weight: 700; font-size: 0.6875rem;
  color: var(--series1); background: color-mix(in srgb, var(--series1) 12%, transparent); }
.rule summary:hover { border-color: var(--rule-strong); color: var(--ink); }
.rule[open] summary { background: var(--mark-soft); border-color: color-mix(in srgb, var(--mark) 60%, var(--rule)); color: var(--ink); }
.rule p { flex-basis: 100%; margin: 2px 0 2px; padding: 10px 12px; border-radius: 12px; background: var(--paper); border-left: 3px solid var(--mark);
  font-size: 0.8125rem; line-height: 1.5; color: var(--ink-2); }
.ans h4 { margin: 0 0 6px; font-size: 0.8125rem; font-weight: 650; color: var(--ink-3); }
.ans-do { margin: 14px 0 0; padding: 12px 12px 4px; border-radius: 16px; background: color-mix(in srgb, var(--series1) 6%, var(--paper)); }
.ans-do ol { margin: 0; padding: 0; list-style: none; counter-reset: do; }
.ans-do li { counter-increment: do; display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; position: relative; padding: 8px 0 10px 32px; }
.ans-do li + li { border-top: 1px solid color-mix(in srgb, var(--ink) 6%, transparent); }
.ans-do li::before { content: counter(do); position: absolute; left: 0; top: 8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font: 700 0.75rem var(--text); background: var(--ink); color: var(--sheet); }
.ans-do li > div { flex: 1 1 200px; }
.ans-do-t { margin: 0; font-weight: 600; font-size: 0.9375rem; line-height: 1.35; }
.ans-do-w { margin: 3px 0 0; font-size: 0.875rem; color: var(--ink-2); line-height: 1.45; }
.ans-go { display: inline-flex; align-items: center; gap: 4px; align-self: center; padding: 6px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; white-space: nowrap;
  color: var(--ink); text-decoration: none; background: var(--sheet); border: 1px solid color-mix(in srgb, var(--series1) 25%, var(--rule)); }
.ans-go:hover { border-color: var(--series1); }
.ans-go .icon { width: 11px; height: 11px; color: var(--ink-3); }
.ans-unknown { margin: 14px 0 0; }
.ans-unknown ul { margin: 0; padding-left: 18px; font-size: 0.875rem; color: var(--ink-2); line-height: 1.5; }
.ans section { margin-bottom: 0; }
mark.unverified { background: none; color: inherit; text-decoration: underline wavy var(--serious) 1.5px; text-underline-offset: 3px; }
.ans-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule-soft); display: grid; gap: 8px; font-size: 0.8125rem; color: var(--ink-2); }
.ans-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; color: var(--ink-2);
  background: var(--paper); border: 1px solid var(--rule); }
.badge .icon { width: 13px; height: 13px; }
.badge.ok { color: var(--good-ink); background: color-mix(in srgb, var(--good) 9%, var(--sheet)); border-color: color-mix(in srgb, var(--good) 25%, var(--rule)); }
.badge.warn { color: var(--warning-mark); background: color-mix(in srgb, var(--warning) 12%, var(--sheet)); border-color: color-mix(in srgb, var(--warning) 35%, var(--rule)); }
.ans-steps summary { cursor: pointer; color: var(--ink-2); font-weight: 500; width: fit-content; }
.ans-steps summary:hover { color: var(--ink); }
.ans-why-conf { margin: 8px 0 4px; }
.ans-steps ol { margin: 6px 0 4px; padding-left: 20px; display: grid; gap: 3px; }
.ans-steps li.failed { color: var(--ink-3); }
.ans-steps code { font-size: 0.75rem; word-break: break-word; color: var(--ink-3); }
.ans-fb { display: flex; align-items: center; gap: 4px; }
.fb-btn { width: 30px; height: 30px; min-height: 0; padding: 0; border-radius: 999px; display: grid; place-items: center; box-shadow: none;
  background: transparent; color: var(--ink-3); border: 0; }
.fb-btn svg { width: 15px; height: 15px; }
.fb-btn:hover { background: var(--tint); color: var(--ink); }
.fb-btn[aria-pressed="true"] { background: var(--ink); color: var(--sheet); }
.ans-cost { margin-left: auto; font-size: 0.75rem; color: var(--ink-3); }
.ans-fail { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 6px; font-size: 0.9375rem; }
.ans-fail .icon { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--serious); }
.ans-next, .ag-ask-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ask-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 0; padding: 7px 12px; border-radius: 999px; text-align: left; box-shadow: none;
  font: 500 0.8125rem/1.3 var(--text); color: var(--ink); background: color-mix(in srgb, var(--series1) 8%, var(--sheet));
  border: 1px solid color-mix(in srgb, var(--series1) 20%, var(--rule)); transition: border-color .15s ease, background .15s ease; }
button.ask-pill:hover { border-color: var(--series1); background: color-mix(in srgb, var(--series1) 12%, var(--sheet)); }
.ask-pill svg { width: 11px; height: 11px; color: var(--series1); flex: none; }
.ask-pill.off { color: var(--ink-2); background: var(--sheet); border-style: dashed; }

/* working: the question, then each step as it happens */
.ask-live { margin: 4px 0 20px; }
.ask-steps { list-style: none; margin: 0; padding: 4px 0 0 4px; }
.ask-step { position: relative; padding: 6px 0 6px 26px; font-size: 0.875rem; color: var(--ink-2); }
.ask-step::after { content: ""; position: absolute; left: 7px; top: 22px; bottom: -6px; width: 1.5px; background: var(--rule); }
.ask-step:last-child::after { display: none; }
.ask-step::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; box-sizing: border-box;
  border: 2px solid var(--rule-strong); background: var(--sheet); }
.ask-step.done::before { border: 0; background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.ask-step.now { color: var(--ink); font-weight: 500; }
.ask-step.now::before { border-color: var(--series1) var(--series1) transparent var(--series1); }
.ask-step.failed { color: var(--ink-3); }
.ask-step.failed::before { border-color: var(--rule-strong); background: var(--paper); }
@media (prefers-reduced-motion: no-preference) {
  .ask-step.now::before { animation: spin .8s linear infinite; }
  .ask-step { animation: ask-fade .25s ease both; }
  .ask-step.done::before { animation: ask-pop .25s cubic-bezier(.2, 1.4, .4, 1); }
}
@keyframes ask-pop { from { transform: scale(.4); } }
@keyframes ask-rise { from { opacity: 0; transform: translateY(8px); } }

/* the question box */
.ask-foot { padding: 10px 14px 14px; background: linear-gradient(to top, var(--sheet) 70%, color-mix(in srgb, var(--sheet) 0%, transparent)); }
.ask-box { position: relative; display: flex; align-items: flex-end; gap: 8px; padding: 8px 8px 8px 14px; border-radius: 20px; background: var(--raised);
  border: 1px solid var(--rule-strong); box-shadow: 0 2px 10px rgba(16, 24, 40, .05); transition: border-color .15s ease, box-shadow .15s ease; }
.ask-box:focus-within { border-color: color-mix(in srgb, var(--series1) 60%, var(--rule)); box-shadow: 0 0 0 4px var(--ring); }
.ask-box > div { flex: 1; min-width: 0; }
.ask-form textarea { display: block; width: 100%; resize: none; min-height: 24px; max-height: 160px; margin: 6px 0; padding: 0; border: 0; outline: none; background: transparent;
  color: var(--ink); font: 0.9375rem/1.5 var(--text); }
.ask-form textarea::placeholder { color: var(--ink-3); }
.ask-send { flex: none; width: 36px; height: 36px; min-height: 0; padding: 0; border-radius: 999px; display: grid; place-items: center; border: 0;
  background: var(--ink); color: var(--sheet); box-shadow: none; transition: transform .15s ease, opacity .15s ease; }
.ask-send:hover { transform: scale(1.06); background: var(--ink); }
.ask-send:disabled { opacity: .35; transform: none; }
.ask-send svg { width: 16px; height: 16px; }
.ask-under { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.ask-tabs { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: var(--tint); }
.ask-tabs button { min-height: 0; height: 26px; padding: 0 11px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); font: 600 0.75rem var(--text); box-shadow: none; }
.ask-tabs button:hover { background: transparent; color: var(--ink); }
.ask-tabs button[aria-selected="true"] { background: var(--seg-on); color: var(--ink); box-shadow: var(--shadow-sm); }
.ask-spend { font-size: 0.75rem; color: var(--ink-3); white-space: nowrap; }
.ask-who { display: inline-flex; margin-right: auto; }
.ask-who select { min-height: 0; height: 26px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--tint); color: var(--ink-2); font: 600 0.75rem var(--text); }
.ask-who select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ans-by { margin: 0 0 4px; font-size: 0.75rem; font-weight: 600; color: var(--ink-3); }
.ask-decide { border: 0; margin: 4px 0; padding: 0; min-width: 0; }
.ask-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ask-kind input { position: absolute; opacity: 0; pointer-events: none; }
.ask-kind span { display: inline-block; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--rule); font-size: 0.8125rem; font-weight: 500; cursor: pointer; background: var(--sheet); }
.ask-kind input:checked + span { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.ask-kind input:focus-visible + span { box-shadow: 0 0 0 3px var(--ring); }
.ask-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.ask-fields label { display: grid; gap: 4px; font-size: 0.75rem; font-weight: 600; color: var(--ink-3); }
.ask-fields input { width: 100%; min-width: 0; min-height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--rule-strong); background: var(--sheet); color: var(--ink); font: 0.875rem var(--text); }

/* the Agent page's Ask bar */
.ag-ask { margin: -10px 0 28px; }
.ag-ask-bar { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 0; padding: 12px 16px 12px 12px; border-radius: 20px; text-align: left; cursor: text;
  color: var(--ink); background: var(--sheet); border: 1px solid color-mix(in srgb, var(--series1) 22%, var(--rule));
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 8px 24px rgba(16, 24, 40, .05); transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease; }
.ag-ask-bar:hover { background: var(--sheet); border-color: color-mix(in srgb, var(--series1) 50%, var(--rule)); box-shadow: 0 10px 28px rgba(16, 24, 40, .09); transform: translateY(-1px); }
.ag-ask-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ag-ask-t b { font: 700 1.0625rem/1.2 var(--display); letter-spacing: -0.01em; }
.ag-ask-t span { font-size: 0.875rem; color: var(--ink-2); }
.ag-ask-k { flex: none; padding: 3px 7px; border-radius: 6px; font: 600 0.6875rem var(--text); color: var(--ink-3); background: var(--paper); border: 1px solid var(--rule); }
@media (max-width: 600px) { .ag-ask-k { display: none; } }
.ag-ask-setup { margin: 10px 0 0; } .ag-ask-setup a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--accent); text-decoration: none; }
.ag-ask-setup .icon { width: 12px; height: 12px; }
.ag-ask-recent { margin-top: 12px; font-size: 0.875rem; }
.ag-ask-recent summary { cursor: pointer; color: var(--ink-2); width: fit-content; }
.ag-ask-recent ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.ag-ask-recent button { display: flex; justify-content: space-between; gap: 12px; width: 100%; min-height: 0; padding: 9px 12px; border-radius: 12px; text-align: left; box-shadow: none;
  background: transparent; border: 0; color: var(--ink); font: 500 0.875rem var(--text); }
.ag-ask-recent button:hover { background: var(--tint); }
.ag-ask-when { flex: none; color: var(--ink-3); font-weight: 400; font-size: 0.8125rem; }
.ag-askwhy { margin-left: auto; }
.ask-this { margin: 6px 0 0 -6px; }

/* Ask Atlas settings in Connections */
#atlas-ai { margin-bottom: 16px; }
#atlas-ai .ai-settings { display: grid; justify-content: start; grid-template-columns: auto minmax(0, 260px); gap: 8px 12px; align-items: center; margin: 12px 0; }
#atlas-ai .ai-settings button, #atlas-ai .ai-settings p { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 600px) { #atlas-ai .ai-settings { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Ask Atlas, glass layer
   Apple's model: the panel is the floating functional layer, so it is glass (blur,
   saturation, a translucent fill and a hairline highlight); what's inside it is content, so
   answers sit on solid sheets. The AI is marked the way Apple marks intelligence: a
   multicolour orb and a soft spectrum glow around the panel's edge that brightens while
   Atlas works. Reduce transparency, more contrast and reduced motion all fall back cleanly. */
@property --ai-a { syntax: "<angle>"; initial-value: 0deg; inherits: true; }
:root {
  --ai-spectrum: conic-gradient(from var(--ai-a), #3d8bff, #7a5cff, #c45cf0, #ff5f9e, #ff8a3d, #ffc93c, #36c6a8, #3d8bff);
  --glass: rgba(252, 252, 250, 0.72); --glass-edge: rgba(255, 255, 255, 0.7); --glass-line: rgba(28, 27, 25, 0.08);
  --ai-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Schibsted", ui-sans-serif, system-ui, sans-serif;
  --ai-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --bubble: linear-gradient(135deg, #2f7cf6, #5b5ff2);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --glass: rgba(30, 30, 32, 0.7); --glass-edge: rgba(255, 255, 255, 0.14); --glass-line: rgba(255, 255, 255, 0.08); } }
:root[data-theme="dark"] { --glass: rgba(30, 30, 32, 0.7); --glass-edge: rgba(255, 255, 255, 0.14); --glass-line: rgba(255, 255, 255, 0.08); }

/* the orb: a slowly turning spectrum under a glassy highlight */
.ai-orb { position: relative; display: inline-block; flex: none; width: 40px; height: 40px; border-radius: 50%; isolation: isolate; }
.ai-orb::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ai-spectrum); filter: blur(3px) saturate(1.2); }
.ai-orb i { position: absolute; inset: 14%; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .35) 34%, rgba(255, 255, 255, 0) 60%),
              radial-gradient(circle at 70% 75%, rgba(80, 60, 220, .55), rgba(80, 60, 220, 0) 60%), rgba(255, 255, 255, .28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.ai-orb.sm { width: 18px; height: 18px; } .ai-orb.sm::before { filter: blur(1.5px); } .ai-orb.sm i { inset: 18%; }
.ai-orb.md { width: 34px; height: 34px; }
.ai-orb.lg { width: 44px; height: 44px; }
@media (prefers-reduced-motion: no-preference) {
  .ai-orb::before { animation: ai-turn 6s linear infinite; }
  .ask.thinking .ai-orb::before { animation-duration: 1.6s; }
  .ask.thinking .ai-orb { animation: ai-breathe 1.6s ease-in-out infinite; }
}
@keyframes ai-turn { to { --ai-a: 360deg; } }
@keyframes ai-breathe { 50% { transform: scale(1.08); } }

/* the top bar button */
.ask-btn { height: 34px; padding: 0 15px 0 8px; border: 0; font: 600 0.8125rem var(--ai-font); letter-spacing: -0.01em;
  background: var(--sheet); box-shadow: 0 0 0 1px var(--glass-line), 0 1px 2px rgba(0, 0, 0, .05); position: relative; }
.ask-btn::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; background: var(--ai-spectrum); opacity: .55;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; transition: opacity .2s ease; }
.ask-btn:hover { background: var(--sheet); box-shadow: 0 0 0 1px var(--glass-line), 0 6px 18px rgba(90, 80, 240, .16); }
.ask-btn:hover::after { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .ask-btn::after { animation: ai-turn 8s linear infinite; } }

/* the panel: glass, very round, with the spectrum glow behind its edge */
.ask { overflow: visible; border: 0; background: none; border-radius: 34px; box-shadow: none; font-family: var(--ai-font); }
.ask::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 36px; background: var(--ai-spectrum); filter: blur(22px); opacity: .28;
  transition: opacity .5s ease, filter .5s ease; }
.ask.thinking::before { opacity: .75; filter: blur(26px); }
.ask::after { content: ""; position: absolute; inset: 0; border-radius: 34px; padding: 1.5px; background: var(--ai-spectrum); opacity: .35; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; transition: opacity .5s ease; }
.ask.thinking::after { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .ask::before, .ask::after { animation: ai-turn 9s linear infinite; } .ask.thinking::before, .ask.thinking::after { animation-duration: 2.4s; } }
.ask-in { border-radius: 34px; overflow: hidden; background: var(--glass); -webkit-backdrop-filter: blur(34px) saturate(1.6); backdrop-filter: blur(34px) saturate(1.6);
  box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px var(--glass-line), 0 30px 80px rgba(16, 18, 40, .22), 0 2px 6px rgba(16, 18, 40, .06); }
@media (prefers-reduced-transparency: reduce) { .ask-in { background: var(--sheet); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-contrast: more) { .ask-in { background: var(--sheet); box-shadow: inset 0 0 0 2px var(--ink); } .ask::before { display: none; } }
@media (min-width: 1600px) { html.ask-on .content { padding-right: 500px; } }
@media (max-width: 640px) { .ask, .ask-in { border-radius: 0; } .ask::before, .ask::after { display: none; }
  .ask-in { background: var(--sheet); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; } }
.ask-scrim { background: rgba(20, 22, 30, 0.12); }

.ask-head { padding: 18px 16px 10px 20px; gap: 12px; }
.ask-head h2 { font: 700 1.25rem/1.15 var(--ai-display); letter-spacing: -0.025em; }
.ask-ctx span { padding: 3px 9px; font: 500 0.75rem var(--ai-font); border: 0; background: rgba(120, 120, 128, 0.12); color: var(--ink-2); }
.ask-icon { width: 34px; height: 34px; border: 0; background: rgba(120, 120, 128, 0.14); color: var(--ink-2); }
.ask-icon:hover { background: rgba(120, 120, 128, 0.22); color: var(--ink); border: 0; }
.ask-icon svg { width: 14px; height: 14px; }
/* content fades under the header and the question box instead of colliding with them */
.ask-body { padding: 10px 18px 20px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 18px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 14px, #000 calc(100% - 18px), transparent 100%); }
.ask-hi { font: 700 1.75rem/1.12 var(--ai-display); letter-spacing: -0.03em; }
.ask-hi { background: linear-gradient(100deg, var(--ink) 30%, #6a55f0 70%, #d84f9b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ask-sub { font-size: 0.9375rem; color: var(--ink-2); }

/* suggestions as one rounded, grouped list, like a Settings section */
.ask-sugs { gap: 0; border-radius: 22px; overflow: hidden; background: var(--sheet); box-shadow: 0 0 0 1px var(--glass-line), 0 8px 24px rgba(16, 18, 40, .06); }
.ask-sugs li + li .ask-sug { border-top: 1px solid var(--glass-line); }
.ask-sug { border: 0; border-radius: 0; padding: 13px 14px 13px 12px; background: transparent; font: 500 0.9375rem/1.35 var(--ai-font); letter-spacing: -0.005em; }
.ask-sugs li + li .ask-sug { margin-left: 52px; padding-left: 0; width: calc(100% - 52px); }
.ask-sugs li + li .ask-sug .ask-sug-i { margin-left: -40px; }
button.ask-sug:hover { transform: none; box-shadow: none; background: rgba(120, 120, 128, 0.08); border-color: var(--glass-line); }
.ask-sug-i { width: 30px; height: 30px; border-radius: 9px; color: #fff; background: linear-gradient(135deg, #3d8bff, #7a5cff 55%, #e2589f); }
.ask-sug-i svg { width: 14px; height: 14px; }
.ask-sugs.preview { background: transparent; box-shadow: 0 0 0 1px var(--glass-line); }
.ask-sugs.preview .ask-sug { border-style: solid; }
.ask-focus { border-radius: 18px; border-left: 0; background: rgba(120, 120, 128, 0.1); }

/* the conversation */
.ans-q { background: var(--bubble); color: #fff; border-radius: 22px 22px 6px 22px; font-family: var(--ai-font); letter-spacing: -0.005em; box-shadow: 0 6px 18px rgba(70, 90, 240, .22); }
.ans-card { border-radius: 26px; border: 0; padding: 20px 20px 14px; box-shadow: 0 0 0 1px var(--glass-line), 0 1px 2px rgba(0, 0, 0, .03), 0 14px 36px rgba(16, 18, 40, .08); }
.ans-head { font: 700 1.375rem/1.2 var(--ai-display); letter-spacing: -0.028em; }
.ans-points p, .ans-do-t, .ans-do-w { font-family: var(--ai-font); letter-spacing: -0.005em; }
.ans-dot { width: 26px; height: 26px; border-radius: 50%; }
.ans-points > li { border-top-color: var(--glass-line); }
.rule summary { border: 0; background: rgba(120, 120, 128, 0.12); padding: 4px 11px 4px 4px; }
.rule summary b { background: linear-gradient(135deg, #3d8bff, #7a5cff); color: #fff; }
.rule p { border-radius: 16px; border-left: 0; background: rgba(120, 120, 128, 0.1); }
.ans-do { border-radius: 20px; background: rgba(120, 120, 128, 0.08); }
.ans-go { border: 0; background: var(--sheet); box-shadow: 0 0 0 1px var(--glass-line), 0 2px 6px rgba(0, 0, 0, .05); }
.badge { border: 0; background: rgba(120, 120, 128, 0.12); padding: 5px 11px 5px 8px; }
.badge.ok { background: color-mix(in srgb, var(--good) 13%, transparent); border: 0; }
.badge.warn { background: color-mix(in srgb, var(--warning) 18%, transparent); border: 0; }
.ask-pill { border: 0; background: rgba(120, 120, 128, 0.12); padding: 8px 14px; font-family: var(--ai-font); }
button.ask-pill:hover { background: rgba(120, 120, 128, 0.2); border: 0; }
.ask-pill svg { color: #7a5cff; }

/* working: the current step shimmers, the way Apple shows intelligence at work */
.ask-step { font-family: var(--ai-font); }
.ask-step.now { background: linear-gradient(90deg, var(--ink-2) 0%, var(--ink-2) 35%, #7a5cff 50%, var(--ink-2) 65%, var(--ink-2) 100%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.ask-step.now::before { border-color: #7a5cff #3d8bff transparent #e2589f; }
@media (prefers-reduced-motion: no-preference) { .ask-step.now { animation: ai-shimmer 1.6s linear infinite, ask-fade .25s ease both; } }
@keyframes ai-shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }

/* the question box: a capsule that lights up with the spectrum when you type */
.ask-foot { background: none; padding: 6px 14px 16px; }
.ask-box { border-radius: 26px; border: 0; background: var(--sheet); box-shadow: 0 0 0 1px var(--glass-line), 0 6px 20px rgba(16, 18, 40, .08); padding: 7px 7px 7px 16px; }
.ask-box::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; background: var(--ai-spectrum); opacity: 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; transition: opacity .25s ease; }
.ask-box:focus-within { box-shadow: 0 0 0 1px transparent, 0 8px 26px rgba(90, 80, 240, .16); border: 0; }
.ask-box:focus-within::after { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .ask-box::after { animation: ai-turn 6s linear infinite; } }
.ask-form textarea { font-family: var(--ai-font); font-size: 1rem; letter-spacing: -0.01em; }
.ask-send { width: 34px; height: 34px; background: var(--bubble); color: #fff; box-shadow: 0 4px 12px rgba(70, 90, 240, .3); }
.ask-send:hover { background: var(--bubble); }
.ask-send:disabled { background: rgba(120, 120, 128, 0.3); box-shadow: none; opacity: 1; }
.ask-tabs { background: rgba(120, 120, 128, 0.12); }
.ask-tabs button { font-family: var(--ai-font); height: 28px; padding: 0 12px; }
.ask-kind span { border: 0; background: rgba(120, 120, 128, 0.12); font-family: var(--ai-font); padding: 6px 12px; }
.ask-kind input:checked + span { background: var(--ink); }
.ask-fields input { border-radius: 12px; border: 0; background: rgba(120, 120, 128, 0.12); }

/* the Agent page's Ask bar matches */
.ag-ask-bar { border-radius: 26px; border: 0; box-shadow: 0 0 0 1px var(--glass-line), 0 10px 30px rgba(16, 18, 40, .07); position: relative; padding: 13px 18px 13px 13px; }
.ag-ask-bar::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; background: var(--ai-spectrum); opacity: .45;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; transition: opacity .2s ease; }
.ag-ask-bar:hover { border: 0; box-shadow: 0 0 0 1px var(--glass-line), 0 14px 36px rgba(90, 80, 240, .14); }
.ag-ask-bar:hover::after { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .ag-ask-bar::after { animation: ai-turn 8s linear infinite; } }
.ag-ask-t b { font: 700 1.0625rem/1.2 var(--ai-display); letter-spacing: -0.02em; }
.ag-ask-t span { font-family: var(--ai-font); }
.ag-ask-k { border: 0; background: rgba(120, 120, 128, 0.12); border-radius: 8px; }

/* ---------------------------------------------------------------- sidebar, Apple layer
   The sidebar follows Ask Atlas: a floating, inset, very round sheet of glass beside the
   page (macOS-style), the system font, accent-tinted icons, and the current page as a soft
   tinted capsule. On phones it stays a scrolling row of pills. */
@media (min-width: 861px) {
  .shell { grid-template-columns: 264px minmax(0, 1fr); }
  .side { position: sticky; top: 10px; height: calc(100vh - 20px); margin: 10px 0 10px 10px; padding: 16px 10px 14px; gap: 16px;
    border: 0; border-radius: 26px; font-family: var(--ai-font); letter-spacing: -0.005em;
    background: var(--glass); -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6);
    box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 1px var(--glass-line), 0 1px 2px rgba(16, 18, 40, .04), 0 12px 36px rgba(16, 18, 40, .07);
    scrollbar-width: none; }
  .side::-webkit-scrollbar { display: none; }
  @media (prefers-reduced-transparency: reduce) { .side { background: var(--sheet); -webkit-backdrop-filter: none; backdrop-filter: none; } }
  @media (prefers-contrast: more) { .side { background: var(--sheet); box-shadow: inset 0 0 0 2px var(--ink); } }
}
.brand { font: 700 1.1875rem/1 var(--ai-display); letter-spacing: -0.025em; padding: 4px 10px 2px; }
.client { border: 0; border-radius: 14px; padding: 9px 12px; font: 600 0.875rem var(--ai-font); letter-spacing: -0.01em;
  background: var(--sheet); box-shadow: 0 0 0 1px var(--glass-line), 0 2px 8px rgba(16, 18, 40, .05); }
.client-dot { border-radius: 7px; }
.nav-label { padding-left: 12px; margin: 0 0 3px; font: 600 0.6875rem var(--ai-font); letter-spacing: 0; color: var(--cover-muted); }
.side ul { gap: 2px; }
.side ul a { min-height: 34px; padding: 0 12px; gap: 11px; border-radius: 11px; font: 500 0.875rem var(--ai-font); letter-spacing: -0.01em; color: var(--cover-ink);
  transition: background-color .15s ease, color .15s ease; }
.side ul a .icon { width: 17px; height: 17px; color: var(--cover-muted); }
.side ul a:hover { background: rgba(120, 120, 128, 0.12); }
.side ul a[aria-current="page"] { font-weight: 600; color: var(--ink);
  background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent); }
.side ul a[aria-current="page"] .icon { color: var(--accent); opacity: 1; }
.side ul a:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.side-foot { font-family: var(--ai-font); padding: 0 8px; }
.side-foot select { border-radius: 12px; border: 0; background: rgba(120, 120, 128, 0.12); padding: 0 10px; }
.side-foot .link, .side-foot button.link { text-decoration: none; font-weight: 500; }
.side-foot .link:hover, .side-foot button.link:hover { color: var(--cover-ink); }
@media (max-width: 860px) {
  .side { background: var(--paper); border-bottom: 0; }
  .nav-scroll { gap: 4px; padding-bottom: 8px; }
  .nav-group ul { gap: 4px; }
  .side ul a { min-height: 36px; border-radius: 999px; padding: 0 14px; background: rgba(120, 120, 128, 0.1); }
  .side ul a[aria-current="page"] { background: var(--ink); color: var(--sheet); box-shadow: none; }
  .side ul a[aria-current="page"] .icon { color: var(--sheet); }
}

/* ---------------------------------------------------------------- Ask Atlas, motion layer
   The spectrum moves round every AI edge (the question box, the Ask button, the Agent bar)
   by turning a large conic gradient behind an inner plate, which works in every browser
   (Safari included) without animating custom properties. The orb turns and breathes; while
   Atlas works, everything speeds up and the send button becomes a spinning spectrum. */
@keyframes ai-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes ai-spin-orb { to { transform: rotate(360deg); } }
@keyframes ai-glow { 50% { opacity: .9; transform: scale(1.18); } }
:root { --ai-colors: #3d8bff, #7a5cff, #c45cf0, #ff5f9e, #ff8a3d, #ffc93c, #36c6a8, #3d8bff; }

/* a spectrum ring that travels round the edge */
.ask-box, .ask-btn, .ag-ask-bar { position: relative; isolation: isolate; overflow: hidden; }
.ask-box::before, .ask-btn::before, .ag-ask-bar::before {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: -2; width: 220%; aspect-ratio: 1; pointer-events: none;
  background: conic-gradient(from 0deg, var(--ai-colors)); transform: translate(-50%, -50%); opacity: .55; transition: opacity .3s ease; }
.ask-box::after, .ask-btn::after, .ag-ask-bar::after {
  content: ""; position: absolute; inset: 1.5px; z-index: -1; border-radius: inherit; pointer-events: none; padding: 0; opacity: 1;
  -webkit-mask: none; mask: none; background: var(--sheet); animation: none; transition: inset .2s ease; }
.ask-box { background: transparent; }
.ask-box::after { border-radius: 24.5px; }
.ask-btn::after { border-radius: 999px; }
.ag-ask-bar::after { border-radius: 24.5px; }
.ask-box:focus-within::before, .ask.thinking .ask-box::before, .ask-btn:hover::before, .ag-ask-bar:hover::before { opacity: 1; }
.ask-box:focus-within::after, .ask.thinking .ask-box::after { inset: 2px; }
.ask-box:focus-within { box-shadow: 0 8px 28px rgba(90, 80, 240, .18); }
@media (prefers-reduced-motion: no-preference) {
  .ask-box::before { animation: ai-spin 5s linear infinite; }
  .ask-btn::before, .ag-ask-bar::before { animation: ai-spin 7s linear infinite; }
  .ask-box:focus-within::before { animation-duration: 3.5s; }
  .ask.thinking .ask-box::before { animation-duration: 1.4s; }
}

/* the orb: turns, breathes, and glows */
.ai-orb::before { background: conic-gradient(from 0deg, var(--ai-colors)); }
.ai-orb::after { content: ""; position: absolute; inset: -18%; z-index: -1; border-radius: 50%; background: conic-gradient(from 90deg, var(--ai-colors));
  filter: blur(10px); opacity: .45; }
.ai-orb.sm::after { inset: -10%; filter: blur(4px); }
@media (prefers-reduced-motion: no-preference) {
  .ai-orb::before { animation: ai-spin-orb 5s linear infinite; }
  .ai-orb::after { animation: ai-spin-orb 7s linear infinite reverse, ai-glow 3.2s ease-in-out infinite; }
  .ai-orb i { animation: ai-breathe 3.2s ease-in-out infinite; }
  .ask.thinking .ai-orb::before { animation-duration: 1.2s; }
  .ask.thinking .ai-orb::after { animation-duration: 2s, 1.1s; opacity: .8; }
  .ask.thinking .ai-orb { animation: ai-breathe 1.1s ease-in-out infinite; }
  .ask-head .ai-orb { transition: transform .3s cubic-bezier(.2, 1.4, .4, 1); }
  .ask-head .ai-orb:hover { transform: scale(1.12); }
}

/* the send button: lights up when there's something to send, spins while Atlas works */
.ask-send { position: relative; overflow: hidden; isolation: isolate; }
.ask-send:not(:disabled) { transform: scale(1); }
@media (prefers-reduced-motion: no-preference) {
  .ask-send:not(:disabled) { animation: ai-pop .3s cubic-bezier(.2, 1.4, .4, 1); }
  .ask.thinking .ask-send::before { content: ""; position: absolute; left: 50%; top: 50%; width: 160%; aspect-ratio: 1; z-index: -1; transform: translate(-50%, -50%);
    background: conic-gradient(from 0deg, var(--ai-colors)); animation: ai-spin 1s linear infinite; }
  .ask.thinking .ask-send { background: transparent; opacity: 1; }
  .ask.thinking .ask-send svg { opacity: .9; }
}
@keyframes ai-pop { from { transform: scale(.7); } }

/* touch feedback, and answers that build up point by point */
.ask-sug:active, .ask-pill:active, .ask-send:active, .ag-ask-bar:active { transform: scale(.98); }
@media (prefers-reduced-motion: no-preference) {
  .ans.ans-new .ans-points > li, .ans.ans-new .ans-do, .ans.ans-new .ans-foot { animation: ask-rise .45s cubic-bezier(.2, .8, .2, 1) both; }
  .ans.ans-new .ans-points > li:nth-child(1) { animation-delay: .12s; } .ans.ans-new .ans-points > li:nth-child(2) { animation-delay: .22s; }
  .ans.ans-new .ans-points > li:nth-child(3) { animation-delay: .32s; } .ans.ans-new .ans-points > li:nth-child(4) { animation-delay: .42s; }
  .ans.ans-new .ans-do { animation-delay: .5s; } .ans.ans-new .ans-foot { animation-delay: .6s; }
  .ans.ans-new .ans-next .ask-pill { animation: ask-rise .4s cubic-bezier(.2, .8, .2, 1) both; animation-delay: .7s; }
}

/* phones: the panel fits the space above the keyboard */
@media (max-width: 640px) {
  .ask { top: var(--vv-top, 0px); bottom: auto; height: var(--vv-h, 100dvh); }
  .ask-in { box-shadow: none; }
}

/* ---------------------------------------------------------------- Ask Atlas, across the pages
   Atlas suggests a few questions under each page headline, a sparkle on every figure asks
   why it is what it is, selected text gets an "Ask Atlas" pill, and the top-bar button
   glows when Atlas has things for you today. Nothing here costs anything until it's pressed. */
.ai-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -20px 0 28px; max-width: 64rem; font-family: var(--ai-font); }
.ai-row-k { display: inline-flex; align-items: center; gap: 7px; margin-right: 2px; font: 600 0.75rem var(--ai-font); color: var(--ink-2); letter-spacing: 0; }
.ai-chip { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; max-width: 100%; padding: 6px 13px;
  border: 0; border-radius: 999px; background: var(--glass); color: var(--ink); cursor: pointer; text-align: left;
  font: 500 0.8125rem/1.3 var(--ai-font); letter-spacing: -0.01em; box-shadow: 0 0 0 1px var(--glass-line), 0 1px 2px rgba(0, 0, 0, .04);
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  transition: transform .2s cubic-bezier(.2, 1.4, .4, 1), box-shadow .2s ease, background-color .2s ease; }
.ai-chip svg { width: 13px; height: 13px; flex: none; color: #7a5cff; }
.ai-chip:hover { background: var(--sheet); box-shadow: 0 0 0 1px color-mix(in srgb, #7a5cff 35%, var(--glass-line)), 0 6px 18px rgba(90, 80, 240, .14); transform: translateY(-1px); }
.ai-chip:active { transform: scale(.97); }
.ai-chip:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
/* the lead chip wears the moving spectrum edge */
.ai-chip.lead { overflow: hidden; font-weight: 600; background: transparent; box-shadow: 0 2px 10px rgba(90, 80, 240, .12); }
.ai-chip.lead::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: -2; width: 240%; aspect-ratio: 1; pointer-events: none;
  background: conic-gradient(from 0deg, var(--ai-colors)); transform: translate(-50%, -50%); opacity: .75; }
.ai-chip.lead::after { content: ""; position: absolute; inset: 1.5px; z-index: -1; border-radius: inherit; background: var(--sheet); pointer-events: none; }
.ai-chip.lead:hover::before { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .ai-chip.lead::before { animation: ai-spin 6s linear infinite; }
  .ai-row .ai-chip { animation: ask-rise .45s cubic-bezier(.2, .8, .2, 1) both; }
  .ai-row .ai-chip:nth-of-type(2) { animation-delay: .06s; } .ai-row .ai-chip:nth-of-type(3) { animation-delay: .12s; }
  .ai-row .ai-chip:nth-of-type(4) { animation-delay: .18s; } .ai-row .ai-chip:nth-of-type(5) { animation-delay: .24s; }
}
.quick-ask { margin: 4px 0 14px; }

/* "Why?" on every figure */
.askable { position: relative; }
.ask-fig { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; height: 24px; min-height: 0; padding: 0 9px 0 7px;
  border: 0; border-radius: 999px; cursor: pointer; background: var(--glass); color: var(--ink);
  font: 600 0.6875rem var(--ai-font); letter-spacing: 0; box-shadow: 0 0 0 1px var(--glass-line), 0 4px 12px rgba(90, 80, 240, .14);
  -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
  opacity: 0; transform: translateY(2px) scale(.94); transition: opacity .18s ease, transform .22s cubic-bezier(.2, 1.4, .4, 1), box-shadow .2s ease; }
.ask-fig svg { width: 11px; height: 11px; color: #7a5cff; }
.askable:hover .ask-fig, .askable:focus-within .ask-fig, .ask-fig:focus-visible { opacity: 1; transform: none; }
.ask-fig:hover { box-shadow: 0 0 0 1px color-mix(in srgb, #7a5cff 40%, var(--glass-line)), 0 6px 16px rgba(90, 80, 240, .22); }
.ask-fig:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
/* on touch there's no hover: show a small sparkle all the time */
@media (hover: none) {
  .ask-fig { opacity: 1; transform: none; width: 26px; padding: 0; justify-content: center; top: 8px; right: 8px; }
  .ask-fig span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (prefers-reduced-motion: no-preference) and (hover: none) { .ask-fig svg { animation: ai-glow 3.2s ease-in-out infinite; } }

/* select text, ask about it */
.ask-sel { position: absolute; z-index: 60; display: inline-flex; align-items: center; gap: 7px; height: 34px; min-height: 0; padding: 0 14px 0 9px;
  border: 0; border-radius: 999px; cursor: pointer; overflow: hidden; isolation: isolate; color: var(--ink);
  font: 600 0.8125rem var(--ai-font); letter-spacing: -0.01em; box-shadow: 0 10px 30px rgba(40, 30, 120, .22); }
.ask-sel[hidden] { display: none; }
.ask-sel::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: -2; width: 240%; aspect-ratio: 1;
  background: conic-gradient(from 0deg, var(--ai-colors)); transform: translate(-50%, -50%); }
.ask-sel::after { content: ""; position: absolute; inset: 1.5px; z-index: -1; border-radius: inherit; background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .ask-sel::after { background: var(--sheet); } }
@media (prefers-reduced-motion: no-preference) {
  .ask-sel::before { animation: ai-spin 3.5s linear infinite; }
  .ask-sel:not([hidden]) { animation: ai-pop .28s cubic-bezier(.2, 1.4, .4, 1); }
}

/* the top-bar button glows when Atlas has things for you today */
.ask-btn.has-news { box-shadow: 0 0 0 1px var(--glass-line), 0 0 18px rgba(122, 92, 255, .28); }
.ask-btn.has-news::before { opacity: .9; }
.ask-btn.has-news .ai-orb { position: relative; }
.ask-btn.has-news .ai-orb i::after { content: ""; position: absolute; top: -3px; right: -3px; width: 7px; height: 7px; border-radius: 50%;
  background: #ff5f9e; box-shadow: 0 0 0 1.5px var(--sheet); }
@media (prefers-reduced-motion: no-preference) {
  .ask-btn.has-news { animation: ai-news 2.8s ease-in-out infinite; }
}
@keyframes ai-news { 50% { box-shadow: 0 0 0 1px var(--glass-line), 0 0 26px rgba(122, 92, 255, .45); } }

@media (prefers-reduced-transparency: reduce) { .ai-chip, .ask-fig, .ask-sel::after { background: var(--sheet); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-contrast: more) { .ai-chip, .ask-fig { box-shadow: 0 0 0 1px var(--ink); } }
@media (max-width: 640px) { .ai-row { margin: -12px 0 22px; } .ai-row .ai-chip:not(.lead) { flex: 1 1 100%; } }

/* ---------------------------------------------------------------- Ask Atlas, saved answers
   A question that's been answered opens as an "Atlas insight": a floating glass card with the
   spectrum travelling round its edge, the orb, and the saved answer. Free to open; asking
   again is a separate, clearly marked choice. */
.ins-dlg { position: fixed; inset: 0; margin: auto; padding: 0; border: 0; width: min(640px, calc(100vw - 32px)); max-height: min(86dvh, 860px);
  border-radius: 30px; background: transparent; color: var(--ink); overflow: hidden; isolation: isolate;
  box-shadow: 0 30px 80px -20px rgba(40, 30, 120, .35), 0 0 0 1px var(--glass-line); }
.ins-dlg::backdrop { background: rgba(20, 18, 30, .28); -webkit-backdrop-filter: blur(6px) saturate(1.2); backdrop-filter: blur(6px) saturate(1.2); }
.ins-dlg::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: -2; width: 180%; aspect-ratio: 1; pointer-events: none;
  background: conic-gradient(from 0deg, var(--ai-colors)); transform: translate(-50%, -50%); opacity: .85; }
.ins-dlg::after { content: ""; position: absolute; inset: 2px; z-index: -1; border-radius: 28px; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, #7a5cff 6%, var(--sheet)), var(--sheet) 140px); }
.ins { display: flex; flex-direction: column; max-height: min(86dvh, 860px); font-family: var(--ai-font); }
.ins-head { display: flex; align-items: center; gap: 14px; padding: 20px 20px 14px 22px; }
.ins-title { flex: 1; min-width: 0; }
.ins-head h2 { margin: 0; font: 700 1.375rem/1.15 var(--ai-display); letter-spacing: -0.02em; }
.ins-meta { margin: 2px 0 0; color: var(--ink-2); font-size: 0.8125rem; }
.ins-body { flex: 1; min-height: 0; overflow: auto; padding: 4px 20px 6px; overscroll-behavior: contain; }
.ins-body .ans { margin-bottom: 14px; }
.ins-note { margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, var(--mark) 22%, var(--sheet)); font-size: 0.875rem; line-height: 1.45; }
.ins-act { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 12px 20px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--glass-line); }
.ins-btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(120, 120, 128, .12); color: var(--ink); font: 600 0.9375rem var(--ai-font); letter-spacing: -0.01em; transition: transform .2s cubic-bezier(.2, 1.4, .4, 1), background-color .2s ease; }
.ins-btn span { color: var(--ink-3); font-weight: 500; font-size: 0.8125rem; }
.ins-btn:hover { background: rgba(120, 120, 128, .18); }
.ins-btn:active { transform: scale(.97); }
.ins-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.ins-btn svg { width: 14px; height: 14px; }
.ins-btn.lead { background: transparent; color: var(--ink); box-shadow: 0 6px 18px rgba(90, 80, 240, .2); }
.ins-btn.lead::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: -2; width: 240%; aspect-ratio: 1; background: conic-gradient(from 0deg, var(--ai-colors)); transform: translate(-50%, -50%); }
.ins-btn.lead::after { content: ""; position: absolute; inset: 1.5px; z-index: -1; border-radius: inherit; background: var(--sheet); }
.ins-btn.lead svg { color: #7a5cff; }
@media (prefers-reduced-motion: no-preference) {
  .ins-dlg::before { animation: ai-spin 6s linear infinite; }
  .ins-btn.lead::before { animation: ai-spin 4s linear infinite; }
  .ins-dlg[open] { animation: ins-in .38s cubic-bezier(.2, 1.1, .3, 1); }
  .ins-dlg[open]::backdrop { animation: ask-fade .25s ease; }
  .ins-dlg.closing { animation: ins-out .18s ease forwards; }
}
@keyframes ins-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes ins-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }
@media (max-width: 640px) {
  .ins-dlg { width: 100vw; max-width: none; max-height: 92dvh; margin: auto 0 0; border-radius: 28px 28px 0 0; }
  .ins-dlg::after { border-radius: 26px 26px 0 0; inset: 2px 2px 0; }
  .ins { max-height: 92dvh; }
  .ins-act { justify-content: stretch; } .ins-btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-transparency: reduce) { .ins-dlg::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(20, 18, 30, .5); } }

/* in the panel: an answer reused rather than paid for again */
.ans-saved { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 10px; padding: 8px 8px 8px 12px; border-radius: 14px;
  background: color-mix(in srgb, #7a5cff 8%, var(--sheet)); color: var(--ink-2); font-size: 0.8125rem; line-height: 1.4; }
.ans-saved svg { width: 13px; height: 13px; flex: none; color: #7a5cff; }
.ans-saved span { flex: 1 1 200px; }
.ans-saved .linkish { min-height: 30px; }
.ai-chip-saved { display: inline-flex; align-items: center; margin-left: 4px; padding: 1px 8px; border-radius: 999px; flex: none;
  background: color-mix(in srgb, #7a5cff 12%, transparent); color: color-mix(in srgb, #7a5cff 70%, var(--ink)); font-size: 0.6875rem; font-weight: 650; }

/* ---------------------------------------------------------------- calmer motion (Ollie, 1 Oct)
   The orb turns slowly and the send button no longer spins: while Atlas works it glows
   softly instead. The spectrum round the question box moves at an unhurried pace. */
@media (prefers-reduced-motion: no-preference) {
  .ai-orb::before { animation: ai-spin-orb 18s linear infinite; }
  .ai-orb::after { animation: ai-spin-orb 24s linear infinite reverse, ai-glow 7s ease-in-out infinite; }
  .ai-orb i { animation: ai-breathe 7s ease-in-out infinite; }
  .ask.thinking .ai-orb::before { animation-duration: 6s; }
  .ask.thinking .ai-orb::after { animation-duration: 8s, 3s; opacity: .7; }
  .ask.thinking .ai-orb { animation: ai-breathe 3s ease-in-out infinite; }
  .ask-box::before { animation: ai-spin 12s linear infinite; }
  .ask-box:focus-within::before { animation-duration: 9s; }
  .ask.thinking .ask-box::before { animation-duration: 5s; }
  .ask-btn::before, .ag-ask-bar::before, .ai-chip.lead::before, .ask-sel::before, .ins-dlg::before, .ins-btn.lead::before { animation-duration: 14s; }
  .ask-send:not(:disabled) { animation: ai-pop-soft .25s ease-out; }
  .ask.thinking .ask-send::before { content: none; animation: none; }
  .ask.thinking .ask-send { background: var(--bubble); animation: ai-send-glow 2.4s ease-in-out infinite; }
  .ask.thinking .ask-send svg { opacity: .95; color: #fff; }
}
.ask-box:focus-within::before { opacity: .8; }
@keyframes ai-pop-soft { from { transform: scale(.9); opacity: .6; } }
@keyframes ai-send-glow { 50% { box-shadow: 0 0 0 4px rgba(122, 92, 255, .14), 0 0 14px rgba(122, 92, 255, .3); } }

/* the Agent's ready-made messages: a clear Hide / Show on the right */
.ag-draft summary > span { flex: 1; }
.ag-draft .ag-toggle { flex: none; margin-left: auto; padding: 4px 10px; border-radius: 999px; background: rgba(120, 120, 128, .12); color: var(--ink-2); font-size: 0.8125rem; font-weight: 600; }
.ag-draft summary:hover .ag-toggle { color: var(--ink); background: rgba(120, 120, 128, .18); }
.ag-draft .ag-toggle .when-open { display: none; }
.ag-draft[open] .ag-toggle .when-open { display: inline; }
.ag-draft[open] .ag-toggle .when-shut { display: none; }

/* ---------------------------------------------------------------- walkthroughs (tour.js)
   The page dims except the thing being explained, which gets a soft spectrum ring; a glass
   card beside it says what it is. On phones the card is a sheet at the bottom. */
.tour-shade { position: fixed; z-index: 90; display: none; background: rgba(16, 14, 28, .52); }
:root[data-theme="dark"] .tour-shade { background: rgba(0, 0, 0, .62); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tour-shade { background: rgba(0, 0, 0, .62); } }
.tour-ring { position: fixed; z-index: 91; display: none; pointer-events: none; border-radius: 18px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 0 0 5px rgba(122, 92, 255, .45), 0 0 28px rgba(122, 92, 255, .35);
  transition: left .35s cubic-bezier(.2, .8, .2, 1), top .35s cubic-bezier(.2, .8, .2, 1), width .35s cubic-bezier(.2, .8, .2, 1), height .35s cubic-bezier(.2, .8, .2, 1); }
.tour-ring.trying { box-shadow: 0 0 0 2px rgba(255, 255, 255, .95), 0 0 0 6px rgba(255, 216, 77, .6), 0 0 30px rgba(255, 200, 60, .4); }
.tour-shade { transition: left .35s cubic-bezier(.2, .8, .2, 1), top .35s cubic-bezier(.2, .8, .2, 1), width .35s cubic-bezier(.2, .8, .2, 1), height .35s cubic-bezier(.2, .8, .2, 1); }
.tour-card { position: fixed; z-index: 92; width: min(380px, calc(100vw - 24px)); padding: 16px 18px 14px; border-radius: 24px; overflow: hidden; isolation: isolate;
  background: var(--glass); -webkit-backdrop-filter: blur(30px) saturate(1.7); backdrop-filter: blur(30px) saturate(1.7); color: var(--ink); font-family: var(--ai-font);
  box-shadow: 0 0 0 1px var(--glass-line), 0 24px 60px -16px rgba(20, 16, 60, .45); outline: none;
  transition: top .35s cubic-bezier(.2, .8, .2, 1), left .35s cubic-bezier(.2, .8, .2, 1), opacity .25s ease, transform .3s cubic-bezier(.2, 1.1, .3, 1); opacity: 0; transform: translateY(6px) scale(.98); }
.tour-card.in { opacity: 1; transform: none; }
.tour-card.center { top: 50% !important; left: 50% !important; width: min(460px, calc(100vw - 24px)); transform: translate(-50%, -46%) scale(.98); }
.tour-card.center.in { transform: translate(-50%, -50%); }
.tour-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; z-index: 1; background: linear-gradient(90deg, var(--ai-colors)); opacity: .8; }
.tour-top { display: flex; align-items: center; gap: 8px; }
.tour-where { flex: 1; margin: 0; color: var(--ink-2); font-size: 0.8125rem; font-weight: 600; }
.tour-x { display: grid; place-items: center; width: 30px; height: 30px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(120, 120, 128, .14); color: var(--ink-2); cursor: pointer; }
.tour-x svg { width: 14px; height: 14px; }
.tour-x:hover { color: var(--ink); background: rgba(120, 120, 128, .22); }
.tour-t { margin: 10px 0 4px; font: 700 1.25rem/1.2 var(--ai-display); letter-spacing: -0.02em; }
.tour-b { margin: 0; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.5; }
.tour-try { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 8px 12px; border-radius: 14px; background: color-mix(in srgb, var(--mark) 30%, transparent); font-size: 0.875rem; font-weight: 600; }
.tour-try[hidden] { display: none; }
.tour-try-i { width: 10px; height: 10px; border-radius: 50%; background: var(--mark); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mark) 40%, transparent); flex: none; }
.tour-try.ok { background: color-mix(in srgb, var(--good) 18%, transparent); }
.tour-try.ok .tour-try-i { background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 30%, transparent); }
@media (prefers-reduced-motion: no-preference) { .tour-try:not(.ok) .tour-try-i { animation: ai-glow 2.4s ease-in-out infinite; } }
.tour-prog { height: 3px; margin: 14px 0 10px; border-radius: 2px; background: rgba(120, 120, 128, .18); overflow: hidden; }
.tour-prog i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); border-radius: inherit; background: linear-gradient(90deg, #3d8bff, #7a5cff, #ff5f9e); transition: width .35s ease; }
.tour-act { display: flex; align-items: center; gap: 10px; }
.tour-n { flex: 1; text-align: center; color: var(--ink-3); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.tour-act button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 999px; font: 600 0.875rem var(--ai-font); cursor: pointer; }
.tour-back { background: rgba(120, 120, 128, .14); color: var(--ink); }
.tour-back:disabled { opacity: .4; cursor: default; }
.tour-next { background: var(--ink); color: var(--sheet); }
.tour-next:hover { box-shadow: 0 6px 16px rgba(20, 16, 60, .25); }
.tour-act button:focus-visible, .tour-x:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
html.touring .ai-row, html.touring .ask-sel { pointer-events: auto; }
@media (max-width: 640px) {
  .tour-card, .tour-card.center { top: auto !important; left: 8px !important; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); width: auto; transform: translateY(12px); }
  .tour-card.in, .tour-card.center.in { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .tour-card, .tour-ring, .tour-shade { transition: none; } }
@media (prefers-reduced-transparency: reduce) { .tour-card { background: var(--sheet); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* the How to use Atlas page */
.g-finished { display: flex; align-items: center; gap: 10px; margin: -12px 0 24px; padding: 12px 16px; border-radius: 16px; max-width: 64rem;
  background: color-mix(in srgb, var(--good) 12%, var(--sheet)); font-weight: 600; }
.g-finished svg { width: 18px; height: 18px; color: var(--good-ink); display: block; }
.g-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px 24px; max-width: 64rem;
  margin: 0 0 40px; padding: 26px 28px; border-radius: 28px; background: var(--sheet); box-shadow: 0 0 0 1px var(--glass-line), 0 18px 40px -20px rgba(40, 30, 120, .25); }
.g-hero::before { content: ""; position: absolute; z-index: -1; right: -10%; top: -60%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 0deg, var(--ai-colors)); filter: blur(70px); opacity: .18; }
.g-hero h2 { margin: 0; font: 700 1.625rem/1.1 var(--ai-display); letter-spacing: -0.02em; }
.g-hero p { margin: 6px 0 0; color: var(--ink-2); max-width: 36em; }
.g-hero-act { display: grid; gap: 10px; justify-items: stretch; min-width: 220px; }
.g-start { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px;
  color: var(--ink); font: 650 1rem var(--ai-font); text-decoration: none; box-shadow: 0 8px 22px rgba(90, 80, 240, .22); transition: transform .2s cubic-bezier(.2, 1.4, .4, 1); }
.g-start::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: -2; width: 240%; aspect-ratio: 1; background: conic-gradient(from 0deg, var(--ai-colors)); transform: translate(-50%, -50%); }
.g-start::after { content: ""; position: absolute; inset: 2px; z-index: -1; border-radius: inherit; background: var(--sheet); }
.g-start:hover { transform: translateY(-1px); } .g-start:active { transform: scale(.98); }
.g-start:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
@media (prefers-reduced-motion: no-preference) { .g-start::before { animation: ai-spin 14s linear infinite; } }
.g-progress { display: grid; gap: 6px; }
.g-progress p { margin: 0; color: var(--ink-3); font-size: 0.8125rem; text-align: center; }
.g-bar { height: 4px; border-radius: 2px; background: var(--rule); overflow: hidden; }
.g-bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, #3d8bff, #7a5cff, #ff5f9e); border-radius: inherit; }
.g-list, .g-know { max-width: 64rem; margin-bottom: 44px; }
.g-list h2, .g-know h2 { margin: 0 0 14px; font: 650 1.375rem/1.2 var(--display); letter-spacing: -0.015em; }
.g-index { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.g-index li { border-bottom: 1px solid var(--rule); }
.g-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; align-items: center; gap: 4px 16px; padding: 14px 8px; color: inherit; text-decoration: none; border-radius: 14px;
  transition: background-color .15s ease; }
.g-row:hover { background: var(--tint); }
.g-row:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--ring); }
.g-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(120, 120, 128, .1); color: var(--ink-2); }
.g-ic .icon { width: 18px; height: 18px; }
.g-txt { display: grid; gap: 1px; min-width: 0; }
.g-name { font-weight: 650; }
.g-blurb { color: var(--ink-2); font-size: 0.9375rem; }
.g-meta { color: var(--ink-3); font-size: 0.8125rem; white-space: nowrap; }
.g-state { min-width: 64px; text-align: right; font-size: 0.875rem; font-weight: 650; }
.g-go { color: var(--accent); } .g-tick { display: none; color: var(--good-ink); }
.g-row[data-done] .g-go { display: none; } .g-row[data-done] .g-tick { display: inline-flex; align-items: center; gap: 5px; }
.g-row[data-done] .g-tick::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--good); -webkit-mask: radial-gradient(circle, #000 60%, transparent 61%); mask: radial-gradient(circle, #000 60%, transparent 61%); }
.g-row[data-done] .g-ic { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good-ink); }
.g-know dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 1.5px solid var(--ink); }
.g-know dl > div { padding: 14px 0 16px; border-bottom: 1px solid var(--rule); }
.g-know dt { font-weight: 650; margin-bottom: 3px; }
.g-know dd { margin: 0; color: var(--ink-2); font-size: 0.9375rem; }
@media (max-width: 760px) {
  .g-hero { grid-template-columns: auto 1fr; padding: 22px; }
  .g-hero-act { grid-column: 1 / -1; min-width: 0; }
  .g-row { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .g-meta { grid-column: 2; grid-row: 2; }
  .g-state { grid-row: 1 / span 2; grid-column: 3; }
  .g-know dl { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- hover breakdowns (peek)
   A small glass card: the figure, then what it's made of as donuts, bars and simple sums.
   Arcs sweep in and bars grow once; nothing loops. */
[data-peek]:not([data-peek=""]) { cursor: default; }
a[data-peek] { cursor: pointer; }
.brief-block[data-peek]:not([data-peek=""]), .drivers-card[data-peek] { transition: box-shadow .2s ease, transform .2s ease; }
.brief-block[data-peek]:not([data-peek=""]):hover, .drivers-card[data-peek]:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--series1) 30%, var(--rule)), 0 10px 26px -14px rgba(30, 40, 90, .25); }
.chip-stat[data-peek]:not([data-peek=""]):hover { background: color-mix(in srgb, var(--series1) 10%, var(--tint)); }
.peek { position: absolute; z-index: 70; width: 340px; max-width: calc(100vw - 24px); padding: 16px 16px 14px; border-radius: 22px; pointer-events: auto;
  background: var(--glass); -webkit-backdrop-filter: blur(28px) saturate(1.7); backdrop-filter: blur(28px) saturate(1.7); color: var(--ink); font-family: var(--ai-font);
  box-shadow: 0 0 0 1px var(--glass-line), 0 22px 50px -18px rgba(20, 20, 60, .35); opacity: 0; transform: translateY(4px) scale(.98); transform-origin: top center;
  transition: opacity .18s ease, transform .22s cubic-bezier(.2, 1.1, .3, 1); }
.peek[hidden] { display: none; }
.peek.in { opacity: 1; transform: none; }
.peek.sheet { position: fixed; left: 8px !important; right: 8px; top: auto !important; bottom: calc(8px + env(safe-area-inset-bottom)); width: auto; max-height: 70dvh; overflow: auto; }
.pk-head { position: relative; padding-right: 28px; }
.pk-title { margin: 0; color: var(--ink-2); font-size: 0.8125rem; font-weight: 600; }
.pk-value { margin: 2px 0 0; font: 700 1.625rem/1.1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pk-sub { margin: 2px 0 0; color: var(--ink-3); font-size: 0.8125rem; }
.pk-close { position: absolute; top: -4px; right: -4px; width: 28px; height: 28px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(120, 120, 128, .14); color: var(--ink-2); font-size: 1.1rem; line-height: 1; cursor: pointer; display: none; }
.peek.sheet .pk-close { display: block; }
.pk-part { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--glass-line); }
.pk-label { margin: 0 0 8px; color: var(--ink-3); font-size: 0.75rem; font-weight: 650; }
/* sums */
.pk-eq { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pk-term { display: grid; gap: 1px; padding: 6px 10px; border-radius: 12px; background: rgba(120, 120, 128, .1); min-width: 0; }
.pk-term strong { font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.pk-term span { color: var(--ink-3); font-size: 0.6875rem; }
.pk-term.last { background: color-mix(in srgb, var(--series1) 14%, transparent); }
.pk-op { color: var(--ink-3); font-weight: 600; }
/* donuts */
.pk-donut { display: flex; align-items: center; gap: 14px; }
.pk-ring { position: relative; width: 88px; height: 88px; flex: none; }
.pk-ring svg { width: 88px; height: 88px; display: block; }
.pk-track { fill: none; stroke: rgba(120, 120, 128, .14); stroke-width: 11; }
.pk-arc { fill: none; stroke-width: 11; stroke-linecap: butt; stroke-dasharray: var(--len) var(--c); stroke-dashoffset: var(--off); }
.pk-mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.pk-mid strong { font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.pk-mid span { color: var(--ink-3); font-size: 0.625rem; }
.pk-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 0; flex: 1; }
.pk-legend li { display: grid; grid-template-columns: 10px 1fr; column-gap: 8px; align-items: baseline; }
.pk-legend i { width: 10px; height: 10px; border-radius: 3px; align-self: center; }
.pk-n { font-size: 0.8125rem; font-weight: 600; }
.pk-t { grid-column: 2; color: var(--ink-2); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
/* this against last year */
.pk-bars { display: grid; gap: 8px; }
.pk-bar-row { display: grid; grid-template-columns: 92px 1fr; gap: 8px; align-items: center; }
.pk-bar-n { font-size: 0.75rem; color: var(--ink-2); line-height: 1.2; }
.pk-bar-lines { display: grid; gap: 3px; }
.pk-line { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; }
.pk-line i { display: block; height: 8px; width: calc(var(--w) * 100%); min-width: 3px; border-radius: 0 4px 4px 0; background: var(--series1); }
.pk-line.then i { background: var(--cmp); height: 6px; }
.pk-line span { font-size: 0.75rem; font-variant-numeric: tabular-nums; min-width: 56px; text-align: right; }
.pk-line.then span { color: var(--ink-3); }
.pk-line.good span { color: var(--good-ink); font-weight: 600; } .pk-line.bad span { color: var(--bad-ink); font-weight: 600; }
.pk-key { display: flex; gap: 14px; margin: 8px 0 0; font-size: 0.6875rem; color: var(--ink-3); }
.pk-key span::before { content: ""; display: inline-block; width: 10px; height: 6px; margin-right: 5px; border-radius: 2px; background: var(--series1); vertical-align: middle; }
.pk-key .then::before { background: var(--cmp); }
/* last year to this year */
.pk-flow { display: grid; gap: 6px; }
.pk-flow-row { display: grid; grid-template-columns: 96px 1fr 64px; gap: 8px; align-items: center; font-size: 0.75rem; }
.pk-flow-n { color: var(--ink-2); }
.pk-flow-t { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.pk-flow-track { position: relative; height: 10px; }
.pk-flow-track i { position: absolute; top: 0; bottom: 0; left: calc(var(--l) * 100%); width: calc(var(--w) * 100%); border-radius: 3px; background: var(--ink-3); }
.pk-flow-row.total i { background: var(--series1); }
.pk-flow-row.up i { background: var(--good); } .pk-flow-row.down i { background: var(--critical); }
.pk-flow-row.up .pk-flow-t { color: var(--good-ink); } .pk-flow-row.down .pk-flow-t { color: var(--bad-ink); }
/* visit to sale */
.pk-funnel { display: flex; align-items: stretch; gap: 6px; }
.pk-step { flex: 1; display: grid; align-content: start; gap: 1px; padding: 8px 10px; border-radius: 12px; background: rgba(120, 120, 128, .1); min-width: 0; }
.pk-step strong { font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.pk-step span { font-size: 0.6875rem; color: var(--ink-3); }
.pk-step em { font-style: normal; font-size: 0.6875rem; color: var(--ink-2); }
.pk-arrow { align-self: center; color: var(--ink-3); }
@media (prefers-reduced-motion: no-preference) {
  .peek.in .pk-arc { animation: pk-sweep .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d); }
  .peek.in .pk-line i, .peek.in .pk-flow-track i { animation: pk-grow .55s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left center; }
  .peek.in .pk-part { animation: ask-rise .35s cubic-bezier(.2, .8, .2, 1) both; }
  .peek.in .pk-part:nth-of-type(2) { animation-delay: .05s; } .peek.in .pk-part:nth-of-type(3) { animation-delay: .1s; } .peek.in .pk-part:nth-of-type(4) { animation-delay: .15s; }
}
@keyframes pk-sweep { from { stroke-dasharray: 0 var(--c); } }
@keyframes pk-grow { from { transform: scaleX(0); } }
@media (prefers-reduced-transparency: reduce) { .peek { background: var(--sheet); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.peek { background: color-mix(in srgb, var(--sheet) 94%, transparent); max-height: calc(100vh - 24px); overflow: auto; overscroll-behavior: contain; }
.peek.sheet { background: var(--sheet); box-shadow: 0 0 0 1px var(--glass-line), 0 -10px 40px rgba(20, 20, 60, .25); }
.peek section.pk-part { margin-bottom: 0; } .peek .pk-part:last-child { padding-bottom: 2px; }

/* ---------------------------------------------------------------- charts and tables, modern layer
   Brings the figures in line with the glass panels: softer cards with more air, system type
   in charts, quieter grids, pill-ended bars, glass tooltips, and tables that read like lists
   (light headers, soft row lines, a gentle hover). Data colours are unchanged. */
.panel, .block, figure.panel, .table-scroll, .drivers-card, .brief-block, .ring-card {
  border-radius: 24px; }
.panel, figure.panel, .block { box-shadow: 0 0 0 1px var(--glass-line), 0 1px 2px rgba(28, 27, 25, .03), 0 14px 32px -24px rgba(30, 30, 70, .22); border-color: transparent; }
.split-panels .panel, .connections-page section.panel { box-shadow: none; }
.panel h2, .panel h3, .panel figcaption h3, .chart-head h3, .block h2, .section-head h2 { font-family: var(--ai-display); font-weight: 650; letter-spacing: -0.018em; }
.panel figcaption p, .chart-sum, .chart-head p { font-family: var(--ai-font); color: var(--ink-3); }

/* charts */
svg.chart text, .strip text { font-family: var(--ai-font); }
.chart .tick, .strip .tick { fill: var(--ink-3); font: 500 11px var(--ai-font); letter-spacing: .01em; }
.chart .grid, .chart.cols .grid, .strip .grid { stroke: color-mix(in srgb, var(--ink) 7%, transparent); stroke-dasharray: 2 4; }
.chart .baseline { stroke: color-mix(in srgb, var(--ink) 16%, transparent); }
.chart .avg { stroke: color-mix(in srgb, var(--ink) 30%, transparent); stroke-dasharray: 3 4; }
.chart rect.bar, .strip rect.bar, .chart rect.ghost { rx: 5px; ry: 5px; }
.chart .peak-label { font: 650 11px var(--ai-font); fill: var(--ink); }
.chart .band { fill: color-mix(in srgb, var(--series1) 7%, transparent); }
.chart .xh { stroke: color-mix(in srgb, var(--ink) 22%, transparent); stroke-dasharray: 2 3; }
.chart .hover-dot { stroke: var(--sheet); stroke-width: 2.5; }
.legend, .chart-key { font-family: var(--ai-font); font-size: 0.8125rem; color: var(--ink-2); gap: 6px 16px; }
.legend .key-line, .legend .swatch { border-radius: 999px; }
.zoom-btn { border-radius: 12px !important; background: var(--glass) !important; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 0 0 1px var(--glass-line) !important; }
.chart-switches .seg, .seg.grain, .seg.view { border-radius: 999px; }
.chart-switches .seg a, .chart-switches .seg span { border-radius: 999px; }

/* chart tooltips: small glass cards */
.tip { border-radius: 14px; padding: 10px 12px; font-family: var(--ai-font); background: color-mix(in srgb, var(--sheet) 88%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); border: 0;
  box-shadow: 0 0 0 1px var(--glass-line), 0 14px 32px -12px rgba(20, 20, 60, .3); color: var(--ink); }
.tip-title { color: var(--ink-3); font-size: 0.75rem; font-weight: 600; }
.tip-key { width: 8px; height: 8px; border-radius: 50%; }
.tip-name { color: var(--ink-2); }

/* tables */
.table-scroll { border: 0; box-shadow: 0 0 0 1px var(--glass-line), 0 14px 32px -26px rgba(30, 30, 70, .25); background: var(--sheet); }
table { font-family: var(--ai-font); }
table.data thead th, table thead th { background: color-mix(in srgb, var(--sheet) 86%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--ink-3); font: 600 0.75rem var(--ai-font); letter-spacing: .01em; padding-top: 12px; padding-bottom: 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }
table td, table tbody th { border-bottom: 1px solid color-mix(in srgb, var(--ink) 5%, transparent); }
tbody tr:hover td, tbody tr:hover th { background: color-mix(in srgb, var(--series1) 4%, var(--sheet)); }
table.data tbody th, table.data td:first-child { font-weight: 600; }
table .quiet, table small, table .sku, table .sub { color: var(--ink-3); font-weight: 400; }
table.data tfoot td, table.data tfoot th { background: color-mix(in srgb, var(--ink) 2.5%, var(--sheet)); border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
table .delta, table .pill { border-radius: 999px; }
th.sortable { cursor: pointer; }
th.sortable:hover { color: var(--ink); }
th[aria-sort] { color: var(--ink); }

/* the period figures: a cleaner strip */
.period-tiles { overflow: hidden; border-radius: 24px; box-shadow: 0 0 0 1px var(--glass-line), 0 14px 32px -26px rgba(30, 30, 70, .25); border: 0; }
.tile h3, .fig dt { font-family: var(--ai-font); color: var(--ink-2); }
.tile.tab.on { background: color-mix(in srgb, var(--series1) 5%, var(--sheet)); }
.tile .chart-hint { font-family: var(--ai-font); color: var(--ink-3); font-weight: 500; }
.tile.tab:hover .chart-hint { color: var(--series1); }

/* hover breakdowns: keep the values inside the card */
.pk-line { grid-template-columns: minmax(0, 1fr) auto; }
.pk-bar-row { grid-template-columns: 84px minmax(0, 1fr); }
.pk-flow-row { grid-template-columns: 92px minmax(0, 1fr) auto; }
.brief-cmp { align-items: center; }
.brief-cmp .seg-k { padding: 0 6px 0 10px; color: var(--ink-3); font: 600 0.75rem var(--ai-font); white-space: nowrap; }
@media (max-width: 640px) { .brief-bar { justify-content: flex-start; } .brief-cmp { order: 3; } }

/* walkthrough fixes: no gaps between the dimmed pieces; a compact phone card that can sit at the top */
.tour-shade { transition: none !important; }
@media (max-width: 640px) {
  .tour-card { padding: 12px 14px 10px; border-radius: 20px; }
  .tour-t { font-size: 1.0625rem; margin-top: 6px; }
  .tour-b { font-size: 0.875rem; line-height: 1.45; }
  .tour-try { margin-top: 8px; padding: 6px 10px; font-size: 0.8125rem; }
  .tour-prog { margin: 10px 0 8px; }
  .tour-card.at-top, .tour-card.center.at-top { top: calc(8px + env(safe-area-inset-top)) !important; bottom: auto; }
}

/* the Ask Atlas row: one line that scrolls sideways, with its space kept from the start */
.ai-row-slot { height: 36px; margin: -20px 0 28px; }
.ai-row { flex-wrap: nowrap; min-height: 36px; max-width: none; }
.ai-row-chips { display: flex; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; margin: -2px 0 -4px;
  -webkit-mask: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
.ai-row-chips::-webkit-scrollbar { display: none; }
.ai-row .ai-chip { flex: none; white-space: nowrap; }
.ai-row-k { flex: none; }
@media (max-width: 640px) { .ai-row-slot { margin: -12px 0 22px; } .ai-row .ai-chip:not(.lead) { flex: none; } }

/* plans: the locked store switch, the preview banner, and Your plan in Settings */
.seg.site.locked a.up { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-3); }
.seg.site.locked a.up .icon { width: 12px; height: 12px; }
.seg.site.locked a.up:hover { color: var(--ink); }
.plan-preview { position: sticky; top: 8px; z-index: 30; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 0 0 18px; padding: 10px 16px; border-radius: 16px;
  background: color-mix(in srgb, var(--mark) 26%, var(--sheet)); box-shadow: 0 0 0 1px var(--glass-line); font-size: 0.9375rem; }
.plan-preview a { font-weight: 650; }
/* new figures arrived while the page was busy (app.js): one quiet offer to show them */
.fresh-bar { position: fixed; z-index: 60; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; gap: 12px; align-items: center; padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--sheet); color: var(--ink); box-shadow: var(--shadow-pop); font-size: 14px; max-width: calc(100vw - 32px); }
.fresh-bar button { border: 0; border-radius: 999px; padding: 6px 12px; background: var(--ink); color: var(--sheet); font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 900px) { .fresh-bar { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }
.plan-now { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 16px; padding: 18px 22px; border-radius: 22px;
  background: var(--sheet); box-shadow: 0 0 0 1px var(--glass-line); }
.plan-name { margin: 0; font: 700 1.5rem/1.1 var(--ai-display); letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.plan-table td, .plan-table th[scope="col"] { text-align: center; }
.plan-table .on { background: color-mix(in srgb, var(--series1) 6%, var(--sheet)); }
.plan-table .yes .icon { width: 16px; height: 16px; color: var(--good-ink); }
.plan-table .no { color: var(--ink-3); }
.plan-admin { margin-top: 18px; padding: 16px 18px; border-radius: 18px; background: color-mix(in srgb, var(--ink) 3%, var(--sheet)); box-shadow: 0 0 0 1px var(--glass-line); display: grid; gap: 10px; }
.plan-admin h3 { margin: 0; font-size: 1rem; }
.plan-admin form.inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }

/* setup progress */
.setup-card { margin: 0 0 24px; padding: 20px 22px; border-radius: 24px; background: var(--sheet); box-shadow: 0 0 0 1px var(--glass-line), 0 14px 32px -24px rgba(30, 30, 70, .25); position: relative; overflow: hidden; isolation: isolate; }
.setup-card::before { content: ""; position: absolute; z-index: -1; right: -12%; top: -80%; width: 40%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 0deg, var(--ai-colors)); filter: blur(60px); opacity: .14; }
.setup-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.setup-copy { flex: 1 1 280px; min-width: 0; }
.setup-copy h2 { margin: 0; font: 700 1.25rem/1.2 var(--ai-display); letter-spacing: -0.02em; }
.setup-copy p { margin: 4px 0 0; color: var(--ink-2); font-size: 0.9375rem; }
.setup-ring { flex: none; }
.setup-ring .track { fill: none; stroke: rgba(120, 120, 128, .16); stroke-width: 7; }
.setup-ring .fill { fill: none; stroke: var(--series1); stroke-width: 7; stroke-linecap: round; }
.setup-ring text { font: 700 15px var(--ai-font); fill: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .setup-ring .fill { animation: setup-fill 1s cubic-bezier(.2, .8, .2, 1) both; } }
@keyframes setup-fill { from { stroke-dasharray: 0 400; } }
.setup-next { flex: none; }
.setup-more { margin-top: 12px; }
.setup-more summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 0.9375rem; list-style: none; }
.setup-more summary::-webkit-details-marker { display: none; }
.setup-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.setup-step { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 6px; border-top: 1px solid color-mix(in srgb, var(--ink) 6%, transparent); }
.ss-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 2px rgba(120, 120, 128, .3); }
.setup-step.part .ss-dot { box-shadow: inset 0 0 0 2px var(--series1); background: conic-gradient(var(--series1) 0 50%, transparent 0); }
.setup-step.done .ss-dot { box-shadow: none; background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good-ink); }
.ss-dot .icon { width: 14px; height: 14px; }
.ss-t { margin: 0; font-weight: 650; }
.ss-s { margin: 1px 0 0; color: var(--ink-2); font-size: 0.875rem; }
.ss-w { margin: 1px 0 0; color: var(--ink-3); font-size: 0.8125rem; }
.ss-go { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-weight: 600; font-size: 0.875rem; color: var(--accent); text-decoration: none; }
.ss-go .icon { width: 12px; height: 12px; }
.ss-ok { color: var(--good-ink); font-weight: 600; font-size: 0.875rem; }
@media (max-width: 640px) { .setup-step { grid-template-columns: 26px minmax(0, 1fr); } .ss-go, .ss-ok { grid-column: 2; } .setup-next { width: 100%; } }

/* chart colour schemes (Settings → Chart colours). Each leads with a different colour, because most charts
   use only the first one or two. Validated with the dataviz palette checks in light (#fff) and dark (#161b2b). */
:root[data-palette="aurora"] { --series1: #8044cb; --series2: #02a99b; --series3: #e05633; --series4: #0267c7; --series5: #449d2e; --series6: #84377f; --series7: #e19b1b; --series8: #df3c8c; --series1-soft: rgba(128, 68, 203, 0.1); }
@media (prefers-color-scheme: dark) { :root[data-palette="aurora"]:not([data-theme="light"]) { --series1: #9563dd; --series2: #12a195; --series3: #dc5a3a; --series4: #2474cf; --series5: #479933; --series6: #974992; --series7: #c2840f; --series8: #df468f; --series1-soft: rgba(149, 99, 221, 0.14); } }
:root[data-palette="aurora"][data-theme="dark"] { --series1: #9563dd; --series2: #12a195; --series3: #dc5a3a; --series4: #2474cf; --series5: #479933; --series6: #974992; --series7: #c2840f; --series8: #df468f; --series1-soft: rgba(149, 99, 221, 0.14); }
:root[data-palette="meadow"] { --series1: #099864; --series2: #454bc0; --series3: #e56731; --series4: #159996; --series5: #ba3535; --series6: #1f99c7; --series7: #cda609; --series8: #a43687; --series1-soft: rgba(9, 152, 100, 0.1); }
@media (prefers-color-scheme: dark) { :root[data-palette="meadow"]:not([data-theme="light"]) { --series1: #019f68; --series2: #5a66d6; --series3: #d96533; --series4: #039a97; --series5: #c43f3e; --series6: #1f99c7; --series7: #af8f0e; --series8: #b84999; --series1-soft: rgba(1, 159, 104, 0.14); } }
:root[data-palette="meadow"][data-theme="dark"] { --series1: #019f68; --series2: #5a66d6; --series3: #d96533; --series4: #039a97; --series5: #c43f3e; --series6: #1f99c7; --series7: #af8f0e; --series8: #b84999; --series1-soft: rgba(1, 159, 104, 0.14); }
:root[data-palette="sunset"] { --series1: #e8542f; --series2: #0978b5; --series3: #20a04e; --series4: #8e3b94; --series5: #dda317; --series6: #e95c91; --series7: #464dbb; --series8: #18b4b5; --series1-soft: rgba(232, 84, 47, 0.1); }
@media (prefers-color-scheme: dark) { :root[data-palette="sunset"]:not([data-theme="light"]) { --series1: #e05d3d; --series2: #2288c6; --series3: #2a9b4f; --series4: #a550aa; --series5: #bb8800; --series6: #e2568b; --series7: #5863d3; --series8: #14a0a0; --series1-soft: rgba(224, 93, 61, 0.14); } }
:root[data-palette="sunset"][data-theme="dark"] { --series1: #e05d3d; --series2: #2288c6; --series3: #2a9b4f; --series4: #a550aa; --series5: #bb8800; --series6: #e2568b; --series7: #5863d3; --series8: #14a0a0; --series1-soft: rgba(224, 93, 61, 0.14); }
:root[data-palette="electric"] { --series1: #e9208d; --series2: #62b811; --series3: #2955d3; --series4: #e47602; --series5: #0994ba; --series6: #d72630; --series7: #7838db; --series8: #0da995; --series1-soft: rgba(233, 32, 141, 0.1); }
@media (prefers-color-scheme: dark) { :root[data-palette="electric"]:not([data-theme="light"]) { --series1: #e2348d; --series2: #59aa0a; --series3: #3968e8; --series4: #db7206; --series5: #089ac3; --series6: #de3b3d; --series7: #8755e6; --series8: #01a38f; --series1-soft: rgba(226, 52, 141, 0.14); } }
:root[data-palette="electric"][data-theme="dark"] { --series1: #e2348d; --series2: #59aa0a; --series3: #3968e8; --series4: #db7206; --series5: #089ac3; --series6: #de3b3d; --series7: #8755e6; --series8: #01a38f; --series1-soft: rgba(226, 52, 141, 0.14); }
:root[data-palette="okabe"] { --series1: #0072b2; --series2: #c58300; --series3: #009e73; --series4: #c672a1; --series5: #399dd2; --series6: #d55e00; --series7: #7b4f98; --series8: #a09600; --series1-soft: rgba(0, 114, 178, 0.1); }
@media (prefers-color-scheme: dark) { :root[data-palette="okabe"]:not([data-theme="light"]) { --series1: #348dcf; --series2: #c58300; --series3: #009c71; --series4: #c571a0; --series5: #389dd2; --series6: #d35c00; --series7: #885ba6; --series8: #a09600; --series1-soft: rgba(52, 141, 207, 0.14); } }
:root[data-palette="okabe"][data-theme="dark"] { --series1: #348dcf; --series2: #c58300; --series3: #009c71; --series4: #c571a0; --series5: #389dd2; --series6: #d35c00; --series7: #885ba6; --series8: #a09600; --series1-soft: rgba(52, 141, 207, 0.14); }

/* Settings: chart colour picker */
.palette-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.palette-pick > button { grid-column: 1 / -1; justify-self: start; }
.palette-opt { position: relative; display: block; cursor: pointer; }
.palette-opt input { position: absolute; opacity: 0; }
.palette-body { display: grid; gap: 8px; padding: 14px 16px; border-radius: 18px; background: var(--sheet); box-shadow: 0 0 0 1px var(--glass-line); transition: box-shadow .15s ease; }
.palette-opt input:checked + .palette-body { box-shadow: 0 0 0 2px var(--accent), 0 8px 20px -12px rgba(30, 30, 70, .3); }
.palette-opt input:focus-visible + .palette-body { box-shadow: 0 0 0 3px var(--ring); }
.palette-name { font-weight: 650; }
.palette-sw { display: flex; gap: 4px; }
.palette-sw i { flex: 1; height: 18px; border-radius: 5px; }
.palette-note { color: var(--ink-3); font-size: 0.8125rem; line-height: 1.4; }
.palette-sw i:first-child { flex: 3; }  /* the lead colour, the one most charts use */
.palette-sw i.sw-atlas:nth-child(1) { background: #2a78d6; }
.palette-sw i.sw-atlas:nth-child(2) { background: #eb6834; }
.palette-sw i.sw-atlas:nth-child(3) { background: #1baf7a; }
.palette-sw i.sw-atlas:nth-child(4) { background: #eda100; }
.palette-sw i.sw-atlas:nth-child(5) { background: #e87ba4; }
.palette-sw i.sw-atlas:nth-child(6) { background: #008300; }
.palette-sw i.sw-atlas:nth-child(7) { background: #4a3aa7; }
.palette-sw i.sw-atlas:nth-child(8) { background: #e34948; }
.palette-sw i.sw-aurora:nth-child(1) { background: #8044cb; }
.palette-sw i.sw-aurora:nth-child(2) { background: #02a99b; }
.palette-sw i.sw-aurora:nth-child(3) { background: #e05633; }
.palette-sw i.sw-aurora:nth-child(4) { background: #0267c7; }
.palette-sw i.sw-aurora:nth-child(5) { background: #449d2e; }
.palette-sw i.sw-aurora:nth-child(6) { background: #84377f; }
.palette-sw i.sw-aurora:nth-child(7) { background: #e19b1b; }
.palette-sw i.sw-aurora:nth-child(8) { background: #df3c8c; }
.palette-sw i.sw-meadow:nth-child(1) { background: #099864; }
.palette-sw i.sw-meadow:nth-child(2) { background: #454bc0; }
.palette-sw i.sw-meadow:nth-child(3) { background: #e56731; }
.palette-sw i.sw-meadow:nth-child(4) { background: #159996; }
.palette-sw i.sw-meadow:nth-child(5) { background: #ba3535; }
.palette-sw i.sw-meadow:nth-child(6) { background: #1f99c7; }
.palette-sw i.sw-meadow:nth-child(7) { background: #cda609; }
.palette-sw i.sw-meadow:nth-child(8) { background: #a43687; }
.palette-sw i.sw-sunset:nth-child(1) { background: #e8542f; }
.palette-sw i.sw-sunset:nth-child(2) { background: #0978b5; }
.palette-sw i.sw-sunset:nth-child(3) { background: #20a04e; }
.palette-sw i.sw-sunset:nth-child(4) { background: #8e3b94; }
.palette-sw i.sw-sunset:nth-child(5) { background: #dda317; }
.palette-sw i.sw-sunset:nth-child(6) { background: #e95c91; }
.palette-sw i.sw-sunset:nth-child(7) { background: #464dbb; }
.palette-sw i.sw-sunset:nth-child(8) { background: #18b4b5; }
.palette-sw i.sw-electric:nth-child(1) { background: #e9208d; }
.palette-sw i.sw-electric:nth-child(2) { background: #62b811; }
.palette-sw i.sw-electric:nth-child(3) { background: #2955d3; }
.palette-sw i.sw-electric:nth-child(4) { background: #e47602; }
.palette-sw i.sw-electric:nth-child(5) { background: #0994ba; }
.palette-sw i.sw-electric:nth-child(6) { background: #d72630; }
.palette-sw i.sw-electric:nth-child(7) { background: #7838db; }
.palette-sw i.sw-electric:nth-child(8) { background: #0da995; }
.palette-sw i.sw-okabe:nth-child(1) { background: #0072b2; }
.palette-sw i.sw-okabe:nth-child(2) { background: #c58300; }
.palette-sw i.sw-okabe:nth-child(3) { background: #009e73; }
.palette-sw i.sw-okabe:nth-child(4) { background: #c672a1; }
.palette-sw i.sw-okabe:nth-child(5) { background: #399dd2; }
.palette-sw i.sw-okabe:nth-child(6) { background: #d55e00; }
.palette-sw i.sw-okabe:nth-child(7) { background: #7b4f98; }
.palette-sw i.sw-okabe:nth-child(8) { background: #a09600; }

/* ---------------------------------------------------------------- the last old pieces, brought in line
   Sentence case everywhere (no all-caps labels), glass behind the sticky filters, the Overview
   season chart in a panel like every other chart, bigger phone tap targets, zoomed charts at a
   readable size, and the Overview's "things for today" in the same style as the rest. */
.pick-h, .ac-label, .rc-eyebrow, .ri-k, .td-k, .ag-eyebrow { text-transform: none; letter-spacing: 0; }
.td-k, .ri-k, .rc-eyebrow, .pick-h { font-family: var(--ai-font); font-weight: 600; }
.period-bar, .overview-filters { background: color-mix(in srgb, var(--paper) 78%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); border-radius: 0 0 18px 18px; }
figure.season-strip { padding: 22px 24px; border-radius: 24px; background: var(--sheet); box-shadow: 0 0 0 1px var(--glass-line), 0 14px 32px -24px rgba(30, 30, 70, .22); }
.zoom-body svg.chart { max-width: 1100px; margin: 0 auto; display: block; }
.pw-wrap input { width: 100%; }
.ag-today { box-shadow: 0 0 0 1px var(--glass-line), 0 14px 32px -24px rgba(30, 30, 70, .22); border: 0; }
.ag-today-head h2 { font-family: var(--ai-display); }
.ag-today-head .ai-orb { width: 36px; height: 36px; }
.ag-today-list a { background: color-mix(in srgb, var(--ink) 2.5%, var(--sheet)); border: 0; box-shadow: 0 0 0 1px var(--glass-line); border-radius: 16px; font-family: var(--ai-font);
  transition: transform .2s cubic-bezier(.2, 1.2, .4, 1), box-shadow .2s ease, background-color .2s ease; }
.ag-today-list a:hover { transform: translateY(-1px); background: var(--sheet); box-shadow: 0 0 0 1px color-mix(in srgb, var(--series1) 35%, var(--glass-line)), 0 8px 22px -12px rgba(30, 40, 90, .3); border-color: transparent; }
.ag-today-list a:active { transform: scale(.99); }
.ag-n { border-radius: 50%; font-family: var(--ai-font); }
@media (max-width: 860px) {
  .topbar-end button, .topbar-end .ask-btn, .theme-switch button, .refresh-form button, .topbar .back { min-height: 40px; min-width: 40px; }
  .seg a, .seg span, .seg button, .chart-switches .seg a { min-height: 40px; display: inline-flex; align-items: center; }
  .zoom-btn { width: 36px !important; height: 36px !important; }
  .ask-fig { width: 32px; height: 32px; }
}

/* Breakdown pop-ups glide (1 Oct). No blur behind (the box is near-solid anyway, and blurring
   a large area while it fades is what made it stutter); one movement, from the side it opens
   on; the parts no longer rise one by one; closing fades out; moving to the next card swaps
   the contents in place. */
.peek { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--sheet); will-change: opacity, transform;
  transition: opacity .2s cubic-bezier(.2, .8, .2, 1), transform .26s cubic-bezier(.2, .8, .2, 1); transform: translateY(6px) scale(.97); }
.peek[data-from="above"] { transform: translateY(-6px) scale(.97); transform-origin: bottom center; }
.peek[data-from="right"] { transform: translateX(-6px) scale(.97); transform-origin: left center; }
.peek[data-from="left"] { transform: translateX(6px) scale(.97); transform-origin: right center; }
.peek.in { transform: none; }
.peek > * { transition: opacity .09s ease; }
.peek.swap > * { opacity: 0; }
.peek.in .pk-part { animation: none; }
@media (prefers-reduced-motion: reduce) { .peek, .peek[data-from] { transform: none; transition: opacity .12s linear; } }
.peek.sheet { transform: translateY(16px); } .peek.sheet.in { transform: none; }
/* Figure tiles say both things they do: click to chart, hover for the breakdown */
.tile .chart-hint { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 6px 0 0; color: var(--ink-3); font-weight: 500; }
.tile .chart-hint span { white-space: nowrap; }
.tile .ch-hover { color: var(--ink-3); font-weight: 500; }
.tile.tab.on .ch-click { color: var(--ink); font-weight: 650; }
.tile.tab:hover .ch-click { color: var(--series1); }
.tile.tab:hover .chart-hint { color: var(--ink-3); }
@media (hover: none) { .tile .ch-hover { display: none; } }

/* ---------------------------------------------------------------- bars, the new way (1 Oct)
   One bar per date with last year as a dashed outline behind it (the gap reads off the bar),
   pill tops, a soft sheen, the busiest bar's value in a chip, the axis in the app's own type,
   and hover lifts one bar while the rest step back. */
.chart.cols .ghost, .strip .ghost { fill: color-mix(in srgb, var(--cmp) 55%, transparent); stroke: var(--cmp-line); stroke-width: 1.25; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.chart.cols .bar-g:hover .ghost, .chart.cols .bar-g.on .ghost { fill: color-mix(in srgb, var(--cmp) 80%, transparent); stroke: var(--ink-3); stroke-dasharray: 3 3; }
.chart .prior-mark { stroke: var(--sheet); stroke-width: 2; stroke-linecap: round; opacity: .9; pointer-events: none; }
/* scoped to the column charts (polish audit X2): an unscoped `.chart .bar` beat the fill attribute on
   every other chart's bars, so the waterfall, stacked and comparison bars all drew in series 1 */
.chart.cols .bar { fill: var(--series1); }
.chart.cols .bar.peak { fill: var(--series1); }
.chart.cols .bar-g:hover .bar, .chart.cols .bar-g:focus-visible .bar { fill: color-mix(in srgb, var(--series1) 84%, var(--ink)); }
.chart .bar-g:hover .hit, .chart .bar-g.on .hit { fill: color-mix(in srgb, var(--series1) 6%, transparent); }
svg.chart:hover .bar-g:not(:hover) .bar { opacity: .42; }
svg.chart:hover .bar-g:not(:hover) .ghost { opacity: .5; }
.chart .peak-chip rect { fill: var(--ink); }
.chart .peak-chip .peak-label, .chart.cols .peak-chip .peak-label { fill: var(--sheet); stroke: none; font: 650 11px var(--ai-font); }
svg.chart:hover .peak-chip { opacity: 0; transition: opacity .15s; }
.chart .tick, .strip .tick { font: 500 11px var(--ai-font); fill: var(--ink-3); }
.chart .grid { stroke: var(--rule-soft); stroke-dasharray: 2 4; }
.chart .baseline { stroke: var(--rule); }
.chart .avg { stroke: var(--ink-3); stroke-dasharray: 4 4; opacity: .7; }
.chart .bar-g.clickable { cursor: pointer; }
.chart .bar-g.clickable:focus-visible .hit { fill: color-mix(in srgb, var(--series1) 12%, transparent); }
.chart .flag-star { font: 600 13px var(--ai-font); fill: var(--warning, #c98500); pointer-events: none; }
.legend { font-family: var(--ai-font); font-size: 0.8125rem; gap: 6px 10px; }
.legend li { padding: 4px 10px 4px 8px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 4%, transparent); }
.legend .swatch { width: 10px; height: 10px; border-radius: 3px; }
.legend .swatch.sw-cmp { background: color-mix(in srgb, var(--cmp) 55%, transparent); box-shadow: inset 0 0 0 1.25px var(--cmp-line); }
figure.month-chart { padding: 22px 24px 18px; border-radius: 24px; background: var(--sheet); box-shadow: 0 0 0 1px var(--glass-line), 0 14px 32px -24px rgba(30, 30, 70, .22); border: 0; }
figure.month-chart figcaption h3 { font-family: var(--ai-display, var(--display)); }
.chart-key { font-family: var(--ai-font); }
.key-solid { border-radius: 4px; }
.key-ghost { background: color-mix(in srgb, var(--cmp) 55%, transparent); border: 1.25px dashed var(--cmp-line); border-radius: 4px; }
.chart .prior-mark { stroke-width: 1.5; opacity: .55; transition: opacity .15s; }
.chart .bar-g:hover .prior-mark { opacity: 1; }

/* Click-throughs on the customer charts (1 Oct): small bars in the pop-up, the best year
   flagged, and a plain note that insight is only as good as the data behind it. */
.qbars { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; gap: 8px; font-family: var(--ai-font); }
.qbars li { display: grid; grid-template-columns: minmax(96px, 9rem) 1fr auto auto; align-items: center; gap: 10px; font-size: 0.875rem; }
.qbars .qb-l { color: var(--ink-2); }
.qbars .qb-t { height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent); overflow: hidden; }
.qbars .qb-t i { display: block; height: 100%; border-radius: 999px; background: var(--series1); }
.qbars .qb-v { font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.qbars .qb-s { font-size: 0.8125rem; text-align: right; font-variant-numeric: tabular-nums; min-width: 4.5rem; }
.qbars li.best .qb-l { color: var(--ink); font-weight: 650; }
.qb-t i.w-0 { width: 0%; }
.qb-t i.w-5 { width: 5%; }
.qb-t i.w-10 { width: 10%; }
.qb-t i.w-15 { width: 15%; }
.qb-t i.w-20 { width: 20%; }
.qb-t i.w-25 { width: 25%; }
.qb-t i.w-30 { width: 30%; }
.qb-t i.w-35 { width: 35%; }
.qb-t i.w-40 { width: 40%; }
.qb-t i.w-45 { width: 45%; }
.qb-t i.w-50 { width: 50%; }
.qb-t i.w-55 { width: 55%; }
.qb-t i.w-60 { width: 60%; }
.qb-t i.w-65 { width: 65%; }
.qb-t i.w-70 { width: 70%; }
.qb-t i.w-75 { width: 75%; }
.qb-t i.w-80 { width: 80%; }
.qb-t i.w-85 { width: 85%; }
.qb-t i.w-90 { width: 90%; }
.qb-t i.w-95 { width: 95%; }
.qb-t i.w-100 { width: 100%; }
.qb-t i.w-0 { width: 2px; }
.best-tag { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font: 600 0.75rem var(--ai-font);
  color: color-mix(in srgb, #8a5a00 88%, var(--ink)); background: color-mix(in srgb, #eda100 18%, var(--sheet)); vertical-align: middle; white-space: nowrap; }
tr.best th, tr.best td { background: color-mix(in srgb, #eda100 6%, transparent); }
tr.row-open th a { color: inherit; text-decoration: none; border-bottom: 1px dashed var(--rule-strong); }
tr.row-open th a:hover { color: var(--series1); border-bottom-color: currentColor; }
.best-year { display: flex; gap: 14px; align-items: flex-start; margin: 12px 0 16px; padding: 14px 16px; border-radius: 18px; font-family: var(--ai-font);
  background: linear-gradient(135deg, color-mix(in srgb, #eda100 10%, var(--sheet)), var(--sheet)); box-shadow: 0 0 0 1px color-mix(in srgb, #eda100 28%, var(--glass-line)); }
.best-year .by-star { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, #eda100 22%, var(--sheet)); color: #b67a00; font-size: 1.05rem; }
.best-year p { margin: 0; } .best-year .by-t { color: var(--ink); } .best-year .by-s { margin-top: 4px; color: var(--ink-2); font-size: 0.875rem; }
.best-year .by-acts { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.data-caveat { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; color: var(--ink-3); font: 0.8125rem/1.45 var(--ai-font); }
.data-caveat .icon, .data-caveat svg { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.chart-foot { margin: 6px 0 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .best-tag { color: #f2c35a; background: color-mix(in srgb, #c98500 26%, var(--sheet)); } :root:not([data-theme="light"]) .best-year .by-star { color: #f2c35a; } }
:root[data-theme="dark"] .best-tag { color: #f2c35a; background: color-mix(in srgb, #c98500 26%, var(--sheet)); } :root[data-theme="dark"] .best-year .by-star { color: #f2c35a; }
.btn.small { min-height: 34px; padding: 6px 14px; font-size: 0.875rem; border-radius: 999px; }
.quick-two .qbars li { grid-template-columns: minmax(0, 1fr) 72px auto auto; gap: 8px; }
.quick-inner > section + section, .quick-inner > section + .quick-foot { margin-top: 18px; }
/* What Atlas can't see yet, under findings */
.gap-note { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 14px; padding: 12px 14px; border-radius: 16px; font: 0.875rem/1.5 var(--ai-font); color: var(--ink-2);
  background: color-mix(in srgb, var(--series1) 5%, var(--sheet)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--series1) 16%, var(--glass-line)); }
.gap-note p { margin: 0; } .gap-note strong { color: var(--ink); font-weight: 600; }
.gap-note a { font-weight: 600; }
.gap-note .setup-ring { flex: none; } .gap-note .setup-ring text { font-size: 11px; }
.tiles-how { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; color: var(--ink-3); font: 0.8125rem var(--ai-font); }
.tiles-how svg, .tiles-how .icon { width: 15px; height: 15px; flex: none; }
@media (hover: none) { .tiles-how .how-hover { display: none; } }

/* ---------------------------------------------------------------- plans (1 Oct)
   Under each finding: make it a plan, or see how far it's got (a bar of steps, the next one,
   and the checklist on demand). The same checklist on the work queue. */
.plan-wrap { margin-top: 10px; font-family: var(--ai-font); }
.plan-start { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.plan-go { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 14px; border-radius: 999px; font: 600 0.8125rem var(--ai-font);
  color: var(--ink); background: color-mix(in srgb, var(--series1) 9%, var(--sheet)); border: 0; box-shadow: 0 0 0 1px color-mix(in srgb, var(--series1) 30%, var(--glass-line)); cursor: pointer;
  transition: transform .18s cubic-bezier(.2, 1.2, .4, 1), box-shadow .18s ease; }
.plan-go:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--series1), 0 6px 16px -10px rgba(30, 60, 140, .45); }
.plan-go svg, .plan-go .icon { width: 15px; height: 15px; color: var(--series1); }
.plan-live { border-radius: 14px; background: color-mix(in srgb, var(--ink) 3%, var(--sheet)); box-shadow: 0 0 0 1px var(--glass-line); }
.plan-live > summary { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 14px; cursor: pointer; font-size: 0.8125rem; }
.plan-live > summary::-webkit-details-marker { display: none; }
.plan-state { font-weight: 650; color: var(--series1); }
.plan-live.complete .plan-state { color: var(--good-ink, #1a7f4b); }
.plan-n { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.plan-next { color: var(--ink-3); flex-basis: 100%; }
.plan-bar { display: inline-flex; gap: 3px; }
.plan-bar i { width: 22px; height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 12%, transparent); transition: background-color .3s ease; }
.plan-bar i.on { background: var(--series1); }
.plan-live.complete .plan-bar i.on { background: var(--good, #1baf7a); }
.plan-steps { list-style: none; margin: 0; padding: 4px 14px 6px; display: grid; gap: 2px; }
.plan-steps li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; border-top: 1px solid var(--glass-line); font-size: 0.875rem; }
.plan-steps li:first-child { border-top: 0; }
.plan-tick { margin: 0; }
.plan-tick .tick { width: 22px; height: 22px; min-height: 0; padding: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--sheet); border: 1.5px solid var(--rule-strong); color: #fff; transition: background-color .2s ease, border-color .2s ease, transform .15s ease; }
.plan-tick .tick:hover:not([disabled]) { border-color: var(--series1); transform: scale(1.06); }
.plan-tick .tick[aria-pressed="true"] { background: var(--series1); border-color: var(--series1); }
.plan-tick .tick[disabled] { cursor: default; opacity: 1; }
.plan-tick .tick svg, .plan-tick .tick .icon { width: 13px; height: 13px; color: #fff; }
.plan-steps li.done .ps-title, .plan-steps li.done .ps-title a { color: var(--ink-3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-3) 50%, transparent); }
.ps-t { display: grid; gap: 1px; padding-top: 1px; }
.ps-t a { color: var(--ink); text-decoration: none; border-bottom: 1px dashed var(--rule-strong); justify-self: start; }
.ps-auto, .ps-who { font-size: 0.75rem; color: var(--ink-3); text-decoration: none; }
.ps-auto { color: var(--series1); font-weight: 600; }
.plan-foot { margin: 0; padding: 4px 14px 12px; font-size: 0.8125rem; }
.plan-foot form.inline { display: inline; }
.plan-sum { display: flex; align-items: center; gap: 10px; margin: 4px 0 2px; font-size: 0.8125rem; }
.task .plan-steps { padding: 4px 0; }

/* Live traffic: set-up steps fold away once every site is live */
.setup-steps-fold > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 4px; font: 600 0.875rem var(--ai-font); color: var(--ink-2); list-style: none; }
.setup-steps-fold > summary::-webkit-details-marker { display: none; }
.setup-steps-fold > summary::before { content: ""; width: 7px; height: 7px; border-right: 1.75px solid currentColor; border-bottom: 1.75px solid currentColor; transform: rotate(-45deg); transition: transform .2s ease; }
.setup-steps-fold[open] > summary::before { transform: rotate(45deg); }
.setup-steps-fold > summary:hover { color: var(--ink); }
/* Phones: pressing on a chart or card opens its breakdown, never the text-selection magnifier */
@media (hover: none) {
  svg.chart, svg.chart text, [data-peek], .peek, .pk-donut, .ring-wrap, .tile { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
}

/* ---------------------------------------------------------------- Atlas learns your business (1 Oct)
   A full-screen moment: the orb button, then the real counts ticking up on a dark ground, the
   year's bars growing with the season lit, then the page of what Atlas has learned. */
.lx-body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font-family: var(--ai-font); overflow-x: hidden; }
.lx-body.lx-js:not([data-stage="reveal"]) { overflow: hidden; }
.lx-close { position: fixed; top: 18px; right: 22px; z-index: 5; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font-size: 22px; line-height: 1; text-decoration: none;
  color: var(--ink-2); background: color-mix(in srgb, var(--sheet) 70%, transparent); box-shadow: 0 0 0 1px var(--glass-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lx-skip { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 5; min-height: 40px; padding: 8px 18px; border-radius: 999px; border: 0; cursor: pointer; font: 600 0.875rem var(--ai-font);
  color: #fff; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.lx-body[data-stage="start"] .lx-skip { display: none; }
.lx-stage { position: fixed; top: 0; left: 0; right: 0; bottom: 0; height: 100vh; height: 100dvh; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 32px 24px; box-sizing: border-box; text-align: center; }
.lx-stage[hidden] { display: none; }
.lx-body:not(.lx-js) .lx-stage { display: none; }
.lx-body.lx-js .lx-reveal { display: none; }
.lx-body.lx-js[data-stage="reveal"] .lx-reveal { display: block; animation: lx-rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.lx-start { background: radial-gradient(600px 420px at 50% 56%, rgba(122, 92, 255, .14), transparent 70%), radial-gradient(480px 340px at 58% 62%, rgba(255, 95, 158, .09), transparent 70%), var(--paper); }
.lx-kicker { margin: 0; color: var(--ink-2); font-size: 1rem; }
.lx-start h1 { margin: 0; max-width: 760px; font: 700 clamp(2.2rem, 5vw, 3.6rem)/1.04 var(--ai-display); letter-spacing: -0.035em; }
.lx-hint { margin: 0; color: var(--ink-2); font-size: 0.9375rem; }
.lx-go { position: relative; margin: 14px 0 4px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.lx-go:focus-visible { outline: 3px solid var(--series1); outline-offset: 8px; }
.lx-orb { position: relative; display: inline-block; border-radius: 50%; flex: none; }
.lx-orb.xl { width: 220px; height: 220px; } .lx-orb.lg { width: 180px; height: 180px; } .lx-orb.sm { width: 46px; height: 46px; } .lx-orb.xs { width: 24px; height: 24px; }
.lx-orb > span { position: absolute; border-radius: 50%; }
.lx-orb-glow { inset: -14%; background: var(--ai-spectrum); filter: blur(28px); opacity: .55; }
.lx-orb-ring { inset: 0; background: var(--ai-spectrum); filter: blur(4px) saturate(1.2); }
.lx-orb-glass { inset: 10%; background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .35) 34%, rgba(255, 255, 255, .06) 62%), radial-gradient(circle at 72% 78%, rgba(80, 60, 220, .5), transparent 60%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.lx-orb.sm .lx-orb-glow, .lx-orb.xs .lx-orb-glow { display: none; } .lx-orb.xs .lx-orb-ring { filter: blur(1.5px); }
@media (prefers-reduced-motion: no-preference) {
  .lx-go .lx-orb { animation: lx-breathe 4.6s ease-in-out infinite; }
  .lx-go .lx-orb-ring, .lx-orb.spinning .lx-orb-ring { animation: lx-spin 12s linear infinite; }
  .lx-go::before, .lx-go::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(122, 92, 255, .45); animation: lx-halo 3.2s ease-out infinite; pointer-events: none; }
  .lx-go::after { border-color: rgba(255, 95, 158, .4); animation-delay: 1.6s; }
  .lx-orb.breathing { animation: lx-breathe 3.4s ease-in-out infinite; } .lx-orb.breathing .lx-orb-ring { animation: lx-spin 5s linear infinite; }
}
@keyframes lx-spin { to { transform: rotate(360deg); } }
@keyframes lx-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes lx-halo { 0% { opacity: .55; transform: scale(.92); } 70%, 100% { opacity: 0; transform: scale(1.38); } }
@keyframes lx-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* dark stages */
.lx-dark { background: radial-gradient(520px 380px at 50% 30%, rgba(122, 92, 255, .28), transparent 70%), radial-gradient(420px 300px at 58% 38%, rgba(255, 95, 158, .16), transparent 70%), #0b0d14; color: #f3f2ee; }
.lx-dark h2 { margin: 0; font: 700 clamp(1.8rem, 4vw, 2.75rem)/1.08 var(--ai-display); letter-spacing: -0.03em; }
.lx-dark .lx-sub { margin: 0; color: #b6b2aa; }
.lx-lines { list-style: none; margin: 8px 0 0; padding: 0; width: min(560px, 100%); display: grid; gap: 4px; text-align: left; }
.lx-lines li { display: grid; grid-template-columns: 24px minmax(76px, auto) 1fr; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; transition: background-color .3s ease, opacity .3s ease; }
.lx-lines li.wait { opacity: .38; } .lx-lines li.active { background: rgba(255, 255, 255, .07); }
.lx-tick { width: 24px; height: 24px; border-radius: 50%; box-sizing: border-box; border: 1.5px dashed rgba(255, 255, 255, .3); }
.lx-lines li.active .lx-tick { border: 2.5px solid rgba(255, 255, 255, .18); border-top-color: #c45cf0; animation: lx-spin .8s linear infinite; }
.lx-lines li.done .lx-tick { border: 0; background: #1baf7a center / 13px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E"); }
.lx-num { font: 700 1.375rem var(--ai-display); letter-spacing: -0.02em; text-align: right; font-variant-numeric: tabular-nums; }
.lx-text { font-size: 1rem; color: #d9d6cf; }
.lx-bar { width: min(560px, 100%); height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.lx-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #3d8bff, #7a5cff, #c45cf0, #ff5f9e, #ff8a3d); transition: width .5s ease; }
/* patterns */
.lx-patterns { justify-content: flex-start; padding: 64px clamp(20px, 6vw, 96px) 80px; gap: 28px; }
.lx-pat-head { display: flex; align-items: center; gap: 16px; align-self: stretch; text-align: left; }
.lx-chart { position: relative; align-self: stretch; flex: 1 1 auto; min-height: 260px; max-height: 460px; display: flex; flex-direction: column; gap: 12px; padding: 26px 30px 20px; border-radius: 28px; text-align: left;
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.lx-chart-t { margin: 0; display: flex; justify-content: space-between; color: #d9d6cf; font-size: 0.9375rem; } .lx-chart-t span { color: #b6b2aa; }
.lx-bars { flex: 1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(6px, 1.4vw, 18px); align-items: end; padding-top: 34px; }
.lx-col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; border-radius: 16px; transition: background-color .8s ease, box-shadow .8s ease; }
.lx-col i { display: block; width: min(44px, 100%); height: 0; border-radius: 10px 10px 4px 4px; background: rgba(255, 255, 255, .24); transition: height .7s cubic-bezier(.2, .8, .2, 1), background .8s ease; }
.lx-col span { font-size: 0.8125rem; color: #b6b2aa; }
.lx-patterns.lit .lx-col.in { background: rgba(196, 92, 240, .12); box-shadow: inset 0 0 0 1px rgba(196, 92, 240, .3); }
.lx-patterns.lit .lx-col.in i { background: linear-gradient(180deg, #7a5cff, #3d8bff); }
.lx-season-tag { position: absolute; top: 58px; left: 30px; margin: 0; padding: 4px 11px; border-radius: 999px; background: #c45cf0; color: #fff; font-size: 0.8125rem; font-weight: 600; opacity: 0; transition: opacity .6s ease .3s; }
.lx-patterns.lit .lx-season-tag { opacity: 1; }
.lx-found { align-self: stretch; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; text-align: left; }
.lx-card { padding: 18px 20px; border-radius: 20px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.lx-card.in { opacity: 1; transform: none; }
.lx-card p { margin: 0; } .lx-card-k { font-size: 0.8125rem; font-weight: 600; color: #c9a8ff; } .lx-card-t { margin-top: 4px !important; font: 650 1.25rem var(--ai-display); letter-spacing: -0.02em; }
.lx-card-s { margin-top: 4px !important; color: #b6b2aa; font-size: 0.9375rem; }
/* the page of what Atlas learned */
.lx-reveal { max-width: 1120px; margin: 0 auto; padding: 72px 24px 88px; box-sizing: border-box; }
.lx-body[data-stage="reveal"], .lx-body:not(.lx-js) { background: radial-gradient(900px 420px at 18% 0%, rgba(122, 92, 255, .13), transparent 70%) no-repeat, radial-gradient(700px 360px at 75% 6%, rgba(255, 138, 61, .08), transparent 70%) no-repeat, var(--paper); }
.lx-ai { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.lx-rev-head h1 { margin: 0; max-width: 900px; font: 700 clamp(2.4rem, 5.4vw, 4rem)/1.02 var(--ai-display); letter-spacing: -0.04em; }
.lx-summary { margin: 20px 0 6px; max-width: 820px; font-size: 1.25rem; line-height: 1.55; color: var(--ink); }
.lx-note, .lx-small { margin: 0; font-size: 0.8125rem; color: var(--ink-3); }
.lx-figs { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 2px solid var(--ink); }
.lx-figs > div { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px 18px 0; }
.lx-figs > div + div { padding-left: 22px; border-left: 1px solid var(--rule); }
.lx-figs span { font-size: 0.875rem; color: var(--ink-2); } .lx-figs strong { font: 700 2.4rem var(--ai-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.lx-figs em { font-style: normal; font-size: 0.875rem; } .lx-figs em.good { color: var(--good-ink); } .lx-figs em.bad { color: var(--bad-ink); } .lx-figs em.quiet { color: var(--ink-2); }
.lx-sec, .lx-two, .lx-todo, .lx-cant { margin-top: 48px; }
.lx-reveal h2 { margin: 0 0 16px; font: 700 1.75rem var(--ai-display); letter-spacing: -0.025em; }
.lx-answers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 14px; margin-bottom: 10px; }
.lx-answer { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; border-radius: 20px; background: var(--sheet); box-shadow: 0 0 0 1px var(--glass-line); }
.lx-q { font-size: 0.875rem; color: var(--ink-2); } .lx-answer strong { font-size: 1.25rem; font-weight: 650; }
.lx-sure { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 0.875rem; color: var(--ink-3); }
.lx-sure b { color: var(--ink); font-weight: 600; }
.lx-dots { display: inline-flex; gap: 3px; } .lx-dots i { width: 18px; height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 14%, transparent); }
.lx-sure.s1 .lx-dots i:nth-child(-n+1), .lx-sure.s2 .lx-dots i:nth-child(-n+2), .lx-sure.s3 .lx-dots i { background: #1baf7a; }
.lx-sure.s3 b, .lx-sure.s2 b { color: var(--good-ink); }
.lx-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.lx-two ul { list-style: none; margin: 0; padding: 0; }
.lx-two li { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--rule); font-size: 1rem; line-height: 1.5; }
.lx-two li::before { flex: none; font-weight: 700; } .lx-two li.up::before { content: "↑"; color: #1baf7a; } .lx-two li.down::before { content: "↓"; color: #e34948; }
.lx-todo { padding: 30px 32px; border-radius: 28px; background: #1c1b19; color: #f3f2ee; }
.lx-todo ol { list-style: none; counter-reset: lx; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.lx-todo li { counter-increment: lx; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 18px; background: rgba(255, 255, 255, .07); }
.lx-todo li::before { content: counter(lx); font: 700 1.75rem var(--ai-display); color: #c9a8ff; }
.lx-todo p { margin: 0; line-height: 1.5; } .lx-todo a { color: #fff; font-weight: 600; font-size: 0.875rem; }
.lx-cant { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 26px; border-radius: 20px; background: var(--sheet); box-shadow: 0 0 0 1px color-mix(in srgb, var(--series1) 30%, var(--glass-line)); }
.lx-cant p { margin: 4px 0 0; color: var(--ink-2); } .lx-cant .btn { flex: none; }
.lx-end { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; }
.lx-open { min-height: 52px; padding: 14px 32px; border-radius: 999px; font-size: 1.0625rem; }
.lx-again { color: var(--ink-2); }
@media (max-width: 640px) {
  .lx-figs > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .lx-cant { flex-direction: column; align-items: flex-start; }
  .lx-orb.xl { width: 170px; height: 170px; } .lx-orb.lg { width: 130px; height: 130px; }
  .lx-lines li { grid-template-columns: 24px minmax(60px, auto) 1fr; padding: 10px 12px; }
  .lx-patterns { padding: 64px 16px 80px; } .lx-chart { padding: 20px 14px 14px; } .lx-season-tag { left: 14px; }
}
/* Settings: the way in */
.learn-entry { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border-radius: 20px; text-decoration: none; color: var(--ink);
  background: radial-gradient(300px 140px at 12% 50%, rgba(122, 92, 255, .12), transparent 70%), var(--sheet); box-shadow: 0 0 0 1px var(--glass-line); transition: transform .2s cubic-bezier(.2, 1.2, .4, 1), box-shadow .2s ease; }
.learn-entry:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px color-mix(in srgb, #7a5cff 40%, var(--glass-line)), 0 10px 26px -14px rgba(60, 40, 160, .4); }
.learn-entry .ai-orb { width: 48px; height: 48px; }
.learn-entry strong { display: block; font: 650 1.0625rem var(--ai-font); } .learn-entry span.le-s { color: var(--ink-2); font-size: 0.875rem; }

.lx-body[data-stage="learning"], .lx-body[data-stage="patterns"] { background: #0b0d14; }
.lx-stage, .lx-reveal section { margin: 0; } .lx-reveal .lx-sec, .lx-reveal .lx-two, .lx-reveal .lx-todo, .lx-reveal .lx-cant { margin-top: 48px; } .lx-reveal .lx-figs { margin-top: 44px; }
@media (max-width: 640px) {
  .lx-patterns { overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: 110px; }
  .lx-chart { flex: none; height: 300px; }
  .lx-col span { font-size: 0.6875rem; }
  .lx-skip { font-size: 0.8125rem; padding: 8px 14px; white-space: nowrap; background: rgba(20, 22, 30, .85); }
}

/* ---------------------------------------------------------------- the welcome wizard (1 Oct)
   One idea per screen, large tappable choices, a segmented progress bar, connections inside
   the steps with a live "is it arriving?" pill, and the orb to finish. */
.wz-body { margin: 0; min-height: 100vh; font-family: var(--ai-font); color: var(--ink);
  background: radial-gradient(900px 420px at 15% -10%, rgba(122, 92, 255, .10), transparent 70%) no-repeat, radial-gradient(700px 380px at 90% 0%, rgba(54, 198, 168, .07), transparent 70%) no-repeat, var(--paper); }
.wz-top { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 16px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--paper) 82%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); }
.wz-brand { font: 700 1.25rem var(--ai-display); letter-spacing: -0.02em; }
.wz-progress { list-style: none; margin: 0 auto; padding: 0; display: flex; gap: 5px; width: min(420px, 100%); }
.wz-progress li { flex: 1; height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 10%, transparent); transition: background-color .35s ease; }
.wz-progress li.done { background: var(--series1); } .wz-progress li.now { background: linear-gradient(90deg, var(--series1), #c45cf0); }
.wz-body[data-step="0"] .wz-progress, .wz-body[data-step="8"] .wz-progress { visibility: hidden; }
.wz-skip { min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); font: 600 0.875rem var(--ai-font); cursor: pointer; }
.wz-skip:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.wz-preview { max-width: 760px; margin: 8px auto 0; padding: 10px 14px; border-radius: 12px; font-size: 0.875rem; color: var(--ink-2); background: color-mix(in srgb, var(--series1) 7%, var(--sheet)); }
.wz { max-width: 760px; margin: 0 auto; padding: 32px 20px 80px; box-sizing: border-box; }
.wz-js .wz-step[hidden] { display: none; }
.wz-js .wz-step.on { animation: lx-rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.wz-body:not(.wz-js) .wz-step + .wz-step { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--rule); }
.wz-step { margin: 0; }
.wz-count { margin: 12px 0 6px; font-size: 0.875rem; font-weight: 600; color: var(--series1); }
.wz-h { margin: 0; font: 700 clamp(2rem, 4.6vw, 3rem)/1.05 var(--ai-display); letter-spacing: -0.035em; }
.wz-lede { margin: 12px 0 0; font-size: 1.125rem; line-height: 1.5; color: var(--ink-2); max-width: 620px; }
.wz-hello, .wz-ready { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-top: 24px; }
.wz-hello .wz-lede, .wz-ready .wz-lede { margin: 0 auto; }
.wz-promise { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; text-align: left; width: 100%; max-width: 560px; }
.wz-promise li { padding: 14px 16px; border-radius: 16px; background: var(--sheet); box-shadow: 0 0 0 1px var(--glass-line); line-height: 1.45; color: var(--ink-2); }
.wz-promise strong { color: var(--ink); }
.wz-honest { margin: 6px 0 0; max-width: 560px; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); }
.wz-plan { margin: 0; font-size: 0.875rem; color: var(--ink-3); }
.wz-q { margin: 30px 0 0; padding: 0; border: 0; min-width: 0; }
.wz-q legend { padding: 0; font: 650 1.1875rem var(--ai-font); letter-spacing: -0.01em; }
.wz-help { margin: 4px 0 0; font-size: 0.875rem; color: var(--ink-3); }
.wz-opt-tag { margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; color: var(--ink-3); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.wz-opts { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.wz-q.compact .wz-opts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.wz-opt { position: relative; display: block; cursor: pointer; }
.wz-opt input { position: absolute; opacity: 0; pointer-events: none; }
.wz-opt-in { display: grid; grid-template-columns: 20px 1fr; column-gap: 10px; row-gap: 2px; align-items: start; min-height: 56px; box-sizing: border-box; padding: 14px 14px; border-radius: 16px;
  background: var(--sheet); box-shadow: 0 0 0 1px var(--glass-line); transition: box-shadow .18s ease, background-color .18s ease, transform .18s cubic-bezier(.2, 1.2, .4, 1); }
.wz-opt-in strong { font-weight: 600; font-size: 0.9375rem; } .wz-opt-in > span:not(.wz-check) { grid-column: 2; font-size: 0.8125rem; color: var(--ink-3); }
.wz-check { width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; box-sizing: border-box; border: 1.5px solid var(--rule-strong); transition: background-color .15s ease, border-color .15s ease; }
.wz-q[data-max] .wz-check { border-radius: 6px; }
.wz-opt:hover .wz-opt-in { box-shadow: 0 0 0 1px color-mix(in srgb, var(--series1) 40%, var(--glass-line)); transform: translateY(-1px); }
.wz-opt input:checked + .wz-opt-in { background: color-mix(in srgb, var(--series1) 8%, var(--sheet)); box-shadow: 0 0 0 2px var(--series1); }
.wz-opt input:checked + .wz-opt-in .wz-check { border-color: var(--series1); background: var(--series1) center / 11px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E"); }
.wz-opt input:focus-visible + .wz-opt-in { outline: 3px solid var(--series1); outline-offset: 2px; }
.wz-presets { margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.wz-preset { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 64px; padding: 14px 16px; border: 0; border-radius: 16px; cursor: pointer; text-align: left; font-family: var(--ai-font); color: var(--ink);
  background: radial-gradient(160px 80px at 0% 0%, rgba(122, 92, 255, .10), transparent 70%), var(--sheet); box-shadow: 0 0 0 1px var(--glass-line); transition: box-shadow .18s ease, transform .18s ease; }
.wz-preset strong { font-size: 0.9375rem; } .wz-preset span { font-size: 0.8125rem; color: var(--ink-3); }
.wz-preset:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px color-mix(in srgb, #7a5cff 45%, var(--glass-line)); }
.wz-preset.on { box-shadow: 0 0 0 2px #7a5cff; background: color-mix(in srgb, #7a5cff 9%, var(--sheet)); }
.wz-target { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.wz-target input, .wz-target select, .wz-launch input { min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 0; box-shadow: 0 0 0 1px var(--glass-line); background: var(--sheet); color: var(--ink); font: 500 1rem var(--ai-font); }
.wz-target input { width: 220px; }
.wz-panels { margin-top: 18px; display: grid; gap: 12px; }
.wz-js .wz-panel[hidden] { display: none; }
.wz-panel { margin-top: 12px; padding: 20px 22px; border-radius: 20px; background: var(--sheet); box-shadow: 0 0 0 1px var(--glass-line); }
.wz-panels .wz-panel { margin-top: 0; animation: lx-rise .35s ease both; }
.wz-panel h3 { margin: 0 0 6px; font: 650 1.0625rem var(--ai-font); } .wz-panel p { margin: 0; color: var(--ink-2); line-height: 1.5; }
.wz-howto { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); line-height: 1.45; }
.wz-acts { margin-top: 14px !important; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.wz-live { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-3); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.wz-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.wz-live.on { color: var(--good-ink); background: color-mix(in srgb, #1baf7a 14%, transparent); } .wz-live.on::before { background: #1baf7a; }
.wz-check-row { margin: 14px 0 0; }
.wz-launches { margin-top: 18px; display: grid; gap: 10px; }
.wz-launch { display: grid; grid-template-columns: 1fr 190px; gap: 10px; } .wz-launch input { width: 100%; box-sizing: border-box; }
.wz-nav { margin-top: 36px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wz-body:not(.wz-js) .wz-nav { display: none; }
.wz-next, .wz-back { min-height: 50px; padding: 12px 28px; border-radius: 999px; border: 0; font: 600 1rem var(--ai-font); cursor: pointer; }
.wz-next { background: var(--ink); color: var(--paper); box-shadow: 0 10px 24px -14px rgba(20, 20, 30, .6); }
.wz-back { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.wz-hello .wz-nav { width: 100%; max-width: 560px; justify-content: center; }
.wz-hello .wz-nav > span:empty { display: none; }
.wz-learn { margin-top: 12px; } .wz-learn-t { margin: 0; font: 650 1.5rem var(--ai-display); letter-spacing: -0.02em; }
.wz-confirm { max-width: 440px; border: 0; border-radius: 24px; padding: 26px 26px 22px; background: var(--sheet); color: var(--ink); font-family: var(--ai-font); box-shadow: 0 30px 80px rgba(16, 18, 40, .3); }
.wz-confirm::backdrop { background: rgba(20, 22, 30, .35); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.wz-confirm h2 { margin: 0 0 8px; font: 700 1.375rem var(--ai-display); letter-spacing: -0.02em; } .wz-confirm p { margin: 0; color: var(--ink-2); line-height: 1.5; }
.wz-confirm-acts { margin-top: 20px; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
/* In the page's flow, at the top of the page (polish audit O1): it used to float at the bottom of
   the window and sat on top of figures. Closable; per workspace (main.ts). */
.wiz-back-pill { display: flex; width: fit-content; align-items: center; gap: 2px; margin: 0 0 12px; padding: 2px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font: 600 0.875rem var(--ai-font); }
.wiz-back-pill a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; color: inherit; text-decoration: none; }
.wiz-back-pill a:hover, .wiz-back-pill a:focus-visible { background: color-mix(in srgb, var(--paper) 14%, transparent); }
.wiz-back-pill .wiz-close { width: 40px; padding: 0; justify-content: center; }
.wiz-back-pill svg { width: 14px; height: 14px; }
.learn-more { margin: 10px 0 0; color: var(--ink-3); }
@media (max-width: 640px) {
  .wz-top { grid-template-columns: 1fr auto; gap: 10px; } .wz-progress { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .wz-launch { grid-template-columns: 1fr; } .wz-next, .wz-back { padding: 12px 22px; }
}
.wz-lead { display: inline-flex; align-items: center; gap: 12px; }
.wz-top-back { display: inline-flex; align-items: center; gap: 4px; min-height: 38px; padding: 6px 12px 6px 8px; border: 0; border-radius: 999px; cursor: pointer;
  background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); font: 600 0.875rem var(--ai-font); }
.wz-top-back[hidden] { display: none; } .wz-top-back:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); }

/* The learning screens follow light and dark mode (1 Oct): paper and ink in light, the night
   sky in dark, the same glow in both. */
:root { --lx-bg: var(--paper); --lx-ink: var(--ink); --lx-sub: var(--ink-2); --lx-card: color-mix(in srgb, var(--ink) 4%, var(--sheet)); --lx-line: var(--glass-line);
  --lx-off: color-mix(in srgb, var(--ink) 16%, transparent); --lx-wait: color-mix(in srgb, var(--ink) 30%, transparent); --lx-active: color-mix(in srgb, var(--ink) 6%, transparent); --lx-k: #6d4ad6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --lx-bg: #0b0d14; --lx-ink: #f3f2ee; --lx-sub: #b6b2aa; --lx-card: rgba(255, 255, 255, .05); --lx-line: rgba(255, 255, 255, .08);
  --lx-off: rgba(255, 255, 255, .24); --lx-wait: rgba(255, 255, 255, .3); --lx-active: rgba(255, 255, 255, .07); --lx-k: #c9a8ff; } }
:root[data-theme="dark"] { --lx-bg: #0b0d14; --lx-ink: #f3f2ee; --lx-sub: #b6b2aa; --lx-card: rgba(255, 255, 255, .05); --lx-line: rgba(255, 255, 255, .08);
  --lx-off: rgba(255, 255, 255, .24); --lx-wait: rgba(255, 255, 255, .3); --lx-active: rgba(255, 255, 255, .07); --lx-k: #c9a8ff; }
.lx-dark { background: radial-gradient(520px 380px at 50% 30%, rgba(122, 92, 255, .22), transparent 70%), radial-gradient(420px 300px at 58% 38%, rgba(255, 95, 158, .12), transparent 70%), var(--lx-bg); color: var(--lx-ink); }
.lx-body[data-stage="learning"], .lx-body[data-stage="patterns"] { background: var(--lx-bg); }
.lx-dark .lx-sub, .lx-chart-t span, .lx-col span, .lx-card-s { color: var(--lx-sub); }
.lx-text, .lx-chart-t { color: var(--lx-ink); }
.lx-lines li.active { background: var(--lx-active); }
.lx-tick { border-color: var(--lx-wait); }
.lx-lines li.active .lx-tick { border-color: var(--lx-off); border-top-color: #c45cf0; }
.lx-bar { background: var(--lx-off); }
.lx-chart, .lx-card { background: var(--lx-card); box-shadow: inset 0 0 0 1px var(--lx-line); }
.lx-col i { background: var(--lx-off); }
.lx-card-k { color: var(--lx-k); }
.lx-skip { color: var(--lx-ink); background: var(--lx-card); box-shadow: inset 0 0 0 1px var(--lx-line); }

/* ---- Bars in the learning-screen style (1 Oct 2026): every bar chart on the site.
   Columns fade from a violet-leaning top into the lead blue (the scheme's --series1, so the
   validated colour carries the bar), with a rounded data end and a soft foot. The column under
   the pointer sits in a soft rounded zone, as the season months do on the learning screen. */
.chart-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
#atlas-gv .a, #atlas-gh .a { stop-color: color-mix(in oklch, var(--series1) 62%, #7a5cff); }
#atlas-gv .b, #atlas-gh .b { stop-color: var(--series1); }
/* other schemes fade from a lighter step of their own lead colour, so each keeps its character */
:root[data-palette] #atlas-gv .a, :root[data-palette] #atlas-gh .a { stop-color: color-mix(in oklch, var(--series1) 70%, white); }
svg.chart :is(.bar-g, .bar-g:hover, .bar-g.on) .bar.gv, svg.chart .bar.gv { fill: url(#atlas-gv); }
svg.chart :is(.bar-g, .bar-g:hover, .bar-g.on) .bar.gh, svg.chart .bar.gh { fill: url(#atlas-gh); }
svg.chart .track { fill: color-mix(in srgb, var(--ink) 6%, transparent); }
svg.chart .bar-g .hit { transition: fill .2s ease; }
svg.chart .bar-g:hover .hit, svg.chart .bar-g.on .hit, svg.chart .bar-g:focus-visible .hit { fill: var(--series1-soft); }
svg.chart:hover .bar-g:not(:hover) .bar.gv, svg.chart:hover .bar-g:not(:hover) .bar.gh { opacity: .55; }
svg.chart .bar.gv, svg.chart .bar.gh { transition: opacity .2s ease; }
.chart.cols .bar.peak { filter: saturate(1.15); }
.chart .grid, .chart.cols .grid { stroke: color-mix(in srgb, var(--ink) 7%, transparent); }
.chart.mini-bars .bar-g:hover .hit { fill: transparent; }
.qbars .qb-t i { background: linear-gradient(90deg, var(--series1), color-mix(in oklch, var(--series1) 62%, #7a5cff)); }
/* the header's freshness pill when a store's orders seem to have stopped (065) */
.fresh.gap { color: var(--ink); text-decoration: none; font-weight: 600; }
.fresh.gap .fresh-dot { background: var(--warning); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warning) 25%, transparent); }
.fresh.gap:hover { text-decoration: underline; }

/* Ask Atlas: a written question lands in the box to edit before sending; a brief highlight shows where */
@keyframes ask-prefill { from { background-color: var(--mark-soft); } to { background-color: transparent; } }
.ask-form textarea.ask-prefilled { animation: ask-prefill 1.2s ease-out; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .ask-form textarea.ask-prefilled { animation: none; } }

/* Customer groups: "usually buy in the next" 2 weeks, 4 weeks, 2 months, 3 months (070) */
.seg-due.seg-due-win { display: grid; gap: 8px; padding: 10px 12px 8px; }
.sdw-h { display: flex; gap: 8px; align-items: center; margin: 0; font-weight: 600; }
.sdw-h .icon { margin-top: 0; }
.sdw { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.sdw a { display: grid; gap: 2px; min-height: 44px; padding: 6px 8px; border-radius: 8px; color: var(--ink); text-decoration: none; background: color-mix(in srgb, var(--sheet) 70%, transparent); transition: background .15s ease; }
.sdw a:hover, .sdw a:focus-visible { background: var(--sheet); }
.sdw-n { font-weight: 700; font-size: 1.0625rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.sdw-l { font-size: 0.75rem; color: var(--ink-2); }
.sdw-bar { display: block; height: 3px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; margin-top: 3px; }
.sdw-bar i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 2px; transition: width .5s ease; }
.sdw-f { margin: 0; font-size: 0.75rem; }
.sdw-late { margin: 0; font-size: 0.8125rem; }
.sdw-late a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 420px) { .sdw { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .sdw-bar i { transition: none; } }

/* ---- "Atlas learns your business": the tour (2 Oct 2026). Sales, profit, traffic, shipping and
   storage, one panel at a time. Each panel draws itself when opened; nothing moves on by itself. */
.lx-body[data-stage="tour"] { background: var(--lx-bg); }
.lx-cont { min-height: 48px; padding: 12px 26px; border: 0; border-radius: 999px; cursor: pointer; font: 650 1rem var(--ai-font); color: #fff;
  background: linear-gradient(135deg, #7a5cff, #3d8bff); box-shadow: 0 10px 30px -10px rgba(122, 92, 255, .7); animation: lx-pulse 2.4s ease-in-out infinite; }
.lx-cont[hidden] { display: none; }
@keyframes lx-pulse { 0%, 100% { transform: scale(1); box-shadow: 0 10px 30px -10px rgba(122, 92, 255, .7); } 50% { transform: scale(1.04); box-shadow: 0 14px 40px -10px rgba(122, 92, 255, .9); } }
.lx-tour { justify-content: flex-start; gap: 18px; padding: 56px clamp(16px, 5vw, 80px) 24px; overflow: hidden; }
.lx-drift { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: -1; }
.lx-drift i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(60px); opacity: .32; }
.lx-drift i:nth-child(1) { background: #7a5cff; top: -18vmax; left: -10vmax; animation: lx-drift1 22s ease-in-out infinite alternate; }
.lx-drift i:nth-child(2) { background: #ff5f9e; bottom: -22vmax; right: -12vmax; opacity: .2; animation: lx-drift2 26s ease-in-out infinite alternate; }
.lx-drift i:nth-child(3) { background: #3dc8ff; top: 30%; left: 55%; width: 30vmax; height: 30vmax; opacity: .16; animation: lx-drift3 18s ease-in-out infinite alternate; }
@keyframes lx-drift1 { to { transform: translate(14vmax, 10vmax) scale(1.1); } }
@keyframes lx-drift2 { to { transform: translate(-12vmax, -8vmax) scale(.9); } }
@keyframes lx-drift3 { to { transform: translate(-20vmax, 6vmax) scale(1.2); } }
.lx-tour { isolation: isolate; }
.lx-tour-head { display: flex; align-items: center; gap: 14px; align-self: stretch; text-align: left; }
.lx-tour-head h2 { font-size: clamp(1.5rem, 3.2vw, 2.25rem); }
.lx-tabs { align-self: stretch; display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--lx-card); box-shadow: inset 0 0 0 1px var(--lx-line); overflow-x: auto; scrollbar-width: none; }
.lx-tabs::-webkit-scrollbar { display: none; }
.lx-tabs button { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--lx-sub); font: 600 0.9375rem var(--ai-font); transition: background .25s ease, color .25s ease, transform .25s ease; }
.lx-tabs button:hover { color: var(--lx-ink); }
.lx-tabs button[aria-selected="true"] { background: linear-gradient(135deg, #7a5cff, #3d8bff); color: #fff; box-shadow: 0 6px 18px -8px rgba(122, 92, 255, .8); }
.lx-tabs button:focus-visible { outline: 2px solid #c9a8ff; outline-offset: 2px; }
.lx-ti { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lx-panels { align-self: stretch; flex: 1 1 auto; min-height: 0; display: flex; }
.lx-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 16px; text-align: left; animation: lx-in .45s cubic-bezier(.2, .8, .2, 1); }
.lx-panel[hidden] { display: none; }
@keyframes lx-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.lx-big { margin: 0; font: 600 clamp(1.15rem, 2.3vw, 1.6rem)/1.3 var(--ai-display); letter-spacing: -0.02em; color: var(--lx-ink); max-width: 46ch; }
.lx-big .lx-n { font-weight: 750; font-variant-numeric: tabular-nums; background: linear-gradient(135deg, #a58bff, #5aa8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lx-panel .lx-chart { flex: 1 1 auto; min-height: 220px; max-height: 380px; padding: 18px 22px 12px; }
.lx-chart-t { align-items: center; }
.lx-prior { min-height: 32px; padding: 4px 12px; border: 0; border-radius: 999px; cursor: pointer; font: 600 0.8125rem var(--ai-font); color: var(--lx-ink); background: var(--lx-active); box-shadow: inset 0 0 0 1px var(--lx-line); }
.lx-prior[aria-pressed="true"] { background: rgba(122, 92, 255, .25); }
.lx-chart-hint { margin: 0; font-size: 0.75rem; color: var(--lx-sub); }
/* bars */
.lx-panel .lx-bars { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding-top: 18px; }
.lx-panel .lx-col { cursor: pointer; border-radius: 12px; transition: background-color .2s ease; }
.lx-panel .lx-col i { position: relative; z-index: 1; background: linear-gradient(180deg, #8f74ff, #3d8bff); transition: height .8s cubic-bezier(.2, .9, .25, 1.15), opacity .2s ease; }
.lx-panel .lx-col.in i { background: linear-gradient(180deg, #d27bff, #7a5cff); }
.lx-panel .lx-col:hover, .lx-panel .lx-col.lx-on, .lx-panel .lx-col:focus-visible { background: var(--lx-active); outline: none; }
.lx-panel .lx-bars:hover .lx-col:not(:hover) i { opacity: .55; }
.lx-ghost { position: absolute; bottom: 26px; left: 50%; width: min(44px, 100%); transform: translateX(-50%); height: 0; border-radius: 10px 10px 4px 4px; border: 1.5px dashed var(--lx-off); opacity: 0; transition: height .6s ease, opacity .3s ease; }
.lx-chart.show-prior .lx-ghost { opacity: 1; }
.lx-chart.show-prior .lx-col i { width: min(26px, 60%); margin-left: 18%; }
/* line */
.lx-line { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.lx-line svg { flex: 1; width: 100%; min-height: 0; overflow: visible; }
.lx-cur-line { fill: none; stroke: #6aa6ff; stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
/* the line and its area draw from left to right */
.lx-line-svg .lx-cur-line, .lx-line-svg .lx-area { clip-path: inset(0 100% 0 0); }
.lx-line-svg.drawn .lx-cur-line, .lx-line-svg.drawn .lx-area { clip-path: inset(0 0 0 0); transition: clip-path 1.4s cubic-bezier(.4, 0, .2, 1); }
.lx-area { fill: rgba(106, 166, 255, .14); stroke: none; }
.lx-prior-line { fill: none; stroke: var(--lx-off); stroke-width: 2; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .3s ease; }
.lx-chart.show-prior .lx-prior-line { opacity: 1; }
.lx-hits { position: absolute; inset: 0 0 0 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.lx-hit { position: relative; border: 0; box-shadow: none; min-height: 0; background: transparent; cursor: pointer; padding: 0; border-radius: 10px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; color: var(--lx-sub); font: 0.8125rem var(--ai-font); }
.lx-hit span { position: absolute; bottom: -22px; }
.lx-hit i { position: absolute; left: 50%; bottom: 0; width: 11px; height: 11px; margin: 0 0 -5.5px -5.5px; border-radius: 50%; background: #6aa6ff; box-shadow: 0 0 0 3px var(--lx-bg); opacity: 0; transform: scale(.4); transition: opacity .3s ease, transform .3s ease; }
.lx-hit i.up { opacity: 1; transform: none; }
.lx-hit:hover, .lx-hit.lx-on, .lx-hit:focus-visible { background: var(--lx-active); outline: none; }
.lx-hit:hover i, .lx-hit.lx-on i { transform: scale(1.5); }
.lx-chart-line { padding-bottom: 14px; }
.lx-chart-line .lx-chart-hint, .lx-chart-waterfall .lx-chart-hint { margin-top: 26px; }
/* bridge */
.lx-wf { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: clamp(4px, 1vw, 14px); min-height: 0; padding-top: 26px; }
.lx-wcol { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; cursor: pointer; border-radius: 12px; outline: none; }
.lx-wcol:hover, .lx-wcol.lx-on, .lx-wcol:focus-visible { background: var(--lx-active); }
.lx-wcol i { position: absolute; left: 50%; width: min(54px, 80%); transform: translateX(-50%) translateY(-30px); bottom: 100%; height: 0; border-radius: 8px; opacity: 0;
  transition: bottom .7s cubic-bezier(.2, .9, .25, 1.1), height .7s cubic-bezier(.2, .9, .25, 1.1), opacity .4s ease, transform .7s cubic-bezier(.2, .9, .25, 1.1); }
.lx-wcol i.up { opacity: 1; transform: translateX(-50%); }
.lx-wcol.start i { background: linear-gradient(180deg, #8f74ff, #3d8bff); }
.lx-wcol.cost i { background: linear-gradient(180deg, #ff8a7a, #ff5f9e); }
.lx-wcol.end i { background: linear-gradient(180deg, #3ee0a8, #1baf7a); box-shadow: 0 0 24px -4px rgba(62, 224, 168, .6); }
.lx-wcol span { position: absolute; bottom: -24px; font-size: 0.75rem; color: var(--lx-sub); text-align: center; white-space: nowrap; }
.lx-wv { position: absolute; left: 0; right: 0; bottom: 100%; margin-bottom: 4px; text-align: center; font: 650 0.75rem var(--ai-font); font-style: normal; color: var(--lx-ink); opacity: 0; transition: bottom .7s ease, opacity .4s ease; }
.lx-wv.up { opacity: 1; }
.lx-chart-waterfall { padding-bottom: 14px; }
.lx-wf > .lx-wcol { margin-bottom: 0; }
/* figure pop-up */
.lx-tip { position: fixed; z-index: 20; display: grid; gap: 2px; padding: 8px 12px; border-radius: 12px; pointer-events: none; background: rgba(14, 16, 26, .92); color: #fff;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .1); font: 0.8125rem var(--ai-font); animation: lx-tip .18s ease-out; }
.lx-tip[hidden] { display: none; }
.lx-tip strong { font-weight: 600; color: #c9c5ff; } .lx-tip span { font: 700 1rem var(--ai-font); font-variant-numeric: tabular-nums; } .lx-tip em { font-style: normal; color: #b6b2aa; }
@keyframes lx-tip { from { opacity: 0; transform: translateY(4px); } }
/* facts and empty panels */
.lx-panel .lx-found { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.lx-panel .lx-card { padding: 14px 16px; transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .2s ease; }
.lx-panel .lx-card:hover { box-shadow: inset 0 0 0 1px rgba(165, 139, 255, .5); transform: translateY(-2px); }
.lx-panel .lx-card-t { font-size: 1.0625rem; }
.lx-empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; padding: 40px 16px; border-radius: 24px; background: var(--lx-card); box-shadow: inset 0 0 0 1px var(--lx-line); }
/* footer */
.lx-tour-foot { align-self: stretch; display: flex; align-items: center; gap: 10px; }
.lx-nav { min-height: 44px; min-width: 44px; padding: 8px 16px; border: 0; border-radius: 999px; cursor: pointer; font: 600 0.9375rem var(--ai-font); color: var(--lx-ink); background: var(--lx-card); box-shadow: inset 0 0 0 1px var(--lx-line); }
.lx-nav:disabled { opacity: .35; cursor: default; }
.lx-nav[hidden] { display: none; }
.lx-dots { display: flex; gap: 6px; margin-right: auto; }
.lx-dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--lx-off); transition: width .3s ease, background .3s ease; }
.lx-dots i.on { width: 24px; background: #8f74ff; }
.lx-see { min-height: 44px; padding: 10px 20px; border: 0; border-radius: 999px; cursor: pointer; font: 650 0.9375rem var(--ai-font); color: var(--lx-ink); background: var(--lx-active); box-shadow: inset 0 0 0 1px var(--lx-line); }
.lx-see.primary { color: #fff; background: linear-gradient(135deg, #7a5cff, #3d8bff); box-shadow: 0 8px 24px -10px rgba(122, 92, 255, .8); animation: lx-pulse 2.4s ease-in-out infinite; }
.lx-body[data-stage="tour"] .lx-skip { display: none; }
@media (max-width: 720px) {
  .lx-tour { padding: 60px 14px 16px; gap: 12px; overflow-y: auto; }
  .lx-tour-head .lx-sub { display: none; }
  .lx-tabs button { padding: 8px 12px; } .lx-tabs button span { font-size: 0.875rem; }
  .lx-panel .lx-chart { flex: none; height: 260px; padding: 14px 12px 10px; }
  .lx-panel .lx-chart-waterfall { height: 300px; }
  .lx-wcol span { font-size: 0.625rem; white-space: normal; line-height: 1.1; bottom: -30px; }
  .lx-wv { font-size: 0.5625rem; white-space: nowrap; letter-spacing: -0.02em; }
  .lx-dots { display: none; }
  .lx-tour-foot { position: sticky; bottom: 0; padding: 10px 0 4px; background: linear-gradient(transparent, var(--lx-bg) 35%); flex-wrap: wrap; }
  .lx-next { margin-right: auto; }
  .lx-see { flex: 1 0 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .lx-drift i, .lx-cont, .lx-see.primary { animation: none; }
  .lx-panel { animation: none; }
  .lx-panel .lx-col i, .lx-wcol i, .lx-wv, .lx-hit i, .lx-line-svg.drawn .lx-cur-line, .lx-line-svg.drawn .lx-area { transition: none; }
}

/* Settings: Your business, How Atlas talks to you (chips that say what they change) */
.biz-form { display: grid; gap: 22px; }
.biz-form > button { justify-self: start; }
.chip-q { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.chip-q legend { font-weight: 650; padding: 0; margin-bottom: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip > span { display: inline-flex; flex-direction: column; gap: 1px; min-height: 44px; justify-content: center; padding: 8px 16px; border-radius: 14px;
  background: var(--sheet); box-shadow: 0 0 0 1px var(--glass-line); transition: box-shadow .15s ease, background .15s ease, transform .15s ease; }
.chip strong { font-weight: 600; font-size: 0.9375rem; }
.chip em { font-style: normal; font-size: 0.75rem; color: var(--ink-3); }
.chip:hover > span { transform: translateY(-1px); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.chip input:checked + span { background: color-mix(in srgb, var(--accent) 10%, var(--sheet)); box-shadow: 0 0 0 2px var(--accent); }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px var(--ring); }
.chip input:disabled + span { cursor: default; opacity: .7; }
.chip.unsure > span { background: transparent; box-shadow: 0 0 0 1px var(--glass-line) inset; border: 1px dashed transparent; }
.chip.unsure input:checked + span { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.chip-out { margin: 0; display: flex; gap: 8px; align-items: baseline; padding: 10px 12px; border-radius: 10px; background: var(--mark-soft); font-size: 0.875rem; line-height: 1.45; max-width: 70ch; }
.chip-out[hidden] { display: none; }
.chip-out.example { background: color-mix(in srgb, var(--accent) 8%, var(--sheet)); font-style: italic; }
.chip-out .ex-k { font-style: normal; font-weight: 600; font-size: 0.75rem; color: var(--ink-3); flex: none; }
.chip-out.flash { animation: chip-flash .5s ease-out; }
@keyframes chip-flash { from { transform: translateY(-3px); opacity: .4; } }
.season-months { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: -10px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 4%, transparent); }
.season-months[hidden] { display: none; }
.season-months label { display: inline-flex; gap: 8px; align-items: center; }
@media (prefers-reduced-motion: reduce) { .chip-out.flash { animation: none; } .chip > span { transition: none; } }

/* ---- Welcome wizard, one question at a time (2 Oct 2026): a short segmented bar, the question
   large, the answers as a calm list, "Not sure" set apart, and what each answer changes. */
.wz-js .wz-q[data-sub][hidden] { display: none; }
.wz-subbar { display: flex; gap: 6px; margin: 22px 0 0; max-width: 560px; }
.wz-subbar i { flex: 1; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 10%, transparent); transition: background .3s ease; }
.wz-subbar i.done { background: color-mix(in srgb, var(--series1) 55%, transparent); }
.wz-subbar i.now { background: var(--series1); }
.wz-js .wz-step .wz-q[data-sub] { max-width: 640px; margin-top: 18px; }
.wz-js .wz-step .wz-q[data-sub] legend { font-size: clamp(1.35rem, 2.6vw, 1.75rem); letter-spacing: -0.02em; }
.wz-q.in-r { animation: wz-in-r .38s cubic-bezier(.2, .8, .2, 1); } .wz-q.in-l { animation: wz-in-l .38s cubic-bezier(.2, .8, .2, 1); }
@keyframes wz-in-r { from { opacity: 0; transform: translateX(28px); } } @keyframes wz-in-l { from { opacity: 0; transform: translateX(-28px); } }
/* single answers: a list of rows, not a wall of boxes */
.wz-js .wz-q.single[data-sub] .wz-opts { grid-template-columns: 1fr; gap: 8px; }
.wz-js .wz-q.single[data-sub] .wz-opt-in { grid-template-columns: 20px auto 1fr; align-items: center; min-height: 54px; padding: 12px 16px; border-radius: 14px; }
.wz-js .wz-q.single[data-sub] .wz-opt-in > span:not(.wz-check) { grid-column: 3; justify-self: end; text-align: right; }
.wz-js .wz-q.single[data-sub] .wz-opt-in .wz-check { margin-top: 0; }
.wz-opt.unsure .wz-opt-in { background: transparent; box-shadow: none; outline: 1px dashed color-mix(in srgb, var(--ink) 22%, transparent); outline-offset: -1px; }
.wz-opt.unsure input:checked + .wz-opt-in { outline: 2px solid var(--series1); background: color-mix(in srgb, var(--series1) 6%, transparent); }
.wz-opt input:checked + .wz-opt-in .wz-check { animation: wz-pop .3s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes wz-pop { from { transform: scale(.4); } }
/* several answers: pills */
.wz-js .wz-q.multi[data-sub] .wz-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.wz-js .wz-q.multi[data-sub] .wz-opt-in { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px 8px 12px; border-radius: 999px; }
.wz-js .wz-q.multi[data-sub] .wz-opt-in > span:not(.wz-check) { display: none; }
/* what an answer changes, and the season's months */
.wz-effect { margin: 14px 0 0; display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--mark-soft); font-size: 0.875rem; line-height: 1.45; }
.wz-effect[hidden] { display: none; }
.wz-effect-k { font-size: 0.75rem; font-weight: 650; color: var(--ink-2); }
.wz-effect.flash { animation: wz-flash .45s ease-out; }
@keyframes wz-flash { from { opacity: .3; transform: translateY(-4px); } }
.wz-months { margin: 14px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 4%, transparent); animation: wz-flash .35s ease-out; }
.wz-months[hidden] { display: none; }
.wz-months .wz-help { flex: 1 0 100%; margin: 0; }
.wz-months label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.wz-months select { min-height: 40px; }
.wz-js .wz-step .wz-presets { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .wz-q.in-r, .wz-q.in-l, .wz-effect.flash, .wz-months, .wz-opt input:checked + .wz-opt-in .wz-check { animation: none; } }
@media (max-width: 560px) { .wz-js .wz-q.single[data-sub] .wz-opt-in { grid-template-columns: 20px 1fr; } .wz-js .wz-q.single[data-sub] .wz-opt-in > span:not(.wz-check) { grid-column: 2; justify-self: start; text-align: left; } }

/* Customers pop-up: who bought, where from, where they are, the people (2 Oct 2026) */
.qc { display: grid; gap: 14px; margin-top: 4px; }
.qc-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.qc-figs > div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--sheet); box-shadow: 0 0 0 1px var(--glass-line); }
.qc-figs span { font-size: 0.8125rem; color: var(--ink-3); } .qc-figs strong { font: 700 1.375rem var(--display, inherit); font-variant-numeric: tabular-nums; } .qc-figs em { font-style: normal; font-size: 0.8125rem; color: var(--ink-2); }
.qc-tabs { display: none; gap: 4px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 5%, transparent); overflow-x: auto; scrollbar-width: none; }
.qc-js .qc-tabs { display: flex; }
.qc-tab { flex: 1 0 auto; min-height: 40px; padding: 6px 14px; border: 0; border-radius: 999px; cursor: pointer; background: transparent; color: var(--ink-2); font: 600 0.875rem inherit; transition: background .2s ease, color .2s ease; }
.qc-tab[aria-selected="true"] { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 4px rgba(20, 20, 40, .12), 0 0 0 1px var(--glass-line); }
.qc-pane { display: grid; gap: 10px; animation: qc-in .3s ease-out; }
.qc-pane[hidden] { display: none; }
.qc-pane h3 { margin: 0; font-size: 1rem; } .qc-pane h4 { margin: 8px 0 0; font-size: 0.875rem; } .qc-pane p { margin: 0; }
@keyframes qc-in { from { opacity: 0; transform: translateY(6px); } }
.qc-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.qc-rows li { display: grid; grid-template-columns: minmax(90px, 1.1fr) 2fr auto 52px; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; outline: none; transition: background .15s ease; }
.qc-rows li:hover, .qc-rows li:focus-visible { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.qc-n { font-weight: 600; font-size: 0.9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc-bar { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 7%, transparent); overflow: hidden; }
.qc-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--series1); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.qc-v { display: grid; text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; } .qc-v em { font-style: normal; font-weight: 400; font-size: 0.75rem; color: var(--ink-3); }
.qc-d { text-align: right; font-size: 0.8125rem; }
/* a "how they heard" row that opens onto its orders (origin-views.ts heardOrders) */
.qc-rows li.qc-x { display: block; padding: 0; }
.qc-x > details > summary { display: grid; grid-template-columns: minmax(90px, 1.1fr) 2fr auto 52px; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; cursor: pointer; list-style: none; transition: background .15s ease; }
.qc-x > details > summary::-webkit-details-marker { display: none; }
.qc-x > details > summary .qc-n::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 2px 8px; border: solid var(--ink-3); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .2s cubic-bezier(.23, 1, .32, 1); }
.qc-x > details[open] > summary .qc-n::after { transform: rotate(-135deg); margin-bottom: -1px; }
.qc-x > details > summary:hover, .qc-x > details > summary:focus-visible { background: color-mix(in srgb, var(--ink) 5%, transparent); outline: none; }
.qc-x > details > summary:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.og-open { margin: 2px 0 10px 10px; padding: 4px 0 4px 14px; border-left: 2px solid var(--rule-soft); }
.og-sites { margin: 0 0 6px; font-size: 0.8125rem; color: var(--ink-2); }
.og-list { list-style: none; margin: 0; padding: 0; }
.qc-rows .og-list li { display: block; padding: 0; border-radius: 0; }
.qc-rows .og-list li:hover { background: none; }
.og-list li > a, .og-list li > div { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 44px; padding: 6px 8px; border-radius: 8px; color: inherit; text-decoration: none; font-size: 0.8125rem; }
.og-list li > a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.og-who, .og-src { display: grid; min-width: 0; } .og-who b, .og-src { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.og-who b { font-weight: 600; }
.og-v { font-variant-numeric: tabular-nums; font-weight: 600; }
/* orders table: where each came from */
.orders td.origin { min-width: 11rem; max-width: 16rem; }
.og-c { display: grid; } .og-m { font-weight: 600; }
.og-said { font-size: 0.75rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the customer's page: how they found you */
.og-found .og-lead { font-size: 1rem; }
.og-found code, .og-list code { font-size: 0.8125rem; }
.og-orders { list-style: none; margin: 8px 0 0; padding: 0; }
.og-orders li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 16px; padding: 10px 0; border-top: 1px solid var(--rule-soft); }
.og-o { display: grid; }
@media (max-width: 640px) { .qc-x > details > summary { grid-template-columns: minmax(70px, 1fr) 1.2fr auto; } .og-list li > a, .og-list li > div { grid-template-columns: minmax(0, 1fr) auto; } .og-src { display: none; } .og-orders li { grid-template-columns: 1fr; gap: 4px; } }
.qc-other { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.qc-pill { padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent); font-size: 0.8125rem; } .qc-pill em { font-style: normal; color: var(--ink-3); }
.qc-areas { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.qc-areas li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 4%, transparent); font-size: 0.875rem; }
.qc-areas em { font-style: normal; color: var(--ink-3); }
.qc-filter { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 5%, transparent); justify-self: start; }
.qc-filter button { min-height: 34px; padding: 4px 14px; border: 0; border-radius: 999px; cursor: pointer; background: transparent; color: var(--ink-2); font: 600 0.8125rem inherit; }
.qc-filter button[aria-pressed="true"] { background: var(--sheet); color: var(--ink); box-shadow: 0 0 0 1px var(--glass-line); }
.qc-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.qc-people li[hidden] { display: none; }
.qc-people a { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; color: var(--ink); text-decoration: none; transition: background .15s ease, transform .15s ease; }
.qc-people a:hover, .qc-people a:focus-visible { background: color-mix(in srgb, var(--ink) 5%, transparent); transform: translateX(2px); }
.qc-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--series1), var(--series3)); }
.qc-av.anon { background: color-mix(in srgb, var(--ink) 12%, transparent); color: var(--ink-2); }
.qc-who { display: grid; min-width: 0; } .qc-who strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .qc-who em { font-style: normal; font-size: 0.8125rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc-tag { padding: 3px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.qc-tag.new { background: color-mix(in srgb, var(--series1) 14%, transparent); color: var(--ink); } .qc-tag.ret { background: color-mix(in srgb, var(--series3) 16%, transparent); color: var(--ink); }
.qc-spend { display: grid; text-align: right; font-variant-numeric: tabular-nums; } .qc-spend em { font-style: normal; font-size: 0.75rem; color: var(--ink-3); }
@media (max-width: 560px) {
  .qc-figs strong { font-size: 1.125rem; }
  .qc-rows li { grid-template-columns: minmax(70px, 1fr) 1.2fr auto; } .qc-d { display: none; }
  .qc-people a { grid-template-columns: 34px minmax(0, 1fr) auto; } .qc-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) { .qc-pane { animation: none; } .qc-bar i { transition: none; } }
.qc-tab:not([aria-selected="true"]) { box-shadow: none; background: transparent; }

/* Daily brief: the day in detail (2 Oct 2026) */
.dd { display: grid; gap: 14px; margin: 18px 0 28px; }
.dd-sum { margin: 0; font-size: 1.0625rem; max-width: 70ch; }
.dd-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.dd-fact { display: grid; gap: 6px; padding: 14px 16px; border-radius: 16px; background: var(--sheet); box-shadow: 0 0 0 1px var(--glass-line); outline: none; transition: transform .15s ease, box-shadow .15s ease; }
.dd-fact:hover, .dd-fact:focus-visible { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--glass-line), 0 10px 24px -16px rgba(20, 20, 50, .35); }
.dd-k { font-size: 0.8125rem; color: var(--ink-3); }
.dd-fact strong { font: 700 1.5rem var(--display, inherit); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.dd-range { position: relative; height: 14px; margin: 2px 0; }
.dd-range::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 1px; background: color-mix(in srgb, var(--ink) 10%, transparent); }
.dd-band { position: absolute; top: 4px; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.dd-med { position: absolute; top: 2px; width: 2px; height: 10px; margin-left: -1px; background: var(--ink-3); border-radius: 1px; }
.dd-dot { position: absolute; top: 1px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--series1); box-shadow: 0 0 0 2px var(--sheet); transition: left .6s cubic-bezier(.2, .8, .2, 1); }
.dd-fact.v-above .dd-dot { background: var(--good); } .dd-fact.v-below .dd-dot { background: var(--critical); }
.dd-norm { font-size: 0.75rem; color: var(--ink-3); line-height: 1.35; }
.dd-fact.v-above .dd-norm { color: var(--good-ink, var(--ink-2)); font-weight: 600; } .dd-fact.v-below .dd-norm { color: var(--bad-ink, var(--ink-2)); font-weight: 600; }
.dd-two { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
.dd-hours figcaption { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-bottom: 6px; }
.dd-from h3 { margin: 0 0 8px; font-size: 1rem; }
.dd-split { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.dd-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.dd-chip.new { background: color-mix(in srgb, var(--series1) 14%, transparent); } .dd-chip.ret { background: color-mix(in srgb, var(--series3) 16%, transparent); }
.dd-chip.sm { padding: 1px 7px; font-size: 0.6875rem; vertical-align: 1px; }
.dd-chans { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dd-unknown { margin: 0; color: var(--ink-2); line-height: 1.45; }
.dd-chans li { display: flex; justify-content: space-between; padding: 6px 8px; border-radius: 8px; background: color-mix(in srgb, var(--ink) 3%, transparent); font-size: 0.9375rem; }
.dd-orders summary { cursor: pointer; padding: 2px 0 8px; }
.dd-orders .dd-items { max-width: 340px; font-size: 0.875rem; }
.dd-place { display: block; }
@media (max-width: 820px) { .dd-two { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .dd-dot { transition: none; } .dd-fact { transition: none; } }

/* ---- What Atlas thinks (2 Oct 2026): reasoning cards, in the workspace's voice */
.think { display: grid; gap: 12px; margin: 8px 0 26px; }
.think h2 { display: flex; align-items: center; gap: 10px; }
.think-orb { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(from 200deg, #7a5cff, #3dc8ff, #ff5f9e, #7a5cff); box-shadow: 0 0 14px rgba(122, 92, 255, .45); animation: think-spin 8s linear infinite; }
@keyframes think-spin { to { transform: rotate(1turn); } }
.think-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.think-card { position: relative; display: grid; align-content: start; gap: 10px; padding: 18px 20px; border-radius: 20px; background: var(--sheet); box-shadow: 0 0 0 1px var(--glass-line); overflow: hidden; animation: think-in .5s cubic-bezier(.2, .8, .2, 1) both; }
.think-card:nth-child(2) { animation-delay: .08s; } .think-card:nth-child(3) { animation-delay: .16s; } .think-card:nth-child(4) { animation-delay: .24s; }
@keyframes think-in { from { opacity: 0; transform: translateY(10px); } }
.think-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, #7a5cff, #3dc8ff); }
.think-card.area-profit::before { background: linear-gradient(90deg, #1baf7a, #3ee0a8); } .think-card.area-marketing::before { background: linear-gradient(90deg, #ff5f9e, #ff8a7a); }
.think-card.area-ads::before { background: linear-gradient(90deg, #eda100, #ff8a3d); } .think-card.area-seo::before { background: linear-gradient(90deg, #2a78d6, #3dc8ff); }
.think-k { margin: 0; display: flex; justify-content: space-between; align-items: center; }
.think-area { font-size: 0.75rem; font-weight: 650; color: var(--ink-3); text-transform: none; }
.think-sure { display: inline-flex; gap: 3px; } .think-sure i { width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 15%, transparent); }
.think-sure.s1 i:nth-child(-n+1), .think-sure.s2 i:nth-child(-n+2), .think-sure.s3 i { background: var(--series1); }
.think-card h3 { margin: 0; font: 650 1.0625rem/1.35 var(--ai-font, inherit); letter-spacing: -0.01em; }
.think-because { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 0.875rem; color: var(--ink-2); }
.think-do { padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--series1) 7%, transparent); }
.think-do-h { margin: 0 0 4px; display: flex; gap: 6px; align-items: center; font-size: 0.75rem; font-weight: 650; color: var(--ink-2); }
.think-do ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 0.875rem; }
.think-why summary { cursor: pointer; font-size: 0.8125rem; color: var(--ink-3); } .think-why p { margin: 6px 0 0; font-size: 0.8125rem; color: var(--ink-2); }
.think-foot { margin: 2px 0 0; display: flex; gap: 14px; align-items: center; font-size: 0.875rem; }
@media (prefers-reduced-motion: reduce) { .think-card, .think-orb { animation: none; } }

/* ---- SEO page */
.seo-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 0 0 18px; }
.seo-figs > div { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--sheet); box-shadow: 0 0 0 1px var(--glass-line); }
.seo-figs span { font-size: 0.8125rem; color: var(--ink-3); } .seo-figs strong { font: 700 1.5rem var(--display, inherit); } .seo-figs em { font-style: normal; font-size: 0.8125rem; color: var(--ink-2); }
.seo-sec { margin-bottom: 16px; display: grid; gap: 10px; } .seo-sec h2 { margin: 0; font-size: 1.125rem; } .seo-sec p { margin: 0; }
.seo-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.seo-connect { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: color-mix(in srgb, var(--series1) 7%, transparent); } .seo-connect p + p { margin-top: 8px; }
.seo-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; } .seo-list li { display: grid; gap: 1px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 3%, transparent); }
.seo-list em { font-style: normal; font-size: 0.8125rem; color: var(--ink-3); }
.seo-audit-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-end; }
.seo-run { display: flex; gap: 8px; flex-wrap: wrap; } .seo-run input { min-width: 260px; min-height: 44px; }
.seo-running { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--mark-soft); }
.seo-issues { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.seo-issues details { border-radius: 12px; background: color-mix(in srgb, var(--ink) 3%, transparent); padding: 10px 12px; }
.seo-issues summary { cursor: pointer; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.seo-lvl { font-size: 0.6875rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.lvl-critical .seo-lvl { background: color-mix(in srgb, var(--critical) 18%, transparent); } .lvl-fix .seo-lvl { background: color-mix(in srgb, var(--warning) 22%, transparent); }
.seo-n { margin-left: auto; font-size: 0.8125rem; color: var(--ink-3); }
.seo-issues details p { margin: 8px 0 6px; font-size: 0.875rem; } .seo-pages { margin: 0; padding-left: 18px; font-size: 0.8125rem; display: grid; gap: 2px; }
.seo-squarespace ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 0.9375rem; }

/* ---- Ads page */
.ads-plan { display: grid; gap: 14px; margin-bottom: 18px; } .ads-plan h2 { margin: 0; }
.ads-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.ads-inputs label { display: grid; gap: 4px; font-size: 0.8125rem; color: var(--ink-3); } .ads-inputs input { min-height: 44px; font-size: 1rem; width: 100%; }
.ads-pct { display: flex; align-items: center; gap: 6px; color: var(--ink); }
.ads-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.ads-out > div { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--ink) 3%, transparent); }
.ads-out > div.hl { background: linear-gradient(135deg, color-mix(in srgb, #7a5cff 14%, transparent), color-mix(in srgb, #3dc8ff 12%, transparent)); }
.ads-out span { font-size: 0.8125rem; color: var(--ink-3); } .ads-out strong { font: 700 1.5rem var(--display, inherit); font-variant-numeric: tabular-nums; } .ads-out em { font-style: normal; font-size: 0.8125rem; color: var(--ink-2); }
.ads-out strong.flash { animation: chip-flash .4s ease-out; }
.ads-rules { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 0.9375rem; }
.ads-ideas { margin-bottom: 18px; } .ads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.ads-idea { display: grid; align-content: start; gap: 8px; padding: 18px; border-radius: 20px; background: var(--sheet); box-shadow: 0 0 0 1px var(--glass-line); transition: transform .15s ease, box-shadow .15s ease; }
.ads-idea:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--glass-line), 0 14px 30px -18px rgba(20, 20, 60, .35); }
.ads-angle { margin: 0; font-size: 0.75rem; font-weight: 650; color: var(--ink-3); } .ads-idea h3 { margin: 0; font-size: 1.0625rem; line-height: 1.35; }
.ads-idea dl { margin: 0; display: grid; gap: 6px; } .ads-idea dt { font-size: 0.75rem; color: var(--ink-3); } .ads-idea dd { margin: 0; font-size: 0.875rem; }
.ads-why { margin: 0; font-size: 0.8125rem; color: var(--ink-2); } .ads-idea button { justify-self: start; }
.ads-v { font-size: 0.75rem; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.ads-v.v-keep { background: color-mix(in srgb, var(--good) 18%, transparent); } .ads-v.v-cut { background: color-mix(in srgb, var(--critical) 18%, transparent); } .ads-v.v-watch { background: color-mix(in srgb, var(--warning) 22%, transparent); }

/* ---- What Atlas noticed (2 Oct 2026): the agent's own findings, on Agent, the Overview and the brief */
.nf { display: grid; gap: 14px; }
.nf-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.nf-head .ag-h { display: flex; align-items: center; gap: 10px; }
.nf-head .ag-note { margin: 4px 0 0; max-width: 62ch; }
.nf-tags { display: inline-flex; gap: 8px; align-items: center; }
.nf-badge { font-size: 0.6875rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; letter-spacing: .01em; }
.nf-badge.nf-new { color: #fff; background: var(--series1); }
.nf-badge.nf-back { color: var(--ink); background: color-mix(in srgb, #eda100 28%, transparent); }
.nf-badge.nf-changed { color: var(--ink-2); background: color-mix(in srgb, var(--ink) 9%, transparent); }
.think-card.area-customers::before { background: linear-gradient(90deg, #8044cb, #c37bff); }
.think-card.area-stock::before { background: linear-gradient(90deg, #02a99b, #3ee0c8); }
.think-card.area-operations::before { background: linear-gradient(90deg, #e05633, #ff8a3d); }
.think-card.area-data::before { background: linear-gradient(90deg, #e34948, #ff7a7a); }
.nf-card.area-data { box-shadow: 0 0 0 1px color-mix(in srgb, #e34948 45%, var(--glass-line)); }
.nf-last { margin: 0; font-size: 0.8125rem; color: var(--ink-2); padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 4%, transparent); }
.nf-seen { margin: 0; font-size: 0.75rem; color: var(--ink-3); }
.nf-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 2px; }
.nf-actions .btn, .nf-actions button { min-height: 40px; }
.nf-sub { display: grid; gap: 8px; }
.nf-sub h3 { margin: 6px 0 0; font-size: 0.9375rem; }
.nf-done, .nf-cleared { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nf-done li { display: grid; gap: 2px; padding: 10px 12px 10px 14px; border-radius: 12px; background: var(--sheet); box-shadow: 0 0 0 1px var(--glass-line); border-left: 3px solid color-mix(in srgb, var(--ink) 20%, transparent); }
.nf-done li.up { border-left-color: var(--good, #1baf7a); } .nf-done li.down { border-left-color: #eda100; } .nf-done li.wait { border-left-color: var(--series1); }
.nf-d-t { margin: 0; font-weight: 600; font-size: 0.9375rem; } .nf-d-r { margin: 0; font-size: 0.8125rem; color: var(--ink-2); }
.nf-cleared li { display: flex; gap: 8px; align-items: baseline; font-size: 0.875rem; color: var(--ink-2); } .nf-cleared .icon { flex: none; color: var(--good, #1baf7a); }
.nf-cleared em, .nf-parked em { font-style: normal; font-size: 0.75rem; color: var(--ink-3); margin-left: auto; white-space: nowrap; }
.nf-parked summary { cursor: pointer; font-size: 0.875rem; color: var(--ink-3); }
.nf-parked ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.nf-parked li { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 0.875rem; }
.nf-strip { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 12px 16px; border-radius: 16px; background: var(--sheet); box-shadow: 0 0 0 1px var(--glass-line); color: inherit; text-decoration: none; }
.nf-strip:hover { box-shadow: 0 0 0 1px var(--series1); }
.nf-strip-t { display: grid; gap: 1px; min-width: 0; flex: 1; } .nf-strip-t b { font-size: 0.9375rem; }
.nf-strip-t span { font-size: 0.8125rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-strip .icon { flex: none; color: var(--ink-3); }
@media (max-width: 640px) { .nf-head { align-items: stretch; } .nf-head form, .nf-head .btn { width: 100%; } }
.nf-card { transition: opacity .3s, transform .3s, height .4s; }
.nf-card.ag-gone { opacity: 0; transform: scale(.97); padding-top: 0; padding-bottom: 0; overflow: hidden; }

/* ---- Stores you name (074) and the currency figures are shown in (075) */
.cur-switch { display: inline-flex; align-items: center; gap: 6px; }
.cur-switch select { max-width: 11rem; min-height: 36px; padding: 4px 28px 4px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; }
.cur-wait { font-size: 0.75rem; color: var(--ink-3); }
@media (max-width: 640px) { .cur-switch select { max-width: 6.5rem; } .cur-wait { display: none; } }
.store-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.store-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; padding: 12px 14px; border-radius: 14px; background: var(--sheet); box-shadow: 0 0 0 1px var(--glass-line); }
.store-row label { display: grid; gap: 3px; min-width: 150px; flex: 1; }
.store-row input, .store-row select { min-height: 40px; }
.store-n { align-self: center; white-space: nowrap; }
.store-add summary { cursor: pointer; font-weight: 600; margin: 4px 0 8px; }
.add-new-store { display: grid; gap: 6px; }
/* the email platform's own figures on a campaign (076) */
.camp-platform { margin: 4px 0 0; font-size: 0.8125rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
.camp-src { font-size: 0.6875rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--series1) 12%, transparent); color: var(--ink); }
.nf-store { font-size: 0.6875rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: var(--ink); background: color-mix(in srgb, var(--series2, #eb6834) 16%, transparent); }
/* Daily brief: who bought, and how they found you */
.dd-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 12px; }
.dd-cols .dd-k { margin: 0 0 4px; font-size: 0.75rem; font-weight: 650; color: var(--ink-3); }
.dd-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dd-people li { padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 3%, transparent); display: grid; gap: 2px; }
.dd-p-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 600; }
.dd-p-paid { margin-left: auto; font-variant-numeric: tabular-nums; }
.dd-p-meta, .dd-p-how { margin: 0; font-size: 0.8125rem; color: var(--ink-2); }
.dd-p-how { display: flex; flex-direction: column; gap: 1px; }
.dd-p-how b { font-weight: 600; color: var(--ink); }
.sold-unnamed .sold-name { color: var(--ink-2); }
.dd-place { display: block; }
.dd-how { display: grid; gap: 1px; font-size: 0.875rem; }

/* ---- Declutter (2 Oct 2026): one to-do list; the brief keeps to the day */
.nf-count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; margin-left: 6px; border-radius: 999px;
  background: var(--ink); color: var(--paper, #fff); font: 700 0.8125rem var(--text); vertical-align: middle; }
.nf-ready { margin-top: 4px; padding: 12px; border-radius: 14px; border: 1px solid var(--rule); background: var(--sheet); display: grid; gap: 10px; }
.nf-ready .ag-actions { margin: 0; }
.ag-today-t .nf-badge { margin-left: 6px; background: color-mix(in srgb, var(--series1) 14%, transparent); color: var(--ink-2); }
.brief-sold { margin: 0 0 24px; }
.brief-sold h2 { font: 600 1.0625rem var(--text); margin: 0 0 12px; letter-spacing: -0.01em; }
.brief-more { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; }
.brief-more a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--rule);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.9375rem; }
.brief-more a:hover { border-color: var(--series1); }
.brief-more .icon { width: 14px; height: 14px; color: var(--ink-3); }

/* ---- Ads: every ad run, all time (2 Oct 2026) */
.ads-history { margin-bottom: 28px; }
.ads-h-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0 18px; }
.ads-h-figs > div { padding: 12px 14px; border-radius: 14px; background: var(--sheet); border: 1px solid var(--rule); display: grid; gap: 2px; }
.ads-h-figs span { font-size: 0.8125rem; color: var(--ink-2); }
.ads-h-figs strong { font: 700 1.375rem var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ads-h-figs em { font-style: normal; font-size: 0.8125rem; color: var(--ink-3); }
.ads-h-find { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.ads-h-find li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 4%, transparent); line-height: 1.45; }
.ads-h-find li .icon { width: 16px; height: 16px; margin-top: 2px; }
.ads-h-find li.tone-good .icon { color: var(--good); } .ads-h-find li.tone-bad .icon { color: var(--critical); } .ads-h-find li.tone-info .icon { color: var(--ink-3); }
.ads-h-more { margin-top: 12px; } .ads-h-more > summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.ads-history .nowrap { white-space: nowrap; }
.ads-history tr.ads-on > * { background: color-mix(in srgb, var(--series1) 6%, transparent); }
.peek.wide { width: 460px; }
/* What to do next on Ads (091): ranked advice, each with what was found, steps and the lesson */
.ads-advice { margin-bottom: 28px; }
.adv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.adv { padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--rule); background: var(--raised); }
.adv-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.adv-n { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--tint); }
.adv-kind { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--tint); color: var(--ink-2); }
.adv-kind.k-fix { color: var(--bad-ink); background: color-mix(in srgb, var(--critical) 10%, transparent); }
.adv-kind.k-money { color: var(--good-ink); background: color-mix(in srgb, var(--good) 10%, transparent); }
.adv-kind.k-save { color: var(--ink); background: color-mix(in srgb, var(--warning) 16%, transparent); }
.adv-basis { margin-left: auto; }
.adv h3 { margin: 2px 0 6px; font-size: 17px; line-height: 1.3; }
.adv-found { margin: 0 0 6px; line-height: 1.5; color: var(--ink-2); }
.adv-worth { margin: 0 0 6px; line-height: 1.5; }
.adv-more { margin: 6px 0 10px; } .adv-more > summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.adv-steps { margin: 6px 0 8px; padding-left: 20px; display: grid; gap: 4px; line-height: 1.5; }
.adv-lesson { margin: 0; padding: 10px 12px; border-radius: var(--r); background: var(--tint); line-height: 1.5; }

/* ---- Black and white look (Settings → Look; 2 Oct 2026). The interface in pure black, white
   and neutral greys, in light and in dark mode; the charts keep their colours so series stay
   easy to tell apart. */
:root[data-look="mono"] {
  --paper: #ffffff; --sheet: #ffffff; --raised: #ffffff; --ink: #000000; --ink-2: #474747; --ink-3: #6b6b6b;
  --rule: #e6e6e6; --rule-soft: #f2f2f2; --rule-strong: #cfcfcf;
  --cover: #f4f4f4; --cover-ink: #000000; --cover-muted: #6b6b6b; --cover-hover: rgba(0, 0, 0, 0.05); --cover-on: rgba(0, 0, 0, 0.08);
  --night: #000000; --night-ink: #ffffff; --night-muted: #a3a3a3;
  --mark: #000000; --mark-soft: rgba(0, 0, 0, 0.12);
  --accent: #000000; --tint: rgba(0, 0, 0, 0.04); --ring: rgba(0, 0, 0, 0.28);
  --cmp: #e3e3e3; --cmp-line: #9a9a9a; --seg-on: #ffffff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root[data-look="mono"]:not([data-theme="light"]) {
    --paper: #000000; --sheet: #0b0b0b; --raised: #151515; --ink: #ffffff; --ink-2: #bdbdbd; --ink-3: #8c8c8c;
    --rule: #262626; --rule-soft: #161616; --rule-strong: #353535;
    --cover: #000000; --cover-ink: #ffffff; --cover-muted: #8c8c8c; --cover-hover: rgba(255, 255, 255, 0.06); --cover-on: rgba(255, 255, 255, 0.1);
    --night: #000000; --night-ink: #ffffff; --night-muted: #a3a3a3;
    --mark: #ffffff; --mark-soft: rgba(255, 255, 255, 0.16);
    --accent: #ffffff; --tint: rgba(255, 255, 255, 0.06); --ring: rgba(255, 255, 255, 0.32);
    --cmp: #2b2b2b; --cmp-line: #7a7a7a; --seg-on: #222222;
    color-scheme: dark;
  }
}
:root[data-look="mono"][data-theme="dark"] {
  --paper: #000000; --sheet: #0b0b0b; --raised: #151515; --ink: #ffffff; --ink-2: #bdbdbd; --ink-3: #8c8c8c;
  --rule: #262626; --rule-soft: #161616; --rule-strong: #353535;
  --cover: #000000; --cover-ink: #ffffff; --cover-muted: #8c8c8c; --cover-hover: rgba(255, 255, 255, 0.06); --cover-on: rgba(255, 255, 255, 0.1);
  --night: #000000; --night-ink: #ffffff; --night-muted: #a3a3a3;
  --mark: #ffffff; --mark-soft: rgba(255, 255, 255, 0.16);
  --accent: #ffffff; --tint: rgba(255, 255, 255, 0.06); --ring: rgba(255, 255, 255, 0.32);
  --cmp: #2b2b2b; --cmp-line: #7a7a7a; --seg-on: #222222;
  color-scheme: dark;
}
.look-sw { display: inline-flex; gap: 4px; }
.look-sw i { width: 22px; height: 14px; border-radius: 4px; border: 1px solid var(--rule-strong); }
.look-atlas i:first-child { background: #f7f6f3; } .look-atlas i:last-child { background: #1c1b19; }
.look-mono i:first-child { background: #ffffff; } .look-mono i:last-child { background: #000000; }

/* ---- Ask Atlas put away: a bubble in the bottom-right corner (2 Oct 2026) */
.ask-bubble { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: 2px;
  animation: bubble-in 220ms var(--ease) both; }
.ask-bubble[hidden] { display: none; }
.ask-bubble-open { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 10px; border-radius: 999px;
  border: 1px solid var(--rule-strong); background: var(--raised); color: var(--ink); font: 600 0.9375rem var(--text); cursor: pointer; box-shadow: var(--shadow-pop); }
.ask-bubble-open:hover { border-color: var(--ink-3); }
.ask-bubble-open:focus-visible, .ask-bubble-end:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ask-bubble-dot { display: none; position: absolute; top: 6px; left: 38px; width: 10px; height: 10px; border-radius: 50%; background: var(--critical); border: 2px solid var(--raised); }
.ask-bubble.has-new .ask-bubble-dot { display: block; }
.ask-bubble.thinking .ai-orb { animation: bubble-pulse 1.4s ease-in-out infinite; }
.ask-bubble-end { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--rule-strong); background: var(--raised); color: var(--ink-3);
  font-size: 1rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity 150ms; box-shadow: var(--shadow-sm); }
.ask-bubble:hover .ask-bubble-end, .ask-bubble-end:focus-visible { opacity: 1; }
@media (hover: none) { .ask-bubble-end { opacity: 1; } }
@media (max-width: 640px) { .ask-bubble { right: 12px; bottom: 12px; } .ask-bubble-t { display: none; } .ask-bubble-open { padding: 0 10px; } }
@keyframes bubble-in { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes bubble-pulse { 50% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .ask-bubble, .ask-bubble.thinking .ai-orb { animation: none; } }
html.ask-on .ask-bubble { display: none; }

/* ---- Customers: where new customers come from (2 Oct 2026) */
.acq { margin-bottom: 28px; }
.acq-find { list-style: none; margin: 12px 0 18px; padding: 0; display: grid; gap: 8px; }
.acq-find li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--tint); line-height: 1.45; }
.acq-find li .icon { width: 16px; height: 16px; margin-top: 2px; }
.acq-find li.tone-good .icon { color: var(--good); } .acq-find li.tone-bad .icon { color: var(--critical); } .acq-find li.tone-info .icon { color: var(--ink-3); }
.acq-table td:nth-child(2) { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.acq-bar { flex: 1; height: 8px; border-radius: 4px; background: var(--rule-soft); overflow: hidden; }
.acq-bar i { display: block; height: 100%; width: calc(var(--w, 0) * 100%); background: var(--series1); border-radius: 4px; }
.acq-n { font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
.acq-best > * { background: color-mix(in srgb, var(--good) 6%, transparent); }
.acq-model { margin-top: 14px; } .acq-model > summary { cursor: pointer; font-weight: 600; }
.add-pair { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.login.legal { max-width: 720px; text-align: left; } .login.legal h2 { font-size: 1.125rem; margin: 22px 0 6px; } .login.legal ul { padding-left: 20px; } .login.legal p, .login.legal li { line-height: 1.55; }

/* ---- Atlas admin (its own page, outside any workspace) ---- */
.admin-body { background: var(--page); color: var(--ink); margin: 0; }
.admin-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 20px; padding: 12px 24px; background: var(--surface); border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.admin-top .brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; }
.admin-tag { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--ink); color: var(--surface); }
.admin-top nav { display: flex; gap: 16px; flex-wrap: wrap; flex: 1; }
.admin-top nav a, .admin-back { color: var(--ink-2); text-decoration: none; font-size: 0.875rem; }
.admin-top nav a:hover, .admin-back:hover { color: var(--ink); }
.admin-main { max-width: 1180px; margin: 0 auto; padding: 24px 24px 80px; }
.admin-main > section { margin-top: 40px; scroll-margin-top: 70px; }
.admin-main .tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.admin-main .tile.good .value { color: var(--good-ink); }
.admin-main .tile.warn { box-shadow: inset 3px 0 0 var(--warning); }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; margin-top: 12px; }
.admin-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.875rem; }
.admin-list .quiet { word-break: break-word; }
.admin-search { display: flex; gap: 8px; margin: 0 0 12px; max-width: 520px; }
.admin-search input { flex: 1; min-width: 0; }
.admin-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-acts form { margin: 0; }
.admin-accounts td { vertical-align: top; }
/* User logs (/admin/logs) */
.admin-log-filter { max-width: 720px; flex-wrap: wrap; }
.admin-log-filter select { flex: 0 0 auto; }
.admin-log-people .chip { text-decoration: none; color: var(--ink-2); }
.admin-logs td { vertical-align: top; }
.admin-logs td code { font-size: 0.8125rem; word-break: break-all; }
.admin-logs .nowrap { white-space: nowrap; }
.admin-logs-note { margin-top: 12px; }
td .chip.k-plain { background: var(--tint); color: var(--ink-2); }
.admin-reset .copy-field { width: 100%; font-family: ui-monospace, monospace; font-size: 0.8125rem; }
.table-scroll { overflow-x: auto; }
@media (max-width: 640px) { .admin-top { padding: 10px 16px; gap: 10px; } .admin-main { padding: 16px 16px 60px; } }
.admin-grid > .panel { margin: 0; }

/* Black and white charts (paired with the mono look): ink and two greys first, then colour-blind-safe
   colours for a fourth series on. A deliberate exception to the palette checks' chroma floor and
   lightness band, which assume colour; the greys are ≥ 19 ΔE apart and charts keep their legends. */
:root[data-palette="mono"] { --series1: #111111; --series2: #767676; --series3: #b0b0b0; --series4: #0072b2; --series5: #c58300; --series6: #009e73; --series7: #c672a1; --series8: #399dd2; --series1-soft: rgba(17, 17, 17, 0.08); }
@media (prefers-color-scheme: dark) { :root[data-palette="mono"]:not([data-theme="light"]) { --series1: #f2f2f2; --series2: #a3a3a3; --series3: #666666; --series4: #348dcf; --series5: #c58300; --series6: #009c71; --series7: #c571a0; --series8: #389dd2; --series1-soft: rgba(242, 242, 242, 0.12); } }
:root[data-palette="mono"][data-theme="dark"] { --series1: #f2f2f2; --series2: #a3a3a3; --series3: #666666; --series4: #348dcf; --series5: #c58300; --series6: #009c71; --series7: #c571a0; --series8: #389dd2; --series1-soft: rgba(242, 242, 242, 0.12); }
.palette-sw i.sw-mono:nth-child(1) { background: #111111; }
.palette-sw i.sw-mono:nth-child(2) { background: #767676; }
.palette-sw i.sw-mono:nth-child(3) { background: #b0b0b0; }
.palette-sw i.sw-mono:nth-child(4) { background: #0072b2; }
.palette-sw i.sw-mono:nth-child(5) { background: #c58300; }
.palette-sw i.sw-mono:nth-child(6) { background: #009e73; }
.palette-sw i.sw-mono:nth-child(7) { background: #c672a1; }
.palette-sw i.sw-mono:nth-child(8) { background: #399dd2; }
.palette-sw i.sw-mono { box-shadow: inset 0 0 0 1px var(--rule-strong); }

/* ---- Sign-in pages (redesign): a night panel with the example morning brief on a ruled page,
   the same sheet as the landing page; the form on paper. The sheet is paper in both modes. ---- */
.auth-side { position: relative; isolation: isolate; overflow: hidden; background: #1c1b19; color: #f3f2ee; padding: 36px clamp(28px, 4vw, 56px); border-right: 0; }
.auth-side::before { content: ""; position: absolute; z-index: -1; left: -30%; bottom: -45%; width: 90%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 0deg, #3d8bff, #7a5cff, #c45cf0, #ff5f9e, #ff8a3d, #ffc93c, #36c6a8, #3d8bff); filter: blur(110px); opacity: .28; }
.auth-side .brand { color: #f3f2ee; text-decoration: none; font: 700 1.3125rem/1 var(--display); font-stretch: 90%; letter-spacing: -0.02em; width: max-content; }
.auth-side .brand:hover { opacity: .85; }
.auth-pitch { max-width: 27rem; margin: auto 0; }
.auth-sheet { --line: 30px; position: relative; padding: 22px 26px 18px 52px; border-radius: 16px; color: #1c1b19; background-color: #fdfdfb;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
  background-image: linear-gradient(90deg, transparent 35px, rgba(255, 216, 77, .8) 35px, rgba(255, 216, 77, .8) 37px, transparent 37px),
    repeating-linear-gradient(to bottom, transparent 0 calc(var(--line) - 1px), #e9e7e2 calc(var(--line) - 1px) var(--line));
  background-repeat: no-repeat; background-position: 0 0, 0 calc(22px + var(--line) * 2); background-size: 100% 100%, 100% calc(100% - 22px - var(--line) * 2 - 18px);
  transform: rotate(-1.2deg); }
.auth-sheet p, .auth-sheet ul { margin: 0; }
.auth-sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; height: calc(var(--line) * 2); border-bottom: 2px solid #1c1b19; }
.auth-sheet-day { font: 700 1.5rem/1 var(--display); font-stretch: 92%; letter-spacing: -0.03em; }
.auth-sheet-shop { display: inline-flex; align-items: center; gap: 7px; color: #6e6b65; font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.auth-sheet-shop::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ffd84d; box-shadow: 0 0 0 2.5px #1c1b19; }
.auth-sheet-lead { margin-top: var(--line) !important; font: 700 1.25rem/var(--line) var(--display); font-stretch: 92%; letter-spacing: -0.02em; }
.auth-sheet-lead mark { color: inherit; background: linear-gradient(transparent 56%, rgba(255, 216, 77, .7) 56%, rgba(255, 216, 77, .7) 92%, transparent 92%); padding: 0 .04em; }
.auth-sheet-k { margin-top: var(--line) !important; font-weight: 650; font-size: 0.875rem; line-height: var(--line); }
.auth-sheet-list { list-style: none; padding: 0; }
.auth-sheet-list li { position: relative; padding-left: 24px; font-size: 0.875rem; line-height: var(--line); }
.auth-sheet-list li::before { content: ""; position: absolute; left: 0; top: calc((var(--line) - 14px) / 2); width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px #86827b; }
.auth-line { margin: 36px 0 0; font: 650 clamp(1.375rem, 2.1vw, 1.75rem)/1.2 var(--display); font-stretch: 92%; letter-spacing: -0.025em; color: #f3f2ee; max-width: 20em; }
.auth-note { margin: 10px 0 0; color: #a9a59d; font-size: 0.8125rem; }
.auth-main { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px 72px; }
.auth-card { max-width: 400px; }
.auth-card h1 { font: 700 clamp(2rem, 3vw, 2.5rem)/1.05 var(--display); font-stretch: 92%; letter-spacing: -0.035em; margin: 0 0 10px; }
.auth-sub { color: var(--ink-2); margin: 0 0 28px; }
.auth-sub a, .auth-form a { color: var(--ink); text-underline-offset: 3px; }
.auth-form input:not([type="hidden"]), .auth-form select { min-height: 46px; border-radius: 12px; }
.auth-form button.wide, .auth-form a.btn.wide { min-height: 48px; border-radius: 999px; font-weight: 650; }
.auth-form a.btn.wide { display: flex; align-items: center; text-decoration: none; margin-top: 24px; }
.auth-legal { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 22px; font-size: 0.8125rem; }
.auth-legal a { color: var(--ink-3); text-decoration: none; }
.auth-legal a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .auth-side { background: #0c0c0b; border-right: 1px solid var(--rule); } }
:root[data-theme="dark"] .auth-side { background: #0c0c0b; border-right: 1px solid var(--rule); }
@media (prefers-reduced-motion: reduce) { .auth-sheet { transform: none; } }
@media (max-width: 900px) {
  .auth-side { padding: 18px 20px; }
  .auth-side::before { left: auto; right: -40%; bottom: -260%; width: 120%; opacity: .35; }
  .auth-pitch { display: none; }
  .auth-main { justify-content: flex-start; padding: 32px 16px 80px; }
}

/* ---- Page jobs: Overview, Brief, Sales ----
   Each page has one job (DECISIONS.md "Each page has one job", 2 Oct 2026). Overview: the year so
   far and where it's heading. Daily brief: the day, with the fortnight around it. Sales: why sales
   are what they are (store and customer split, products that moved the total). */
.page-jump { white-space: nowrap; }
.page-jump a, a.page-jump { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); text-underline-offset: 3px; }
.page-jump .icon, a.page-jump .icon { width: 12px; height: 12px; }
.year-block { margin: 32px 0 40px; }
.year-block .figure-row { margin-bottom: 16px; }
.year-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
.year-run { margin: 0; }
.year-run figcaption { margin-bottom: 8px; }
.year-ahead { display: grid; gap: 6px; padding: 20px 0 0; border-top: 1px solid var(--ink); }
.year-ahead h3 { font: 600 1.0625rem/1.3 var(--display); font-stretch: 92%; margin: 0 0 4px; }
.year-ahead p { margin: 0; }
.ya-big { font: 700 2rem/1.1 var(--display); font-stretch: 92%; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ya-k { margin-top: 12px !important; padding-top: 12px; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 0.8125rem; }
.ya-v { font: 650 1.25rem/1.2 var(--display); font-stretch: 92%; font-variant-numeric: tabular-nums; }
.ya-link { margin-top: 12px !important; font-size: 0.875rem; }
.ya-link a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); text-underline-offset: 3px; }
.ya-link .icon { width: 12px; height: 12px; }
.ov-period-h { font: 600 1.25rem/1.3 var(--display); font-stretch: 92%; margin: 40px 0 4px; }
.brief-todo .td-why { display: block; margin-top: 2px; color: var(--ink-2); font-weight: 400; font-size: 0.8125rem; line-height: 1.4; }
.brief-fortnight { margin: 24px 0; }
.brief-fortnight figcaption { margin-bottom: 10px; }
.brief-year { margin: 24px 0 8px; font-size: 0.875rem; }
.sales-who, .sales-movers { margin: 40px 0; }
.sales-who .split-panels { margin: 12px 0 0; }
.mover-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 12px; }
.mover-col { min-width: 0; overflow-x: auto; }
.mover-col table { width: 100%; }
.mover-col h3 { font: 600 1rem/1.3 var(--display); font-stretch: 92%; margin: 0 0 8px; }
.mover-col .delta { white-space: nowrap; }
@media (max-width: 900px) {
  .year-grid { grid-template-columns: 1fr; }
  .page-jump { white-space: normal; }
}
/* ---- Account and Settings (redesign) ----
   One sheet per area, each with a title, one line on what it's for, its controls and its own
   save button, which says who the change reaches (the workspace, or just you). On wide screens a
   sticky index sits beside the sheets; the section in view is marked with the highlighter, like
   "now" everywhere else. Account opens with who you are, then name, sign-in and workspaces. */
.set-layout { display: grid; grid-template-columns: 192px minmax(0, 800px); gap: 28px; align-items: start; }
.set-nav { position: sticky; top: 84px; }
.set-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--rule); }
.set-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px 0 16px; margin-left: -1px; border-left: 3px solid transparent;
  color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; font-weight: 500; }
.set-nav a:hover { color: var(--ink); border-left-color: var(--rule-strong); }
.set-nav a[aria-current="location"] { color: var(--ink); font-weight: 650; border-left-color: var(--ink); }
.set-nav a[aria-current="location"] span { background: linear-gradient(transparent 52%, var(--mark-soft) 52%, var(--mark-soft) 94%, transparent 94%); }
.set-nav a:focus-visible { outline-offset: -2px; border-radius: 0 var(--r-sm) var(--r-sm) 0; }

.set-body, .acct { min-width: 0; }
.acct { max-width: 780px; }
.set-flash { margin: 0 0 20px; }
.set-flash.in-sheet { margin: 12px 0 18px; }
.set-sheet { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 26px 30px 28px; margin: 0 0 24px; scroll-margin-top: 80px; }
.set-sheet [id] { scroll-margin-top: 80px; }
.set-head { margin: 0 0 22px; }
.set-head h2 { margin: 0; font: 650 1.4375rem/1.15 var(--display); font-stretch: 92%; letter-spacing: -0.02em; font-variation-settings: "opsz" 36; }
.set-head p { margin: 6px 0 0; color: var(--ink-2); font-size: 0.9375rem; max-width: 62ch; }
.set-part { padding: 24px 0 0; margin: 24px 0 0; border-top: 1px solid var(--rule); }
.set-head + .set-part { padding-top: 0; margin-top: 0; border-top: 0; }
.set-part h3 { margin: 0; font: 650 1.0625rem/1.3 var(--text); }
.set-part h4 { margin: 0; font: 650 0.9375rem/1.3 var(--text); }
.set-sub { margin: 4px 0 16px; color: var(--ink-2); font-size: 0.875rem; max-width: 64ch; }
.set-part h3 + form { margin-top: 14px; }
.set-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-top: 20px; }
.set-foot > button { margin-left: auto; }
.set-scope { margin: 0; font-size: 0.8125rem; color: var(--ink-3); max-width: 52ch; }
.set-count { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--ink-3); }
.set-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 20px; padding: 10px 14px; border-radius: var(--r); background: var(--mark-soft); font-size: 0.875rem; }
.set-note .icon { margin-top: 3px; color: var(--ink); }
.set-empty { margin: 0; padding: 16px; border: 1px dashed var(--rule-strong); border-radius: var(--r-md); color: var(--ink-2); font-size: 0.9375rem; }
.set-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0 0 10px; }
.set-links .btn { gap: 10px; }
.set-links a:not(.btn) { color: var(--ink); font-weight: 500; }
.set-label { font-size: 0.875rem; font-weight: 500; }

/* labelled fields: label beside control on wide screens, above it on phones */
.set-fields { display: grid; grid-template-columns: 168px minmax(0, 360px); gap: 12px 20px; align-items: start; }
.set-fields > label, .set-fields > .set-label { color: var(--ink-2); padding-top: 12px; }
.set-fields > .acct-static { padding-top: 9px; }
.set-fields input, .set-fields select { width: 100%; }

/* visual pickers: theme, look and year as tiles; chart colours as compact rows */
.set-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 600px; }
.set-tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; }
.set-tile, .set-pal { position: relative; display: block; cursor: pointer; font-weight: 400; }
.set-tile input, .set-pal input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.set-tile-body, .set-pal-body { position: relative; display: grid; gap: 6px; height: 100%; padding: 12px; border: 1px solid var(--rule-strong); border-radius: var(--r-md);
  background: var(--sheet); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.set-tile:hover .set-tile-body, .set-pal:hover .set-pal-body { border-color: var(--ink-3); }
.set-tile input:checked + .set-tile-body, .set-pal input:checked + .set-pal-body { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.set-tile input:checked + .set-tile-body::before, .set-pal input:checked + .set-pal-body::before,
.set-tile input:checked + .set-tile-body::after, .set-pal input:checked + .set-pal-body::after { content: ""; position: absolute; top: 10px; right: 10px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); }
.set-tile input:checked + .set-tile-body::after, .set-pal input:checked + .set-pal-body::after { background: var(--sheet);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-4.8' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.3 2.3 4.7-4.8' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.set-tile input:checked + .set-tile-body::before, .set-tile input:checked + .set-tile-body::after { top: 6px; right: 6px; }
.set-tile input:checked + .set-tile-body::before { box-shadow: 0 0 0 2px var(--sheet); }
.set-thumb + .set-tile-name { padding-right: 0; }
.biz-form > .set-foot { margin-top: 0; }
.set-tile input:focus-visible + .set-tile-body, .set-pal input:focus-visible + .set-pal-body { outline: 2px solid var(--accent); outline-offset: 2px; }
.set-tile input:disabled + .set-tile-body { opacity: .6; cursor: not-allowed; }
.set-tile-name, .set-pal-name { font-weight: 600; font-size: 0.9375rem; padding-right: 22px; color: var(--ink); }
.set-tile-note, .set-pal-note { font-size: 0.8125rem; line-height: 1.4; color: var(--ink-3); }
.set-thumb { display: grid; align-content: start; gap: 5px; height: 58px; padding: 10px 11px; border-radius: 8px; border: 1px solid var(--rule); overflow: hidden;
  --th-bg: #fdfdfb; --th-ink: #1c1b19; --th-mark: rgba(255, 216, 77, .8); --th-soft: #d8d5ce; background: var(--th-bg); }
.set-thumb i { display: block; height: 4px; border-radius: 2px; background: var(--th-soft); }
.set-thumb i:nth-child(1) { width: 52%; height: 7px; background: var(--th-ink); }
.set-thumb i:nth-child(2) { width: 84%; background: linear-gradient(90deg, var(--th-mark) 0 38%, var(--th-soft) 38%); }
.set-thumb i:nth-child(3) { width: 66%; }
.th-dark { --th-bg: #181817; --th-ink: #f3f2ee; --th-mark: rgba(245, 207, 69, .75); --th-soft: #3a3936; }
.th-system { background: linear-gradient(105deg, #fdfdfb 0 50%, #181817 50%); --th-ink: #86827b; --th-soft: #86827b; }
.lk-atlas { --th-bg: #f7f6f3; }
.lk-mono { --th-bg: #ffffff; --th-ink: #000000; --th-mark: #767676; --th-soft: #c4c4c4; }
.lk-glass { --th-bg: #2A1F1B; --th-ink: #F7F0E9; --th-mark: rgba(255, 240, 228, .55); --th-soft: rgba(255, 236, 220, .30); background: var(--th-bg) url("/static/glass/scene-soft.webp") center 62% / cover; }
/* Settings, Look: what sits behind the glass (desktop.ts GLASS_BGS; the same scenes as glass.css) */
.set-bgs { border: 0; padding: 0; margin: 16px 0 0; min-width: 0; }
.set-bgs legend { padding: 0; font-weight: 600; font-size: 0.875rem; color: var(--ink); }
.set-bg-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 8px; }
.set-bg { position: relative; display: grid; justify-items: center; gap: 6px; width: 76px; cursor: pointer; font-weight: 400; }
.set-bg input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.set-bg-sw { width: 64px; height: 44px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--rule-strong); transition: box-shadow .15s var(--ease); }
.set-bg-name { font-size: 0.75rem; line-height: 1.25; text-align: center; color: var(--ink-2); }
.set-bg:hover .set-bg-sw { box-shadow: inset 0 0 0 1px var(--ink-3); }
.set-bg input:checked + .set-bg-sw { box-shadow: 0 0 0 2px var(--sheet), 0 0 0 4px var(--ink); }
.set-bg input:checked ~ .set-bg-name { color: var(--ink); font-weight: 600; }
.set-bg input:focus-visible + .set-bg-sw { outline: 2px solid var(--accent); outline-offset: 4px; }
.gbg-landscape { background: #2A1F1B url("/static/glass/scene-soft.webp") center 62% / cover; }
.gbg-clear { background: repeating-conic-gradient(rgba(255, 255, 255, .55) 0 25%, rgba(161, 161, 170, .35) 0 50%) 0 0 / 12px 12px; }
.gbg-dusk { background: radial-gradient(120% 90% at 72% 28%, #8A4B5C, transparent 62%), linear-gradient(160deg, #3A2230, #2B1A22); }
.gbg-ocean { background: radial-gradient(120% 90% at 72% 28%, #2E6E8E, transparent 62%), linear-gradient(160deg, #12283A, #0F1C2A); }
.gbg-forest { background: radial-gradient(120% 90% at 72% 28%, #4E7A5A, transparent 62%), linear-gradient(160deg, #1B2E22, #142019); }
.gbg-violet { background: radial-gradient(120% 90% at 72% 28%, #5B4A9E, transparent 62%), linear-gradient(160deg, #241D40, #1B1630); }
.gbg-graphite { background: radial-gradient(120% 90% at 72% 28%, #4A4A52, transparent 62%), linear-gradient(160deg, #222226, #1A1A1D); }
.set-pals { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.set-pal-body { gap: 7px; padding: 11px 12px; align-content: start; }
.set-pal .palette-sw i { height: 10px; border-radius: 3px; }

/* stores */
.set-stores { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 12px; }
.set-store { padding: 16px 18px; border: 1px solid var(--rule); border-radius: var(--r-md); }
.set-store-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 14px; }
.set-store-name { flex: 1 1 220px; max-width: 360px; font-weight: 600; font-size: 1rem; }
.set-store-top .set-count { margin-left: auto; }
.set-add { margin-top: 16px; }
.set-add > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px; border-radius: var(--r); cursor: pointer; list-style: none;
  font-weight: 600; font-size: 0.9375rem; color: var(--ink); border: 1px dashed var(--rule-strong); }
.set-add > summary::-webkit-details-marker { display: none; }
.set-add > summary:hover { border-color: var(--ink-3); background: var(--tint); }
.set-add[open] > summary { margin-bottom: 12px; }
.set-add .stack-form { margin-top: 0; }

/* year and seasons */
.set-seasons { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-soft); }
.set-seasons > li { display: flex; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
.season-form.set-season { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px 14px; }
.set-season-name { font-weight: 650; }
.set-dates { display: flex; align-items: center; gap: 8px; }
.season-form.set-season input[type="date"] { width: 150px; }
.set-season .async-status { grid-column: 1 / -1; margin: 0; }
.set-remove button.linkish.danger, .acct button.linkish { min-height: 44px; padding: 0 12px; }
button.linkish.danger:hover { background: color-mix(in srgb, var(--critical) 10%, transparent); color: var(--bad-ink); }
.set-season-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.set-tool { display: grid; align-content: start; gap: 12px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: var(--r-md); background: color-mix(in srgb, var(--ink) 1.5%, var(--sheet)); }
.set-tool .set-sub { margin: -6px 0 0; }
.set-tool > button { justify-self: start; }
.set-tool .sf-row label { font-size: 0.8125rem; color: var(--ink-2); }
.set-tool .sf-row input[type="date"] { width: 150px; }

/* plan */
.set-plan-now { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 18px; }
.set-plan-name { margin: 0 0 2px; font: 650 1.375rem/1.15 var(--display); font-stretch: 92%; letter-spacing: -0.025em; }
.set-plan-now .quiet { margin: 0; max-width: 56ch; }
.set-pay { margin: 0 0 18px; }
.set-pay .set-note { margin-bottom: 10px; }
.set-pay-plans { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 8px 0; }
.set-pay-plans .set-inline { margin: 0; }
.set-plan-table { width: 100%; }
.set-sheet .table-scroll { max-height: none; overflow-y: visible; }
.set-plan-table th[scope="row"] { font-weight: 500; white-space: normal; min-width: 0; }
.set-plan-table th, .set-plan-table td { padding-left: 12px; padding-right: 12px; }
/* the plan comparison's sentences wrap inside equal columns rather than pushing the table wide */
.set-plan-table { table-layout: fixed; }
.set-plan-table thead th:first-child { width: 28%; }
table.data.set-plan-table td { white-space: normal; overflow-wrap: break-word; font-size: 0.875rem; line-height: 1.4; vertical-align: middle; }
table.data.set-plan-table thead th { white-space: normal; }
.set-plan-table thead th .quiet { display: block; font-weight: 400; }
@media (max-width: 560px) { .set-plan-table { table-layout: auto; min-width: 520px; } }
.set-admin .set-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 6px; }
.set-admin .set-inline label { color: var(--ink-2); min-width: 150px; }
.set-learn .set-scope { margin-top: 2px; }

/* account */
.acct-id { display: flex; align-items: center; gap: 18px; margin: -8px 0 28px; }
.acct-avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--mark); color: #1c1b19;
  font: 700 1.75rem/1 var(--display); font-stretch: 92%; }
.acct-who p { margin: 0; }
.acct-name { font: 650 1.375rem/1.2 var(--display); font-stretch: 92%; letter-spacing: -0.02em; }
.acct-email { color: var(--ink-2); overflow-wrap: anywhere; }
.acct-how { font-size: 0.8125rem; color: var(--ink-3); }
.acct-static { margin: 0; overflow-wrap: anywhere; }
.acct-pw { display: grid; gap: 6px; }
.acct .pw-toggle { margin: 0; }
.acct-out { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.acct-out .set-sub { margin-bottom: 0; }
.acct-out form { margin-left: auto; }
.acct-ws { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-soft); }
.acct-ws > li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
.acct-ws-mark { width: 36px; height: 36px; border-radius: var(--r); display: grid; place-items: center; flex: none; background: var(--tint); font-weight: 650; }
.acct-ws > li.on .acct-ws-mark { background: var(--mark); color: #1c1b19; }
.acct-ws-name { flex: 1; min-width: 0; display: grid; }
.acct-ws-name strong { font-weight: 600; overflow-wrap: anywhere; }
.acct-now { color: var(--ink); font-weight: 600; }
.acct-team { width: 100%; }
.acct-invite { margin-top: 4px; }
.acct-roles { margin-top: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .acct-roles { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 1100px) {
  .set-layout { display: block; }
  .set-nav { position: static; margin: -12px 0 20px; }
  .set-nav ul { display: flex; gap: 6px; overflow-x: auto; border: 0; padding: 2px 2px 6px; scrollbar-width: none; }
  .set-nav ul::-webkit-scrollbar { display: none; }
  .set-nav a { margin: 0; border: 1px solid var(--rule); border-radius: 999px; padding: 0 14px; white-space: nowrap; background: var(--sheet); }
  .set-nav a:hover { border-color: var(--ink-3); }
  .set-nav a[aria-current="location"] { border-color: var(--ink); }
}
@media (max-width: 640px) {
  .set-sheet { padding: 20px 16px 22px; border-radius: var(--r-md); margin-bottom: 16px; }
  .set-head h2 { font-size: 1.3125rem; }
  .set-fields { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .set-fields > label, .set-fields > .set-label, .set-fields > .acct-static { padding-top: 0; }
  .set-fields > label:not(:first-child), .set-fields > .set-label:not(:first-child) { margin-top: 8px; }
  .set-foot { flex-direction: column; align-items: stretch; }
  .set-foot > button { margin-left: 0; width: 100%; }
  .set-tiles { gap: 8px; }
  .set-tile-body { padding: 10px; }
  .set-tile-name { font-size: 0.875rem; }
  .set-pals { grid-template-columns: minmax(0, 1fr); }
  .set-store { padding: 14px; }
  .set-store-top .set-count { margin-left: 0; }
  .set-seasons > li { position: relative; display: block; }
  .season-form.set-season { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name save" "dates dates"; align-items: start; }
  .set-season-name { grid-area: name; }
  .set-season > button { grid-area: save; margin-right: 84px; }
  .set-dates { grid-area: dates; }
  .season-form.set-season input[type="date"] { width: auto; flex: 1 1 0; min-width: 0; padding: 0 8px; }
  .set-remove { position: absolute; top: 12px; right: 0; }
  .set-season-tools { grid-template-columns: minmax(0, 1fr); }
  .set-tool .sf-row label { flex: 1 1 120px; }
  .set-tool .sf-row input { width: 100%; }
  .acct-id { gap: 14px; }
  .acct-avatar { width: 52px; height: 52px; font-size: 1.4rem; }
  .acct-out form, .acct-out button { width: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .set-tile-body, .set-pal-body { transition: none; } }

/* ---------------------------------------------------------------- Ask Atlas polish (3 Oct 2026)
   Answers read like a page of the planner: the verdict in a word, the answer in a Bricolage
   sentence with its key figure under the highlighter, then the evidence on ruled lines (each
   with the rule it rests on), then what to do, numbered. No boxes inside the answer sheet.
   The thinking state lists what Atlas is checking as it happens. Phones get a full-height
   sheet that rises from the bottom, with room for the notch and the home bar. The glass panel,
   the orb and the spectrum edge (the AI's mark, approved 1 Oct) are unchanged. */

/* the welcome: one plain sentence, no gradient text */
.ask .ask-hi { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ink);
  font: 650 1.75rem/1.12 var(--display); font-stretch: 92%; letter-spacing: -0.02em; }
.ask-off-k { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; font: 600 0.8125rem var(--text); color: var(--ink-2); }
.ask-off-k .icon { width: 15px; height: 15px; color: var(--warning-mark); }
.ask-off .ask-hi { font-size: 1.375rem; line-height: 1.25; }
.ask-off .ask-setup-link, .ask-off .ans-retry { margin-top: 10px; }

/* the answer sheet */
.ask .ans-card { padding: 18px 20px 12px; }
.ans-verdict { gap: 7px; margin: 0 0 10px; padding: 3px 10px 3px 4px; border-radius: 999px; font: 600 0.8125rem/1.2 var(--text); width: fit-content;
  background: var(--tint); color: var(--ink-2); }
.ans-verdict .ans-dot { width: 20px; height: 20px; background: none !important; }
.ans-verdict .ans-dot .icon { width: 15px; height: 15px; }
.v-good .ans-verdict { background: color-mix(in srgb, var(--good) 12%, transparent); color: var(--good-ink); }
.v-watch .ans-verdict { background: color-mix(in srgb, var(--warning) 16%, transparent); color: var(--warning-mark); }
.v-act .ans-verdict { background: color-mix(in srgb, var(--serious) 14%, transparent); color: var(--bad-ink); }
.v-act .ans-verdict .ans-dot { color: var(--bad-ink); }
.ask .ans-head, .ins .ans-head { margin: 0 0 16px; font: 650 1.5rem/1.2 var(--display); font-stretch: 92%; letter-spacing: -0.02em; color: var(--ink); text-wrap: pretty; }
/* the highlighter under the key figure, as on the planner's "now" */
mark.hl { color: inherit; padding: 0 .1em; margin: 0 -.04em; border-radius: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(transparent 56%, var(--mark) 56%, var(--mark) 92%, transparent 92%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) mark.hl { background: linear-gradient(transparent 80%, var(--mark) 80%, var(--mark) 93%, transparent 93%); } }
:root[data-theme="dark"] mark.hl { background: linear-gradient(transparent 80%, var(--mark) 80%, var(--mark) 93%, transparent 93%); }
@media (prefers-contrast: more) { mark.hl { background: var(--mark); color: #1c1b19; } }

/* section labels: small, sentence case, a hairline above (the planner's ruled lines) */
.ans .ans-why h4, .ans .ans-do h4, .ans .ans-unknown h4 { margin: 0; padding: 12px 0 4px; border-top: 1px solid var(--rule); font: 600 0.8125rem var(--text); color: var(--ink-3); }
.ans-why .ans-points > li { position: relative; padding: 8px 0 9px 16px; border-top: 0; }
.ans-why .ans-points > li + li { border-top: 1px solid var(--rule-soft); }
.ans-why .ans-points > li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
.ans-why .ans-points p { font-size: 0.9375rem; line-height: 1.55; }
/* the rule each point rests on: quiet, openable */
.ans .rules { gap: 4px; margin-top: 6px; }
.ans .rule summary { min-height: 26px; padding: 2px 10px 2px 3px; gap: 6px; font: 500 0.75rem var(--text); color: var(--ink-2);
  background: transparent; box-shadow: inset 0 0 0 1px var(--rule); }
.ans .rule summary b { min-width: 24px; height: 20px; background: var(--tint); color: var(--ink); font-weight: 650; }
.ans .rule summary:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.ans .rule[open] summary { background: var(--mark-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mark) 60%, var(--rule)); color: var(--ink); }
.ans .rule p { margin: 4px 0 2px; border-radius: 10px; background: var(--tint); border-left: 3px solid var(--mark); }

/* what to do: numbered, on the sheet itself rather than a box inside it */
.ask .ans-do, .ins .ans-do { margin: 6px 0 0; padding: 0; border-radius: 0; background: none; }
.ans-do li { padding: 9px 0 10px 32px; }
.ans-do li + li { border-top: 1px solid var(--rule-soft); }
.ans-do li::before { top: 9px; width: 22px; height: 22px; font: 650 0.75rem var(--text); background: none; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.ans-do-t { font-weight: 650; }
.ask .ans-go, .ins .ans-go { min-height: 32px; padding: 0 12px; box-shadow: inset 0 0 0 1px var(--rule-strong); background: transparent; }
.ask .ans-go:hover, .ins .ans-go:hover { box-shadow: inset 0 0 0 1px var(--ink-3); background: var(--tint); }
.ans-unknown ul { margin: 4px 0 2px; }
.ans .ans-unknown li { padding: 2px 0; }

/* the foot: the figure check, what Atlas looked at, copy and thumbs */
.ask .ans-foot, .ins .ans-foot { margin-top: 12px; border-top-color: var(--rule); gap: 6px; }
.ans-steps summary { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; list-style: none; }
.ans-steps summary::-webkit-details-marker { display: none; }
.ans-steps summary::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s ease; margin-right: 2px; }
.ans-steps[open] summary::before { transform: rotate(45deg); }
.ans-steps-n { color: var(--ink-3); font-weight: 400; }
.ans-steps ol { padding-left: 22px; }
.ans-fb { gap: 2px; margin: 0 -6px; }
.ask .fb-btn, .ins .fb-btn { width: 36px; height: 36px; color: var(--ink-3); }
.fb-btn:focus-visible, .ans-go:focus-visible, .ask-pill:focus-visible, .ans .rule summary:focus-visible, .ans-steps summary:focus-visible,
.ans-retry:focus-visible, .ask-icon:focus-visible, .ask-sug:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fb-sep { width: 1px; height: 18px; margin: 0 4px; background: var(--rule); }
.ans-copy { position: relative; }
.ans-copied { display: none; font: 600 0.75rem var(--text); }
.ans-copy.copied { width: auto; padding: 0 10px; color: var(--good-ink); }
.ans-copy.copied svg { display: none; }
.ans-copy.copied .ans-copied { display: inline; }
.ans-stub { margin: -4px 0 14px; padding: 8px 12px; border-radius: 10px; font-size: 0.8125rem; line-height: 1.45; color: var(--ink-2);
  background: color-mix(in srgb, var(--warning) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warning) 45%, transparent); }
.ans-stub b { display: block; color: var(--warning-mark); font-weight: 650; }

/* ask next: follow-up chips under the latest answer only */
.ans-next { align-items: center; gap: 6px; margin: 12px 0 0 2px; }
.ans-next-k { font: 600 0.75rem var(--text); color: var(--ink-3); margin-right: 2px; }
.ask .ans-next .ask-pill { min-height: 34px; padding: 6px 13px; box-shadow: inset 0 0 0 1px var(--rule); background: var(--sheet); }
.ask .ans-next .ask-pill:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, var(--rule)); background: var(--sheet); }
.ask-body > article.ans:not(:last-of-type) .ans-next { display: none; }
.ask-body > article.ans:not(:last-of-type) { margin-bottom: 30px; }

/* failures: what happened, and the next step */
.ans-error .ans-card { padding-bottom: 14px; }
.ans-fail .icon { color: var(--bad-ink); }
.ans-fail-next { margin: 8px 0 0 24px; }
.ans-retry { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 0.8125rem var(--text); color: var(--ink); background: var(--tint); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.ans-retry:hover { background: var(--sheet); box-shadow: inset 0 0 0 1px var(--ink-3); }
.ans-retry svg { width: 14px; height: 14px; }

/* the thinking state: each lookup while it runs, ticked when done; the thinking between them */
.ask-live .ask-steps { margin-top: 2px; padding: 12px 14px 8px; border-radius: 18px; background: var(--sheet); box-shadow: 0 0 0 1px var(--glass-line); }
.ask-step.ask-think { color: var(--ink-2); }
.ask-slow { margin: 8px 4px 0; font-size: 0.8125rem; color: var(--ink-3); }

/* the panel's frame: a little more room at the foot so the last chips clear the question box */
.ask .ask-body { padding-bottom: 28px; }
.ask-icon { width: 36px; height: 36px; }

/* touch: 44px targets for everything tapped often */
@media (pointer: coarse) {
  .ask .fb-btn, .ins .fb-btn, .ask-icon { width: 44px; height: 44px; }
  .ask .ans-next .ask-pill, .ans-retry, .ask .ans-go, .ins .ans-go { min-height: 44px; }
  .ans .rule summary, .ans-steps summary { min-height: 36px; }
  .ask-tabs button { height: 36px; padding: 0 14px; }
  .ask-who select { height: 36px; padding: 0 12px; }
  .ask-send { width: 40px; height: 40px; }
}

/* phones: a full-height sheet that rises from the bottom, clear of the notch and the home bar */
@media (max-width: 640px) {
  .ask-head { padding: calc(12px + env(safe-area-inset-top)) 12px 8px 16px; }
  .ask-ctx { flex-wrap: wrap; row-gap: 4px; -webkit-mask-image: none; mask-image: none; }
  .ask .ask-body { padding: 8px 14px 24px; }
  .ask-foot { padding: 6px 12px calc(10px + env(safe-area-inset-bottom)); }
  .ask .ans-card { padding: 16px 16px 10px; border-radius: 22px; }
  .ask .ans-head { font-size: 1.3125rem; }
  .ask .ask-hi { font-size: 1.5rem; }
}
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  .ask:not([hidden]) { animation: ask-sheet-in .34s cubic-bezier(.16, 1, .3, 1); }
  .ask.closing { animation: ask-sheet-out .2s ease forwards; }
}
@keyframes ask-sheet-in { from { transform: translateY(32px); opacity: 0; } }
@keyframes ask-sheet-out { to { transform: translateY(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ask .ans-new *, .ask-live * { animation: none !important; } }
/* ===================================================================== Shop brain (src/brain.ts)
   Each finding's specialist, confidence and evidence on the Atlas AI page, and "How Atlas AI sees
   your shop": the specialists as a ruled index, the knowledge map and the rule-by-rule record. */
.sb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 2px 0 8px; font-size: 0.8125rem; color: var(--ink-2); }
.sb-who { font-weight: 600; color: var(--ink); }
.sb-conf { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.sb-meter { position: relative; display: inline-block; width: 56px; height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 12%, transparent); overflow: hidden; }
.sb-meter i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--series1); transition: width .5s var(--ease); }
.sb-pick { padding: 2px 8px; border-radius: 999px; font-size: 0.6875rem; font-weight: 700; background: var(--mark-soft); color: var(--ink); }
.sb-why { margin: 0 0 10px; }
.sb-why > summary { cursor: pointer; font-size: 0.8125rem; color: var(--accent); min-height: 32px; display: inline-flex; align-items: center; }
.sb-ev { width: 100%; border-collapse: collapse; margin: 6px 0 8px; font-size: 0.8125rem; }
.sb-ev th, .sb-ev td { padding: 6px 8px 6px 0; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; }
.sb-ev tr:first-child th, .sb-ev tr:first-child td { border-top: 1px solid var(--ink); }
.sb-ev th { font-weight: 500; color: var(--ink); }
.sb-ev td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.sb-ev .sb-src { color: var(--ink-3); font-size: 0.75rem; padding-left: 12px; }
.sb-cal { margin: 4px 0 0; font-size: 0.8125rem; color: var(--ink-2); max-width: 70ch; }
.sb-also { margin-top: 8px; font-size: 0.8125rem; color: var(--ink-2); }
.sb-also p { margin: 0 0 2px; } .sb-also ul { margin: 0; padding-left: 18px; }

.sb-team { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; border-top: 1px solid var(--ink); }
.sb-team li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.sb-n { font-family: var(--display); font-stretch: 92%; font-size: 1.375rem; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ink-3); }
.sb-team li.has .sb-n { color: var(--ink); }
.sb-team li.has .sb-n::after { content: ""; display: block; width: 18px; height: 3px; margin-top: 3px; border-radius: 2px; background: var(--mark); }
.sb-team li.off { opacity: .6; }
.sb-name { margin: 0; font-weight: 600; font-size: 0.875rem; }
.sb-watch { margin: 2px 0 0; font-size: 0.8125rem; color: var(--ink-2); }
.sb-two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; margin-top: 22px; }
.sb-two h3 { margin: 0 0 8px; font-family: var(--display); font-stretch: 92%; font-size: 1.0625rem; font-weight: 600; }
.sb-mem dl { margin: 0; border-top: 1px solid var(--ink); }
.sb-mem dl > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.sb-mem dt { font-size: 0.8125rem; color: var(--ink-3); }
.sb-mem dd { margin: 0; } .sb-mem dd ul { margin: 0; padding: 0; list-style: none; font-size: 0.8125rem; }
.sb-mem dd li + li { margin-top: 3px; }
.sb-rules { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.sb-rules th, .sb-rules td { padding: 7px 8px 7px 0; border-bottom: 1px solid var(--rule); text-align: left; }
.sb-rules thead th { border-bottom: 1px solid var(--ink); color: var(--ink-3); font-weight: 500; }
.sb-rules tbody th { font-weight: 500; }
.sb-rules .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.sb-rec { color: var(--ink-2); padding-left: 12px !important; }
@media (max-width: 760px) {
  .sb-team { grid-template-columns: minmax(0, 1fr); }
  .sb-two { grid-template-columns: minmax(0, 1fr); }
  .sb-mem dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .sb-ev .sb-src { display: block; padding-left: 0; }
  .sb-ev tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .sb-ev td.sb-src { grid-column: 1 / -1; border-top: 0; padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .sb-meter i { transition: none; } }
/* ---- Promotions (3 Oct 2026) ----
   Ideas ranked by projected profit (server/src/promotions.ts). Each idea is a ruled row in a
   numbered list, not a card: a big rank numeral, the idea as a Bricolage sentence, its facts on a
   hairline grid with the profit picked out, the reasoning, the risk and two actions. Then the
   evidence, the "test a promotion" calculator and the promotions being tracked. */
.promo-jump { margin: 8px 0 24px; font-size: 0.875rem; }
.promo-figs .fig-value { font-size: 1.625rem; }
.promo-guard { margin: 24px 0 8px; }
.promo-guard h2 { font: 600 1.125rem/1.3 var(--display); font-stretch: 92%; margin: 0 0 8px; }
.promo-guard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.promo-guard li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; padding: 10px 12px; border-radius: var(--r-md); background: var(--tint); line-height: 1.45; }
.promo-guard li .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--ink-3); }
.promo-rules { color: var(--ink-3); font-size: 0.75rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.promo-ideas { margin: 36px 0 16px; }
.promo-ideas .section-head h2 { font: 600 1.375rem/1.25 var(--display); font-stretch: 92%; letter-spacing: -0.01em; }
.promo-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.promo-idea { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 0 20px; padding: 24px 0 26px; border-bottom: 1px solid var(--rule); }
.promo-rank { font: 650 2.5rem/1 var(--display); font-stretch: 92%; letter-spacing: -0.03em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.promo-idea:first-child .promo-rank { color: var(--ink); }
.promo-idea:first-child .promo-rank::after { content: ""; display: block; width: 28px; height: 6px; margin-top: 8px; border-radius: 3px; background: var(--mark); }
.promo-body { min-width: 0; }
.promo-body h3 { font: 620 1.375rem/1.25 var(--display); font-stretch: 92%; letter-spacing: -0.015em; margin: 0 0 4px; text-wrap: balance; }
.promo-offer { margin: 0 0 14px; color: var(--ink-2); }
.promo-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 14px; border-top: 1px solid var(--rule); }
.promo-facts > div { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule-soft); min-width: 0; }
.promo-facts dt { font-size: 0.75rem; font-weight: 500; color: var(--ink-3); margin: 0 0 2px; }
.promo-facts dd { margin: 0; font-size: 0.875rem; line-height: 1.4; font-variant-numeric: tabular-nums; }
.promo-profit strong { font: 650 1.375rem/1.15 var(--display); font-stretch: 92%; letter-spacing: -0.01em; margin-right: 4px; }
.promo-tag { display: inline-block; padding: 0 6px; border-radius: 999px; background: var(--tint); color: var(--ink-2); font-size: 0.6875rem; font-weight: 600; white-space: nowrap; }
.promo-conf { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.promo-conf::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.promo-conf.c-high { color: var(--good-ink); } .promo-conf.c-high::before { background: currentColor; }
.promo-conf.c-medium { color: var(--ink); } .promo-conf.c-medium::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.promo-conf.c-low { color: var(--ink-2); }
.promo-why { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 4px; font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); }
.promo-risk { margin: 0 0 14px; font-size: 0.875rem; line-height: 1.5; }
.promo-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.promo-actions > button, .promo-run > summary { min-height: 44px; }
.promo-run > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--rule-strong); border-radius: var(--r); font-weight: 600; font-size: 0.875rem; }
.promo-run > summary::-webkit-details-marker { display: none; }
.promo-run[open] > summary { border-color: var(--ink); }
.promo-run-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 10px; padding: 14px; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--sheet); }
.promo-run-form label { display: grid; gap: 4px; font-size: 0.8125rem; color: var(--ink-2); }
.promo-run-form input[type="date"] { min-height: 44px; }
.promo-run-form button { min-height: 44px; }
.promo-run-form p { flex-basis: 100%; margin: 0; }
.promo-not { margin: 8px 0 32px; }
.promo-not > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.promo-evidence, .promo-calc, .promo-track { margin: 32px 0; }
.promo-evidence h3 { font: 600 1rem/1.3 var(--display); font-stretch: 92%; margin: 0 0 8px; }
.promo-ev-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; margin-top: 12px; }
.promo-ev { min-width: 0; }
.promo-range { display: block; }
.promo-ev td.nowrap { white-space: nowrap; }
.promo-ev h3 + p, .promo-ev p + h3 { margin-top: 0; }
.promo-ev p + h3 { padding-top: 12px; margin-top: 14px; border-top: 1px solid var(--rule); }
.promo-segs { list-style: none; margin: 0; padding: 0; }
.promo-segs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding: 7px 0; border-bottom: 1px solid var(--rule-soft); font-size: 0.875rem; }
.promo-segs li .quiet { grid-column: 1 / -1; }
.promo-calc-form { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto; gap: 12px; align-items: end; margin: 14px 0 18px; }
.promo-calc-form label { display: grid; gap: 4px; font-size: 0.8125rem; color: var(--ink-2); min-width: 0; }
.promo-calc-form select, .promo-calc-form input { min-height: 44px; width: 100%; }
.promo-calc-form button { min-height: 44px; }
.promo-pct { display: flex; align-items: center; gap: 6px; }
.promo-pct input { flex: 1; min-width: 0; }
.promo-calc-head { font-size: 1rem; margin: 0 0 10px; }
.promo-calc-head strong { font: 650 1.25rem/1.2 var(--display); font-stretch: 92%; }
.promo-ladder tr.promo-be > * { background: var(--mark-soft); }
.promo-runs td { vertical-align: top; }
.promo-v { display: inline-block; font-weight: 700; font-size: 0.8125rem; }
.promo-v.v-beat { color: var(--good-ink); } .promo-v.v-below { color: var(--bad-ink); } .promo-v.v-unclear { color: var(--ink-2); }
.promo-run-acts { min-width: 200px; }
.promo-run-acts .inline-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 6px; }
.promo-run-acts input { min-height: 36px; min-width: 0; flex: 1 1 140px; }
@media (max-width: 900px) {
  .promo-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promo-ev-grid { grid-template-columns: minmax(0, 1fr); }
  .promo-calc-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .promo-calc-form .wide { grid-column: 1 / -1; }
  .promo-calc-form button { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .promo-idea { grid-template-columns: minmax(0, 1fr); padding: 20px 0; }
  .promo-rank { font-size: 1.75rem; margin-bottom: 6px; }
  .promo-idea:first-child .promo-rank::after { display: none; }
  .promo-body h3 { font-size: 1.1875rem; }
  .promo-facts { grid-template-columns: minmax(0, 1fr); }
  .promo-facts > div { padding-right: 0; }
  .promo-actions > *, .promo-actions > button { width: 100%; }
  .promo-run > summary { justify-content: center; }
  .promo-run-form label { flex: 1 1 130px; }
  .promo-run-form input[type="date"] { width: 100%; }
  .promo-run-form button { width: 100%; }
  .promo-calc-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promo-rules { white-space: normal; }
}
/* ---------------------------------------------------------------- Inventory planning (stock-views.ts, migration 083)
   The run-out headline with its highlighter, the four figures, the reorder list, stock over time
   beside expected sales, stock that isn't earning its keep, warehouses, and lead times. Colours
   come from the tokens above, so light, dark and black-and-white follow. */
.lede .inv-hl { background: linear-gradient(transparent 58%, var(--mark-soft) 58%, var(--mark-soft) 92%, transparent 92%); color: inherit; padding: 0 2px; border-radius: 2px; }
.inv-figures { margin: 8px 0 40px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.inv-figures .note { font-size: 0.8125rem; color: var(--ink-2); }
.inv-figures .note a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.inv-block { margin: 0 0 48px; }
.inv-block > h2, .inv-block .section-head h2 { font-size: 1.375rem; }
.inv-block > .note { max-width: 80ch; margin-top: 10px; line-height: 1.5; }
.inv-tag { display: inline-block; margin: 2px 0 2px; padding: 1px 8px; border-radius: 999px; font-size: 0.6875rem; font-weight: 650; color: var(--ink); background: var(--mark-soft); }
.inv-table { max-height: none; }
.inv-table table.data td, .inv-table table.data th { vertical-align: top; }
.inv-table .sub-num { white-space: nowrap; }
.inv-table .sub-num[title] { cursor: help; }
.inv-table .chip { white-space: nowrap; }
.inv-empty { display: flex; align-items: center; gap: 10px; padding: 18px 20px; margin: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-md); }
.inv-empty .icon { color: var(--good); }
.inv-more { margin-top: 12px; }
.inv-more > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 550; }
.inv-charts { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; margin: 0 0 48px; }
.inv-charts > .panel { margin: 0; }
.inv-charts > .panel:only-child { grid-column: 1 / -1; }
.inv-charts .mini-bars .bar.bar-quiet { fill: color-mix(in srgb, var(--series1) 32%, var(--sheet)); }
.inv-charts .mini-bars .bar.gv { fill: var(--series1); }
.inv-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 980px; }
.inv-split h3 { font: 600 1.0625rem var(--display); margin: 0 0 2px; }
.inv-split .quiet.small { margin: 0 0 10px; }
.inv-wh { max-width: 560px; }
.inv-settings > summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; min-height: 44px; list-style: none; cursor: pointer; }
.inv-settings > summary::-webkit-details-marker { display: none; }
.inv-settings > summary h2 { margin: 0; font-size: 1.375rem; }
.inv-settings > summary h2::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 10px; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-4px); }
.inv-settings[open] > summary h2::after { transform: rotate(-135deg) translateY(-1px); }
.inv-form { display: grid; gap: 16px; justify-items: start; margin-top: 12px; padding: 20px 24px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); }
.inv-defaults { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px 24px; width: 100%; }
.inv-defaults label, .inv-per label { display: grid; gap: 4px; font-weight: 600; font-size: 0.9375rem; }
.inv-defaults input, .inv-per input { width: 120px; min-height: 44px; font-variant-numeric: tabular-nums; }
.inv-per { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px 24px; margin-top: 8px; }
.inv-per label { grid-template-columns: minmax(0, 1fr) auto; align-items: center; font-weight: 500; }
.inv-per .sku { display: inline; }
.inv-form .inv-more { width: 100%; }
.inv-storage-h { font-size: 1.5rem; margin: 8px 0 16px; padding-top: 24px; border-top: 1.5px solid var(--ink); }
@media (max-width: 960px) {
  .inv-figures { grid-template-columns: 1fr 1fr; }
  .inv-charts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .inv-form { padding: 16px; }
  .inv-figures .tile .value { font-size: 1.5rem; }
}

/* ==== Daily brief: Day / Week switch and the week view (5 Oct 2026) ==== */
.brief-views a { font-weight: 600; }
.wk-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 18px; }
.wk-pick a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--rule);
  background: var(--sheet); color: var(--ink-2); font-size: 0.875rem; font-weight: 600; text-decoration: none; }
.wk-pick a:hover { color: var(--ink); border-color: var(--rule-strong); }
.wk-pick a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--sheet); }
.wk-nav .dn-pick input[type="week"] { height: 36px; border-radius: 10px; padding: 0 10px; font: 500 0.875rem var(--text); max-width: 11rem; }
.wk .dd-fact { align-content: start; }
.wk-cmp { display: grid; gap: 4px; margin-top: 2px; font-size: 0.75rem; color: var(--ink-3); }
.wk-cmp > span { display: flex; align-items: center; gap: 6px; }
.wk-days, .wk-hours { margin: 0 0 16px; }
.wk-days figcaption, .wk-hours figcaption { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.wk-days .chart .wb-prev { stroke: var(--ink-2); stroke-width: 2.5; stroke-linecap: round; }
.wk-days .chart .wb-ly { stroke: var(--series2); stroke-width: 2.5; stroke-dasharray: 5 3; stroke-linecap: round; }
.wk-days .chart .wb-slot { stroke: var(--rule-strong); stroke-width: 1.5; stroke-dasharray: 3 3; }
.wk-days .chart .wb-tag { font: 600 11px var(--text); fill: var(--ink-3); }
.wk-days .chart .wb-tag.best { fill: var(--ink); }
.wk-days .chart .wb-future .tick { fill: var(--ink-3); }
.wb-legend .wb-key { display: inline-block; width: 16px; height: 0; margin-right: 6px; vertical-align: middle; border-top: 2.5px solid var(--ink-2); }
.wb-legend .wb-key.ly { border-top: 2.5px dashed var(--series2); }
.hs { display: grid; gap: 3px; min-width: 300px; }
.hs-row { display: grid; grid-template-columns: 2.4rem repeat(24, minmax(8px, 1fr)); gap: 3px; align-items: center; }
.hs-d, .hs-h { font-size: 0.6875rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.hs-h { text-align: left; white-space: nowrap; overflow: visible; }
.hs-c { display: block; aspect-ratio: 1; min-height: 8px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.hs-c.s1 { background: color-mix(in srgb, var(--series1) 25%, transparent); }
.hs-c.s2 { background: color-mix(in srgb, var(--series1) 48%, transparent); }
.hs-c.s3 { background: color-mix(in srgb, var(--series1) 72%, transparent); }
.hs-c.s4 { background: var(--series1); }
.hs-c.off { background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent); }
.hs-c:hover, .hs-c:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.wk-products { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-bottom: 16px; }
.wk-products .panel { margin: 0; }
.wk-sub { margin: 12px 0 2px; font: 600 0.8125rem var(--text); color: var(--ink-3); }
.wk-products .sold-n { white-space: nowrap; }
.wk-who { margin: 0 0 16px; }
@media (max-width: 820px) { .wk-products { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
  .wk .dd-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wk .dd-fact { padding: 12px; }
  .wk .dd-fact strong { font-size: 1.25rem; }
  .wk-cmp > span { flex-wrap: wrap; }
  .wk-products .sold li { grid-template-columns: auto minmax(0, 1fr) auto; }
  .wk-products .sold-n { grid-column: 2; grid-row: 2; font-size: 0.75rem; }
}
/* ---------------------------------------------------------------- Customer service (/support, 084)
   Topics are an index of ruled rows: name, a bar for these dates with a tick for the period before,
   the count and the change. The topic most customers wrote about carries the highlighter. Examples
   open under each row as quoted margin notes. */
.cs-figs { margin-bottom: 32px; }
.cs-topic-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); max-width: 1080px; }
.cs-topic { border-bottom: 1px solid var(--rule); }
.cs-topic > details > summary { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) 6.5rem 3.5rem; align-items: center; gap: 8px 20px;
  min-height: 52px; padding: 8px 4px; list-style: none; cursor: pointer; border-radius: var(--r-sm); }
.cs-topic > details > summary::-webkit-details-marker { display: none; }
.cs-topic > details > summary:hover { background: var(--tint); }
.cs-topic > details > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cs-t-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-weight: 600; font-size: 0.9375rem; line-height: 1.3; }
.cs-topic.lead .cs-t-label { background: linear-gradient(transparent 55%, var(--mark-soft) 55%, var(--mark-soft) 92%, transparent 92%); padding: 0 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.cs-t-bar { display: block; width: 100%; height: 14px; border-radius: 7px; overflow: hidden; }
.cs-t-track { fill: var(--rule-soft); }
.cs-t-fill { fill: var(--series1); }
.cs-t-prev { fill: var(--ink); opacity: 0.55; }
.cs-t-n { font: 620 1.125rem/1 var(--display); font-stretch: 92%; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.cs-t-n .quiet { font: 500 0.8125rem var(--text); }
.cs-t-ch { font-size: 0.8125rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; color: var(--ink-2); }
.cs-t-ch.up { color: var(--bad-ink); } .cs-t-ch.down { color: var(--good-ink); }
.cs-examples { list-style: none; margin: 2px 0 14px; padding: 0 0 0 16px; display: grid; gap: 8px; max-width: 72ch; border-left: 2px solid var(--mark); }
.cs-examples li { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); }
.cs-examples li::before { content: "\201C"; } .cs-examples li::after { content: "\201D"; }
.cs-examples-none { margin: 0 0 12px 16px; }
.cs-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 12px; }
.cs-key-fill, .cs-key-prev { display: inline-block; flex: none; }
.cs-key-fill { width: 18px; height: 10px; border-radius: 5px; background: var(--series1); }
.cs-key-prev { width: 3px; height: 14px; margin-left: 8px; background: var(--ink); opacity: 0.55; }
.cs-driver-list { list-style: none; margin: 0; padding: 0; max-width: 820px; border-top: 1px solid var(--rule); }
.cs-driver-list li { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.cs-driver-list p { margin: 0; line-height: 1.5; }
.cs-driver-list a, .cs-fix-list a { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; font-weight: 600; justify-self: start; }
.cs-driver-list a .icon, .cs-fix-list a .icon { width: 13px; height: 13px; }
.cs-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 1080px; }
.cs-fix-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); column-gap: 32px; }
.cs-fix-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.cs-fix-list li { padding: 14px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 4px; align-content: start; }
.cs-fix-list h3 { font: 600 1.0625rem/1.3 var(--display); font-stretch: 92%; margin: 0; }
.cs-fix-list p { margin: 0; line-height: 1.5; }
.cs-fix-list .cs-fix-kind { font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }
.cs-source-acts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 4px 0 16px; }
.cs-more > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--accent); }
.cs-upload { display: grid; gap: 8px; justify-items: start; max-width: 560px; margin-top: 8px; }
.cs-upload label { font-weight: 600; font-size: 0.9375rem; }
.cs-upload input[type="email"] { width: 100%; max-width: 360px; min-height: 44px; }
.cs-upload input[type="file"] { max-width: 100%; }
.cs-upload .quiet.small { margin: 4px 0 0; line-height: 1.5; }
.cs-empty { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 24px; border-top: 1.5px solid var(--ink); max-width: 1080px; }
.cs-empty h2 { font-size: 1.375rem; margin: 0 0 8px; }
.cs-empty-main > p { max-width: 62ch; line-height: 1.55; }
.cs-connect { display: grid; gap: 8px; justify-items: start; margin: 20px 0 24px; }
.cs-connect button { min-height: 48px; padding-inline: 22px; font-size: 1rem; }
.cs-connect .quiet.small { margin: 0; max-width: 52ch; }
.cs-promise { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 62ch; }
.cs-promise li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; line-height: 1.5; }
.cs-promise .icon { flex: none; margin-top: 3px; color: var(--good); }
.cs-empty-side { padding: 20px 24px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); }
.cs-empty-side .cs-upload { margin-top: 0; }
@media (max-width: 960px) {
  .cs-split, .cs-empty { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 640px) {
  .cs-topic > details > summary { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "name n ch" "bar bar bar"; gap: 6px 12px; padding: 10px 2px; }
  .cs-t-name { grid-area: name; } .cs-t-n { grid-area: n; } .cs-t-ch { grid-area: ch; min-width: 2.5rem; } .cs-t-bar { grid-area: bar; height: 10px; }
  .cs-examples { padding-left: 12px; }
  .cs-empty-side { padding: 16px; }
}

/* ==== Seasonal headlines and voice (Settings → How Atlas talks to you) ==== */
.voice-group { display: grid; gap: 18px; padding-top: 20px; border-top: 1px solid var(--rule); }
.voice-group:first-of-type { border-top: 0; padding-top: 0; }
.voice-group > h3 { margin: 0; font-size: 1.0625rem; }
.voice-group > .set-sub { margin: -10px 0 0; }
.voice-preview { margin: 0; padding: 16px 18px 14px; border-top: 1.5px solid var(--ink); background: var(--sheet); max-width: 72ch; }
.voice-preview figcaption { font-size: 0.75rem; font-weight: 600; color: var(--ink-3); margin-bottom: 6px; }
.voice-preview-text { margin: 0; font-family: var(--display); font-stretch: 92%; font-size: 1.25rem; line-height: 1.3; font-weight: 600; color: var(--ink); text-wrap: pretty; }
.voice-preview-note { margin: 8px 0 0; font-size: 0.8125rem; color: var(--ink-3); }
.voice-preview-note[hidden] { display: none; }
.voice-preview.flash { animation: chip-flash .5s ease-out; }
@media (prefers-reduced-motion: reduce) { .voice-preview.flash { animation: none; } }
@media (max-width: 640px) { .voice-preview { padding: 14px 14px 12px; } .voice-preview-text { font-size: 1.125rem; } }
/* ---------------------------------------------------------------- since you last looked (087) and the week toggle
   The Sales strip, the Overview's line and the brief's "today so far": a ruled strip, not a card
   (DESIGN.md), figures in tabular numerals, lists only when they have something. Then the week
   view's two primary choices, This week and Last week. */
.since { margin: 4px 0 28px; padding-top: 14px; border-top: 1.5px solid var(--ink); max-width: 1080px; }
.since-head { display: grid; gap: 4px; margin-bottom: 12px; }
.since-head h2 { margin: 0; font: 600 1.1875rem/1.25 var(--display); font-stretch: 92%; letter-spacing: -0.01em; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.since-when { font: 500 0.9375rem var(--text); color: var(--ink-2); letter-spacing: 0; }
.since-sum { margin: 0; color: var(--ink-2); line-height: 1.5; max-width: 72ch; }
.since-sum a { font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; min-height: 32px; }
.since-sum a .icon { width: 13px; height: 13px; }
.since-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.since-figs > div { padding: 12px 16px 12px 0; display: grid; gap: 3px; align-content: start; }
.since-figs > div + div { padding-left: 16px; border-left: 1px solid var(--rule); }
.since-figs dt { font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }
.since-figs dd { margin: 0; display: grid; gap: 2px; }
.since-figs strong { font: 650 1.375rem/1.15 var(--display); font-stretch: 92%; font-variant-numeric: tabular-nums; letter-spacing: -0.015em; }
.since-norm { font-size: 0.8125rem; color: var(--ink-3); line-height: 1.4; font-variant-numeric: tabular-nums; }
.since-norm.v-above { color: var(--good-ink); }
.since-norm.v-below { color: var(--bad-ink); }
.since-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 8px 28px; margin-top: 14px; }
.since-list h3 { margin: 0 0 2px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }
.since-list ul { list-style: none; margin: 0; padding: 0; }
.since-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; border-bottom: 1px solid var(--rule-soft); }
.since-list li > a { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; color: inherit; text-decoration: none; }
.since-list li > a:hover .since-name { text-decoration: underline; text-underline-offset: 2px; }
.since-list li > a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
.since-list .icon { width: 13px; height: 13px; flex: none; color: var(--ink-3); }
.since-name { min-width: 0; font-size: 0.9375rem; line-height: 1.35; }
.since-v { flex: none; font-size: 0.875rem; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.since-note, .since-foot { margin: 6px 0 0; font-size: 0.8125rem; color: var(--ink-3); line-height: 1.45; }
.since-foot { margin-top: 12px; }
.since-line a { font-weight: 600; margin-left: 4px; white-space: nowrap; }
.since-today { margin-bottom: 20px; }
.since-today .since-head { margin-bottom: 0; }
.since-today .live-dot { display: inline-block; flex: none; }
.wk-toggle { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 8px; margin: 2px 0 20px; }
.wk-toggle a { display: grid; align-content: center; gap: 1px; min-height: 52px; padding: 6px 16px; border-radius: var(--r-md); border: 1px solid var(--rule-strong);
  background: var(--sheet); color: var(--ink); text-decoration: none; line-height: 1.2; }
.wk-toggle a:hover { border-color: var(--ink-3); color: var(--ink); }
.wk-toggle a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wk-toggle .wk-main-l { font-weight: 650; font-size: 1rem; }
.wk-toggle .wk-sub-l { font-size: 0.8125rem; color: var(--ink-2); }
.wk-toggle a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--sheet); }
.wk-toggle a[aria-current="true"] .wk-sub-l { color: color-mix(in srgb, var(--sheet) 78%, transparent); }
@media (max-width: 640px) {
  .since-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .since-figs > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .since-figs > div:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .since-figs strong { font-size: 1.25rem; }
  .wk-toggle { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- What you've told Atlas (089): notes on Settings, and the line under an answer ---- */
.note-list { list-style: none; margin: 8px 0 12px; padding: 0; border-top: 1px solid var(--rule); }
.note-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.note-list small { color: var(--ink-3); white-space: nowrap; }
.note-list form { margin: 0; flex: none; }
.note-add { display: flex; gap: 8px; max-width: 640px; }
.note-add input { flex: 1; min-width: 0; min-height: 44px; }
.ans-remember { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--mark) 22%, transparent); font-size: 0.875rem; }
.ans-remember .icon { flex: none; margin-top: 2px; }
.ans-remember a { margin-left: 6px; color: var(--ink); }
.note-h { margin: 18px 0 2px; font: 650 0.9375rem var(--text); }
.ans-changes { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--rule-strong); }
.ans-changes h4 { margin: 0 0 6px; font: 650 0.875rem var(--text); }
.ans-changes ul { list-style: none; margin: 0 0 6px; padding: 0; }
.ans-changes li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--rule); font-size: 0.875rem; }
.ans-changes form { margin: 0; flex: none; }
.chg-done, .chg-fail { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--good-ink); flex: none; max-width: 55%; }
.chg-fail { color: var(--bad-ink); }
/* orders offered to set aside (189): the orders themselves, then Undo */
.ans-changes li.chg-orders { display: block; }
.chg-orders-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chg-table { width: 100%; margin: 8px 0 4px; border-collapse: collapse; font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.chg-table th { text-align: left; font-weight: 600; color: var(--ink-2); padding: 4px 8px 4px 0; }
.chg-table td { padding: 4px 8px 4px 0; border-top: 1px solid var(--rule); }
.chg-table .num { text-align: right; }
.chg-table td:nth-child(-n+3) { white-space: nowrap; }
.chg-undo { display: flex; justify-content: flex-end; }

/* What sold most (week view): the rest and the total, so the list adds up to the week */
.sold li.sold-rest .sold-name { color: var(--ink-2); }
.sold li.sold-total { font-weight: 600; border-top: 1px solid var(--rule-strong); }
.sold .sold-swatch-gap { display: inline-block; width: 12px; }

/* Your data sources disagree (consistency.ts) */
.cross { margin: 0 0 24px; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid color-mix(in srgb, var(--warning) 45%, var(--rule)); background: color-mix(in srgb, var(--warning) 8%, var(--raised)); }
.cross.bad { border-color: color-mix(in srgb, var(--critical) 40%, var(--rule)); background: color-mix(in srgb, var(--critical) 6%, var(--raised)); }
.cross h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 17px; }
.cross h2 .icon { width: 18px; height: 18px; color: var(--warning-mark); } .cross.bad h2 .icon { color: var(--critical); }
.cross ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 8px; line-height: 1.5; }
.cross-fix { display: block; margin-top: 2px; }
.cross-line { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 18px; padding: 8px 12px; border-radius: var(--r-md); background: var(--sheet); border: 1px solid var(--line); color: var(--ink-2); font-size: 0.875rem; line-height: 1.45; }
.cross-line .icon { width: 16px; height: 16px; margin-top: 2px; flex: none; color: var(--ink-3); }
.cross-why { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); }
.cross-why h3 { margin: 0 0 6px; font-size: 15px; }
.cross-why .pill { font-size: 12px; margin-right: 4px; }
.ads-plat { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

/* Ad Studio (ad-studio.ts) */
.st-list { display: grid; gap: 16px; margin-bottom: 24px; }
.st-draft { padding: 18px 20px; border-radius: var(--r-md); border: 1px solid var(--rule); background: var(--raised); }
.st-top { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.st-kind { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--tint); color: var(--ink-2); }
.st-draft h3 { margin: 4px 0; font-size: 18px; }
.st-name { margin: 0 0 6px; font-size: 13px; color: var(--ink-3); } .st-name code { font-size: 12.5px; }
.st-hyp { margin: 0 0 10px; line-height: 1.5; }
.st-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 0 0 10px; }
.st-figs div { padding: 8px 10px; border-radius: var(--r); background: var(--tint); } .st-figs dt { font-size: 12px; color: var(--ink-3); } .st-figs dd { margin: 2px 0 0; font-weight: 600; }
.st-more { margin: 8px 0; } .st-more > summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.st-group { padding: 10px 0; border-top: 1px solid var(--rule-soft); } .st-group h4 { margin: 0 0 4px; font-size: 15px; }
.st-ad { display: grid; gap: 4px; } .st-h { margin: 6px 0 2px; font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .03em; }
.st-line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 10px; border-radius: var(--r-sm); background: var(--tint); font-size: 14px; }
.st-line .st-n { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; } .st-line.over { outline: 1px solid var(--critical); } .st-line.over .st-n { color: var(--bad-ink); }
.st-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; } .st-mad { display: grid; gap: 4px; padding: 10px; border-radius: var(--r); border: 1px solid var(--rule-soft); }
.st-prompt { white-space: pre-wrap; font-size: 12.5px; }
.st-edit { display: grid; gap: 8px; margin-top: 6px; } .st-edit label { display: grid; gap: 4px; font-size: 13px; } .st-edit textarea { font: inherit; font-size: 14px; }
.st-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; } .st-actions form.inline { display: inline-flex; gap: 8px; }
.st-result { margin: 8px 0; padding: 8px 12px; border-radius: var(--r); background: var(--tint); }
.st-result.v-keep { background: color-mix(in srgb, var(--good) 10%, transparent); } .st-result.v-stop { background: color-mix(in srgb, var(--critical) 8%, transparent); } .st-result.v-change { background: color-mix(in srgb, var(--warning) 12%, transparent); }
.st-checks { list-style: none; padding: 0; display: grid; gap: 8px; } .st-checks li { padding: 8px 12px; border-radius: var(--r); background: var(--tint); line-height: 1.5; } .st-checks li.ok { background: color-mix(in srgb, var(--good) 10%, transparent); }
.st-tests ul { margin: 6px 0; padding-left: 18px; display: grid; gap: 6px; }
.st-fill { color: var(--warning-mark); font-weight: 600; }

/* SEO traffic lights (seo-score.ts): the light carries a word too, never colour alone */
.seo-score { margin-bottom: 24px; }
.seo-tally { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.sc-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--tint); }
.sc-grid { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.sc { padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--rule); background: var(--raised); border-top: 4px solid var(--sc); display: grid; gap: 4px; align-content: start; }
.l-green { --sc: var(--good); } .l-amber { --sc: var(--warning); } .l-red { --sc: var(--critical); } .l-grey { --sc: var(--rule-strong); }
.sc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sc); flex: none; display: inline-block; }
.sc-top { display: flex; align-items: center; gap: 8px; } .sc-area { font-weight: 600; font-size: 14.5px; } .sc-state { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.sc-fig { margin: 2px 0 0; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sc-why { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.sc-do { margin: 4px 0 0; font-size: 13px; line-height: 1.45; }

/* SEO toolkit (seo-tools.ts) */
.sc-tk { margin-left: 10px; vertical-align: middle; }
.tk-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; } .tk-nav a { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--tint); text-decoration: none; color: var(--ink); }
.tk { margin-bottom: 18px; scroll-margin-top: 80px; }
.tk-add { display: flex; gap: 8px; margin: 10px 0 6px; } .tk-add input { flex: 1; max-width: 360px; }
.chip-btn { font-size: 12.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--rule); background: var(--raised); color: var(--ink); cursor: pointer; margin: 2px; box-shadow: none; }
.tk td form button.link { white-space: nowrap; }
form.inline { display: inline; }
.kw-spark { display: block; }
.tk-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; } .tk-m { padding: 12px; border: 1px solid var(--rule-soft); border-radius: var(--r); display: grid; gap: 4px; align-content: start; }
.tk-m code, .tk code { white-space: normal; word-break: break-word; }
.serp { padding: 10px 12px; border-radius: var(--r); background: #fff; color: #202124; font-family: arial, sans-serif; border: 1px solid #dadce0; }
.serp-crumb { margin: 0; font-size: 12px; color: #4d5156; } .serp-title { margin: 2px 0; font-size: 18px; color: #1a0dab; line-height: 1.3; } .serp-desc { margin: 0; font-size: 13.5px; color: #4d5156; line-height: 1.5; }
.tk-schema { margin: 8px 0; } .tk-schema summary { cursor: pointer; } .tk-schema pre code { white-space: pre; }
.tk-img { font-size: 12.5px; color: var(--ink-3); word-break: break-all; }

/* Smooth page changes (5 Oct 2026): pages cross-fade instead of flashing white; the sidebar
   stays put. Browsers without view transitions change pages as before; reduced motion turns it off. */
@view-transition { navigation: auto; }
nav.side { view-transition-name: atlas-side; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 160ms; animation-timing-function: var(--ease); }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Slick pass (5 Oct 2026): one status line, four figures first, the rest folded */
.status-line { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 22px; }
.sl-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--raised); border: 1px solid var(--rule); color: var(--ink); text-decoration: none; font-size: 13.5px; transition: border-color .15s var(--ease), transform .15s var(--ease); }
.sl-chip:hover { border-color: var(--rule-strong); transform: translateY(-1px); }
.sl-ring { width: 18px; height: 18px; color: var(--series1); } .sl-ico { width: 14px; height: 14px; color: var(--ink-2); margin-left: 4px; }
.period-tiles:not(.all) .more-tile { display: none; }
.tiles-all { margin: 6px 0 10px; }
.more-detail { margin-top: 28px; }
.md-h { font-size: 15px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 8px; }
details.md { border-top: 1px solid var(--rule); }
details.md:last-of-type { border-bottom: 1px solid var(--rule); }
details.md > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 10px; padding: 14px 4px; font-weight: 600; font-size: 16px; }
details.md > summary::-webkit-details-marker { display: none; }
details.md > summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(-45deg); transition: transform .15s var(--ease); flex: none; align-self: center; }
details.md[open] > summary::before { transform: rotate(45deg); }
.md-sub { font-weight: 400; font-size: 13px; color: var(--ink-3); }
details.md[open] { padding-bottom: 16px; }
details.since-fold > summary { cursor: pointer; list-style: none; }
details.since-fold > summary::-webkit-details-marker { display: none; }
details.since-fold:not([open]) { padding-bottom: 12px; }
details.since-fold > summary .since-sum::after { content: " · Show"; color: var(--accent); font-weight: 500; }
details.since-fold[open] > summary .since-sum::after { content: " · Hide"; }
/* Google Ads review (google-review.ts) */
.pm-google { margin-bottom: 24px; }
.pm-google .adv-list { margin: 14px 0; }
.g-plan { margin: 16px 0; padding: 14px 16px; border-radius: var(--r-md); background: var(--tint); }
.g-plan h3 { margin: 0 0 6px; font-size: 16px; } .g-plan ol { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 5px; line-height: 1.5; }
.g-h { margin: 16px 0 6px; font-size: 16px; }

/* ---- Set up Atlas (setup-guide.ts): one step at a time, the steps down the side */
.sg { max-width: 1080px; }
.sg-head { margin: 4px 0 18px; }
.sg-count { margin: 0 0 8px; color: var(--ink-2); font-size: 0.875rem; font-weight: 600; }
.sg-bar { height: 6px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 8%, transparent); overflow: hidden; }
.sg-bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--accent); border-radius: inherit; transition: width .4s ease; }
.sg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
.sg-card { padding: 26px 28px; border-radius: 24px; background: var(--sheet); box-shadow: 0 0 0 1px var(--glass-line), 0 14px 32px -24px rgba(30, 30, 70, .25); }
.sg-step-n { margin: 0; color: var(--accent); font-weight: 650; font-size: 0.8125rem; letter-spacing: .02em; text-transform: uppercase; }
.sg-card h1 { margin: 4px 0 6px; font-size: 1.75rem; line-height: 1.15; letter-spacing: -0.01em; }
.sg-lede { margin: 0 0 14px; color: var(--ink-2); font-size: 1.0625rem; }
.sg-status { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 18px; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 4%, transparent); font-size: 0.9375rem; }
.sg-status .icon { flex: none; margin-top: 2px; color: var(--ink-2); }
.sg-status.st-done { background: color-mix(in srgb, var(--good) 9%, transparent); } .sg-status.st-done .icon { color: var(--good-ink); }
.sg-need { margin: 0 0 14px; } .sg-need h3, .sg-sub { margin: 18px 0 6px; font-size: 0.9375rem; }
.sg-need h3 { margin-top: 0; color: var(--ink-2); font-weight: 600; }
.sg-need ul { margin: 0; padding-left: 1.2em; color: var(--ink-2); }
.sg-how { counter-reset: sg; list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.sg-how li { counter-increment: sg; position: relative; padding-left: 38px; line-height: 1.5; }
.sg-how li::before { content: counter(sg); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 650; font-size: 0.8125rem; color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, transparent); }
.sg-add, .sg-upload, .sg-year, .sg-invite { display: grid; gap: 8px; max-width: 460px; margin: 0 0 18px; padding: 16px; border-radius: 16px; background: color-mix(in srgb, var(--ink) 3%, transparent); }
.sg-add button, .sg-upload button, .sg-year button, .sg-invite button { justify-self: start; }
.sg-add .add-pair { display: flex; flex-wrap: wrap; gap: 8px; }
.sg-cards { margin: 0 0 18px; padding: 0; }
.sg-alt { display: grid; gap: 10px; margin: 6px 0 4px; padding-top: 14px; border-top: 1px solid var(--rule); }
.sg-alt p { margin: 0; }
.sg-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sg-act { margin: 0 0 16px; }
.sg-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); }
.sg-nav-r { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.sg-rail { position: sticky; top: 84px; }
.sg-rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sg-r a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 0.9375rem; }
.sg-r a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.sg-r.on a { background: color-mix(in srgb, var(--accent) 10%, transparent); font-weight: 650; }
.sg-dot { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 650; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px rgba(120, 120, 128, .35); }
.sg-r.done .sg-dot { box-shadow: none; background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good-ink); }
.sg-r.part .sg-dot { box-shadow: inset 0 0 0 2px var(--accent); }
.sg-r.skipped .sg-rt { color: var(--ink-3); }
.sg-dot .icon { width: 14px; height: 14px; }
.sg-finished .sg-rail { position: static; max-width: 420px; margin-top: 24px; }
.sg-done-card { text-align: center; padding: 40px 28px; }
.sg-big-tick { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good-ink); }
.sg-big-tick .icon { width: 28px; height: 28px; }
.sg-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 18px 0 0; }
.sg-banner { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 20px; padding: 16px 20px; border-radius: 18px; background: var(--sheet); box-shadow: 0 0 0 1px var(--glass-line); }
.sg-banner p { margin: 0; }
.conn-more { margin: 18px 0 0; }
.conn-more > summary { cursor: pointer; font-weight: 600; padding: 10px 0; color: var(--accent); }
.conn-more[open] > summary { margin-bottom: 8px; }
@media (max-width: 860px) {
  .sg-grid { grid-template-columns: minmax(0, 1fr); }
  .sg-rail { position: static; order: -1; }
  .sg-rail ol { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
  .sg-r a { grid-template-columns: 24px; padding: 6px; } .sg-rt { display: none; }
  .sg-card { padding: 20px 18px; border-radius: 20px; } .sg-card h1 { font-size: 1.5rem; }
  .sg-banner { flex-direction: column; align-items: stretch; }
}
.sg-skip { color: var(--ink-2); font-weight: 600; font-size: 0.9375rem; }
.tour-offer { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; gap: 12px; align-items: flex-start; max-width: 340px; padding: 16px 18px; border-radius: 20px; background: var(--sheet); box-shadow: 0 0 0 1px var(--glass-line), 0 18px 40px -18px rgba(30, 30, 70, .35); animation: tour-offer-in .35s ease both; }
.tour-offer p { margin: 0; } .tour-offer-t { font-weight: 650; } .tour-offer-b { color: var(--ink-2); font-size: 0.875rem; margin-top: 2px !important; }
.tour-offer-act { display: flex; gap: 8px; align-items: center; margin-top: 10px !important; }
@keyframes tour-offer-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .tour-offer { animation: none; } }
@media (max-width: 600px) { .tour-offer { left: 12px; right: 12px; bottom: 12px; max-width: none; } }
@media print { .tour-offer { display: none; } }
.sg-redo > summary { cursor: pointer; font-weight: 600; color: var(--accent); padding: 4px 0 10px; }

/* ---- The menu: five sections (components.ts NAV_SECTIONS). Computer: the sidebar shows the
   five and opens the current one. Phone: a tab bar along the bottom, the section's pages on top. */
.nav-sections { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.nav-sections + .nav-sections { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--glass-line); }
.side .nav-sec-a { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; border-radius: 12px; text-decoration: none;
  font: 600 0.9375rem var(--ai-font); letter-spacing: -0.012em; color: var(--cover-ink); transition: background-color .15s ease; }
.side .nav-sec-a .icon { width: 18px; height: 18px; color: var(--cover-muted); flex: none; }
.side .nav-sec-a:hover { background: rgba(120, 120, 128, 0.12); }
.side .nav-sec-a:focus-visible, .side .nav-sub a:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
.side .nav-sec.open > .nav-sec-a .icon { color: var(--accent); }
.side .nav-sec-a[aria-current="page"] { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.side .nav-sub { list-style: none; margin: 2px 0 8px; padding: 0 0 0 21px; display: grid; gap: 1px; position: relative; }
.side .nav-sub::before { content: ""; position: absolute; left: 20px; top: 4px; bottom: 4px; width: 1.5px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 9%, transparent); }
.side .nav-sub a { display: flex; align-items: center; min-height: 34px; margin-left: 8px; padding: 0 12px; border-radius: 10px; text-decoration: none;
  font: 500 0.875rem var(--ai-font); letter-spacing: -0.01em; color: var(--cover-muted); transition: background-color .15s ease, color .15s ease; }
.side .nav-sub a:hover { background: rgba(120, 120, 128, 0.12); color: var(--cover-ink); }
.side .nav-sub a[aria-current="page"] { color: var(--ink); font-weight: 600; background: color-mix(in srgb, var(--accent) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent); }
/* every section carries its pages; only the current one shows them, and on a mouse, hovering another
   section opens its pages too so they can be clicked straight away (Ollie, 13 Oct 2026; nav.js) */
.side .nav-sub-w { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .24s cubic-bezier(.16, 1, .3, 1); }
.side .nav-sub-w > .nav-sub { overflow: hidden; min-height: 0; visibility: hidden; opacity: 0; transition: opacity .16s ease, visibility 0s linear .24s; }
.side .nav-sec.open > .nav-sub-w, .side .nav-sec.is-peek > .nav-sub-w { grid-template-rows: 1fr; }
.side .nav-sec.open > .nav-sub-w > .nav-sub, .side .nav-sec.is-peek > .nav-sub-w > .nav-sub { visibility: visible; opacity: 1; transition: opacity .2s ease .04s, visibility 0s; }
.side .nav-sec.is-peek > .nav-sec-a { background: rgba(120, 120, 128, 0.12); }
@media (prefers-reduced-motion: reduce) { .side .nav-sub-w, .side .nav-sub-w > .nav-sub { transition: none; } }
.tabbar, .subnav { display: none; }
@media (max-width: 860px) {
  .side .nav-scroll { display: none; }
  .subnav { display: block; margin: 0; padding: 4px 16px 6px; overflow-x: auto; scrollbar-width: none; }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; width: max-content; }
  .subnav a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; text-decoration: none; white-space: nowrap;
    font: 500 0.875rem var(--ai-font); color: var(--ink-2); background: rgba(120, 120, 128, 0.1); }
  .subnav a[aria-current="page"] { background: var(--ink); color: var(--sheet); font-weight: 600; }
  .tabbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: var(--glass); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); box-shadow: 0 -1px 0 var(--glass-line); }
  @media (prefers-reduced-transparency: reduce) { .tabbar { background: var(--sheet); -webkit-backdrop-filter: none; backdrop-filter: none; } }
  .tabbar ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 560px; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 50px; border-radius: 12px; text-decoration: none;
    font: 600 0.6875rem var(--ai-font); color: var(--ink-2); }
  .tabbar a .icon { width: 22px; height: 22px; color: currentColor; }
  .tabbar a[aria-current="true"] { color: var(--accent); }
  .tabbar a:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring); }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .tour-offer { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media print { .tabbar, .subnav { display: none !important; } }
.topbar-brand { display: none; }
@media (max-width: 860px) {
  /* one row on a phone: the name, then Ask Atlas and Refresh; the tab bar does the getting around */
  .side { display: none; }
  .topbar { gap: 10px; }
  .topbar .back { display: none; }
  .topbar-brand { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; text-decoration: none; color: var(--ink); font: 700 1.125rem/1 var(--ai-display); letter-spacing: -0.025em; }
  .topbar-end { gap: 8px; }
  .subnav { position: sticky; top: 56px; z-index: 25; background: color-mix(in srgb, var(--paper) 92%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
}
@media (max-width: 640px) { .ai-row-chips .ai-chip, .ai-row-chips .ai-chip:not(.lead) { flex: none; } }
/* phones: the minimised Ask Atlas conversation floats just above the tab bar, never on it */
@media (max-width: 860px) { .ask-bubble { right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); } }
/* a long suggested question wraps inside its own chip rather than spilling over its neighbour */
.ai-row-chips .ai-chip { max-width: min(340px, 78vw); white-space: normal; text-align: left; justify-content: flex-start; line-height: 1.3; overflow: hidden; }
.ai-row-chips .ai-chip:not(.lead) { border-radius: 16px; }
.ai-row-chips .ai-chip:not(.lead) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; align-self: center; }
/* the gap under the second line is a transparent border, so the clipped third line can't show in it */
.ai-row-chips .ai-chip:not(.lead) { padding-top: 6px; padding-bottom: 0; border-bottom: 6px solid transparent; background-clip: border-box; }

/* ---- Findings that do the work (acq-investigate.ts): what Atlas checked, and what it prepared */
.nf-checked, .nf-readies { margin: 14px 0 0; }
.nf-checked ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.nf-c { padding: 10px 12px; border-radius: 14px; background: color-mix(in srgb, var(--ink) 3.5%, transparent); }
.nf-q { margin: 0; font-weight: 600; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nf-a { margin: 4px 0 0; color: var(--ink-2); line-height: 1.5; }
.nf-v { display: inline-flex; align-items: center; min-height: 22px; padding: 0 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 650; letter-spacing: .01em;
  background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink-2); }
.nf-c.v-fits .nf-v { background: color-mix(in srgb, var(--serious) 16%, transparent); color: var(--ink); }
.nf-c.v-partly .nf-v { background: color-mix(in srgb, var(--warning) 20%, transparent); color: var(--ink); }
.nf-c.v-ruled_out .nf-v { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--ink); }
.nf-r { margin: 8px 0 0; border-radius: 16px; background: color-mix(in srgb, var(--accent) 6%, var(--sheet)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent); }
.nf-r > summary { cursor: pointer; padding: 12px 14px; font-weight: 650; list-style-position: inside; }
.nf-r[open] > summary { padding-bottom: 6px; }
.nf-r > :not(summary) { margin-left: 14px; margin-right: 14px; }
.nf-r > :last-child { margin-bottom: 14px; }
.nf-r-why { margin-top: 0; color: var(--ink-2); line-height: 1.5; }
.nf-r-steps { padding-left: 1.3em; display: grid; gap: 6px; line-height: 1.45; }
.nf-copy { margin-top: 12px; }
.nf-copy-h { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-weight: 600; font-size: 0.875rem; }
.nf-copy-h .ag-copied { color: var(--good-ink); font-size: 0.8125rem; }
.nf-copy-b { min-height: 32px; padding: 0 12px; margin-left: auto; }
.nf-copy-s { margin: 0 0 4px; font-size: 0.875rem; color: var(--ink-2); }
.nf-copy-t { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule); white-space: pre-wrap; word-break: break-word;
  font: 0.875rem/1.55 var(--ai-font); color: var(--ink); }
.seo-demand-k { margin: 0; color: var(--accent); font-weight: 650; font-size: 0.8125rem; letter-spacing: .02em; text-transform: uppercase; }
.seo-demand h2 { margin-top: 4px; }
.seo-src { margin: 4px 0 0; font-size: 0.75rem; font-weight: 650; letter-spacing: .02em; text-transform: uppercase; color: var(--accent); }
.seo-fix { padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 6%, var(--sheet)); }

/* ---- Changes Atlas has written (seo-changes.ts) */
.sc-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 14px; }
.sc-card { padding: 16px; border-radius: 16px; background: color-mix(in srgb, var(--ink) 3%, var(--sheet)); box-shadow: inset 0 0 0 1px var(--rule); }
.sc-k { margin: 0; font-weight: 650; } .sc-k a { color: inherit; }
.sc-why { margin: 6px 0 10px; color: var(--ink-2); line-height: 1.5; }
.sc-field { margin: 10px 0 0; }
.sc-label { margin: 0 0 4px; font-size: 0.75rem; font-weight: 650; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-3); }
.sc-before { margin: 0 0 6px; color: var(--ink-2); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.sc-before span, .sc-after > span { display: inline-block; margin-right: 6px; font-size: 0.75rem; font-weight: 650; color: var(--ink-3); text-decoration: none; }
.sc-after { display: grid; gap: 4px; } .sc-after input, .sc-after textarea { width: 100%; font: inherit; }
.sc-copy { margin: 6px 0 0; display: flex; gap: 8px; align-items: center; }
.sc-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.sc-done ul { padding-left: 1.2em; display: grid; gap: 6px; } .sc-undo { display: inline; }
/* the coach (seo-coach.ts): the owner's steps for a change Atlas can't publish itself */
.sc-coach { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 6%, var(--sheet)); }
.sc-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; line-height: 1.5; }
.sc-step-copy { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.sc-step-copy code { padding: 4px 8px; border-radius: 8px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule); overflow-wrap: anywhere; white-space: pre-wrap; }

/* Fulfilment route (100): sales to send to the shop that makes them */
.route .route-queue, .route .route-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.route .route-item { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--r-md, 12px); background: var(--sheet); }
.route .route-item.is-failed { border-color: var(--critical, #b42318); }
.route .route-what { min-width: 0; flex: 1 1 260px; }
.route .route-what p { margin: 0; }
.route .route-err { color: var(--critical, #b42318); margin-top: 4px !important; }
.route .route-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.route .route-email { display: inline-flex; gap: 6px; align-items: center; }
.route .route-list li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.route .route-list li > span { min-width: 0; overflow-wrap: anywhere; }
.route .route-link { display: flex; gap: 6px; align-items: center; }
.route .route-link input { width: 9rem; }
.route .route-map select { max-width: 100%; min-width: 12rem; }
.route .route-start { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }

/* Investigations (101): what Atlas found when it looked into a finding */
.nf-inv { margin: 14px 0 0; padding: 14px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--series1) 28%, var(--rule)); background: color-mix(in srgb, var(--series1) 6%, var(--sheet)); }
.nf-inv-none { padding: 0; border: 0; background: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nf-inv-running { border-style: dashed; }
.nf-inv-h { margin: 2px 0 8px; font-size: 1rem; font-weight: 650; line-height: 1.4; color: var(--ink); }
.nf-inv-pts { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 4px; font-size: 0.875rem; color: var(--ink-2); }
.nf-inv-do { margin: 0 0 8px; padding: 10px 12px; border-radius: 10px; background: var(--sheet); border: 1px solid var(--rule); }
.nf-inv-k { margin: 0 0 4px; font-size: 0.75rem; font-weight: 650; color: var(--ink-2); text-transform: none; }
.nf-inv-do ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 0.875rem; }
.nf-inv-do li span { color: var(--ink-2); }
/* this week's priorities (readPriorities): one block each, the move first */
.nf-pri { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 12px; }
.nf-pri > li::marker { font-weight: 650; }
.nf-pri-h { margin: 0 0 2px; font-weight: 650; }
.nf-pri-do { margin: 0 0 4px; font-size: 0.875rem; }
.nf-pri-why { margin: 0; font-size: 0.875rem; color: var(--ink-2); }
.nf-inv-unk { margin: 0 0 8px; font-size: 0.8125rem; color: var(--ink-3); }
.nf-inv-unk span { font-weight: 600; color: var(--ink-2); }
.nf-inv-foot { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 0.75rem; color: var(--ink-3); }
.nf-inv-foot > span { display: inline-flex; gap: 4px; align-items: center; }
.nf-inv-steps summary { cursor: pointer; }
.nf-inv-steps ol { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 2px; }
.nf-inv-ask { margin-left: auto; }
.nf-inv-foot .nf-inv-ask .btn { min-height: 32px; padding: 0 12px; font-size: 0.8125rem; }
.chart .rank-top { fill: color-mix(in srgb, var(--good) 9%, transparent); }

/* SEO explorers (102): every search and page, each with its own page */
.crumbs { margin: 0 0 8px; font-size: 0.875rem; }
.crumbs a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); text-decoration: none; }
.crumbs a svg { transform: rotate(180deg); }
.kx-filter { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: 4px 0 12px; font-size: 0.875rem; }
.kx-filter input { flex: 1 1 220px; min-width: 0; }
.kx-filter label:not(.visually-hidden) { color: var(--ink-2); }
/* rank tracker quick filters and sortable headings (Semrush-style, 20 Oct 2026) */
.kx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.kx-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--rule); font-size: 0.8125rem; color: var(--ink-2) !important; text-decoration: none; background: var(--sheet); }
.kx-chip b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.kx-chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper) !important; } .kx-chip.on b { color: var(--paper); }
.kx-sort { color: inherit !important; text-decoration: none; white-space: nowrap; } .kx-sort:hover { text-decoration: underline; } .kx-sort.on { color: var(--ink) !important; font-weight: 600; }
.kx-chips .kx-sort { align-self: center; padding: 0 4px; font-size: 0.8125rem; color: var(--ink-2) !important; } .kx-chips .kx-chip + .kx-sort { margin-left: auto; } .kx-chips .kx-sort.on { color: var(--ink) !important; }
.th-sort:hover, .th-sort:active { background: none; color: var(--ink); } .th-sort { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; } .th-sort:focus-visible { outline: 2px solid var(--accent, #2563eb); outline-offset: 2px; border-radius: 3px; } .th-sort::after { content: "↕"; opacity: .35; font-size: .85em; } th[aria-sort="descending"] .th-sort::after { content: "↓"; opacity: 1; } th[aria-sort="ascending"] .th-sort::after { content: "↑"; opacity: 1; } th.num .th-sort { flex-direction: row-reverse; }
.mv { font-size: 0.75rem; font-weight: 650; white-space: nowrap; }
.mv.up { color: var(--good); } .mv.down { color: var(--critical); } .mv.same { color: var(--ink-3); } .mv.new { color: var(--series1); }
.px-q a, .kx-t td a { color: var(--ink-2); }
.kx-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0 0 20px; }
.kx-tiles > div { padding: 12px 14px; border-radius: 12px; background: var(--sheet); border: 1px solid var(--rule); display: grid; gap: 2px; }
.kx-tiles span { font-size: 0.75rem; color: var(--ink-2); } .kx-tiles b { font-size: 1.5rem; font-weight: 650; } .kx-tiles em { font-style: normal; font-size: 0.75rem; color: var(--ink-3); }
.kx-act { margin: 0 0 24px; border: 1px solid color-mix(in srgb, var(--series1) 28%, var(--rule)); background: color-mix(in srgb, var(--series1) 5%, var(--sheet)); }
.kx-act h2 { margin-top: 0; }
.pg-issues { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pg-issues li { display: grid; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.pg-issues em { font-style: normal; font-size: 0.8125rem; color: var(--ink-2); }
@media (max-width: 760px) { .seo-hist .split-panels { grid-template-columns: 1fr; gap: 20px; } }
.rs-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 10px 0 14px; }
.rs-tiles > div { padding: 12px 14px; border-radius: 12px; background: var(--sheet); border: 1px solid var(--rule); display: grid; gap: 2px; }
.rs-tiles span { font-size: 0.75rem; color: var(--ink-2); } .rs-tiles b { font-size: 1.5rem; font-weight: 650; } .rs-tiles em { font-style: normal; font-size: 0.75rem; color: var(--ink-3); }

/* Context the owner gives Atlas, and questions Atlas asks */
.nf-tell { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: end; margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: var(--sheet); border: 1px solid var(--rule); }
.nf-tell label { flex: 1 1 280px; display: grid; gap: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }
.nf-tell label span { display: inline-flex; gap: 6px; align-items: center; }
.nf-tell input { font-weight: 400; }
.nf-ctx { margin: 12px 0 0; }
.nf-ctx summary { cursor: pointer; font-size: 0.8125rem; color: var(--ink-2); }
.nf-ctx form { display: grid; gap: 8px; margin-top: 8px; }
.nf-ctx form .btn { justify-self: start; }
.nf-q { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--warning) 10%, var(--sheet)); border: 1px solid color-mix(in srgb, var(--warning) 35%, var(--rule)); }
.nf-q label { flex: 1 1 260px; display: grid; gap: 4px; }
.nf-q-k { display: inline-flex; gap: 6px; align-items: center; font-size: 0.75rem; font-weight: 650; color: var(--ink-2); }
.nf-q-t { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }



/* ---- The plan to rank higher (103): a planner's to-do page. A round tick box per step; ticking it
   runs the highlighter through the step and fills the ring. One open step at a time. */
.pl-form, .nf-inv-ask { margin: 0; display: inline; }
.pl { display: grid; gap: 16px; }
.pl-top { display: flex; gap: 16px; align-items: center; }
.pl-top h2 { margin: 0; font: 650 1.375rem/1.2 var(--display); letter-spacing: -0.01em; }
.pl-lede { margin: 4px 0 0; color: var(--ink-2); font-size: 0.9375rem; max-width: 60ch; }
.pl-ring { position: relative; flex: none; width: 56px; height: 56px; display: grid; place-items: center; }
.pl-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.pl-ring circle { fill: none; stroke-width: 4.5; }
.pl-ring-bg { stroke: var(--rule); }
.pl-ring-fg { stroke: var(--good); stroke-linecap: round; transition: stroke-dashoffset .7s cubic-bezier(.2, .8, .2, 1); }
.pl-ring b { position: relative; font: 650 1.0625rem var(--display); font-variant-numeric: tabular-nums; }
.pl-ring b small { font-size: 0.6875rem; color: var(--ink-3); font-weight: 600; }
.pl-steps { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.pl-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 10px; padding: 12px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.pl-check { width: 32px; height: 32px; min-height: 32px; padding: 0; margin: 2px 0 0 4px; border-radius: 50%; border: 2px solid var(--ink-3); background: var(--sheet); color: transparent;
  display: grid; place-items: center; font: 650 0.8125rem var(--display); cursor: pointer; transition: border-color .15s, background .2s, transform .15s; }
.pl-check:hover { border-color: var(--ink); transform: scale(1.06); }
.pl-check:hover .pl-tickmark { color: var(--ink-3); }
.pl-check.is-static { cursor: default; color: var(--ink-2); border-style: dashed; }
.pl-tickmark { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.st-done .pl-check { background: var(--good); border-color: var(--good); color: #fff; animation: pl-pop .35s cubic-bezier(.3, 1.6, .5, 1); }
.st-done .pl-tickmark path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: pl-draw .35s .1s ease-out forwards; }
@keyframes pl-pop { from { transform: scale(.7); } to { transform: scale(1); } }
@keyframes pl-draw { to { stroke-dashoffset: 0; } }
.pl-body > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; justify-content: space-between; padding: 6px 0; min-height: 36px; }
.pl-body > summary::-webkit-details-marker { display: none; }
.pl-title { font-weight: 650; font-size: 1rem; line-height: 1.4; }
.pl-title .hl { background: linear-gradient(transparent 58%, var(--mark-soft) 58%) no-repeat 0 0 / 0% 100%; transition: background-size .5s ease; }
.st-done .pl-title .hl { background-size: 100% 100%; animation: pl-mark .6s ease-out; }
@keyframes pl-mark { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
.st-done .pl-title { color: var(--ink-2); }
.st-skipped .pl-title { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--rule); }
.pl-meta { display: inline-flex; gap: 6px; flex: none; }
.pl-chip { font-size: 0.6875rem; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: var(--tint); color: var(--ink-2); white-space: nowrap; }
.pl-chip.imp { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.im-high .pl-chip.imp { background: var(--mark-soft); color: var(--ink); }
.pl-chip.ok { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); }
.pl-inner { display: grid; gap: 10px; padding: 4px 0 6px; animation: pl-open .25s ease-out; }
@keyframes pl-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.pl-why { margin: 0; color: var(--ink-2); font-size: 0.9375rem; max-width: 70ch; }
.pl-how { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 0.9rem; max-width: 70ch; }
.pl-from { margin: 0; font-size: 0.875rem; }
.pl-note { padding: 12px 14px; border-radius: var(--r-md); background: var(--sheet); border: 1px solid var(--rule); display: grid; gap: 6px; }
.pl-note-h { margin: 0; display: flex; gap: 8px; align-items: center; justify-content: space-between; font-size: 0.8125rem; font-weight: 650; color: var(--ink-2); }
.pl-serp-t { margin: 0; color: var(--accent); font-size: 1.0625rem; line-height: 1.3; }
.pl-serp-d { margin: 0; color: var(--ink-2); font-size: 0.875rem; }
.pl-note-f { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pl-text { max-height: 260px; overflow: auto; white-space: pre-wrap; font: 0.875rem/1.55 inherit; }
.pl-skel { display: block; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--tint), var(--rule), var(--tint)); background-size: 200% 100%; animation: pl-shimmer 1.2s linear infinite; }
.pl-skel.short { width: 55%; }
@keyframes pl-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.pl-measure { margin: 0; font-size: 0.8125rem; color: var(--ink-2); }
.pl-acts { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.pl-go { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: var(--paper); border: 0; font-weight: 650; text-decoration: none; cursor: pointer; }
.pl-go:hover { background: var(--accent); color: #fff; }
.pl-figs { margin: 0; } .pl-figs .qf-vs { font-style: normal; }
.quick-foot { margin: 0; font-size: 0.875rem; }
@media (prefers-reduced-motion: reduce) { .pl-check, .pl-ring-fg, .pl-title .hl, .pl-inner, .st-done .pl-check, .st-done .pl-tickmark path, .st-done .pl-title .hl, .pl-skel { animation: none !important; transition: none !important; } .st-done .pl-tickmark path { stroke-dashoffset: 0; } }

/* What to do this week, and the lists behind scorecard numbers: indexes of rows that open pop-ups */
.wp { margin: 0 0 32px; }
.wp h2 { margin: 0 0 4px; }
.wp-list, .ql-list { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1.5px solid var(--ink); }
.wp-row, .ql-row { display: flex; gap: 14px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--rule); color: inherit; text-decoration: none; transition: background .15s; }
.wp-row:hover, .ql-row:hover { background: var(--tint); }
.wp-row .pl-ring { width: 44px; height: 44px; } .wp-row .pl-ring b { font-size: 0.875rem; }
.wp-main, .ql-main { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.wp-q, .ql-label { font-weight: 650; overflow-wrap: anywhere; }
.wp-next, .ql-detail { font-size: 0.875rem; color: var(--ink-2); }
.ql-fix { font-size: 0.8125rem; color: var(--ink-3); }
.wp-fig, .wp-pos { display: grid; text-align: right; flex: none; }
.wp-fig b, .wp-pos b { font: 650 1.125rem var(--display); font-variant-numeric: tabular-nums; }
.wp-fig b { color: var(--good); }
.wp-fig em, .wp-pos em { font-style: normal; font-size: 0.6875rem; color: var(--ink-3); }
.wp-row > svg, .ql-row > svg { flex: none; width: 16px; height: 16px; color: var(--ink-3); }
@media (max-width: 600px) { .wp-pos { display: none; } .wp-row { gap: 10px; } }
.sc-link { padding: 0 !important; }
.sc-a { display: block; height: 100%; padding: inherit; color: inherit; text-decoration: none; border-radius: inherit; transition: background .15s, transform .15s; }
.sc-link .sc-a { padding: 16px; }
.sc-a:hover { background: var(--tint); }
.sc-open { color: var(--accent); font-weight: 600; }

/* ---- SEO overview, position bands and site health (7 Oct 2026). The position ramp is one blue,
   darkest for the top three in light mode and brightest in dark (dataviz validator, ordinal, both pass). */
.sw-rk1 { background: var(--rk1); } .sw-rk2 { background: var(--rk2); } .sw-rk3 { background: var(--rk3); } .sw-rk4 { background: var(--rk4); }
.ov { display: grid; grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); margin: 0 0 22px; border-block: 1px solid var(--rule); background: var(--sheet); }
.ov-t { position: relative; display: grid; grid-template-rows: auto auto auto 1fr; gap: 2px; padding: 14px 16px 12px; color: inherit; text-decoration: none; min-height: 44px;
  border-inline-end: 1px solid var(--rule-soft); transition: background-color .15s ease; }
.ov-t:last-child { border-inline-end: 0; }
.ov-t:hover { background: var(--tint); }
.ov-t:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ov-l { font-size: 0.8125rem; color: var(--ink-2); }
.ov-v { font: 700 1.75rem/1.15 var(--display, inherit); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.ov-v small { font-size: 0.875rem; font-weight: 600; color: var(--ink-3); margin-left: 2px; }
.ov-s { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 0.8125rem; color: var(--ink-3); }
.ov-s .delta { font-size: 0.8125rem; }
.ov-c { align-self: end; margin-top: 6px; }
.ov-c .spark { width: 100%; max-width: 160px; height: 28px; }
.ov-c .rk-spark { width: 100%; max-width: 160px; height: 28px; }
.ov-sev { font-weight: 650; } .ov-sev.e { color: var(--bad-ink); } .ov-sev.w { color: var(--ink-2); }
.ov-health { grid-template-columns: 1fr auto; grid-template-rows: auto auto 1fr; column-gap: 6px; }
.ov-health .ov-l, .ov-health .ov-v, .ov-health .ov-s { grid-column: 1; }
.ov-health .ov-c { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; }
.ov-ring { width: 40px; height: 40px; transform: rotate(-90deg); }
.ov-ring circle, .hh-ring circle { fill: none; stroke-linecap: round; }
.ov-ring .bg { stroke: var(--rule); stroke-width: 5; } .ov-ring .fg { stroke-width: 5; }
.ov-ring .fg.ok, .hh-ring .fg.ok { stroke: var(--good); } .ov-ring .fg.mid, .hh-ring .fg.mid { stroke: var(--warning); } .ov-ring .fg.low, .hh-ring .fg.low { stroke: var(--critical); }
@media (max-width: 560px) { .ov { grid-template-columns: 1fr 1fr; } .ov-t { border-bottom: 1px solid var(--rule-soft); } .ov-t:nth-child(2n) { border-inline-end: 0; } .ov-v { font-size: 1.5rem; } }

.rk-spark { width: 72px; height: 22px; overflow: visible; vertical-align: middle; }
.rk-spark polyline { fill: none; stroke: var(--ink-3); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.rk-spark circle { fill: var(--ink-3); stroke: var(--sheet); stroke-width: 1.5; }
.rk-spark.up polyline { stroke: var(--good); } .rk-spark.up circle { fill: var(--good); }
.rk-spark.down polyline { stroke: var(--critical); } .rk-spark.down circle { fill: var(--critical); }
.kx-tr { width: 84px; text-align: center; }

.pos-b { display: inline-block; min-width: 3.1em; padding: 2px 8px; border-radius: 999px; font-weight: 650; font-variant-numeric: tabular-nums; text-align: center; color: var(--ink); background: var(--tint); }
.pos-b.rk-1 { background: color-mix(in srgb, var(--rk1) 22%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rk1) 45%, transparent); }
.pos-b.rk-2 { background: color-mix(in srgb, var(--rk2) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rk2) 34%, transparent); }
.pos-b.rk-3 { background: color-mix(in srgb, var(--rk3) 14%, transparent); }
.pos-b.rk-4 { background: var(--tint); color: var(--ink-2); font-weight: 600; }

.rd-lede { max-width: 70ch; margin: 4px 0 12px; color: var(--ink-2); }
.rd-lede strong { color: var(--ink); font-variant-numeric: tabular-nums; }

.hh { display: grid; grid-template-columns: auto 1fr; gap: 18px 28px; align-items: center; margin: 14px 0 18px; padding: 16px 0; border-block: 1px solid var(--rule-soft); }
.hh-ring { position: relative; width: 120px; height: 120px; }
.hh-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.hh-ring .bg { stroke: var(--rule); stroke-width: 10; } .hh-ring .fg { stroke-width: 10; transition: stroke-dashoffset .8s cubic-bezier(.2,.7,.2,1); }
.hh-ring span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.hh-ring b { font: 700 2rem/1 var(--display, inherit); font-variant-numeric: tabular-nums; } .hh-ring em { font-style: normal; font-size: 0.75rem; color: var(--ink-3); }
.hb { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hb li { display: grid; grid-template-columns: 7.5em 1fr 3em; grid-template-areas: "l t n" ". w w"; align-items: center; column-gap: 12px; }
.hb-l { grid-area: l; display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.hb-l .icon { width: 15px; height: 15px; }
.hb-e .icon { color: var(--critical); } .hb-w .icon { color: var(--warning); } .hb-n .icon { color: var(--ink-3); }
.hb-track { grid-area: t; height: 10px; border-radius: 999px; background: var(--tint); overflow: hidden; }
.hb-fill { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .6s cubic-bezier(.2,.7,.2,1); }
.hb-e .hb-fill { background: var(--critical); } .hb-w .hb-fill { background: var(--warning); } .hb-n .hb-fill { background: var(--ink-3); }
.hb b { grid-area: n; text-align: right; font-variant-numeric: tabular-nums; }
.hb em { grid-area: w; font-style: normal; font-size: 0.8125rem; color: var(--ink-3); }
/* a later .hb (another list) changed the columns and left these areas a row out: kept to the site health head */
.hh .hb { gap: 10px; } .hh .hb li { grid-template-columns: 7.5em 1fr 3em; grid-template-areas: "l t n" ". w w"; column-gap: 12px; row-gap: 2px; min-height: 0; padding: 0; margin: 0; }
@media (hover: hover) and (pointer: fine) { .hh .hb li:hover { background: none; } }
@media (max-width: 560px) { .hh { grid-template-columns: 1fr; justify-items: start; } .hb { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .hh-ring .fg, .hb-fill, .ov-t { transition: none; } }
.rd-narrow { display: none; }
@media (max-width: 560px) { .rd-wide { display: none; } .rd-narrow { display: block; } .rd-narrow .legend:last-child, .rd-wide .legend { margin-top: 10px; } }

/* ---- Each store side by side (7 Oct 2026): the default for two or more stores. A ruled table,
   stores as columns and both together last, each cell the figure, its change and its share. */
.sbs { margin: 4px 0 22px; }
.sbs-t { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; background: var(--sheet); border-block: 1px solid var(--rule); }
.sbs-t th, .sbs-t td { padding: 12px 14px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.sbs-t tbody tr:last-child th, .sbs-t tbody tr:last-child td { border-bottom: 0; }
.sbs-t thead th { padding-block: 10px; font-weight: 650; font-size: 0.875rem; border-bottom: 1px solid var(--rule); }
.sbs-t thead th a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 28px; border-bottom: 2px solid transparent; }
.sbs-t thead th a:hover, .sbs-t thead th a:focus-visible { border-bottom-color: var(--accent); }
.sbs-t tbody th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: 0.875rem; min-width: 9em; }
.sbs-c { min-width: 7.5em; }
.sbs-v { display: block; font: 700 1.125rem/1.25 var(--display, inherit); color: var(--ink); }
.sbs-d { display: block; margin-top: 2px; font-size: 0.8125rem; }
.sbs-d .delta { font-size: 0.8125rem; justify-content: flex-end; }
.sbs-share { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 6px; }
.sbs-share em { font-style: normal; font-size: 0.75rem; color: var(--ink-3); white-space: nowrap; text-align: right; }
.sbs-track { display: block; width: 64px; height: 4px; border-radius: 999px; background: var(--rule); overflow: hidden; }
.sbs-bar { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--series1); transition: width .5s cubic-bezier(.2,.7,.2,1); }
.sbs-tot { background: var(--tint); }
.sbs .quiet.small { margin-top: 8px; max-width: 72ch; }
@media (max-width: 560px) {
  .sbs-t th, .sbs-t td { padding: 10px 8px; }
  .sbs-t tbody th { min-width: 6.5em; font-size: 0.8125rem; }
  .sbs-c { min-width: 5.5em; }
  .sbs-v { font-size: 1rem; }
  .sbs-track { width: 36px; }
}
@media (prefers-reduced-motion: reduce) { .sbs-bar { transition: none; } }

/* ---- The market in Google (104): the size of the market, the part reached, the searches worth most */
.mk-lede { max-width: 70ch; color: var(--ink-2); margin: 4px 0 14px; }
.mk-run { display: inline-block; margin: 4px 0 8px; }
.mk-wait { display: grid; gap: 8px; padding: 14px 0; }
.mk-figs { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); border-block: 1px solid var(--rule); margin: 6px 0 22px; }
.mk-figs > div { display: grid; align-content: start; gap: 2px; padding: 16px 16px 14px; border-inline-end: 1px solid var(--rule-soft); }
.mk-figs > div:last-child { border-inline-end: 0; }
.mk-figs span { font-size: 0.8125rem; color: var(--ink-2); }
.mk-figs strong { font: 700 1.75rem/1.15 var(--display, inherit); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.mk-figs .mk-big strong { font-size: 2.5rem; }
.mk-figs em { font-style: normal; font-size: 0.8125rem; color: var(--ink-3); max-width: 40ch; }
.mk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.mk-two h3, .mk-oh { font-size: 1rem; margin: 0 0 8px; }
.mk-oh { margin-top: 22px; }
.mk-topics { display: grid; gap: 10px; }
.mk-tr { display: grid; grid-template-columns: minmax(7em, 11em) 1fr auto; gap: 12px; align-items: center; }
.mk-tn { font-weight: 600; font-size: 0.875rem; }
.mk-track { display: block; height: 14px; }
.mk-all { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--rk4); overflow: hidden; transition: width .6s cubic-bezier(.2,.7,.2,1); }
.mk-in { display: block; height: 100%; width: 0; background: var(--rk2); border-right: 2px solid var(--sheet); transition: width .6s cubic-bezier(.2,.7,.2,1) .15s; }
.mk-tv { display: grid; justify-items: end; font-variant-numeric: tabular-nums; min-width: 6.5em; }
.mk-tv b { font-weight: 700; } .mk-tv em { font-style: normal; font-size: 0.75rem; color: var(--ink-3); }
.mk-leg { margin-top: 4px; }
.mk-opps { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1.5px solid var(--ink); }
.mk-op { display: grid; grid-template-columns: 1fr auto auto 20px; gap: 14px; align-items: center; min-height: 56px; padding: 10px 6px; border-bottom: 1px solid var(--rule-soft); color: inherit; text-decoration: none; }
.mk-op:hover { background: var(--tint); } .mk-op:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.mk-oq { display: grid; gap: 2px; min-width: 0; }
.mk-ok { font-weight: 650; overflow-wrap: anywhere; }
.mk-os { font-size: 0.8125rem; color: var(--ink-3); }
.mk-og { display: grid; justify-items: end; font-variant-numeric: tabular-nums; }
.mk-og b { color: var(--good-ink); font-weight: 700; } .mk-og em { font-style: normal; font-size: 0.75rem; color: var(--ink-3); }
.mk-op .icon { width: 16px; height: 16px; color: var(--ink-3); }
.pos-b.mk-none { min-width: 0; font-size: 0.75rem; font-weight: 600; color: var(--ink-2); background: transparent; box-shadow: inset 0 0 0 1px var(--rule-strong); }
.mk-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 14px 0 0; }
.mk-foot form { display: inline; margin: 0; }
.mk-fit { font-size: 0.8125rem; padding: 2px 8px; border-radius: 999px; background: var(--tint); white-space: nowrap; }
.mk-fit.fit-core { background: color-mix(in srgb, var(--rk2) 14%, transparent); }
.mk-fit.fit-other_brand, .mk-fit.fit-off { color: var(--ink-3); }
.mk-out th, .mk-out td { color: var(--ink-3); }
.mk-add { display: grid; gap: 10px; max-width: 560px; }
.mk-add textarea { width: 100%; font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--rule-strong); background: var(--sheet); color: var(--ink); }
@media (max-width: 900px) { .mk-figs { grid-template-columns: 1fr 1fr; } .mk-figs .mk-big { grid-column: 1 / -1; border-inline-end: 0; border-bottom: 1px solid var(--rule-soft); } .mk-two { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .mk-figs > div { padding: 12px 10px; } .mk-figs strong { font-size: 1.375rem; } .mk-figs .mk-big strong { font-size: 2rem; }
  .mk-tr { grid-template-columns: 1fr auto; } .mk-track { grid-column: 1 / -1; grid-row: 2; }
  .mk-op { grid-template-columns: 1fr auto 16px; } .mk-opos { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mk-all, .mk-in { transition: none; } }

/* past years as lines (7 Oct 2026): one grey ramp, last year strongest, older years fainter (dataviz ordinal validator passes light and dark) */
.sw-yr1 { background: var(--yr1); } .sw-yr2 { background: var(--yr2); } .sw-yr3 { background: var(--yr3); } .sw-yr4 { background: var(--yr4); }
.chart-switches .seg.years a { min-width: 0; }

/* ---- Customer service inbox and replies (105) */
.cs-inbox-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 14px; margin: 0 0 16px; border-radius: 12px; background: var(--sheet); box-shadow: 0 0 0 1px var(--rule); font-size: 0.875rem; }
.cs-inbox-bar .icon { width: 15px; height: 15px; vertical-align: -2px; color: var(--ink-3); }
.cs-inbox-bar form { margin: 0; }
.cs-inbox .section-head { flex-wrap: wrap; gap: 10px; }
.cs-n { margin-left: 6px; font-variant-numeric: tabular-nums; color: var(--ink-3); font-weight: 600; }
.cs-list { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1.5px solid var(--ink); }
.cs-row { display: grid; grid-template-columns: 10px 1fr auto 18px; gap: 12px; align-items: center; min-height: 60px; padding: 12px 8px; border-bottom: 1px solid var(--rule-soft); color: inherit; text-decoration: none; }
.cs-row:hover { background: var(--tint); } .cs-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cs-row .icon { width: 16px; height: 16px; color: var(--ink-3); }
.cs-dot { width: 9px; height: 9px; border-radius: 50%; } .cs-dot.new { background: var(--accent); } .cs-dot.done { background: transparent; box-shadow: inset 0 0 0 1.5px var(--rule-strong); }
.cs-main { display: grid; gap: 4px; min-width: 0; }
.cs-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.cs-topic-chip { font-size: 0.75rem; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: var(--tint); }
.cs-flag { font-size: 0.75rem; font-weight: 650; padding: 2px 8px; border-radius: 999px; color: var(--bad-ink); background: color-mix(in srgb, var(--critical) 12%, transparent); }
.cs-flag.auto { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.cs-snip { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cs-row.hot .cs-snip { color: var(--ink); }
.cs-when { display: grid; justify-items: end; font-size: 0.8125rem; color: var(--ink-3); white-space: nowrap; }
.cs-when em { font-style: normal; font-size: 0.75rem; }
.cs-thread { display: grid; gap: 14px; }
.cs-order { padding: 12px 14px; border-radius: 12px; background: var(--sheet); box-shadow: 0 0 0 1px var(--rule); }
.cs-order.none { background: transparent; }
.cs-order-h { margin: 0 0 4px; font-weight: 700; }
.cs-order ul { margin: 0; padding-left: 18px; font-size: 0.875rem; color: var(--ink-2); }
.cs-msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cs-msg { max-width: 92%; padding: 10px 14px; border-radius: 14px; background: var(--sheet); box-shadow: 0 0 0 1px var(--rule-soft); }
.cs-msg.shop { justify-self: end; background: color-mix(in srgb, var(--accent) 8%, var(--sheet)); }
.cs-msg-h { display: flex; gap: 10px; align-items: baseline; margin: 0 0 4px; font-size: 0.8125rem; }
.cs-msg-b p { margin: 0 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; } .cs-msg-b p:last-child { margin: 0; }
.cs-msgs-off blockquote { margin: 6px 0 0; padding: 8px 12px; border-left: 3px solid var(--rule-strong); color: var(--ink-2); }
.cs-reply { display: grid; gap: 10px; padding-top: 6px; border-top: 1px solid var(--rule); }
.cs-reply h3 { margin: 0; font-size: 1rem; }
.cs-compose textarea { width: 100%; font: inherit; line-height: 1.5; padding: 12px; border-radius: 12px; border: 1px solid var(--rule-strong); background: var(--sheet); color: var(--ink); }
.cs-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.cs-missing, .cs-sent { margin: 0; font-size: 0.875rem; padding: 8px 12px; border-radius: 10px; background: var(--mark-soft); }
.cs-sent { background: color-mix(in srgb, var(--good) 12%, transparent); }
.cs-missing .icon, .cs-sent .icon { width: 15px; height: 15px; vertical-align: -2px; }
.cs-auto-list { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1.5px solid var(--ink); }
.cs-auto-row summary { display: grid; grid-template-columns: minmax(9em, 14em) 1fr auto; gap: 12px; align-items: center; min-height: 52px; padding: 10px 6px; border-bottom: 1px solid var(--rule-soft); cursor: pointer; list-style: none; }
.cs-auto-row summary::-webkit-details-marker { display: none; }
.cs-auto-t { font-weight: 650; } .cs-auto-r { font-size: 0.8125rem; color: var(--ink-3); } .cs-auto-r.ok { color: var(--good-ink); }
.cs-auto-b { display: grid; gap: 12px; padding: 12px 6px 18px; border-bottom: 1px solid var(--rule-soft); }
.cs-guide { display: grid; gap: 6px; } .cs-guide label { font-weight: 600; font-size: 0.875rem; }
.cs-guide textarea { width: 100%; font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--rule-strong); background: var(--sheet); color: var(--ink); }
.cs-settings { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; }
.cs-settings input { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--rule-strong); background: var(--sheet); color: var(--ink); font: inherit; }
.cs-settings input[type=number] { width: 6em; }
@media (max-width: 560px) { .cs-row { grid-template-columns: 8px 1fr 14px; } .cs-when { display: none; } .cs-auto-row summary { grid-template-columns: 1fr auto; } .cs-auto-r { grid-column: 1 / -1; grid-row: 2; } .cs-msg { max-width: 100%; } }

/* ---- What to write (106) */
.ct-link { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 22px; padding: 14px 16px; border-radius: 14px; background: var(--sheet); box-shadow: 0 0 0 1px var(--rule); color: inherit; text-decoration: none; }
.ct-link:hover { background: color-mix(in srgb, var(--accent) 5%, var(--sheet)); } .ct-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ct-link span { display: grid; gap: 2px; } .ct-link em { font-style: normal; font-size: 0.875rem; color: var(--ink-2); } .ct-link .icon { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.ct-cadence { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.ct-cadence > div { flex: 1 1 260px; } .ct-cadence h2 { margin: 0 0 2px; font-size: 1.0625rem; }
.ct-cad-form { display: flex; gap: 8px; align-items: center; }
.ct-cad-form select { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--rule-strong); background: var(--sheet); color: var(--ink); font: inherit; }
.ct-list, .ct-ideas { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1.5px solid var(--ink); }
.ct-row { display: grid; grid-template-columns: 11em 1fr auto 18px; gap: 14px; align-items: center; min-height: 56px; padding: 10px 6px; border-bottom: 1px solid var(--rule-soft); color: inherit; text-decoration: none; }
.ct-row:hover { background: var(--tint); } .ct-row .icon { width: 16px; height: 16px; color: var(--ink-3); }
.ct-st { justify-self: start; font-size: 0.75rem; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: var(--tint); }
.ct-st.st-draft { background: var(--mark-soft); } .ct-st.st-approved { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.ct-st.st-published { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good-ink); } .ct-st.st-failed { color: var(--bad-ink); }
.ct-main { display: grid; gap: 2px; min-width: 0; } .ct-t { font-weight: 650; }
.ct-when { display: grid; justify-items: end; font-variant-numeric: tabular-nums; } .ct-when em { font-style: normal; font-size: 0.75rem; color: var(--ink-3); }
.ct-idea { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--rule-soft); }
.ct-idea form { margin: 0; } .ct-it { margin: 0 0 2px; font-weight: 650; } .ct-im p.quiet { margin: 0; }
.ct-iv { display: grid; justify-items: end; font-variant-numeric: tabular-nums; } .ct-iv em { font-style: normal; font-size: 0.75rem; color: var(--ink-3); }
.ct-post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.ct-post { padding: 22px 26px; } .ct-serp { margin: 0 0 18px; }
.ct-body { max-width: 68ch; line-height: 1.65; } .ct-body h3 { margin: 1.4em 0 0.4em; font-size: 1.1875rem; } .ct-body h4 { margin: 1.2em 0 0.3em; }
.ct-body ul { padding-left: 1.2em; } .ct-check { background: var(--mark-soft); color: var(--ink); border-radius: 4px; padding: 0 3px; }
.ct-side { display: grid; gap: 14px; position: sticky; top: 16px; } .ct-side h2 { font-size: 1rem; margin: 0 0 8px; }
.ct-pub { display: grid; gap: 6px; margin-top: 10px; } .ct-pub input { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--rule-strong); background: var(--sheet); color: var(--ink); font: inherit; }
.ct-md { max-height: 220px; overflow: auto; font-size: 0.75rem; white-space: pre-wrap; background: var(--tint); padding: 10px; border-radius: 10px; }
@media (max-width: 900px) { .ct-post-grid { grid-template-columns: 1fr; } .ct-side { position: static; } }
@media (max-width: 560px) { .ct-row { grid-template-columns: 1fr 16px; } .ct-st { grid-column: 1; } .ct-when { display: none; } .ct-idea { grid-template-columns: 1fr auto; } .ct-idea form { grid-column: 1 / -1; } .ct-post { padding: 16px; } }
.crumbs a + a::before { content: "›"; margin: 0 8px; color: var(--ink-3); text-decoration: none; display: inline-block; }

/* ---- Your website (107) */
.sv-top { display: grid; grid-template-columns: auto 1fr; gap: 18px 32px; align-items: center; }
.sv-ring { width: 136px; height: 136px; }
.sv-areas { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sv-areas li { display: grid; grid-template-columns: 10em 1fr 2.5em 6.5em; gap: 12px; align-items: center; }
.sv-an { font-weight: 600; font-size: 0.875rem; } .sv-areas b { text-align: right; font-variant-numeric: tabular-nums; } .sv-areas em { font-style: normal; font-size: 0.75rem; color: var(--ink-3); }
.sv-f-ok { background: var(--good); } .sv-f-mid { background: var(--warning); } .sv-f-low { background: var(--critical); }
.sv-meta { grid-column: 1 / -1; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; } .sv-meta form { margin: 0; }
.sv-empty { display: grid; gap: 10px; justify-items: start; }
.sv-fixes { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1.5px solid var(--ink); }
.sv-fix summary { display: grid; grid-template-columns: 6.5em 1fr auto; gap: 12px; align-items: center; min-height: 50px; padding: 10px 6px; border-bottom: 1px solid var(--rule-soft); cursor: pointer; list-style: none; }
.sv-fix summary::-webkit-details-marker { display: none; }
.sv-fix details > p { margin: 10px 6px; max-width: 70ch; }
.sv-ft { font-weight: 650; }
.sv-w { justify-self: start; font-size: 0.75rem; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: var(--tint); }
.sv-w.w3 { background: color-mix(in srgb, var(--critical) 12%, transparent); color: var(--bad-ink); } .sv-w.w2 { background: var(--mark-soft); }
.sv-overall { max-width: 70ch; }
.sv-photos { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.sv-photos li { display: grid; grid-template-columns: 72px minmax(0, 1fr) 3.5em minmax(0, 1.2fr); gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--rule-soft); }
.sv-pn { display: grid; gap: 2px; min-width: 0; } .sv-pn a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sv-pn em, .sv-pv em { font-style: normal; font-size: 0.75rem; color: var(--ink-3); }
.sv-ps { font-weight: 700; text-align: center; padding: 3px 6px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.sv-ps.ok { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good-ink); } .sv-ps.mid { background: var(--mark-soft); } .sv-ps.low { background: color-mix(in srgb, var(--critical) 12%, transparent); color: var(--bad-ink); }
.sv-pv { display: grid; gap: 2px; font-size: 0.875rem; }
.sv-ah { font-size: 0.9375rem; margin: 16px 0 6px; }
.sv-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 4px 20px; }
.sv-checks li { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; padding: 6px 0; font-size: 0.875rem; border-bottom: 1px solid var(--rule-soft); }
.sv-checks .icon { width: 15px; height: 15px; } .sv-checks li.ok .icon { color: var(--good); } .sv-checks li.no .icon { color: var(--critical); } .sv-checks li.na { color: var(--ink-3); }
.sv-checks em { font-style: normal; font-size: 0.75rem; color: var(--ink-3); }
.sv-n-ok { color: var(--good-ink); } .sv-n-low { color: var(--bad-ink); }
.sv-add { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sv-add input { flex: 1 1 260px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--rule-strong); background: var(--sheet); color: var(--ink); font: inherit; }
@media (max-width: 700px) { .sv-top { grid-template-columns: 1fr; justify-items: center; } .sv-areas { width: 100%; } .sv-areas li { grid-template-columns: 1fr 2.5em; } .sv-areas .hb-track { grid-column: 1 / -1; grid-row: 2; } .sv-areas em { display: none; }
  .sv-photos li { grid-template-columns: 1fr 3.5em; } .sv-pv { grid-column: 1 / -1; } .sv-fix summary { grid-template-columns: 1fr; gap: 4px; } }
.sv-areas .hb-track { grid-area: auto; min-width: 80px; }
.sv-th { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; background: var(--tint); box-shadow: 0 0 0 1px var(--rule-soft); }
/* Your website: checks' reasons, the shopper's experience, and the competitors Atlas watches (114) */
.sv-checks li > span small { display: block; margin-top: 2px; font-size: 0.75rem; line-height: 1.4; color: var(--ink-3); }
.sv-checks li { align-items: start; } .sv-checks li .icon, .sv-checks li em { margin-top: 2px; }
.rv-speed { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.rv-speed li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--tint); }
.rv-speed b { font: 700 1.375rem/1.2 var(--display, inherit); font-variant-numeric: tabular-nums; } .rv-speed em { font-style: normal; font-size: 0.75rem; color: var(--ink-3); }
.rv-cx { list-style: none; margin: 8px 0; padding: 0; border-top: 1px solid var(--rule); }
.rv-cx > li { display: grid; grid-template-columns: 3.5em 1fr; gap: 12px; align-items: start; padding: 12px 4px; border-bottom: 1px solid var(--rule-soft); }
.rv-cx > li > span:last-child { display: grid; gap: 3px; } .rv-cx em { font-style: normal; font-size: 0.8125rem; color: var(--ink-2); } .rv-fixline { font-size: 0.875rem; }
.rv-fixline::before { content: "→ "; color: var(--ink-3); }
.rv-board { list-style: none; margin: 12px 0 8px; padding: 0; border-top: 1.5px solid var(--ink); }
.rv-board > li { display: grid; grid-template-columns: 1.75em minmax(0, 1.6fr) 5.5em 100px minmax(0, 1.4fr) 2.25em; gap: 12px; align-items: center; min-height: 58px; padding: 8px 6px; border-bottom: 1px solid var(--rule-soft); }
.rv-board > li.you { background: var(--tint); border-radius: 10px; }
.rv-rank { font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; text-align: center; }
.rv-name { display: grid; gap: 2px; min-width: 0; } .rv-name a { color: var(--ink); text-decoration: none; } .rv-name a:hover b, .rv-name a:focus-visible b { text-decoration: underline; }
.rv-name em { font-style: normal; font-size: 0.75rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-score { display: grid; justify-items: end; gap: 1px; } .rv-score b { font: 700 1.25rem/1.1 var(--display, inherit); font-variant-numeric: tabular-nums; }
.rv-d { font-size: 0.6875rem; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; } .rv-d.up { color: var(--good-ink); } .rv-d.down { color: var(--bad-ink); }
.rv-spark { color: var(--series1, var(--ink-2)); display: block; }
.rv-offer { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rv-more { position: relative; justify-self: end; } .rv-more summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; }
.rv-more summary::-webkit-details-marker { display: none; } .rv-more summary:hover, .rv-more summary:focus-visible { background: var(--tint); } .rv-more summary .icon { transform: rotate(90deg); transition: transform .18s cubic-bezier(.2,.7,.2,1); } .rv-more[open] summary .icon { transform: rotate(-90deg); }
.rv-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 5; display: grid; gap: 6px; min-width: 230px; padding: 12px 14px; border-radius: 12px; background: var(--sheet); box-shadow: 0 0 0 1px var(--rule), 0 12px 28px -12px rgba(0,0,0,.25); }
.rv-menu form { margin: 0; }
.rv-offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.rv-card { padding: 14px 16px; border-radius: 14px; background: var(--sheet); box-shadow: 0 0 0 1px var(--rule-soft); display: grid; gap: 8px; align-content: start; }
.rv-card h4 { margin: 0; font-size: 0.9375rem; } .rv-card h4 a { color: var(--ink); text-decoration: none; } .rv-card h4 a:hover { text-decoration: underline; }
.rv-banner { margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--mark-soft); font-size: 0.8125rem; font-weight: 600; }
.rv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.8125rem; }
.rv-tag { display: inline-block; min-width: 4.75em; text-align: center; font-size: 0.6875rem; font-weight: 650; padding: 1px 6px; border-radius: 999px; background: var(--tint); color: var(--ink-2); }
.rv-tag.sale, .rv-tag.code { background: color-mix(in srgb, var(--critical) 12%, transparent); color: var(--bad-ink); }
.rv-prices summary { cursor: pointer; color: var(--ink-2); } .rv-prices ul { list-style: none; margin: 6px 0 0; padding: 0; max-height: 220px; overflow: auto; font-size: 0.8125rem; }
.rv-prices li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px solid var(--rule-soft); } .rv-prices li a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rv-prices li span { font-variant-numeric: tabular-nums; white-space: nowrap; } .rv-prices s { color: var(--ink-3); }
.rv-feed { list-style: none; margin: 4px 0; padding: 0; border-top: 1px solid var(--rule); }
.rv-feed > li { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--rule-soft); font-size: 0.875rem; }
.rv-feed time { color: var(--ink-3); font-size: 0.8125rem; font-variant-numeric: tabular-nums; } .rv-feed ul { margin: 4px 0 0; padding-left: 1.1em; } .rv-feed li li.w3 { font-weight: 600; } .rv-feed li li.w1 { color: var(--ink-3); }
.rv-areas { margin-top: 14px; } .rv-areas > summary { cursor: pointer; color: var(--ink-2); margin-bottom: 8px; }
.rv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 14px; } .rv-actions .sv-add { flex: 1 1 340px; margin-top: 0; }
@media (max-width: 700px) {
  .rv-board > li { grid-template-columns: 1.5em minmax(0, 1fr) 4.5em 2.25em; } .rv-board .rv-spark { display: none; } .rv-offer { grid-column: 2 / -1; grid-row: 2; }
  .rv-feed > li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .rv-more summary .icon { transition: none; } }
@media (max-width: 700px) { .sv-photos li { grid-template-columns: 60px 1fr 3.5em; } .sv-th { width: 60px; height: 60px; } .sv-pv { grid-column: 2 / -1; } }

/* ---- Sales as a dashboard (7 Oct 2026): every figure in the strip with its trend, breakdowns open in a grid */
.dash-tiles { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)) !important; }
.dash-tiles .tile { display: flex; flex-direction: column; }
.dash-tiles .tile .cmp { margin-bottom: 4px; }
.tile-spark { display: block; margin-top: auto; padding-top: 6px; }
.tile-spark .spark { width: 100%; height: 30px; }
.dash-tiles .chart-hint { margin-top: 4px; }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 22px 0; }
.dash-cell { min-width: 0; padding: 18px 20px; border-radius: 18px; background: var(--sheet); box-shadow: 0 0 0 1px var(--glass-line, var(--rule)); }
.dash-cell > .block, .dash-cell > section { margin: 0; padding: 0; box-shadow: none; background: transparent; }
.dash-cell .panel { box-shadow: none; padding: 0; background: transparent; border: 0; }
.dash-h { font-size: 1.0625rem; margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .dash-tiles { grid-template-columns: 1fr 1fr !important; } .dash-cell { padding: 14px; } }
.dash-cell.wide { grid-column: 1 / -1; }
.dd { grid-template-columns: minmax(0, 1fr); }

/* ---- Overview: today first (7 Oct 2026) */
.td { margin: 8px 0 26px; }
.td-gap { margin: 0 0 12px; }
.td-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.td-now, .td-yday, .td-pace { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 18px; background: var(--sheet); box-shadow: 0 0 0 1px var(--glass-line, var(--rule)); color: inherit; text-decoration: none; margin: 0; min-width: 0; }
.td-now:hover, .td-yday:hover { box-shadow: 0 0 0 1px var(--accent); } .td-now:focus-visible, .td-yday:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.td-k { font-size: 0.8125rem; color: var(--ink-2); font-weight: 600; }
.td-v { font: 700 2rem/1.1 var(--display, inherit); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.td-v small { font: 500 0.875rem var(--text, inherit); color: var(--ink-2); letter-spacing: 0; }
.td-c { font-size: 0.875rem; color: var(--ink-2); }
.td-pill { font-size: 0.75rem; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: var(--tint); }
.td-pill.v-above { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good-ink); } .td-pill.v-below { background: color-mix(in srgb, var(--critical) 12%, transparent); color: var(--bad-ink); }
.td-more { margin-top: auto; padding-top: 6px; font-size: 0.8125rem; color: var(--accent); display: inline-flex; align-items: center; gap: 4px; } .td-more .icon { width: 13px; height: 13px; }
.td-pace .chart { margin-top: 2px; }
.td-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 12px 0 0; font-size: 0.875rem; }
.td-links a { display: inline-flex; align-items: center; gap: 4px; } .td-links .icon { width: 13px; height: 13px; }
.ov-biz-h { font-size: 1.375rem; margin: 30px 0 12px; }
@media (min-width: 1000px) {
  .area-index { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .area-row { grid-template-columns: minmax(0, 1fr) 120px; grid-template-areas: "name spark" "figs end"; gap: 8px 14px; align-items: center; }
  .area-row .area-name { grid-area: name; } .area-row .area-spark { grid-area: spark; justify-self: end; }
  .area-row .area-figs { grid-area: figs; } .area-row .area-end { grid-area: end; justify-self: end; }
  .area-row .area-open { display: none; } .area-row .area-blurb { display: none; }
}
@media (max-width: 900px) { .td-grid { grid-template-columns: 1fr 1fr; } .td-pace { grid-column: 1 / -1; order: 3; } }
@media (max-width: 560px) { .td-grid { grid-template-columns: 1fr; } .td-v { font-size: 1.625rem; } }
.period-line { font-size: 1.0625rem; font-weight: 650; margin: 0; } .period-line .quiet { font-weight: 400; font-size: 0.875rem; margin-left: 6px; }
.period-dash .period-head { margin-bottom: 10px; }
.dash-tiles .tile h3 { font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }
.dash-tiles .tile .vs { font-size: 0.75rem; color: var(--ink-3); }
.hint-line { margin: -6px 0 14px; } .hint-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--ink-2); padding: 4px 10px; border-radius: 999px; background: var(--tint); text-decoration: none; }
.hint-chip:hover { color: var(--ink); } .hint-chip .icon { width: 14px; height: 14px; }
.dash-sec { margin: 26px 0 0; } .dash-sec-h { font-size: 1.125rem; margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.dd-orders, .dd { min-width: 0; max-width: 100%; } .dd-orders .table-scroll { max-width: 100%; overflow-x: auto; }

/* ---- Service logos (logos.ts) ---- */
.logo { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 10px; background: var(--logo-c, #6b7280); color: #fff; font-weight: 700; overflow: hidden; }
.logo-sm { width: 22px; height: 22px; border-radius: 6px; font-size: 0.75rem; }
.logo-md { width: 36px; height: 36px; font-size: 1rem; }
.logo-lg { width: 48px; height: 48px; border-radius: 12px; font-size: 1.25rem; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14%; background: #fff; }
.logo.has-img { box-shadow: 0 0 0 1px var(--rule); background: #fff; }

/* ---- Ads scorecard (ads-score-views.ts) ---- */
.asc { display: grid; gap: 18px; margin: 8px 0 28px; }
.asc-answer { display: flex; gap: 10px; align-items: center; margin: 0; padding: 14px 18px; border-radius: 16px; font-size: 1.0625rem; background: var(--sheet); box-shadow: 0 0 0 1px var(--rule); }
.asc-answer.good { background: color-mix(in srgb, var(--good) 9%, var(--sheet)); }
.asc-answer.bad { background: color-mix(in srgb, var(--critical) 8%, var(--sheet)); }
.asc-answer strong { font-size: 1.25rem; }
.asc-tiles { margin: 0 !important; }
.asc-tile.ok .value { color: var(--good-ink); }
.asc-tile.under .value { color: var(--bad-ink); }
.asc-tile .note strong { color: var(--ink); }
.asc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px; }
.asc-cell { min-width: 0; padding: 18px 20px; border-radius: 18px; background: var(--sheet); box-shadow: 0 0 0 1px var(--glass-line, var(--rule)); }
.asc-h { font-size: 1.0625rem; margin: 0 0 12px; }
.asc-h-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 12px; }
.asc-h-row .asc-h, .asc-h-row p { margin: 0; }
.asc-cap { margin: 8px 0 0; font-size: 0.8125rem; color: var(--ink-3); }
.asc-ring { padding: 0; gap: 18px; grid-template-columns: minmax(130px, 170px) minmax(0, 1fr); box-shadow: none; background: transparent; border: 0; flex-direction: row; }
.asc-ring .ring-row { grid-template-columns: 10px minmax(0, 1fr) auto; padding: 8px 10px; }
.asc-ring .rr-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asc-channels { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.asc-ch { display: grid; gap: 14px; align-content: start; padding: 16px; border-radius: 14px; box-shadow: 0 0 0 1px var(--rule); }
.asc-ch header { display: flex; gap: 12px; align-items: center; }
.asc-ch header > div { flex: 1; min-width: 0; }
.asc-ch h4 { margin: 0; font-size: 1rem; }
.asc-ch header p { margin: 2px 0 0; font-size: 0.8125rem; color: var(--ink-3); }
.asc-ch-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0; }
.asc-ch-figs dt { font-size: 0.75rem; color: var(--ink-3); }
.asc-ch-figs dd { margin: 2px 0 0; font-size: 1.0625rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.asc-ch-figs dd.good, .asc-camp-figs b.good { color: var(--good-ink); } .asc-ch-figs dd.bad, .asc-camp-figs b.bad { color: var(--bad-ink); }
.asc-roas { position: relative; padding-top: 14px; }
.asc-roas::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; border-radius: 4px; background: var(--cmp); }
.asc-roas-bar { position: absolute; top: 0; left: 0; height: 8px; border-radius: 4px; background: var(--series1); }
.asc-be { position: absolute; top: -3px; width: 2px; height: 14px; margin-left: -1px; background: var(--ink); border-radius: 1px; }
.asc-roas-v { display: block; margin-top: 4px; font-size: 0.8125rem; font-weight: 600; }
.asc-ch-add { box-shadow: 0 0 0 1px var(--rule) inset; background: transparent; border: 1px dashed var(--rule-strong); }
.asc-ch-add .quiet { margin: 0; }
/* verdicts: a dot and the word; status colours only */
.asc-v { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 0.8125rem; font-weight: 650; white-space: nowrap; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.asc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.v-grow .asc-dot, .asc-roas-bar.v-grow, .sc-dot.v-grow { background: var(--good); fill: var(--good); }
.v-keep .asc-dot, .asc-roas-bar.v-keep, .sc-dot.v-keep { background: var(--series1); fill: var(--series1); }
.v-fix .asc-dot, .asc-roas-bar.v-fix, .sc-dot.v-fix { background: var(--warning); fill: var(--warning); }
.v-stop .asc-dot, .asc-roas-bar.v-stop, .sc-dot.v-stop { background: var(--critical); fill: var(--critical); }
.sc-dot.v-early { fill: var(--ink-3); }
.asc-v.v-grow { background: color-mix(in srgb, var(--good) 14%, transparent); }
.asc-v.v-fix { background: color-mix(in srgb, var(--warning) 18%, transparent); }
.asc-v.v-stop { background: color-mix(in srgb, var(--critical) 13%, transparent); }
.asc-counts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.asc-counts strong { margin-right: 6px; font-variant-numeric: tabular-nums; }
.asc-camp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.sc-dot { stroke: var(--sheet); stroke-width: 2; }
.dot-g .hit { fill: transparent; }
.dot-g:hover .sc-dot, .dot-g:focus .sc-dot { r: 8; }
.sc-label { font-size: 11px; fill: var(--ink-2); }
.be-line { stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 5 4; }
.be-label { font-size: 11px; fill: var(--ink-2); font-weight: 600; }
.asc-camps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 560px; overflow: auto; }
.asc-camp { padding: 12px 14px; border-radius: 12px; box-shadow: 0 0 0 1px var(--rule); }
.asc-camp-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.asc-camp-name { flex: 1; min-width: 0; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asc-plat { font-size: 0.75rem; color: var(--ink-3); white-space: nowrap; }
.asc-camp-figs { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 4px; font-variant-numeric: tabular-nums; font-weight: 600; }
.asc-camp-figs em { font-style: normal; font-weight: 400; color: var(--ink-3); margin-right: 5px; font-size: 0.8125rem; }
.asc-camp-why { margin: 0; font-size: 0.8125rem; color: var(--ink-2); }
.asc-buy { margin-top: 10px; border-top: 1px solid var(--rule-soft); padding-top: 8px; font-size: 14px; }
.asc-buy summary { cursor: pointer; color: var(--ink-2); }
.asc-buy summary strong { color: var(--ink); }
.asc-buy p { margin: 6px 0 0; }
.asc-buy p em { font-style: normal; color: var(--ink-3); margin-right: 6px; }
.asc-buy-orders { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.asc-buy-orders li { display: flex; flex-wrap: wrap; gap: 4px 10px; font-variant-numeric: tabular-nums; }
.asc-buy-orders li span { color: var(--ink-2); }
.asc-src { display: block; font-size: 12px; color: var(--ink-3); font-weight: 400; }
.asc-buy-none { margin: 8px 0 0; font-size: 14px; color: var(--ink-3); }
.asc-camp-why strong { color: var(--ink); font-weight: 600; }
.asc-plan-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 22px; align-items: start; }
.asc-sliders { display: grid; gap: 14px; }
.asc-slider { padding: 12px 14px; border-radius: 12px; box-shadow: 0 0 0 1px var(--rule); }
.asc-sl-head { display: flex; align-items: center; gap: 8px; }
.asc-sl-head output { margin-left: auto; font-size: 1.125rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.asc-slider input[type="range"] { width: 100%; margin: 10px 0 6px; accent-color: var(--series1); }
.asc-sl-roas { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--ink-2); }
.asc-sl-roas input { width: 72px; }
.asc-plan-out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.asc-plan-out > div { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 4%, transparent); }
.asc-plan-out span { display: block; font-size: 0.75rem; color: var(--ink-3); }
.asc-plan-out strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.asc-plan-out .hl { background: color-mix(in srgb, var(--good) 12%, transparent); }
.asc-plan-out .hl.bad { background: color-mix(in srgb, var(--critical) 11%, transparent); }
@media (max-width: 900px) { .asc-grid, .asc-camp-grid, .asc-plan-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .asc-ring { grid-template-columns: 1fr; justify-items: center; } .asc-ring .ring-rows { width: 100%; } .asc-cell { padding: 14px; } }
.logo img { opacity: 0; }
.logo.has-img img { opacity: 1; }
.logo:not(.has-img) { background: var(--logo-c, #6b7280); box-shadow: none; }
.asc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.asc-ring { grid-template-columns: 140px minmax(0, 1fr); }
.asc-ring .ring-row { grid-template-columns: 10px minmax(0, 1fr) auto; gap: 8px; }
.asc-ring .rr-fig { text-align: right; }
.sc-label, .be-label { text-transform: none; letter-spacing: 0; font-size: 12px; }
@media (max-width: 900px) { .asc-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .asc-ring { grid-template-columns: 1fr; justify-items: center; } }
.g-tiles { margin: 0 0 16px !important; }
.g-grid { margin: 0 0 18px; }
.g-grid .asc-cell { box-shadow: 0 0 0 1px var(--rule); }
.g-kinds { display: grid; gap: 16px; }
.g-kind-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.g-kind-top .asc-v { margin-left: auto; }
.g-camps td.good { color: var(--good-ink); font-weight: 600; } .g-camps td.bad { color: var(--bad-ink); font-weight: 600; }
.asc-ring .rr-fig .asc-v { margin-top: 4px; }
.asc-ring .rr-fig { display: grid; justify-items: end; }

/* ===================================================================== V3 layout (8 Oct 2026)
   The Overview, Marketing and SEO open the same way: the answer, then one sheet of the page's
   main figures as tabs over a single chart, Ask Atlas docked beside them, then "Ready for you":
   what Atlas looked into as a list beside one item's detail and its prepared work. Live app
   tokens throughout (paper, sheet, ink, Bricolage for figures); colour only for meaning. */
.v3 { display: block; margin-bottom: 40px; }
.v3-main { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.v3-main > .page-head { margin: 12px 0 2px; }
.v3-main > .period-bar, .v3-main > .status-line { margin: 0; }

/* the figures panel */
.mp { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; }
.mp-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-bottom: 1px solid var(--rule); }
.mp-tab { all: unset; box-sizing: border-box; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 20px 15px; cursor: pointer;
  color: var(--ink-3); transition: background-color .15s var(--ease); }
.mp-tab + .mp-tab { box-shadow: inset 1px 0 0 var(--rule); }
.mp-tab:hover { background: var(--tint); }
.mp-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.mp-lab { font-size: 0.84375rem; font-weight: 500; }
.mp-val { font: 620 1.875rem/1.1 var(--display); font-stretch: 92%; letter-spacing: -0.01em; color: var(--ink-2); margin: 2px 0; font-variant-numeric: tabular-nums; }
.mp-dlt { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8125rem; color: var(--ink-3); }
.mp-dlt b { font-weight: 650; }
.mp-dlt .icon { width: 13px; height: 13px; }
.mp-dlt.up b, .mp-dlt.up .icon { color: var(--good-ink); }
.mp-dlt.down b, .mp-dlt.down .icon { color: var(--bad-ink); }
.mp-tab[aria-selected="true"] { color: var(--ink-2); }
.mp-tab[aria-selected="true"] .mp-val { color: var(--ink); }
.mp-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: -1px; height: 2px; background: var(--ink); }
.mp-panel { padding: 18px 20px 14px; }
.mp-h { margin: 0 0 6px; font: 600 1.0625rem var(--display); letter-spacing: -0.01em; }
.mp-h span { font: 400 0.8125rem var(--text); color: var(--ink-3); margin-left: 6px; letter-spacing: 0; }
.mp-panel .legend { margin-top: 6px; }

/* Ask Atlas, docked */
/* Ask Atlas: a slim bar under the figures, with Atlas's suggestions as small chips beneath it */
.v3-ask { display: flex; flex-direction: column; gap: 8px; }
.v3a-form { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 5px 5px 5px 14px; border-radius: 14px; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule); transition: box-shadow .15s var(--ease); }
.v3a-form:hover { box-shadow: inset 0 0 0 1px var(--rule-strong); }
.v3a-form:focus-within { box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px var(--ring); }
.v3a-form > .ai-orb.sm { flex: none; width: 18px; height: 18px; }
.v3a-form textarea { flex: 1; min-width: 0; min-height: 38px; max-height: 120px; resize: none; border: 0; outline: 0; background: transparent; padding: 9px 0; font: 400 0.9375rem/1.35 var(--text); color: var(--ink); field-sizing: content; }
.v3a-form textarea::placeholder { color: var(--ink-3); }
.v3a-send { flex: none; width: 38px; height: 38px; min-height: 0; padding: 0; border: 0; border-radius: 10px; background: var(--ink); color: var(--paper); transition: opacity .15s var(--ease); }
.v3a-form textarea:placeholder-shown ~ .v3a-send { opacity: .35; }
.v3a-send svg { width: 16px; height: 16px; }
.v3-ask .ai-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; max-width: none; }
.v3-ask .ai-row-k { display: none; }
.v3-ask .ai-row-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.v3-ask .ai-chip { min-height: 32px; padding: 0 12px; border-radius: 999px; font-size: 0.8125rem; white-space: nowrap; background: var(--tint); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--ink-2); }
.v3-ask .ai-chip:hover { transform: none; background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
.v3-ask .ai-row-slot:empty { display: none; }

/* Ready for you */
.rb { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 24px; align-items: start; margin: 0 0 48px; }
.rb-head { padding: 0 4px 12px; }
.rb-head h2 { margin: 0; }
.rb-head p { margin: 4px 0 0; font-size: 0.875rem; color: var(--ink-3); }
.rb-head p b { color: var(--ink); font-weight: 650; }
.rb-head a { color: var(--ink-2); }
.rb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rb-item { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; transition: background-color .15s var(--ease); }
.rb-item:hover { background: var(--tint); }
.rb-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.rb-item[aria-current="true"] { background: var(--sheet); border-color: var(--rule-strong); box-shadow: var(--shadow-sm); }
.rb-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.rb-ic .icon { width: 17px; height: 17px; }
.t-acc { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
.t-good { background: color-mix(in srgb, var(--good) 12%, transparent); color: var(--good-ink); }
.t-bad { background: color-mix(in srgb, var(--critical) 11%, transparent); color: var(--bad-ink); }
.t-warn { background: color-mix(in srgb, var(--warning) 18%, transparent); color: var(--warning-mark); }
.rb-t { flex: 1; min-width: 0; }
.rb-t strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: 0.90625rem; line-height: 1.35; color: var(--ink); }
.rb-t span { display: block; margin-top: 2px; font-size: 0.8125rem; color: var(--ink-3); }
.rb-v { flex: none; font-weight: 650; font-size: 0.84375rem; color: var(--good-ink); }
.rb-all { display: inline-flex; align-items: center; gap: 4px; margin: 10px 12px 0; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.rb-all:hover { color: var(--ink); }
.rb-detail { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); }
.rb-d { padding: 24px 28px; display: flex; flex-direction: column; gap: 16px; }
.rb-top { display: flex; align-items: center; gap: 8px; }
.rb-tag { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px 0 8px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; }
.rb-tag .icon { width: 14px; height: 14px; }
.rb-pager { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 0.8125rem; color: var(--ink-3); }
.rb-pager > span { margin-right: 6px; }
.rb-step { width: 32px; height: 32px; min-height: 0; padding: 0; border: 0; border-radius: var(--r); background: transparent; color: var(--ink-2); }
.rb-step:hover { background: var(--tint); color: var(--ink); }
.rb-d h3 { margin: 0; font: 600 1.625rem/1.15 var(--display); letter-spacing: -0.022em; font-stretch: 94%; text-wrap: balance; }
.rb-why { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 0.96875rem; line-height: 1.55; display: grid; gap: 4px; }
.rb-work { border-top: 1px solid var(--rule); padding-top: 14px; }
.rb-work .nf-readies { margin: 0; }
.rb-k { margin: 0 0 6px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-3); }
.rb-next ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.rb-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin: 0; border-top: 1px solid var(--ink); }
.rb-facts div { padding: 12px 14px 0 0; }
.rb-facts div + div { padding-left: 14px; box-shadow: inset 1px 0 0 var(--rule); }
.rb-facts dt { font-size: 0.8125rem; color: var(--ink-3); }
.rb-facts dd { margin: 3px 0 0; font: 620 1.125rem/1.25 var(--display); font-stretch: 94%; }
.rb-facts dd.v-good { color: var(--good-ink); }
.rb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rb-form { margin: 0; display: contents; }
.rb-ask { gap: 8px; }
.rb-more { margin-left: auto; font-size: 0.875rem; color: var(--ink-2); }
.rb-none { display: block; }
.rb-empty { display: flex; gap: 10px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-lg); border: 1px dashed var(--rule-strong); color: var(--ink-2); }
.rb-empty p { margin: 0; }
.rb-notice { margin: 0 0 12px; }
@media (prefers-reduced-motion: no-preference) {
  .rb-d.rb-in { animation: rb-in .22s cubic-bezier(.2, .8, .2, 1) both; }
  .mp-panel:not([hidden]) { animation: rb-in .2s cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes rb-in { from { opacity: 0; transform: translateY(5px); } }
@media (max-width: 1100px) {
  .v3 { grid-template-columns: minmax(0, 1fr); }
  .v3-ask { position: static; }
  .rb { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .mp-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mp-tab:nth-child(3) { box-shadow: inset 0 1px 0 var(--rule); } .mp-tab:nth-child(4) { box-shadow: inset 1px 0 0 var(--rule), inset 0 1px 0 var(--rule); }
  .mp-val { font-size: 1.5rem; }
  .mp-panel { padding: 14px 12px 10px; }
  .rb-d { padding: 18px; }
  .rb-more { margin-left: 0; }
}
.mp-foot { margin: 8px 0 0; font-size: 0.8125rem; color: var(--ink-3); }
.mp-dlt { flex-wrap: wrap; }
.v3-ask .ai-chip, .v3-ask .ai-chip span { white-space: normal; overflow: visible; text-overflow: clip; -webkit-line-clamp: unset; }
.v3-ask .ai-chip { height: auto; max-height: none; display: flex; align-items: flex-start; line-height: 1.35; }
.v3 + .rb, .v3 + .rb-none { margin-top: 8px; }
.v3 { margin-bottom: 28px; }
.v3-ask .ai-row-chips .ai-chip, .v3-ask .ai-row-chips .ai-chip:not(.lead) { display: flex; max-width: none; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; align-self: stretch; border-radius: 12px; }
.v3-ask .ai-row-chips .ai-chip.lead { overflow: hidden; }
@media (max-width: 640px) { .v3-ask { display: none; } }
.mp { overflow: visible; }
.mp-tab:first-child { border-top-left-radius: calc(var(--r-lg) - 1px); }
.mp-tab:last-child { border-top-right-radius: calc(var(--r-lg) - 1px); }
.v3a-form textarea::placeholder { color: var(--ink-2); opacity: .8; }

/* ---- The free shop scan (scan-views.ts, scan.js): the welcome wizard's paper and step bar, Atlas's navy cover as the progress panel */
.scan-body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font-family: var(--text); color: var(--ink); background: var(--paper); }
.scan-top { display: grid; grid-template-columns: 1fr minmax(0, 360px) 1fr; align-items: center; gap: 16px; padding: 16px clamp(16px, 3vw, 32px); }
.scan-lead { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.scan-brand { font: 700 1.25rem var(--display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.scan-crumb { color: var(--ink-3); } .scan-domain { font-size: 0.875rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scan-progress { list-style: none; margin: 0; padding: 0; display: flex; gap: 5px; }
.scan-progress li { flex: 1; height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 10%, transparent); transition: background-color .35s ease; }
.scan-progress li.done { background: var(--series1); } .scan-progress li.now { background: color-mix(in srgb, var(--series1) 55%, transparent); }
.scan-start-body .scan-progress { visibility: hidden; }
.scan-signin { justify-self: end; font-weight: 600; font-size: 0.875rem; color: var(--ink); text-decoration: none; padding: 10px 14px; min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; border-radius: 10px; }
.scan-signin:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }

.scan-start { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: clamp(40px, 9vh, 96px) 20px 80px; }
.scan-kicker { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--accent); }
.scan-hero { margin: 0; max-width: 16ch; font: 750 clamp(2.5rem, 6vw, 4.25rem)/1.02 var(--display); letter-spacing: -0.035em; font-stretch: 92%; }
.scan-hero-sm { font-size: clamp(2rem, 4vw, 2.75rem); max-width: 22ch; }
.scan-intro { margin: 0; max-width: 600px; font-size: 1.125rem; line-height: 1.5; color: var(--ink-2); }
.scan-error { margin: 0; padding: 10px 14px; border-radius: 12px; color: var(--bad-ink); background: color-mix(in srgb, var(--critical) 9%, var(--sheet)); }
.scan-form { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; width: min(560px, 100%); box-sizing: border-box; padding: 8px; border-radius: 18px; background: var(--sheet);
  box-shadow: 0 0 0 1px var(--rule), 0 10px 30px color-mix(in srgb, var(--ink) 6%, transparent); }
.scan-form input { flex: 1 1 220px; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); font: inherit; font-size: 1.0625rem; padding: 12px 14px; }
.scan-form:focus-within { box-shadow: 0 0 0 2px var(--accent), 0 10px 30px color-mix(in srgb, var(--ink) 6%, transparent); }
.scan-form button, .scan-btn, .sv-unlock button { border: 0; border-radius: 12px; min-height: 48px; padding: 0 22px; background: var(--ink); color: var(--paper); font: 600 1rem var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: transform .15s cubic-bezier(.2, 0, 0, 1), opacity .15s; }
.scan-form button:active, .scan-btn:active, .sv-unlock button:active { transform: scale(.97); }
.scan-btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.scan-btn.wide { width: 100%; }
.scan-small { margin: 0; font-size: 0.875rem; color: var(--ink-3); }
.scan-chips { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 760px; }
.scan-chips li { font-size: 0.875rem; padding: 8px 14px; border-radius: 999px; background: var(--sheet); box-shadow: 0 0 0 1px var(--rule); color: var(--ink-2); }

.scan-wrap { flex: 1; display: flex; flex-wrap: wrap; gap: 16px; padding: 0 clamp(16px, 3vw, 32px) 32px; }
.scan-panel { flex: 1 1 260px; max-width: 330px; box-sizing: border-box; padding: 26px 22px 22px; border-radius: 20px; background: #1b2238; color: #e9ecf5; display: flex; flex-direction: column; gap: 18px; align-self: stretch; }
.scan-panel h2 { margin: 0 0 6px; font: 700 1.5rem var(--display); letter-spacing: -0.02em; color: #fff; }
.scan-panel p { margin: 0; font-size: 0.875rem; line-height: 1.45; color: #a7aec4; }
.scan-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.scan-steps > li { padding: 9px 10px; border-radius: 10px; }
.scan-steps > li.now { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.st-row { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; font-weight: 600; color: #fff; }
.scan-steps > li.todo .st-row { color: #7d86a1; font-weight: 500; }
/* scoped to the scan's rows: bare .st-todo also matched the SEO plan's to-do steps and drew their how-to in white at 25% (20 Oct 2026) */
.st-row svg { flex: none; display: none; } .st-row .st-done { color: #7fb2f0; } .st-row .st-todo { color: rgba(255, 255, 255, .25); }
li.done .st-done, li.now .st-now, li.todo .st-todo { display: block; }
.st-row .st-now { animation: scan-spin .9s linear infinite; color: #fff; }
@keyframes scan-spin { to { transform: rotate(360deg); } }
.st-subs { list-style: none; margin: 8px 0 2px 7px; padding: 0 0 0 16px; border-left: 1px solid rgba(255, 255, 255, .14); display: flex; flex-direction: column; gap: 7px; }
.st-subs:empty { display: none; }
.st-subs li { display: flex; justify-content: space-between; gap: 8px; font-size: 0.8125rem; color: #c9cedd; }
.st-subs li span:last-child { font-weight: 600; color: #e9ecf5; font-variant-numeric: tabular-nums; } .st-subs li span.warn { color: #ffb49a; }
.scan-meter-row { display: flex; justify-content: space-between; font-size: 0.8125rem; color: #a7aec4; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.scan-bar { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.scan-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #7fb2f0, #fff); transition: width .3s linear; }

.scan-stage { flex: 999 1 560px; min-width: 0; box-sizing: border-box; padding: clamp(22px, 3vw, 40px); border-radius: 20px; background: var(--sheet); box-shadow: 0 0 0 1px var(--rule); display: flex; flex-direction: column; gap: 22px; min-height: 620px; }
.sv { display: flex; flex-direction: column; gap: 22px; }
.sv.in { animation: lx-rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.sv-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.sv-head h1 { margin: 0 0 6px; font: 750 clamp(1.75rem, 3vw, 2.375rem)/1.1 var(--display); letter-spacing: -0.03em; font-stretch: 92%; }
.sv-head p { margin: 0; max-width: 640px; color: var(--ink-2); line-height: 1.5; }
.sv-count { text-align: right; display: flex; flex-direction: column; font-size: 0.8125rem; color: var(--ink-3); }
.sv-big { font: 750 2.5rem/1 var(--display); letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.sv-muted { color: var(--ink-3); }
.sv-chip { justify-self: start; align-self: flex-start; font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.sv-chip.bad { color: var(--bad-ink); background: color-mix(in srgb, var(--critical) 11%, var(--sheet)); }
.sv-chip.ok { color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, var(--sheet)); }
.sv-money { font-weight: 700; color: var(--bad-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }

.sv-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.sv-tile { margin: 0; position: relative; height: 96px; border-radius: 10px; overflow: hidden; background: color-mix(in srgb, var(--ink) 5%, var(--sheet)); box-shadow: 0 0 0 1px var(--rule); animation: lx-rise .4s cubic-bezier(.2, .8, .2, 1) both; }
.sv-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; } .sv-tile.has-img img { opacity: 1; }
.sv-tile-lines { position: absolute; inset: 12px 12px auto; height: 30px; background: linear-gradient(color-mix(in srgb, var(--ink) 14%, transparent) 0 8px, transparent 8px 14px, color-mix(in srgb, var(--ink) 9%, transparent) 14px 19px, transparent 19px 25px, color-mix(in srgb, var(--ink) 9%, transparent) 25px 30px); border-radius: 3px; }
.sv-tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 6px 8px; font-size: 0.6875rem; color: var(--ink); background: color-mix(in srgb, var(--sheet) 86%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sv-tile figcaption span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-flag { flex: none; width: 8px; height: 8px; border-radius: 99px; background: var(--serious); }

.sv-speed { display: flex; flex-direction: column; }
.sv-sp-row { display: grid; grid-template-columns: minmax(90px, 220px) minmax(0, 1fr) 52px 64px; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--rule); font-size: 0.875rem; }
.sv-sp-path { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-sp-bar { height: 10px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 6%, transparent); overflow: hidden; }
.sv-sp-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--series1); transition: width .7s cubic-bezier(.2, 0, 0, 1); }
.sv-sp-bar span.slow { background: var(--serious); }
.sv-sp-ms { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.sv-foot { margin: 0; font-size: 0.875rem; color: var(--ink-3); }

.sv-browser { position: relative; border-radius: 14px; overflow: hidden; background: #fff; color: #1f1f1f; box-shadow: 0 0 0 1px var(--rule), 0 18px 40px color-mix(in srgb, var(--ink) 8%, transparent); }
.sv-chrome { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #f1f0ec; border-bottom: 1px solid #e6e4de; }
.sv-dots { display: flex; gap: 6px; } .sv-dots i { width: 10px; height: 10px; border-radius: 99px; background: #e0695e; } .sv-dots i:nth-child(2) { background: #e3b341; } .sv-dots i:nth-child(3) { background: #6bbf59; }
.sv-address { flex: 1; min-width: 0; font-size: 0.8125rem; color: #57534d; background: #fff; border-radius: 99px; padding: 6px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-serp { padding: 20px 24px 92px; display: flex; flex-direction: column; gap: 18px; min-height: 300px; }
.sv-query { display: flex; align-items: center; gap: 10px; max-width: 520px; border-radius: 99px; box-shadow: 0 0 0 1px #dadce0; padding: 11px 18px; color: #4d5156; }
.sv-query span[data-typed] { color: #1f1f1f; font-size: 1rem; }
.sv-caret { width: 1.5px; height: 18px; background: #1f1f1f; animation: scan-blink 1.1s step-end infinite; } @keyframes scan-blink { 50% { opacity: 0; } }
.sv-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.sv-results li { display: flex; flex-direction: column; gap: 3px; max-width: 640px; animation: lx-rise .4s cubic-bezier(.2, .8, .2, 1) both; padding: 4px 8px; margin: -4px -8px; border-radius: 8px; }
.sv-results li.you { background: #fff7d6; box-shadow: 0 0 0 2px #e5b800; }
.sv-r-domain { font-size: 0.75rem; color: #4d5156; } .sv-r-title { font-size: 1.0625rem; color: #1a0dab; } .sv-r-snip { font-size: 0.8125rem; color: #4d5156; line-height: 1.45; }
.sv-callout { position: absolute; left: 16px; right: 16px; bottom: 16px; margin-inline: auto; max-width: 560px; box-sizing: border-box; display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: #fff; color: #1c1b19;
  box-shadow: 0 0 0 1px rgba(28, 27, 25, .08), 0 16px 40px rgba(28, 27, 25, .16); animation: lx-rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.sv-callout div { display: flex; flex-direction: column; gap: 2px; } .sv-callout strong { font: 700 1.125rem var(--display); letter-spacing: -0.01em; } .sv-callout div span { font-size: 0.875rem; color: #57534d; }
.sv-callout-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #b42318; background: #fceae8; }
.sv-callout.ok .sv-callout-icon { color: #174e92; background: #e7f0fb; }
.sv-search-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sv-search-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto 110px; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--rule); font-size: 0.875rem; animation: lx-rise .35s ease both; }
.sv-search-list .sv-chip { justify-self: end; }

.sv-question { margin: 0; align-self: flex-start; font-size: 0.9375rem; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: color-mix(in srgb, var(--ink) 5%, var(--sheet)); }
.sv-question:empty { display: none; }
.sv-ai { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.sv-ai-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 16px; box-shadow: 0 0 0 1px var(--rule); min-height: 150px; animation: lx-rise .4s ease both; }
.sv-ai-card header { display: flex; align-items: center; gap: 10px; }
.sv-ai-body { margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); }
.sv-ai-card:not([data-state]) .sv-ai-body { animation: scan-pulse 1.2s ease-in-out infinite; } @keyframes scan-pulse { 50% { opacity: .4; } }

.sv-market { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 32px; padding: 8px 0; }
.sv-you { display: flex; flex-direction: column; align-items: center; gap: 10px; } .sv-you p { margin: 0; font-weight: 600; font-size: 0.875rem; }
.sv-field { flex: 0 1 460px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding: 26px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 4%, var(--sheet)); }
.sv-bubble { box-sizing: border-box; border-radius: 999px; background: var(--sheet); box-shadow: 0 2px 10px color-mix(in srgb, var(--ink) 9%, transparent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px; text-align: center; animation: scan-pop .5s cubic-bezier(.34, 1.4, .64, 1) both; }
@keyframes scan-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.sv-bubble img { width: 22px; height: 22px; border-radius: 6px; } .sv-bubble strong { font: 750 1.125rem var(--display); font-variant-numeric: tabular-nums; }
.sv-bubble span { max-width: 92%; font-size: 0.6875rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-bubble.you { background: #fff7d6; color: #1c1b19; box-shadow: 0 0 0 2px #e5b800, 0 0 0 10px rgba(255, 216, 77, .25); } .sv-bubble.you span { color: #57534d; }

.sv-loss { text-align: center; padding-top: 6px; }
.sv-loss-big { margin: 0; font: 800 clamp(3.5rem, 8vw, 6rem)/1 var(--display); letter-spacing: -0.04em; color: var(--bad-ink); font-variant-numeric: tabular-nums; }
.sv-loss-big small { font-size: 0.35em; color: var(--ink-3); letter-spacing: 0; }
.sv-loss-sub { margin: 6px 0 0; font-size: 0.875rem; color: var(--ink-3); }
.sv-loss-rows { list-style: none; margin: 0 auto; padding: 0; width: min(640px, 100%); display: flex; flex-direction: column; gap: 8px; }
.sv-loss-rows li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; box-shadow: 0 0 0 1px var(--rule); animation: lx-rise .4s ease both; }
.sv-loss-rows li div { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 0.8125rem; } .sv-loss-rows strong { font-size: 0.9375rem; }

.sv-result { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.sv-score { flex: 0 0 210px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.sv-ring { position: relative; width: 200px; height: 200px; } .sv-ring svg { width: 200px; height: 200px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: color-mix(in srgb, var(--ink) 7%, transparent); stroke-width: 16; }
.ring-fg { fill: none; stroke: var(--serious); stroke-width: 16; stroke-linecap: round; transition: stroke-dasharray 1.2s cubic-bezier(.2, 0, 0, 1); }
.ring-fg.low { stroke: var(--critical); } .ring-fg.high { stroke: var(--good); }
.sv-ring-n { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sv-ring-n span { font: 800 3.5rem/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; } .sv-ring-n small { font-size: 0.75rem; color: var(--ink-3); }
.sv-verdict { font-size: 0.8125rem; font-weight: 600; padding: 5px 12px; border-radius: 99px; background: color-mix(in srgb, var(--serious) 14%, var(--sheet)); color: var(--ink); }
.sv-verdict.low { background: color-mix(in srgb, var(--critical) 13%, var(--sheet)); color: var(--bad-ink); } .sv-verdict.high { background: color-mix(in srgb, var(--good) 13%, var(--sheet)); color: var(--good-ink); }
.sv-findings { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.sv-findings h2 { margin: 0; font: 700 1.5rem/1.2 var(--display); letter-spacing: -0.02em; }
.sv-top { text-align: left; padding: 16px 18px; border-radius: 14px; box-shadow: 0 0 0 1.5px var(--accent); display: flex; flex-direction: column; gap: 6px; }
.sv-top-row { display: flex; justify-content: space-between; gap: 12px; } .sv-top p { margin: 0; padding: 0; text-indent: 0; font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); }
.sv-top .sv-fix { color: var(--ink); }
.sv-locked { padding: 6px 18px; border-radius: 14px; box-shadow: 0 0 0 1px var(--rule); filter: blur(3px); user-select: none; }
.sv-locked div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); } .sv-locked div:first-child { border-top: 0; }
.sv-locked span { height: 10px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 16%, transparent); width: 62%; } .sv-locked span + span { width: 18%; background: color-mix(in srgb, var(--critical) 30%, transparent); }
.sv-more { margin: 0; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
.sv-unlock { flex: 1 1 280px; max-width: 380px; box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 18px; background: color-mix(in srgb, var(--ink) 4%, var(--sheet)); }
.sv-unlock h2 { margin: 0; font: 700 1.375rem var(--display); letter-spacing: -0.02em; } .sv-unlock p { margin: 0 0 6px; font-size: 0.875rem; color: var(--ink-2); line-height: 1.5; }
.sv-unlock label { font-size: 0.8125rem; font-weight: 600; margin-top: 4px; }
.sv-unlock input { min-height: 46px; border-radius: 12px; border: 0; box-shadow: 0 0 0 1px var(--rule-strong); padding: 0 14px; font: inherit; background: var(--sheet); color: var(--ink); }
.sv-unlock input:focus { outline: none; box-shadow: 0 0 0 2px var(--accent); }
.sv-unlock button { margin-top: 8px; }
.sv-hint { font-size: 0.75rem; color: var(--ink-3); line-height: 1.5; }
.sv-actions { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.75rem; color: var(--ink-3); }
.sv-act-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.sv-replay[hidden] { display: none; }
.sv-replay { display: inline-flex; align-items: center; text-decoration: none; border: 0; background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); font: 600 0.8125rem var(--text); padding: 0 14px; min-height: 36px; border-radius: 10px; cursor: pointer; }

.scan-report { width: min(980px, 100%); margin: 0 auto; box-sizing: border-box; padding: 24px 20px 80px; display: flex; flex-direction: column; gap: 28px; }
.sr-head { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.sr-head > div:last-child { flex: 1 1 420px; display: flex; flex-direction: column; gap: 10px; } .sr-head h1 { margin: 0; font: 750 clamp(1.75rem, 3.4vw, 2.5rem)/1.1 var(--display); letter-spacing: -0.03em; }
.sr-head p { margin: 0; } .sr-head .scan-btn { margin-right: 8px; }
.sr-score { width: 150px; height: 150px; border-radius: 999px; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: inset 0 0 0 12px color-mix(in srgb, var(--serious) 30%, transparent); font-size: 0.75rem; color: var(--ink-3); }
.sr-n { font: 800 3rem/1 var(--display); color: var(--ink); }
.sr-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.sr-parts div { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); }
.sr-pn { font: 700 1.75rem var(--display); font-variant-numeric: tabular-nums; } .sr-parts small { color: var(--ink-3); }
.sr-area h2 { margin: 0 0 10px; }
.sr-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sr-list li { padding: 16px 0; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; }
.sr-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.sr-list p { margin: 0; color: var(--ink-2); line-height: 1.5; font-size: 0.9375rem; }
.sr-fix span { font-weight: 600; color: var(--ink); }
.sr-money { font-weight: 700; color: var(--bad-ink); white-space: nowrap; }
.sr-level { font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.sr-critical { color: var(--bad-ink); background: color-mix(in srgb, var(--critical) 11%, var(--sheet)); } .sr-good { color: var(--good-ink); background: color-mix(in srgb, var(--good) 12%, var(--sheet)); }
.sr-table { overflow-x: auto; } .sr-table table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; } .sr-table th, .sr-table td { text-align: left; padding: 10px 12px 10px 0; border-top: 1px solid var(--rule); } .sr-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.sr-q { margin: 0 0 12px; font-style: italic; color: var(--ink-2); }
.sr-ai { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.sr-ai article { padding: 16px; border-radius: 14px; box-shadow: 0 0 0 1px var(--rule); } .sr-ai h3 { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin: 0 0 8px; font-size: 1rem; }
.sr-names { margin: 0 0 6px; font-weight: 600; font-size: 0.875rem; } .sr-excerpt { margin: 0; font-size: 0.8125rem; color: var(--ink-2); white-space: pre-line; max-height: 9.5em; overflow: hidden; }
.sr-how p { color: var(--ink-2); font-size: 0.875rem; line-height: 1.6; max-width: 760px; }
@media (max-width: 760px) {
  .scan-top { grid-template-columns: 1fr auto; } .scan-progress { grid-column: 1 / -1; grid-row: 2; }
  .scan-panel { max-width: none; gap: 12px; padding: 18px; } .scan-panel p, .scan-steps > li.done, .scan-steps > li.todo { display: none; } .scan-panel h2 { font-size: 1.25rem; margin: 0; } .scan-stage { min-height: 0; }
  .sv-sp-row { grid-template-columns: minmax(0, 1fr) 52px 60px; } .sv-sp-bar { grid-column: 1 / -1; grid-row: 2; }
  .sv-search-list li { grid-template-columns: minmax(0, 1fr) auto; } .sv-search-list .sv-muted { display: none; }
  .sv-serp { padding: 16px 16px 120px; } .sv-score { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .scan-body *, .scan-body *::before { animation: none !important; transition: none !important; } }

/* ===================================================================== Notifications (8 Oct 2026)
   Everything Atlas finds reads like a notification, grouped in one box like an inbox: a compact
   row per item with the tile, a meta line (who, area, when), the headline, one line of evidence,
   small actions at the right, and a reply line to explain or ask. "See the fixes" opens the
   prepared work under the row. Atlas AI's own rows wear the spectrum orb and its name. */
.nt-group { --nt-lift: 0 1px 2px rgba(28, 27, 25, 0.05), 0 8px 24px rgba(28, 27, 25, 0.06); --nt-edge: none;
  list-style: none; margin: 0; padding: 0; display: block; background: var(--raised); border-radius: 18px; border: var(--nt-edge); box-shadow: var(--nt-lift); overflow: hidden; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nt-group { --nt-lift: none; --nt-edge: 1px solid var(--rule-strong); } }
:root[data-theme="dark"] .nt-group { --nt-lift: none; --nt-edge: 1px solid var(--rule-strong); }
.think-list.nt-group, .ag-list.nt-group { display: block; gap: 0; max-width: 980px; }
.nt-rows { list-style: none; margin: 0; padding: 0; }

/* a row */
.nt-group .nt, .think-card.nt, .ag-card.nt { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; column-gap: 14px;
  grid-template-areas: "tile top act" "tile h act" "tile b act" ". fx fx";
  row-gap: 0; margin: 0; padding: 16px 20px; border: 0; border-radius: 0; background: transparent; box-shadow: none; animation: none; opacity: 1; transform: none; overflow: visible; transition: background-color .15s var(--ease); }
.think-card.nt::before { content: none; }
.nt-group .nt + .nt { box-shadow: inset 0 1px 0 var(--rule-soft); }
.nt-group .nt:hover, .nt-group .nt.nt-open { background: color-mix(in srgb, var(--ink) 2.2%, transparent); }
.nt-app { grid-area: tile; align-self: start; margin-top: 2px; width: 36px; height: 36px; border-radius: 9px; background: var(--ink); display: grid; place-items: center; }
.nt-app svg { width: 20px; height: 20px; fill: none; stroke: var(--paper); stroke-width: 1.9; stroke-linecap: round; }
.nt-app-ai { position: relative; overflow: hidden; background: var(--night); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.nt-app-ai .ai-orb { width: 22px; height: 22px; }
.nt-top { grid-area: top; display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 0.8125rem; line-height: 1.3; color: var(--ink-3); }
.nt-top b { font-weight: 600; color: var(--ink-2); }
.nt-area { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nt-top .nf-badge { flex: none; transform: scale(.92); transform-origin: left center; }
.nt-top time { margin-left: auto; flex: none; padding-left: 8px; font-variant-numeric: tabular-nums; }
.nt h3.nt-h { grid-area: h; margin: 3px 0 0; font: 600 0.984375rem/1.35 var(--text); letter-spacing: -0.006em; color: var(--ink); text-wrap: pretty; }
.nt p.nt-b { grid-area: b; margin: 2px 0 0; font-size: 0.875rem; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nt-open p.nt-b { -webkit-line-clamp: unset; }
.nt-actions { grid-area: act; align-self: center; display: flex; gap: 6px; margin-left: 16px; min-width: 0; }
.nt-actions .btn { min-height: 34px; padding: 0 14px; border-radius: 9px; font-size: 0.875rem; font-weight: 600; white-space: nowrap; justify-content: center; }
.nt-actions .nt-go { min-width: 128px; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nt-actions .nt-go:hover { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); }
.nt-actions .nt-ask { gap: 7px; background: var(--tint); border-color: transparent; color: var(--ink); box-shadow: none; }
.nt-actions .nt-ask:hover { background: color-mix(in srgb, var(--ink) 9%, transparent); }
.nt-actions .nt-ask .ai-orb.sm { width: 14px; height: 14px; }

/* the reply field, beside "See the fixes": type to explain (a note on the finding) or ask */
.nt-reply { position: relative; display: flex; align-items: center; width: 210px; margin: 0; transition: width .2s var(--ease); }
.nt-reply:focus-within { width: 300px; }
.nt-reply > .ai-orb.sm { position: absolute; left: 11px; width: 14px; height: 14px; pointer-events: none; }
.nt-reply input { flex: 1; min-width: 0; height: 34px; padding: 0 40px 0 32px; border-radius: 9px; border: 1px solid transparent; background: var(--tint); font: inherit; font-size: 0.875rem; color: var(--ink); transition: background-color .15s var(--ease), border-color .15s var(--ease); }
.nt-reply input::placeholder { color: var(--ink-2); }
.nt-reply input:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.nt-reply input:focus { outline: none; background: var(--raised); border-color: var(--rule-strong); box-shadow: 0 0 0 3px var(--ring); }
.nt-send { position: absolute; right: 3px; width: 28px; height: 28px; min-height: 0; padding: 0; border: 0; border-radius: 7px; background: var(--ink); color: var(--paper); display: grid; place-items: center; transition: opacity .15s var(--ease), transform .15s var(--ease); }
.nt-send svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nt-reply input:placeholder-shown + .nt-send { opacity: 0; transform: scale(.85); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .nt-reply { transition: none; } }

/* the prepared work, under the row */
.nt-fixes { grid-area: fx; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule-soft); display: flex; flex-direction: column; gap: 14px; }
.think-card .nt-fixes, .ag-card .nt-fixes { display: grid; gap: 10px; }
.nt-fixes[hidden] { display: none; }
.nt-fixes > .rb-work:first-child { border-top: 0; padding-top: 0; }

/* "Ready for you": the box's own heading, count and link to Atlas AI */
.rb.nt-board { display: block; max-width: 980px; }
/* on the SEO dashboard the board lines up with the cards above it (20 Oct 2026 click-through: it stopped short at 980px) */
main:has(.u-seo) > .rb.nt-board { max-width: none; }
.nt-group-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px 12px; box-shadow: inset 0 -1px 0 var(--rule-soft); }
.nt-group-head h2 { margin: 0; font: 650 1rem/1.3 var(--text); letter-spacing: -0.005em; }
.nt-count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 0.75rem; font-weight: 650; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.nt-group-head .rb-all { margin: 0 0 0 auto; }
.nt-board .rb-notice { margin: 0 0 12px; }
@media (prefers-reduced-motion: no-preference) { .nt-fixes.nt-fx-in { animation: rb-in .22s cubic-bezier(.2, .8, .2, 1) both; } }

@media (max-width: 720px) {
  .nt-group .nt, .think-card.nt, .ag-card.nt { grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; padding: 14px 16px; grid-template-areas: "tile top" "tile h" "tile b" ". act" ". fx"; }
  .nt-app { width: 32px; height: 32px; border-radius: 8px; }
  .nt-actions { margin: 10px 0 0; }
  .nt-reply, .nt-reply:focus-within { flex: 1 1 0; width: auto; min-width: 0; }
  .nt-actions .nt-go { min-width: 0; }
  .nt-group { border-radius: 16px; }
}
@media (forced-colors: active) { .nt-app { border: 1px solid CanvasText; } .nt-reply input { border-color: CanvasText; } }

/* ===================================================================== Quick looks, smaller and smoother (8 Oct 2026)
   A floating panel at the top right that's as tall as its content (not a full-height sheet),
   placeholder bars while it loads, the content fading in, and a slide out on close. No backdrop
   blur: it made scrolling and opening stutter on long pages. */
dialog.quick::backdrop { background: rgba(20, 19, 17, 0.24); backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (min-width: 900px) {
  dialog.quick { inset: 12px 12px auto auto; width: min(560px, 46vw); height: auto; max-height: calc(100vh - 24px); border-radius: 20px; overflow: auto;
    box-shadow: 0 1px 2px rgba(28, 27, 25, .06), 0 18px 48px rgba(28, 27, 25, .18); }
  dialog.quick[open] { animation: qk-in .26s cubic-bezier(.2, .8, .2, 1); }
  dialog.quick .quick-inner { padding: 26px 28px 32px; }
  dialog.quick.closing { animation: qk-out .18s cubic-bezier(.4, 0, 1, 1) forwards; }
}
@media (max-width: 899px) { dialog.quick.closing { animation: qk-down .18s cubic-bezier(.4, 0, 1, 1) forwards; } }
dialog.quick.closing::backdrop { opacity: 0; transition: opacity .18s; }
@keyframes qk-in { from { transform: translateY(-6px) scale(.98); opacity: 0; } }
@keyframes qk-out { to { transform: translateY(-4px) scale(.98); opacity: 0; } }
@keyframes qk-down { to { transform: translateY(40px); opacity: 0; } }
.qk-skel { display: grid; gap: 12px; padding: 4px 0 12px; }
.qk-skel i { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--tint), color-mix(in srgb, var(--ink) 9%, transparent), var(--tint)); background-size: 200% 100%; }
.qk-skel i:first-child { height: 26px; width: 60%; margin-bottom: 6px; }
.qk-skel i:nth-child(3) { width: 82%; } .qk-skel i:nth-child(5) { width: 46%; }
[data-quick-body].qk-in > * { animation: rb-in .22s cubic-bezier(.2, .8, .2, 1) both; }
[data-quick-body].loading { opacity: .55; transition: opacity .15s; }
@media (prefers-reduced-motion: no-preference) { .qk-skel i { animation: qk-shim 1.2s ease-in-out infinite; } }
@keyframes qk-shim { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { dialog.quick[open], dialog.quick.closing, [data-quick-body].qk-in > * { animation: none; } }
@media (max-width: 640px) { .v3-ask .ai-chip { white-space: normal; text-align: left; min-height: 36px; padding: 6px 12px; } }
.v3-main > .mp { margin-bottom: 0; }
.v3-main > .v3-ask { margin-top: -6px; }
.v3-ask .ai-row-chips, .v3-ask .ai-row, .v3-ask .ai-chip { -webkit-mask-image: none; mask-image: none; }
/* rank tracker (113): the heading with Check now beside it */
.tk-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#ai-ranks .tk-add input { max-width: 560px; }


/* ---- Connections as app tiles (8 Oct 2026) ---- */
.cx-group { margin-top: 28px; }
.cx-group-h { font-family: var(--display); font-size: 1.0625rem; font-weight: 600; margin: 0 0 10px; color: var(--ink); }
.cx-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.cx-grid > li { display: flex; }
.cx-tile { all: unset; box-sizing: border-box; width: 100%; display: flex; flex-direction: column; gap: 8px; padding: 16px; min-height: 132px;
  background: var(--raised); border: 1px solid var(--rule); border-radius: var(--r-md); cursor: pointer; color: var(--ink);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease); }
.cx-tile:hover { border-color: var(--rule-strong); box-shadow: 0 1px 2px rgba(28, 27, 25, 0.04), 0 6px 16px rgba(28, 27, 25, 0.07); }
.cx-tile:active { transform: scale(.985); }
.cx-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cx-tile.is-new { background: var(--sheet); }
.cx-tile.is-error { border-color: color-mix(in srgb, var(--critical) 45%, var(--rule)); }
.cx-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cx-top .chip { padding: 3px 8px 3px 6px; border-radius: 6px; font-weight: 500; font-size: 0.75rem; }
.cx-top .chip .icon { width: 12px; height: 12px; }
.cx-top .chip.st-error { background: color-mix(in srgb, var(--critical) 12%, transparent); color: var(--bad-ink); }
.cx-top .chip.st-disconnected, .cx-top .chip.st-waiting, .cx-top .chip.st-syncing { background: var(--tint); color: var(--ink-2); }
.cx-add-hint { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent); transition: background .15s var(--ease); }
.cx-tile:hover .cx-add-hint { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.cx-name { font-weight: 600; font-size: 0.9375rem; display: flex; flex-direction: column; gap: 1px; }
.cx-sub { font-weight: 400; font-size: 0.8125rem; color: var(--ink-3); }
.cx-blurb { font-size: 0.8125rem; line-height: 1.4; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cx-file { display: inline-grid; place-items: center; background: var(--tint); color: var(--ink-2); }

dialog.cx-dlg { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: 16px;
  background: var(--raised); color: var(--ink); box-shadow: var(--shadow-pop); overflow: hidden; }
dialog.cx-dlg[open] { display: flex; flex-direction: column; animation: cx-in .2s var(--ease); }
dialog.cx-dlg.closing { animation: cx-out .16s var(--ease) forwards; }
dialog.cx-dlg::backdrop { background: rgba(20, 19, 17, 0.38); }
@keyframes cx-in { from { opacity: 0; transform: translateY(8px) scale(.985); } }
@keyframes cx-out { to { opacity: 0; transform: translateY(6px) scale(.985); } }
.cx-dlg-head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px 20px; border-bottom: 1px solid var(--rule); }
.cx-dlg-head h2 { margin: 0; font-family: var(--display); font-size: 1.125rem; font-weight: 600; flex: 1; min-width: 0; }
.cx-dlg-head .chip { padding: 3px 8px 3px 6px; border-radius: 6px; font-weight: 500; font-size: 0.75rem; }
.cx-dlg-head form { margin: 0; }
.cx-x { all: unset; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; color: var(--ink-2); }
.cx-x:hover { background: var(--tint); color: var(--ink); }
.cx-x:focus-visible { outline: 2px solid var(--accent); }
.cx-dlg-body { padding: 16px 20px 20px; overflow: auto; display: grid; gap: 12px; }
.cx-dlg-body > * { margin: 0; }
.cx-dlg-body .panel { box-shadow: none; border: 1px solid var(--rule); }
.cx-add { display: grid; gap: 8px; }
.cx-add button[type=submit] { justify-self: start; margin-top: 4px; }
.cx-new { display: grid; gap: 8px; }
@media (prefers-reduced-motion: reduce) { dialog.cx-dlg[open], dialog.cx-dlg.closing, .cx-tile { animation: none; transition: none; } }
.cx-dlg-body .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cx-dlg-body .actions form { margin: 0; }
.cx-account { border: 1px solid var(--rule); border-radius: 12px; background: var(--raised); }
.cx-account > summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; min-height: 44px; cursor: pointer; list-style: none; border-radius: 12px; }
.cx-account > summary::-webkit-details-marker { display: none; }
.cx-account > summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(45deg); transition: transform .16s var(--ease); }
.cx-account[open] > summary::after { transform: rotate(-135deg); }
.cx-account > summary:hover { background: var(--tint); }
.cx-account > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cx-account > summary .chip { padding: 3px 8px 3px 6px; border-radius: 6px; font-size: 0.75rem; font-weight: 500; }
.cx-account > :not(summary) { margin: 0 14px 12px; }
.cx-account .google-picker { overflow-x: auto; }
.cx-account-add { display: grid; gap: 8px; padding-top: 4px; }
/* Google: each store with its four services (15 Oct 2026) */
.g-store { display: grid; gap: 6px; }
.g-store + .g-store { margin-top: 6px; }
.g-store h3 { margin: 0 0 2px; font-size: 0.9375rem; font-weight: 600; }
.g-box { border: 1px solid var(--rule); border-radius: 10px; background: var(--raised); }
.g-box > summary { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; min-height: 44px; cursor: pointer; list-style: none; border-radius: 10px; }
.g-box > summary::-webkit-details-marker { display: none; }
.g-box > summary:hover { background: var(--tint); }
.g-box > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.g-svc { font-size: 0.875rem; font-weight: 600; }
.g-val { display: grid; min-width: 0; font-size: 0.875rem; }
.g-val strong { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-val .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-box.is-on .g-svc::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--good, #2f8f5b); vertical-align: 1px; }
.g-act { font-size: 0.8125rem; font-weight: 600; color: var(--accent); }
.g-box:not(.is-on) .g-act { padding: 4px 10px; border-radius: 6px; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.g-pick { display: grid; gap: 10px; padding: 4px 12px 12px; }
.g-pick fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 4px; }
.g-pick legend { padding: 0 0 4px; font-size: 0.75rem; font-weight: 600; color: var(--ink-2); }
.g-pick label { display: flex; gap: 8px; align-items: center; min-height: 32px; font-size: 0.875rem; }
.g-pick > p { margin: 0; }
.g-logins { margin-top: 8px; border-top: 1px solid var(--rule); padding-top: 8px; }
.g-logins > summary { cursor: pointer; font-size: 0.875rem; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.g-logins ul { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 6px; }
.g-logins li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-size: 0.875rem; }
.g-logins li form { margin: 0; }
@media (max-width: 560px) { .g-box > summary { grid-template-columns: minmax(0, 1fr) auto; } .g-box > summary .g-val { grid-column: 1 / -1; grid-row: 2; } }
.cx-account-add h3 { margin: 0; font-size: 0.9375rem; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .cx-account > summary::after { transition: none; } }
@media (max-width: 560px) { .cx-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; } .cx-tile { min-height: 0; padding: 14px; } .cx-blurb { -webkit-line-clamp: 1; } }

/* ---- Legal pages and agreeing to the terms (8 Oct 2026) ---- */
.login.legal ol { padding-left: 20px; }
.login.legal h2[id] { scroll-margin-top: 16px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin: 8px 0 4px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); }
.legal-table th { font-weight: 600; color: var(--ink-2); }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--rule); }
.auth-form label.check, .login label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; line-height: 1.45; margin: 6px 0 2px; }
.auth-form label.check input, .login label.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
@media (max-width: 560px) { .legal-table { font-size: 0.8125rem; } }
.auth-form label.check span, .login label.check span { flex: 1; min-width: 0; font-size: 0.875rem; color: var(--ink); }

/* ---- The Overview's dashboard (overview-board.ts, 8 Oct 2026): a card per part of Atlas ---- */
.db { display: flex; flex-direction: column; gap: 18px; margin: 8px 0 36px; }
.db-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.db-head h2 { font: 640 1.375rem/1.2 var(--display); font-stretch: 92%; letter-spacing: -0.01em; margin: 0; }
.db-head p { margin: 0; color: var(--ink-3); font-size: 0.875rem; }
.db-group { display: flex; flex-direction: column; gap: 8px; }
.db-gh { margin: 4px 0 0; font-size: 0.8125rem; font-weight: 600; color: var(--ink-3); }
.db-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.db-card { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 16px 18px 14px; background: var(--sheet);
  border: 1px solid var(--rule); border-radius: var(--r-lg); transition: border-color .18s var(--ease), background-color .18s var(--ease); }
.db-card:hover { border-color: color-mix(in srgb, var(--ink) 22%, var(--rule)); }
.db-card:has(.db-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.db-top { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.db-ic { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--tint); color: var(--ink-2); flex: none; }
.db-ic .icon { width: 14px; height: 14px; }
.db-top h3 { margin: 0; font-size: 0.9375rem; font-weight: 620; flex: 1; min-width: 0; }
.db-link { color: inherit; text-decoration: none; outline: none; }
.db-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.db-flag { flex: none; font-size: 0.75rem; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); padding: 2px 8px; border-radius: 999px; }
.db-lab { margin: 12px 0 0; font-size: 0.8125rem; color: var(--ink-3); }
.db-val { margin: 2px 0 0; font: 640 1.75rem/1.1 var(--display); font-stretch: 92%; letter-spacing: -0.012em; font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-dlt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 4px 0 0; min-height: 20px; font-size: 0.8125rem; color: var(--ink-3); }
.db-dlt b { font-weight: 650; font-variant-numeric: tabular-nums; }
.db-dlt .icon { width: 13px; height: 13px; }
.db-dlt.up b, .db-dlt.up .icon { color: var(--good-ink); }
.db-dlt.down b, .db-dlt.down .icon { color: var(--bad-ink); }
.db-viz { margin: 12px 0 14px; min-height: 34px; }
.db-card > :last-child:not(.db-facts):not(.db-atlas):not(.db-cta) { margin-bottom: auto; }
.db-card:not(:has(.db-facts)) .db-atlas { margin-top: auto; }
.db-viz .spark { max-width: none; height: 40px; }
.db-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin: auto 0 0; padding-top: 10px; border-top: 1px solid var(--rule-soft); }
.db-facts div { min-width: 0; }
.db-facts div:only-child { grid-column: 1 / -1; }
.db-facts dt { font-size: 0.75rem; color: var(--ink-3); }
.db-facts dd { margin: 1px 0 0; font-size: 0.875rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-atlas { position: relative; z-index: 1; display: flex; gap: 8px; align-items: flex-start; margin: 12px -8px -6px; padding: 8px; border-radius: var(--r);
  font-size: 0.8125rem; line-height: 1.35; color: var(--ink-2); text-decoration: none; background: var(--tint); }
.db-atlas:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.db-atlas:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.db-atlas b { color: var(--ink); font-weight: 620; margin-right: 2px; }
.db-atlas > span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.db-orb { flex: none; width: 12px; height: 12px; margin-top: 2px; border-radius: 50%;
  background: conic-gradient(#3d8bff, #7a5cff, #c45cf0, #ff5f9e, #ff8a3d, #ffc93c, #36c6a8, #3d8bff); box-shadow: 0 0 0 2px var(--sheet); }
.db-card.is-empty { background: transparent; border-style: dashed; }
.db-empty { margin: 6px 0 0; font-size: 0.875rem; color: var(--ink-2); line-height: 1.4; }
.db-cta { display: inline-flex; align-items: center; gap: 6px; margin: auto 0 0; padding-top: 12px; font-size: 0.875rem; font-weight: 600; color: var(--accent); }
.db-cta .icon { width: 14px; height: 14px; transition: transform .18s var(--ease); }
.db-card.is-empty:hover .db-cta .icon { transform: translateX(2px); }
/* small pictures: a split bar, top-three bars, now against before, a score meter */
.db-split-bar { display: flex; gap: 2px; height: 10px; border-radius: 3px; overflow: hidden; }
.db-split-bar span { display: block; min-width: 3px; height: 100%; }
.db-key { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 0.75rem; color: var(--ink-3); }
.db-key li { display: inline-flex; align-items: center; gap: 5px; }
.db-key i { width: 8px; height: 8px; border-radius: 2px; }
.db-key b { color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.t-s1 { background: var(--series1); } .t-s2 { background: var(--series2); } .t-s3 { background: var(--series3); } .t-s4 { background: var(--series4); }
.t-s7 { background: var(--series7); } .t-bad { background: var(--critical); } .t-warn { background: var(--warning); }
.db-bars { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.db-bars li, .db-pair-r { display: grid; grid-template-columns: minmax(0, 1fr) 64px auto; gap: 8px; align-items: center; font-size: 0.75rem; color: var(--ink-2); }
.db-bar-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-bars b, .db-pair-r b { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); text-align: right; min-width: 34px; }
/* bars, not meters: no track behind them; square at the baseline, round at the data end */
.db-bar-t { display: block; height: 8px; }
.db-bar-t span { display: block; height: 100%; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--series1); }
.db-pair { display: grid; gap: 6px; }
.db-pair-r { grid-template-columns: 76px minmax(0, 1fr) auto; }
.db-pair-r.before .db-bar-t span { background: var(--cmp-line); }
/* a meter keeps its track, a lighter step of the same ramp */
.db-meter { height: 10px; border-radius: 5px; background: color-mix(in srgb, var(--good) 14%, var(--sheet)); overflow: hidden; }
.db-meter.mid { background: color-mix(in srgb, var(--warning) 16%, var(--sheet)); } .db-meter.low { background: color-mix(in srgb, var(--critical) 12%, var(--sheet)); }
.db-meter span { display: block; height: 100%; border-radius: 5px; background: var(--good); }
.db-meter.mid span { background: var(--warning); } .db-meter.low span { background: var(--critical); }
@media (max-width: 1100px) { .db-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* phones: two small cards a row, figure and change only (the page behind each card has the rest) */
@media (max-width: 560px) {
  .db-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .db-card { padding: 12px 12px 10px; }
  .db-viz, .db-facts, .db-atlas, .db-empty, .db-lab { display: none; }
  .db-top h3 { font-size: 0.875rem; } .db-ic { width: 22px; height: 22px; }
  .db-val { margin-top: 8px; font-size: 1.375rem; }
  .db-dlt { font-size: 0.75rem; }
  .db-cta { padding-top: 8px; font-size: 0.8125rem; }
  .db-head p { font-size: 0.8125rem; }
}
@media (prefers-reduced-motion: reduce) { .db-card, .db-cta .icon { transition: none; } }

/* ===================================================================== Search health (8 Oct 2026)
   One panel for AI search, changes, countries, search fit and local, built like the figures panel
   (divider tabs, one open at a time). Rows open in place; statuses carry an icon and a word. */
.sh-wrap { margin: 32px 0; }
.sh-head h2 { margin: 0; font: 600 1.375rem/1.2 var(--display); font-stretch: 92%; letter-spacing: -0.015em; }
.sh-lede { margin: 6px 0 0; max-width: 64ch; font-size: 1.0625rem; line-height: 1.45; color: var(--ink); text-wrap: pretty; }
.sh-head .sh-sub { margin-top: 2px; }
.sh-sub { margin: 4px 0 0; font-size: 0.875rem; color: var(--ink-3); line-height: 1.5; max-width: 72ch; }
.mp.sh { margin-top: 16px; }
.sh .mp-val small { font-size: 0.55em; color: var(--ink-3); margin-left: 1px; font-weight: 500; }
.sh .mp-val .icon { width: 26px; height: 26px; color: var(--good-ink); }
.sh-n { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8125rem; color: var(--ink-3); }
.sh-n .icon { width: 13px; height: 13px; }
.sh-n.bad { color: var(--bad-ink); font-weight: 600; } .sh-n.ok { color: var(--good-ink); font-weight: 600; } .sh-n.warn { color: var(--ink); font-weight: 600; }
.sh-n.warn .icon { color: var(--warning-mark); }
.sh-panel { padding: 22px 24px 24px; }
.sh-say { margin: 0; font: 600 1.125rem/1.35 var(--text); letter-spacing: -0.005em; text-wrap: pretty; }
.sh-top { margin-bottom: 14px; }
.sh-block { margin-top: 26px; }
.sh-h3 { margin: 0 0 10px; font: 650 0.9375rem/1.3 var(--text); }
.sh-k { margin: 0 0 8px; font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }
.sh-k span { font-weight: 400; color: var(--ink-3); }
.sh-foot { margin: 10px 0 0; font-size: 0.8125rem; color: var(--ink-3); }

/* the hero: score ring and verdict */
.sh-hero { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; align-items: center; }
.sh-ring { width: 112px; height: 112px; }
.sh-ring-bg { fill: none; stroke: var(--rule); stroke-width: 9; }
.sh-ring-on { fill: none; stroke: var(--accent); stroke-width: 9; stroke-linecap: round; }
.sh-ring[data-band="good"] .sh-ring-on { stroke: var(--good); } .sh-ring[data-band="low"] .sh-ring-on { stroke: var(--critical); }
.sh-ring-n { font: 650 30px var(--display); font-stretch: 92%; fill: var(--ink); text-anchor: middle; font-variant-numeric: tabular-nums; }
.sh-ring-of { font: 500 11px var(--text); fill: var(--ink-3); text-anchor: middle; }
@media (prefers-reduced-motion: no-preference) { .mp-panel:not([hidden]) .sh-ring-on { animation: sh-ring .7s cubic-bezier(.2, .8, .2, 1) both; } }
@keyframes sh-ring { from { stroke-dasharray: 0 264; } }

/* crawler chips */
.sh-crawl { display: grid; grid-template-columns: 3fr 2fr; gap: 20px; }
.sh-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sh-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px 0 9px; border-radius: 999px; background: var(--tint); font-size: 0.8125rem; cursor: help; }
.sh-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sh-chip .icon { width: 14px; height: 14px; }
.sh-chip b { font-weight: 600; }
.sh-chip span { color: var(--ink-3); }
.sh-chip.allowed .icon { color: var(--good-ink); }
.sh-chip.blocked { background: color-mix(in srgb, var(--critical) 12%, transparent); }
.sh-chip.blocked .icon, .sh-chip.blocked span { color: var(--bad-ink); }
.sh-chip.partial { background: color-mix(in srgb, var(--warning) 16%, transparent); }
.sh-chip.partial .icon { color: var(--warning-mark); }

/* rows that open in place */
.sh-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-soft); }
.sh-rows > li { border-bottom: 1px solid var(--rule-soft); }
.sh-row > summary { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 4px; cursor: pointer; list-style: none; border-radius: 8px; }
.sh-row > summary::-webkit-details-marker { display: none; }
.sh-row > summary:hover { background: var(--tint); }
.sh-row > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.sh-row > summary > .icon { flex: none; width: 16px; height: 16px; margin-left: auto; color: var(--ink-3); transition: transform .2s var(--ease); }
.sh-row[open] > summary > .icon { transform: rotate(90deg); }
.sh-t { min-width: 0; font-weight: 600; font-size: 0.9375rem; line-height: 1.35; }
.sh-t em { display: block; font-style: normal; font-weight: 400; font-size: 0.8125rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-row > :not(summary):not(.sh-parts) { margin-left: 4px; }
.sh-why { margin: 0 0 14px; font-size: 0.9375rem; line-height: 1.55; color: var(--ink-2); max-width: 70ch; }
.sh-fix { margin: 0 0 14px; padding: 12px 14px; border-radius: 10px; background: var(--tint); font-size: 0.9375rem; line-height: 1.55; max-width: 76ch; }
.sh-fix b { display: block; margin-bottom: 2px; font-size: 0.8125rem; }
.sh-open { margin: 0 0 14px; font-size: 0.875rem; }
.sh-open a { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; }
.sh-open .icon { width: 14px; height: 14px; }
.sh-pill { flex: none; display: inline-flex; align-items: center; gap: 5px; min-width: 112px; min-height: 26px; padding: 0 10px 0 8px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.sh-pill .icon { width: 13px; height: 13px; }
.sh-pill.ok { background: color-mix(in srgb, var(--good) 13%, transparent); color: var(--good-ink); }
.sh-pill.warn { background: color-mix(in srgb, var(--warning) 20%, transparent); color: var(--ink); }
.sh-pill.warn .icon { color: var(--warning-mark); }
.sh-pill.bad { background: color-mix(in srgb, var(--critical) 13%, transparent); color: var(--bad-ink); }
.sh-pill.na { background: var(--tint); color: var(--ink-2); }

/* score bars */
.sh-score { flex: none; width: 42px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 650; font-size: 0.875rem; font-variant-numeric: tabular-nums; background: var(--tint); }
.sh-score[data-band="good"] { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good-ink); }
.sh-score[data-band="low"] { background: color-mix(in srgb, var(--critical) 12%, transparent); color: var(--bad-ink); }
.sh-bar { flex: 0 1 180px; height: 6px; border-radius: 3px; background: var(--rule); overflow: hidden; margin-left: auto; }
.sh-bar.sm { flex: none; width: 120px; margin: 0; }
.sh-bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--accent); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.sh-bar i[data-band="good"] { background: var(--good); } .sh-bar i[data-band="low"] { background: var(--critical); }
.sh-row > summary .sh-bar + .icon { margin-left: 12px; }
.sh-parts { list-style: none; margin: 0 0 10px 54px; padding: 0; display: grid; gap: 10px; }
.sh-parts li { display: grid; grid-template-columns: 170px 120px auto; align-items: center; column-gap: 12px; font-size: 0.875rem; }
.sh-parts b { font-weight: 650; font-variant-numeric: tabular-nums; } .sh-parts b span { color: var(--ink-3); font-weight: 400; }
.sh-parts p { grid-column: 1 / -1; margin: 4px 0 0; color: var(--ink-2); line-height: 1.5; max-width: 70ch; }
.sh-row .sh-open { margin-left: 58px; }

/* changes: filter and before/after */
.sh-seg { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 12px; border-radius: 10px; background: var(--tint); }
.sh-seg button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); }
.sh-seg button:not(.on) { background: transparent; border-color: transparent; box-shadow: none; }
.sh-seg button.on { background: var(--seg-on); color: var(--ink); box-shadow: var(--shadow-sm); }
[data-sh-filter="critical"] [data-lvl]:not([data-lvl="critical"]) { display: none; }
.sh-diff { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 0.9375rem; }
.sh-diff del { padding: 3px 8px; border-radius: 6px; background: color-mix(in srgb, var(--critical) 9%, transparent); color: var(--ink-2); text-decoration-color: var(--bad-ink); }
.sh-diff ins { padding: 3px 8px; border-radius: 6px; background: var(--mark-soft); text-decoration: none; color: var(--ink); }
.sh-diff .icon { width: 14px; height: 14px; color: var(--ink-3); }
.sh-empty { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.sh-empty .icon { color: var(--good-ink); flex: none; margin-top: 2px; }
.sh-empty p { margin: 0; color: var(--ink-2); }

/* countries: the two sites, linked or not */
.sh-sites { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 0; margin-bottom: 18px; }
.sh-site { display: grid; gap: 1px; padding: 14px 16px; border-radius: 12px; background: var(--tint); min-width: 0; }
.sh-site b { font: 650 1.25rem/1 var(--display); font-stretch: 92%; }
.sh-site span { font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-site em { font-style: normal; font-size: 0.75rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.sh-link { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 120px; padding: 0 12px; font-size: 0.8125rem; font-weight: 600; }
.sh-link::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--good); z-index: 0; }
.sh-sites[data-linked="no"] .sh-link::before { background: repeating-linear-gradient(90deg, var(--critical) 0 6px, transparent 6px 12px); }
.sh-link .icon { position: relative; z-index: 1; width: 24px; height: 24px; padding: 3px; border-radius: 50%; background: var(--sheet); color: var(--good-ink); }
.sh-sites[data-linked="no"] .sh-link { color: var(--bad-ink); } .sh-sites[data-linked="no"] .sh-link .icon { color: var(--bad-ink); }
.sh-tagbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.sh-tagbar label { font-size: 0.875rem; color: var(--ink-2); }
.sh-tagbar select { min-height: 40px; max-width: 100%; }
.sh-code { margin: 0; padding: 14px 16px; border-radius: 10px; background: var(--tint); font-size: 0.8125rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }

/* search fit: Google's top ten as a strip */
.sh-serp { margin: 0 0 12px 4px; }
.sh-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; max-width: 420px; }
.sh-strip li { height: 22px; border-radius: 4px; cursor: help; }
.sh-strip li:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.t-product { background: var(--series1); } .t-category { background: var(--series3); } .t-guide { background: var(--series2); }
.t-marketplace { background: var(--series4); } .t-video { background: var(--series5); } .t-other { background: var(--rule-strong); }
.sh-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; padding: 0; font-size: 0.8125rem; color: var(--ink-2); }
.sh-legend li { display: inline-flex; align-items: center; gap: 6px; }
.sh-legend i { width: 10px; height: 10px; border-radius: 3px; }
.sh-you { margin: 10px 0 0; font-size: 0.9375rem; }

@media (max-width: 720px) {
  .sh-panel { padding: 18px 16px 20px; }
  .sh-hero { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; } .sh-ring { width: 88px; height: 88px; }
  .sh-crawl { grid-template-columns: minmax(0, 1fr); }
  .sh-pill { min-width: 0; }
  .sh-row > summary .sh-bar { display: none; }
  .sh-parts { margin-left: 0; } .sh-parts li { grid-template-columns: minmax(0, 1fr) 80px auto; } .sh-bar.sm { width: 80px; }
  .sh-row .sh-open { margin-left: 4px; }
  .sh-sites { grid-template-columns: minmax(0, 1fr); gap: 8px; } .sh-link { flex-direction: row; justify-content: center; min-height: 32px; } .sh-link::before { display: none; }
}
@media (forced-colors: active) { .sh-strip li, .sh-legend i, .sh-bar i { forced-color-adjust: none; border: 1px solid CanvasText; } }

/* ---- The period bar (period.ts periodBar, 8 Oct 2026): store menu, periods, a date stepper, comparison ---- */
.pbar { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; }
.pbar > * { flex: none; }
.pbar-seg { flex: 0 1 auto !important; min-width: 0; display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 5%, transparent); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.pbar-seg::-webkit-scrollbar { display: none; }
.pbar-seg a { flex: none; display: inline-flex; align-items: center; min-height: 32px; padding: 0 11px; border-radius: 9px; font-size: 0.8125rem; font-weight: 520; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: background-color .15s var(--ease), color .15s var(--ease); }
.pbar-seg a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.pbar-seg a[aria-current="true"] { background: var(--raised); color: var(--ink); font-weight: 650; box-shadow: 0 1px 2px rgba(28, 27, 25, .08), 0 0 0 .5px rgba(28, 27, 25, .08); }
.pbar-seg a:focus-visible, .pbar-arr:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pbar-store summary .icon { width: 15px; height: 15px; }
.pbar-store .pick-menu small { color: var(--ink-3); font-size: 0.75rem; font-weight: 400; }
.pbar-more .custom-range { display: grid; grid-template-columns: auto 1fr; gap: 6px 8px; align-items: center; padding: 4px 10px 10px; }
.pbar-more .custom-range button { grid-column: 1 / -1; }
/* The dates form is part of the More menu, not a pop-up of its own: the older .custom-pop[open] .custom-range rule floated it over the year list (17 Oct 2026) */
.pick-pop[open] .pick-menu .custom-range { position: static; width: auto; padding: 4px 10px 10px; border: 0; border-radius: 0; background: none; box-shadow: none; }
.pbar-more .custom-range input[type="date"] { min-width: 0; width: 100%; }
/* On a phone each menu spans the bar, just under its own button, so it never runs off the screen */
@media (max-width: 760px) { .pbar { position: relative; } .pbar > .pick-pop { position: static; } .pbar > .pick-pop[open] > .pick-menu { top: auto; left: 0; right: 0; min-width: 0; margin-top: 6px; } }
.pbar-step { display: inline-flex; align-items: center; gap: 2px; min-height: 38px; padding: 0 4px; border-radius: 10px; border: 1px solid var(--rule-strong); background: var(--raised); box-shadow: var(--shadow-sm); }
.pbar-arr { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--ink-2); }
.pbar-arr svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a.pbar-arr:hover { background: var(--tint); color: var(--ink); }
.pbar-arr.off { color: var(--rule-strong); }
.pbar-dates { padding: 0 4px; white-space: nowrap; font-size: 0.8125rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; text-align: center; }
.pbar-dates b { font-weight: 650; }
.pbar .compare-pop { margin-left: auto; }
@media (max-width: 760px) { .pbar { flex-wrap: wrap; } .pbar-seg { order: 5; width: 100%; } .pbar .compare-pop { margin-left: 0; } }

/* ---- The top of the Overview: the chosen day or dates (overview-today.ts) ---- */
.td { display: flex; flex-direction: column; gap: 12px; }
.td-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.td-head h2 { margin: 0; font: 640 1.375rem/1.2 var(--display); font-stretch: 92%; letter-spacing: -0.01em; }
.td-head p { margin: 0; font-size: 0.8125rem; color: var(--ink-3); }
.td-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; }
.td-tile { padding: 14px 18px 13px; min-width: 0; }
.td-tile + .td-tile { box-shadow: inset 1px 0 0 var(--rule); }
.td-tile dt { font-size: 0.8125rem; color: var(--ink-3); }
.td-v { margin: 3px 0 0; font: 640 1.75rem/1.1 var(--display); font-stretch: 92%; letter-spacing: -0.012em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.td-d { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 4px 0 0; font-size: 0.75rem; color: var(--ink-3); min-height: 18px; }
.td-d b { font-weight: 650; } .td-d .icon { width: 12px; height: 12px; }
.td-d.up b, .td-d.up .icon { color: var(--good-ink); } .td-d.down b, .td-d.down .icon { color: var(--bad-ink); }
.td-grid2 { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 12px; }
.td-card { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 14px 18px 16px; min-width: 0; }
.td-k { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 10px; font-size: 0.875rem; font-weight: 620; }
.td-k a { font-size: 0.8125rem; font-weight: 500; }
.td-k2 { margin-top: 16px; }
.td-key { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 400; color: var(--ink-3); }
.td-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 6px; }
.td-key i.cur { background: var(--series1); } .td-key i.pri { background: var(--cmp); border: 1px solid var(--cmp-line); }
.td-empty { padding: 30px 0; text-align: center; }
.td-split { display: flex; gap: 2px; height: 12px; border-radius: 4px; overflow: hidden; }
.td-split span { display: block; min-width: 3px; }
.td-split .new, .td-legend i.new { background: var(--series1); } .td-split .ret, .td-legend i.ret { background: var(--series7); }
.td-legend { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 0.875rem; color: var(--ink-2); }
.td-legend li { display: flex; align-items: center; gap: 8px; }
.td-legend i { width: 10px; height: 10px; border-radius: 3px; }
.td-legend b { color: var(--ink); font-variant-numeric: tabular-nums; }
.td-legend small { margin-left: auto; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.td-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.td-rows li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) auto; grid-template-areas: "n t b" "n t s"; column-gap: 12px; align-items: center; font-size: 0.875rem; }
.td-rows li > span:first-child { grid-area: n; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.td-rows .td-t { grid-area: t; display: block; height: 10px; }
.td-rows .td-t span { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--series1); }
.td-rows b { grid-area: b; text-align: right; font-variant-numeric: tabular-nums; }
.td-rows small { grid-area: s; text-align: right; color: var(--ink-3); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .td-grid2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .td-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .td-tile:nth-child(odd) { box-shadow: none; } .td-tile:nth-child(n+3) { border-top: 1px solid var(--rule); } .td-v { font-size: 1.5rem; } }

/* the Overview's charts (overview-today.ts), to the dataviz rules: hairline solid grid, recessive axis text, quiet comparison */
.td-cols, .td-hb { width: 100%; height: auto; display: block; overflow: visible; }
.td-cols .grid { stroke: var(--rule); stroke-width: 1; stroke-dasharray: none; }
.td-cols .axis { stroke: var(--rule-strong); stroke-width: 1; }
.td-cols .tick { fill: var(--ink-3); font: 500 12px var(--text); }
.td-cols .tick.x { fill: var(--ink-3); font-weight: 500; }
.td-cols .cap { fill: var(--ink); font: 650 12px var(--text); }
.td-cols .c-cur, .td-hb .c-cur { fill: var(--series1); }
.td-cols .c-prior { fill: var(--cmp); }
.td-cols .hit, .td-hb .hit { fill: transparent; }
@media (hover: hover) and (pointer: fine) { .td-cols .col:hover .hit, .td-hb .col:hover .hit { fill: var(--tint); } }
.hb { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hb li { display: grid; grid-template-columns: minmax(120px, 30%) minmax(0, 1fr); align-items: center; gap: 14px; min-height: 34px; padding: 0 6px; margin: 0 -6px; border-radius: 6px; }
@media (hover: hover) and (pointer: fine) { .hb li:hover { background: var(--tint); } }
.hb-name { font-size: 0.875rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hb-bar { flex: none; height: 12px; min-width: 3px; border-radius: 0 4px 4px 0; background: var(--series1); }
.hb-cell b { font-size: 0.875rem; font-weight: 650; white-space: nowrap; }
.hb-cell small { font-size: 0.75rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .hb li { grid-template-columns: 1fr; gap: 2px; padding: 6px; } }
/* ---- Atlas fixing the website (fix-views.ts, static/fixes.js) ----
   Motion follows Emil Kowalski's rules (.claude/skills/emil-design-eng): the dialog opens in
   220ms from scale(.97) with a strong ease-out, interruptible (a transition, not keyframes);
   only transform and opacity move; the progress bar moves linearly; a state change fades in
   from scale(.9) in 160ms; nothing loops except the working spinner; reduced motion keeps
   only the fades. */
.fx-start { display: inline-block; margin: 10px 0 4px; }
.fx-go { display: inline-flex; align-items: center; gap: 8px; transition: transform 160ms cubic-bezier(.23, 1, .32, 1); }
.fx-go:active { transform: scale(.97); }
.fx-spark { width: 8px; height: 8px; border-radius: 50%; background: var(--series1); box-shadow: 0 0 0 2px color-mix(in srgb, #fff 35%, transparent); }
.fx-on { display: flex; gap: 6px; align-items: flex-start; margin: 8px 0 0; font-size: 0.875rem; color: var(--good-ink); }
.fx-on .icon { width: 15px; height: 15px; flex: none; margin-top: 2px; }
dialog.fx { width: min(600px, calc(100vw - 32px)); max-height: min(720px, calc(100vh - 48px)); padding: 0; border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--sheet); color: var(--ink); box-shadow: var(--shadow-pop); overflow: hidden;
  opacity: 1; transform: none; transition: opacity 220ms cubic-bezier(.23, 1, .32, 1), transform 220ms cubic-bezier(.23, 1, .32, 1), overlay 220ms allow-discrete, display 220ms allow-discrete; }
@starting-style { dialog.fx[open] { opacity: 0; transform: scale(.97); } }
dialog.fx:not([open]) { opacity: 0; transform: scale(.97); transition-duration: 150ms; }
dialog.fx::backdrop { background: rgba(28, 27, 25, 0.32); }
.fx-in { display: flex; flex-direction: column; max-height: inherit; padding: 20px 22px 18px; gap: 14px; }
.fx-head { display: flex; align-items: flex-start; gap: 12px; }
.fx-head h2 { margin: 0; font: 640 1.125rem/1.25 var(--display); font-stretch: 92%; letter-spacing: -0.005em; }
.fx-kicker { margin: 0 0 3px; display: flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 600; color: var(--ink-3); }
.fx-x { margin-left: auto; flex: none; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); font-size: 1.25rem; line-height: 1; cursor: pointer; transition: transform 160ms cubic-bezier(.23, 1, .32, 1); }
.fx-x:active { transform: scale(.95); }
@media (hover: hover) and (pointer: fine) { .fx-x:hover { background: var(--tint); color: var(--ink); } }
.fx-orb { display: none; }
.fx-prog { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.fx-count { margin: 0; font: 640 1.75rem/1 var(--display); font-stretch: 92%; letter-spacing: -0.01em; }
.fx-count small { margin-left: 6px; font: 500 0.875rem/1 var(--text); color: var(--ink-3); letter-spacing: 0; }
.fx-bar { position: relative; height: 4px; border-radius: 2px; background: var(--rule); overflow: hidden; }
.fx-bar span { position: absolute; inset: 0; border-radius: inherit; background: var(--series1); transform: scaleX(0); transform-origin: left center; transition: transform 300ms linear; }
dialog.fx.is-done .fx-bar span { background: var(--good); }
.fx-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
dialog.fx .fx-list { overflow-y: auto; flex: 1; min-height: 0; }
.fx-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 11px 2px; border-bottom: 1px solid var(--rule-soft); }
.fx-lab { margin: 0; font-size: 0.875rem; font-weight: 560; line-height: 1.35; }
.fx-step { margin: 2px 0 0; font-size: 0.8125rem; color: var(--ink-3); line-height: 1.4; }
.fx-step a { color: inherit; }
.fx-row.is-working .fx-lab { color: var(--ink); }
.fx-row.is-queued .fx-lab { color: var(--ink-3); }
.fx-row.is-live .fx-step, .fx-row.is-done .fx-step { color: var(--good-ink); }
.fx-row.is-needs_you .fx-step { color: var(--warning-mark); }
.fx-row.is-failed .fx-step { color: var(--bad-ink); }
/* the state mark: a small ring waiting, a turning arc while working, then a filled mark with a tick, ! or × */
.fx-ic { position: relative; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--rule-strong); box-sizing: border-box; }
.fx-row.is-working .fx-ic { border: 2px solid var(--rule); border-top-color: var(--series1); animation: fx-turn 700ms linear infinite; }
@keyframes fx-turn { to { transform: rotate(360deg); } }
.fx-row.is-live .fx-ic, .fx-row.is-done .fx-ic { border: 0; background: var(--good); }
.fx-row.is-live .fx-ic::after, .fx-row.is-done .fx-ic::after { content: ""; position: absolute; left: 6.5px; top: 3.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.fx-row.is-needs_you .fx-ic { border: 0; background: color-mix(in srgb, var(--warning) 24%, transparent); }
.fx-row.is-needs_you .fx-ic::after { content: "!"; position: absolute; inset: 0; display: grid; place-items: center; font: 800 0.75rem/1 var(--text); color: var(--warning-mark); }
.fx-row.is-failed .fx-ic { border: 0; background: color-mix(in srgb, var(--critical) 16%, transparent); }
.fx-row.is-failed .fx-ic::after { content: "×"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 0.875rem/1 var(--text); color: var(--bad-ink); }
.fx-row.is-undone { opacity: .6; }
/* a state that just arrived fades in from scale(.9) (static/fixes.js, Web Animations API), never from nothing, no bounce */
.fx-how { margin: 6px 0 0; font-size: 0.8125rem; color: var(--ink-2); }
.fx-how summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.fx-how ol { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; line-height: 1.45; }
.fx-act { display: flex; gap: 6px; align-items: center; }
.fx-act form { margin: 0; }
.fx-foot { padding-top: 2px; }
.fx-foot > p:first-child { margin: 0; font-size: 0.9375rem; font-weight: 620; }
.fx-small { margin: 6px 0 0; font-size: 0.8125rem; color: var(--ink-3); line-height: 1.45; }
.fx-acts { display: flex; justify-content: flex-end; gap: 8px; margin: 14px 0 0; }
.fx-err { margin: 0; color: var(--bad-ink); font-size: 0.875rem; }
/* the fixes list on the SEO page */
.fx-t-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 8px; }
.fx-t-head h2 { margin: 0; }
.fx-t-figs { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.fx-t-figs dt { font-size: 0.75rem; color: var(--ink-3); }
.fx-t-figs dd { margin: 0; font: 640 1.375rem/1.15 var(--display); font-stretch: 92%; font-variant-numeric: tabular-nums; }
.fx-t-sub { margin: 18px 0 6px; font-size: 0.875rem; font-weight: 620; color: var(--ink-2); }
.fx-older summary { margin-top: 14px; cursor: pointer; font-size: 0.875rem; font-weight: 600; color: var(--ink-2); }
@media (max-width: 560px) { .fx-in { padding: 16px 16px 14px; } .fx-row { grid-template-columns: 20px minmax(0, 1fr); } .fx-act { grid-column: 2; } }
@media (prefers-reduced-motion: reduce) { dialog.fx, .fx-bar span { transition-property: opacity; } .fx-row.is-working .fx-ic { animation-duration: 1.6s; } .fx-go { transition: none; } }
.fx-eff { margin: 4px 0 0; font-size: 0.8125rem; font-weight: 560; font-variant-numeric: tabular-nums; }
.fx-eff.up { color: var(--good-ink); } .fx-eff.down { color: var(--bad-ink); } .fx-eff.early { color: var(--ink-3); font-weight: 400; }
/* Google's word on a fix (fix-google.ts): the state is in the words; the mark and ink only echo it */
.fx-goo { margin: 4px 0 0; font-size: 0.8125rem; line-height: 1.45; color: var(--ink-3); }
.fx-goo.is-confirmed { color: var(--good-ink); font-weight: 560; }
.fx-goo.is-problem, .fx-goo.is-missing { color: var(--bad-ink); font-weight: 560; }
.fx-goo.is-confirmed::before { content: "✓ "; }
.fx-goo.is-problem::before, .fx-goo.is-missing::before { content: "! "; font-weight: 800; }
.fx-google { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 4px 0 6px; }
.fx-google p { margin: 0; font-size: 0.8125rem; color: var(--ink-3); max-width: 62ch; }
.fx-google form { margin: 0; }
.fx-gain { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 4px; padding: 14px 16px; border-radius: var(--r-md); background: color-mix(in srgb, var(--series1) 6%, var(--sheet)); border: 1px solid color-mix(in srgb, var(--series1) 18%, var(--rule)); }
.fx-gain p { margin: 0; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }
.fx-gain b { color: var(--ink); }

/* ---- Atlas inside the Shopify admin (shopify-views.ts) ---- */
.sx-body { background: var(--paper); margin: 0; }
.sx { max-width: 980px; margin: 0 auto; padding: 28px 20px 48px; display: flex; flex-direction: column; gap: 20px; }
.sx-brand { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 640 1rem/1 var(--display); font-stretch: 92%; }
.sx-head h1 { margin: 14px 0 6px; font: 640 1.75rem/1.15 var(--display); font-stretch: 92%; letter-spacing: -0.012em; }
.sx-sub { margin: 0; max-width: 62ch; color: var(--ink-2); line-height: 1.5; }
.sx-sub b { color: var(--ink); }
.sx-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.sx-note { margin: 10px 0 0; font-size: 0.875rem; color: var(--ink-3); }
.sx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; align-items: start; }
.sx-card { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 16px 18px; }
.sx-card h2 { margin: 0 0 10px; font-size: 0.9375rem; font-weight: 620; }
.sx-card p { margin: 8px 0 0; color: var(--ink-2); font-size: 0.875rem; line-height: 1.45; }
.sx-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.sx-figs dt { font-size: 0.75rem; color: var(--ink-3); }
.sx-figs dd { margin: 2px 0 0; font: 640 1.25rem/1.15 var(--display); font-stretch: 92%; font-variant-numeric: tabular-nums; }
.sx-figs dd.sx-chg { font: 600 0.75rem/1.2 var(--text); color: var(--ink-3); }
.sx-chg.up { color: var(--good-ink) !important; } .sx-chg.down { color: var(--bad-ink) !important; }
.sx-ready { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 0.875rem; color: var(--ink-2); line-height: 1.4; }
.sx-ready li { display: flex; gap: 8px; align-items: flex-start; }
.sx-ready .db-orb { margin-top: 3px; }
.sx-boot { display: grid; place-items: center; gap: 8px; min-height: 60vh; color: var(--ink-2); text-align: center; }

/* the Shopify page's "why Atlas" and plans (9 Oct 2026): ruled, not boxed, like the figures strip;
   the plan you're on carries the highlighter */
.sx-why { margin-top: 12px; }
.sx-why h2, .sx-plans-head h2 { margin: 0; font: 640 1.375rem/1.2 var(--display); font-stretch: 92%; letter-spacing: -0.01em; text-wrap: balance; }
.sx-why ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.sx-why li { padding: 14px 18px 4px 0; }
.sx-why li + li { padding-left: 18px; border-left: 1px solid var(--rule); }
.sx-why h3 { margin: 0; font-size: 1rem; font-weight: 640; line-height: 1.3; text-wrap: balance; }
.sx-why p { margin: 6px 0 0; color: var(--ink-2); font-size: 0.875rem; line-height: 1.5; text-wrap: pretty; }
.sx-plans { margin-top: 8px; }
.sx-plans-head p { margin: 6px 0 0; max-width: 62ch; color: var(--ink-2); line-height: 1.5; }
.sx-plans-head b { color: var(--ink); }
.sx-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; background: var(--sheet); border: 1px solid var(--rule); border-top: 2px solid var(--ink); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.sx-tier { display: flex; flex-direction: column; padding: 18px 20px 20px; min-width: 0; }
.sx-tier + .sx-tier { border-left: 1px solid var(--rule); }
.sx-tier h3 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; font: 640 1.25rem/1.2 var(--display); font-stretch: 92%; }
.sx-tier.is-current h3 span { background: linear-gradient(transparent 55%, var(--mark-soft) 55%); padding: 0 2px; margin: 0 -2px; }
.sx-now, .sx-tag { font: 600 0.75rem/1 var(--text); font-style: normal; padding: 4px 8px; border-radius: 999px; }
.sx-now { background: var(--mark); color: #1b2238; }
.sx-tag { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
.sx-who { margin: 6px 0 0; font-size: 0.875rem; color: var(--ink-2); line-height: 1.45; min-height: 2.9em; }
.sx-price { margin: 12px 0 0; color: var(--ink-3); font-size: 0.875rem; }
.sx-price b { font: 640 2rem/1 var(--display); font-stretch: 92%; color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 4px; }
.sx-tier ul { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 9px; font-size: 0.875rem; line-height: 1.4; color: var(--ink-2); }
.sx-tier li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; align-items: start; }
.sx-tier li:first-child { color: var(--ink); font-weight: 600; }
.sx-tier li svg, .sx-on svg { width: 16px; height: 16px; margin-top: 1px; color: var(--good-ink); }
.sx-soon { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: 999px; border: 1px solid var(--rule); color: var(--ink-2); font-size: 0.75rem; font-style: normal; font-weight: 600; }
.sx-tier-cta { margin: auto 0 0; padding-top: 18px; }
.sx-tier-cta .btn { width: 100%; justify-content: center; min-height: 44px; }
.sx-on { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 0.875rem; font-weight: 600; color: var(--good-ink); }
.sx-fine { margin: 10px 0 0; max-width: 80ch; font-size: 0.8125rem; color: var(--ink-3); line-height: 1.5; }
@media (max-width: 760px) {
  .sx-why ol, .sx-tiers { grid-template-columns: minmax(0, 1fr); }
  .sx-why li, .sx-why li + li { padding: 14px 0 4px; border-left: 0; }
  .sx-why li + li { border-top: 1px solid var(--rule); }
  .sx-tier + .sx-tier { border-left: 0; border-top: 1px solid var(--rule); }
  .sx-who { min-height: 0; }
  .sx-tier.is-current { order: -1; border-top: 0 !important; }
  .sx-tier.is-current + .sx-tier { border-top: 1px solid var(--rule); }
}

/* ---- the month's pace on Sales (pace-gauge.ts, 9 Oct 2026): a meter, fill on a lighter step of its own ramp ---- */
.pace { margin-block: 20px; }
.pace-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.pace-head h2 { margin: 0; font-size: 1.125rem; }
.pace-head p { margin: 0; }
.pace-body { display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 24px 32px; align-items: center; }
.pace-fig { margin: 0; position: relative; }
.pg-dial { display: block; width: 100%; height: auto; overflow: visible; }
.pg-track { stroke: var(--series1-soft); }
.pg-fill.pg-on { stroke: var(--series1); }
.pg-fill.pg-behind { stroke: var(--warning); }
.pg-tick { stroke: var(--ink-2); }
.pg-needle line { stroke: var(--ink); }
.pg-needle circle { fill: var(--ink); }
.pg-end { font-size: 11px; fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.pace-fig figcaption { position: absolute; left: 0; right: 0; bottom: -2px; display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none; }
.pace-fig figcaption span { font-size: .8125rem; color: var(--ink-2); }
.pace-n { font-size: 1.75rem; font-weight: 680; line-height: 1; letter-spacing: -0.01em; color: var(--ink); background: var(--sheet); padding: 6px 10px 0; border-radius: 10px; }
.pace-fig { padding-bottom: 46px; }
.pace-fig figcaption { bottom: 0; }
.pace-verdict { margin: 0 0 12px; font-weight: 650; font-size: 1.0625rem; color: var(--ink); }
.pace-verdict::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 2px; background: var(--series1); }
.pace-verdict.pace-behind::before { background: var(--warning); }
.pace-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 0 0 12px; }
.pace-facts div { min-width: 0; }
.pace-facts dt { font-size: .8125rem; color: var(--ink-2); }
.pace-facts dd { margin: 2px 0 0; font-weight: 620; font-variant-numeric: tabular-nums; }
.pace-facts dd .quiet { font-weight: 400; font-size: .8125rem; }
@media (max-width: 640px) { .pace-body { grid-template-columns: 1fr; } .pace-fig { max-width: 300px; margin-inline: auto; } }

/* ---- Sales on one screen (sales-dash.ts, dash.js; 9 Oct 2026) ----
   One gap (14px) between every block, one inside padding (16px 18px), 18px corners with a hairline ring,
   labels and tile titles in the system face, figures in Bricolage. Fits 1440×900 with the menu open. */
.sd-headrow { display: grid; gap: 10px; margin-bottom: 14px; }
.sd-headrow .page-name { margin: 0; }
.sd-headrow .sd-h1 { margin: 0; font: 620 1.75rem/1.15 var(--display); font-stretch: 92%; font-variation-settings: "opsz" 48; letter-spacing: -0.015em; text-wrap: balance; max-width: 60ch; }
.sd-headrow .period-bar { position: static; margin: 0; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.sd { display: grid; gap: 14px; margin-bottom: 28px; }
.sd-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--sheet); border-radius: 18px; box-shadow: 0 0 0 1px var(--glass-line, var(--rule)); overflow: hidden; }
.sd-fig { display: grid; gap: 2px; align-content: start; min-width: 0; text-align: left; padding: 14px 16px 12px; border: 0; border-left: 1px solid var(--rule); background: transparent; color: var(--ink); font: inherit; cursor: pointer; transition: background-color .15s cubic-bezier(.23, 1, .32, 1); }
.sd-fig:first-child { border-left: 0; }
/* two rows of five (Ollie, 19 Oct 2026: conversion rate and ROAS joined the strip) */
.sd-fig:nth-child(5n+1) { border-left: 0; }
.sd-fig:nth-child(n+6) { border-top: 1px solid var(--rule); }
.sd-fl { font: 500 0.8125rem var(--ai-font); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-fv { font: 600 1.75rem/1.15 var(--display); font-stretch: 92%; font-variation-settings: "opsz" 32; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin: 2px 0; }
.sd-fc { display: flex; align-items: center; gap: 6px; min-width: 0; font: 400 0.78125rem var(--ai-font); color: var(--ink-3); white-space: nowrap; overflow: hidden; }
.sd-fc > span:last-child:not(.sd-chg) { overflow: hidden; text-overflow: ellipsis; }
.sd-chg { display: inline-flex; align-items: center; gap: 4px; font-weight: 650; flex: none; font-variant-numeric: tabular-nums; }
.sd-chg svg { width: 13px; height: 13px; flex: none; display: block; }
.sd-chg.up { color: var(--good-ink); } .sd-chg.down { color: var(--bad-ink); } .sd-chg.flat { color: var(--ink-2); }
.sd-spark { display: block; width: 100%; height: 22px; margin-top: 6px; overflow: visible; }
.sd-spark .now { fill: none; stroke: var(--series1); stroke-width: 1.75; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sd-spark .ly { fill: none; stroke: var(--cmp-line); stroke-width: 1.25; stroke-dasharray: 3 2; vector-effect: non-scaling-stroke; }

.sd-row { display: grid; gap: 14px; }
.sd-row2 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.sd-row3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.sd-tile { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 16px 18px; background: var(--sheet); border-radius: 18px; box-shadow: 0 0 0 1px var(--glass-line, var(--rule)); }
.sd-th { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 28px; }
.sd-th h2 { margin: 0; font: 650 1.0625rem var(--ai-display); letter-spacing: -0.018em; white-space: nowrap; }
.sd-sub { margin: 0; min-width: 0; font: 400 0.8125rem var(--ai-font); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-open { margin-left: auto; flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); cursor: pointer; transition: background-color .15s cubic-bezier(.23, 1, .32, 1), color .15s cubic-bezier(.23, 1, .32, 1), transform .12s cubic-bezier(.23, 1, .32, 1); }
.sd-open svg { width: 16px; height: 16px; }
.sd-open:active, .sd-seg button:active { transform: scale(.97); }
.sd-legend { display: flex; flex-wrap: nowrap; gap: 4px 14px; font: 500 0.75rem var(--ai-font); color: var(--ink-2); white-space: nowrap; flex: none; }
.sd-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.sd-legend i.k1 { background: var(--series1); } .sd-legend i.k0 { background: var(--cmp); }
.sd-legend i.kl { width: 14px; height: 2px; border-radius: 1px; vertical-align: 3px; background: var(--series1); }
.sd-legend i.kd { width: 14px; height: 0; border-radius: 0; vertical-align: 3px; border-top: 2px dashed var(--cmp-line); }
.sd-legend i.kt { width: 2px; height: 12px; border-radius: 1px; vertical-align: -2px; background: var(--ink-2); }
.sd-foot { margin-top: auto; padding-top: 2px; }
.sd-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 5%, transparent); flex: none; margin-left: auto; }
.sd-seg button { border: 0; background: transparent; padding: 4px 9px; border-radius: 7px; font: 520 0.75rem var(--ai-font); color: var(--ink-2); cursor: pointer; transition: background-color .15s cubic-bezier(.23, 1, .32, 1), color .15s cubic-bezier(.23, 1, .32, 1), transform .12s cubic-bezier(.23, 1, .32, 1); }
.sd-seg button[aria-pressed="true"] { background: var(--raised); color: var(--ink); font-weight: 650; box-shadow: 0 1px 2px rgba(28, 27, 25, .08), 0 0 0 .5px rgba(28, 27, 25, .08); }
.sd-rev .sd-open { margin-left: 0; }
.sd-rev[data-mode="day"] .sd-c-run, .sd-rev[data-mode="day"] .sd-l-run, .sd-rev[data-mode="run"] .sd-c-day, .sd-rev[data-mode="run"] .sd-l-day { display: none; }

.sd-chart { display: block; width: 100%; height: 196px; overflow: visible; }
.sd-chart text { font: 400 11px var(--ai-font); fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.sd-chart .grid { stroke: var(--rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sd-chart .base { stroke: var(--rule-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sd-chart .avg { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.sd-chart .b1 { fill: var(--series1); } .sd-chart .b0 { fill: var(--cmp); }
.sd-chart .b1, .sd-chart .b0, .sd-chart .dot { transition: opacity .15s cubic-bezier(.23, 1, .32, 1); }
.sd-chart .sd-col.dim .b1, .sd-chart .sd-col.dim .b0, .sd-chart .sd-col.dim .dot { opacity: .35; }
.sd-chart .lbl { fill: var(--ink); font-weight: 650; font-size: 11.5px; }
.sd-chart .lbl.ly { fill: var(--ink-2); font-weight: 500; }
.sd-chart .hit { fill: transparent; cursor: pointer; }
.sd-chart .run-now { fill: none; stroke: var(--series1); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.sd-chart .run-ly { fill: none; stroke: var(--cmp-line); stroke-width: 1.75; stroke-dasharray: 5 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.sd-chart .run-area { fill: var(--series1-soft); }
.sd-chart .dot { fill: var(--series1); stroke: var(--sheet); stroke-width: 2; }
.sd-chart .dot.ly { fill: var(--cmp-line); }

.sd-verdict { margin: 0; display: flex; align-items: center; gap: 8px; font: 650 0.875rem var(--ai-font); }
.sd-verdict::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--series1); flex: none; }
.sd-verdict.sd-v-behind::before { background: var(--warning); }
.sd-pace-b { flex: 1; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 18px; align-items: center; cursor: pointer; }
.sd-dial { display: grid; justify-items: center; }
.sd-dial svg { width: 150px; height: auto; display: block; overflow: visible; }
.sd-dial .pg-track { stroke: var(--series1-soft); } .sd-dial .pg-fill.pg-on { stroke: var(--series1); } .sd-dial .pg-fill.pg-behind { stroke: var(--warning); }
.sd-dial .pg-tick { stroke: var(--ink-2); } .sd-dial .pg-needle line { stroke: var(--ink); } .sd-dial .pg-needle circle { fill: var(--ink); }
.sd-dial .pg-end { font: 400 14px var(--ai-font); fill: var(--ink-3); }
.sd-dial b { font: 600 1.625rem/1 var(--display); font-stretch: 92%; letter-spacing: -0.02em; margin-top: -4px; font-variant-numeric: tabular-nums; }
.sd-dial span { font: 400 0.75rem var(--ai-font); color: var(--ink-2); text-align: center; }
.sd-facts { display: grid; gap: 6px; margin: 0; font-family: var(--ai-font); }
.sd-facts div { display: flex; justify-content: space-between; gap: 8px; font-size: 0.8125rem; padding-bottom: 5px; border-bottom: 1px solid var(--rule-soft); }
.sd-facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.sd-facts dt { color: var(--ink-2); } .sd-facts dd { margin: 0; font-weight: 620; font-variant-numeric: tabular-nums; }

.sd-bl { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sd-bl li { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 0 -6px; padding: 4px 6px; border-radius: 6px; font: 400 0.8125rem var(--ai-font); cursor: pointer; transition: background-color .15s cubic-bezier(.23, 1, .32, 1); }
.sd-bl .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-bl .t { position: relative; height: 12px; }
.sd-bl .t b { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--series1); border-radius: 0 4px 4px 0; }
.sd-bl .t s { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--ink-2); border-radius: 1px; }
.sd-bl .v { text-align: right; font-weight: 620; font-variant-numeric: tabular-nums; min-width: 2.2em; }
.sd-empty { margin: 0; font: 400 0.8125rem var(--ai-font); color: var(--ink-3); }

.sd-say { margin: 0; font: 650 0.875rem var(--ai-font); letter-spacing: -0.01em; }
.sd-ringrow { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; }
.sd-ring { width: 96px; height: 96px; display: block; }
.sd-ring .trk { stroke: var(--tint); }
.sd-ring .rt { font: 600 17px var(--display); font-stretch: 92%; fill: var(--ink); text-anchor: middle; letter-spacing: -0.02em; }
.sd-ring .rs { font: 500 8.5px var(--ai-font); fill: var(--ink-3); text-anchor: middle; }
.sd-ring .t1 { stroke: var(--series1); } .sd-ring .t2 { stroke: var(--series2); } .sd-ring .t3 { stroke: var(--series3); } .sd-ring .t4 { stroke: var(--series4); }
.sd-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sd-parts li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; margin: 0 -8px; padding: 6px 8px; border-radius: 10px; font: 400 0.8125rem var(--ai-font); cursor: pointer; transition: background-color .15s cubic-bezier(.23, 1, .32, 1); }
.sd-parts li i { width: 10px; height: 10px; border-radius: 50%; }
.sd-parts li i.t1 { background: var(--series1); } .sd-parts li i.t2 { background: var(--series2); } .sd-parts li i.t3 { background: var(--series3); } .sd-parts li i.t4 { background: var(--series4); }
.sd-parts b { font-weight: 620; } .sd-parts small { display: block; color: var(--ink-3); font-size: 0.75rem; }
.sd-parts .m { text-align: right; font-variant-numeric: tabular-nums; }
.sd-parts .m .sd-chg { display: flex; justify-content: flex-end; font-size: 0.75rem; }

@media (hover: hover) and (pointer: fine) {
  .sd-fig:hover, .sd-bl li:hover, .sd-parts li:hover { background: var(--tint); }
  .sd-open:hover { background: var(--tint); color: var(--ink); }
  .sd-seg button:not([aria-pressed="true"]):hover { color: var(--ink); }
}
.sd-fig:focus-visible, .sd-bl li:focus-visible, .sd-parts li:focus-visible, .sd-open:focus-visible, .sd-seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.sd-tip { position: fixed; z-index: 60; pointer-events: none; max-width: 260px; padding: 9px 11px; border-radius: 10px; background: var(--raised); color: var(--ink); box-shadow: var(--shadow-pop); font: 400 0.78125rem/1.45 var(--ai-font); opacity: 0; transform: translateY(4px); transition: opacity .12s cubic-bezier(.23, 1, .32, 1), transform .12s cubic-bezier(.23, 1, .32, 1); }
.sd-tip.on { opacity: 1; transform: translateY(0); }
.sd-tip b { display: block; font-size: 0.8125rem; margin-bottom: 2px; }
.sd-tip .r { display: flex; justify-content: space-between; gap: 14px; font-variant-numeric: tabular-nums; }
.sd-tip .r span { color: var(--ink-2); }
.sd-tip .n { margin-top: 4px; color: var(--ink-3); font-size: 0.71875rem; }

.sd-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(12, 12, 11, .28); opacity: 0; transition: opacity .2s cubic-bezier(.23, 1, .32, 1); }
.sd-scrim.on { opacity: 1; }
.sd-panel { position: fixed; z-index: 71; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); background: var(--sheet); box-shadow: var(--shadow-pop); transform: translateX(100%); transition: transform .24s cubic-bezier(.23, 1, .32, 1); }
.sd-panel.on { transform: translateX(0); }
.sd-panel.closing { transition-duration: .18s; }
.sd-ph { display: flex; align-items: center; gap: 10px; padding: 16px 18px 12px; border-bottom: 1px solid var(--rule); }
.sd-ph h2 { margin: 0; font: 650 1.25rem var(--ai-display); letter-spacing: -0.018em; }
.sd-ph button { margin-left: auto; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--tint); color: var(--ink); cursor: pointer; transition: transform .12s cubic-bezier(.23, 1, .32, 1); }
.sd-ph button:active { transform: scale(.97); }
.sd-pb { display: grid; gap: 14px; align-content: start; padding: 16px 18px calc(24px + env(safe-area-inset-bottom, 0px)); overflow: auto; font-family: var(--ai-font); }
.sd-pb p { margin: 0; color: var(--ink-2); font-size: 0.875rem; }
.sd-pb a { color: var(--accent); font-weight: 600; text-decoration: none; }
.sd-lead { font: 600 2.25rem/1 var(--display); font-stretch: 92%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sd-h3 { margin: 4px 0 0; font: 650 0.9375rem var(--ai-display); }
.sd-what { font-size: 0.8125rem !important; color: var(--ink-3) !important; }
.sd-t { width: 100%; border-collapse: collapse; font-size: 0.84375rem; font-variant-numeric: tabular-nums; }
.sd-t th { text-align: left; font-weight: 500; color: var(--ink-3); font-size: 0.78125rem; padding: 6px 0; border-bottom: 1px solid var(--rule-strong); }
.sd-t td { padding: 7px 0; border-bottom: 1px solid var(--rule-soft); }
.sd-t th:not(:first-child), .sd-t td:not(:first-child) { text-align: right; padding-left: 10px; }
.sd-t .sd-total td { font-weight: 650; border-bottom: 0; }
html.sd-locked { overflow: hidden; }

@media (max-width: 1240px) {
  .sd-row2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .sd-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sd-fig { border-left: 0 !important; border-top: 1px solid var(--rule); }
  .sd-fig:nth-child(-n+2) { border-top: 0; }
  .sd-fig:nth-child(even) { border-left: 1px solid var(--rule) !important; }
  .sd-pace-b { grid-template-columns: 1fr; justify-items: center; }
  .sd-th { flex-wrap: wrap; }
  .sd-rev .sd-legend { order: 5; }
}
@media (prefers-reduced-motion: reduce) {
  .sd-panel { transform: none; opacity: 0; transition: opacity .12s linear; }
  .sd-panel.on { opacity: 1; }
  .sd-tip { transform: none; }
}
/* the dashboard's own controls: none of the app's default button look, no section margins */
.sd section, .sd-headrow { margin-bottom: 0; }
.sd button { min-height: 0; box-shadow: none; line-height: 1.2; justify-content: flex-start; }
.sd button:active { opacity: 1; }
.sd .sd-fig { display: grid; justify-content: stretch; border-radius: 0; background: transparent; color: var(--ink); padding: 14px 16px 12px; height: auto; }
.sd .sd-open { justify-content: center; background: transparent; color: var(--ink-3); padding: 0; width: 28px; height: 28px; border-radius: 8px; }
.sd .sd-seg button { background: transparent; color: var(--ink-2); padding: 4px 9px; border-radius: 7px; }
.sd .sd-seg button[aria-pressed="true"] { background: var(--raised); color: var(--ink); box-shadow: 0 1px 2px rgba(28, 27, 25, .08), 0 0 0 .5px rgba(28, 27, 25, .08); }
.sd .sd-ph button { justify-content: center; padding: 0; background: var(--tint); color: var(--ink); }
.sd .ai-chip { min-height: 32px; }
@media (hover: hover) and (pointer: fine) {
  .sd .sd-fig:hover { background: var(--tint); }
  .sd .sd-open:hover { background: var(--tint); color: var(--ink); }
  .sd .sd-seg button:not([aria-pressed="true"]):hover { background: transparent; color: var(--ink); }
  .sd .sd-ph button:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); }
}
.sd-fc { flex-wrap: wrap; row-gap: 0; }
.sd-facts dt { white-space: nowrap; }
.sd-headrow { margin-bottom: 14px; }
.sd .ai-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--raised); color: var(--ink); box-shadow: 0 0 0 1px var(--glass-line, var(--rule)), var(--shadow-sm); font: 600 0.8125rem var(--ai-font); }
.sd-fc { flex-direction: column; align-items: flex-start; gap: 1px; }
/* the Sales panels' lists: products, customers and orders */
.sd-pn { display: block; }
.sd-sku { display: block; color: var(--ink-3); font-size: 0.75rem; }
.sd-items { max-width: 13em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.sd-people { list-style: none; margin: 0; padding: 0; display: grid; }
.sd-people li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule-soft); font-size: 0.84375rem; }
.sd-people li:last-child { border-bottom: 0; }
.sd-people b { font-weight: 620; }
.sd-people small { display: block; color: var(--ink-3); font-size: 0.75rem; margin-top: 1px; }
.sd-people .m { text-align: right; font-variant-numeric: tabular-nums; flex: none; }
.sd-badge { font-weight: 600; }
.sd-badge.new, .sd-badge.ret { color: var(--ink-2); }

/* a button that reads as a link, inside a sentence (Your account: "Email me a reset link", 9 Oct 2026) */
button.link-like { all: unset; display: inline; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font: inherit; }
button.link-like:hover { color: var(--ink); }
button.link-like:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.acct-forgot { margin: 6px 0 4px; }

/* ---- SEO on one screen (seo-dash.ts; 9 Oct 2026) ----
   The Sales dashboard's parts (sd-*), plus the tabs under the headline, this week's plan, the
   rank bands as one stacked bar and the site check's top fixes. */
.seo-tabs { display: flex; gap: 2px; padding: 3px; margin: 0 0 14px; width: max-content; max-width: 100%; overflow-x: auto; border-radius: 12px; background: color-mix(in srgb, var(--ink) 5%, transparent); scrollbar-width: none; }
.seo-tabs::-webkit-scrollbar { display: none; }
.seo-tabs a { flex: none; padding: 7px 14px; border-radius: 9px; font: 520 0.84375rem var(--ai-font); color: var(--ink-2); text-decoration: none; transition: background-color .15s cubic-bezier(.23, 1, .32, 1), color .15s cubic-bezier(.23, 1, .32, 1); }
.seo-tabs a[aria-current="page"] { background: var(--raised); color: var(--ink); font-weight: 650; box-shadow: 0 1px 2px rgba(28, 27, 25, .08), 0 0 0 .5px rgba(28, 27, 25, .08); }
.seo-tabs a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.seo-note { margin: -6px 0 14px; max-width: 80ch; font: 400 0.875rem/1.45 var(--ai-font); color: var(--ink-2); }
.seo-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (min-width: 1241px) { .seo-strip:has(> .sd-fig:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.seo-row4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sd-more { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 2px; font: 520 0.78125rem var(--ai-font); color: var(--ink-2); text-decoration: none; padding: 4px 6px; border-radius: 8px; }
.sd-more svg { width: 12px; height: 12px; }
.sd-bl a.n { color: inherit; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seo-dash .sd-bl li { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) auto; }
.seo-pl { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.seo-pl a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "q g" "n g"; gap: 1px 12px; align-items: center; margin: 0 -8px; padding: 7px 8px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.seo-pl .q { grid-area: q; font: 620 0.875rem var(--ai-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seo-pl .n { grid-area: n; font: 400 0.78125rem var(--ai-font); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seo-pl .g { grid-area: g; text-align: right; font-variant-numeric: tabular-nums; }
.seo-pl .g b { display: block; font: 600 1.0625rem/1.1 var(--display); font-stretch: 92%; color: var(--good-ink); }
.seo-pl .g small { font: 400 0.6875rem var(--ai-font); color: var(--ink-3); }
.seo-stack { display: flex; gap: 3px; height: 12px; margin: 2px 0 4px; }
.seo-stack i { display: block; height: 100%; min-width: 3px; border-radius: 4px; }
.seo-stack i.t1 { background: var(--series1); } .seo-stack i.t2 { background: var(--series2); } .seo-stack i.t3 { background: var(--series3); } .seo-stack i.t4 { background: var(--series4); }
/* where you rank: what moved (seo-dash.ts rankTile and its panel) */
.seo-rk-c { display: flex; align-items: center; gap: 6px; margin: -2px 0 2px; font: 400 0.78125rem var(--ai-font); color: var(--ink-3); }
.seo-lead { list-style: none; margin: 4px 0 0; padding: 8px 0 0; border-top: 1px solid var(--rule-soft); display: grid; gap: 6px; }
.seo-lead li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; font: 400 0.8125rem var(--ai-font); }
.seo-lead .w { grid-column: 1 / -1; font-size: 0.75rem; color: var(--ink-3); }
.seo-lead a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; text-decoration: none; }
.seo-lead a:hover { text-decoration: underline; }
.seo-mv { font-variant-numeric: tabular-nums; color: var(--ink-3); white-space: nowrap; } .seo-mv b { color: var(--ink); font-weight: 620; }
.seo-moves { list-style: none; margin: 0 0 8px; padding: 0; }
.seo-moves li { display: grid; grid-template-columns: minmax(0, 1fr) auto 5.5rem; align-items: center; gap: 10px; min-height: 44px; border-bottom: 1px solid var(--rule-soft); font: 400 0.875rem var(--ai-font); }
.seo-moves li a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; }
.seo-moves .sd-chg { justify-self: end; }
.seo-moves-p li { grid-template-columns: minmax(0, 1fr) auto 4rem; padding: 4px 0; }
.seo-moves-p .seo-mv { display: grid; justify-items: end; } .seo-moves-p .seo-mv > span { white-space: nowrap; } .seo-mv small { font-size: 0.75rem; color: var(--ink-3); }
.seo-why { margin: 0 0 8px; padding-left: 1.1rem; display: grid; gap: 6px; font-size: 0.875rem; }
.seo-fixes { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; min-width: 0; }
.seo-fixes li { display: flex; justify-content: space-between; gap: 10px; font: 400 0.8125rem var(--ai-font); }
.seo-fixes li { min-width: 0; }
.seo-fixes li span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seo-fixes b { margin-left: auto; font-weight: 620; font-variant-numeric: tabular-nums; }
.seo-oneday .sd-say { font-size: 1rem; }
.seo-view > * + * { margin-top: 18px; }
@media (hover: hover) and (pointer: fine) {
  .seo-tabs a:not([aria-current="page"]):hover { color: var(--ink); }
  .seo-pl a:hover, .sd-more:hover { background: var(--tint); color: var(--ink); }
}
@media (max-width: 1240px) {
  .seo-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seo-strip .sd-fig:nth-child(4) { border-left: 0; }
  .seo-strip .sd-fig:nth-child(5) { border-left: 1px solid var(--rule); }
  .seo-strip .sd-fig:nth-child(n+4) { border-top: 1px solid var(--rule); }
  .seo-row4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .seo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-strip .sd-fig:nth-child(n) { border-left: 0; border-top: 1px solid var(--rule); }
  .seo-strip .sd-fig:nth-child(-n+2) { border-top: 0; }
  .seo-strip .sd-fig:nth-child(even) { border-left: 1px solid var(--rule); }
  .seo-row4 { grid-template-columns: 1fr; }
}
/* the headline band never pushes past a phone's width (Sales and SEO) */
.sd-headrow { min-width: 0; grid-template-columns: minmax(0, 1fr); }
.sd-headrow > * { min-width: 0; max-width: 100%; }
@media (max-width: 720px) { .sd-headrow .pbar-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; } }

/* ---- moving between pages (nav.js, 9 Oct 2026) ----
   A pressed link answers at once (scale .97, 120ms); a page that takes a moment shows its shape. */
.side a, .pbar-seg a, .pbar-arr, .sd-strip, .db a { -webkit-tap-highlight-color: transparent; }
.side a, .pbar-seg a, .pbar-arr { transition: transform .12s cubic-bezier(.23, 1, .32, 1), background-color .15s cubic-bezier(.23, 1, .32, 1), color .15s cubic-bezier(.23, 1, .32, 1); }
.side a:active, .pbar-seg a:active, .pbar-arr:active, .mob-tabs a:active, .db-card:active { transform: scale(.97); }
html.nav-wait main.main > :not(.nav-skel) { display: none; }
.nav-skel { display: grid; gap: 14px; padding-top: 6px; animation: nsk-in .18s cubic-bezier(.23, 1, .32, 1) both; }
.nsk { background: color-mix(in srgb, var(--ink) 6%, transparent); border-radius: 10px; }
.nsk-head { display: grid; gap: 10px; background: none; margin-bottom: 4px; }
.nsk-line { height: 14px; } .nsk-line.s { width: 80px; } .nsk-line.l { height: 30px; width: min(560px, 80%); } .nsk-line.m { height: 34px; width: min(620px, 90%); border-radius: 12px; }
.nsk-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; height: 112px; border-radius: 18px; overflow: hidden; background: none; }
.nsk-fig { border-radius: 0; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.nsk-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; background: none; }
.nsk-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nsk-tile { height: 190px; border-radius: 18px; background: color-mix(in srgb, var(--ink) 5%, transparent); }
.nsk-tile.big { height: 250px; } .nsk-row:not(.three) .nsk-tile:not(.big) { height: 250px; }
.nsk-fig, .nsk-tile, .nsk-line { animation: nsk-pulse 1.4s ease-in-out infinite; }
@keyframes nsk-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes nsk-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (max-width: 720px) { .nsk-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); height: 230px; } .nsk-row, .nsk-row.three { grid-template-columns: 1fr; } .nsk-tile.big { height: 200px; } }
@media (prefers-reduced-motion: reduce) { .nav-skel, .nsk-fig, .nsk-tile, .nsk-line { animation: none; } }
.nsk-slow { margin: 0; padding: 12px 14px; border-radius: var(--r-md); background: var(--sheet); box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink); font-size: 0.9375rem; }
/* Ask Atlas about the market's figures (market-views.ts, 9 Oct 2026) */
.mk-askrow { margin: -10px 0 22px; }
/* the Website page's site switcher (several stores' websites) */
.sv-sites { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; }
.sv-sites .pbar-seg a { gap: 2px; }
.sv-site-n { margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: var(--tint); font-weight: 650; font-variant-numeric: tabular-nums; }

/* Settings → Emails (118): what you stopped, and each email's preview */
.email-stops { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); }
.email-stops h3 { margin: 0 0 4px; }
.email-stops-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.email-stops-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.email-previews { list-style: none; margin: 0; padding: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); }
.email-previews li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; }
.email-previews li + li { border-top: 1px solid var(--rule); }
.email-previews h2 { margin: 0 0 2px; font-size: 1rem; }
.email-previews p { margin: 0; color: var(--ink-2); }
.email-preview-acts { display: flex; gap: 8px; flex: none; }
.email-preview-acts form { margin: 0; }
@media (max-width: 640px) { .email-previews li { flex-direction: column; align-items: stretch; padding: 16px; } .email-preview-acts { flex-wrap: wrap; } }

/* Sales → Attribution: each channel keeps its series colour (dataviz: colour follows the entity) */
.att-models { margin: 0 0 8px; }
.att-says { margin: 0 0 16px; color: var(--ink-2); max-width: 70ch; }
.att-bar { margin: 0 0 10px; }
.att-bar svg { display: block; width: 100%; height: 36px; }
.att-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; padding: 0; font-size: 0.875rem; color: var(--ink-2); }
.att-legend strong { color: var(--ink); font-weight: 650; margin-left: 2px; }
.att-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: 0; }
rect.att-s1 { fill: var(--series1); } rect.att-s2 { fill: var(--series2); } rect.att-s3 { fill: var(--series3); } rect.att-s4 { fill: var(--series4); }
rect.att-s5 { fill: var(--series5); } rect.att-s6 { fill: var(--series6); } rect.att-s7 { fill: var(--series7); } rect.att-s8 { fill: var(--series8); } rect.att-s0 { fill: var(--ink-3); opacity: 0.45; }
span.att-s1 { background: var(--series1); } span.att-s2 { background: var(--series2); } span.att-s3 { background: var(--series3); } span.att-s4 { background: var(--series4); }
span.att-s5 { background: var(--series5); } span.att-s6 { background: var(--series6); } span.att-s7 { background: var(--series7); } span.att-s8 { background: var(--series8); } span.att-s0 { background: var(--ink-3); opacity: 0.45; }
.att-t .sub { display: block; font-size: 0.8125rem; color: var(--ink-3); font-weight: 400; }
.att-t td.att-shift { white-space: normal; min-width: 260px; max-width: 460px; }
.att-shift strong { display: block; }
.att-shift span { display: block; color: var(--ink-2); font-size: 0.875rem; margin-top: 2px; }
.att-flags .callout { margin-bottom: 12px; }
.att-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 6px 0 28px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.att-figs > div { padding: 14px 16px 14px 0; }
.att-figs > div + div { padding-left: 16px; border-left: 1px solid var(--rule); }
.att-figs dt { font-size: 0.875rem; color: var(--ink-2); }
.att-figs dd { margin: 4px 0 0; font-family: var(--display); font-size: 1.625rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.att-figs dd.sub { font-family: inherit; font-size: 0.8125rem; font-weight: 400; color: var(--ink-3); margin-top: 2px; }
@media (max-width: 640px) { .att-figs { grid-template-columns: 1fr; } .att-figs > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); } }

/* ---- Ads (ads-dash.ts, static/paid.js, 11 Oct 2026) ----
   Built on the Sales/SEO dashboard (.sd). One authored moment: the health check settles row by row
   the first time each session. Everything else answers the owner's hand: the budget dot follows the
   slider, presets glide, panels slide. Status always carries a drawn mark and a word. */
.ac-tabs a { display: inline-flex; align-items: center; gap: 6px; }
.ac-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: color-mix(in srgb, var(--serious) 18%, transparent); color: var(--ink); font: 650 0.6875rem/1 var(--ai-font); font-variant-numeric: tabular-nums; }
.ac-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (min-width: 1241px) { .ac-strip:has(> .sd-fig:nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* status: a drawn mark plus a word, never colour alone */
.ac-mark { display: grid; place-items: center; width: 22px; height: 22px; flex: none; position: relative; }
.ac-mark svg { width: 20px; height: 20px; display: block; }
.ac-mark.s-act, .ac-st.s-act { color: var(--serious); }
.ac-mark.s-watch, .ac-st.s-watch { color: var(--warning-mark); }
.ac-mark.s-good, .ac-st.s-good { color: var(--good-ink); }
.ac-mark.s-wait, .ac-st.s-wait { color: var(--ink-3); }
.ac-st { flex: none; padding: 3px 9px; border-radius: 999px; font: 620 0.75rem var(--ai-font); white-space: nowrap; background: color-mix(in srgb, currentColor 11%, transparent); }
.ac-st.s-act { color: var(--bad-ink); background: linear-gradient(var(--mark-soft), var(--mark-soft)) no-repeat 0 0 / 100% 100%; }

/* the checklist */
.ac-checks { list-style: none; margin: 0; padding: 0; display: grid; }
.ac-chk { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 14px; align-items: center; gap: 12px; margin: 0 -10px; padding: 10px; border-radius: 12px; border-top: 1px solid var(--rule-soft); cursor: pointer; transition: background-color .15s cubic-bezier(.23, 1, .32, 1); }
.ac-chk:first-child { border-top-color: transparent; }
.ac-chk > svg { width: 14px; height: 14px; color: var(--ink-3); }
.ac-chk-t { display: grid; gap: 1px; min-width: 0; }
.ac-q { font: 620 0.875rem/1.3 var(--ai-font); color: var(--ink); }
.ac-a { font: 400 0.8125rem/1.4 var(--ai-font); color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ac-chk:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .ac-chk:hover { background: var(--tint); } .ac-chk:hover > svg { color: var(--ink); } }
/* the run: before a row settles, its mark is a turning ring and its answer waits */
.ac-chk .ac-mark svg, .ac-chk .ac-a, .ac-chk .ac-st { transition: opacity .24s cubic-bezier(.23, 1, .32, 1), transform .24s cubic-bezier(.23, 1, .32, 1); }
.ac-checks.running .ac-chk:not(.done) .ac-mark svg { opacity: 0; transform: scale(.55); }
.ac-checks.running .ac-chk:not(.done) .ac-a { opacity: .25; transform: translateY(2px); }
.ac-checks.running .ac-chk:not(.done) .ac-st { opacity: 0; transform: translateX(-4px); }
.ac-checks.running .ac-chk:not(.done) .ac-mark::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 1.6px solid var(--rule-strong); border-top-color: var(--accent); animation: ac-turn .7s linear infinite; }
.ac-checks.running .ac-chk.done.s-act .ac-st { animation: ac-mark .42s cubic-bezier(.23, 1, .32, 1) both; }
@keyframes ac-turn { to { transform: rotate(360deg); } }
@keyframes ac-mark { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }

/* do this week */
.ac-td { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ac-td button { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; width: calc(100% + 16px); margin: 0 -8px; padding: 8px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; font: inherit; cursor: pointer; transition: background-color .15s cubic-bezier(.23, 1, .32, 1); }
.ac-td b { display: block; font: 620 0.84375rem/1.35 var(--ai-font); }
.ac-td small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 400 0.78125rem/1.4 var(--ai-font); color: var(--ink-3); margin-top: 2px; }
.ac-td button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .ac-td button:hover { background: var(--tint); } }
.ac-next { margin: 0; font: 400 0.84375rem/1.45 var(--ai-font); color: var(--ink-2); } .ac-next b { color: var(--ink); }

/* a check in full (panel and Health check tab) */
.ac-say { margin: 0; font: 400 0.9375rem/1.5 var(--ai-font); color: var(--ink) !important; max-width: 68ch; }
.ac-worth { margin: 0; font: 400 0.84375rem var(--ai-font); color: var(--ink-2); }
.ac-worth strong { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.ac-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; font: 400 0.875rem/1.5 var(--ai-font); color: var(--ink); max-width: 68ch; }
.ac-steps li::marker { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ac-healthview .ac-health-full { gap: 10px; }
.ac-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }
.ac-open { gap: 12px; }
.ac-open .sd-th h2 { white-space: normal; font-size: 1rem; flex: 1; min-width: 0; }

/* copy lists */
.ac-copy { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--tint); }
.ac-copy-h { display: flex; align-items: center; gap: 8px; font: 620 0.8125rem var(--ai-font); }
.ac-copy-h > span:first-child { margin-right: auto; }
.ac-copy-b { min-height: 30px !important; padding: 4px 12px; border: 0; border-radius: 999px; background: var(--raised); color: var(--ink); font: 620 0.78125rem var(--ai-font); cursor: pointer; box-shadow: 0 0 0 1px var(--rule) !important; transition: transform .12s cubic-bezier(.23, 1, .32, 1), background-color .15s cubic-bezier(.23, 1, .32, 1); }
.ac-copy-b:active { transform: scale(.97); }
.ac-copy-b.copied { background: color-mix(in srgb, var(--good) 16%, var(--raised)); }
.ac-copy-b:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ac-copied { font: 500 0.75rem var(--ai-font); color: var(--good-ink); }
.ac-words { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; max-height: 180px; overflow: auto; }
.ac-words li { padding: 3px 9px; border-radius: 7px; background: var(--raised); box-shadow: 0 0 0 1px var(--rule); font: 400 0.8125rem/1.4 var(--ai-font); color: var(--ink); }

/* spend chart */
.ac .sd-chart .ac-s1, .ac-k.ac-s1 { fill: var(--series1); background: var(--series1); }
.ac .sd-chart .ac-s2, .ac-k.ac-s2 { fill: var(--series2); background: var(--series2); }
.ac .sd-chart .ac-s3, .ac-k.ac-s3 { fill: var(--series3); background: var(--series3); }
.ac .sd-chart .ac-s4, .ac-k.ac-s4 { fill: var(--series4); background: var(--series4); }
.ac .sd-chart .ac-s7, .ac-k.ac-s7 { fill: var(--series7); background: var(--series7); }
.ac .sd-chart .ac-s8, .ac-k.ac-s8 { fill: var(--series8); background: var(--series8); }
.ac .sd-chart rect[class^="ac-s"] { transition: opacity .15s cubic-bezier(.23, 1, .32, 1); }
.ac .sd-chart .sd-col.dim rect[class^="ac-s"] { opacity: .35; }
.sd-legend i.ac-k.proj { background: repeating-linear-gradient(135deg, var(--series1) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1px var(--series1); }

/* the budget slider */
.ac-slide { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 12px; }
.ac-slide-l { font: 500 0.8125rem var(--ai-font); color: var(--ink-2); }
.ac-slide-v { justify-self: end; font: 600 1.75rem/1.1 var(--display); font-stretch: 92%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ac-slide input[type="range"] { grid-column: 1 / -1; width: 100%; height: 32px; margin: 2px 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; box-shadow: none; padding: 0; border: 0; min-height: 0; }
.ac-slide input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 10%, transparent); }
.ac-slide input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 10%, transparent); }
.ac-slide input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--raised); border: 0; box-shadow: 0 0 0 2px var(--series1), 0 2px 6px rgba(28, 27, 25, .18); transition: transform .12s cubic-bezier(.23, 1, .32, 1); }
.ac-slide input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--raised); border: 2px solid var(--series1); box-shadow: 0 2px 6px rgba(28, 27, 25, .18); }
.ac-slide input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.08); }
.ac-slide input[type="range"]:focus-visible { outline: none; }
.ac-slide input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--series1), 0 0 0 6px var(--ring); }
.ac-slide input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--ring); }
.ac-presets { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.ac-presets button { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 11px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--ink) 5%, transparent); color: var(--ink-2); font: 560 0.78125rem var(--ai-font); cursor: pointer; transition: background-color .15s cubic-bezier(.23, 1, .32, 1), color .15s cubic-bezier(.23, 1, .32, 1), transform .12s cubic-bezier(.23, 1, .32, 1); }
.ac-presets button span { font-variant-numeric: tabular-nums; color: var(--ink-3); font-weight: 500; }
.ac-presets button[aria-pressed="true"] { background: var(--raised); color: var(--ink); box-shadow: 0 0 0 1px var(--rule-strong) !important; }
.ac-presets button:active { transform: scale(.97); }
.ac-presets button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .ac-presets button:not([aria-pressed="true"]):hover { color: var(--ink); } }
.ac-read { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--rule); }
.ac-read.big { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ac-read div { padding: 10px 12px 2px 0; display: grid; gap: 2px; align-content: start; }
.ac-read div + div { padding-left: 12px; border-left: 1px solid var(--rule-soft); }
.ac-read dt { font: 500 0.75rem var(--ai-font); color: var(--ink-2); white-space: nowrap; }
.ac-read dd { margin: 0; font: 600 1.25rem/1.15 var(--display); font-stretch: 92%; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.ac-read.big dd { font-size: 1.5rem; }
.ac-read dd.good { color: var(--good-ink); } .ac-read dd.bad { color: var(--bad-ink); }
.ac-read dd.ac-vs { font: 500 0.75rem var(--ai-font); color: var(--ink-3); letter-spacing: 0; }
.ac-mini { gap: 12px; }
.ac-planner { gap: 14px; }
.ac-fig { margin: 0; display: grid; gap: 4px; }
.ac-fig figcaption { font: 600 0.8125rem var(--ai-font); color: var(--ink-2); }
.ac-curve { height: auto; aspect-ratio: 720 / 200; }
.ac-curve[data-ac-chart="profit"] { aspect-ratio: 720 / 170; }
.ac-curve .ac-line { fill: none; stroke: var(--series1); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ac-curve .ac-area { fill: var(--series1-soft); }
.ac-curve .ac-now { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.ac-curve .ac-best { stroke: var(--good-ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.ac-curve .ac-lim { stroke: var(--bad-ink); stroke-width: 1; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.ac-curve .ac-ml { font-size: 11px; font-weight: 600; }
.ac-curve .ac-ml.now { fill: var(--ink-2); } .ac-curve .ac-ml.best { fill: var(--good-ink); } .ac-curve .ac-ml.lim { fill: var(--bad-ink); }
.ac-curve .ac-dot { fill: var(--series1); stroke: var(--sheet); stroke-width: 3; }

/* the month's pace */
.ac-month { gap: 10px; }
.ac-pace { position: relative; height: 14px; border-radius: 7px; background: color-mix(in srgb, var(--ink) 7%, transparent); margin: 6px 0 2px; }
.ac-pace b, .ac-pace i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 7px; }
.ac-pace i { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--series1) 55%, transparent) 0 3px, transparent 3px 6px); }
.ac-pace b { background: var(--series1); z-index: 1; }
.ac-pace s { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink); z-index: 2; }
.ac-bform { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--rule); }
.ac-bform label { flex-basis: 100%; font: 500 0.8125rem var(--ai-font); color: var(--ink-2); }
.ac-money { display: inline-flex; align-items: center; gap: 6px; flex: 1 1 140px; padding: 0 12px; border-radius: 10px; background: var(--raised); box-shadow: 0 0 0 1px var(--rule-strong); }
.ac-money input { flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; background: transparent; padding: 9px 0; font: 600 1rem var(--ai-font); font-variant-numeric: tabular-nums; }
.ac-money:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.ac .ac-bform button { min-height: 40px; justify-content: center; }

/* audiences */
.ac-aud-intro { gap: 8px; }
.ac-where { margin: 0; font: 400 0.84375rem/1.5 var(--ai-font); color: var(--ink); }
.ac-auds { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }
.ac-aud { gap: 10px; }
.ac-aud .sd-th h2 { white-space: normal; flex: 1; min-width: 0; font-size: 1rem; }
.ac-aud.off .sd-th h2, .ac-aud.off .ac-say { color: var(--ink-2) !important; }
.ac-where-chip { flex: none; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent); font: 560 0.75rem var(--ai-font); color: var(--ink-2); white-space: nowrap; }
.ac-size { margin: 0; font: 600 1.125rem var(--display); font-stretch: 92%; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.ac-block { margin: 0; display: flex; align-items: center; gap: 8px; font: 500 0.84375rem/1.4 var(--ai-font); color: var(--ink-2); }
.ac-how summary { cursor: pointer; font: 620 0.84375rem var(--ai-font); color: var(--accent); padding: 4px 0; width: max-content; }
.ac-how[open] summary { margin-bottom: 6px; }

/* tools */
.ac-tools { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); margin-bottom: 14px; }
.ac-ab-grid { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px 10px; align-items: center; }
.ac-ab-h { font: 500 0.75rem var(--ai-font); color: var(--ink-3); }
.ac-ab-n { font: 620 0.84375rem var(--ai-font); }
.ac-ab-grid input, .ac-ln-f input, .ac-ln-f select { width: 100%; min-width: 0; padding: 8px 10px; border-radius: 9px; border: 0; background: var(--raised); box-shadow: 0 0 0 1px var(--rule-strong); font: 500 0.875rem var(--ai-font); color: var(--ink); font-variant-numeric: tabular-nums; }
.ac-ab-grid input:focus, .ac-ln-f input:focus, .ac-ln-f select:focus { outline: none; box-shadow: 0 0 0 2px var(--accent); }
.ac-ab-out { margin: 0; min-height: 2.9em; font: 560 0.875rem/1.45 var(--ai-font); color: var(--ink); }
.ac-ab.sure .ac-ab-out { color: var(--good-ink); }
.ac-ab-bar { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 8%, transparent); overflow: hidden; }
.ac-ab-bar b { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--warning); transition: width .28s cubic-bezier(.23, 1, .32, 1), background-color .2s ease; }
.ac-ab.sure .ac-ab-bar b { background: var(--good); }
.ac-ln-f { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ac-ln-f label { display: grid; gap: 4px; font: 500 0.78125rem var(--ai-font); color: var(--ink-2); }
.ac-ln-f label:first-child { grid-column: 1 / -1; }
.ac-ln-out { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--rule); }
.ac-ln-out div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; align-items: center; }
.ac-ln-out div > span:first-child { grid-column: 1 / -1; font: 500 0.75rem var(--ai-font); color: var(--ink-3); }
.ac-ln-out code { min-width: 0; padding: 7px 10px; border-radius: 8px; background: var(--tint); font: 500 0.8125rem/1.4 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink); overflow-wrap: anywhere; }
.ac-ln-out .ac-copied { grid-column: 1 / -1; }
.ac-studio { margin: 14px 0 0; }
.ac-view > .panel, .ac-view > section.panel { margin-top: 14px; }

@media (max-width: 1240px) {
  .ac-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ac-strip .sd-fig:nth-child(4) { border-left: 0; }
  .ac-strip .sd-fig:nth-child(n+4) { border-top: 1px solid var(--rule); }
  .ac-strip .sd-fig:nth-child(5) { border-left: 1px solid var(--rule); }
  .ac-tools { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .ac-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-chk { grid-template-columns: 22px minmax(0, 1fr) 14px; }
  .ac-chk .ac-st { grid-column: 2; justify-self: start; margin-top: 2px; }
  .ac-chk > svg { grid-row: 1; grid-column: 3; }
  .ac-read, .ac-read.big { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-read div:nth-child(3) { padding-left: 0; border-left: 0; }
  .ac-ln-f { grid-template-columns: 1fr; }
  .ac-detail, .ac-auds { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ac-chk .ac-mark svg, .ac-chk .ac-a, .ac-chk .ac-st, .ac-ab-bar b { transition: none; }
  .ac-checks.running .ac-chk .ac-mark::after { animation: none; }
}
.ac-col { display: grid; gap: 14px; align-content: start; min-width: 0; }
.ac-col .ac-month { align-self: start; }
.ac-wait { align-self: start; }
.ac-money input::placeholder { color: var(--ink-3); font-weight: 500; }
.ac-fig.compact .ac-curve[data-ac-chart] { aspect-ratio: 380 / 150; }
.ac-tbl { overflow-x: auto; }
.ac-tbl .sd-t td:first-child { color: var(--ink); }
.ac-block a { color: var(--accent); text-decoration: none; font-weight: 560; }
.ac-block a:hover { text-decoration: underline; }
.ac-rules .ac-steps { font-size: 0.84375rem; gap: 8px; }
.ac-fig.compact .ac-curve[data-ac-chart="orders"] { aspect-ratio: 380 / 200; }
/* review fixes (impeccable + taste, 11 Oct) */
:root { --warning-ink: #8a6100; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --warning-ink: #f0b92a; } }
:root[data-theme="dark"] { --warning-ink: #f0b92a; }
.ac-st.s-watch { color: var(--warning-ink); }
.ac-checks.running .ac-chk:not(.done) .ac-mark::after { border-color: color-mix(in srgb, var(--ink-3) 35%, transparent); border-top-color: var(--accent); }
.ac-fold a { display: contents; color: inherit; text-decoration: none; }
.ac-fold { grid-template-columns: 22px minmax(0, 1fr) 14px; }
.ac-fig.compact .ac-curve[data-ac-chart] { aspect-ratio: 380 / 176; }
.ac-xcap { margin: -2px 0 0; text-align: center; font: 500 0.71875rem var(--ai-font); color: var(--ink-3); }
.ac-tbl .sd-t td:first-child { white-space: nowrap; }
.ac-detail { grid-template-columns: 1fr; }
.ac-open > * { max-width: 76ch; }
.ac-open .sd-th, .ac-open .ac-tbl { max-width: none; }
.ac-ab-meter { display: grid; gap: 4px; }
.ac-ab-meter[hidden] { display: none; }
.ac-ab-meter span { font: 500 0.75rem var(--ai-font); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ac-how summary { list-style: none; display: inline-flex; align-items: center; gap: 4px; }
.ac-how summary::-webkit-details-marker { display: none; }
.ac-how summary svg { width: 12px; height: 12px; transition: transform .18s cubic-bezier(.23, 1, .32, 1); }
.ac-how[open] summary svg { transform: rotate(90deg); }
.ac-auds { align-items: start; }
.ac-tools + .panel, .ac-tools + section { margin-top: 0 !important; }
/* Plan and test, in the dashboard's own terms (11 Oct): ruled figures, no tinted boxes */
.ac-planview { margin-bottom: 0; }
.ac-plan { gap: 14px; }
.ac-plan .sd-th { flex-wrap: wrap; row-gap: 2px; }
.ac-pin { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; }
.ac-pin label { display: grid; gap: 4px; align-content: end; font: 500 0.78125rem var(--ai-font); color: var(--ink-2); }
.ac-pin input { width: 100%; min-width: 0; padding: 8px 10px; border-radius: 9px; border: 0; background: var(--raised); box-shadow: 0 0 0 1px var(--rule-strong); font: 560 0.9375rem var(--ai-font); color: var(--ink); font-variant-numeric: tabular-nums; }
.ac-pin input:focus { outline: none; box-shadow: 0 0 0 2px var(--accent); }
.ac-pct { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.ac-pout { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--ink); }
.ac-po { display: grid; gap: 2px; align-content: start; padding: 12px 14px 4px 0; }
.ac-po + .ac-po { padding-left: 14px; border-left: 1px solid var(--rule); }
.ac-po dt { font: 500 0.78125rem var(--ai-font); color: var(--ink-2); }
.ac-po dd { margin: 0; }
.ac-po dd[data-out] { font: 600 1.625rem/1.15 var(--display); font-stretch: 92%; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ac-po:last-child dd[data-out] { background: linear-gradient(var(--mark-soft), var(--mark-soft)) no-repeat 0 85% / 100% 38%; width: max-content; }
.ac-po-n { font: 400 0.78125rem/1.45 var(--ai-font); color: var(--ink-3); }
.ac-prules { font-size: 0.84375rem; padding-top: 12px; border-top: 1px solid var(--rule); max-width: none; }
.ac-ideas { display: grid; gap: 10px; }
.ac-ideas-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ac-ideas-h h2 { margin: 0; font: 650 1.0625rem var(--ai-display); letter-spacing: -0.018em; }
.ac-idea-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ac-idea { gap: 10px; }
.ac-idea-t { display: flex; align-items: flex-start; gap: 10px; }
.ac-idea-t h3 { margin: 0; flex: 1; min-width: 0; font: 620 1rem/1.35 var(--ai-display); letter-spacing: -0.01em; text-wrap: pretty; }
.ac-idea .sd-facts dd { text-align: right; max-width: 65%; }
.ac-studio { margin: 0; }
@media (max-width: 900px) { .ac-pin, .ac-pout { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ac-po:nth-child(3) { padding-left: 0; border-left: 0; } .ac-po:nth-child(n+3) { border-top: 1px solid var(--rule); } .ac-idea-grid { grid-template-columns: 1fr; } }
/* the period bar on phones (11 Oct): the quick periods move into the dates menu, so the bar is two short rows, not three */
.pq-phone, .pq-phone-list { display: none; }
@media (max-width: 760px) {
  .pbar-seg { display: none !important; }
  .pq-phone-list { display: block; }
  .pq-wide { display: none; } .pq-phone { display: inline; }
  .pbar .pbar-step { flex: 1 1 auto; justify-content: space-between; }
  .pbar .pbar-store { flex: 1 1 100%; }
}
/* scrolling rows on phones say there's more: a soft fade at the edge */
@media (max-width: 720px) {
  .seo-tabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .seo-tabs.at-end { -webkit-mask-image: none; mask-image: none; }
}

/* SEO: a position that can't be taken at its word (few showings, or an AI-answer link) */
.pos-b.pos-soft { min-width: 0; font-weight: 600; color: var(--ink-2); background: transparent; box-shadow: inset 0 0 0 1px var(--rule-strong); }
.pos-n { display: block; margin-top: 2px; font-size: 0.75rem; color: var(--ink-2); }
/* SEO: today's Google results, who's above you */
.serp ol.serp-list { list-style: none; margin: 8px 0 0; padding: 0; }
.serp-list li { display: grid; grid-template-columns: 2em minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--rule); }
.serp-list li:first-child { border-top: 0; }
.serp-n { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--ink-2); text-align: right; }
.serp-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.serp-main b { font-weight: 650; overflow-wrap: anywhere; }
.serp-t { font-size: 0.875rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.serp-list li.you { margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 8px; border-top-color: transparent; background: color-mix(in srgb, var(--rk1) 14%, transparent); }
.serp-list li.you + li { border-top-color: transparent; }
.serp-list li.you .serp-n, .serp-list li.you b { color: var(--ink); }

/* ---- Visitors (visitors-dash.ts, 12 Oct 2026): what people do on the site, from the Sales dashboard's parts ---- */
.vj .vj-strip { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.vj .vj-fig { cursor: default; }
.vj-check { margin: 0 0 14px; }
.vj-check .icon { color: var(--warning); }
.vj-small { margin: -4px 0 12px; }
.vj-scroll { overflow-x: auto; margin: 0 -2px; padding: 0 2px; }
.vj-t td, .vj-t th { white-space: nowrap; }
.vj-t td small { color: var(--ink-3); font-weight: 400; }
.vj-path { max-width: 280px; overflow: hidden; text-overflow: ellipsis; text-align: left !important; }
.vj-hi { font-weight: 650; color: var(--bad-ink); }
.vj-hi::after { content: " ↑"; font-weight: 400; }
.vj-causes { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: vjc; }
.vj-causes li { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 10px; counter-increment: vjc; }
.vj-causes li::before { content: counter(vjc); grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 650 0.75rem var(--ai-font); background: var(--tint); color: var(--ink-2); }
.vj-cause { margin: 0; font: 620 0.875rem/1.35 var(--ai-font); }
.vj-fix { margin: 2px 0 0; font: 400 0.8125rem/1.45 var(--ai-font); color: var(--ink-2); }
.vj-bl li { cursor: default; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; }
.vj-bl .v small { color: var(--ink-3); font-weight: 400; }
.vj-k { display: inline-block; padding: 1px 7px; margin-right: 4px; border-radius: 999px; font: 500 0.6875rem/1.6 var(--ai-font); background: var(--tint); color: var(--ink-2); white-space: nowrap; vertical-align: 1px; }
.vj-k-product { box-shadow: inset 2px 0 0 var(--series1); }
.vj-k-blog { box-shadow: inset 2px 0 0 var(--series2); }
.vj-k-checkout { box-shadow: inset 2px 0 0 var(--series3); }
.vj-k-collection { box-shadow: inset 2px 0 0 var(--series4); }
.vj-k-home { box-shadow: inset 2px 0 0 var(--series7); }
.vj-visits { list-style: none; margin: 0; padding: 0; display: grid; }
.vj-visit { border-top: 1px solid var(--rule-soft); }
.vj-visit:first-child { border-top: 0; }
.vj-visit summary { display: grid; grid-template-columns: 112px 190px minmax(0, 1fr) minmax(0, 300px) 170px; align-items: baseline; gap: 12px; padding: 10px 6px; margin: 0 -6px;
  border-radius: 8px; cursor: pointer; list-style: none; font: 400 0.8125rem var(--ai-font); min-height: 44px; transition: background-color .15s cubic-bezier(.23, 1, .32, 1); }
.vj-visit summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .vj-visit summary:hover { background: var(--tint); } }
.vj-visit summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.vj-when { color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vj-src small { color: var(--ink-3); }
.vj-land { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 560; }
.vj-meta { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vj-out { display: flex; align-items: center; gap: 6px; justify-content: flex-end; white-space: nowrap; color: var(--ink-2); }
.vj-r-order .vj-out { color: var(--good-ink); font-weight: 600; }
.vj-r-order .vj-out .icon { width: 14px; height: 14px; }
.vj-steps { margin: 2px 0 12px 118px; padding: 0 0 0 18px; border-left: 2px solid var(--rule); display: grid; gap: 6px; list-style: none; counter-reset: vjs; }
.vj-steps li { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; font: 400 0.8125rem var(--ai-font); position: relative; }
.vj-steps li::before { content: ""; position: absolute; left: -24px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--sheet); box-shadow: 0 0 0 2px var(--rule-strong); }
.vj-steps .vj-ord::before { background: var(--good); box-shadow: none; }
.vj-p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vj-s { color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vj-list .seg { margin: 2px 0 6px; }
.vj-cust .vj-visits { margin-top: 12px; }
@media (max-width: 1240px) { .vj .vj-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .vj .vj-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vj-visit summary { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  .vj-visit summary .vj-src, .vj-visit summary .vj-meta { grid-column: 1 / -1; }
  .vj-land { grid-column: 1 / -1; order: -1; }
  .vj-steps { margin-left: 4px; }
  .vj-steps li { grid-template-columns: minmax(0, 1fr) auto; }
  .vj-steps .vj-k { grid-column: 1 / -1; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .vj-visit summary { transition: none; } }
.vj-row-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
@media (max-width: 1240px) { .vj-row-even { grid-template-columns: 1fr !important; } }
.vj-path .vj-k { margin-right: 6px; }
.vj-cust .vj-visit summary { grid-template-columns: 150px 170px minmax(0, 1fr) minmax(0, 260px) 160px; }
.vj-cust .vj-steps { margin-left: 156px; }
@media (max-width: 720px) { .vj-cust .vj-visit summary { grid-template-columns: minmax(0, 1fr) auto; } .vj-cust .vj-steps { margin-left: 4px; } }
/* What to do next (visitors-dash.ts): the page's one bold element. A short ranked list; detail opens in the side panel. */
.vj-next .sd-th { flex-wrap: wrap; }
.vj-checkform { margin: 0 0 0 auto; }
.vj-notice { margin: 0; display: flex; gap: 8px; align-items: center; font: 400 0.8125rem var(--ai-font); color: var(--ink-2); }
.vj-acts-list { list-style: none; margin: 2px -8px 0; padding: 0; display: grid; }
.vj-act { width: 100%; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 16px; align-items: center; gap: 12px; min-height: 60px; padding: 10px 8px;
  border: 0; border-top: 1px solid var(--rule-soft); border-radius: 0; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  transition: background-color .15s cubic-bezier(.23, 1, .32, 1); }
.vj-acts-list li:first-child .vj-act { border-top: 0; }
@media (hover: hover) { .vj-act:hover { background: var(--tint); border-radius: 10px; } .vj-act:hover + * { border-top-color: transparent; } }
.vj-act:active { transform: scale(.995); }
.vj-act:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 10px; }
.vj-rank { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 650 0.8125rem var(--ai-font); background: var(--ink); color: var(--sheet); font-variant-numeric: tabular-nums; }
.vj-rank.grow { background: var(--sheet); color: var(--good-ink); box-shadow: inset 0 0 0 1.5px var(--good-ink); }
.vj-act-t { display: grid; gap: 2px; min-width: 0; }
.vj-act-t b { font: 620 1rem/1.3 var(--ai-display); letter-spacing: -0.01em; text-wrap: pretty; }
.vj-act-t small { font: 400 0.8125rem/1.35 var(--ai-font); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vj-act-v { display: grid; justify-items: end; gap: 1px; white-space: nowrap; }
.vj-act-v b { font: 600 1.125rem/1.1 var(--display); font-stretch: 92%; font-variant-numeric: tabular-nums; }
.vj-act-v small { font: 400 0.75rem var(--ai-font); color: var(--ink-3); }
.vj-act > .icon { width: 14px; height: 14px; color: var(--ink-3); }
/* the side panel's insight */
.vj-p-lead { margin: 0; font: 500 1rem/1.45 var(--ai-font); text-wrap: pretty; }
.vj-p-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 0; margin: 4px 0 0; border-top: 1px solid var(--ink); }
.vj-p-figs div { padding: 8px 10px 0 0; }
.vj-p-figs dt { font: 500 0.75rem var(--ai-font); color: var(--ink-3); }
.vj-p-figs dd { margin: 2px 0 0; font: 600 1.375rem/1.1 var(--display); font-stretch: 92%; font-variant-numeric: tabular-nums; }
.vj-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vj-checks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; font: 400 0.84375rem/1.45 var(--ai-font); }
.vj-checks li > .icon { width: 16px; height: 16px; margin-top: 2px; }
.vj-checks .bad > .icon { color: var(--critical); }
.vj-checks .ok > .icon { color: var(--good-ink); }
.vj-checks b { display: block; font-weight: 620; }
.vj-checks span { color: var(--ink-2); }
.vj-steps-do { margin: 0; padding-left: 20px; display: grid; gap: 8px; font: 400 0.90625rem/1.45 var(--ai-font); }
.vj-steps-do li::marker { font-weight: 650; color: var(--ink-2); }
.vj-why summary { cursor: pointer; font: 500 0.8125rem var(--ai-font); color: var(--accent); min-height: 32px; display: flex; align-items: center; }
.vj-why ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 6px; font: 400 0.8125rem/1.45 var(--ai-font); color: var(--ink-2); }
.vj-p-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 6px; }
@media (max-width: 720px) {
  .vj-checkform { margin: 2px 0 0; }
  .vj-act-t small { white-space: normal; }
  .vj-act { grid-template-columns: 28px minmax(0, 1fr) 16px; }
  .vj-act-v { grid-column: 2; grid-row: 2; justify-items: start; display: flex; gap: 6px; align-items: baseline; }
  .vj-act > .icon { grid-column: 3; grid-row: 1 / span 2; }
}

/* Atlas can do this (visitors-dash.ts changes): each change with its preview, a private live preview, approve as a test */
.vj-changes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.vj-changes > li { display: grid; gap: 8px; padding: 14px; border-radius: 12px; box-shadow: 0 0 0 1px var(--rule); }
.vj-ch-h { margin: 0; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font: 400 0.8125rem var(--ai-font); }
.vj-ch-h b { font: 620 0.9375rem var(--ai-font); }
.vj-ch-h span { color: var(--ink-3); white-space: nowrap; }
.vj-ch-l, .vj-ch-v { margin: 0; font: 400 0.84375rem/1.45 var(--ai-font); color: var(--ink-2); }
.vj-ch-v { color: var(--ink); }
.vj-ch-acts { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.vj-actform { display: contents; }
.vj-ch-in { flex-basis: 100%; display: grid; gap: 4px; font: 500 0.8125rem var(--ai-font); }
.vj-ch-in input { min-height: 40px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--rule-strong); background: var(--sheet); color: var(--ink); font: inherit; font-weight: 400; }
.vj-ch-done { box-shadow: none !important; background: var(--tint); }
/* the preview: the element as the shop's visitors would see it, on a plain page */
.vj-pv { padding: 14px; border-radius: 10px; background: #fff; color: #111; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.vj-pv-card { display: flex; gap: 14px; align-items: center; max-width: 420px; padding: 12px; border: 1px solid rgba(127, 127, 127, .3); border-radius: 12px; }
.vj-pv-card img, .vj-pv-img { width: 72px; height: 72px; flex: none; border-radius: 8px; object-fit: cover; background: #ece9e3; }
.vj-pv-card > span:last-child { display: grid; gap: 3px; justify-items: start; font-size: 0.875rem; }
.vj-pv-card i, .vj-pv-bar i, .vj-pv-buy { font-style: normal; display: inline-block; padding: 7px 14px; border-radius: 999px; background: #111; color: #fff; font-weight: 600; font-size: 0.8125rem; }
.vj-pv-note { margin: 8px 0 0; font-size: 0.84375rem; opacity: .85; }
.vj-pv-phone { max-width: 300px; padding: 0; overflow: hidden; }
.vj-pv-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; box-shadow: 0 -4px 16px rgba(0, 0, 0, .08); font-size: 0.8125rem; }
.vj-pv-bar > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vj-perm { display: grid; gap: 8px; padding: 12px 14px; border-radius: 10px; background: var(--tint); }
.vj-perm h4 { margin: 0; font: 620 0.875rem var(--ai-font); }
.vj-perm ol { margin: 0; padding-left: 18px; display: grid; gap: 4px; font: 400 0.84375rem/1.45 var(--ai-font); }
.vj-ch-warn { margin: 0; display: flex; gap: 8px; align-items: flex-start; font: 400 0.8125rem/1.4 var(--ai-font); color: var(--ink); }
.vj-ch-warn .icon { color: var(--warning); flex: none; margin-top: 2px; }
.vj-ch-acts .btn, .vj-p-acts .btn { min-height: 40px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; font: 600 0.84375rem var(--ai-font); }

/* ---------------------------------------------------------------- shipping map (Fulfilment) */
/* One sequential blue ramp for every measure (cost, parcels, days); q0 is "no parcels". In dark the
   ramp brightens toward "more", so "stronger" reads the same way in both themes. */
.ship-app {
  --sq0: #ebe9e4; --sq1: #d3e3f6; --sq2: #a6c8ef; --sq3: #6ba2e3; --sq4: #2c70c4; --sq5: #12457f;
  --sea: var(--sheet); --border: #ffffff; --lane-ink: #12457f;
  display: grid; gap: 20px; min-width: 0; }
.ship-app > *, .ship-body > * { min-width: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ship-app {
  --sq0: #23231f; --sq1: #1b2c42; --sq2: #21456f; --sq3: #2d67a8; --sq4: #4f90df; --sq5: #a6cbf6;
  --sea: #141413; --border: #111110; --lane-ink: #a6cbf6; } }
:root[data-theme="dark"] .ship-app {
  --sq0: #23231f; --sq1: #1b2c42; --sq2: #21456f; --sq3: #2d67a8; --sq4: #4f90df; --sq5: #a6cbf6;
  --sea: #141413; --border: #111110; --lane-ink: #a6cbf6; }

.ship-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.ship-head > :first-child { flex: 1 1 520px; min-width: 0; }
.ship-dates { flex: none; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.ship-note { margin: 0; padding: 10px 14px; border: 1px solid var(--rule); background: var(--tint); border-radius: var(--r); font-size: 0.875rem; }

/* steps: a numbered row, the current one marked with the highlighter */
.ship-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--rule); }
.ship-step { all: unset; box-sizing: border-box; width: 100%; min-height: 56px; padding: 10px 14px 10px 12px; display: grid;
  grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; cursor: pointer; color: var(--ink-2);
  border-left: 1px solid var(--rule); transition: background-color .18s var(--ease), color .18s var(--ease); position: relative; }
.ship-steps li:first-child .ship-step { border-left: 0; }
.ship-step:hover { background: var(--tint); color: var(--ink); }
.ship-step:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ship-step:active { transform: translateY(1px); }
.ship-step-n { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; font: 650 0.8125rem/1 var(--text);
  font-variant-numeric: tabular-nums; border: 1px solid var(--rule-strong); }
.ship-step-t { font-weight: 600; font-size: 0.9375rem; line-height: 1.25; }
.ship-step-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ship-step.is-on { color: var(--ink); background: var(--tint); box-shadow: inset 0 -3px 0 var(--mark); }
.ship-step.is-on .ship-step-n { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* the map and its panel */
.ship-body { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 20px; align-items: start; }
.ship-stage { display: grid; gap: 12px; min-width: 0; }
.ship-frame { position: relative; }
.ship-map { position: relative; height: clamp(420px, 64vh, 720px); border: 1px solid var(--rule); border-radius: var(--r-md);
  background: var(--sea); overflow: hidden; touch-action: none; cursor: grab; outline: none; }
.ship-map:active { cursor: grabbing; }
.ship-map.is-pointing { cursor: pointer; }
.ship-map:focus-visible { box-shadow: 0 0 0 3px var(--ring); border-color: var(--accent); }
.ship-loading { margin: 0; position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-2); }
.ship-svg { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-select: none; }
.ship-svg path, .ship-svg circle { vector-effect: non-scaling-stroke; }

.geo-c, .geo-s, .geo-d { fill: var(--sq0); stroke: var(--border); stroke-width: 0.6; stroke-linejoin: round; cursor: pointer;
  transition: fill .2s var(--ease); }
.geo-s, .geo-d { stroke-width: 0.5; }
.geo-c.q1, .geo-s.q1, .geo-d.q1, .dot.q1, .sw.q1 { fill: var(--sq1); background: var(--sq1); }
.geo-c.q2, .geo-s.q2, .geo-d.q2, .dot.q2, .sw.q2 { fill: var(--sq2); background: var(--sq2); }
.geo-c.q3, .geo-s.q3, .geo-d.q3, .dot.q3, .sw.q3 { fill: var(--sq3); background: var(--sq3); }
.geo-c.q4, .geo-s.q4, .geo-d.q4, .dot.q4, .sw.q4 { fill: var(--sq4); background: var(--sq4); }
.geo-c.q5, .geo-s.q5, .geo-d.q5, .dot.q5, .sw.q5 { fill: var(--sq5); background: var(--sq5); }
.geo-c:hover, .geo-s:hover, .geo-d:hover { stroke: var(--ink); stroke-width: 1.2; }
.geo-c.is-sel, .geo-s.is-sel, .geo-d.is-sel { stroke: var(--ink); stroke-width: 2; }
/* states draw over their country; close in, the UK districts take over from the UK's outline */
.ship-app:not(.is-close) .geo-d { display: none; }

.lane { fill: none; stroke: var(--lane-ink); stroke-linecap: round; opacity: 0.55; pointer-events: none; transition: opacity .18s var(--ease); }
.lane.q1, .lane.q2 { opacity: 0.4; }
.lane.is-sel { opacity: 1; stroke: var(--accent); }
.lane-hit { fill: none; stroke: transparent; stroke-width: 16; cursor: pointer; }
.dot { stroke: var(--sea); stroke-width: 1; pointer-events: none; }
.dot.is-sel { stroke: var(--ink); stroke-width: 2; }
.dot-hit { fill: transparent; cursor: pointer; }

.pin { cursor: pointer; }
.pin-hit { fill: transparent; }
.pin-mark { fill: var(--ink); stroke: var(--sea); stroke-width: 1.5; }
.pin-box { fill: var(--mark); }
.pin-label { font: 650 12px/1 var(--text); fill: var(--ink); paint-order: stroke; stroke: var(--sea); stroke-width: 3px; stroke-linejoin: round; }
.pin-label.is-crowded { visibility: hidden; }
.pin:hover .pin-label.is-crowded, .pin:focus-within .pin-label.is-crowded { visibility: visible; }
.ship-app.is-far .dot { opacity: 0; }
.ship-app.is-far .dot-hit { pointer-events: none; }
.dot { transition: opacity .2s var(--ease); }
.pin.is-sel .pin-mark, .pin:hover .pin-mark { fill: var(--accent); }

.ship-tip { position: absolute; left: 0; top: 0; z-index: 5; max-width: 300px; padding: 8px 11px; pointer-events: none;
  background: var(--ink); color: var(--paper); border-radius: var(--r); box-shadow: var(--shadow-pop); font-size: 0.8125rem; line-height: 1.4;
  font-variant-numeric: tabular-nums; }
.ship-tip b { font-weight: 650; }

.ship-zoom { position: absolute; top: 12px; right: 12px; z-index: 4; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 70%; }
.ship-zoom button { min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: var(--r); background: var(--raised); color: var(--ink);
  border: 1px solid var(--rule-strong); box-shadow: var(--shadow-sm); font: 600 0.875rem/1 var(--text); }
.ship-zoom button:hover { background: var(--sheet); border-color: var(--ink-3); }
.ship-zoom [data-zoom="in"], .ship-zoom [data-zoom="out"] { font-size: 1.25rem; padding: 0; }
.ship-zoom [data-zoom="out"] { margin-right: 6px; }
.ship-regions, .ship-zoomer { display: flex; flex-wrap: wrap; gap: 6px; } .ship-zoomer { order: -1; }

.ship-tools:empty { display: none; }
.ship-parcel { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin: 0; }
.ship-parcel label { display: grid; gap: 4px; font-size: 0.875rem; color: var(--ink-2); }
.ship-in { display: flex; align-items: center; border: 1px solid var(--rule-strong); border-radius: var(--r); background: var(--sheet); min-height: 44px; }
.ship-in:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.ship-in input { width: 5.5em; border: 0; background: transparent; min-height: 42px; padding: 0 4px 0 10px; font: inherit; color: var(--ink);
  font-variant-numeric: tabular-nums; outline: none; }
.ship-in i { font-style: normal; color: var(--ink-3); padding-right: 10px; }
.ship-from select { min-height: 44px; }

.ship-legend { display: grid; gap: 6px; }
.ship-legend p { margin: 0; }
.ship-leg-t { font-weight: 600; font-size: 0.875rem; }
.ship-ramp { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; max-width: 560px; }
.ship-ramp li { display: grid; gap: 4px; font-size: 0.8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sw { display: block; height: 10px; border-radius: 2px; }
.ship-ramp li:first-child .sw { border-radius: 5px 2px 2px 5px; }
.ship-ramp li:last-child .sw { border-radius: 2px 5px 5px 2px; }

/* the side panel: a ruled sheet that scrolls on its own */
.ship-panel { position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow-y: auto; overscroll-behavior: contain;
  padding: 18px 20px 20px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-md); display: grid; gap: 14px; align-content: start; }
.ship-panel[aria-busy="true"] { opacity: 0.6; transition: opacity .2s var(--ease); }
.ship-panel > * { margin: 0; }
.ship-panel h3 { margin: 6px 0 -4px; font: 600 0.9375rem/1.3 var(--text); }
.ship-h { font: 650 1.375rem/1.15 var(--display); font-stretch: 92%; letter-spacing: -0.01em; }
.ship-sub { display: block; font-weight: 400; font-size: 0.8125rem; color: var(--ink-3); }
.ship-figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1.5px solid var(--ink); }
.ship-figs > div { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
.ship-figs > div:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--rule); }
.ship-figs dt { font-size: 0.8125rem; color: var(--ink-2); }
.ship-figs dd { margin: 2px 0 0; font: 650 1.125rem/1.2 var(--display); font-stretch: 92%; font-variant-numeric: tabular-nums; }
.ship-panel .table-scroll { max-height: 340px; border-radius: var(--r); }
.ship-panel table.data th, .ship-panel table.data td { padding-left: 10px; padding-right: 10px; }
.ship-panel tr[data-pick] { cursor: pointer; }
.ship-panel tr[data-pick]:hover > *, .ship-panel tr[data-pick]:focus-visible > * { background: var(--tint); }
.ship-panel tr[data-pick]:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ship-back { all: unset; box-sizing: border-box; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  color: var(--accent); font-weight: 600; font-size: 0.875rem; justify-self: start; }
.ship-back::before { content: "←"; }
.ship-back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
/* a region picked on the map (187): the heading says which, the answer leads, how soon parcels arrived as bars */
.ship-h-region { display: inline-block; vertical-align: 0.2em; margin-left: 6px; padding: 3px 9px; border-radius: 999px;
  background: var(--accent); color: var(--paper); font: 600 0.8125rem/1.2 var(--text); font-stretch: 100%; letter-spacing: 0; }
.ship-lead { font-size: 1rem; line-height: 1.5; text-wrap: pretty; }
.ship-lead b { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ship-panel tr[data-scope] { cursor: pointer; }
.ship-panel tr[data-scope]:hover > *, .ship-panel tr[data-scope]:focus-visible > * { background: var(--tint); }
.ship-panel tr[data-scope]:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ship-within { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ship-within li { display: grid; grid-template-columns: 4.5em 1fr 3em; align-items: center; gap: 10px; font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.ship-within-t { color: var(--ink-2); }
.ship-within-bar { height: 10px; border-radius: 5px; background: var(--sq0); overflow: hidden; }
.ship-within-bar i { display: block; height: 100%; border-radius: 5px; background: var(--sq4); }
.ship-within-n { text-align: right; font-weight: 600; }
.ship-zoom .ship-zoom-w[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ship-asks { display: flex; flex-wrap: wrap; gap: 8px; }
.ship-own { display: grid; gap: 8px; }
.ship-own label { font-weight: 600; font-size: 0.875rem; }
.ship-own textarea { width: 100%; min-height: 88px; resize: vertical; font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule-strong); border-radius: var(--r); padding: 10px 12px; }
.ship-own textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.ship-own .btn { justify-self: start; }
.ship-err { color: var(--bad-ink); }
.ship-credit { margin: 0; max-width: 90ch; }

.ship-entry { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 24px; }
/* compare options (128) */
.geo-s.is-clear { fill: transparent; stroke: none; pointer-events: none; }
.alt { fill: var(--sea); stroke: var(--ink); stroke-width: 1.4; pointer-events: none; transition: opacity .18s var(--ease); }
.alt.is-on { fill: var(--mark); stroke: var(--ink); stroke-width: 1.6; }
.alt.is-dim { opacity: 0.35; }
.alt.is-sel { stroke: var(--accent); stroke-width: 2.4; }
.ship-filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.ship-filter label { display: grid; gap: 4px; font-size: 0.875rem; color: var(--ink-2); flex: 1 1 140px; }
.ship-filter select, .ship-filter input, .ship-form input, .ship-form select, .ship-form textarea { min-height: 44px; width: 100%; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid var(--rule-strong); border-radius: var(--r); padding: 0 10px; }
.ship-form textarea { padding: 10px 12px; min-height: 120px; resize: vertical; font-variant-numeric: tabular-nums; }
.ship-filter :is(input, select):focus, .ship-form :is(input, select, textarea):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.ship-opts { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.ship-opt { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0 12px; border-bottom: 1px solid var(--rule); }
.ship-opt.is-on { background: var(--mark-soft); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: var(--r); }
.ship-opt-b { all: unset; box-sizing: border-box; grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; cursor: pointer; min-height: 32px; }
.ship-opt-b:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.ship-opt-t { font-weight: 600; }
.ship-opt-v { font: 650 1.0625rem/1.2 var(--display); font-stretch: 92%; white-space: nowrap; display: inline-flex; align-items: baseline; gap: 8px; }
.ship-chg { font: 600 0.8125rem/1 var(--text); color: var(--ink-2); }
.ship-chg.good { color: var(--good-ink); }
.ship-chg.bad { color: var(--bad-ink); }
.ship-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.8125rem; color: var(--ink-2); }
.ship-badge::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--ink-3); }
.ship-badge.good::before { background: var(--good); }
.ship-badge.bad::before { background: var(--critical); }
.ship-badge.warn::before { background: var(--warning); }
.ship-opt .ship-badges { grid-column: 1; }
.ship-opt .ship-link { grid-column: 2; grid-row: 2; align-self: start; }
.ship-link { all: unset; cursor: pointer; color: var(--accent); font-weight: 600; font-size: 0.875rem; min-height: 32px; display: inline-flex; align-items: center; }
.ship-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.ship-key { display: grid; gap: 6px; }
.ship-key label { font-weight: 600; font-size: 0.875rem; }
.ship-key-row { display: flex; gap: 8px; }
.ship-key-row input { flex: 1; min-width: 0; min-height: 44px; font: inherit; background: var(--paper); border: 1px solid var(--rule-strong); border-radius: var(--r); padding: 0 10px; color: var(--ink); }
.ship-quotes, .ship-dir { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.ship-quotes li, .ship-dir li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.ship-dir li { display: block; }
.ship-sub.warn { color: var(--warning-mark); }
.ship-form { display: grid; gap: 12px; }
.ship-form label { display: grid; gap: 4px; font-size: 0.875rem; color: var(--ink-2); }
.ship-form fieldset { border: 0; border-top: 1px solid var(--rule); margin: 4px 0 0; padding: 10px 0 0; }
.ship-form legend { font-weight: 600; color: var(--ink); padding: 0; font-size: 0.9375rem; }
.ship-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.ship-grid .ship-in input { width: 100%; }
.ship-form .ship-in { background: var(--paper); }
.ship-form .ship-in input { border: 0; background: transparent; min-height: 42px; box-shadow: none; padding: 0 4px 0 10px; }
.ship-opt-b[aria-pressed] { background: none; color: inherit; border: 0; box-shadow: none; }
.ship-ramp.is-few { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.ship-form .btn { justify-self: start; }
.rfq { display: grid; gap: 24px; max-width: 860px; }
.rfq-sec h2 { font: 650 1.25rem/1.2 var(--display); font-stretch: 92%; margin: 0 0 10px; }
.rfq-sec .ship-figs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rfq-sec .ship-figs > div:nth-child(even) { padding-left: 0; border-left: 0; }
.rfq-sec .ship-figs > div:not(:nth-child(3n + 1)) { padding-left: 12px; border-left: 1px solid var(--rule); }
.rfq-ask { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
@media print { .side, .top, .rfq-actions, .bottom-nav { display: none !important; } .rfq { max-width: none; } }

@media (max-width: 1100px) {
  .ship-body { grid-template-columns: 1fr; }
  .ship-panel { position: static; max-height: none; }
}
@media (max-width: 760px) {
  .ship-steps ol { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .ship-steps ol::-webkit-scrollbar { display: none; }
  .ship-steps li { flex: none; scroll-snap-align: start; }
  .ship-step { min-height: 48px; padding-right: 16px; }
  .ship-map { height: auto; aspect-ratio: 1 / 1; max-height: 70vh; min-height: 320px; border-radius: var(--r); }
  .ship-zoom { left: 8px; right: 8px; top: 8px; max-width: none; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ship-zoom::-webkit-scrollbar { display: none; }
  .ship-zoom button { flex: none; }
  .ship-zoom-w { padding: 0 10px; }
  .ship-ramp { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ship-parcel label { flex: 1 1 calc(50% - 6px); }
  .ship-in input { width: 100%; }
  .ship-from { flex-basis: 100% !important; }
}
@media (prefers-reduced-motion: reduce) {
  .ship-step, .geo-c, .geo-s, .geo-d, .lane, .ship-panel { transition: none; }
}

/* Agents in shadow (Stage B, /agent/shadow): an internal review page */
.sh-list, .sh-feed, .sh-runs, .sh-kids { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sh-kids { margin: 8px 0 0 16px; padding-left: 12px; border-left: 2px solid var(--rule); }
.sh-rec, .sh-run, .sh-feed li { border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; background: var(--sheet); }
.sh-rec.is-shown { border-left: 3px solid var(--good, var(--accent)); }
.sh-rec.is-held { opacity: 0.92; }
.sh-k { font-size: 0.8125rem; color: var(--muted, inherit); margin: 0 0 4px; }
.sh-t { font-weight: 600; margin: 0 0 6px; }
.sh-why, .sh-problems li { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: 0.875rem; }
.sh-problems { list-style: none; padding: 0; margin: 6px 0 0; color: var(--critical); }
.sh-rec details, .sh-run details { margin-top: 8px; font-size: 0.875rem; }
.sh-run.s-failed, .sh-run.s-budget { border-color: color-mix(in srgb, var(--critical) 35%, var(--rule)); }
.sh-run li.bad { color: var(--critical); }

/* agents page: a recommendation as a plan (14 Oct 2026) */
.sh-plan { margin: 12px 0 6px; padding: 14px 16px; border-radius: 12px; background: var(--tint); }
.sh-do { margin: 0; line-height: 1.45; text-wrap: pretty; }
.sh-now { margin: 8px 0 0; font-size: 0.9375rem; color: var(--ink-2); }
.sh-steps { margin: 12px 0 0; padding-left: 1.4em; display: grid; gap: 10px; }
.sh-step { margin: 0; font-weight: 600; }
.sh-where { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--sheet); font-weight: 500; font-size: 0.8125rem; color: var(--ink-2); }
.sh-step-d { margin: 2px 0 0; font-size: 0.9375rem; color: var(--ink-2); line-height: 1.45; }
.sh-facts { margin: 14px 0 0; display: grid; gap: 8px; }
.sh-facts div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 10px; }
.sh-facts dt { font-size: 0.8125rem; font-weight: 600; color: var(--ink-3); }
.sh-facts dd { margin: 0; font-size: 0.9375rem; }
@media (max-width: 520px) { .sh-facts div { grid-template-columns: 1fr; gap: 2px; } }

/* Overheads on Costs (138, 14 Oct 2026): what each kind of running cost comes to in the dates picked */
.overhead-cats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.overhead-cats li { display: flex; gap: 8px; align-items: baseline; padding: 6px 10px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--sheet); font-size: 0.875rem; }
.overhead-cats li span { color: var(--ink-2); }
.cost-entry .inline-del { display: inline; margin-left: 6px; }
.overhead-form .year-cost-fields label .sub { font-size: 0.75rem; color: var(--ink-3); }
.overhead-form input[name=amount] { width: 110px; }
.cost-entry th .sub { display: block; margin-top: 2px; font-weight: 400; font-size: 0.8125rem; color: var(--ink-3); }
#overheads th[scope=row], #overheads th .sub { white-space: normal; }
@media (max-width: 640px) { #overheads td:last-child { white-space: normal; text-align: right; } #overheads .inline-del { display: block; margin: 4px 0 0; } }
/* Costs, the cleaner pass (24 Oct 2026, Ollie: "make the costs page nicer"): the two things an owner types in, found at
   the top; each section a title, one sentence and a count; the ways to add a cost as quiet cards side by side */
.ce-jump { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 8px; }
body.u .ce-jump a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; background: #FFFFFF; border-radius: 12px; box-shadow: 0 0 0 1px #EDEDEF;
  color: #18181B; text-decoration: none; transition: box-shadow 180ms cubic-bezier(.22, 1, .36, 1); }
body.u .ce-jump a:hover { color: #18181B; box-shadow: 0 0 0 1px #D4D4D8; }
.ce-jump a > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ce-jump b { font-weight: 500; font-size: 14px; } .ce-jump a > span > span { font-size: 12.5px; color: #71717A; }
.ce-jump em, .ce-pill { font-style: normal; font-weight: 500; font-size: 12px; line-height: 1; font-variant-numeric: tabular-nums; padding: 5px 8px; border-radius: 999px; background: #FEF3C7; color: #92400E; white-space: nowrap; }
.ce-jump em.good, .ce-pill.good { background: #DCF5E5; color: #156B3A; }
.ce-pill { display: inline-flex; align-items: center; gap: 4px; } .ce-pill svg { width: 12px; height: 12px; }
.ce-jump svg { width: 16px; height: 16px; color: #A1A1AA; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ce.cost-entry { gap: 14px; }
.ce .ce-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
body.u .ce .ce-head h3 { font: 500 17px/1.3 "Geist", system-ui, sans-serif; margin: 0 0 4px; }
.ce .ce-head p { margin: 0; max-width: 62ch; font-size: 13px; }
.ce-total { display: grid; justify-items: end; gap: 2px; white-space: nowrap; } .ce-total span { font-size: 11.5px; color: #71717A; }
.ce-total b { font: 500 20px/1.1 "Geist Mono", ui-monospace, monospace; letter-spacing: -0.04em; }
.ce-sub { margin: 0; font-size: 12px; color: #71717A; }
@media (min-width: 641px) { .ce-list td:last-child { width: 1%; } }
.ce-ways { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 8px; }
.ce-card { display: grid; gap: 10px; align-content: start; padding: 14px 16px; border-radius: 12px; background: #F7F7F8; box-shadow: 0 0 0 1px #F1F1F3; margin: 0; }
.ce-card h4 { margin: 0; font-weight: 500; font-size: 14px; }
.ce-card.upload { display: grid; margin: 0; } .ce-card.upload > label { font-size: 12.5px; }
.ce-card.upload button { justify-self: start; }
.ce label i { font-style: normal; color: #A1A1AA; }
.ce-more summary { cursor: pointer; font-size: 13px; color: #52525B; min-height: 40px; display: flex; align-items: center; gap: 8px; list-style: none; }
.ce-more summary::-webkit-details-marker { display: none; }
.ce-more summary::before { content: "+"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px #E4E4E7; font-size: 13px; line-height: 1; }
.ce-more[open] summary::before { content: "\2212"; }
.ce-more summary:hover { color: #18181B; }
.ce-more .year-cost { margin: 4px 0 0; }
#overheads .overhead-form { margin-top: 2px; }
@media (max-width: 640px) {
  .ce-jump, .ce-ways { grid-template-columns: minmax(0, 1fr); }
  .ce .ce-head { flex-direction: column; gap: 8px; } .ce-total { justify-items: start; }
  .ce-card .year-cost-fields, .ce-more .year-cost-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ce-card .year-cost-fields label:first-child, .ce-card .year-cost-fields button, .ce-more .year-cost-fields button { grid-column: 1 / -1; }
  .ce-card .year-cost-fields input, .ce-card .year-cost-fields select, .ce-more .year-cost-fields input, .ce-more .year-cost-fields select { width: 100%; min-width: 0; }
  .ce .inline-cost { grid-template-columns: minmax(0, 1fr) auto auto; } .ce .inline-cost button { grid-column: auto; width: auto; padding: 0 16px; }
}

/* ---- Sales forecast by month (141) ---- */
.fc { display: grid; gap: 8px; }
.fc-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.fc-head h2 { margin: 0; }
.fc-head p, .fc-lede, .fc-year, .fc-how { margin: 0; }
.fc-lede { font-size: 1.0625rem; font-weight: 550; }
.fc .chart .fc-ahead { fill: color-mix(in srgb, var(--series1) 38%, transparent); }
.fc .chart .fc-sold { fill: var(--series1); }
.fc .chart .fc-range { stroke: var(--ink-2); stroke-width: 1.5; stroke-linecap: round; }
.fc .chart .wb-ly { stroke: var(--series2); stroke-width: 2.5; stroke-dasharray: 5 3; stroke-linecap: round; }
.fc .legend .fc-key-ahead { background: color-mix(in srgb, var(--series1) 38%, transparent); }
.fc .legend .fc-key-range { display: inline-block; width: 0; height: 12px; margin: 0 8px 0 4px; vertical-align: middle; border-left: 1.5px solid var(--ink-2); }
.fc-table-wrap > summary { cursor: pointer; font-weight: 600; font-size: 0.875rem; min-height: 32px; display: flex; align-items: center; }
.fc-table-wrap { overflow-x: auto; }
.fc-table td.num, .fc-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- Shipping control (142): the work in ruled rows; status is a drawn mark and a word, never colour alone ---- */
.sc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.sc-dates { margin: -4px 0 0; }
.sc-sec h2 { margin: 0 0 10px; }
.sc-sec > .quiet.small { max-width: 75ch; margin: 0 0 12px; }
.sc-issues { list-style: none; margin: 0; padding: 0; }
.sc-issues > li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 6px 18px; padding: 14px 0; border-top: 1px solid var(--rule); }
.sc-issues > li:first-child { border-top: 1.5px solid var(--ink); }
.sc-st { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; align-self: start; }
.sc-issue { margin: 0 0 6px; font-weight: 650; max-width: 75ch; text-wrap: pretty; }
.sc-because { margin: 0 0 6px; padding-left: 1.1em; color: var(--ink-2); font-size: 0.9375rem; max-width: 75ch; }
.sc-because li { margin: 2px 0; font-variant-numeric: tabular-nums; }
.sc-do { margin: 0 0 4px; max-width: 75ch; }
.sc-why summary { cursor: pointer; color: var(--accent); font-size: 0.875rem; font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.sc-why p { margin: 4px 0 0; color: var(--ink-2); font-size: 0.875rem; max-width: 75ch; }
.sc-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.sc-tag .ac-mark { width: 18px; height: 18px; } .sc-tag .ac-mark svg { width: 16px; height: 16px; }
.sc-table input[type="checkbox"], .sc-check input, .sc-approve input { width: 20px; height: 20px; accent-color: var(--accent); }
.sc-table td:first-child { width: 44px; }
.sc-table tr.is-blocked th, .sc-table tr.is-blocked td { background: color-mix(in srgb, var(--mark-soft) 45%, var(--sheet)); }
.sc-group + .sc-group { margin-top: 22px; padding-top: 18px; border-top: 1.5px solid var(--ink); }
.sc-group h3 { font: 600 1.0625rem var(--display); margin: 0 0 8px; }
.sc-item { border-top: 1px solid var(--rule); padding: 8px 0; }
.sc-item summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sc-item > p { margin: 6px 0; max-width: 75ch; }
.sc-item tr.is-pick th, .sc-item tr.is-pick td { font-weight: 650; }
.sc-warn { list-style: none; padding: 0; margin: 6px 0; }
.sc-warn li { display: flex; gap: 6px; align-items: flex-start; margin: 4px 0; max-width: 75ch; }
.sc-apply { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule-strong); display: grid; gap: 10px; justify-items: start; }
.sc-approve { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; max-width: 75ch; min-height: 44px; }
.sc-approve input { margin-top: 2px; flex: none; }
.sc-route { margin: 0 0 14px; }
.sc-route caption { text-align: left; padding: 10px 12px 6px; font-weight: 650; caption-side: top; }
.sc-route tr.sc-opt th, .sc-route tr.sc-opt td { border-top: 1px solid var(--rule-strong); font-weight: 600; }
.sc-route tr.sc-carrier th { padding-left: 26px; font-weight: 500; color: var(--ink-2); }
.sc-route tr.sc-carrier td { color: var(--ink-2); }
.sc-rules fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.sc-rules legend { font-weight: 650; margin-bottom: 4px; }
.sc-check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-right: 18px; }
.sc-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 14px 18px; margin: 0 0 14px; }
.sc-fields label, .sc-skus { display: grid; gap: 4px; font-weight: 600; }
.sc-fields label .quiet, .sc-skus .quiet { font-weight: 400; }
.sc-fields input, .sc-skus textarea { min-height: 44px; font: inherit; font-variant-numeric: tabular-nums; }
.sc-skus textarea { max-width: 40ch; }
.sc-orders { list-style: none; margin: 10px 0 0; padding: 0; }
.sc-orders > li { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.sc-orders .sc-why-pick { flex-basis: 100%; color: var(--ink-2); font-size: 0.875rem; margin: 0; max-width: 75ch; }
@media (max-width: 640px) {
  .sc-issues > li { grid-template-columns: 1fr; }
  .sc-route caption { display: block; width: auto; white-space: normal; }
}

/* Shipping control: what each courier cost (a dot at the typical parcel, a line to the 1-in-10 cost, the owner's
   limit as a dashed rule through every row; the figures in words beside it) */
.sc-routes { margin: 2px 0 0; flex-wrap: wrap; }
.sc-routes a .quiet { margin-left: 6px; font-variant-numeric: tabular-nums; }
.sc-callout { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; padding: 12px 16px; border-radius: var(--r); background: color-mix(in srgb, var(--mark-soft) 55%, var(--sheet)); max-width: 80ch; }
.sc-callout > span:not(.ac-mark) { flex: 1 1 24ch; }
.sc-callout .btn { white-space: nowrap; }
.sc-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 8px; }
.sc-key span { display: inline-block; }
.sc-key-limit { width: 0; height: 14px; border-left: 1.5px dashed var(--serious); }
.sc-key-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-2); margin-left: 8px; }
.sc-key-whisker { width: 22px; height: 3px; border-radius: 2px; background: var(--ink-2); opacity: .55; margin-left: 8px; }
.sc-strip ul { list-style: none; margin: 0; padding: 0; }
.sc-strip li { display: grid; grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr) minmax(14rem, 18rem); gap: 4px 16px; align-items: center; padding: 6px 0; }
.sc-strip li.is-option { border-top: 1px solid var(--rule-strong); padding-top: 12px; margin-top: 4px; }
.sc-strip li.is-option:first-child { border-top: 1.5px solid var(--ink); margin-top: 0; }
.sc-strip li.is-option .sc-who { font-weight: 650; }
.sc-strip li.is-courier .sc-who { padding-left: 14px; }
.sc-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.sc-who .quiet { font-weight: 400; }
.sc-fig { font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.sc-fig strong { font-family: var(--display); font-size: 1.0625rem; }
.sc-track { display: block; width: 100%; height: 20px; overflow: visible; }
.sc-track .sc-limit { stroke: var(--serious); stroke-width: 1.5; stroke-dasharray: 4 3; }
.sc-track .sc-whisker { stroke-width: 3; stroke-linecap: round; opacity: .55; }
.sc-track .sc-dot { stroke-width: 12; stroke-linecap: round; }
.sc-strip li.is-option .sc-dot { stroke: var(--ink); }
.sc-all summary { display: flex; align-items: center; gap: 8px; cursor: pointer; min-height: 44px; list-style: none; }
.sc-all summary::-webkit-details-marker { display: none; }
.sc-all summary::before { content: ""; width: 8px; height: 8px; border-right: 1.6px solid var(--ink-2); border-bottom: 1.6px solid var(--ink-2); transform: rotate(-45deg); transition: transform .15s ease-out; }
.sc-all[open] summary::before { transform: rotate(45deg); }
.sc-all summary h2 { margin: 0; }
.sc-issues .sc-issue { cursor: pointer; list-style: none; color: var(--ink); }
.sc-issues .sc-issue::-webkit-details-marker { display: none; }
@media (max-width: 760px) {
  .sc-strip li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .sc-strip li.is-courier .sc-who, .sc-strip li.is-courier .sc-fig { padding-left: 14px; }
}
@media (prefers-reduced-motion: reduce) { .sc-all summary::before { transition: none; } }
.sc-track .sc-whisker, .sc-track .sc-dot { stroke: var(--ink-2); }
.sc-track.k1 line:not(.sc-limit) { stroke: var(--series1); } .sc-track.k2 line:not(.sc-limit) { stroke: var(--series2); }
.sc-track.k3 line:not(.sc-limit) { stroke: var(--series3); } .sc-track.k4 line:not(.sc-limit) { stroke: var(--series4); }
.sc-track.k5 line:not(.sc-limit) { stroke: var(--series5); } .sc-track.k6 line:not(.sc-limit) { stroke: var(--series6); }
.sc-track.k7 line:not(.sc-limit) { stroke: var(--series7); } .sc-track.k8 line:not(.sc-limit) { stroke: var(--series8); }
.sc-strip li.is-option .sc-track line:not(.sc-limit) { stroke: var(--ink); }
.sc-issues .sc-issue { display: flex; align-items: flex-start; gap: 8px; min-height: 32px; }
.sc-issues .sc-issue::after { content: ""; flex: none; width: 7px; height: 7px; margin: 7px 2px 0 auto; border-right: 1.6px solid var(--ink-2); border-bottom: 1.6px solid var(--ink-2); transform: rotate(45deg); transition: transform .15s ease-out; }
.sc-issues details[open] > .sc-issue::after { transform: rotate(-135deg); margin-top: 10px; }
.sc-issues .sc-issue:hover { color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .sc-issues .sc-issue::after { transition: none; } }
/* the month-by-month pictures: drawn again at phone width on small screens, so labels stay at their real size */
.sc-chart-narrow { display: none; }
@media (max-width: 640px) { .sc-chart-wide { display: none; } .sc-chart-narrow { display: block; } }
.sc-months { list-style: none; margin: 0; padding: 0; }
.sc-months li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 2px 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--rule); }
.sc-months .sc-mn { grid-column: 2; font-variant-numeric: tabular-nums; }
.sc-mbar { display: block; width: 100%; height: 10px; }
.sc-mbar rect { fill: var(--ink-2); }
.sc-mbar .k1 { fill: var(--series1); } .sc-mbar .k2 { fill: var(--series2); } .sc-mbar .k3 { fill: var(--series3); } .sc-mbar .k4 { fill: var(--series4); }
.sc-mbar .k5 { fill: var(--series5); } .sc-mbar .k6 { fill: var(--series6); } .sc-mbar .k7 { fill: var(--series7); } .sc-mbar .k8 { fill: var(--series8); }

/* Discovery (15 Oct 2026): stages and costs as a ruled list, coverage as a table that scrolls on a phone */
.dc-stages { list-style: none; margin: 8px 0 16px; padding: 0; border-top: 1px solid var(--rule); }
.dc-stages li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.dc-stages li strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dc-cov { width: 100%; border-collapse: collapse; }
.dc-cov th, .dc-cov td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--rule); }
.dc-cov td:first-child { white-space: nowrap; }
.dc-cov tr.dc-no_data td, .dc-cov tr.dc-not_funded td { color: var(--muted, inherit); }
.dc-approve { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.dc-approve label { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.dc-acts { display: flex; gap: 8px; margin: 6px 0 0; }
.dc-acts button { min-height: 44px; }
.dc-extra { margin: 6px 0 14px; }
@media (max-width: 560px) {
  .dc-cov thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dc-cov tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--rule); }
  .dc-cov td { display: block; border: 0; padding: 2px 0; white-space: normal; }
  .dc-cov td:first-child { font-weight: 600; }
}

/* Inventory: stock on its way (147) */
.inc-entry { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: center; padding: 4px 0; }
.inc-entry + .inc-entry { border-top: 1px solid var(--rule); }
.inc-entry .sub-num { flex-basis: 100%; }
.inc-actions { display: inline-flex; gap: 2px; }
.inc-close { display: inline; margin: 0; }
#incoming button.linkish { min-height: 44px; }
#incoming .inv-settings > summary h3 { display: inline; font-size: 1.0625rem; margin: 0 8px 0 0; }

/* The SEO app (seo-app-views.ts, 20 Oct 2026): the "Atlas SEO" tool bar and the new tools' plain pages */
.seo-app-bar { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 6px 8px; border-radius: 12px; background: var(--sheet); border: 1px solid var(--rule); overflow-x: auto; }
.seo-app-name { font: 700 0.875rem var(--display); white-space: nowrap; padding: 0 6px; }
.seo-app-bar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.seo-app-bar a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 10px; border-radius: 8px; font-size: 0.8125rem; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.seo-app-bar a:hover { background: var(--tint); color: var(--ink); }
.seo-app-bar a[aria-current="page"] { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-weight: 600; }
.seo-app-bar a[data-state="off"], .seo-app-bar a[data-state="not-needed"] { color: var(--ink-3); }
.seo-tool-head h1 { margin: 0 0 6px; font: 700 1.5rem var(--display); letter-spacing: -0.02em; }
.seo-tool-what { margin: 0 0 6px; max-width: 72ch; font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
.seo-lead { margin: 0 0 16px; max-width: 72ch; font-size: 1.0625rem; line-height: 1.5; }
.seo-view-sec h3, .ag-section > h3 { margin: 22px 0 2px; font: 700 1.0625rem var(--display); }
.seo-left { margin: 14px 0 0; } .seo-left summary { cursor: pointer; min-height: 32px; color: var(--ink-2); }
.seo-tool-state { margin: 0 0 20px; font-size: 0.875rem; color: var(--ink-2); }
.seo-tool-state[data-state="ready"] { color: var(--good-ink); }
.seo-search, .seo-inline { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: 0 0 16px; }
.seo-search input, .seo-search select { min-height: 40px; }
.seo-form { display: grid; gap: 8px; max-width: 520px; }
.seo-form fieldset { border: 0; padding: 0; margin: 6px 0; display: grid; gap: 4px; }
.seo-form .check { display: flex; gap: 8px; align-items: center; min-height: 32px; }
.seo-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 22px; }
.seo-tile { padding: 12px 14px; border-radius: 12px; background: var(--sheet); border: 1px solid var(--rule); display: grid; gap: 4px; }
.seo-tile span { font-size: 0.75rem; color: var(--ink-2); }
.seo-tile strong { font: 600 1.375rem var(--display); font-variant-numeric: tabular-nums; }
.seo-q { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-width: 720px; }
.seo-q li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule-soft); }
.ai-mark { font-size: 0.8125rem; } .ai-mark[data-mark="named"] { color: var(--good-ink); font-weight: 600; } .ai-mark[data-mark="rival"] { color: var(--bad-ink); }
.ai-mark[data-mark="not-asked"], .ai-mark[data-mark="failed"] { color: var(--ink-3); }
.mk-sells { font-size: 0.8125rem; } .mk-sells.sells-sells { color: var(--good-ink); font-weight: 600; } .mk-sells.sells-rarely { color: var(--bad-ink); } .mk-sells.sells-not-measured { color: var(--ink-3); }

/* the plan's title Atlas wrote, to copy where the platform can't be changed by Atlas */
.pl-copy-row { margin: 0; display: grid; grid-template-columns: 7em minmax(0, 1fr) auto auto; gap: 8px; align-items: center; font-size: 0.875rem; }
.pl-copy-row > span:first-child { color: var(--ink-2); font-weight: 650; }
.pl-copy-row code { padding: 4px 8px; border-radius: 8px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); overflow-wrap: anywhere; white-space: pre-wrap; font-family: inherit; color: var(--ink); }
@media (max-width: 560px) { .pl-copy-row { grid-template-columns: minmax(0, 1fr) auto auto; } .pl-copy-row > span:first-child { grid-column: 1 / -1; } }
/* today's Google results: the shop's own listings on other sites (its YouTube video) */
.serp-own { margin: 4px 0 0; font-size: 0.875rem; color: var(--ink); }
.serp-list li.yours { background: color-mix(in srgb, var(--rk1) 7%, transparent); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 8px; }
.serp-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; font-size: 0.6875rem; font-weight: 650; background: color-mix(in srgb, var(--rk1) 18%, transparent); color: var(--ink); vertical-align: 1px; }
/* a numbered list of things to do (the SEO app's tools that are waiting on data) */
.u-steps { margin: 8px 0 0; padding-left: 1.3em; display: grid; gap: 10px; line-height: 1.5; }
.u-steps strong { color: var(--ink); }
/* the SEO toolkit's first step, before the site check has run */
.tk-first { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.cm-cta { margin: 0 0 12px; padding: 8px 12px; border-radius: var(--r-md); background: var(--sheet); border: 1px solid var(--line); font-size: 0.875rem; }
.hh-how { margin: 8px 0 0; } .hh-how summary { cursor: pointer; font-size: 0.8125rem; color: var(--ink-2); } .hh-how p { margin: 6px 0 0; max-width: 60ch; }
.intl-alert { background: color-mix(in srgb, var(--critical) 6%, var(--sheet)); color: var(--ink); } .intl-alert .icon { color: var(--critical); }
.u-int { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; font-size: 0.6875rem; font-weight: 600; text-decoration: none; cursor: help; background: color-mix(in srgb, var(--ink-3) 14%, var(--sheet)); color: var(--ink-2); }
.u-int-t { background: color-mix(in srgb, var(--good) 16%, var(--sheet)); color: var(--ink); } .u-int-c { background: color-mix(in srgb, var(--warning) 18%, var(--sheet)); color: var(--ink); }
.u-int-key { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 8px 0 0; } .u-int-key > span { display: inline-flex; align-items: center; gap: 5px; }
.tk-vis { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 4px 0 12px; } .tk-vis p { margin: 0; } .tk-vis strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; } .tk-vis .quiet.small:last-child { flex-basis: 100%; }
.hh-hist { margin: 8px 0 0; } .hh-hist summary { cursor: pointer; font-size: 0.8125rem; color: var(--ink-2); } .hh-hist svg { display: block; margin: 8px 0; }
.serp-feat { margin: 0 0 10px; line-height: 1.8; } .serp-chip { display: inline-block; margin: 0 4px 0 0; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--sheet); font-size: 0.75rem; color: var(--ink-2); }
.tk-start { margin: 4px 0 14px; padding: 12px 14px; border-radius: var(--r-md); border: 1px dashed var(--line); background: var(--sheet); } .tk-start p { margin: 0 0 8px; }
.gap-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin: 0 0 14px; }
.gap-t { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--sheet); color: var(--ink); text-decoration: none; }
.gap-t b { font-size: 1.25rem; font-variant-numeric: tabular-nums; } .gap-t .gap-l { font-size: 0.8125rem; color: var(--ink-2); } .gap-t.on { border-color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--ink-2); }
.gap-missing b { color: var(--critical); } .gap-weak b { color: var(--warning-mark); } .gap-strong b { color: var(--good); }
/* AI use this month, as a share with when it starts again (settings-views.ts aiUsage): no money for customers */
.ai-use { margin: 10px 0; font-size: 0.85rem; } .ai-use p { margin: 0 0 6px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ai-use-k { color: var(--ink-3); } .ai-use-bar { display: block; height: 6px; border-radius: 9px; background: var(--line, #E4E4E7); overflow: hidden; }
.ai-use-bar i { display: block; height: 100%; width: 0; border-radius: 9px; background: #2563EB; transition: width 600ms ease; } .ai-use.hi .ai-use-bar i { background: #D97706; }
/* the invitation (account-views.ts invitePage, 24 Oct 2026): the Atlas orb, and what happens after joining */
.auth .inv-orb { --s: 64px; display: block; margin: 0 0 20px; animation: wz-orb-in 900ms cubic-bezier(.22, 1, .36, 1) both; }
.inv-next { align-self: center; max-width: 360px; }
.inv-next-k { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .01em; opacity: .7; }
.inv-next ol { list-style: none; counter-reset: inv; margin: 0; padding: 0; display: grid; gap: 18px; }
.inv-next li { counter-increment: inv; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; }
.inv-next li::before { content: counter(inv); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font: 500 12.5px/1 "Geist Mono", ui-monospace, monospace; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.inv-next b { font-weight: 600; font-size: 15px; } .inv-next li span { font-size: 13.5px; line-height: 1.45; opacity: .78; }
@media (prefers-reduced-motion: reduce) { .auth .inv-orb { animation: none; } }

/* The day explained on Home (ui/day-read.ts): a headline, why in a line, cause chips, one thing to do (DESIGN.md tokens) */
.day-read { margin: 6px 0 12px; padding: 14px 16px 16px; }
.day-read-h { margin: 0 0 6px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: #71717A; }
.day-read-h i { font-style: normal; font-weight: 500; color: #18181B; }
.day-read-h .day-read-old { font-weight: 500; color: var(--warning-mark); }
.day-read-mark { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #2563EB, #8B5CF6); flex: none; }
.day-read-t { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.35; color: #18181B; letter-spacing: -0.01em; text-wrap: balance; }
.day-read-why { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: #52525B; max-width: 68ch; }
.day-read-why b { font-weight: 500; color: #18181B; margin-right: 2px; }
.day-read-c { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.day-read .day-read-c a, body.u .day-read-c a, .day-read-c > span { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; font-size: 12.5px; padding: 3px 10px 3px 9px;
  border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px #E4E4E7; color: #52525B; text-decoration: none; transition: background-color 120ms ease-out, box-shadow 120ms ease-out; }
.day-read-c a s, .day-read-c > span s { width: 6px; height: 6px; border-radius: 50%; background: #E5484D; flex: none; } .day-read-c a.good s, .day-read-c > span.good s { background: #22A55B; }
.day-read-c a b, .day-read-c > span b { font-weight: 500; color: #18181B; font-variant-numeric: tabular-nums; }
.day-read-c a:hover { background: #FAFAFA; box-shadow: inset 0 0 0 1px #D4D4D8; }
.day-read-do { margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: #18181B; }
.day-read-do span { color: #2563EB; margin-right: 2px; }
/* Visitors explained's comparisons and side panels (ui/visitor-read.ts), and the composition the Ads overview borrows
   (.vx, .vx-t, .vx-eye, .vx-scale). The funnel and Atlas AI's next step are the .vf block further down. */
.vx { margin: 6px 0 12px; padding: 40px 44px 40px; }
.vx section { margin: 0; }
.vx-eye { margin: 0; display: flex; justify-content: space-between; gap: 16px; font-size: 12.5px; color: #71717A; }
.vx-ai { display: inline-flex; align-items: center; gap: 7px; }
.vx-t { margin: 18px 0 0; max-width: 24ch; font-size: 40px; font-weight: 500; line-height: 1.04; color: #18181B; letter-spacing: -0.04em; text-wrap: balance; }
.vx-t em { font-style: normal; color: #C9372C; }
.vx-scale { margin: 16px 0 0; max-width: 60ch; font-size: 17px; line-height: 1.5; color: #52525B; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

.vx-c h3 { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: #71717A; letter-spacing: 0; }
.vx-wait { color: #A1A1AA; }

.vx-cmp { margin-top: 44px; padding-top: 28px; box-shadow: inset 0 1px 0 #EDEDEF; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
.vx-c { min-width: 0; }
.vx-c h3 { color: #18181B; font-size: 13.5px; }
.vx-v { margin: 0; font-size: 14px; line-height: 1.5; color: #52525B; text-wrap: pretty; }
.vx-c.flat .vx-v { color: #71717A; }
.vx-dots { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 4px; }
.vx-dots li { display: grid; grid-template-columns: minmax(0, 1fr) 96px 44px; align-items: center; column-gap: 12px; min-height: 30px; padding: 0 6px; margin: 0 -6px; border-radius: 6px; transition: background 180ms cubic-bezier(.22, 1, .36, 1); }
.vx-dots li:hover { background: #FAFAFA; }
.vx-l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; color: #3F3F46; }
.vx-axis { position: relative; height: 16px; }
.vx-axis::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #E4E4E7; }
.vx-avg { position: absolute; top: 1px; bottom: 1px; width: 1px; background: #A1A1AA; }
.vx-dot { position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #A1A1AA; box-shadow: 0 0 0 2px #FFFFFF; }
.vx-dots li.good .vx-dot { background: #22A55B; } .vx-dots li.bad .vx-dot { background: #E5484D; }
.vx-dots b { font: 500 13.5px/1 "Geist Mono", ui-monospace, monospace; letter-spacing: -0.04em; text-align: right; color: #3F3F46; font-variant-numeric: tabular-nums; }
.vx-dots li.good b { color: #156B3A; } .vx-dots li.bad b { color: #A1261F; }
.vx-pin { grid-column: 1 / -1; margin: -2px 0 4px; font-size: 12px; color: #71717A; }
.vx-legend { margin: 10px 0 0; display: flex; align-items: center; gap: 7px; font-size: 12px; color: #A1A1AA; }
.vx-legend i { width: 1px; height: 12px; background: #A1A1AA; }
.vx-x0 { left: 0%; } .vx-x1 { left: 5%; } .vx-x2 { left: 10%; } .vx-x3 { left: 15%; } .vx-x4 { left: 20%; } .vx-x5 { left: 25%; } .vx-x6 { left: 30%; } .vx-x7 { left: 35%; } .vx-x8 { left: 40%; } .vx-x9 { left: 45%; } .vx-x10 { left: 50%; } .vx-x11 { left: 55%; } .vx-x12 { left: 60%; } .vx-x13 { left: 65%; } .vx-x14 { left: 70%; } .vx-x15 { left: 75%; } .vx-x16 { left: 80%; } .vx-x17 { left: 85%; } .vx-x18 { left: 90%; } .vx-x19 { left: 95%; } .vx-x20 { left: 100%; }
.vx-noted { margin: 32px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 13px; color: #52525B; }
.vx-noted > span:first-child { color: #A1A1AA; }
.vx-noted span { display: inline-flex; align-items: center; gap: 7px; }
.vx-noted s { width: 6px; height: 6px; border-radius: 50%; background: #E5484D; } .vx-noted .good s { background: #22A55B; }
/* the evidence behind it (ui/visitor-read.ts, journey-evidence.ts): steps open their evidence; the diagnosis in four parts */
.vx-hint { color: #A1A1AA; }
.vx-more { margin: 12px 0 0; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 500; color: #1D4ED8; cursor: pointer; text-align: left; }
.vx-more::after { content: " →"; } .vx-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.vx-more:focus-visible { outline: 2px solid #3B82F6; outline-offset: 3px; border-radius: 4px; }
/* the side panels */
.vxp { display: grid; gap: 22px; font-variant-numeric: tabular-nums; }
.vxp section { margin: 0; display: grid; gap: 8px; }
.vxp h4 { margin: 0; font-size: 12.5px; font-weight: 500; color: #71717A; }
.sd-pb .vxp-sum { font-size: 16px; line-height: 1.45; color: #18181B; } .vxp-sum b { font-weight: 600; }
.sd-pb .vxp-note { font-size: 12.5px; color: #A1A1AA; }
.vxp-t { width: 100%; border-collapse: collapse; font-size: 14px; }
.vxp-t th { padding: 0 0 6px; font-size: 12px; font-weight: 400; color: #A1A1AA; text-align: right; } .vxp-t th:first-child { text-align: left; }
.vxp-t td { padding: 7px 0; box-shadow: inset 0 1px 0 #F0F0F2; text-align: right; color: #18181B; white-space: nowrap; }
.vxp-t td:first-child { text-align: left; white-space: normal; overflow-wrap: anywhere; padding-right: 12px; color: #3F3F46; }
.vxp-t small { font-size: 11.5px; color: #A1A1AA; }
.vxp-t tr.bad td:last-child, .vxp-t tr.real td { color: #C9372C; } .vxp-t tr.good td:last-child { color: #156B3A; } .vxp-t tr.real td:first-child { color: #18181B; }
.vxp-ends { list-style: none; margin: 0; padding: 0; } .vxp-ends li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; box-shadow: inset 0 1px 0 #F0F0F2; font-size: 14px; color: #3F3F46; }
.vxp-ends span { overflow-wrap: anywhere; } .vxp-ends b { font-weight: 500; color: #18181B; }
.vxp-gaps ul, .vxp-tests, .vxp-cmp { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.vxp-gaps li { padding: 6px 0 6px 14px; position: relative; font-size: 13.5px; line-height: 1.45; color: #52525B; }
.vxp-gaps li::before { content: ""; position: absolute; left: 0; top: 14px; width: 6px; height: 1.5px; background: #A1A1AA; }
.vxp-tests li, .vxp-cmp li { padding: 12px 0; box-shadow: inset 0 1px 0 #F0F0F2; display: grid; gap: 4px; }
.vxp-tests li p:first-child, .vxp-cmp li p:first-child { display: flex; justify-content: space-between; gap: 12px; color: #18181B; }
.vxp-tests li p:first-child span, .vxp-cmp li p:first-child span { font-size: 12.5px; color: #71717A; white-space: nowrap; }
.vxp-tests li.for p:first-child span, .vxp-cmp li.bad p:first-child span { color: #C9372C; } .vxp-cmp li.good p:first-child span { color: #156B3A; }
.vxp-tests b, .vxp-cmp b, .vxp-rec h4 { font-weight: 600; color: #18181B; }
/* inside each Google campaign (ui/ads-inside.ts): each edit under a change, full ad text, and the Campaigns tab's open view */
.ax-items { margin: 4px 0 0; padding: 0 0 0 16px; font-size: 12.5px; color: #71717A; white-space: normal; text-align: left; }
.ax-chg td, .ax-chg th { white-space: normal; vertical-align: top; text-align: left; padding-right: 12px; } .ax-chg td:first-child { white-space: nowrap; } .ax-chg td:last-child { color: #71717A; font-size: 12.5px; padding-right: 0; }
.ax-wide { overflow-x: auto; } .ax-set td:first-child { width: 45%; } .ax-set td:last-child { white-space: normal; } .ax-assets td:first-child { width: 34%; overflow-wrap: normal; } .ax-assets td:last-child { white-space: normal; text-align: left; color: #3F3F46; }
.ax-ads { list-style: none; margin: 0; padding: 0; display: grid; }
.ax-ads li { padding: 10px 0; box-shadow: inset 0 1px 0 #F0F0F2; display: grid; gap: 3px; overflow-wrap: anywhere; }
.ax-ads p { margin: 0; } .ax-ad-h { color: #1A0DAB; font-weight: 500; } .ax-ad-d { color: #3F3F46; font-size: 13.5px; } .ax-ad-f { font-size: 12px; color: #A1A1AA; }
.ax-full { display: grid; gap: 18px; } .ax-fc { padding: 18px 0 0; box-shadow: inset 0 1px 0 #E4E4E7; min-width: 0; }
.ax-fc h3 { margin: 0; font-size: 17px; } .ax-fc > p.small { margin: -16px 0 0; } .ax-fc .vxp-note { font-size: 12.5px; color: #A1A1AA; } .ax-fc .vxp-t { max-width: 760px; }
/* the journey map (Ollie, 28 Oct 2026: "it has to be a visual map of the customer journey!") */
.jm-c { margin-top: 16px; padding: 22px 24px 16px; }
.jm-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.jm-eye { margin: 0 0 6px; font-size: 12.5px; color: #71717A; }
.jm-c h2 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: #18181B; }
.jm-tabs { display: grid; gap: 10px; margin-top: 14px; }
.jm-tabs > input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.jm-tl { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 4px; padding: 3px; border-radius: 9px; background: #F4F4F5; justify-self: start; max-width: 100%; }
.jm-tl label { flex: none; padding: 6px 11px; border-radius: 7px; font-size: 13px; color: #52525B; cursor: pointer; transition: background 160ms cubic-bezier(.22, 1, .36, 1), color 160ms; }
.jm-tl label:hover { color: #18181B; }
.jm-tabs > .jm-sc { display: none; overflow-x: auto; }
.jm-tabs > input:nth-of-type(1):checked ~ .jm-sc:nth-of-type(2) { display: block; } .jm-tabs > input:nth-of-type(1):checked ~ .jm-tl label:nth-of-type(1) { background: #FFFFFF; color: #18181B; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); } .jm-tabs > input:nth-of-type(1):focus-visible ~ .jm-tl label:nth-of-type(1) { outline: 2px solid #3B82F6; outline-offset: 1px; }
.jm-tabs > input:nth-of-type(2):checked ~ .jm-sc:nth-of-type(3) { display: block; } .jm-tabs > input:nth-of-type(2):checked ~ .jm-tl label:nth-of-type(2) { background: #FFFFFF; color: #18181B; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); } .jm-tabs > input:nth-of-type(2):focus-visible ~ .jm-tl label:nth-of-type(2) { outline: 2px solid #3B82F6; outline-offset: 1px; }
.jm-tabs > input:nth-of-type(3):checked ~ .jm-sc:nth-of-type(4) { display: block; } .jm-tabs > input:nth-of-type(3):checked ~ .jm-tl label:nth-of-type(3) { background: #FFFFFF; color: #18181B; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); } .jm-tabs > input:nth-of-type(3):focus-visible ~ .jm-tl label:nth-of-type(3) { outline: 2px solid #3B82F6; outline-offset: 1px; }
.jm-tabs > input:nth-of-type(4):checked ~ .jm-sc:nth-of-type(5) { display: block; } .jm-tabs > input:nth-of-type(4):checked ~ .jm-tl label:nth-of-type(4) { background: #FFFFFF; color: #18181B; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); } .jm-tabs > input:nth-of-type(4):focus-visible ~ .jm-tl label:nth-of-type(4) { outline: 2px solid #3B82F6; outline-offset: 1px; }
.jm-tabs > input:nth-of-type(5):checked ~ .jm-sc:nth-of-type(6) { display: block; } .jm-tabs > input:nth-of-type(5):checked ~ .jm-tl label:nth-of-type(5) { background: #FFFFFF; color: #18181B; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); } .jm-tabs > input:nth-of-type(5):focus-visible ~ .jm-tl label:nth-of-type(5) { outline: 2px solid #3B82F6; outline-offset: 1px; }
.jm-tabs > input:nth-of-type(6):checked ~ .jm-sc:nth-of-type(7) { display: block; } .jm-tabs > input:nth-of-type(6):checked ~ .jm-tl label:nth-of-type(6) { background: #FFFFFF; color: #18181B; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); } .jm-tabs > input:nth-of-type(6):focus-visible ~ .jm-tl label:nth-of-type(6) { outline: 2px solid #3B82F6; outline-offset: 1px; }
.jm-tabs > input:nth-of-type(7):checked ~ .jm-sc:nth-of-type(8) { display: block; } .jm-tabs > input:nth-of-type(7):checked ~ .jm-tl label:nth-of-type(7) { background: #FFFFFF; color: #18181B; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); } .jm-tabs > input:nth-of-type(7):focus-visible ~ .jm-tl label:nth-of-type(7) { outline: 2px solid #3B82F6; outline-offset: 1px; }
.jm-tabs > input:nth-of-type(8):checked ~ .jm-sc:nth-of-type(9) { display: block; } .jm-tabs > input:nth-of-type(8):checked ~ .jm-tl label:nth-of-type(8) { background: #FFFFFF; color: #18181B; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); } .jm-tabs > input:nth-of-type(8):focus-visible ~ .jm-tl label:nth-of-type(8) { outline: 2px solid #3B82F6; outline-offset: 1px; }
.jm { display: block; width: 100%; min-width: 720px; height: auto; }
.jm-h { font: 500 12px Geist, system-ui, sans-serif; fill: #A1A1AA; letter-spacing: .02em; }
.jm-l { fill: none; stroke: #3B82F6; stroke-opacity: .22; transition: stroke-opacity 160ms cubic-bezier(.22, 1, .36, 1); }
.jm-l.left { stroke: #A1A1AA; stroke-opacity: .18; } .jm-l.order { stroke: #1D4ED8; stroke-opacity: .55; }
.jm-l:hover { stroke-opacity: .6; } .jm-l.left:hover { stroke-opacity: .45; } .jm-l.order:hover { stroke-opacity: .85; }
.jm-n { fill: #3B82F6; } .jm-n.left { fill: #A1A1AA; } .jm-n.order { fill: #1D4ED8; }
.jm-t { font: 500 13px Geist, system-ui, sans-serif; fill: #18181B; }
.jm-v { font: 400 12px "Geist Mono", ui-monospace, monospace; fill: #71717A; letter-spacing: -0.02em; }
.jm-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 0; font-size: 12px; color: #A1A1AA; }
.jm-key span { display: inline-flex; align-items: center; gap: 6px; }
.jm-key i { display: inline-block; width: 18px; height: 6px; border-radius: 3px; background: #93B4F8; } .jm-key i.left { background: #D4D4D8; } .jm-key i.order { background: #1D4ED8; }
@media (max-width: 600px) { .jm-c { padding: 18px 16px 14px; } .jm-c h2 { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .jm-l, .jm-tl label { transition: none; } }
/* the pop-ups, visual (Ollie, 28 Oct 2026: "wayyyy less text heavy ... visually pleasing, simple and interactive") */
.vxp-hero { display: grid; gap: 10px; }
.vxp-hero > p { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.vxp-hero > p > b { font: 500 40px/1 "Geist Mono", ui-monospace, monospace; letter-spacing: -0.05em; color: #18181B; }
.sd-pb .vxp-hero > p > span { font-size: 15px; color: #3F3F46; }
.vxp-split { display: flex; height: 12px; border-radius: 6px; background: #E1E9FD; overflow: hidden; }
.vxp-split b { display: block; height: 100%; background: #3B82F6; border-radius: 6px 0 0 6px; }
.sd-pb .vxp-leg { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: #71717A; }
.vxp-leg b { font-weight: 500; color: #3F3F46; } .vxp-leg .on b { color: #1D4ED8; }
.vxp-tabs { display: grid; gap: 14px; }
.vxp-tabs > input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.vxp-tl { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 4px; padding: 3px; border-radius: 9px; background: #F4F4F5; justify-self: start; max-width: 100%; }
.vxp-tl label { flex: none; padding: 6px 11px; border-radius: 7px; font-size: 13px; color: #52525B; cursor: pointer; transition: background 160ms cubic-bezier(.22, 1, .36, 1), color 160ms; }
.vxp-tl label:hover { color: #18181B; }
.vxp .vxp-tabs > section { display: none; }
.vxp-tabs > input:nth-of-type(1):checked ~ section:nth-of-type(1) { display: grid; } .vxp-tabs > input:nth-of-type(1):checked ~ .vxp-tl label:nth-of-type(1) { background: #FFFFFF; color: #18181B; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); } .vxp-tabs > input:nth-of-type(1):focus-visible ~ .vxp-tl label:nth-of-type(1) { outline: 2px solid #3B82F6; outline-offset: 1px; }
.vxp-tabs > input:nth-of-type(2):checked ~ section:nth-of-type(2) { display: grid; } .vxp-tabs > input:nth-of-type(2):checked ~ .vxp-tl label:nth-of-type(2) { background: #FFFFFF; color: #18181B; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); } .vxp-tabs > input:nth-of-type(2):focus-visible ~ .vxp-tl label:nth-of-type(2) { outline: 2px solid #3B82F6; outline-offset: 1px; }
.vxp-tabs > input:nth-of-type(3):checked ~ section:nth-of-type(3) { display: grid; } .vxp-tabs > input:nth-of-type(3):checked ~ .vxp-tl label:nth-of-type(3) { background: #FFFFFF; color: #18181B; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); } .vxp-tabs > input:nth-of-type(3):focus-visible ~ .vxp-tl label:nth-of-type(3) { outline: 2px solid #3B82F6; outline-offset: 1px; }
.vxp-tabs > input:nth-of-type(4):checked ~ section:nth-of-type(4) { display: grid; } .vxp-tabs > input:nth-of-type(4):checked ~ .vxp-tl label:nth-of-type(4) { background: #FFFFFF; color: #18181B; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); } .vxp-tabs > input:nth-of-type(4):focus-visible ~ .vxp-tl label:nth-of-type(4) { outline: 2px solid #3B82F6; outline-offset: 1px; }
.vxp-tabs > input:nth-of-type(5):checked ~ section:nth-of-type(5) { display: grid; } .vxp-tabs > input:nth-of-type(5):checked ~ .vxp-tl label:nth-of-type(5) { background: #FFFFFF; color: #18181B; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); } .vxp-tabs > input:nth-of-type(5):focus-visible ~ .vxp-tl label:nth-of-type(5) { outline: 2px solid #3B82F6; outline-offset: 1px; }
.vxp-tabs > input:nth-of-type(6):checked ~ section:nth-of-type(6) { display: grid; } .vxp-tabs > input:nth-of-type(6):checked ~ .vxp-tl label:nth-of-type(6) { background: #FFFFFF; color: #18181B; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); } .vxp-tabs > input:nth-of-type(6):focus-visible ~ .vxp-tl label:nth-of-type(6) { outline: 2px solid #3B82F6; outline-offset: 1px; }
.vxp-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.vxp-bars li { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr) 58px; align-items: center; column-gap: 12px; min-height: 32px; padding: 0 6px; margin: 0 -6px; border-radius: 6px; transition: background 160ms cubic-bezier(.22, 1, .36, 1); }
.vxp-bars li:hover { background: #F7F7F8; }
.vxp-bars span { font-size: 13.5px; color: #3F3F46; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vxp-tr { position: relative; display: block; height: 10px; border-radius: 0 5px 5px 0; background: #F1F4FD; }
.vxp-tr b { display: block; height: 100%; border-radius: 0 5px 5px 0; background: #3B82F6; transition: filter 160ms; }
.vxp-bars li:hover .vxp-tr b { filter: brightness(.92); }
.vxp-tr s { position: absolute; left: 0; top: -4px; bottom: -4px; border-right: 1.5px dashed #52525B; z-index: 1; }
.vxp-bars em { font: 500 13.5px/1 "Geist Mono", ui-monospace, monospace; font-style: normal; letter-spacing: -0.03em; text-align: right; color: #18181B; white-space: nowrap; }
.vxp-bars em small { margin-left: 3px; font-size: 12px; }
.vxp-bars li.good em { color: #156B3A; } .vxp-bars li.bad em { color: #A1261F; }
.vxp-bars li.rough .vxp-tr b { opacity: .45; } .vxp-bars li.rough em { color: #A1A1AA; }
.vxp-cmpb li { padding-top: 6px; padding-bottom: 6px; }
.sd-pb .vxp-cmpb li > p { grid-column: 1 / -1; margin: 2px 0 0; font-size: 11.5px; color: #A1A1AA; }
.sd-pb .vxp-key { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: #A1A1AA; }
.vxp-key span { display: inline-flex; align-items: center; gap: 6px; } .vxp-key small { font-size: 12px; color: #52525B; }
.vxp-key s { display: inline-block; height: 12px; border-right: 1.5px dashed #52525B; }
.vxp-more summary { cursor: pointer; font-size: 13px; color: #71717A; } .vxp-more ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.vxp-more li { font-size: 13px; line-height: 1.45; color: #52525B; }
.vxp-one { display: grid; gap: 8px; }
@media (prefers-reduced-motion: reduce) { .vxp-tl label, .vxp-bars li, .vxp-tr b { transition: none; } }
.vxp-rec { padding-top: 14px; box-shadow: inset 0 1px 0 #F0F0F2; } .vxp-rec h4 { font-size: 15px; }
.vxp-rec dl { margin: 0; display: grid; gap: 2px; } .vxp-rec dt { margin-top: 8px; font-size: 12px; color: #A1A1AA; } .vxp-rec dd { margin: 0; font-size: 14px; line-height: 1.5; color: #3F3F46; }
@media (max-width: 1100px) { .vx { padding: 32px 30px; } .vx-t { font-size: 34px; } }
@media (max-width: 900px) {
  .vx-cmp { grid-template-columns: minmax(0, 1fr); gap: 30px; }
}
/* phones: their own composition. The headline and the scale, then the journey as a stepper whose figures sit in a column
   on the left (clear of the floating Atlas AI button), then what to check; the comparisons after. */
@media (max-width: 640px) {
  .vx { padding: 26px 20px 28px; }
  .vx-t { margin-top: 14px; font-size: 30px; line-height: 1.06; }
  .vx-scale { margin-top: 12px; font-size: 15.5px; }
  .vx-hint { display: block; margin-top: 4px; }
  .vx-cmp { margin-top: 30px; padding-top: 22px; gap: 28px; }
  .vx-dots li { grid-template-columns: minmax(0, 1fr) 80px 40px; }
}
@media (prefers-reduced-motion: reduce) { .vx-dots li { transition: none; } }
@media (max-width: 640px) { .day-read { padding: 12px 14px 14px; } .day-read-t { font-size: 15px; } .day-read-c a { min-height: 32px; } }
/* Visitors explained as a step funnel (ui/visitor-read.ts; Heap's funnel in Atlas's look, Ollie 28 Oct 2026). Two cards
   side by side: the path to an order, every bar on one axis, the light part of each bar the step before, so the light that
   shows is exactly who dropped; and Atlas AI's next step beside it, its evidence drawn the same way. Blue is the fill;
   violet (Atlas AI's colour) is the step it investigated, a pair that passes the dataviz palette check, where a deeper
   blue didn't. Sizes are classes because the page's rules allow no inline styles. */
.vxf { display: grid; gap: 8px; margin: 0 0 8px; }
.vxf section { margin: 0; }
.vf { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 8px; align-items: stretch; }
.vf-fun { padding: 20px 22px; display: flex; flex-direction: column; }
/* when Atlas AI's card runs longer, the steps share the extra height, so both cards end together */
.vf-fn { flex: 1 0 auto; display: flex; flex-direction: column; }
.vf-steps { flex: 1 0 auto; display: flex; flex-direction: column; }
.vf-steps li { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; }
.vf-ct { margin: 0; display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: #52525B; }
.vf-top { margin-top: 14px; padding-bottom: 18px; box-shadow: inset 0 -1px 0 #F1F1F3; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: start; }
.vf-big { margin: 0; }
.vf-big b { display: block; font: 500 34px/1 "Geist Mono", ui-monospace, monospace; letter-spacing: -0.05em; color: #2563EB; font-variant-numeric: tabular-nums; }
.vf-big span { display: block; margin-top: 6px; font-size: 12px; color: #71717A; }
.vf-most { min-width: 0; padding-top: 2px; }
.vf-h { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.35; color: #18181B; letter-spacing: -0.01em; text-wrap: balance; }
.vf-h em { font-style: normal; }
.vf-most p { margin: 4px 0 0; max-width: 72ch; font-size: 13px; line-height: 1.45; color: #52525B; font-variant-numeric: tabular-nums; text-wrap: pretty; }
.vf-most p.vf-note, .vf-note { margin: 8px 0 0; font-size: 12px; line-height: 1.45; color: #71717A; }
.vf-wait { margin: 12px 0 0; font-size: 13px; line-height: 1.45; color: #A1A1AA; }

/* the funnel: number, name, track, chevron; the axis and its gridlines sit over the track column only */
.vf-fn { position: relative; margin-top: 14px; }
.vf-fn > .vf-ax { flex: none; }
.vf-fn::before { content: ""; position: absolute; left: 218px; right: 30px; top: 22px; bottom: 0; pointer-events: none;
  background: linear-gradient(90deg, #F1F1F3 1px, transparent 1px) 0 0 / 20% 100%; box-shadow: inset -1px 0 0 #F1F1F3; }
.vf-g1::before { background-size: 100% 100%; } .vf-g2::before { background-size: 50% 100%; } .vf-g3::before { background-size: 33.3333% 100%; }
.vf-g4::before { background-size: 25% 100%; } .vf-g6::before { background-size: 16.6667% 100%; }
.vf-ax { position: relative; margin: 0 30px 0 218px; height: 22px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); font: 11px/1 "Geist Mono", ui-monospace, monospace; letter-spacing: -0.02em; color: #A1A1AA; font-variant-numeric: tabular-nums; }
.vf-g1 .vf-ax { grid-template-columns: minmax(0, 1fr); } .vf-g2 .vf-ax { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vf-g3 .vf-ax { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vf-g4 .vf-ax { grid-template-columns: repeat(4, minmax(0, 1fr)); } .vf-g6 .vf-ax { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.vf-ax span { justify-self: start; transform: translateX(-50%); white-space: nowrap; }
.vf-ax span:first-child { transform: none; }
.vf-ax span:last-child { position: absolute; right: 0; top: 0; transform: none; }
.vf-steps { position: relative; list-style: none; margin: 0; padding: 0; }
.vf-steps li { margin: 0; }
.vf-row { display: grid; grid-template-columns: 26px 168px minmax(0, 1fr) 18px; column-gap: 12px; align-items: center; min-height: 48px; border-radius: 8px; }
.vf-row[data-sd-open] { cursor: pointer; transition: background-color 160ms cubic-bezier(.22, 1, .36, 1); }
@media (hover: hover) { .vf-row[data-sd-open]:hover { background: rgba(244, 244, 245, .6); } .vf-row[data-sd-open]:hover .vf-nm b { text-decoration: underline; text-decoration-color: #D4D4D8; text-underline-offset: 3px; } .vf-row[data-sd-open]:hover .vf-go { color: #2563EB; } }
.vf-row[data-sd-open]:focus-visible { outline: 2px solid #3B82F6; outline-offset: 2px; }
.vf-no { font-family: "Geist Mono", ui-monospace, monospace; letter-spacing: -0.04em; width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1px #E4E4E7; display: grid; place-items: center; font-size: 11.5px; color: #52525B; }
.vf-nm { margin: 0; min-width: 0; padding: 6px 0; }
.vf-nm b { display: block; font-size: 13px; font-weight: 500; color: #18181B; }
.vf-nm span { display: block; margin-top: 1px; font-size: 11.5px; color: #71717A; }
.vf-tr { margin: 6px 0; height: 36px; display: flex; align-items: center; min-width: 0; }
.vf-gh, .vf-so { height: 100%; display: flex; align-items: center; flex: none; border-radius: 0 5px 5px 0; font-style: normal; }
.vf-gh { background: #E1E9FD; }
.vf-so { justify-content: flex-end; gap: 4px; padding-right: 10px; box-sizing: border-box; background: #3B82F6; font-size: 12px; font-weight: 400; color: rgba(255, 255, 255, .85); white-space: nowrap; overflow: hidden; }
.vf-so .u-m { font-weight: 500; color: #FFFFFF; }
.vf-tr em { flex: none; margin-left: 10px; font-style: normal; font-size: 12px; color: #52525B; white-space: nowrap; }
.vf-tr em .u-m { font-weight: 500; color: #18181B; }
.vf-steps li.none .vf-tr em { color: #A1A1AA; }
.vf-steps li.ai .vf-so { background: #6D28D9; }
.vf-go { font-size: 18px; line-height: 1; color: #A1A1AA; }
.vf-dr { margin: 0; min-height: 26px; padding: 2px 0 2px 44px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12px; color: #52525B; }
.vf-ar { width: 14px; color: #A1A1AA; }
.vf-dr b { font-weight: 500; color: #18181B; }
.vf-lost { margin-left: 6px; color: #71717A; }
.vf-steps li.ai .vf-dr > b { color: #6D28D9; }
.vf-fn.track li.leak .vf-dr, .vf-fn.track li.leak .vf-dr b { color: #71717A; }
.vf-chip { margin-left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; background: #EEF3FF; font-size: 11.5px; font-weight: 500; color: #2563EB; text-decoration: none; }
.vf-chip s { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #2563EB, #8B5CF6); }
.vf-chip:hover { background: #E1E9FD; } .vf-chip:focus-visible { outline: 2px solid #3B82F6; outline-offset: 2px; }
.vf-tot { margin: 12px 0 0; padding-top: 14px; box-shadow: inset 0 1px 0 #F1F1F3; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: #52525B; }
.vf-tot svg { width: 16px; height: 16px; fill: none; stroke: #22A55B; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.vf-tot b { font-weight: 500; color: #18181B; }
.vf-tot span { margin-left: auto; color: #71717A; }
.vf-w0 { width: 0%; } .vf-w1 { width: 1%; } .vf-w2 { width: 2%; } .vf-w3 { width: 3%; } .vf-w4 { width: 4%; } .vf-w5 { width: 5%; } .vf-w6 { width: 6%; } .vf-w7 { width: 7%; } .vf-w8 { width: 8%; } .vf-w9 { width: 9%; } .vf-w10 { width: 10%; } .vf-w11 { width: 11%; } .vf-w12 { width: 12%; } .vf-w13 { width: 13%; } .vf-w14 { width: 14%; } .vf-w15 { width: 15%; } .vf-w16 { width: 16%; } .vf-w17 { width: 17%; } .vf-w18 { width: 18%; } .vf-w19 { width: 19%; } .vf-w20 { width: 20%; } .vf-w21 { width: 21%; } .vf-w22 { width: 22%; } .vf-w23 { width: 23%; } .vf-w24 { width: 24%; } .vf-w25 { width: 25%; } .vf-w26 { width: 26%; } .vf-w27 { width: 27%; } .vf-w28 { width: 28%; } .vf-w29 { width: 29%; } .vf-w30 { width: 30%; } .vf-w31 { width: 31%; } .vf-w32 { width: 32%; } .vf-w33 { width: 33%; } .vf-w34 { width: 34%; } .vf-w35 { width: 35%; } .vf-w36 { width: 36%; } .vf-w37 { width: 37%; } .vf-w38 { width: 38%; } .vf-w39 { width: 39%; } .vf-w40 { width: 40%; } .vf-w41 { width: 41%; } .vf-w42 { width: 42%; } .vf-w43 { width: 43%; } .vf-w44 { width: 44%; } .vf-w45 { width: 45%; } .vf-w46 { width: 46%; } .vf-w47 { width: 47%; } .vf-w48 { width: 48%; } .vf-w49 { width: 49%; } .vf-w50 { width: 50%; } .vf-w51 { width: 51%; } .vf-w52 { width: 52%; } .vf-w53 { width: 53%; } .vf-w54 { width: 54%; } .vf-w55 { width: 55%; } .vf-w56 { width: 56%; } .vf-w57 { width: 57%; } .vf-w58 { width: 58%; } .vf-w59 { width: 59%; } .vf-w60 { width: 60%; } .vf-w61 { width: 61%; } .vf-w62 { width: 62%; } .vf-w63 { width: 63%; } .vf-w64 { width: 64%; } .vf-w65 { width: 65%; } .vf-w66 { width: 66%; } .vf-w67 { width: 67%; } .vf-w68 { width: 68%; } .vf-w69 { width: 69%; } .vf-w70 { width: 70%; } .vf-w71 { width: 71%; } .vf-w72 { width: 72%; } .vf-w73 { width: 73%; } .vf-w74 { width: 74%; } .vf-w75 { width: 75%; } .vf-w76 { width: 76%; } .vf-w77 { width: 77%; } .vf-w78 { width: 78%; } .vf-w79 { width: 79%; } .vf-w80 { width: 80%; } .vf-w81 { width: 81%; } .vf-w82 { width: 82%; } .vf-w83 { width: 83%; } .vf-w84 { width: 84%; } .vf-w85 { width: 85%; } .vf-w86 { width: 86%; } .vf-w87 { width: 87%; } .vf-w88 { width: 88%; } .vf-w89 { width: 89%; } .vf-w90 { width: 90%; } .vf-w91 { width: 91%; } .vf-w92 { width: 92%; } .vf-w93 { width: 93%; } .vf-w94 { width: 94%; } .vf-w95 { width: 95%; } .vf-w96 { width: 96%; } .vf-w97 { width: 97%; } .vf-w98 { width: 98%; } .vf-w99 { width: 99%; } .vf-w100 { width: 100%; }

/* Atlas AI's next step: what it found, the evidence drawn like the funnel, what it couldn't check (dashed), how sure, and
   the one thing to do */
.vf-ai { padding: 18px 20px 20px; }
.vf-aih { margin: 0; display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 500; color: #18181B; }
.vf-aih > span:last-child { margin-left: auto; font-size: 11.5px; font-weight: 400; color: #71717A; }
.vf-tile { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: linear-gradient(135deg, #2563EB, #8B5CF6); }
.vf-tile svg { width: 14px; height: 14px; fill: #FFFFFF; }
.vf-k { margin: 14px 0 0; font-size: 11.5px; color: #71717A; }
.vf-find { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: #18181B; text-wrap: pretty; }
.vf-tag { margin: 10px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 7px; font-size: 11.5px; font-weight: 500; color: #71717A; }
.vf-tag i { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #A1A1AA; }
.vf-tag span { flex-basis: 100%; padding-left: 15px; margin-top: 2px; font-weight: 400; line-height: 1.45; color: #A1A1AA; }
.vf-tag.high { color: #156B3A; } .vf-tag.high i { background: #22A55B; box-shadow: none; }
.vf-tag.medium, .vf-tag.hy { color: #6D28D9; } .vf-tag.medium i, .vf-tag.hy i { box-shadow: inset 0 0 0 1.5px #8B5CF6; }
.vf-mk { margin: 16px 0 0; font-size: 11.5px; color: #71717A; }
.vf-mn { margin: 8px 0 0; display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.vf-mn > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: #18181B; }
.vf-mn .vf-gh { height: 20px; border-radius: 0 4px 4px 0; }
.vf-mn .vf-so { padding: 0; border-radius: 0 4px 4px 0; }
.vf-mn em { font-style: normal; font-size: 11.5px; color: #71717A; text-align: right; white-space: nowrap; }
.vf-mn em b { font-size: 13px; font-weight: 500; color: #18181B; }
.vf-mn.bad em b { color: #A1261F; } .vf-mn.good em b { color: #156B3A; }
.vf-unk { margin-top: 16px; padding: 2px 0 2px 12px; border-left: 2px dashed #C4B5FD; }
.vf-unk .vf-tag { margin: 0; }
.vf-unk p:not(.vf-tag), .vf-unk li { margin: 5px 0 0; font-size: 12.5px; line-height: 1.5; color: #52525B; }
.vf-unk ul { margin: 0; padding: 0 0 0 16px; }
.vf-sure { margin: 16px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12.5px; font-weight: 500; color: #18181B; }
.vf-sure > span:last-child:not(.vf-meter) { flex-basis: 100%; font-size: 11.5px; font-weight: 400; line-height: 1.45; color: #71717A; }
.vf-meter { display: inline-flex; gap: 2px; }
.vf-meter i { width: 16px; height: 6px; border-radius: 2px; background: #E4E4E7; }
.vf-meter.m1 i:first-child, .vf-meter.m2 i:nth-child(-n+2), .vf-meter.m3 i { background: #2563EB; }
.vf-do { margin-top: 16px; padding-top: 16px; box-shadow: inset 0 1px 0 #F1F1F3; }
.vf-dk { margin: 0; font-size: 11.5px; color: #71717A; }
.vf-dt { margin: 5px 0 0; font-size: 13.5px; font-weight: 500; line-height: 1.5; color: #18181B; text-wrap: pretty; }
.vf-btns { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vf-btns form { margin: 0; display: contents; }
.vf-btns .vf-note { margin: 0; flex-basis: 100%; }
.vf-b1, .vf-b2 { min-height: 32px; padding: 8px 12px; border: 0; border-radius: 8px; font: 500 12.5px/1 "Geist", system-ui, sans-serif; cursor: pointer; }
.vf-b1 { background: #18181B; color: #FFFFFF; } .vf-b1:hover { background: #3F3F46; }
.vf-b2 { background: #FFFFFF; color: #18181B; box-shadow: inset 0 0 0 1px #E4E4E7; } .vf-b2:hover { background: #FAFAFA; }
.vf-b1:focus-visible, .vf-b2:focus-visible, .vf-link:focus-visible { outline: 2px solid #3B82F6; outline-offset: 2px; }
.vf-link { margin: 14px 0 0; padding: 0; border: 0; background: none; font: inherit; font-size: 12.5px; color: #2563EB; cursor: pointer; text-align: left; }
.vf-link::after { content: " →"; } .vf-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* who orders: the three comparisons, in their own card under the funnel */
.vx-cmpc { padding: 20px 22px 22px; }
.vx-cmpc .vx-cmp { margin-top: 0; padding-top: 0; box-shadow: none; }
.vx-cmpc .vx-noted { margin-top: 24px; }
/* where visits that didn't buy stopped (page-read.ts): one block per page and device, two to a row */
.vx-why .vx-cmp { margin-top: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 44px; }
.vx-why .vx-v + .vx-v { margin-top: 8px; }
.vx-why > .vf-note { margin-top: 20px; }
@media (max-width: 760px) { .vx-why .vx-cmp { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1100px) { .vf { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .vf-fun, .vf-ai, .vx-cmpc { padding: 16px; }
  .vf-top { gap: 14px 18px; } .vf-big b { font-size: 28px; }
  .vf-fn::before { display: none; }
  .vf-ax { margin: 0; }
  .vf-row { grid-template-columns: 22px minmax(0, 1fr) 14px; column-gap: 10px; row-gap: 0; }
  .vf-no { align-self: start; margin-top: 6px; }
  .vf-nm { padding: 6px 0 0; } .vf-nm b, .vf-nm span { display: inline; } .vf-nm span { margin-left: 6px; }
  .vf-go { grid-column: 3; grid-row: 1; align-self: start; margin-top: 6px; }
  .vf-tr { grid-column: 1 / -1; height: 30px; margin: 6px 0 2px; }
  .vf-dr { padding-left: 0; }
  .vf-chip { margin-left: 20px; }
  .vf-tot span { margin-left: 0; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .vf-row[data-sd-open] { transition: none; } }
/* The Ads overview (ui/ads.ts, 27 Oct 2026): Visitors explained's composition for ad money. One card, no inner cards:
   the headline, four figures that open what's behind them, spend beside what came back on one scale, then the campaigns
   and this week side by side, the season last and quiet. Ink is spend; blue is what the platforms report; slate is what
   the shop saw; the estimate is an outline, so it never reads as money banked. Coral and green only on a judged verdict. */
.ax .vx-scale { max-width: 68ch; }
.ax-few .vx-t em, .ax-nocosts .vx-t em, .ax-none .vx-t em { color: #71717A; } .ax-above .vx-t em { color: #156B3A; }
.ax-figs { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; box-shadow: inset 0 1px 0 #EDEDEF, inset 0 -1px 0 #EDEDEF; }
.ax-figs li { min-width: 0; padding: 18px 20px 18px 0; margin-right: 20px; cursor: pointer; border-radius: 8px; transition: background-color 180ms cubic-bezier(.22, 1, .36, 1); }
.ax-figs li + li { padding-left: 20px; margin-left: -20px; box-shadow: inset 1px 0 0 #EDEDEF; border-radius: 0; }
@media (hover: hover) { .ax-figs li:hover .ax-fl { color: #18181B; } .ax-figs li:hover .ax-fl::after { opacity: 1; transform: translateX(0); } }
.ax-figs li:focus-visible, .axb-r:focus-visible, .ax-cl li:focus-visible { outline: 2px solid #3B82F6; outline-offset: 2px; }
.ax-fl { margin: 0; font-size: 12.5px; color: #71717A; transition: color 150ms ease; }
.ax-fl::after { content: " →"; display: inline-block; opacity: 0; transform: translateX(-3px); transition: opacity 150ms ease, transform 150ms ease; }
.ax-fv { margin: 8px 0 0; font: 500 30px/1 "Geist Mono", ui-monospace, monospace; letter-spacing: -0.05em; color: #18181B; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ax-figs li.good .ax-fv { color: #156B3A; } .ax-figs li.bad .ax-fv { color: #A1261F; }
.ax-fs { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: #52525B; }
.ax-fp { margin: 3px 0 0; font-size: 12.5px; color: #A1A1AA; font-variant-numeric: tabular-nums; }
.ax-sh { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.ax-sh h3 { margin: 0; font-size: 13.5px; font-weight: 500; color: #18181B; }
.ax-sh .vx-more { margin: 0; }
.ax-pic { margin-top: 36px; }
/* spend beside what came back: one scale */
.axb { margin: 14px 0 0; }
.axb ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.axb-r { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) 7.5rem; align-items: center; column-gap: 20px; min-height: 52px; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; cursor: pointer; transition: background-color 180ms cubic-bezier(.22, 1, .36, 1); }
@media (hover: hover) { .axb-r:hover { background: #FAFAFA; } }
.axb-l, .axb-v, .axb-t { margin: 0; }
.axb-l span { display: block; font-size: 14px; color: #18181B; line-height: 1.3; }
.axb-l small, .axb-v small { display: block; margin-top: 2px; font-size: 12px; color: #A1A1AA; }
.axb-t { position: relative; height: 22px; }
.axb-t::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #F0F0F2; }
.axb-bar { position: absolute; left: 0; top: 3px; bottom: 3px; width: 0; border-radius: 3px; background: #18181B; transition: width 640ms cubic-bezier(.22, 1, .36, 1); }
.axb-r.axb-rep .axb-bar { background: #3B82F6; }
.axb-r.axb-own .axb-bar { background: #64748B; }
.axb-r.axb-est .axb-bar { background: transparent; box-shadow: inset 0 0 0 1.5px #3B82F6; background-image: repeating-linear-gradient(135deg, rgba(59, 130, 246, .14) 0 4px, transparent 4px 8px); }
.axb-r.axb-est .axb-bar.neg { box-shadow: inset 0 0 0 1.5px #E5484D; background-image: repeating-linear-gradient(135deg, rgba(229, 72, 77, .14) 0 4px, transparent 4px 8px); }
.axb-none { position: relative; z-index: 1; padding-right: 8px; background: #FFFFFF; font-size: 13px; color: #A1A1AA; line-height: 22px; }
@media (hover: hover) { .axb-r:hover .axb-none { background: #FAFAFA; } }
.axb-be { position: absolute; top: -4px; bottom: -4px; width: 0; border-left: 1.5px dashed #18181B; }
.axb-v { text-align: right; }
.axb-v b { font: 500 16px/1.1 "Geist Mono", ui-monospace, monospace; letter-spacing: -0.04em; color: #18181B; font-variant-numeric: tabular-nums; }
.axb-r.axb-est .axb-v b { color: #52525B; }
.axb figcaption { margin: 12px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 12.5px; line-height: 1.5; color: #A1A1AA; }
.axb-k { display: inline-flex; align-items: center; gap: 6px; color: #52525B; } .axb-k s { width: 0; height: 12px; border-left: 1.5px dashed #18181B; }
/* campaigns, and this week */
.ax-two { margin-top: 40px; padding-top: 28px; box-shadow: inset 0 1px 0 #EDEDEF; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 52px; }
.ax-two > section:only-child { grid-column: 1 / -1; max-width: 640px; }
.ax-two .vx-v { margin-top: 8px; }
.ax-col > section + section { margin-top: 32px; }
.ax-cl { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.ax-cl li { display: grid; grid-template-columns: minmax(0, 1fr) 88px 104px; align-items: center; column-gap: 14px; min-height: 48px; padding: 4px 8px; margin: 0 -8px; border-radius: 8px; cursor: pointer; transition: background-color 180ms cubic-bezier(.22, 1, .36, 1); }
@media (hover: hover) { .ax-cl li:hover { background: #FAFAFA; } }
.ax-cn { min-width: 0; } .ax-cn b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 500; color: #18181B; }
.ax-cn small, .ax-cv small { display: block; margin-top: 2px; font-size: 12px; color: #A1A1AA; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-cl .vx-avg { width: 0; border-left: 1.5px dashed #18181B; background: none; top: -2px; bottom: -2px; }
.ax-cl li.good .vx-dot { background: #22A55B; } .ax-cl li.bad .vx-dot { background: #E5484D; }
.ax-cv { text-align: right; } .ax-cv b { font: 500 14px/1 "Geist Mono", ui-monospace, monospace; letter-spacing: -0.04em; color: #3F3F46; font-variant-numeric: tabular-nums; }
.ax-cl li.good .ax-cv small { color: #156B3A; } .ax-cl li.bad .ax-cv small { color: #A1261F; }
.ax-camps .vx-legend i { width: 0; border-left: 1.5px dashed #18181B; background: none; }
.ax-tl { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 18px; }
.ax-tl li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; }
.ax-tn { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px #E4E4E7; display: grid; place-items: center; font: 500 11.5px/1 "Geist Mono", ui-monospace, monospace; color: #71717A; }
.ax-tw { margin: 1px 0 0; font-size: 14.5px; font-weight: 500; line-height: 1.35; color: #18181B; text-wrap: pretty; }
.ax-ty { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: #52525B; text-wrap: pretty; }
.ax-tf { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: #A1A1AA; }
.ax-tf a { color: #1D4ED8; font-weight: 500; text-decoration: none; } .ax-tf a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ax-todo > .ax-tf { margin-top: 18px; }
/* the season: last, small */
.ax-season { margin-top: 40px; padding-top: 24px; box-shadow: inset 0 1px 0 #EDEDEF; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 52px; align-items: end; }
.ax-season h3 { grid-column: 1 / -1; margin: 0 0 8px; font-size: 13.5px; font-weight: 500; color: #18181B; }
.ax-season .vx-v { grid-column: 1; grid-row: 2; align-self: start; }
.ax-season .ax-bars { grid-column: 2; grid-row: 2 / span 2; height: 56px; }
.ax-season .vx-legend { grid-column: 1; margin-top: 8px; display: block; }
.ax-season .vx-more { grid-column: 1; }
.ax-wk { height: 64px; } .ax-wk i { background: #18181B; }
@media (max-width: 1100px) { .ax-figs .ax-fv { font-size: 26px; } }
@media (max-width: 900px) {
  .ax-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ax-figs li:nth-child(3) { padding-left: 0; margin-left: 0; box-shadow: inset 0 1px 0 #EDEDEF; }
  .ax-figs li:nth-child(4) { box-shadow: inset 1px 0 0 #EDEDEF, inset 0 1px 0 #EDEDEF; }
  .ax-two { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .ax-season { grid-template-columns: minmax(0, 1fr); } .ax-season .vx-v, .ax-season .ax-bars, .ax-season .vx-legend { grid-column: 1; grid-row: auto; }
  .ax-season .ax-bars { margin-top: 14px; }
}
/* phones: their own order. Headline and line, the figures two by two (each a full tap target), each bar row as label, then
   bar and figure, the campaigns as rows without the axis, this week, the season. Room at the end for the Atlas AI button. */
@media (max-width: 640px) {
  .ax { padding-bottom: 88px; }
  .ax-figs { margin-top: 26px; }
  .ax-figs li { padding: 14px 12px 14px 0; margin-right: 12px; min-height: 96px; }
  .ax-figs li + li { padding-left: 12px; margin-left: -12px; }
  .ax-figs li:nth-child(3) { padding-left: 0; margin-left: 0; }
  .ax-fv { font-size: 24px; } .ax-fs { font-size: 12.5px; } .ax-fl::after { opacity: 1; transform: none; color: #A1A1AA; }
  .ax-pic { margin-top: 28px; } .ax-sh .vx-hint { display: none; }
  .axb-r { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l v" "t t"; row-gap: 8px; padding: 10px 8px; }
  .axb-l { grid-area: l; } .axb-v { grid-area: v; } .axb-t { grid-area: t; }
  .ax-two { margin-top: 30px; padding-top: 22px; }
  .ax-cl li { grid-template-columns: minmax(0, 1fr) auto; min-height: 52px; } .ax-cl .vx-axis { display: none; }
  .ax-season { margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) { .axb-bar, .ax-figs li, .axb-r, .ax-cl li, .ax-fl::after { transition: none; } }
/* What's working (ui/ads-board.ts): the call first for every campaign, then its figures and which way it moved */
.axv, .ax .axv { margin-top: 36px; padding-top: 24px; box-shadow: inset 0 1px 0 #EDEDEF; }
.axv-lead { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: #52525B; text-wrap: pretty; } .axv-lead b { color: #18181B; font-weight: 600; }
.axv-gs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
.axv-g { margin-top: 20px; min-width: 0; } .axv-g h4 { margin: 0; font-size: 12.5px; font-weight: 500; color: #71717A; }
.axv-e { margin: 6px 0 0; font-size: 13px; color: #A1A1AA; }
.axv-l { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.axv-r { display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-areas: "c n" ". s"; align-items: start; column-gap: 12px; padding: 8px; margin: 0 -8px; border-radius: 8px; cursor: pointer; transition: background-color 180ms cubic-bezier(.22, 1, .36, 1); }
@media (hover: hover) { .axv-r:hover { background: #FAFAFA; } }
.axv-r:focus-visible { outline: 2px solid #3B82F6; outline-offset: 2px; }
.axv-r > .axv-chip { grid-area: c; margin-top: 1px; } .axv-n { grid-area: n; min-width: 0; } .axv-s { grid-area: s; min-width: 0; }
.axv-n b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 500; color: #18181B; }
.axv-n small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: #71717A; font-variant-numeric: tabular-nums; }
.axv-chip { display: inline-block; min-width: 64px; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1.3; text-align: center; white-space: nowrap; background: #F4F4F5; color: #52525B; }
.axv-scale { background: #DCFCE7; color: #156B3A; } .axv-keep { background: #F0FDF4; color: #156B3A; box-shadow: inset 0 0 0 1px #BBF7D0; }
.axv-fix { background: #FEF3C7; color: #8A4B0B; } .axv-cut { background: #FEE2E2; color: #A1261F; }
.axv-tr { display: block; margin-top: 2px; font-size: 12px; color: #A1A1AA; } .axv-better { color: #156B3A; } .axv-worse { color: #A1261F; }
.axv-t td { vertical-align: top; } .axv-t td:first-child { white-space: normal; } .axv-t .axv-why { display: block; margin-top: 2px; color: #A1A1AA; font-size: 12px; line-height: 1.4; }
.vxp-sum .axv-chip { margin-right: 6px; vertical-align: 1px; }
/* advice already acted on (acted.ts, 3 Nov 2026): a quiet blue chip, the "I've done this" button under the advice */
.axv-done { background: #E0ECFF; color: #1D4ED8; } .axv-f { margin: 8px 0 0; } .axv-t .axv-f { margin-top: 4px; }
@media (max-width: 760px) { .axv-gs { grid-template-columns: minmax(0, 1fr); gap: 0; } .axv-r { grid-template-columns: 68px minmax(0, 1fr); } .axv-chip { min-width: 56px; } }
@media (prefers-reduced-motion: reduce) { .axv-r { transition: none; } }

/* Why sales moved, at the top of Sales (ui/sales-why.ts): the reason, two or three numbered causes, one thing to do */
.sales-why { margin: 6px 0 14px; padding: 14px 16px 16px; }
.sales-why-t { margin: 0 0 10px; font-size: 17px; line-height: 1.35; font-weight: 600; color: #18181B; text-wrap: pretty; }
.sales-why-c { margin: 0 0 10px; padding: 0; list-style: none; counter-reset: why; display: grid; gap: 8px; }
.sales-why-c li { counter-increment: why; display: grid; grid-template-columns: 22px 1fr; gap: 0 8px; font-size: 14px; line-height: 1.45; color: #3F3F46; }
.sales-why-c li::before { content: counter(why); width: 22px; height: 22px; border-radius: 50%; background: #EEF2FF; color: #4338CA; font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.sales-why-c li b { color: #18181B; font-weight: 600; }
.sales-why-c li p { margin: 0; }
.sales-why-f { margin: 8px 0 0; font-size: 12px; color: #71717A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sales-why-t, :root:not([data-theme="light"]) .sales-why-c li b { color: #FAFAFA; }
  :root:not([data-theme="light"]) .sales-why-c li { color: #D4D4D8; } :root:not([data-theme="light"]) .sales-why-c li::before { background: #312E81; color: #E0E7FF; } }
:root[data-theme="dark"] .sales-why-t, :root[data-theme="dark"] .sales-why-c li b { color: #FAFAFA; }
:root[data-theme="dark"] .sales-why-c li { color: #D4D4D8; } :root[data-theme="dark"] .sales-why-c li::before { background: #312E81; color: #E0E7FF; }

/* Inventory, unslop pass (2 Nov 2026): what to reorder leads, one loud mark per row at most, the charts in one row
   with the small ones stacked, the delivery form in columns, product years as one hue light to dark */
:root { --age1: var(--series1); --age2: color-mix(in oklab, var(--series1) 80%, var(--sheet)); --age3: color-mix(in oklab, var(--series1) 62%, var(--sheet));
  --age4: color-mix(in oklab, var(--series1) 46%, var(--sheet)); --age5: color-mix(in oklab, var(--series1) 32%, var(--sheet)); --age-none: color-mix(in oklab, var(--ink-3) 45%, var(--sheet)); }
.inv-best { font-weight: 600; color: var(--ink-2); }
.inv-soon { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; white-space: nowrap; }
.inv-soon .icon { width: 14px; height: 14px; color: var(--warning-mark); }
.inv-charts { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: stretch; margin: 0 0 48px; }
.inv-block.stock-sheet { margin: 0 0 48px; }
.inv-split { max-width: none; }
.inv-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.inv-stack > .panel { margin: 0; }
.inv-stack > .panel:last-child { flex: 1; }
.inv-wh { max-width: none; }
.inv-wh h3 { margin: 0 0 8px; }
.inv-form .inv-per { width: 100%; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px 32px; }
.inv-per label { padding: 2px 0; border-bottom: 1px solid var(--rule); }
.inv-per input { width: 88px; }
@media (max-width: 900px) { .inv-charts { grid-template-columns: minmax(0, 1fr); margin-bottom: 40px; } }
.sw-age1 { background: var(--age1); } .sw-age2 { background: var(--age2); } .sw-age3 { background: var(--age3); } .sw-age4 { background: var(--age4); }
.sw-age5 { background: var(--age5); } .sw-age-none { background: var(--age-none); }
/* How your ad changes are going (ads-since.ts, redesigned 9 Nov 2026): one answer, then one picture. The changes sit under
   their verdict; each is a line from what an order cost before (hollow dot) to since (solid dot) on one shared scale, the
   line coloured by the verdict (always with the group's word). A row opens to its sentence and table. */
.u-c.axs { padding: 14px 16px 12px; }
.ax .u-c.axs { border: 0; border-radius: 0; padding: 16px 0 4px; margin-top: 16px; box-shadow: inset 0 1px 0 #F1F1F3; }
.axs .axs-head { margin: 10px 0 0; font-size: 17px; font-weight: 500; line-height: 1.35; letter-spacing: -0.01em; color: #18181B; text-wrap: balance; max-width: 58ch; }
.axs-by { white-space: nowrap; font-size: 12px; font-weight: 400; letter-spacing: 0; color: #A1A1AA; }
.axs-pic { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.axs-gh { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 2px; font-size: 12px; font-weight: 500; color: #52525B; }
.axs-g-better .axs-gh > span:first-child { color: #156B3A; } .axs-g-worse .axs-gh > span:first-child { color: #A1261F; }
.axs-key { display: inline-flex; align-items: center; gap: 5px; font-weight: 400; font-size: 11.5px; color: #A1A1AA; white-space: nowrap; }
.axs-key i { width: 7px; height: 7px; border-radius: 50%; } .axs-kw { box-shadow: inset 0 0 0 1.5px #A1A1AA; } .axs-kn { background: #52525B; margin-left: 4px; }
.axs-l { list-style: none; margin: 0; padding: 0; }
.axs-l > li + li { box-shadow: inset 0 1px 0 #F4F4F5; }
.axs-r > summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; column-gap: 24px; padding: 8px 6px; margin: 0 -6px;
  list-style: none; cursor: pointer; border-radius: 8px; transition: background-color var(--t-micro, 180ms) ease; }
.axs-r > summary::-webkit-details-marker { display: none; }
@media (hover: hover) and (pointer: fine) { .axs-r > summary:hover { background: #F7F7F8; } }
.axs-r > summary:focus-visible { outline: 2px solid #2563EB; outline-offset: -2px; }
.axs-n { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 13.5px; line-height: 1.4; color: #18181B; }
.axs-n b { font-weight: 500; overflow-wrap: anywhere; } .axs-sep { color: #D4D4D8; font-weight: 400; }
.axs-what { font-size: 12px; line-height: 1.45; color: #71717A; text-wrap: pretty; }
/* the track: a hairline rail, the move as a line, before hollow, since solid; since's figure above, before's below */
.axs-tk { position: relative; display: block; height: 46px; margin: 0 26px; }
.axs-tk::before { content: ""; position: absolute; left: -26px; right: -26px; top: 50%; height: 1px; background: #F1F1F3; }
.axs-ln { position: absolute; top: calc(50% - 1px); height: 2px; border-radius: 2px; background: #A1A1AA; }
.axs-better .axs-ln { background: #22A55B; } .axs-worse .axs-ln { background: #E5484D; }
.axs-dt { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%); box-sizing: border-box; }
.axs-was { background: #FFFFFF; box-shadow: inset 0 0 0 1.5px #A1A1AA; }
.axs-now { background: #52525B; box-shadow: 0 0 0 2px #FFFFFF; }
.axs-better .axs-now { background: #22A55B; } .axs-worse .axs-now { background: #E5484D; }
.axs-lb { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: "Geist Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums; letter-spacing: -0.04em; font-size: 12px; line-height: 1; }
.axs-now .axs-lb { bottom: 12px; font-size: 13px; font-weight: 500; color: #18181B; }
.axs-was .axs-lb { top: 12px; color: #A1A1AA; }
.axs-now .axs-nb { bottom: auto; top: 12px; font-family: "Geist", system-ui, sans-serif; letter-spacing: 0; font-weight: 400; font-size: 11.5px; color: #A1A1AA; }
.axs-x { justify-self: end; font-size: 12.5px; color: #71717A; white-space: nowrap; }
.axs-d { padding: 4px 0 14px; max-width: 70ch; } .axs-d > p { margin: 0 0 8px; font-size: 13px; line-height: 1.5; color: #52525B; }
.axs-tb { font-size: 13px; }
.axs > .axs-g { margin-top: 18px; }
/* narrow (Home's side column, phones): the track goes under the name, full width */
@container (max-width: 520px) { .axs-r > summary { grid-template-columns: minmax(0, 1fr); row-gap: 2px; } }
.u-c.axs { container-type: inline-size; }
@media (prefers-reduced-motion: reduce) { .axs-r > summary { transition: none; } }
.axs-more { margin: 10px 0 0; font-size: 12.5px; color: #52525B; } .axs-more a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* Spend by campaign (ui/ads.ts): a numbered mark on a column's top edge for each budget change, orders on their own row */
.chart .col-mark circle { fill: #FFFFFF; stroke: #18181B; stroke-width: 1.5; }
.chart .col-mark text { fill: #18181B; font: 600 10.5px var(--text); pointer-events: none; }
.chart .foot-v { fill: #3F3F46; font-variant-numeric: tabular-nums; } .chart .foot-v.zero { fill: #A1A1AA; }
.ax-marks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; line-height: 1.4; color: #52525B; }
.ax-marks li { display: flex; gap: 8px; align-items: baseline; }
.ax-marks b { flex: none; display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #18181B; font-size: 10.5px; font-weight: 600; color: #18181B; }
/* Who your ads bring in (ui/ad-audience.ts): per store a heading, who buys in a line, one table of kinds, what to do */
.axa-st { margin-top: 18px; }
.axa-st > h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: #18181B; }
.axa-lead { margin: 0 0 10px; font-size: 13px; line-height: 1.45; color: #52525B; }
.axa-t { font-size: 13px; min-width: 640px; }
.axa-t td:first-child { text-align: left; white-space: normal; }
.axa-dim th { padding: 14px 0 4px; text-align: left; font-size: 12px; font-weight: 600; color: #52525B; }
.axa-dim small { font-weight: 400; color: #A1A1AA; }
.axa-k { margin-right: 8px; overflow-wrap: anywhere; }
.axa-tag { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.axa-t tr.waste .axa-tag { color: #A1261F; background: #FDE3E1; } .axa-t tr.lean .axa-tag { color: #156B3A; background: #DCF5E5; }
.axa-do { margin: 12px 0 4px; font-size: 13px; color: #52525B; }
.axa-dl { margin: 0; padding: 0 0 0 18px; display: grid; gap: 6px; font-size: 13px; line-height: 1.5; color: #52525B; max-width: 78ch; }
.axa-dl b { font-weight: 600; color: #18181B; }
.axa-note { margin: 8px 0 0; font-size: 12px; color: #71717A; }
/* each store's ads at a glance (ui/ads-glance.ts, 17 Nov 2026) */
.axg { margin-top: 32px; }
.axg-grid { display: grid; gap: 28px; margin-top: 14px; } .axg-grid.axg-n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .axg-grid.axg-n2 { grid-template-columns: minmax(0, 1fr); } }
.axg-st > h3 { margin: 0 0 12px; }
.axg-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: #3F3F46; box-shadow: inset 0 0 0 1px #E4E4E7; }
.axg-sales { padding: 16px 18px; border-radius: 14px; box-shadow: inset 0 0 0 1px #E4E4E7; }
.axg-big { margin: 0; font-size: 34px; font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; color: #18181B; font-variant-numeric: tabular-nums; }
.axg-sub { margin: 6px 0 10px; font-size: 13px; color: #71717A; }
.axg-pills { margin: 4px 0 0; display: flex; align-items: center; gap: 8px; font-size: 12px; color: #71717A; }
.axg-t { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.axg-t li { min-width: 0; padding: 14px 16px; border-radius: 14px; box-shadow: inset 0 0 0 1px #E4E4E7; }
.axg-l { margin: 0; font-size: 12.5px; line-height: 1.3; color: #71717A; }
.axg-v { margin: 6px 0 0; font-size: 24px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; color: #18181B; font-variant-numeric: tabular-nums; white-space: nowrap; }
.axg-vs { margin: 8px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: #71717A; }
.axg-was { margin: 6px 0 0; font-size: 12px; color: #71717A; }
.axg-cc { margin-top: 24px; padding: 18px 20px; border-radius: 14px; box-shadow: inset 0 0 0 1px #E4E4E7; }
.axg-cc > h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: #18181B; }
.axg-key { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: #71717A; }
.axg-key span::before { content: ""; display: inline-block; width: 18px; height: 7px; margin-right: 6px; border-radius: 9px; vertical-align: middle; }
.axg-key .own::before { background: #2563EB; } .axg-key .claim::before { box-shadow: inset 0 0 0 1px #A1A1AA; }
.axg-cr { display: grid; grid-template-columns: minmax(96px, 9rem) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 5px 0; font-size: 13px; color: #3F3F46; }
.axg-cb { position: relative; display: block; height: 10px; }
.axg-cb i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 9px; transition: width 820ms var(--ease); }
.axg-cb i.claim { box-shadow: inset 0 0 0 1px #A1A1AA; } .axg-cb i.own { background: #2563EB; }
.axg-cv { font-variant-numeric: tabular-nums; white-space: nowrap; color: #18181B; } .axg-cv small { color: #71717A; font-size: 12px; }
.axg-n { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: #71717A; max-width: 78ch; }
@media (prefers-reduced-motion: reduce) { .axg-cb i { transition: none; } }
@media (max-width: 560px) { .axg-cr { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; } .axg-cn { grid-column: 1 / -1; } }
/* the short version and cost per order this week (ui/ads-glance.ts, 17 Nov 2026) */
.axg-sv { margin-top: 28px; padding: 18px 20px; border-radius: 14px; box-shadow: inset 0 0 0 1px #E4E4E7; }
.axg-sv h3 { margin: 0 0 8px; font-size: 12.5px; font-weight: 500; color: #71717A; }
.axg-sv ol { margin: 0; padding: 0 0 0 20px; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.5; color: #18181B; max-width: 88ch; }
.axg-sv li::marker { color: #71717A; font-variant-numeric: tabular-nums; }
.axg-cpo { margin-top: 28px; padding: 18px 20px; border-radius: 14px; box-shadow: inset 0 0 0 1px #E4E4E7; }
.axc-eye { margin: 0; font-size: 12.5px; color: #71717A; }
.axg-cpo > h3 { margin: 6px 0 12px; font-size: 17px; font-weight: 600; line-height: 1.35; color: #18181B; max-width: 70ch; }
.axc-key { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: #71717A; }
.axc-key span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; vertical-align: -1px; }
.axc-key .ring::before { box-shadow: inset 0 0 0 1.5px #3F3F46; } .axc-key .dot::before { background: #3F3F46; }
.axc-key .be::before { width: 0; height: 12px; border-radius: 0; border-left: 2px dashed #71717A; }
.axc-r { display: grid; grid-template-columns: minmax(110px, 11rem) minmax(0, 1fr) minmax(130px, auto); align-items: center; gap: 16px; padding: 12px 0; box-shadow: inset 0 -1px 0 #EDEDEF; }
.axc-n { margin: 0; font-size: 13.5px; color: #18181B; } .axc-n small { display: block; margin-top: 2px; font-size: 12px; color: #71717A; }
.axc-tr { position: relative; display: block; height: 14px; }
.axc-tr::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: #EDEDEF; }
.axc-be { position: absolute; left: 0; top: -3px; bottom: -3px; width: 0; border-right: 2px dashed #71717A; }
.axc-seg { position: absolute; inset: 0; display: flex; align-items: center; }
.axc-seg i { display: block; height: 3px; width: 0; flex: none; transition: width 820ms var(--ease); }
.axc-seg i.ln { position: relative; border-radius: 3px; background: #A1A1AA; }
.axc-seg.worse i.ln { background: #E5484D; } .axc-seg.better i.ln { background: #22A55B; }
.axc-seg i.ln::before, .axc-seg i.ln::after { content: ""; position: absolute; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; box-sizing: border-box; }
.axc-seg.up i.ln::before, .axc-seg.down i.ln::after { background: #FFFFFF; box-shadow: inset 0 0 0 1.5px #3F3F46; }
.axc-seg.up i.ln::after, .axc-seg.down i.ln::before { background: #3F3F46; }
.axc-seg.worse.up i.ln::after, .axc-seg.worse.down i.ln::before { background: #E5484D; } .axc-seg.better.up i.ln::after, .axc-seg.better.down i.ln::before { background: #22A55B; }
.axc-seg i.ln::before { left: -5.5px; } .axc-seg i.ln::after { right: -5.5px; }
.axc-v { margin: 0; display: flex; align-items: center; justify-content: flex-end; gap: 10px; font-size: 13px; color: #3F3F46; font-variant-numeric: tabular-nums; white-space: nowrap; }
.axc-v b { font-weight: 600; color: #18181B; }
.axc-w { font-size: 12px; font-weight: 500; } .axc-w.worse { color: #A1261F; } .axc-w.better { color: #156B3A; } .axc-w.same { color: #71717A; }
.axc-strip { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.axc-strip li { min-width: 0; padding: 14px 16px; border-radius: 14px; box-shadow: inset 0 0 0 1px #E4E4E7; }
@media (max-width: 640px) { .axc-r { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; } .axc-tr { grid-column: 1 / -1; grid-row: 2; } }
@media (prefers-reduced-motion: reduce) { .axc-seg i { transition: none; } }
/* campaign by campaign (ui/ads-glance.ts campaignCards, 17 Nov 2026) */
.axg-camps { margin-top: 32px; }
.axk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
@media (max-width: 900px) { .axk-grid { grid-template-columns: minmax(0, 1fr); } }
.axk { min-width: 0; padding: 18px 20px; border-radius: 14px; box-shadow: inset 0 0 0 1px #E4E4E7; }
.axk > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.axk h4 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; color: #18181B; overflow-wrap: anywhere; } .axk-sl { color: #A1A1AA; font-weight: 400; }
.axk-tag { flex: none; font-size: 12px; font-weight: 500; color: #71717A; white-space: nowrap; } .axk-tag.bad { color: #A1261F; } .axk-tag.good { color: #156B3A; }
.axk-cpo { display: grid; grid-template-columns: minmax(96px, 8.5rem) minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 14px; }
.axk-l { margin: 0; font-size: 13px; color: #18181B; } .axk-l small { display: block; font-size: 11.5px; color: #71717A; }
.axk-why { margin: 12px 0 0; padding: 0 0 0 18px; display: grid; gap: 6px; font-size: 13px; line-height: 1.5; color: #3F3F46; }
.axk-fig { margin: 10px 0 0; font-size: 12.5px; color: #71717A; }
.axk-ch { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: #71717A; } .axk-ch b { font-weight: 500; color: #3F3F46; }
.axk-do { margin-top: 12px; } .axk-do p { margin: 0 0 4px; font-size: 12.5px; font-weight: 600; color: #18181B; }
.axk-do ul { margin: 0; padding: 0 0 0 18px; display: grid; gap: 4px; font-size: 13px; line-height: 1.5; color: #3F3F46; }
@media (max-width: 560px) { .axk-cpo { grid-template-columns: minmax(0, 1fr) auto; } .axk-cpo .axc-tr { grid-column: 1 / -1; grid-row: 2; } }
/* Needs you now (ui/ad-drops.ts needsCard): came against due, one scale, figures in the line above; where to act under it */
.axn-ev { display: grid; grid-template-columns: max-content minmax(120px, 1fr); align-items: center; gap: 6px 12px; margin: 2px 0 14px; max-width: 520px; }
.axn-ev > p { display: contents; }
.axn-ev span { font-size: 12px; line-height: 1.3; color: #71717A; }
.axn-b { display: block; height: 8px; border-radius: 4px; }
.axn-now { background: #3F3F46; min-width: 4px; } .axn-ev.worse .axn-now { background: #E5484D; }
.axn-due { background: #FFFFFF; box-shadow: inset 0 0 0 1.5px #A1A1AA; }
.axn-go { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0 !important; }
.axn-go a { font-size: 13px; font-weight: 500; color: #2563EB; text-decoration: underline; text-underline-offset: 2px; }
@container (max-width: 520px) { .axn-ev { grid-template-columns: minmax(0, 1fr); row-gap: 4px; } }

/* Atlas AI's investigation (8 Nov 2026): each priority's tested cause, how Atlas will check it, and every cause tested */
.nf-pri-cause { margin: 0 0 4px; font-size: 0.8125rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.nf-pri-measure { margin: 4px 0 0; font-size: 0.8125rem; color: var(--ink-3); }
.nf-verdict { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 650; white-space: nowrap; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink-2); }
.nf-verdict-proven { color: var(--good-ink); border-color: color-mix(in srgb, var(--good) 40%, var(--rule)); background: color-mix(in srgb, var(--good) 10%, var(--sheet)); }
.nf-verdict-likely { color: var(--ink); border-color: color-mix(in srgb, var(--warning) 45%, var(--rule)); background: color-mix(in srgb, var(--warning) 12%, var(--sheet)); }
.nf-verdict-ruled_out { color: var(--ink-3); }
.nf-causes { margin: 0 0 10px; font-size: 0.875rem; }
.nf-causes summary { cursor: pointer; font-weight: 600; color: var(--ink-2); min-height: 32px; display: flex; align-items: center; }
.nf-causes ol { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 10px; }
.nf-cause-h { margin: 0 0 2px; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; font-weight: 600; color: var(--ink); }
.nf-cause-r { margin: 0; color: var(--ink-2); }
.nf-cause-t { margin: 2px 0 0; font-size: 0.8125rem; color: var(--ink-3); }

/* The page summary (web/summary-views.ts, src/summary.ts): why, then went well / didn't, three a side, the rest behind a tap */
/* The summary card (summary-views.ts, 8 Nov 2026 redesign): a card like every other, title and dates in the card
   header, items with a good/bad mark (DESIGN.md: status colours always with a mark), facts in ink, actions secondary. */
.sum { padding: 14px 16px 16px; }
.sum-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 10px; }
.sum-vs { font-size: 12px; color: #71717A; }
.sum-k { margin: 0 0 4px; font-size: 12px; color: #71717A; }
.sum-head { margin: 0 0 10px; font-size: 15px; font-weight: 500; line-height: 1.4; color: #18181B; text-wrap: pretty; }
.sum-why { margin: 0 0 12px; }
.sum-why ul, .sum-why-more { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.sum-why li, .sum-why-more li { font-size: 14px; line-height: 1.45; color: #18181B; text-wrap: pretty; }
.sum-l { margin: 0; padding: 0; list-style: none; display: grid; }
.sum-l li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-top: 1px solid #F1F1F3; }
.sum-l li:first-child { border-top: 0; padding-top: 2px; }
.sum-m { width: 20px; height: 20px; border-radius: 6px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 600; line-height: 1; margin-top: 1px; }
.sum-l li.good .sum-m { background: #DCF5E5; color: #156B3A; }
.sum-l li.bad .sum-m { background: #FDE3E1; color: #A1261F; }
.sum-f { margin: 0; font-size: 14px; line-height: 1.45; color: #18181B; text-wrap: pretty; }
.sum-a { margin: 2px 0 0; font-size: 13px; line-height: 1.45; color: #52525B; text-wrap: pretty; }
.sum-none { margin: 0; font-size: 14px; color: #71717A; }
.sum-note { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: #52525B; }
.sum-more { margin-top: 8px; border-top: 1px solid #F1F1F3; padding-top: 8px; }
.sum-more summary { cursor: pointer; font-size: 13px; color: #2563EB; min-height: 28px; display: flex; align-items: center; list-style: none; }
.sum-more summary::-webkit-details-marker { display: none; }
.sum-more[open] summary { color: #52525B; }
.sum-more .sum-l, .sum-more .sum-why-more { margin-top: 6px; }
.sum-more .sum-k { margin-top: 10px; }
.sum-early { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.5; color: #52525B; }
/* Atlas AI's investigation inside the summary (Home): one block, its own mark, then the items */
.sum-ai { margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid #F1F1F3; }
.sum-ai .sum-k { display: flex; align-items: center; gap: 6px; }
.sum-ai a { font-size: 13px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sum-f, :root:not([data-theme="light"]) .sum-why li, :root:not([data-theme="light"]) .sum-head { color: #FAFAFA; }
  :root:not([data-theme="light"]) .sum-a, :root:not([data-theme="light"]) .sum-note, :root:not([data-theme="light"]) .sum-early { color: #A1A1AA; }
  :root:not([data-theme="light"]) .sum-l li, :root:not([data-theme="light"]) .sum-more, :root:not([data-theme="light"]) .sum-ai { border-color: #27272A; } }
:root[data-theme="dark"] .sum-f, :root[data-theme="dark"] .sum-why li, :root[data-theme="dark"] .sum-head { color: #FAFAFA; }
:root[data-theme="dark"] .sum-a, :root[data-theme="dark"] .sum-note, :root[data-theme="dark"] .sum-early { color: #A1A1AA; }
:root[data-theme="dark"] .sum-l li, :root[data-theme="dark"] .sum-more, :root[data-theme="dark"] .sum-ai { border-color: #27272A; }
.seo-score .sc-wait { margin: 14px 0 0; }
.ac-passes { margin-top: 8px; } .ac-passes > summary { cursor: pointer; padding: 12px 0; font-size: 14px; color: var(--ink-2); }

/* Running costs on Profit (208): each cost with where its figure came from, then contribution and profit after them */
.rc-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rc-lines li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.rc-lines .rc-n { display: grid; gap: 2px; min-width: 0; flex: 1 1 220px; }
.rc-lines .rc-n b { font-weight: 500; font-size: 14px; }
.rc-lines .rc-n small { font-size: 12.5px; color: var(--ink-2); }
.rc-lines .rc-v { font: 500 14px/1.3 "Geist Mono", ui-monospace, monospace; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-lines .rc-sum .rc-n b { color: var(--ink-2); }
.rc-lines .rc-end .rc-n b, .rc-lines .rc-end .rc-v { color: inherit; font-weight: 600; }
.rc-ask { border-top: 0; }
.rc-ask .bill-decide { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 100%; }
.rc-ask .bill-decide select { min-width: 0; flex: 0 1 280px; }
.cost-gaps { margin: 0; padding-left: 18px; }
.bill-senders summary { cursor: pointer; font-size: 13px; min-height: 40px; display: flex; align-items: center; }
@media (max-width: 640px) { .rc-ask .bill-decide button { flex: 1 1 auto; min-height: 40px; } }

/* Drop-off (ui/dropoff.ts): the path on phones against computers, then what to do now, biggest first */
.dx { display: grid; gap: 16px; }
.dx-tw { overflow-x: auto; margin-top: 12px; }
.dx-tb { width: 100%; min-width: 340px; border-collapse: collapse; font-size: 13px; }
.dx-tb th { text-align: left; font-weight: 500; font-size: 12px; color: #71717A; padding: 0 12px 8px 0; }
.dx-tb td { padding: 9px 12px 9px 0; border-top: 1px solid #F4F4F5; color: #18181B; vertical-align: top; }
.dx-tb td span { color: #71717A; margin-left: 4px; }
.dx-tb tr.dx-gap td { background: #FDE3E1; }
.dx-tb tr.dx-gap td:first-child { padding-left: 8px; border-radius: 6px 0 0 6px; }
.dx-tb tr.dx-gap td:last-child { border-radius: 0 6px 6px 0; }
.dx-flag { display: block; font-size: 12px; color: #A1261F; margin: 2px 0 0; }
.dx-tb td .dx-flag { margin-left: 0; color: #A1261F; }
.dx > * { min-width: 0; }
.dx-tb { table-layout: auto; }
.dx-ms { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.dx-m { border-radius: 10px; background: #F4F4F5; }
.dx-m[open] { background: #FFFFFF; box-shadow: inset 0 0 0 1px #E4E4E7; }
.dx-m summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px; border-radius: 10px; }
.dx-m summary::-webkit-details-marker { display: none; }
.dx-m summary:focus-visible { outline: 2px solid #2563EB; outline-offset: 2px; }
.dx-n { width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; box-shadow: inset 0 0 0 1px #E4E4E7; display: grid; place-items: center; font-size: 12px; color: #52525B; }
.dx-t b { display: block; font-weight: 500; font-size: 14px; color: #18181B; }
.dx-t span { display: block; font-size: 12.5px; color: #52525B; margin-top: 2px; }
.dx-e { display: grid; gap: 4px; justify-items: end; text-align: right; font-size: 12px; color: #71717A; }
.dx-tag { font-size: 11px; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.dx-tag.counted { background: #F4F4F5; color: #2563EB; box-shadow: inset 0 0 0 1px #E4E4E7; }
.dx-tag.likely { background: #FEF3C7; color: #92400E; }
.dx-f { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; padding: 0 14px 16px 50px; font-size: 13px; }
.dx-f dt { color: #71717A; }
.dx-f dd { margin: 0; color: #52525B; min-width: 0; }
.dx-a { margin: 8px 0 0; font-size: 15px; font-weight: 500; color: #18181B; }
.dx-s { margin: 4px 0 0; font-size: 13px; color: #52525B; }
.dx-card .vf-ct a { color: #2563EB; text-decoration: none; }
.dx-back { font-size: 13px; color: #52525B; text-decoration: none; }
/* already on the shop's live pages (live-check.ts): what isn't suggested, and how it's doing */
.dx-al { list-style: none; margin: 12px 0 0; padding: 0; display: grid; }
.dx-al li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid #F1F1F3; font-size: 13px; color: #52525B; }
.dx-al li:first-child { border-top: 0; }
.dx-al b { font-weight: 500; color: #18181B; }
/* Conversion → Product page (ui/product-page.ts): the page picker, rule states and the shopper's questions */
.dx-tag.good { background: #DCF5E5; color: #156B3A; } .dx-tag.fix { background: #FDE3E1; color: #A1261F; } .dx-tag.unknown { background: #F4F4F5; color: #52525B; }
.dx-al .dx-tag { justify-self: start; }
.pp-pages { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-pages a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border-radius: 8px; font-size: 13px; color: #3F3F46; text-decoration: none; box-shadow: inset 0 0 0 1px #E4E4E7; }
.pp-pages a[aria-current="true"] { background: #18181B; color: #FFFFFF; box-shadow: none; }
.pp-pages i { font-style: normal; font-size: 12px; color: #71717A; } .pp-pages a[aria-current="true"] i { color: #D4D4D8; }
.pp-qs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px 28px; margin-top: 12px; }
.pp-q h3 { margin: 10px 0 0; font-size: 13px; font-weight: 500; color: #18181B; }
.pp-q .dx-al { margin-top: 4px; }
.dx-f a { color: #2563EB; }
@media (max-width: 600px) {
  .dx-m summary { grid-template-columns: 24px minmax(0, 1fr); }
  .dx-e { grid-column: 2; justify-items: start; text-align: left; }
  .dx-f { grid-template-columns: minmax(0, 1fr); padding-left: 14px; gap: 2px; }
  .dx-f dd { margin-bottom: 8px; }
}
@media (max-width: 600px) { .dx .vf-ct, .dx-card .vf-ct { flex-direction: column; gap: 2px; } }

/* Metrics page (metrics-views.ts): the report form's metric list takes a row, and its checkbox sits beside its words */
.metrics-form .year-cost-fields label.wide { flex-basis: 100%; }
.metrics-form .year-cost-fields label.wide select { width: 100%; max-width: 560px; }
.metrics-form .year-cost-fields label.check { display: flex; flex-direction: row; align-items: center; gap: 8px; min-height: 40px; color: var(--ink); }
.metrics-form .year-cost-fields label.check input { width: 18px; height: 18px; margin: 0; flex: none; }
.page-metrics .data th[scope=row] .sub { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .metrics-form .year-cost-fields label.wide, .metrics-form .year-cost-fields label.check { grid-column: 1 / -1; }
  .page-metrics .data td.num { white-space: nowrap; vertical-align: top; }
}

/* Attribution: the models side by side (15 Nov 2026) */
h3.att-sub { margin-top: 24px; }
.sync-block { margin: 16px 0; padding-top: 14px; border-top: 1px solid var(--rule); }
.sync-block h3 { margin: 0 0 6px; }

/* ---------------------------------------------------------------- Ask Atlas's agent (17 Nov 2026)
   The answer streams in as words (.aa-live), then the checked answer replaces it: words, a figure strip, one chart or table,
   action cards to confirm, and a quiet footer (figures checked, the time, what it read). Tokens only: the frame's palette
   and series come through var(), so the light, dark and glass looks all follow. */
.aa-ans .aa-body { display: grid; gap: 12px; padding: 2px 0 4px; }
.aa-who { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 0.8125rem; color: var(--ink-3); }
.aa-prose { font-size: 0.9375rem; line-height: 1.6; color: var(--ink-2); max-width: 68ch; }
.aa-prose p { margin: 0 0 10px; } .aa-prose p:last-child { margin-bottom: 0; }
.aa-prose p:first-child { font-size: 1.0625rem; line-height: 1.45; color: var(--ink); }
.aa-prose b { color: var(--ink); font-weight: 600; }
.aa-prose ul { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 4px; }
.aa-live { white-space: pre-wrap; margin-top: 10px; }
.aa-live::after { content: ""; display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--series1); animation: aa-blink 900ms steps(2) infinite; }
@keyframes aa-blink { to { opacity: 0; } }
.aa-steps-done .ask-step { padding-top: 3px; padding-bottom: 3px; font-size: 0.8125rem; color: var(--ink-3); }
.aa-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); border-radius: var(--r-md); background: var(--raised); box-shadow: 0 0 0 1px var(--rule); overflow: hidden; }
.aa-figs > div { display: grid; gap: 3px; padding: 12px 14px; min-width: 0; box-shadow: -1px 0 0 var(--rule); }
.aa-figs .l { display: flex; justify-content: space-between; gap: 6px; align-items: center; font-size: 0.75rem; color: var(--ink-3); }
.aa-figs .v { font-size: 1.375rem; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; color: var(--ink); }
.aa-figs .s { font-size: 0.71875rem; color: var(--ink-3); }
.aa-chg { font-size: 0.6875rem; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--tint); white-space: nowrap; }
.aa-chg.up { color: var(--good-ink); } .aa-chg.down { color: var(--bad-ink); }
.aa-block { padding: 14px 16px; border-radius: var(--r-md); background: var(--raised); box-shadow: 0 0 0 1px var(--rule); min-width: 0; }
.aa-bh { display: flex; justify-content: space-between; gap: 10px; align-items: start; margin-bottom: 10px; }
.aa-bt { margin: 0; font-size: 0.8125rem; color: var(--ink); font-weight: 500; }
.aa-bs { margin: 2px 0 0; font-size: 0.75rem; color: var(--ink-3); }
.aa-tools { display: flex; gap: 2px; flex: none; }
.aa-ib { min-height: 30px; padding: 0 9px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-3); font: inherit; font-size: 0.75rem; cursor: pointer; box-shadow: none; }
.aa-ib:hover { background: var(--tint); color: var(--ink); }
.aa-dl { margin: 8px 0 0; display: grid; }
.aa-dh { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 16px; margin: 0; padding: 0 0 6px; border-bottom: 1px solid var(--rule); font-size: 0.71875rem; color: var(--ink-3); }
.aa-dh span:last-child { text-align: right; }
.aa-dr { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 16px; align-items: start; min-height: 44px; padding: 10px 0;
  border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; background: none; box-shadow: none; color: var(--ink); font: inherit; text-align: left; cursor: copy; }
.aa-dl > div:last-child .aa-dr { border-bottom: 0; }
.aa-dt p { margin: 0 0 8px; font-size: 0.875rem; line-height: 1.45; } .aa-dt p:last-child { margin: 0; }
.aa-dn { display: grid; justify-items: end; gap: 2px; font-size: 0.75rem; color: var(--ink-2); }
.aa-dn .m { font-family: "Geist Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }
.aa-dn .w { color: var(--bad-ink); }
.aa-dc { position: absolute; right: 0; bottom: 4px; font-size: 0.71875rem; color: var(--good-ink); opacity: 0; transition: opacity 160ms cubic-bezier(.23, 1, .32, 1); }
.aa-dr.is-copied .aa-dc { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .aa-dr:hover .aa-dt { color: var(--accent); } }
.aa-dr:active { transform: scale(.99); transition: transform 160ms cubic-bezier(.23, 1, .32, 1); }
@media (max-width: 640px) { .aa-dh, .aa-dr { grid-template-columns: minmax(0, 1fr) 64px; gap: 10px; } }
.aa-chart { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "y c" ". x" ". k"; column-gap: 8px; }
.aa-y { grid-area: y; display: flex; flex-direction: column; justify-content: space-between; text-align: right; font-size: 0.6875rem; color: var(--ink-3); font-variant-numeric: tabular-nums; padding: 0 0 2px; }
.aa-line { grid-area: c; width: 100%; height: 170px; display: block; overflow: visible; }
.aa-line .aa-grid { stroke: var(--rule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.aa-line .aa-area { fill: var(--series1-soft); }
.aa-line .aa-s { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; animation: aa-wipe 640ms var(--ease) backwards; }
.aa-line .aa-s1 { stroke: var(--series1); } .aa-line .aa-s2 { stroke: var(--series2); } .aa-line .aa-s3 { stroke: var(--series3); }
.aa-line .aa-cmp { fill: none; stroke: var(--cmp-line); stroke-width: 1.5; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
@keyframes aa-wipe { from { stroke-dashoffset: 1; } }
.aa-x { grid-area: x; display: flex; justify-content: space-between; gap: 4px; margin-top: 6px; font-size: 0.6875rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.aa-key { grid-area: k; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 0; font-size: 0.75rem; color: var(--ink-2); }
.aa-key .k::before { content: ""; display: inline-block; width: 14px; height: 0; vertical-align: middle; margin-right: 6px; border-top: 2px solid var(--series1); }
.aa-key .k.s2::before { border-top-color: var(--series2); } .aa-key .k.s3::before { border-top-color: var(--series3); }
.aa-key .k.cmp::before { border-top: 2px dashed var(--cmp-line); }
.aa-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.aa-bars li { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 0.8125rem; }
.aa-bars .n { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aa-bars .b { width: 100%; height: 10px; display: block; }
.aa-bars .b .bg { fill: var(--tint); } .aa-bars .b .pos { fill: var(--series1); } .aa-bars .b .neg { fill: var(--series2); }
.aa-bars .b rect:not(.bg) { transform-origin: left; animation: aa-grow 640ms var(--ease) backwards; }
@keyframes aa-grow { from { transform: scaleX(0); } }
.aa-bars .v { font-variant-numeric: tabular-nums; color: var(--ink); text-align: right; min-width: 64px; }
.aa-tw { overflow-x: auto; margin: 0 -4px; }
.aa-t { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.aa-t th { text-align: left; font-weight: 400; color: var(--ink-3); padding: 6px 8px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.aa-t td { padding: 7px 8px; border-bottom: 1px solid var(--rule-soft); color: var(--ink-2); }
.aa-t .num { text-align: right; font-variant-numeric: tabular-nums; }
.aa-t td.num { color: var(--ink); }
.aa-t tr:last-child td { border-bottom: 0; }
.aa-act { display: grid; gap: 10px; padding: 14px 16px; border-radius: var(--r-md); background: color-mix(in srgb, var(--series1) 6%, var(--raised)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--series1) 32%, transparent); }
.aa-act.st-done { box-shadow: 0 0 0 1px color-mix(in srgb, var(--good) 45%, transparent); }
.aa-act.st-dismissed, .aa-act.st-undone { background: var(--raised); box-shadow: 0 0 0 1px var(--rule); }
.aa-act-new { animation: aa-in 420ms var(--ease) backwards; }
@keyframes aa-in { from { opacity: 0; transform: translateY(4px); } }
.aa-act-k { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 0.75rem; color: var(--accent); }
.aa-act-k svg { width: 11px; height: 11px; }
.aa-act-t { margin: 0; font-size: 0.9375rem; font-weight: 600; color: var(--ink); line-height: 1.35; }
.aa-act dl { margin: 0; display: grid; grid-template-columns: minmax(90px, auto) minmax(0, 1fr); gap: 4px 12px; font-size: 0.8125rem; }
.aa-act dt { color: var(--ink-3); } .aa-act dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.aa-act-note { display: flex; gap: 6px; align-items: center; margin: 0; font-size: 0.8125rem; color: var(--ink-2); }
.aa-act-note.good { color: var(--good-ink); } .aa-act-note.bad { color: var(--bad-ink); }
.aa-act-log { margin: 0; font-size: 0.71875rem; color: var(--ink-3); }
.aa-act-b { display: flex; gap: 8px; flex-wrap: wrap; }
.aa-act-b form { margin: 0; }
.aa-btn { min-height: 38px; padding: 0 16px; border-radius: 999px; font-weight: 500; }
.aa-btn.sec { background: var(--raised); color: var(--ink); box-shadow: 0 0 0 1px var(--rule-strong); }
.aa-act[aria-busy="true"] { opacity: .7; }
.aa-act-never { margin: 0; font-size: 0.71875rem; color: var(--ink-3); }
.aa-refused { display: flex; gap: 6px; align-items: center; margin: 0; font-size: 0.8125rem; color: var(--ink-3); }
.aa-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-top: 8px; border-top: 1px solid var(--rule-soft); font-size: 0.75rem; color: var(--ink-3); }
.aa-ok { display: inline-flex; align-items: center; gap: 5px; color: var(--good-ink); }
.aa-ok.warn { color: var(--bad-ink); }
.aa-ok svg, .aa-refused svg, .aa-act-note svg { width: 13px; height: 13px; }
.aa-time .m { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.aa-read summary { cursor: pointer; color: var(--ink-2); }
.aa-read summary span { color: var(--ink-3); margin-left: 4px; }
.aa-read ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.aa-read li { display: flex; justify-content: space-between; gap: 10px; }
.aa-read li.failed { color: var(--bad-ink); }
.aa-read .m { font-variant-numeric: tabular-nums; white-space: nowrap; }
.aa-foot .ans-fb { margin-left: auto; }
@media (max-width: 640px) {
  .aa-bars li { grid-template-columns: minmax(0, 1fr) auto; } .aa-bars .b { grid-column: 1 / -1; grid-row: 2; }
  .aa-act dl { grid-template-columns: minmax(0, 1fr); } .aa-act dt { margin-top: 4px; }
  .aa-btn, .aa-ib { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .aa-line .aa-s, .aa-bars .b rect, .aa-act-new, .aa-live::after { animation: none; } }
/* Ask Atlas's own page: earlier conversations beside the chat; the panel sits in the page (app.js moves it in) */
.ask.aa-inline { position: relative; inset: auto; z-index: auto; width: auto; height: calc(100vh - 40px); min-height: 520px; top: auto; right: auto; bottom: auto; border-radius: var(--r-md); box-shadow: 0 0 0 1px var(--rule); animation: none; }
.ask.aa-inline [data-ask-close] { display: none; }
.ask.aa-inline .ask-body > *, .ask.aa-inline .ask-foot > * { max-width: 820px; margin-left: auto; margin-right: auto; }
@media (max-width: 900px) {
  .ask.aa-inline { height: calc(100dvh - 150px); border-radius: var(--r-md); }
}

/* SEO changes: may Atlas put the old version back by itself (seo-rollback.ts) */
.sc-auto { display: flex; gap: 8px; align-items: flex-start; flex-basis: 100%; font-size: 12.5px; color: #52525B; line-height: 1.45; }
.sc-auto input { margin-top: 2px; width: 16px; height: 16px; accent-color: #2563EB; }
