:root {
  color-scheme: light;
  --page: #f9f9f7;
  --surface: #fcfcfb;
  --surface-2: #f0efec;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #898781;
  --hairline: #e1e0d9;
  --border: rgba(11, 11, 11, 0.10);
  --accent: #2a78d6;      /* series-1 blue: single-series bars, primary buttons */
  --accent-ink: #ffffff;
  --comp: #eb6834;        /* categorical slot 2: competitors */
  --anch: #1baf7a;        /* categorical slot 3: anchors */
  --good: #0ca30c;
  --critical: #d03b3b;
  --seq-100: #cde2fb; --seq-200: #9ec5f4; --seq-300: #6da7ec; --seq-400: #3987e5; --seq-500: #256abf; --seq-600: #1c5cab; --seq-700: #0d366b;
  --radius: 8px;
  --panel-w: 390px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0d0d0d; --surface: #1a1a19; --surface-2: #262625; --ink: #ffffff; --ink-2: #c3c2b7; --muted: #898781;
    --hairline: #2c2c2a; --border: rgba(255, 255, 255, 0.10);
    --accent: #3987e5; --comp: #d95926; --anch: #199e70;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d; --surface: #1a1a19; --surface-2: #262625; --ink: #ffffff; --ink-2: #c3c2b7; --muted: #898781;
  --hairline: #2c2c2a; --border: rgba(255, 255, 255, 0.10);
  --accent: #3987e5; --comp: #d95926; --anch: #199e70;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--page); color: var(--ink); }
#app { display: flex; height: 100vh; height: 100dvh; width: 100vw; overflow: hidden; }
#panel { width: var(--panel-w); flex: 0 0 var(--panel-w); background: var(--surface); border-right: 1px solid var(--hairline); display: flex; flex-direction: column; overflow: hidden; }
#map-wrap { flex: 1; position: relative; min-width: 0; }
#map { position: absolute; inset: 0; }

.brand { padding: 14px 16px 8px; border-bottom: 1px solid var(--hairline); }
.brand-row { display: flex; align-items: center; gap: 10px; }
.brand-mark { border-radius: 6px; flex: 0 0 26px; }
.brand h1 { font-size: 20px; margin: 0; letter-spacing: -0.01em; }
.brand .tag { color: var(--muted); font-size: 12px; }
.note { margin-top: 8px; font-size: 12px; color: var(--ink-2); background: var(--surface-2); border-radius: 6px; padding: 6px 8px; }

.tabs { display: flex; border-bottom: 1px solid var(--hairline); }
.tabs button { flex: 1; background: none; border: 0; padding: 10px 0; font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button.active { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }

.tab { display: none; padding: 14px 16px 24px; overflow-y: auto; flex: 1; }
.tab.active { display: block; }
.hidden { display: none !important; }

h2 { font-size: 16px; margin: 0 0 4px; }
h3 { font-size: 13px; margin: 18px 0 8px; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
h3 .link { margin-left: 6px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.help { color: var(--muted); font-size: 12px; margin: 6px 0 0; line-height: 1.4; }
.empty { color: var(--muted); font-size: 13px; padding: 10px 0; }

.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
input[type=text], input[type=search], input[type=number], select {
  width: 100%; font: inherit; font-size: 13px; padding: 7px 9px; border: 1px solid var(--hairline); border-radius: 6px; background: var(--surface); color: var(--ink);
}
input[type=number] { width: 70px; }
.row { display: flex; align-items: center; gap: 10px; margin: 6px 0; flex-wrap: wrap; }
label.inline { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.search-row { display: flex; gap: 6px; }
.search-row input { flex: 1; }

.segmented { display: flex; margin-bottom: 8px; border: 1px solid var(--hairline); border-radius: 6px; overflow: hidden; }
.segmented button { flex: 1; border: 0; background: var(--surface); font: inherit; font-size: 12px; padding: 6px; color: var(--ink-2); cursor: pointer; }
.segmented button.active { background: var(--accent); color: var(--accent-ink); }

.results { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid var(--hairline); border-radius: 6px; max-height: 220px; overflow-y: auto; }
.results li { padding: 7px 9px; font-size: 12px; cursor: pointer; border-bottom: 1px solid var(--hairline); line-height: 1.35; }
.results li:last-child { border-bottom: 0; }
.results li:hover { background: var(--surface-2); }
.results li .meta { color: var(--muted); display: block; }

.btn-primary, .btn-secondary { font: inherit; font-size: 13px; padding: 8px 14px; border-radius: 6px; cursor: pointer; border: 1px solid transparent; text-decoration: none; display: inline-block; }
.btn-primary { background: var(--accent); color: var(--accent-ink); width: 100%; font-weight: 600; }
.btn-primary:disabled { opacity: 0.5; cursor: progress; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--hairline); }
.btn-secondary:hover { background: var(--surface-2); }
.link { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; font-size: 12px; padding: 0; }
.actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.actions .btn-primary { width: auto; flex: 1; }

details.advanced { margin: 4px 0 14px; }
details.advanced summary { font-size: 12px; color: var(--ink-2); cursor: pointer; }

.progress { margin-top: 12px; }
.progress .bar { height: 6px; background: var(--seq-100); border-radius: 3px; overflow: hidden; }
.progress #progress-fill { height: 100%; width: 0; background: var(--accent); transition: width 0.3s; }
#progress-log { margin: 8px 0 0; padding-left: 18px; font-size: 12px; color: var(--ink-2); max-height: 180px; overflow-y: auto; }
#progress-log li { margin: 2px 0; }
#progress-log li.err { color: var(--critical); }

.sources { margin-top: 24px; border-top: 1px solid var(--hairline); padding-top: 10px; }
.sources p { font-size: 11px; color: var(--muted); line-height: 1.4; margin: 0; }
.sources a { color: var(--ink-2); }

/* tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.tile { background: var(--surface-2); border-radius: var(--radius); padding: 8px 10px; }
.tile .label { font-size: 11px; color: var(--muted); }
.tile .value { font-size: 18px; font-weight: 600; margin-top: 2px; }
.tile .sub { font-size: 11px; color: var(--ink-2); }

.layer-toggles { display: flex; gap: 12px; font-size: 12px; color: var(--ink-2); margin: 8px 0; flex-wrap: wrap; }
.layer-toggles label { display: inline-flex; align-items: center; gap: 4px; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 2px; box-shadow: 0 0 0 2px var(--surface); }
.swatch.comp, .dot.comp { background: var(--comp); }
.swatch.anch, .dot.anch { background: var(--anch); }
.swatch.traffic { background: var(--muted); }
.swatch.permit { background: var(--surface); border: 2px solid var(--ink-2); box-sizing: border-box; }
.gates .warn { color: var(--critical); font-weight: 700; }

/* top list */
.top-list { list-style: none; margin: 0; padding: 0; }
.top-list li { display: grid; grid-template-columns: 24px 1fr 44px; align-items: center; gap: 8px; padding: 5px 4px; border-radius: 6px; cursor: pointer; font-size: 12px; }
.top-list li:hover, .top-list li.active { background: var(--surface-2); }
.top-list .rank { color: var(--muted); font-variant-numeric: tabular-nums; }
.top-list .bar { height: 10px; background: var(--seq-100); border-radius: 0 4px 4px 0; overflow: hidden; }
.top-list .bar > i { display: block; height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; }
.top-list .score { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.top-list .where { color: var(--muted); font-size: 11px; }

/* recommended sites */
.site { border: 1px solid var(--hairline); border-radius: var(--radius); padding: 8px 10px; margin-bottom: 8px; cursor: pointer; }
.site:hover, .site.active { background: var(--surface-2); }
.site .head { display: flex; align-items: baseline; gap: 8px; }
.site .badge-rank { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: 12px; font-weight: 700; flex: 0 0 22px; }
.site .name { font-weight: 600; font-size: 13px; flex: 1; }
.site .sc { font-weight: 600; font-variant-numeric: tabular-nums; }
.site .kind { font-size: 11px; color: var(--muted); margin-left: 30px; }
.site ul { margin: 6px 0 4px 30px; padding: 0; list-style: none; font-size: 12px; color: var(--ink-2); }
.site li { padding: 1px 0; }
.site li.warn { color: var(--critical); }
.site .links { margin-left: 30px; font-size: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.site .links a { color: var(--accent); }
.eval-card { border: 1px solid var(--hairline); border-radius: var(--radius); padding: 8px 10px; margin-top: 8px; font-size: 12px; }

/* spaces */
.space-card { border: 1px solid var(--hairline); border-radius: var(--radius); padding: 9px 10px; margin-bottom: 8px; }
.space-card.active { background: var(--surface-2); }
.space-card .head { display: flex; align-items: baseline; gap: 8px; }
.space-card .name { font-weight: 600; font-size: 13px; flex: 1; cursor: pointer; }
.verdict { font-size: 10px; padding: 2px 7px; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.03em; font-weight: 700; color: #fff; }
.verdict.strong { background: var(--good); } .verdict.yes { background: var(--accent); } .verdict.check { background: #c98500; } .verdict.no { background: var(--critical); }
.space-card .facts-line { font-size: 12px; color: var(--ink-2); margin: 3px 0; }
.space-card ul { margin: 4px 0; padding-left: 16px; font-size: 12px; color: var(--ink-2); }
.space-card li.bad { color: var(--critical); } .space-card li.good { color: var(--good); }
.space-card .steps { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.space-card .steps a, .space-card .steps button { font-size: 12px; padding: 4px 9px; }
.model-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 12px; }
.model-grid div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--hairline); padding: 3px 0; }
.model-grid span:first-child { color: var(--muted); } .model-grid span:last-child { font-variant-numeric: tabular-nums; }
.assump { display: grid; grid-template-columns: 1fr 90px; gap: 4px 8px; align-items: center; font-size: 12px; margin-top: 6px; }
.assump label { color: var(--ink-2); } .assump input { width: 90px; font-size: 12px; padding: 4px 6px; }
.cand { border: 1px dashed var(--hairline); border-radius: 6px; padding: 8px; margin-top: 8px; font-size: 12px; }
.cand .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.cand input { width: 100%; font-size: 12px; padding: 4px 6px; }
.cand .lbl { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.portal-links a { display: block; font-size: 12px; padding: 4px 0; color: var(--accent); }
.unlisted { border-bottom: 1px solid var(--hairline); padding: 6px 0; font-size: 12px; }
.unlisted .t { font-weight: 600; }

/* hex details */
.hero { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 8px; }
.hero .num { font-size: 40px; font-weight: 600; line-height: 1; }
.hero .meta { font-size: 12px; color: var(--ink-2); }
.bars { display: grid; grid-template-columns: 150px 1fr 40px; gap: 4px 8px; align-items: center; font-size: 12px; }
.bars .lbl { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars .track { height: 12px; background: var(--seq-100); border-radius: 0 4px 4px 0; }
.bars .track > i { display: block; height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; }
.bars .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; font-size: 12px; margin: 10px 0; }
.facts div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--hairline); padding: 3px 0; }
.facts span:first-child { color: var(--muted); }
.facts span:last-child { font-variant-numeric: tabular-nums; }
.gates { list-style: none; margin: 8px 0; padding: 0; font-size: 12px; }
.gates li { display: flex; gap: 6px; align-items: center; padding: 3px 0; }
.gates .ok { color: var(--good); font-weight: 700; }
.gates .bad { color: var(--critical); font-weight: 700; }
.gates .na { color: var(--muted); }
.gates .v { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }

/* weights */
.weight { display: grid; grid-template-columns: 140px 1fr 34px; align-items: center; gap: 8px; font-size: 12px; margin: 4px 0; }
.weight label { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.weight input[type=range] { width: 100%; accent-color: var(--accent); }
.weight .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }

/* watches */
.card { background: var(--surface-2); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 12px; }
.card h3 { margin-top: 0; }
.watch { border: 1px solid var(--hairline); border-radius: var(--radius); padding: 10px 12px; margin-bottom: 8px; font-size: 12px; }
.watch .title { font-weight: 600; font-size: 13px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.watch .meta { color: var(--muted); margin: 4px 0; }
.watch .btns { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.watch .btns button { font-size: 12px; padding: 4px 8px; }
.watch.off { opacity: 0.6; }
.change { border-bottom: 1px solid var(--hairline); padding: 7px 0; font-size: 12px; }
.change .when { color: var(--muted); font-size: 11px; }
.change .what { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.badge { font-size: 10px; padding: 1px 6px; border-radius: 10px; background: var(--surface-2); color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.03em; }
.badge.added, .badge.new_license { background: var(--good); color: #fff; }
.badge.removed { background: var(--critical); color: #fff; }
.change .link { font-size: 11px; }

/* legend & tooltip */
.legend { position: absolute; right: 12px; bottom: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; font-size: 11px; color: var(--ink-2); box-shadow: 0 1px 4px rgba(0,0,0,0.08); min-width: 150px; }
.legend-title { font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.legend .ramp { height: 10px; border-radius: 3px; background: linear-gradient(to right, var(--seq-100), var(--seq-200), var(--seq-300), var(--seq-400), var(--seq-500), var(--seq-600), var(--seq-700)); }
.legend .ramp-labels { display: flex; justify-content: space-between; margin-top: 2px; }
.legend-keys { display: flex; gap: 10px; margin-top: 6px; }
.legend-keys span { display: inline-flex; align-items: center; gap: 4px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); }
.hover-tip { position: absolute; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: 6px; padding: 5px 8px; font-size: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.1); transform: translate(12px, 12px); white-space: nowrap; }
.hover-tip b { font-variant-numeric: tabular-nums; }

.maplibregl-popup-content { font-family: inherit; font-size: 12px; color: #0b0b0b; padding: 8px 10px; border-radius: 6px; }
.maplibregl-popup-content h4 { margin: 0 0 4px; font-size: 13px; }
.maplibregl-popup-content .k { color: #898781; }
.maplibregl-ctrl-attrib { font-size: 10px; }

@media (max-width: 760px) {
  #app { flex-direction: column; }
  #panel { width: 100%; flex: 0 0 52vh; border-right: 0; border-bottom: 1px solid var(--hairline); }
  :root { --panel-w: 100%; }
}

/* ---- Accounts ---- */
.user-chip { margin-top: 6px; display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--ink-2); }
.user-chip #user-name { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.auth-gate { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: safe center; overflow-y: auto; padding: 16px; background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: blur(6px); }
.auth-card { flex: 0 0 auto; }
.auth-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; padding: 22px 22px 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.18); display: flex; flex-direction: column; gap: 10px; }
.auth-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.auth-brand h2 { margin: 0; font-size: 20px; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--hairline); margin-bottom: 4px; }
.auth-tabs button { flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 0; font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.auth-tabs button.active { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.auth-card label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-2); }
.auth-card input { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--hairline); border-radius: 6px; background: var(--page); color: var(--ink); }
.auth-card input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.auth-error { min-height: 16px; font-size: 12px; color: var(--critical); }
.auth-card .help { margin: 4px 0 0; text-align: center; }
.auth-card .label-line { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.auth-card .label-line .link { font-size: 12px; }
.auth-forgot, #auth-back { align-self: flex-start; font-size: 12px; margin-top: -4px; }
#auth-back { align-self: center; margin-top: 2px; }
.auth-mode-head h3 { margin: 0 0 2px; font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.auth-card .auth-mode-head .help { text-align: left; margin: 0 0 2px; }
.auth-note { font-size: 13px; line-height: 1.45; padding: 10px 12px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--hairline)); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); color: var(--ink); }
.reset-box { display: grid; gap: 8px; margin: 10px 0 4px; }
.reset-box input { font: inherit; font-size: 13px; padding: 8px 10px; border: 1px solid var(--hairline); border-radius: 6px; background: var(--page); color: var(--ink); width: 100%; }
.dns-records { font-size: 12px; }
.dns-records td { word-break: break-all; }
.users-dialog { border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface); color: var(--ink); padding: 18px; width: min(680px, 94vw); }
.users-dialog::backdrop { background: rgba(0,0,0,0.35); }
.users-dialog h3 { margin: 0 0 4px; }
table.users { width: 100%; border-collapse: collapse; font-size: 12px; margin: 8px 0 12px; }
table.users th, table.users td { text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--hairline); }
table.users th { color: var(--muted); font-weight: 500; }
.user-add .row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.user-add input, .user-add select { font: inherit; font-size: 12px; padding: 6px 8px; border: 1px solid var(--hairline); border-radius: 6px; background: var(--page); color: var(--ink); flex: 1 1 120px; }
.users-dialog .actions { margin-top: 12px; display: flex; justify-content: flex-end; }
@media (max-width: 600px) { .auth-card { padding: 18px 16px 12px; } }

/* ---- Accounts: approval + admin link ---- */
.user-chip a.link { text-decoration: none; }
.user-chip a.attention { font-weight: 700; color: var(--comp); }
#auth-pending h3 { margin: 4px 0 0; font-size: 16px; }
#auth-pending .help { text-align: left; }
#auth-turnstile { min-height: 0; }

/* ---- Admin portal ---- */
.admin-body { height: auto; min-height: 100%; overflow: auto; }
.admin { max-width: 1120px; margin: 0 auto; padding: 14px 20px 60px; }
.admin-head { display: flex; align-items: center; gap: 10px; padding: 6px 0 10px; border-bottom: 1px solid var(--hairline); }
.admin-head h1 { margin: 0; font-size: 20px; }
.admin-head .spacer { flex: 1; }
.admin section { margin-top: 22px; }
.admin h2 { font-size: 15px; margin: 0 0 4px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 14px; }
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 10px; padding: 12px 14px; }
.card.warn { border-color: var(--comp); }
.card .big { font-size: 26px; font-weight: 700; line-height: 1.1; }
.card .big.small { font-size: 16px; padding: 5px 0; }
.card .label { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.card .sub { font-size: 11px; color: var(--muted); margin-top: 4px; }
.table-wrap { overflow-x: auto; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 6px; }
table.admin-table th, table.admin-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
table.admin-table th { color: var(--muted); font-weight: 500; white-space: nowrap; }
table.admin-table tr.pending td { background: color-mix(in srgb, var(--comp) 8%, transparent); }
table.admin-table tr.disabled td { opacity: 0.6; }
table.admin-table td.acts { white-space: nowrap; }
table.admin-table td.acts .link { margin-right: 6px; }
.link.danger { color: var(--critical); }
.pill { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); text-transform: none; }
.pill.active, .pill.login, .pill.signup { background: color-mix(in srgb, var(--anch) 18%, transparent); color: var(--anch); }
.pill.pending { background: color-mix(in srgb, var(--comp) 18%, transparent); color: var(--comp); }
.pill.disabled, .pill.failed, .pill.blocked { background: color-mix(in srgb, var(--critical) 14%, transparent); color: var(--critical); }
.pending-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; margin-top: 8px; border: 1px solid var(--comp); border-radius: 10px; background: var(--surface); }
.pending-row .btns { display: flex; gap: 8px; }
.pending-row .btn-primary { width: auto; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 14px; margin-top: 8px; }
.settings-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-2); }
.settings-grid input, .settings-grid select { font: inherit; font-size: 13px; padding: 7px 9px; border: 1px solid var(--hairline); border-radius: 6px; background: var(--page); color: var(--ink); }
.settings-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.settings-actions .btn-primary { width: auto; }
.admin .user-add { margin-top: 12px; }
@media (max-width: 640px) { .pending-row { flex-direction: column; align-items: stretch; } }

