/* Axobia dashboard. The design system is the one of axobia.com: a white canvas, black ink, one orange. Flat fills, no gradients,
   pill buttons, rounded cards with a thin warm line, wide Archivo headlines, Inter for everything else.
   Chart colours (--s1..--s6) start with the Axobia orange and are checked for colour-blind separation and contrast in both themes.
   The two fonts are served from this server (SIL Open Font License, see /fonts): nothing is fetched from anyone else. */
@font-face { font-family: "Archivo"; src: url("/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --paper: #ffffff; --card: #ffffff; --mist: #faf6f3; --wash: #fff0ea; --tint: #fff0ea; --line: #eee6df; --line-strong: #dfd4ca; --ink: #17120f; --slate: #6b625c; --muted: #8a8079; --faint: #a39a93;
  --accent: #fc4c10; --accent-dark: #d93c08; --accent-ink: #ffffff; --accent-soft: rgba(252, 76, 16, .13);
  --good: #137a4b; --good-soft: #e5f3ec; --warn: #b7791f; --warn-soft: #fbf1df; --bad: #c0392b; --bad-soft: #fbe9e6;
  --s1: #fc4c10; --s2: #3f51b5; --s3: #4e8b3a; --s4: #9c3f8a; --s5: #b8860b; --s6: #0089a0;
  --display: "Archivo", "Inter", system-ui, sans-serif; --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 20px; color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #17120f; --card: #1e1814; --mist: #1e1814; --wash: #33190f; --tint: #33190f; --line: #322921; --line-strong: #47392e; --ink: #f6efe9; --slate: #b9ada4; --muted: #9a8e85; --faint: #7d726a;
  --accent: #ff5a1f; --accent-dark: #ff7a47; --accent-ink: #17120f; --accent-soft: rgba(255, 90, 31, .2);
  --good: #5cc48a; --good-soft: #17301f; --warn: #e3a94a; --warn-soft: #33270f; --bad: #f0857c; --bad-soft: #381a18;
  --s1: #ee5a24; --s2: #7c8ae6; --s3: #62a84c; --s4: #c568b2; --s5: #b58d12; --s6: #22a0aa; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }
[hidden] { display: none !important; }
.display { font-family: var(--display); font-stretch: 125%; font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
.num, .bar-value, .bar-share, table.data td.num, .figure-value { font-variant-numeric: tabular-nums lining-nums; }
.muted { color: var(--slate); } .small { font-size: 13px; } .mono { font-family: var(--mono); font-size: 12.5px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ---- the frame: a rail of pages on the left, the sheet on the right */
.frame { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100vh; }
.rail { background: var(--paper); border-right: 1px solid var(--line); padding: 18px 0 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; padding: 2px 22px 18px; } .brand img { height: 34px; width: auto; display: block; } .brand:hover { text-decoration: none; }
.rail nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.rail nav a { color: var(--slate); padding: 8px 14px; border-radius: 999px; font-weight: 500; }
.rail nav a:hover { color: var(--ink); text-decoration: none; }
.rail nav a[aria-current="page"] { color: var(--ink); font-weight: 650; background: var(--tint); }
.rail nav hr { border: 0; border-top: 1px solid var(--line); margin: 8px 10px; }
.rail-foot { margin-top: auto; padding: 14px 24px 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--slate); }
.linkish { background: none; border: 0; padding: 0; color: var(--accent-dark); cursor: pointer; text-align: left; font-weight: 600; }
.linkish:hover { text-decoration: underline; }
.sheet { min-width: 0; }
.bar-top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 10px 32px; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.page { padding: 28px 32px 80px; max-width: 1320px; }
.page-title { font-family: var(--display); font-stretch: 125%; font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; font-size: 32px; }
.page-lede { color: var(--slate); margin-top: 8px; max-width: 64ch; }
.btn.menu-btn { display: none; }

/* ---- controls: pills */
.field, select.field, input.field { background: var(--card); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 14px; min-height: 38px; }
select.field { padding-right: 30px; } textarea.field { border-radius: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); border: 1px solid transparent; border-radius: 999px; padding: 6px 20px; min-height: 40px; font-weight: 600; font-size: 14px; cursor: pointer; transition: background-color .15s; }
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn.quiet { background: var(--card); color: var(--ink); border-color: var(--line-strong); } .btn.quiet:hover { background: var(--card); border-color: var(--ink); } .btn.quiet[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.small { min-height: 32px; padding: 3px 14px; font-size: 13px; } .btn[disabled] { opacity: .5; cursor: default; }
.btn.danger { background: var(--card); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); } .btn.danger:hover { background: var(--bad-soft); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; gap: 2px; background: var(--card); }
.seg button { background: transparent; border: 0; padding: 4px 13px; min-height: 30px; border-radius: 999px; cursor: pointer; color: var(--slate); font-weight: 500; font-size: 14px; }
.seg button:hover { color: var(--ink); } .seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--tint); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); border-radius: 999px; padding: 3px 4px 3px 13px; font-size: 13.5px; font-weight: 500; }
.chip button { border: 0; background: transparent; cursor: pointer; width: 24px; height: 24px; border-radius: 50%; line-height: 1; color: var(--slate); }
.chip button:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink); }
.spacer { flex: 1; }
.adder { position: relative; } .adder summary { list-style: none; } .adder summary::-webkit-details-marker { display: none; }
.adder-form { position: absolute; top: 40px; left: 0; z-index: 40; display: flex; gap: 6px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 22px; padding: 8px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.tabs { display: flex; gap: 2px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; border-radius: 999px; padding: 4px 11px; color: var(--slate); cursor: pointer; font-size: 13.5px; font-weight: 500; }
.tabs button:hover { color: var(--ink); } .tabs button[aria-selected="true"] { color: var(--ink); background: var(--tint); font-weight: 650; }
.notice { background: var(--warn-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--warn) 30%, var(--line)); padding: 10px 16px; border-radius: 16px; font-size: 14px; margin-top: 16px; }
.notice.info { background: var(--tint); border-color: color-mix(in srgb, var(--accent) 22%, var(--line)); }

