/* Self-hosted type: no third-party font requests, nothing to consent to. */
@font-face { font-family: "Inter"; src: url("/fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

/* Kerbrank — one design system, light and dark.
   Rule: one screen per location. Heatmap left, fix list right, trend on top.
   Dashboards in this category are criticised for being cluttered and slow;
   every metric here is pre-computed at scan time and read once. */

:root {
  --ink:        #0F1A16;
  --ink-2:      #33463F;
  --ink-3:      #5B6D66;
  --paper:      #FBFAF7;
  --surface:    #FFFFFF;
  --line:       #E3E0D8;
  --line-2:     #EFEDE6;

  --brand:      #0E3B2E;
  --brand-2:    #145C46;
  --brand-lift: #145C46;
  --accent:     #C8862B;

  --win:        #1F8A5B;
  --ok:         #62A845;
  --warn:       #D79A21;
  --risk:       #C9562F;
  --bad:        #A32F25;
  --none:       #D2CEC4;

  --on-brand:   #FBFAF7;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow:     0 1px 2px rgba(15,26,22,.05), 0 4px 16px rgba(15,26,22,.05);
  --shadow-lg:  0 2px 6px rgba(15,26,22,.06), 0 16px 48px rgba(15,26,22,.10);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #EDEFEC; --ink-2: #B7C3BD; --ink-3: #7F8F88;
    --paper: #0C110F; --surface: #141B18; --line: #24302B; --line-2: #1C2622;
    --brand: #4FD1A0; --brand-2: #2FA87C; --brand-lift: #63E0B2; --accent: #E0A63F;
    --win: #35C183; --ok: #7BC456; --warn: #E3AE3C; --risk: #E47450; --bad: #D4574A;
    --none: #2B3531; --on-brand: #07110D;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.3);
    --shadow-lg: 0 2px 6px rgba(0,0,0,.5), 0 16px 48px rgba(0,0,0,.45);
  }
}
:root[data-theme="dark"] {
  --ink: #EDEFEC; --ink-2: #B7C3BD; --ink-3: #7F8F88;
  --paper: #0C110F; --surface: #141B18; --line: #24302B; --line-2: #1C2622;
  --brand: #4FD1A0; --brand-2: #2FA87C; --brand-lift: #63E0B2; --accent: #E0A63F;
  --win: #35C183; --ok: #7BC456; --warn: #E3AE3C; --risk: #E47450; --bad: #D4574A;
  --none: #2B3531; --on-brand: #07110D;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { margin: 0 0 .4em; line-height: 1.18; letter-spacing: -.017em; font-weight: 620; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.95rem); letter-spacing: -.022em; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
a { color: var(--brand-2); text-decoration-color: color-mix(in oklab, var(--brand-2) 35%, transparent); text-underline-offset: 2px; }
a:hover { color: var(--brand-lift); }
small { font-size: .82rem; }
code, .mono { font-family: var(--mono); font-size: .88em; font-variant-numeric: tabular-nums; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.row { display: flex; gap: 12px; align-items: center; }
.row-between { display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap: wrap; }
.stack > * + * { margin-top: var(--gap, 14px); }
.muted { color: var(--ink-3); }
.dim { color: var(--ink-2); }
.nowrap { white-space: nowrap; }
.center { text-align: center; }

/* ---- controls ---- */
.btn {
  display:inline-flex; align-items:center; gap:8px; justify-content:center;
  padding: 9px 16px; border-radius: var(--radius); border: 1px solid transparent;
  font: inherit; font-weight: 550; font-size: .93rem; cursor: pointer;
  background: var(--brand); color: var(--on-brand); text-decoration: none;
  transition: background .14s ease, transform .08s ease, box-shadow .14s ease;
}
.btn:hover { background: var(--brand-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity:.55; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--line-2); color: var(--ink); }
.btn-sm { padding: 5px 11px; font-size: .84rem; }
.btn-lg { padding: 13px 26px; font-size: 1rem; }

input, select, textarea {
  width: 100%; padding: 9px 12px; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in oklab, var(--brand) 45%, transparent); outline-offset: 1px; border-color: var(--brand); }
label { display:block; font-size:.84rem; font-weight:560; color: var(--ink-2); margin-bottom: 5px; }
.field + .field { margin-top: 13px; }

/* ---- surfaces ---- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow);
}
.card-tight { padding: 14px; }
.panel { background: var(--surface); border:1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.panel-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.panel-body { padding: 18px; }

.pill {
  display:inline-flex; align-items:center; gap:5px; padding: 2px 9px;
  border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing:.01em;
  background: var(--line-2); color: var(--ink-2); border:1px solid var(--line);
}
.pill-critical { background: color-mix(in oklab, var(--bad) 15%, transparent); color: var(--bad); border-color: color-mix(in oklab, var(--bad) 32%, transparent); }
.pill-high     { background: color-mix(in oklab, var(--risk) 15%, transparent); color: var(--risk); border-color: color-mix(in oklab, var(--risk) 32%, transparent); }
.pill-medium   { background: color-mix(in oklab, var(--warn) 17%, transparent); color: var(--warn); border-color: color-mix(in oklab, var(--warn) 34%, transparent); }
.pill-low      { background: color-mix(in oklab, var(--ok) 15%, transparent); color: var(--ok); border-color: color-mix(in oklab, var(--ok) 32%, transparent); }
.pill-win      { background: color-mix(in oklab, var(--win) 15%, transparent); color: var(--win); border-color: color-mix(in oklab, var(--win) 32%, transparent); }

/* ---- stats ---- */
.stats { display:grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 12px; }
.stat { background: var(--surface); border:1px solid var(--line); border-radius: var(--radius-lg); padding: 15px 16px; }
.stat-label { font-size:.76rem; font-weight:620; text-transform:uppercase; letter-spacing:.06em; color: var(--ink-3); margin-bottom:5px; }
.stat-value { font-size: 2rem; font-weight: 640; letter-spacing:-.03em; font-variant-numeric: tabular-nums; line-height:1.05; }
.stat-sub { font-size:.8rem; color: var(--ink-3); margin-top:3px; }
.delta { font-size:.82rem; font-weight:620; font-variant-numeric: tabular-nums; }
.delta-up { color: var(--win); } .delta-down { color: var(--risk); } .delta-flat { color: var(--ink-3); }

/* ---- heatmap ---- */
.heat { display:grid; gap: 3px; aspect-ratio: 1; width:100%; }
.heat-cell {
  border-radius: 4px; display:flex; align-items:center; justify-content:center;
  font-size: clamp(9px, 1.5vw, 13px); font-weight: 650; color:#fff;
  font-variant-numeric: tabular-nums; position:relative; cursor: default;
  transition: transform .1s ease; text-shadow: 0 1px 2px rgba(0,0,0,.28);
}
.heat-cell:hover { transform: scale(1.09); z-index:3; box-shadow: var(--shadow-lg); }
.heat-cell[data-centre="1"] { outline: 2px solid var(--ink); outline-offset: 1px; }
.r1 { background:#137A4E; } .r2 { background:#1B8054; } .r3 { background:#2E9A63; }
.r4 { background:#5BA84B; } .r7 { background:#8FB63C; } .r10 { background:#C9A22B; }
.r14 { background:#D2802C; } .r20 { background:#B75334; }
.rx  { background: var(--none); color: var(--ink-3); text-shadow:none; }
.ru  { background: repeating-linear-gradient(45deg, var(--line), var(--line) 3px, var(--line-2) 3px, var(--line-2) 6px);
       color: var(--ink-3); text-shadow:none; }
.rw  { background: color-mix(in oklab, #4A86B8 14%, var(--surface)); color: transparent; text-shadow:none; }
.heat-legend { display:flex; gap:10px; flex-wrap:wrap; font-size:.76rem; color:var(--ink-3); margin-top:10px; align-items:center; }
.swatch { width:11px; height:11px; border-radius:3px; display:inline-block; vertical-align:-1px; margin-right:4px; }

/* ---- findings ---- */
.finding { border:1px solid var(--line); border-radius: var(--radius); padding: 14px 15px; background: var(--surface); }
.finding + .finding { margin-top: 10px; }
.finding-critical { border-left: 3px solid var(--bad); }
.finding-high     { border-left: 3px solid var(--risk); }
.finding-medium   { border-left: 3px solid var(--warn); }
.finding-low      { border-left: 3px solid var(--ok); }
.finding h4 { margin:0 0 6px; font-size:.97rem; font-weight:620; }
.finding .why { font-size:.87rem; color: var(--ink-2); margin: 0 0 8px; }
.finding .action { font-size:.88rem; background: var(--line-2); border-radius: 7px; padding: 9px 11px; margin:0; }
.finding .action strong { font-weight:620; }
.finding-meta { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:9px; font-size:.76rem; color:var(--ink-3); }

/* ---- tables ---- */
table { width:100%; border-collapse: collapse; font-size:.88rem; }
th { text-align:left; font-size:.75rem; text-transform:uppercase; letter-spacing:.05em; color:var(--ink-3); font-weight:640; padding:8px 10px; border-bottom:1px solid var(--line); }
td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tr:last-child td { border-bottom:none; }
.num { text-align:right; font-variant-numeric: tabular-nums; }

/* ---- layout ---- */
.topbar { position:sticky; top:0; z-index:40; background: color-mix(in oklab, var(--paper) 88%, transparent); backdrop-filter: blur(12px); border-bottom:1px solid var(--line); }
.topbar-inner { display:flex; align-items:center; justify-content:space-between; gap:16px; padding: 11px 0; }
.logo { display:flex; align-items:center; gap:9px; font-weight:680; font-size:1.06rem; letter-spacing:-.025em; color:var(--ink); text-decoration:none; }
.logo-mark { width:26px; height:26px; flex:none; }
.split { display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 18px; }
@media (max-width: 940px) { .split { grid-template-columns: 1fr; } }
.sparkline { width:100%; height:38px; display:block; }

.empty { text-align:center; padding: 44px 20px; color: var(--ink-3); }
.spinner { width:15px; height:15px; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation: spin .62s linear infinite; display:inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display:none !important; }
.toast { position:fixed; bottom:18px; left:50%; transform:translateX(-50%); background:var(--ink); color:var(--paper); padding:10px 18px; border-radius:999px; box-shadow:var(--shadow-lg); z-index:99; font-size:.89rem; font-weight:520; }

@media print {
  .no-print { display:none !important; }
  body { background:#fff; }
  .card, .panel { box-shadow:none; border-color:#ddd; break-inside: avoid; }
  .finding { break-inside: avoid; }
}

/* ---- map designer ---- */
#designer { position:fixed; inset:0; z-index:90; }
.dz-backdrop { position:absolute; inset:0; background:rgba(10,18,15,.5); }
.dz { position:absolute; inset:16px; display:grid; grid-template-columns: 340px 1fr; background:var(--surface);
      border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-lg); }
.dz-side { padding:18px; overflow-y:auto; border-right:1px solid var(--line); }
.dz-side label { display:block; font-weight:600; font-size:.86rem; margin:16px 0 6px; }
.dz-map { min-height:300px; }
.dz-map.drawing { cursor:crosshair; }
.seg { display:flex; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.seg button { flex:1; border:0; background:var(--surface); color:var(--ink-2); font:inherit; font-size:.86rem; padding:7px 8px; cursor:pointer; }
.seg button + button { border-left:1px solid var(--line); }
.seg button[aria-pressed="true"] { background:var(--brand); color:var(--on-brand); }
.dz-note { background:var(--line-2); border-radius:8px; padding:10px; margin-top:8px; font-size:.84rem; }
.dz-summary { margin-top:18px; padding:12px; border-radius:8px; background:color-mix(in oklab, var(--brand) 7%, var(--surface)); font-size:.86rem; line-height:1.6; }
.dz-pt { width:18px; height:18px; border-radius:50%; border:2px solid #fff; box-shadow:0 1px 3px rgba(0,0,0,.4); cursor:pointer; }
.dz-pt.on { background:#145C46; }
.dz-pt.sea { background:#6C9CC4; }
.dz-pt.off { background:transparent; border:2px dashed #8a918d; box-shadow:none; }
.dz-pin { width:34px; height:34px; border-radius:50%; background:#1F8A5B; border:3px solid #fff; box-shadow:0 2px 8px rgba(0,0,0,.5); cursor:grab;
          color:#fff; display:grid; place-items:center; font-size:17px; line-height:1; }
.dz-foot { position:sticky; bottom:-18px; background:var(--surface); padding:12px 0 18px; margin-top:12px; border-top:1px solid var(--line); }
.dz-home { width:22px; height:22px; border-radius:6px; background:#C8862B; color:#fff; display:grid; place-items:center; font-size:13px; box-shadow:0 1px 4px rgba(0,0,0,.4); }
@media (max-width: 800px) {
  .dz { inset:0; border-radius:0; grid-template-columns:1fr; grid-template-rows: 55vh 1fr; }
  .dz-map { grid-row:1; } .dz-side { grid-row:2; border-right:0; border-top:1px solid var(--line); }
}

/* The hidden attribute must win over display rules such as .btn { display:inline-flex }. */
[hidden] { display: none !important; }

/* ====================================================================
   Dashboard (app.html) and setup wizard (js/onboard.js)
   ==================================================================== */
.eyebrow { font-size:.74rem; font-weight:640; letter-spacing:.12em; text-transform:uppercase; color: var(--brand-2); margin:0 0 6px; }
.dash-head { display:flex; justify-content:space-between; align-items:flex-end; gap:18px; flex-wrap:wrap; margin: 8px 0 22px; }
.dash-title { font-family: var(--serif); font-weight:400; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing:-.01em; line-height:1.05; margin:0 0 6px; }
.detail-head .actions { flex-wrap:wrap; }
.crumbs { font-size:.84rem; color: var(--ink-3); margin-top:4px; }
.crumbs a { color: var(--ink-2); text-decoration:none; }
.crumbs a:hover { text-decoration:underline; }

.kpis { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:12px; margin-bottom:22px; }
.kpi { background: var(--surface); border:1px solid var(--line); border-radius: var(--radius-lg); padding:16px 18px; box-shadow: var(--shadow); }
.kpi-label { font-size:.74rem; font-weight:640; letter-spacing:.08em; text-transform:uppercase; color: var(--ink-3); }
.kpi-value { font-size: 2.1rem; font-weight:620; letter-spacing:-.03em; font-variant-numeric: tabular-nums; margin:6px 0 2px; line-height:1; }
.kpi-sub { font-size:.8rem; color: var(--ink-3); }
.warnish { color: var(--risk); font-weight:600; }

.loc-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap:16px; }
.loc-card { background: var(--surface); border:1px solid var(--line); border-radius: 18px; padding:18px 18px 14px; box-shadow: var(--shadow); cursor:pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; display:flex; flex-direction:column; gap:14px; }
.loc-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: color-mix(in oklab, var(--brand) 30%, var(--line)); }
.loc-card:focus-visible { outline: 3px solid color-mix(in oklab, var(--brand) 45%, transparent); outline-offset: 2px; }
.loc-card-top { display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }
.loc-name { font-size:1.08rem; margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.loc-sub { margin:2px 0 0; font-size:.84rem; color: var(--ink-3); }
.loc-body { display:grid; grid-template-columns: 112px 1fr; gap:16px; align-items:center; }
.loc-thumb svg { width:112px; height:112px; display:block; }
.loc-big { font-size:2rem; font-weight:640; letter-spacing:-.03em; font-variant-numeric: tabular-nums; margin-right:6px; }
.loc-lab { font-size:.78rem; color: var(--ink-3); }
.loc-delta { display:block; font-size:.8rem; margin-top:2px; }
.loc-figs .sparkline { width:100%; height:30px; margin:6px 0; }
.loc-mini { display:flex; gap:16px; margin:0; }
.loc-mini div { min-width:0; }
.loc-mini dt { font-size:.7rem; color: var(--ink-3); text-transform:uppercase; letter-spacing:.06em; }
.loc-mini dd { margin:0; font-weight:620; font-variant-numeric: tabular-nums; }
.loc-foot { margin:0; font-size:.78rem; color: var(--ink-3); border-top:1px solid var(--line-2); padding-top:10px; }
.loc-empty { font-size:.9rem; color: var(--ink-2); background: var(--line-2); border-radius: 12px; padding:16px; }
.pill-live { background: color-mix(in oklab, var(--brand) 12%, transparent); color: var(--brand-2); border-color: color-mix(in oklab, var(--brand) 30%, transparent); }
.pill-live .dot { width:7px; height:7px; border-radius:50%; background: currentColor; display:inline-block; margin-right:6px; animation: kr-pulse 1.2s ease-in-out infinite; }
@keyframes kr-pulse { 50% { opacity:.3; } }

.welcome { display:grid; grid-template-columns: 1.3fr 1fr; gap:32px; align-items:center; background: var(--surface); border:1px solid var(--line);
  border-radius: 22px; padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow); grid-column: 1 / -1; }
.welcome-title { font-family: var(--serif); font-weight:400; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height:1.08; margin-bottom:18px; }
.welcome-steps { margin:0 0 24px; padding-left:1.2em; display:grid; gap:10px; color: var(--ink-2); }
.welcome-art svg { width:100%; max-width:280px; display:block; margin-inline:auto; }

.cta-strip { display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; padding:12px 16px; margin-bottom:16px;
  background: color-mix(in oklab, var(--brand) 6%, var(--surface)); border:1px solid color-mix(in oklab, var(--brand) 22%, var(--line)); border-radius: 14px; font-size:.9rem; }
.clients-panel { margin-top:26px; }
.clients-panel > summary { cursor:pointer; list-style:none; }
.clients-panel > summary::-webkit-details-marker { display:none; }

.menu-wrap { position:relative; }
.menu { position:absolute; right:0; top: calc(100% + 6px); z-index:30; min-width: 220px; background: var(--surface); border:1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-lg); padding:6px; }
.menu button { display:block; width:100%; text-align:left; background:none; border:0; padding:9px 10px; border-radius:8px; font: inherit; font-size:.9rem; color: var(--ink); cursor:pointer; }
.menu button:hover, .menu button:focus-visible { background: var(--line-2); outline:none; }
.menu hr { border:0; border-top:1px solid var(--line); margin:6px 0; }
.menu .danger { color: var(--bad); }

@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); } .welcome { grid-template-columns: 1fr; } .welcome-art { display:none; } }
@media (max-width: 420px) { .loc-grid { grid-template-columns: 1fr; } .loc-body { grid-template-columns: 88px 1fr; } .loc-thumb svg { width:88px; height:88px; } .kpi-value { font-size:1.6rem; } }

/* ---- setup wizard ---- */
.ob { position:fixed; inset:0; z-index:90; background: rgba(8,16,13,.55); backdrop-filter: blur(4px); display:grid; place-items:center; padding:16px; }
.ob-panel { width: min(720px, 100%); max-height: calc(100vh - 32px); display:flex; flex-direction:column; background: var(--paper);
  border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow:hidden; }
.ob-top { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:16px 22px; border-bottom:1px solid var(--line); background: var(--surface); }
.ob-steps { list-style:none; display:flex; gap:18px; margin:0; padding:0; font-size:.82rem; color: var(--ink-3); flex-wrap:wrap; }
.ob-steps li { display:flex; align-items:center; gap:7px; }
.ob-steps span { width:22px; height:22px; border-radius:50%; display:grid; place-items:center; font-size:.74rem; font-weight:640; border:1px solid var(--line); background: var(--paper); }
.ob-steps li.on { color: var(--ink); font-weight:600; }
.ob-steps li.on span { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.ob-steps li.done span { background: color-mix(in oklab, var(--win) 18%, transparent); color: var(--win); border-color: transparent; }
.ob-x { background:none; border:0; font-size:1.6rem; line-height:1; color: var(--ink-3); cursor:pointer; padding:2px 6px; border-radius:8px; }
.ob-x:hover { background: var(--line-2); color: var(--ink); }
.ob-body { padding: 26px clamp(18px, 4vw, 34px); overflow:auto; }
.ob-title { font-family: var(--serif); font-weight:400; font-size: clamp(1.6rem, 3.4vw, 2.1rem); line-height:1.1; margin-bottom:8px; }
.ob-lead { color: var(--ink-2); margin:0 0 20px; max-width: 58ch; }
.ob-foot { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px 22px; border-top:1px solid var(--line); background: var(--surface); }
.ob-foot .btn:last-child { margin-left:auto; }
.ob-small { font-size:.82rem; }
.ob-err { color: var(--bad); }
.ob-find { display:grid; grid-template-columns: 1.4fr 1fr auto; gap:10px; align-items:end; }
.ob-find .field { margin:0; }
.ob-ac { position:absolute; left:0; right:0; top:100%; margin-top:3px; z-index:5; background: var(--surface); border:1px solid var(--line); border-radius:10px; box-shadow: var(--shadow-lg); display:none; max-height:210px; overflow:auto; }
.ob-ac [role=option] { padding:8px 11px; cursor:pointer; font-size:.9rem; }
.ob-ac [aria-selected=true], .ob-ac [role=option]:hover { background: var(--line-2); }
.ob-results { margin-top:16px; }
.ob-list { display:grid; gap:8px; }
.ob-pick { text-align:left; background: var(--surface); border:1.5px solid var(--line); border-radius: 12px; padding:12px 14px; cursor:pointer; display:grid; gap:2px; font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s; }
.ob-pick:hover { border-color: color-mix(in oklab, var(--brand) 40%, var(--line)); }
.ob-pick.on { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 18%, transparent); }
.ob-pick-name { font-weight:620; }
.ob-pick-meta { font-size:.83rem; color: var(--ink-3); }
.ob-manual { margin-top:14px; padding:16px; border:1px dashed var(--line); border-radius:12px; }
.ob-grid2 { display:grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.linkish { background:none; border:0; padding:0; color: var(--brand-2); text-decoration:underline; cursor:pointer; font: inherit; }
.ob-tip { font-size:.86rem; padding:10px 12px; border-radius:10px; background: color-mix(in oklab, var(--accent) 10%, var(--surface)); border:1px solid color-mix(in oklab, var(--accent) 28%, var(--line)); margin-bottom:14px; }
.ob-tip.ok { background: color-mix(in oklab, var(--win) 9%, var(--surface)); border-color: color-mix(in oklab, var(--win) 26%, var(--line)); }
.ob-kws { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:8px; }
.ob-kw { display:flex; align-items:center; gap:10px; padding:10px 12px; border:1.5px solid var(--line); border-radius: 12px; background: var(--surface); cursor:pointer; margin:0; font-weight:400; transition: border-color .15s, background .15s; }
.ob-kw.on { border-color: var(--brand); background: color-mix(in oklab, var(--brand) 5%, var(--surface)); }
.ob-kw input { width:18px; height:18px; accent-color: var(--brand); flex:none; margin:0; }
.ob-kw-name { flex:1; min-width:0; overflow-wrap:anywhere; }
.ob-kw-vol { font-size:.84rem; font-weight:620; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space:nowrap; }
.ob-kw-vol small { font-weight:400; color: var(--ink-3); }
.ob-add { display:flex; gap:8px; margin-top:12px; }
.ob-add input { flex:1; }
.ob-units { margin-bottom:14px; }
.ob-areas { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:10px; }
.ob-area { display:grid; justify-items:center; text-align:center; gap:3px; padding:14px 10px; border:1.5px solid var(--line); border-radius:14px; background: var(--surface); cursor:pointer; font: inherit; color: inherit; }
.ob-area.on { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand) 18%, transparent); }
.ob-area-svg { width:64px; height:64px; margin-bottom:6px; }
.ob-area-svg circle { fill: color-mix(in oklab, var(--brand) 45%, var(--line)); }
.ob-area.on .ob-area-svg circle { fill: var(--brand-2); }
.ob-area-svg circle.door { fill: var(--accent); }
.ob-area-name { font-weight:620; font-size:.92rem; }
.ob-area-name em { display:block; font-style:normal; font-size:.7rem; letter-spacing:.06em; text-transform:uppercase; color: var(--win); }
.ob-area-dist { font-size:.84rem; font-variant-numeric: tabular-nums; }
.ob-area-hint { font-size:.76rem; color: var(--ink-3); }
.ob-sum { display:grid; gap:0; margin:0 0 16px; border:1px solid var(--line); border-radius:14px; background: var(--surface); }
.ob-sum > div { display:grid; grid-template-columns: 110px 1fr; gap:12px; padding:12px 16px; border-top:1px solid var(--line-2); }
.ob-sum > div:first-child { border-top:0; }
.ob-sum dt { font-size:.78rem; color: var(--ink-3); text-transform:uppercase; letter-spacing:.06em; padding-top:2px; }
.ob-sum dd { margin:0; }
.chip { display:inline-block; padding:3px 9px; border-radius:999px; background: var(--line-2); font-size:.84rem; margin:2px 2px 2px 0; }
.ob-check { display:flex; gap:10px; align-items:center; font-weight:500; }
.ob-check input { width:18px; height:18px; accent-color: var(--brand); }
@media (max-width: 640px) {
  .ob { padding:0; place-items:end stretch; }
  .ob-panel { border-radius: 20px 20px 0 0; max-height: 94vh; width:100%; }
  .ob-steps li:not(.on) { font-size:0; gap:0; }
  .ob-find { grid-template-columns: 1fr; }
  .ob-kws, .ob-grid2 { grid-template-columns: 1fr; }
  .ob-areas { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ob-sum > div { grid-template-columns: 1fr; gap:2px; }
}
@media (prefers-reduced-motion: reduce) { .loc-card, .loc-card:hover { transition:none; transform:none; } .pill-live .dot { animation:none; } }
.seg button.on { background: var(--brand); color: var(--on-brand); }
/* White on the lighter heat colours fails contrast: dark numbers there. */
.r4, .r7, .r10 { color: #10231A; text-shadow: none; }
.ob-kw-note { font-size:.72rem; color: var(--ink-3); background: var(--line-2); border-radius:999px; padding:2px 7px; white-space:nowrap; }

/* Phones: the top bar must fit 375px. The plan label goes, buttons stay. */
@media (max-width: 480px) { .topbar-inner .row { gap: 6px; min-width: 0; } #planPill { display: none; } .topbar-inner .btn-sm { padding: 5px 9px; } }
.ob-have { cursor: default; background: var(--line-2); border-style: dashed; }
.danger-zone { display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; margin-top:28px; padding:16px 18px;
  border:1px solid color-mix(in oklab, var(--bad) 22%, var(--line)); border-radius:14px; font-size:.9rem; background: var(--surface); }
/* Phones: the breadcrumb already goes back, so the top bar keeps two buttons on one line. */
@media (max-width: 480px) { #backBtn { display: none !important; } .topbar-inner .btn-sm { white-space: nowrap; } }

/* ---- Jobs: progress the owner has made ---- */
.job-toggle { margin-left: auto; }
.job-state { color: color-mix(in oklab, var(--win) 70%, var(--ink)); font-weight: 560; }
.job-state-warn { color: color-mix(in oklab, var(--risk) 72%, var(--ink)); }
.finding-done h4, .finding-done .why, .finding-done .action, .finding-done .copy-block { opacity: .7; }
.finding-done h4 { text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: color-mix(in oklab, var(--ink) 35%, transparent); }
.copy-block { margin-top: 10px; border: 1px dashed var(--line); border-radius: 8px; padding: 10px 12px; background: var(--surface); }
.copy-block p { margin: 6px 0 0; font-size: .88rem; white-space: pre-wrap; }
.copy-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.wins { border: 1px solid color-mix(in oklab, var(--win, #1f8a55) 35%, var(--line)); background: color-mix(in oklab, var(--win, #1f8a55) 6%, var(--surface)); border-radius: var(--radius); padding: 12px 15px; margin-bottom: 12px; }
.wins h4 { margin: 0 0 6px; font-size: .95rem; }
.wins ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .88rem; }
.wins li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.wins .muted { font-size: .78rem; }
.win-tick { color: var(--win, #1f8a55); font-weight: 700; }
@media print { .job-toggle, .copy-btn { display: none !important; } }

/* ---- Getting started ---- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.start-list { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px 16px; margin: 14px 0; }
.start-list h2 { font-size: 1rem; margin: 0; }
.start-list h2 .muted { font-weight: 400; font-size: .85rem; margin-left: 6px; }
.start-list ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.start-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.start-list li .muted { font-size: .84rem; }
.start-list li.is-done strong { color: var(--ink-3); font-weight: 500; text-decoration: line-through; text-decoration-thickness: 1px; }
.start-tick { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: .72rem; font-weight: 700; margin-top: 1px; }
.is-done .start-tick { background: var(--win); border-color: var(--win); color: #fff; }

/* ---- cookie notice ---- */
.cookie-note { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 560px; margin-inline: auto; display: flex; gap: 14px; align-items: center; padding: 12px 14px 12px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 18px 40px -20px rgba(10, 18, 15, .45); font-size: .86rem; line-height: 1.45; }
.cookie-note p { margin: 0; color: var(--ink-2); }
.cookie-note a { color: var(--ink); }
.cookie-note .btn { flex: none; }
@media print { .cookie-note { display: none; } }
/* Narrow phones: the header buttons wrap onto a second line rather than run off the screen. */
@media (max-width: 480px) { .topbar-inner { align-items: flex-start; } .topbar-inner .row { flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; } }
.leaflet-control-attribution a { text-decoration: underline; }
/* Coloured labels: the text is darkened enough to read on its own tint. */
.pill-high, .warnish { color: color-mix(in oklab, var(--risk) 62%, var(--ink)); }
.pill-critical { color: color-mix(in oklab, var(--bad) 70%, var(--ink)); }
.pill-medium { color: color-mix(in oklab, var(--warn) 45%, var(--ink)); }
.leaflet-container .leaflet-control-attribution a { text-decoration: underline; }
@media (max-width: 360px) { .loc-card { padding: 14px 12px 12px; } .loc-body { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; } .loc-thumb svg { width: 72px; height: 72px; } .loc-figs svg { max-width: 100%; } }

/* ================= Home: the week, in words ================= */
.status-list { display: grid; gap: 18px; }
.status-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px 16px; box-shadow: var(--shadow); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.status-panel:hover { border-color: color-mix(in oklab, var(--brand) 30%, var(--line)); box-shadow: var(--shadow-lg); }
.status-panel:focus-visible { outline: 3px solid color-mix(in oklab, var(--brand) 45%, transparent); outline-offset: 2px; }
.status-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.status-top .loc-name { font-size: 1.15rem; margin: 0; }
.status-body { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 24px; align-items: start; }
.status-headline { font-family: var(--serif); font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.2; margin: 0 0 12px; letter-spacing: -.01em; }
.status-headline strong { font-weight: 400; color: var(--brand); border-bottom: 2px solid color-mix(in oklab, var(--accent) 70%, transparent); }
.since { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 5px; font-size: .92rem; color: var(--ink-2); }
.since li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--line); margin-right: 9px; vertical-align: middle; }
.status-figs { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.status-figs div { min-width: 0; }
.status-figs dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 620; }
.status-figs dd { margin: 2px 0 0; font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.status-map { display: grid; gap: 8px; justify-items: end; }
.status-map svg:first-child { width: 150px; height: 150px; }
.next-job { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: color-mix(in oklab, var(--brand) 5%, var(--surface)); border: 1px solid color-mix(in oklab, var(--brand) 14%, var(--line)); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; }
.next-job-label { grid-column: 1; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 650; color: var(--ink-2); }
.next-job-label .muted { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .82rem; }
.next-job-title { grid-column: 1; font-weight: 600; font-size: 1rem; }
.next-job .btn { grid-column: 2; grid-row: 1 / span 2; }
.next-job-done { display: block; color: var(--ink-2); font-size: .92rem; }
.verdict { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 650; padding: 5px 11px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.verdict::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.v-up   { color: color-mix(in oklab, var(--win) 72%, var(--ink)); background: color-mix(in oklab, var(--win) 12%, var(--surface)); border-color: color-mix(in oklab, var(--win) 28%, transparent); }
.v-flat { color: var(--ink-2); background: var(--line-2); border-color: var(--line); }
.v-down { color: color-mix(in oklab, var(--risk) 62%, var(--ink)); background: color-mix(in oklab, var(--risk) 12%, var(--surface)); border-color: color-mix(in oklab, var(--risk) 30%, transparent); }
.v-new  { color: color-mix(in oklab, var(--brand) 80%, var(--ink)); background: color-mix(in oklab, var(--brand) 8%, var(--surface)); border-color: color-mix(in oklab, var(--brand) 20%, transparent); }
@media (max-width: 640px) {
  .status-panel { padding: 18px 16px 14px; }
  .status-body { grid-template-columns: minmax(0, 1fr); }
  .status-map { justify-items: start; grid-auto-flow: column; align-items: end; justify-content: start; }
  .status-map svg:first-child { width: 96px; height: 96px; }
  .next-job { grid-template-columns: minmax(0, 1fr); }
  .next-job .btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 6px; }
}
/* Agencies: one row per business, attention first. */
.week-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 18px; }
.week-strip > div { background: var(--surface); padding: 14px 16px; display: grid; gap: 2px; font-size: .84rem; color: var(--ink-2); }
.ws-n { font-size: 1.6rem; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.ws-bad { color: color-mix(in oklab, var(--risk) 62%, var(--ink)); }
.status-filter { gap: 8px; align-items: center; margin-bottom: 10px; }
.status-filter select { width: auto; min-width: 180px; }
.status-rows { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.status-row { display: grid; grid-template-columns: minmax(0, 2fr) 150px 110px minmax(0, 3fr); gap: 16px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); cursor: pointer; }
.status-row:first-child { border-top: 0; }
.status-row:hover { background: var(--line-2); }
.status-row:focus-visible { outline: 3px solid color-mix(in oklab, var(--brand) 45%, transparent); outline-offset: -3px; }
.sr-name { display: grid; min-width: 0; }
.sr-name strong, .sr-job { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-name .muted { font-size: .82rem; }
.sr-num { display: flex; gap: 8px; align-items: baseline; }
.sr-big { font-size: 1.15rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.sr-job { font-size: .9rem; color: var(--ink-2); }
@media (max-width: 820px) {
  .week-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .week-strip > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .status-row { grid-template-columns: minmax(0, 1fr) auto; }
  .sr-num { justify-content: flex-end; }
  .sr-verdict { grid-row: 1; grid-column: 2; }
  .sr-num { grid-row: 2; grid-column: 2; }
  .sr-job { grid-column: 1 / -1; white-space: normal; }
  .sr-name strong { white-space: normal; }
  .sr-name { grid-row: 1 / span 2; grid-column: 1; }
}

/* ================= One business: summary, then jobs ================= */
.summary-card { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px 28px; box-shadow: var(--shadow); }
.summary-headline { font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 14px; max-width: 30ch; }
.summary-headline strong { font-weight: 400; color: var(--brand); border-bottom: 3px solid color-mix(in oklab, var(--accent) 70%, transparent); }
.summary-map { display: grid; gap: 10px; justify-items: center; }
.summary-map svg { width: 180px; height: 180px; }
.section-title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.8vw, 2rem); letter-spacing: -.01em; margin: 0; }
#jobsPanel { margin-top: 30px; }
.jobs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.full-report { margin-top: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.full-report > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; }
.full-report > summary::-webkit-details-marker { display: none; }
.full-report > summary:focus-visible { outline: 3px solid color-mix(in oklab, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 18px; }
.full-report[open] > summary { border-bottom: 1px solid var(--line); }
.fr-toggle { flex: none; font-weight: 600; font-size: .9rem; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); }
.full-report iframe { display: block; }
@media (max-width: 700px) {
  .summary-card { grid-template-columns: minmax(0, 1fr); padding: 20px 18px; }
  .summary-map { justify-items: start; grid-auto-flow: column; align-items: end; }
  .summary-map svg { width: 110px; height: 110px; }
}
.status-top > div { min-width: 0; }
@media (max-width: 380px) { .status-top { flex-wrap: wrap; } }

/* ---------------------------------------------------------------- website visitors (/admin) */
.adm { padding: 28px 0 60px; }
.adm-top { display:flex; justify-content:space-between; align-items:flex-end; gap:16px 24px; flex-wrap:wrap; margin-bottom:20px; }
.adm-intro { color: var(--ink-2); max-width: 62ch; margin: 4px 0 0; line-height:1.55; }
.adm-period { min-width: 260px; }
.adm-period button { padding: 9px 12px; min-height: 40px; }
.adm-kpis { grid-template-columns: repeat(4, minmax(0,1fr)); }
.adm-h2 { font-size: 1.05rem; margin: 0; }
.adm-note { margin: 3px 0 0; font-size: .84rem; }
.adm-body { padding: 6px 18px 16px; }
.adm-empty { margin: 12px 0 4px; }
.adm-wide { margin-bottom: 14px; }
.adm-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.adm-table td { vertical-align: top; }
.adm-table th:first-child, .adm-table td:first-child { padding-left: 0; }
.adm-table th:last-child, .adm-table td:last-child { padding-right: 0; }
.adm-name { overflow-wrap:anywhere; }
.adm-name .muted { font-size: .8rem; margin-left: 4px; }
.adm-bar { height: 4px; background: var(--line-2); border-radius: 2px; margin-top: 6px; overflow:hidden; }
.adm-bar span { display:block; height:100%; background: var(--brand-2); border-radius: 2px; }
.adm-chart { display:flex; align-items:flex-end; gap: 3px; height: 150px; padding-top: 12px; border-bottom: 1px solid var(--line); }
.adm-col { flex:1; height:100%; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; position:relative; min-width: 2px; }
.adm-col-bar { width:100%; max-width: 28px; background: var(--brand-2); border-radius: 3px 3px 0 0; }
.adm-col:hover .adm-col-bar { background: var(--brand); }
.adm-col-dot { position:absolute; top: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.adm-axis { display:flex; justify-content:space-between; font-size: .78rem; margin-top: 6px; }
.adm-details { margin-top: 12px; }
.adm-details summary { cursor:pointer; color: var(--brand-2); font-weight: 560; font-size: .9rem; min-height: 32px; display:flex; align-items:center; }
@media (max-width: 900px) { .adm-grid { grid-template-columns: 1fr; } .adm-kpis { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .adm-period { min-width: 0; width: 100%; } .adm-share-h, .adm-table td:nth-child(3) { display:none; } .adm-body { padding: 4px 14px 14px; } }

/* admin: messages */
.adm-msgs { margin-top: 14px; display: grid; gap: 14px; }
.adm-msg { padding: 14px 0; border-top: 1px solid var(--line-2); }
.adm-msg:first-child { border-top: 0; }
.adm-msg header { font-size: .9rem; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.adm-msg p { margin: 8px 0; white-space: pre-wrap; }
.adm-msg.is-done { opacity: .6; }
.adm-done { display: inline-flex; gap: 8px; align-items: center; font-size: .86rem; }
.adm-done input { width: auto; }
.adm-qs { list-style: none; margin: 0; padding: 0; }
.adm-qs li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-2); }
.adm-qs li:first-child { border-top: 0; }

/* ---- the wait screen: the map fills in as Google answers ---- */
#scanProgress:has(.lv) { padding: 0; overflow: hidden; }
.lv { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; padding: 22px; align-items: start; }
.lv-map { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.lv-heat { display: grid; gap: 3px; aspect-ratio: 1; width: 100%; }
.lv-heat i { border-radius: 4px; display: flex; align-items: center; justify-content: center; font-style: normal;
  font-size: clamp(8px, 1.1vw, 12px); font-weight: 650; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 1px 2px rgba(0,0,0,.28); }
.lv-heat i[data-door="1"] { outline: 2px solid var(--ink); outline-offset: 1px; }
.lv-heat i.lv-w { background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--ink-3) 45%, transparent); border-radius: 5px; }
.lv-heat i.rx { background: var(--none); }
.lv-heat i.rx { color: var(--ink-3); }
/* Dark numbers on the lighter greens and ambers, so every label passes AA. */
.lv-heat i:is(.r3, .r4, .r7, .r10, .r14) { color: #0B1F14; text-shadow: none; }
.lv-count { margin: 10px 2px 0; font-size: .84rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lv-count b { color: var(--ink); }
.lv-kicker { margin: 0 0 4px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-2); }
.lv-h { margin: 0 0 16px; font-size: 1.18rem; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; text-wrap: balance; }
.lv-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; }
.lv-steps li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-3); }
.lv-steps li small { color: var(--ink-3); font-size: .84rem; }
.lv-steps li.now { color: var(--ink); font-weight: 600; }
.lv-steps li.done { color: var(--ink-2); }
.lv-steps li.skip { display: none; }
.lv-tick { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--line-2); position: relative; }
.lv-steps li.done .lv-tick { background: var(--brand-2); border-color: var(--brand-2); }
.lv-steps li.done .lv-tick::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.lv-steps li.now .lv-tick { border-color: var(--brand-2); border-width: 2px; }
.lv-steps li.now .lv-tick::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--brand-2); }
.lv-bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.lv-bar i { display: block; height: 100%; background: var(--brand-2); transform-origin: left; transform: scaleX(0); }
.lv-time { margin: 8px 0 0; font-size: .84rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lv-leave { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); font-size: .88rem; color: var(--ink-2); line-height: 1.5; }
.lv-leave b { color: var(--ink); font-weight: 600; word-break: break-all; }
@media (max-width: 720px) {
  .lv { grid-template-columns: 1fr; gap: 18px; padding: 16px; }
  .lv-map { max-width: 360px; width: 100%; margin-inline: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .lv-bar i { transition: transform .6s ease; }
  .lv-heat i.lv-w { animation: lv-wait 1.6s ease-in-out infinite; }
  .lv-heat i.lv-pop { animation: lv-pop .38s cubic-bezier(.2, .9, .3, 1.3); }
  .lv-steps li.now .lv-tick::after { animation: lv-pulse 1.2s ease-in-out infinite; }
}
@keyframes lv-wait { 50% { opacity: .55; } }
@keyframes lv-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes lv-pulse { 50% { transform: scale(.6); opacity: .6; } }
#scanProgress:not([hidden]) ~ #reportEmpty { display: none; }
.lv-key { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 8px 2px 0; padding: 0; list-style: none; font-size: .74rem; color: var(--ink-3); }
.lv-key li { display: flex; align-items: center; gap: 4px; }
.lv-key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lv-key i.lv-w { box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--ink-3) 45%, transparent); }
.lv-key i.rx { background: var(--none); }
.lv-what { margin: 0 0 16px; font-size: .9rem; color: var(--ink-2); line-height: 1.5; max-width: 52ch; }