/* ---- Plans ---- */
.plan-chip { font-weight: 600; }
.plan-chip.attention { color: var(--comp); }
.plans-dialog { border: 1px solid var(--hairline); border-radius: 14px; background: var(--surface); color: var(--ink); padding: 20px 22px; width: min(860px, 94vw); max-height: 92vh; overflow: auto; }
.plans-dialog::backdrop { background: rgba(0,0,0,0.4); }
.plans-dialog h3 { margin: 0 0 6px; font-size: 18px; }
.plans-why { margin: 6px 0 10px; border-left: 3px solid var(--comp); }
.plans-status { font-size: 13px; color: var(--ink-2); margin-bottom: 12px; }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.plan-card { border: 1px solid var(--hairline); border-radius: 12px; padding: 14px 14px 12px; background: var(--page); display: flex; flex-direction: column; gap: 6px; }
.plan-card.current { border-color: var(--anch); }
.plan-card.suggested { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }
.plan-name { font-weight: 700; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.plan-price { font-size: 26px; font-weight: 700; line-height: 1; margin: 2px 0 4px; }
.plan-price .per { font-size: 12px; font-weight: 400; color: var(--muted); }
.plan-card ul { margin: 0; padding-left: 18px; font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.plan-card .help { margin: 2px 0 6px; min-height: 30px; }
.plan-card .btn-primary, .plan-card .btn-secondary { width: 100%; margin-top: 4px; text-align: center; }
.interval-toggle { display: inline-flex; border: 1px solid var(--hairline); border-radius: 999px; overflow: hidden; align-self: flex-start; }
.interval-toggle button { font: inherit; font-size: 11px; padding: 3px 10px; border: 0; background: none; color: var(--ink-2); cursor: pointer; }
.interval-toggle button.active { background: var(--accent); color: var(--accent-ink); }
.plans-dialog .actions { margin-top: 12px; display: flex; justify-content: flex-end; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--page); padding: 10px 16px; border-radius: 999px; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,0.25); max-width: min(90vw, 520px); }
.upsell { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); font-size: 13px; line-height: 1.5; }
.upsell .btn-primary { width: auto; margin-top: 8px; display: block; }