/* ---- the telling, the figures */
.telling { font: 400 20px/1.5 var(--sans); max-width: 52em; margin-top: 18px; text-wrap: pretty; color: var(--ink); }
.telling strong { font-weight: 700; }
.figures { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.figure { padding: 16px 18px 15px; border: 0; border-left: 1px solid var(--line); min-width: 0; background: none; text-align: left; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; }
.figure:first-child { border-left: 0; } .figure:hover { background: var(--mist); } .figure[aria-pressed="true"] { background: var(--tint); }
.figure-label { color: var(--slate); font-size: 13px; display: block; font-weight: 500; }
.figure-value { font-family: var(--display); font-stretch: 125%; font-weight: 800; letter-spacing: -0.02em; font-size: 30px; line-height: 1.15; display: block; margin-top: 4px; }
.delta { font-size: 12.5px; color: var(--slate); display: block; margin-top: 4px; } .delta.up-good, .delta.down-good { color: var(--good); } .delta.up-bad, .delta.down-bad { color: var(--bad); }

/* ---- panels: rounded cards with a thin line, flat */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.panel { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 20px; } .panel.stack { margin-top: 20px; } .panel .panel { border: 0; padding: 0; border-radius: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; margin-bottom: 10px; }
.panel-head h2 { font: 650 16px/1.3 var(--sans); }
.panel-note { color: var(--slate); font-size: 13px; margin-top: 10px; }
.bars { display: flex; flex-direction: column; gap: 3px; }
.bar-row { position: relative; display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 3px 12px; border: 0; background: none; text-align: left; width: 100%; color: var(--ink); border-radius: 999px; cursor: default; }
a.bar-row, button.bar-row { cursor: pointer; } a.bar-row:hover, button.bar-row:hover { text-decoration: none; background: var(--mist); }
.bar-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent-soft); border-radius: 999px; pointer-events: none; min-width: 6px; }
.bar-label { position: relative; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-sub { position: relative; color: var(--slate); font-size: 12.5px; white-space: nowrap; }
.bar-value { position: relative; font-weight: 650; min-width: 44px; text-align: right; } .bar-share { position: relative; color: var(--slate); font-size: 12.5px; min-width: 42px; text-align: right; }

/* ---- tables */
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-weight: 600; color: var(--slate); font-size: 12.5px; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; } table.data tr:last-child td { border-bottom: 0; }
table.data th.num, table.data td.num { text-align: right; padding-right: 0; padding-left: 12px; }
table.data tr.row-link { cursor: pointer; } table.data tr.row-link:hover td { background: var(--mist); }
.badge { display: inline-block; border-radius: 999px; padding: 0 9px; font-size: 12px; line-height: 21px; font-weight: 650; background: var(--mist); color: var(--slate); white-space: nowrap; margin-right: 4px; border: 1px solid var(--line); }
.badge.rec { background: var(--tint); color: var(--accent-dark); border-color: color-mix(in srgb, var(--accent) 22%, var(--line)); } .badge.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; } .badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; } .badge.good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.empty { border: 1px dashed var(--line-strong); border-radius: 24px; padding: 30px 28px; margin-top: 22px; max-width: 64ch; }
.empty-title { font-family: var(--display); font-stretch: 125%; font-weight: 800; letter-spacing: -0.02em; font-size: 20px; line-height: 1.15; } .empty-body { color: var(--slate); margin-top: 8px; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 20px; font-size: 14px; } .kv dt { color: var(--slate); } .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
pre.code { background: var(--mist); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font: 12.5px/1.6 var(--mono); overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0 0; }

/* ---- charts */
.chart { margin-top: 12px; outline-offset: 4px; } .chart svg { display: block; max-width: 100%; touch-action: pan-y; }
.chart .grid { stroke: var(--line); stroke-width: 1; } .chart .axis { fill: var(--muted); font-size: 11.5px; font-family: var(--sans); font-variant-numeric: tabular-nums; }
.line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; } .area { opacity: .1; stroke: none; } .dot { stroke: var(--card); stroke-width: 2; } .cross { stroke: var(--faint); stroke-width: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--slate); margin-top: 6px; } .legend-item { display: inline-flex; align-items: center; gap: 6px; }
.key { display: inline-block; width: 14px; height: 4px; border-radius: 2px; flex: none; }
.tip { position: fixed; z-index: 200; background: var(--ink); color: var(--paper); border-radius: 12px; padding: 9px 12px; font-size: 13px; pointer-events: none; max-width: 340px; }
.tip-who { margin-top: 8px; padding-top: 7px; border-top: 1px solid rgba(255,255,255,.18); display: grid; gap: 4px; } .tip-who-row { display: grid; font-size: 12px; line-height: 1.35; } .tip-who-row span, .tip-more { opacity: .72; } .tip-more { font-size: 11px; margin-top: 2px; }
.tip-head { opacity: .72; font-size: 12px; margin-bottom: 3px; } .tip-row { display: flex; align-items: center; gap: 7px; } .tip-row strong { font-variant-numeric: tabular-nums; } .tip-row span:last-child { opacity: .8; }
.as-table { margin-top: 8px; font-size: 13px; } .as-table summary { color: var(--slate); cursor: pointer; width: fit-content; }
.cols { display: flex; align-items: flex-end; gap: 2px; margin-top: 10px; } .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.col-bar { display: block; width: 100%; max-width: 24px; background: var(--s1); border-radius: 4px 4px 0 0; } .col:hover .col-bar, .col:focus .col-bar { background: var(--accent-dark); }
.col-label { font-size: 11px; color: var(--muted); height: 20px; line-height: 22px; white-space: nowrap; }
.rating .segs { display: flex; gap: 2px; height: 12px; } .rseg { border-radius: 999px; min-width: 4px; display: block; }
.rseg.good, .sw.good { background: var(--good); } .rseg.mid, .sw.mid { background: var(--warn); } .rseg.poor, .sw.poor { background: var(--bad); }
.rating-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--slate); margin-top: 6px; } .sw { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }

/* ---- live */
.pulse { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); margin-right: 12px; animation: pulse-dot 1.4s ease-out infinite; vertical-align: middle; }
@keyframes pulse-dot { 0%, 100% { box-shadow: 0 0 0 0 rgba(252, 76, 16, .5); } 50% { box-shadow: 0 0 0 8px rgba(252, 76, 16, 0); } }
.feed { display: flex; flex-direction: column; } .feed-row { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; padding: 7px 8px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink); border-radius: 8px; }
.feed-row:hover { text-decoration: none; background: var(--mist); }

/* ---- a visit: the recording and what happened */
.replay { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; margin-top: 22px; align-items: start; }
.stage-wrap { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stage { position: relative; overflow: hidden; background: var(--mist); }
.stage-inner { position: relative; transform-origin: top left; background: #fff; margin: 0 auto; }
.stage iframe { border: 0; display: block; background: #fff; pointer-events: none; }
.cursor { position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: -3px 0 0 -3px; pointer-events: none; z-index: 5; will-change: transform; }
.ripple { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 3px solid var(--accent); pointer-events: none; z-index: 4; animation: ripple .6s ease-out forwards; }
.ripple.rage { border-color: var(--bad); } @keyframes ripple { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.stage-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--paper) 86%, transparent); color: var(--slate); z-index: 6; text-align: center; padding: 20px; }
.controls { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--card); flex-wrap: wrap; }
.scrub { position: relative; flex: 1 1 220px; height: 26px; cursor: pointer; touch-action: none; }
.scrub-track { position: absolute; left: 0; right: 0; top: 11px; height: 4px; background: var(--line-strong); border-radius: 2px; overflow: hidden; }
.scrub-idle { position: absolute; top: 0; bottom: 0; background: var(--card); opacity: .75; } .scrub-done { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); }
.scrub-mark { position: absolute; top: 5px; width: 3px; height: 16px; margin-left: -1px; border-radius: 1px; background: var(--slate); opacity: .7; pointer-events: none; } .scrub-mark.m-page { background: var(--s2); } .scrub-mark.m-bad { background: var(--bad); opacity: .95; } .scrub-mark.m-own { background: var(--s5); }
.scrub-knob { position: absolute; top: 6px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--accent); border: 2px solid var(--card); }
.timeline { max-height: 560px; overflow-y: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.tl-row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; padding: 7px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; width: 100%; text-align: left; cursor: pointer; font-size: 13.5px; color: var(--ink); }
.tl-row:hover { background: var(--mist); } .tl-row.now { background: var(--tint); } .tl-row .t { color: var(--muted); font-variant-numeric: tabular-nums; } .tl-row .what { min-width: 0; overflow-wrap: anywhere; }
.tl-row .what small { color: var(--slate); display: block; }