/* ---- Market context ---- */
.card.market { padding: 10px 12px; }
ul.verdicts { list-style: none; margin: 0 0 6px; padding: 0; font-size: 12.5px; line-height: 1.45; }
ul.verdicts li { padding: 4px 0 4px 18px; position: relative; border-bottom: 1px solid var(--hairline); }
ul.verdicts li:last-child { border-bottom: 0; }
ul.verdicts li::before { content: ''; position: absolute; left: 3px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
ul.verdicts li.good::before { background: var(--good); }
ul.verdicts li.warn::before { background: var(--comp); }
.card.market details { margin-top: 6px; font-size: 12px; }
.card.market summary { cursor: pointer; color: var(--accent); }
table.mini { width: 100%; border-collapse: collapse; font-size: 11.5px; margin-top: 4px; }
table.mini th, table.mini td { text-align: left; padding: 3px 4px; border-bottom: 1px solid var(--hairline); }
table.mini th { color: var(--muted); font-weight: 500; }
.scorecard { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 2px; }
.chip { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.chip.ok { background: color-mix(in srgb, var(--anch) 16%, transparent); color: var(--anch); }
.chip.bad { background: color-mix(in srgb, var(--critical) 14%, transparent); color: var(--critical); }
.danger { color: var(--critical); }
.pill.failed { background: color-mix(in srgb, var(--critical) 14%, transparent); color: var(--critical); }
.pill.refreshing, .pill.never { background: var(--surface-2); color: var(--ink-2); }

/* ---- Inbox ---- */
.card.inbox { font-size: 12.5px; }
.inbox-addr { display: flex; gap: 6px; align-items: center; margin: 4px 0 6px; }
.inbox-addr code { flex: 1; font-size: 12px; padding: 6px 8px; background: var(--page); border: 1px solid var(--hairline); border-radius: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-steps { margin: 4px 0 6px; padding-left: 18px; line-height: 1.5; }
.inbox-list { margin: 6px 0; padding-left: 16px; line-height: 1.5; }
pre.mail-text { white-space: pre-wrap; word-break: break-word; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--page); border: 1px solid var(--hairline); border-radius: 8px; padding: 10px; max-height: 60vh; overflow: auto; }

/* ---- Landing (signed-out) ---- */
.auth-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 400px); gap: 40px; align-items: center; width: min(1040px, 100%); margin: auto; }
.auth-side { display: flex; flex-direction: column; align-items: stretch; }
.auth-side .auth-card { max-width: none; }
.auth-hero { color: var(--ink); }
.hero-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; margin-bottom: 18px; }
.auth-hero h1 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.01em; }
.hero-lede { font-size: 16px; line-height: 1.5; color: var(--ink-2); margin: 0 0 18px; max-width: 34em; }
.hero-points { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.hero-points li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.hero-points li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.hero-points b { color: var(--ink); }
.hero-prices { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.hero-prices div { border: 1px solid var(--hairline); background: var(--surface); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; min-width: 120px; }
.hero-prices b { font-size: 17px; }
.hero-prices span { font-size: 11.5px; color: var(--muted); }
.hero-credit { font-size: 11.5px; color: var(--muted); margin: 0; }
.auth-gate { background: color-mix(in srgb, var(--page) 94%, transparent); }
@media (max-width: 820px) {
  .auth-gate { align-items: flex-start; }
  .auth-layout { grid-template-columns: 1fr; gap: 18px; }
  .auth-hero h1 { font-size: 26px; }
  .hero-lede { font-size: 14.5px; margin-bottom: 12px; }
  .hero-points { gap: 6px; margin-bottom: 12px; }
  .hero-points li { font-size: 13px; }
  .hero-brand { margin-bottom: 10px; }
}
@media (max-width: 520px) {
  .hero-points, .hero-credit { display: none; }
  .hero-prices { gap: 6px; flex-wrap: nowrap; margin-bottom: 4px; }
  .hero-prices div { min-width: 0; flex: 1; padding: 6px 8px; }
  .hero-prices b { font-size: 15px; }
  .hero-prices span { font-size: 10.5px; line-height: 1.25; }
  .auth-hero h1 { font-size: 23px; margin-bottom: 8px; }
}

/* ---- Plain-English results: best spot, listings at a spot, compact cards ---- */
.ic { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.res-head h2 { font-size: 18px; letter-spacing: -0.01em; }
.res-sub { font-size: 12.5px; color: var(--ink-2); margin: 2px 0 12px; line-height: 1.4; }
.best { border: 1px solid var(--hairline); border-radius: 12px; padding: 14px 14px 12px; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 18px rgba(0,0,0,.05); margin: 4px 0 14px; scroll-margin-top: 8px; }
.best:has(> .empty:only-child) { box-shadow: none; }
.best.flash { animation: wf-flash 1.4s ease; }
@keyframes wf-flash { 0% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 50%, transparent); } 100% { box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 18px rgba(0,0,0,.05); } }
.best-label { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); margin-bottom: 10px; }
.best-label .ic { width: 14px; height: 14px; flex-basis: 14px; }
.best-head { display: flex; gap: 12px; align-items: center; }
.best-id { min-width: 0; }
.best-name { font-size: 17px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.best-sub { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.best-word { font-size: 12px; font-weight: 600; margin-top: 3px; }
.ring { --c: var(--accent); width: 58px; height: 58px; flex: 0 0 58px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 4px solid var(--c); background: color-mix(in srgb, var(--c) 10%, var(--surface)); line-height: 1; }
.ring b { font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.ring span { font-size: 9px; color: var(--muted); margin-top: 2px; }
.ring.sm { width: 46px; height: 46px; flex-basis: 46px; border-width: 3px; }
.ring.sm b { font-size: 16px; }
.ring.sm span { display: none; }
.s-a { --c: var(--good); } .s-b { --c: #3f9f3a; } .s-c { --c: var(--accent); } .s-d { --c: #c98500; } .s-e { --c: var(--critical); }
.best-word.s-a, .best-word.s-b { color: var(--good); } .best-word.s-c { color: var(--accent); } .best-word.s-d { color: #b07600; } .best-word.s-e { color: var(--critical); }
ul.hl { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; }
ul.hl li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.35; color: var(--ink); padding: 0; }
ul.hl li .ic { margin-top: 1px; color: var(--muted); }
ul.hl li.good .ic { color: var(--good); } ul.hl li.warn .ic { color: #c98500; } ul.hl li.bad .ic { color: var(--critical); } ul.hl li.bad { color: var(--critical); }
.best-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.btn-mini { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 12px; line-height: 1.2; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-mini:hover { background: var(--surface-2); }
.btn-mini .ic { width: 13px; height: 13px; flex-basis: 13px; }
.btn-mini.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-mini.primary:hover { background: var(--seq-500); }
.btn-mini:disabled { opacity: .6; cursor: progress; }

.lease-box { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.lease-box:empty { display: none; }
.lease-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); margin-bottom: 8px; display: flex; align-items: baseline; gap: 6px; }
.lease-title .count { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); }
.lease-note { font-size: 12.5px; color: var(--ink-2); margin: 0 0 8px; line-height: 1.45; }
.lease-note.bad { color: var(--critical); }
.lease-links { display: flex; flex-wrap: wrap; gap: 6px; }
.lease-list { display: grid; gap: 8px; }
.lease { display: flex; gap: 10px; border: 1px solid var(--hairline); border-radius: 10px; padding: 10px; background: var(--page); }
.lease.more { display: none; }
.lease-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; flex: 0 0 64px; background: var(--surface-2); }
.lease-main { min-width: 0; flex: 1; }
.lease-top { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 11px; }
.lease-top .portal { font-weight: 700; color: var(--ink-2); }
.tag { font-size: 10.5px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.tag.good { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); font-weight: 600; }
.lease-name { font-weight: 650; font-size: 13.5px; margin-top: 3px; overflow-wrap: anywhere; }
.lease-addr { font-size: 12px; color: var(--ink-2); }
.lease-facts { font-size: 12.5px; margin-top: 3px; font-weight: 500; }
.lease-snip { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lease-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.lease-acts .also { font-size: 11.5px; color: var(--muted); }
.lease-acts .also a { color: var(--accent); }
.lease-all { margin-top: 8px; }
.lease-more { font-size: 12px; margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--ink-2); }
.lease-more a { color: var(--accent); display: inline-flex; align-items: center; gap: 3px; }
.lease-more .ic { width: 12px; height: 12px; flex-basis: 12px; }
.lease-foot { font-size: 11.5px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.lease-foot a { color: var(--accent); white-space: nowrap; }
.lease-foot .ic { width: 11px; height: 11px; vertical-align: -1px; display: inline; }
.lease-loading { font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.spin { width: 14px; height: 14px; border: 2px solid var(--seq-100); border-top-color: var(--accent); border-radius: 50%; animation: wf-spin .8s linear infinite; }
@keyframes wf-spin { to { transform: rotate(360deg); } }
.lease-go { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.lease-paste { display: flex; gap: 6px; margin-top: 8px; }
.lease-paste input { flex: 1; min-width: 0; font: inherit; font-size: 12px; padding: 6px 10px; border: 1px solid var(--hairline); border-radius: 999px; background: var(--page); color: var(--ink); }

.site { padding: 10px 12px; border-radius: 10px; }
.site-row { display: flex; align-items: center; gap: 10px; }
.site-main { flex: 1; min-width: 0; }
.site .name { font-weight: 600; font-size: 13.5px; }
.site .kind { margin-left: 0; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-peek { font-size: 12px; color: var(--muted); margin: 5px 0 0 32px; line-height: 1.4; }
.site.open .site-peek { display: none; }
.site.open, .site.open:hover { background: var(--surface); border-color: var(--ink-2); cursor: default; }
.site-more { margin-left: 32px; }
.site ul.hl { margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink); }
.site-links { display: flex; gap: 12px; font-size: 12px; margin-top: 10px; flex-wrap: wrap; }
.site-links a { color: var(--accent); }
.pill-score { min-width: 34px; text-align: center; font-weight: 700; font-size: 13px; padding: 3px 8px; border-radius: 999px; color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 13%, transparent); font-variant-numeric: tabular-nums; }
.site ul.hl li.warn { color: var(--ink); }
details.sources-d { margin-top: 6px; }
details.sources-d summary { font-size: 11.5px; color: var(--muted); cursor: pointer; }
.h3-note { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); font-size: 12px; margin-left: 4px; }
.eval-card { padding: 12px; border-radius: 10px; }
.eval-card ul.hl li { font-size: 12.5px; }
.bad-text { color: var(--critical); }

details.deep { margin-top: 20px; border: 1px solid var(--hairline); border-radius: 10px; padding: 0 12px; }
details.deep > summary { cursor: pointer; padding: 11px 0; font-size: 13px; font-weight: 600; color: var(--ink-2); list-style: none; display: flex; align-items: center; gap: 8px; }
details.deep > summary::-webkit-details-marker { display: none; }
details.deep > summary::before { content: ''; width: 6px; height: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; }
details.deep[open] > summary::before { transform: rotate(45deg); }
details.deep[open] { padding-bottom: 12px; }
details.deep > h3:first-of-type { margin-top: 6px; }
.sub-h { font-size: 11.5px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; margin: 14px 0 6px; }
.bars .val small { color: var(--muted); font-size: 10px; }
#hex-details .best-name { font-size: 15px; }

.model-line { font-size: 13.5px; line-height: 1.5; margin: 0 0 10px; }
.model-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.model-tiles div { background: var(--page); border: 1px solid var(--hairline); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.model-tiles span { font-size: 11px; color: var(--muted); }
.model-tiles b { font-size: 16px; }
.model-tiles small { font-size: 10.5px; color: var(--ink-2); line-height: 1.3; }
details.model-more { margin-top: 10px; font-size: 12px; }
details.model-more summary { cursor: pointer; color: var(--accent); margin-bottom: 6px; }
.space-card { border-radius: 10px; padding: 11px 12px; }
.space-card .facts-line.strong { color: var(--ink); font-weight: 500; }
.space-card .facts-line.muted { color: var(--muted); }
.space-card ul.hl.checks { margin: 8px 0 4px; gap: 5px; padding: 0; }
.space-card ul.hl.checks li { font-size: 12.5px; }
.space-card details.why { font-size: 12px; margin-top: 6px; }
.space-card details.why summary { cursor: pointer; color: var(--accent); }
.verdict { font-size: 10.5px; padding: 3px 8px; white-space: nowrap; }
@media (max-width: 420px) { .model-tiles { grid-template-columns: 1fr 1fr; } }
.space-card ul.hl li.good, .space-card ul.hl li.neutral, .space-card ul.hl li.warn { color: var(--ink); }
.space-card .badge-rank { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: 12px; font-weight: 700; flex: 0 0 22px; align-self: center; }
.space-card .head { align-items: center; }
#add-listing details summary { font-size: 13px; color: var(--ink-2); cursor: pointer; padding: 3px 0; }
#add-listing details[open] summary { color: var(--ink); font-weight: 600; }
#iso-min, #iso-mode { width: auto; font-size: 12px; padding: 4px 6px; }

/* ---- Competition around a spot ---- */
.comp-box { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--page); border: 1px solid var(--hairline); }
.comp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.comp-title { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.comp-chip { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.comp-chip.good { background: color-mix(in srgb, var(--good) 15%, transparent); color: var(--good); }
.comp-chip.warn { background: color-mix(in srgb, #c98500 18%, transparent); color: #a86f00; }
.comp-chip.bad { background: color-mix(in srgb, var(--critical) 15%, transparent); color: var(--critical); }
.comp-line { font-size: 12.5px; line-height: 1.45; margin: 6px 0 0; color: var(--ink); }
.comp-sub { font-size: 11px; color: var(--muted); margin: 8px 0 4px; }
.comp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.comp-list li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; font-size: 12.5px; }
.comp-list .cname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comp-list li.direct .cname { font-weight: 600; }
.comp-list .ctier { font-size: 11px; color: var(--muted); white-space: nowrap; }
.comp-list .ctier b { color: var(--critical); font-weight: 600; }
.comp-list .cmi { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.cdot { width: 9px; height: 9px; border-radius: 50%; background: var(--comp); opacity: .45; }
.cdot.t-big, .cdot.t-chain { opacity: 1; box-shadow: 0 0 0 2px color-mix(in srgb, var(--comp) 30%, transparent); }
.cdot.t-gym, .cdot.t-barber, .cdot.t-local { opacity: .8; }
.comp-map { margin-top: 8px; display: inline-flex; align-items: center; gap: 4px; }
.comp-map .ic { width: 13px; height: 13px; flex-basis: 13px; }
.lease-comp { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; margin-top: 4px; color: var(--ink-2); }
.lease-comp .ic { width: 14px; height: 14px; flex-basis: 14px; margin-top: 1px; }
.lease-comp.good .ic { color: var(--good); } .lease-comp.warn .ic { color: #c98500; } .lease-comp.bad .ic { color: var(--critical); }

/* ---- Guided planner ---- */
.wizard { position: relative; }
.wizard.running .wz-body, .wizard.running .wz-steps { opacity: .45; pointer-events: none; }
.wz-steps { display: flex; gap: 2px; margin: 0 0 16px; }
.wz-dot { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--muted); position: relative; }
.wz-dot:not(:last-child)::after { content: ''; position: absolute; top: 11px; left: calc(50% + 14px); right: calc(-50% + 14px); height: 2px; background: var(--hairline); }
.wz-dot.done:not(:last-child)::after { background: color-mix(in srgb, var(--accent) 45%, var(--hairline)); }
.wz-dot span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); position: relative; z-index: 1; }
.wz-dot em { font-style: normal; font-size: 10.5px; }
.wz-dot.done span { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); color: var(--accent); }
.wz-dot.on span { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.wz-dot.on em { color: var(--ink); font-weight: 600; }
.wz-dot:disabled { cursor: default; opacity: .55; }
.wz-body h2 { font-size: 19px; letter-spacing: -0.01em; margin: 2px 0 4px; line-height: 1.25; }
.wz-sub { font-size: 13px; color: var(--ink-2); margin: 0 0 12px; line-height: 1.45; }
.wz-hero { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.wz-hero h2 { font-size: 20px; }
.wz-hero p { font-size: 13px; color: var(--ink-2); margin: 4px 0 0; line-height: 1.45; }
.wz-art { width: 92px; flex: 0 0 92px; }
.wz-art .a1 { fill: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.wz-art .a2 { fill: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.wz-art .a3 { fill: none; stroke: var(--seq-300); stroke-width: 3; stroke-linecap: round; }
.wz-art .a4 { fill: color-mix(in srgb, var(--anch) 28%, transparent); }
.wz-art .a5 { fill: var(--accent); }
.wz-art .a6 { fill: var(--surface); }
.wz-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wz-card { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; text-align: left; padding: 12px; border-radius: 12px; border: 1px solid var(--hairline); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.wz-card:hover { border-color: var(--accent); box-shadow: 0 4px 14px rgba(0,0,0,.07); transform: translateY(-1px); }
.wz-card.on { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
.wz-card b { font-size: 13.5px; }
.wz-card span { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.wz-ic { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 30px; }
.wz-list { display: grid; gap: 8px; }
.wz-opt { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--hairline); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; transition: border-color .15s; }
.wz-opt:hover { border-color: var(--accent); }
.wz-opt.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent); }
.wz-opt span { display: flex; flex-direction: column; gap: 2px; }
.wz-opt b { font-size: 13.5px; }
.wz-opt small { font-size: 12px; color: var(--ink-2); line-height: 1.4; }
.wz-opt em { font-style: normal; font-size: 11px; color: var(--muted); }
.wz-list.compact .wz-opt { padding: 9px 12px; }
.wz-label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin: 16px 0 6px; }
.wz-label span { font-weight: 400; color: var(--muted); }
#wz-desc { width: 100%; font: inherit; font-size: 13px; padding: 9px 10px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--surface); color: var(--ink); resize: vertical; }
#wz-desc:focus, #wz-q:focus { outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); outline-offset: 0; }
.wz-read { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; font-size: 12px; min-height: 18px; }
.wz-read-l { color: var(--muted); }
.wz-seg { margin: 0; }
.wz-check { display: flex; gap: 10px; align-items: flex-start; padding: 7px 2px; cursor: pointer; }
.wz-check input { margin-top: 3px; accent-color: var(--accent); }
.wz-check span { display: flex; flex-direction: column; }
.wz-check b { font-size: 13px; font-weight: 600; }
.wz-check small { font-size: 11.5px; color: var(--muted); }
.wz-near { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 12.5px; }
.wz-near .ic { width: 15px; height: 15px; flex-basis: 15px; }
.wz-picked { margin-top: 12px; }
.wz-picked-in { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--hairline)); }
.wz-picked-in .ic { width: 20px; height: 20px; color: var(--accent); flex-basis: 20px; }
.wz-picked-in span { display: flex; flex-direction: column; gap: 2px; }
.wz-picked-in b { font-size: 13.5px; }
.wz-picked-in small { font-size: 12px; color: var(--ink-2); }
.wz-picked-in select { width: auto; font-size: 12px; padding: 2px 4px; }
.wz-money { display: flex; align-items: center; gap: 6px; }
.wz-money input { width: 150px !important; font-size: 15px !important; }
.wz-money span { color: var(--ink-2); font-size: 13px; }
.wz-hint { font-size: 12px; color: var(--muted); margin: 6px 0 0; line-height: 1.4; }
.wz-review { border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; background: var(--surface); }
.wz-rv { display: grid; grid-template-columns: 76px 1fr auto; gap: 10px; align-items: baseline; padding: 9px 12px; border-bottom: 1px solid var(--hairline); font-size: 13px; }
.wz-rv:last-child { border-bottom: 0; }
.wz-rv span { color: var(--muted); font-size: 12px; }
.wz-rv b { font-weight: 600; }
.wz-rv i { font-weight: 400; color: var(--ink-2); }
.wz-what { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 14px 0 0; }
.wz-what div { font-size: 12px; color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start; line-height: 1.35; }
.wz-what b { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); display: grid; place-items: center; font-size: 11px; }
.wz-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; position: sticky; bottom: -24px; padding: 14px 0 16px; background: linear-gradient(to bottom, transparent, var(--surface) 35%); z-index: 2; }
.wz-nav .btn-primary { width: auto; min-width: 120px; }
.wz-go { min-width: 190px !important; font-size: 14px !important; padding: 10px 18px !important; }
.wz-reset { display: block; margin: 0 auto; font-size: 11.5px; color: var(--muted); }
.progress { border: 1px solid var(--hairline); border-radius: 12px; padding: 12px 14px; background: var(--surface); }
.progress-stage { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.progress-details { margin-top: 8px; font-size: 12px; }
.progress-details summary { cursor: pointer; color: var(--muted); }
.prev-field { margin-top: 18px; }
details.manual-setup { margin-top: 6px; border-top: 1px solid var(--hairline); padding-top: 10px; }
details.manual-setup > summary { cursor: pointer; font-size: 12.5px; color: var(--ink-2); margin-bottom: 10px; }

/* results: plan banner, score breakdown, plan check */
.plan-banner { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--hairline)); margin: 2px 0 12px; }
.pb-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12.5px; color: var(--ink-2); }
.pb-k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--accent); }
.pb-main b { font-size: 14px; color: var(--ink); }
.pb-main i { color: var(--muted); }
.bd { margin-top: 12px; display: grid; gap: 5px; }
.bd-title { font-size: 11px; color: var(--muted); }
.bd-row { display: grid; grid-template-columns: 158px 1fr 28px; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-2); }
.bd-track { height: 7px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bd-track i { display: block; height: 100%; border-radius: 4px; background: var(--c, var(--accent)); }
.bd-row b { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); font-size: 12px; }
.pc { border: 1px solid var(--hairline); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; background: var(--surface); }
.pc-title { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.pc-title .ic { width: 14px; height: 14px; flex-basis: 14px; color: var(--accent); }
.pc-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 7px; }
.pc-list li { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.4; }
.pc-list li .ic { margin-top: 1px; color: var(--muted); }
.pc-list li.good .ic { color: var(--good); }
.pc-list li.warn .ic { color: #c98500; }
.pc-list li.bad .ic { color: var(--critical); }
.pc-steps { margin: 8px 0 0; padding-left: 20px; font-size: 12.5px; line-height: 1.45; display: grid; gap: 4px; color: var(--ink); }
.pc-note { font-size: 11.5px; color: var(--muted); margin: 10px 0 0; line-height: 1.45; }
@media (max-width: 420px) { .bd-row { grid-template-columns: 120px 1fr 26px; } .wz-art { display: none; } }
@media (max-width: 760px) {
  body:not([data-tab]) #panel, body[data-tab="analyze"] #panel { flex: 1 1 auto; height: 100vh; border-bottom: 0; }
  body:not([data-tab]) #map-wrap, body[data-tab="analyze"] #map-wrap { display: none; }
}

/* ---- Plan verdict, checklist, competitor links ---- */
.pc-verdict { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; margin-bottom: 10px; font-size: 12.5px; line-height: 1.4; }
.pc-verdict b { font-size: 15px; }
.pc-verdict.good { background: color-mix(in srgb, var(--good) 12%, var(--surface)); color: color-mix(in srgb, var(--good) 75%, var(--ink)); }
.pc-verdict.warn { background: color-mix(in srgb, #c98500 14%, var(--surface)); color: color-mix(in srgb, #c98500 65%, var(--ink)); }
.pc-verdict.bad { background: color-mix(in srgb, var(--critical) 11%, var(--surface)); color: color-mix(in srgb, var(--critical) 80%, var(--ink)); }
.pc-verdict.sm { margin: 10px 0 0; padding: 8px 10px; } .pc-verdict.sm b { font-size: 13.5px; }
.pc-base { font-size: 12.5px; color: var(--ink-2); margin: 0 0 12px; line-height: 1.45; }
.pc-count { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); margin-left: 4px; }
ul.pc-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
ul.pc-steps label { display: flex; gap: 10px; align-items: flex-start; padding: 6px 4px; border-radius: 8px; cursor: pointer; font-size: 12.5px; line-height: 1.45; }
ul.pc-steps label:hover { background: var(--surface-2); }
ul.pc-steps input { margin-top: 2px; width: 16px; height: 16px; flex: 0 0 16px; accent-color: var(--accent); }
ul.pc-steps input:checked + span { color: var(--muted); text-decoration: line-through; }
.eval-card .pc { margin: 12px 0 0; }
.comp-sub span { color: var(--muted); }
.comp-list li.more { display: none; }
.comp-list .cname a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ink) 25%, transparent); text-underline-offset: 2px; }
.comp-list .cname a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.comp-acts { display: flex; gap: 14px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.comp-acts .comp-map { margin-top: 0; }
.eval-here { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12.5px; }
.eval-here .ic { width: 15px; height: 15px; flex-basis: 15px; }
.progress-stage.failed { color: var(--critical); }
.lease-bldg { font-weight: 400; color: var(--muted); }

/* ---- Pictures ---- */
.tile-img { border-radius: 14%; display: block; flex: 0 0 auto; object-fit: cover; background: #cfe3fb; }
.brand-mark, .hero-brand img, .auth-brand img { border-radius: 22%; }
.wz-banner { display: block; width: 100%; height: auto; aspect-ratio: 990 / 390; object-fit: cover; border-radius: 14px; margin: 0 0 14px; background: #cfe3fb; }
.wz-hero { margin-bottom: 14px; }
.wz-card { gap: 8px; }
.wz-opt .tile-img { margin-top: 1px; }
.wz-rvhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hero-img { display: block; width: 100%; max-width: 34em; height: auto; aspect-ratio: 990 / 390; object-fit: cover; border-radius: 16px; margin: 0 0 18px; box-shadow: 0 10px 30px rgba(13, 54, 107, .18); background: #cfe3fb; }
.res-head h2 { display: flex; align-items: center; gap: 10px; }
.plan-banner { justify-content: flex-start; }
.plan-banner .pb-main { flex: 1; }
.progress-top { display: flex; gap: 12px; align-items: center; }
.progress-main { flex: 1; min-width: 0; }
.progress-art { animation: wf-bob 1.8s ease-in-out infinite; }
@keyframes wf-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.progress-stage.failed ~ .bar, .progress:has(.progress-stage.failed) .progress-art { animation: none; opacity: .6; }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 28px 12px; }
.empty-state.hidden { display: none; }
.empty-state b { font-size: 16px; margin-top: 10px; }
.empty-state p { font-size: 13px; color: var(--ink-2); margin: 0 0 10px; max-width: 30em; line-height: 1.45; }
.empty-state .btn-primary { width: auto; min-width: 160px; }
.upsell-art { float: right; margin: 0 0 6px 12px; }
@media (prefers-reduced-motion: reduce) { .progress-art { animation: none; } }
@media (max-width: 520px) { .hero-img { display: none; } }

/* ---- Pictures, round two ---- */
.pc-verdict { flex-direction: row; align-items: center; gap: 12px; }
.pc-verdict > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pc-verdict.sm { flex-direction: column; align-items: flex-start; gap: 2px; }
.plan-card > .tile-img { margin-bottom: 2px; }
.market-art { float: right; margin: 0 0 6px 10px; }
.empty-state.slim { padding: 16px 8px; }
.empty-state.slim b { font-size: 14.5px; }
.empty-state.slim p { font-size: 12.5px; }
.eval-here { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 8px; padding: 8px 10px; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; cursor: pointer; }
.eval-here:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.eval-here span { display: flex; flex-direction: column; gap: 1px; }
.eval-here b { font-size: 13px; }
.eval-here small { font-size: 12px; color: var(--ink-2); }
.pending-art { margin: 4px auto 0; }
#auth-pending { text-align: center; } #auth-pending .auth-brand { text-align: left; } #auth-pending .help { text-align: center; }
#plans-body .empty-state { padding: 18px 12px 6px; }
.watch-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }

/* ---- Results: jump bar; hint on the empty map; roomier panel on big screens ---- */
.res-jump { position: sticky; top: -14px; z-index: 4; display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 12px; padding: 8px 16px; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hairline); scrollbar-width: none; }
.res-jump::-webkit-scrollbar { display: none; }
.res-jump button { flex: 0 0 auto; font: inherit; font-size: 12px; line-height: 1; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--page); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.res-jump button:hover { color: var(--ink); border-color: var(--ink-2); }
.res-jump button.active { background: var(--ink); color: var(--surface); border-color: var(--ink); }
#best-site, #plan-check, #summary-tiles, #sites-h, #eval-h { scroll-margin-top: 54px; }
.map-hint { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); z-index: 2; width: min(440px, calc(100% - 120px)); display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.12); pointer-events: none; }
.map-hint img { border-radius: 10px; flex: 0 0 auto; }
.map-hint b { display: block; font-size: 14px; margin-bottom: 2px; }
.map-hint span { font-size: 12.5px; line-height: 1.4; color: var(--ink-2); }
@media (max-width: 860px) { .map-hint { display: none; } }
@media (min-width: 1500px) { :root { --panel-w: 440px; } }