/* ---- heatmaps */
.heat { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; margin-top: 18px; align-items: start; }
.heat-stage { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--mist); }
.heat-inner { position: relative; transform-origin: top left; } .heat-inner canvas { position: absolute; left: 0; top: 0; pointer-events: none; }
.heat-hit { position: absolute; border: 2px solid var(--ink); border-radius: 6px; background: color-mix(in srgb, var(--accent) 12%, transparent); pointer-events: none; }
.fold { position: absolute; left: 0; right: 0; border-top: 2px dashed #17120f; opacity: .6; pointer-events: none; } .fold span { position: absolute; right: 6px; top: 2px; background: #17120f; color: #fff; font-size: 11.5px; padding: 1px 8px; border-radius: 999px; }
.band { position: absolute; left: 0; right: 0; pointer-events: none; display: flex; align-items: center; justify-content: flex-end; }
.band span { background: rgba(255, 255, 255, .9); color: #17120f; font-size: 11.5px; padding: 0 8px; border-radius: 999px; margin-right: 6px; font-variant-numeric: tabular-nums; }

/* ---- the globe */
.globe-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; margin-top: 18px; align-items: start; }
.globe-stage { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; min-height: 420px; touch-action: none; cursor: grab; } .globe-stage:active { cursor: grabbing; }
.globe-stage canvas { display: block; width: 100%; height: auto; }
.globe-hint { position: absolute; left: 16px; bottom: 12px; font-size: 12.5px; color: var(--slate); pointer-events: none; }
.who { display: flex; flex-direction: column; gap: 2px; max-height: 300px; overflow-y: auto; }
.who a { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: 8px; padding: 6px 10px; border-radius: 12px; color: var(--ink); font-size: 13.5px; } .who a:hover { background: var(--mist); text-decoration: none; } .who small { color: var(--slate); display: block; }

/* ---- funnels, retention, paths, search, control */
.funnel-step { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 4px 12px; margin-top: 16px; } .funnel-step .n { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 17px; color: var(--slate); }
.funnel-bar { height: 22px; background: var(--mist); border-radius: 999px; overflow: hidden; margin-top: 6px; } .funnel-bar i { display: block; height: 100%; border-radius: 999px; }
.funnel-meta { color: var(--slate); font-size: 13px; margin-top: 4px; }
.builder { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; } .builder-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .builder-row .field { flex: 0 1 auto; } .builder-row input.field { flex: 1 1 200px; }
table.cohort { border-collapse: separate; border-spacing: 2px; font-size: 13px; } table.cohort th { font-weight: 500; color: var(--slate); padding: 4px 8px; text-align: left; white-space: nowrap; }
table.cohort td { width: 54px; height: 30px; text-align: center; border-radius: 8px; font-variant-numeric: tabular-nums; }
.paths { display: flex; gap: 0; margin-top: 16px; overflow-x: auto; position: relative; } .path-col { flex: 0 0 214px; display: flex; flex-direction: column; gap: 8px; padding-right: 54px; position: relative; z-index: 1; }
.path-node { background: var(--card); border: 1px solid var(--line-strong); border-left: 4px solid var(--accent); border-radius: 12px; padding: 6px 10px; font-size: 13px; cursor: default; color: var(--ink); } a.path-node:hover { text-decoration: none; border-color: var(--ink); border-left-color: var(--accent); } .path-node.other { border-left-color: var(--faint); } .path-node b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.path-node small { color: var(--slate); } .paths svg { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 0; } .paths svg path { fill: none; stroke: var(--accent); opacity: .2; }
.score { display: flex; align-items: center; gap: 16px; } .score svg { flex: none; } .score .ring-bg { stroke: var(--line); } .score .ring { stroke: var(--accent); stroke-linecap: round; transition: stroke-dasharray .9s cubic-bezier(.16, 1, .3, 1); }
.issue { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); } .issue:last-child { border-bottom: 0; } .issue > .badge { align-self: start; margin-top: 1px; min-width: 62px; text-align: center; } .issue h3 { font: 650 14.5px/1.35 var(--sans); } .issue p { color: var(--slate); font-size: 13.5px; margin-top: 2px; } .issue .fix { color: var(--ink); }
.rule { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; } .rule + .rule { margin-top: 8px; } .rule .grow { flex: 1 1 240px; min-width: 0; }
.switch { position: relative; width: 42px; height: 24px; border-radius: 999px; border: 0; background: var(--line-strong); cursor: pointer; flex: none; } .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; } .switch[aria-checked="true"] { background: var(--accent); } .switch[aria-checked="true"]::after { transform: translateX(18px); }
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; } .login-card { width: min(440px, 100%); border: 1px solid var(--line); border-radius: 28px; padding: 30px 28px; background: var(--card); } .login-card h1 { font-size: 30px; margin-top: 18px; } .login-card p { color: var(--slate); margin-top: 10px; }
.squiggle { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8c18-7 32 5 50-1s30-6 66 1' fill='none' stroke='%23fc4c10' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left bottom / 100% .32em; padding-bottom: .18em; }

/* ---- Search and Control: four figures, the reasons under a row, the check's progress, forms */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.figures.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } .figure.still { cursor: default; } .figure.still:hover { background: none; }
table.data tr.why td { background: var(--mist); padding: 14px 16px; } .facts { margin: 0 0 8px; padding-left: 18px; } .facts li { margin: 3px 0; }
.progress { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; } .progress i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s ease; }
.log { font: 12.5px/1.6 var(--mono); color: var(--slate); max-height: 150px; overflow-y: auto; margin-top: 10px; }
.score-num { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 25px; letter-spacing: -0.02em; fill: var(--ink); }
.form { display: flex; flex-direction: column; gap: 14px; } .form-row { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; } .form-row > label, .form-label { font-weight: 600; font-size: 14px; }
.form-row > .small { max-width: 62ch; } label.check { display: inline-flex; gap: 8px; align-items: center; font-weight: 400; font-size: 14.5px; min-height: 32px; cursor: pointer; } textarea.field { padding: 10px 14px; line-height: 1.5; resize: vertical; }

/* ---- phones and narrow windows: the rail becomes a menu, cards stack, nothing scrolls sideways */
@media (max-width: 1080px) { .figures.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } .figures.four .figure:nth-child(odd) { border-left: 0; } .figures.four .figure:nth-child(even) { border-left: 1px solid var(--line); } .figures.four .figure:nth-child(n+3) { border-top: 1px solid var(--line); }
  .figures:not(.four) { grid-template-columns: repeat(3, minmax(0, 1fr)); } .figure:nth-child(4) { border-left: 0; } .figure:nth-child(n+4) { border-top: 1px solid var(--line); } .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .replay, .heat, .globe-wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .frame { grid-template-columns: minmax(0, 1fr); } .rail { position: fixed; inset: 0 auto 0 0; width: 250px; z-index: 60; transform: translateX(-100%); transition: transform .18s ease; border-right: 1px solid var(--line-strong); }
  .rail.open { transform: none; } .btn.menu-btn { display: inline-flex; } .bar-top { padding: 8px 16px; } .page { padding: 20px 16px 70px; } .page-title { font-size: 26px; } .telling { font-size: 17.5px; }
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } .hide-s { display: none !important; } .panel { padding: 16px; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } .figure { border-left: 0; } .figure:nth-child(even) { border-left: 1px solid var(--line); } .figure:nth-child(n+3) { border-top: 1px solid var(--line); } .figure-value { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { .rail, .switch::after, .btn, .progress i { transition: none; } .ripple { animation-duration: .01s; } .pulse { animation: none; } .score .ring { transition: none; } }

/* ---- signing in: the cards for people who are not signed in, and the form pieces the account page shares */
.login-card.auth { padding: 34px 30px 28px; } .login-card.auth .brand-link { display: inline-block; } .login-card.auth .brand-link:hover { text-decoration: none; }
.login-card.auth h1 { font-size: 30px; margin-top: 22px; } .login-card.auth > p { color: var(--slate); margin-top: 10px; } .login-card.auth .form { margin-top: 22px; } .login-card.auth .notice { margin-top: 16px; }
.field.wide { width: 100%; } .pw { position: relative; width: 100%; } .pw .field { padding-right: 66px; } .pw .show { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 13px; }
.login-card .form-error { color: var(--bad); font-size: 13.5px; margin: 0; } .form-error { color: var(--bad); } .form-error:empty { display: none; } .good { color: var(--good); }
.btn.wide { width: 100%; min-height: 44px; } .btn.google { gap: 10px; margin-top: 22px; min-height: 44px; font-weight: 600; } .btn.google:hover { text-decoration: none; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0 -4px; } .or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.login-card .links { margin-top: 16px; text-align: center; } .login-card .links a, .login-card .links .linkish { font-weight: 600; } .login-card .legal { margin-top: 14px; text-align: center; color: var(--muted); }
.form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .form-row .field { max-width: 420px; width: 100%; }
.site-row { padding: 12px 0; border-bottom: 1px solid var(--line); } .site-row:last-child { border-bottom: 0; } .site-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .site-name { font-weight: 650; }
.site-delete { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--mist); } .site-delete p { margin-bottom: 10px; }
.who { display: block; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .who[aria-current="page"] { color: var(--accent-dark); }