/* ---- Phones: use the height that is really visible, let the map fold away, keep inputs from zooming, bigger tap targets ---- */
.map-btn { display: none; }
@media (max-width: 760px) {
  #panel { flex: 1 1 0; min-height: 0; }
  #map-wrap { flex: 0 0 40dvh; }
  body.map-off #map-wrap, body[data-tab="watch"] #map-wrap { display: none; }
  body:not([data-tab]) #panel, body[data-tab="analyze"] #panel { height: 100vh; height: 100dvh; }
  .map-btn { align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 600; line-height: 1; border-radius: 999px; border: 1px solid var(--hairline); background: var(--surface); color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,0.18); padding: 10px 14px; cursor: pointer; z-index: 5; }
  .map-hide { display: inline-flex; position: absolute; top: 10px; left: 10px; }
  .map-show { position: fixed; right: 14px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--surface); border-color: var(--ink); }
  body.map-off[data-tab="results"] .map-show, body.map-off[data-tab="spaces"] .map-show { display: inline-flex; }
  #brand-tagline { display: none; }
  header.brand { padding: 10px 14px 6px; }
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: 16px !important; }
  .res-jump button { padding: 9px 13px; }
  #panel button.link, #panel a.link, #panel summary { padding-top: 7px; padding-bottom: 7px; }
  #panel .btn-mini, #pb-edit { min-height: 34px; }
  .auth-card button.link { padding: 8px 2px; }
  .auth-forgot { margin-top: -8px; }
  .interval-toggle button { font-size: 13px; padding: 8px 14px; }
  /* Plans on a phone: the plan worth looking at comes first, your current one last, and Close stays in reach */
  .plans-dialog { padding: 16px 14px 0; max-height: 92dvh; }
  .plan-card.suggested { order: -1; }
  .plan-card.current { order: 5; }
  .plans-dialog .actions { position: sticky; bottom: 0; margin: 12px -14px 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--hairline); }
  .plans-dialog .actions button { flex: 1; min-height: 40px; }
}

/* ---- Monitor tab: the update e-mail switch ---- */
.mail-pref { padding: 12px 14px; margin-bottom: 12px; }
.mail-pref label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.mail-pref input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 18px; accent-color: var(--accent); }
.mail-pref b { display: block; font-size: 13.5px; }
.mail-pref small { display: block; font-size: 12px; color: var(--ink-2); line-height: 1.4; margin-top: 2px; }
.mail-pref .help { margin: 8px 0 0 28px; }

/* ---- Account window, legal links ---- */
.account-dialog { width: min(520px, 94vw); }
.acct { display: grid; gap: 4px; }
.acct-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 4px; }
.acct-head h3 { margin: 0 0 2px; font-size: 18px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.acct-head .btn-secondary { flex: 0 0 auto; }
.acct-sec { border-top: 1px solid var(--hairline); padding: 12px 0 8px; }
.acct-sec h4 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-2); }
.acct-line { margin: 0 0 8px; font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.acct-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.acct-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.4; cursor: pointer; }
.acct-check input { width: 18px; height: 18px; margin-top: 1px; flex: 0 0 18px; accent-color: var(--accent); }
.acct-form { display: grid; gap: 8px; max-width: 360px; }
.acct-form label { display: grid; gap: 4px; font-size: 12px; color: var(--ink-2); }
.acct-form input { font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--hairline); border-radius: 6px; background: var(--page); color: var(--ink); }
.acct-form button { justify-self: start; }
.acct-msg { margin: 0; font-size: 12.5px; min-height: 1em; color: var(--ink-2); }
.acct-msg.good { color: var(--good); }
.acct-msg.bad, #acct-del-msg { color: var(--critical); }
.acct-danger summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--critical); padding: 4px 0; }
.acct-danger[open] summary { margin-bottom: 8px; }
.btn-danger { font: inherit; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 6px; cursor: pointer; border: 1px solid var(--critical); background: var(--critical); color: #fff; }
.btn-danger:disabled { opacity: 0.6; cursor: progress; }
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 14px 0 4px; font-size: 12.5px; }
.legal-links a { color: var(--ink-2); text-decoration: none; }
.legal-links a:hover { color: var(--accent); text-decoration: underline; }
.legal-links.in-app { justify-content: flex-start; margin: 22px 0 0; }
.auth-consent { margin: 0; font-size: 12px; }
.auth-consent a { color: var(--accent); }
.user-chip { flex-wrap: wrap; row-gap: 4px; }
@media (max-width: 760px) {
  .acct-form input { font-size: 16px; }
  .account-dialog .actions { position: sticky; bottom: 0; margin: 12px -14px 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--hairline); }
  .account-dialog .actions button { flex: 1; min-height: 40px; }
  .account-dialog { padding: 16px 14px 0; max-height: 92dvh; }
}

/* ---- Admin: contact messages ---- */
.msg-row { border: 1px solid var(--hairline); border-radius: 10px; padding: 12px 14px; margin: 8px 0; background: var(--surface); }
.msg-row.done { opacity: 0.6; }
.msg-top { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.msg-body { white-space: pre-wrap; word-break: break-word; font-size: 13.5px; line-height: 1.5; margin: 8px 0 10px; padding-left: 10px; border-left: 3px solid var(--hairline); }
.msg-acts { display: flex; gap: 12px; align-items: center; }
