/* Door Themes — the one stylesheet for every server-rendered page (src/pages.js, src/legal.js).
 * Dark, warm palette matching the iOS app (Palette in ThemeScene.swift): ground #0b0b10,
 * card #15151c, accent orange. System font, 16 px gutters, phone first. */

:root {
  color-scheme: dark;
  --bg: #0b0b10;
  --bg-raised: #101016;
  --card: #15151c;
  --card-2: #1c1c25;
  --line: #262632;
  --line-strong: #33333f;
  --fg: #f4efe8;
  --muted: #a39d94;
  --faint: #6f6a63;
  --accent: #d9622b;
  --accent-strong: #ee7a3d;
  --accent-soft: rgba(217, 98, 43, 0.16);
  --ok: #4fc26b;
  --ok-soft: rgba(79, 194, 107, 0.14);
  --warn: #e8b24a;
  --warn-soft: rgba(232, 178, 74, 0.14);
  --danger: #e5574b;
  --danger-soft: rgba(229, 87, 75, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --gutter: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
h2 { font-size: 1.1rem; font-weight: 650; margin: 24px 0 8px; }
h3 { font-size: 1rem; font-weight: 650; margin: 0 0 4px; }
p { margin: 0 0 12px; }
ul, ol { padding-left: 20px; margin: 0 0 12px; }
li { margin: 4px 0; }
code { font-size: 0.9em; background: var(--card-2); padding: 1px 5px; border-radius: 5px; }
.muted { color: var(--muted); }
.fine { font-size: 0.85rem; margin-top: 12px; }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-strong); margin: 0 0 8px; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }

/* ---- shell ---------------------------------------------------------------- */
.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(11, 11, 16, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--fg); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex: none; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--muted); font-size: 0.92rem; font-weight: 500; padding: 7px 10px; border-radius: 999px; }
.site-nav a:hover { color: var(--fg); background: var(--card); text-decoration: none; }
.site-nav a.primary { color: #fff; background: var(--accent); }
.site-nav a.primary:hover { background: var(--accent-strong); }
@media (max-width: 520px) { .site-nav a.optional { display: none; } }

main { flex: 1; width: 100%; }
main.narrow, main.wide, main.full { padding: 28px var(--gutter) 40px; margin: 0 auto; }
main.narrow { max-width: 472px; }
main.wide { max-width: 860px; }
main.full { max-width: none; padding: 0; }
@media (min-width: 720px) { main.narrow, main.wide { padding-top: 48px; } }

.site-footer { border-top: 1px solid var(--line); background: var(--bg-raised); color: var(--muted); font-size: 0.85rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; padding-top: 22px; padding-bottom: 28px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--fg); }
.site-footer .note { flex-basis: 100%; color: var(--faint); margin: 0; }

/* ---- cards & text blocks -------------------------------------------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.card + .card { margin-top: 16px; }
@media (min-width: 720px) { .card { padding: 26px 28px; } }
.card h1 + .muted, .card h1 + p { margin-top: 0; }
.stack > * + * { margin-top: 16px; }

.err, .warn, .ok-note { padding: 10px 14px; border-radius: var(--radius-sm); margin: 0 0 14px; font-size: 0.95rem; }
.err { background: var(--danger-soft); color: #ffb3ab; border: 1px solid rgba(229, 87, 75, 0.35); }
.warn { background: var(--warn-soft); color: #f1cf86; border: 1px solid rgba(232, 178, 74, 0.3); }
.warn.ok, .ok-note { background: var(--ok-soft); color: #9fe0b0; border: 1px solid rgba(79, 194, 107, 0.3); }

/* ---- forms ---------------------------------------------------------------- */
label { display: block; font-weight: 600; font-size: 0.92rem; margin: 14px 0 6px; }
input, select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--bg-raised); color: inherit; font: inherit; appearance: none; -webkit-appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input::placeholder { color: var(--faint); }
button, a.button {
  display: block; width: 100%; margin-top: 16px; padding: 13px 16px; border: 0; border-radius: 12px;
  background: var(--accent); color: #fff; font: inherit; font-weight: 650; text-align: center; cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}
button:hover, a.button:hover { background: var(--accent-strong); text-decoration: none; }
button:active, a.button:active { transform: translateY(1px); }
button:disabled { opacity: 0.45; cursor: default; transform: none; }
button.danger { background: var(--danger); }
button.danger:hover { background: #ef6a5e; }
button.ghost, a.button.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line-strong); margin-top: 10px; }
button.ghost:hover, a.button.ghost:hover { background: var(--card-2); }
button.small, a.button.small { width: auto; display: inline-block; margin-top: 0; padding: 8px 14px; font-size: 0.9rem; border-radius: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.actions .button, .actions button { width: auto; margin-top: 0; flex: 1 1 180px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin-top: 14px; }
.check input { width: 18px; height: 18px; margin-top: 4px; flex: none; accent-color: var(--accent); }

/* ---- pills, identities, lists -------------------------------------------- */
.pill { display: inline-block; font-size: 0.74rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); margin-left: 6px; vertical-align: middle; white-space: nowrap; }
.pill.on { color: var(--ok); border-color: rgba(79, 194, 107, 0.4); background: var(--ok-soft); }
.pill.off { color: var(--faint); }
.pill.warn { color: var(--warn); border-color: rgba(232, 178, 74, 0.4); background: var(--warn-soft); }
.pill.accent { color: var(--accent-strong); border-color: rgba(217, 98, 43, 0.4); background: var(--accent-soft); }

.identity { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-raised); }
.identity .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.identity .who { min-width: 0; }
.identity .who strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.identity .who span { font-size: 0.85rem; color: var(--muted); }

.cameras, .rows { list-style: none; padding: 0; margin: 8px 0 0; }
.cameras li, .rows li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); margin: 0; }
.cameras li:first-child, .rows li:first-child { border-top: 0; }
.cameras .dot, .rows .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); flex: none; }
.cameras .dot.on, .rows .dot.on { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.cameras .name, .rows .name { flex: 1; font-weight: 600; min-width: 0; }
.cameras .state, .rows .state { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.next { margin: 18px 0 0; padding-left: 20px; }
.next li { margin: 6px 0; }
.done h1 { font-size: 1.7rem; }

/* ---- dashboard ------------------------------------------------------------ */
.dash-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; margin-bottom: 18px; }
.dash-head h1 { font-size: 1.8rem; margin: 0; }
.dash-head .who { flex: 1 1 240px; }
.dash-head .actions { margin-top: 0; flex: 0 1 auto; min-width: 0; }
.dash-head .actions .button { flex: 0 0 auto; }
/* On a phone the three header buttons wrap onto full-width rows instead of widening the page. */
@media (max-width: 640px) {
  .dash-head .actions { flex: 1 1 100%; }
  .dash-head .actions .button { flex: 1 1 140px; }
}
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-2 .span { grid-column: 1 / -1; } .card + .card { margin-top: 0; } }
.card header.row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.card header.row h2 { margin: 0; }
.card header.row .muted { font-size: 0.85rem; }
.device { display: grid; grid-template-columns: 12px 1fr; grid-template-areas: "dot head" "ctl ctl"; gap: 6px 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.device:first-child { border-top: 0; padding-top: 6px; }
.device .dot { grid-area: dot; margin-top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--faint); }
.device .dot.on { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.device .head { grid-area: head; min-width: 0; }
.device .head strong { font-size: 1.02rem; }
.device .head .meta { font-size: 0.85rem; color: var(--muted); margin: 2px 0 0; }
.device .ctl { grid-area: ctl; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.device .ctl label { margin: 0; font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.device .ctl select { width: auto; flex: 1 1 160px; padding: 9px 36px 9px 12px; font-size: 0.95rem; }
.device .ctl .status { font-size: 0.82rem; color: var(--muted); }
.device .ctl .status:empty { display: none; }
.device .ctl .status.ok { color: var(--ok); }
.device .ctl .status.err { color: var(--danger); }
.device .ctl a.button { margin: 0; }
@media (min-width: 560px) { .device { grid-template-columns: 12px 1fr auto; grid-template-areas: "dot head ctl"; align-items: center; } .device .ctl { justify-content: flex-end; } .device .ctl select { flex: 0 0 180px; } }
.events li { align-items: flex-start; }
.events .kind { width: 34px; height: 34px; border-radius: 10px; background: var(--card-2); display: flex; align-items: center; justify-content: center; flex: none; font-size: 1rem; }
.events .kind.press { background: var(--accent-soft); }
.events .what { flex: 1; min-width: 0; }
.events .what strong { display: block; }
.events .what span { font-size: 0.85rem; color: var(--muted); }
.events time { font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.events.compact .kind { width: 26px; height: 26px; border-radius: 8px; font-size: 0.8rem; }
.events.compact .what strong { font-size: 0.9rem; font-weight: 600; }
.empty { color: var(--muted); padding: 10px 0 2px; }
.plan-title { margin: 10px 0 2px; font-size: 1.05rem; }
.plan-detail { margin: 0; color: var(--muted); }
.plan-cameras { margin-top: 12px; }
.plan-cameras li { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-sections { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 14px; }
@media (min-width: 720px) { .plan-sections { grid-template-columns: repeat(2, 1fr); } }
.plan-section { padding: 14px 16px; border-radius: 12px; background: var(--bg-raised); border: 1px solid var(--line); }
.plan-section h3 { margin: 0 0 6px; font-size: 0.85rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.plan-section ol { margin: 0 0 8px; padding-left: 20px; }
.plan-section p { margin: 0; font-size: 0.92rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 10px 0 0; font-size: 0.95rem; }
.kv dt { color: var(--muted); margin: 0; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* ---- message / error pages ----------------------------------------------- */
.message .icon { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-strong); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 16px; }
.message.ok .icon { background: var(--ok-soft); color: var(--ok); }
.message.bad .icon { background: var(--danger-soft); color: var(--danger); }
.steps { margin: 14px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--bg-raised); border: 1px solid var(--line); }
.steps p { margin: 0 0 6px; font-size: 0.85rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.steps ol { margin: 0; padding-left: 20px; }

/* ---- legal ---------------------------------------------------------------- */
.legal h2 { margin-top: 28px; }
.legal p, .legal li { font-size: 0.97rem; color: #ddd6cc; }
.legal strong { color: var(--fg); }

/* ---- player --------------------------------------------------------------- */
.stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.stage video, .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage video { object-fit: contain; }
.stage canvas { pointer-events: none; }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; margin-top: 12px; }
.controls button { margin-top: 0; }
.controls .theme { grid-column: 1 / -1; }
.status { margin-top: 10px; font-size: 0.95rem; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.status.live { color: var(--ok); font-weight: 600; }
.status.error { color: var(--danger); }
.status.warn { color: var(--warn); }

/* ---- landing -------------------------------------------------------------- */
.hero { padding: 40px 0 28px; background: radial-gradient(900px 420px at 15% -10%, rgba(217, 98, 43, 0.22), transparent 70%), radial-gradient(700px 360px at 95% 10%, rgba(120, 70, 200, 0.14), transparent 70%); }
.hero .container { display: grid; gap: 28px; align-items: center; }
@media (min-width: 880px) { .hero { padding: 64px 0 48px; } .hero .container { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; } }
.hero h1 { font-size: clamp(2rem, 6vw, 3.1rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.05; margin: 0 0 14px; }
.hero h1 em { font-style: normal; color: var(--accent-strong); }
.hero .lead { font-size: 1.1rem; color: var(--muted); max-width: 34rem; margin-bottom: 20px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .cta a.button { width: auto; margin: 0; flex: 0 0 auto; }
.hero .fine { color: var(--faint); margin-top: 14px; }

/* The way to the iPhone app: a black badge with Apple's logo (storeBadge() in pages.js). */
.store-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 14px; border-radius: 12px; background: #000; color: #fff; border: 1px solid #5a5a66; line-height: 1.05; text-align: left; }
.store-badge:hover { text-decoration: none; border-color: #8a8a96; }
.store-badge svg { width: 26px; height: 26px; flex: none; margin-top: -3px; }
.store-badge small { display: block; font-size: 0.66rem; letter-spacing: 0.02em; }
.store-badge strong { display: block; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.store-badge.block { display: flex; justify-content: center; width: 100%; margin-top: 10px; }
.store-badge.small { gap: 7px; padding: 5px 12px 5px 9px; border-radius: 10px; }
.store-badge.small svg { width: 18px; height: 18px; margin-top: -2px; }
.store-badge.small small { font-size: 0.56rem; }
.store-badge.small strong { font-size: 0.92rem; }
/* Buttons with a mark in front: the app's door on "Open Door Themes", a globe on the web version. */
a.button.with-mark { display: flex; align-items: center; justify-content: center; gap: 10px; }
a.button.with-mark.small { display: inline-flex; gap: 7px; }
a.button.with-mark svg { flex: none; }
a.button.with-mark:not(.ghost) svg { border-radius: 6px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35); }
a.button.with-mark.ghost svg { width: 20px; height: 20px; }
a.button.with-mark.ghost.small svg { width: 16px; height: 16px; }

.showcase { position: relative; }
.porch { position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: 70vh; border-radius: 22px; overflow: hidden; background: #1a1620; box-shadow: var(--shadow); border: 1px solid var(--line-strong); }
.porch svg.scene, .porch canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.porch canvas { pointer-events: none; }
.porch .badge { position: absolute; left: 14px; top: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(11, 11, 16, 0.7); backdrop-filter: blur(8px); font-size: 0.82rem; font-weight: 600; }
.porch .badge .live { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 3px rgba(229, 87, 75, 0.25); }
.porch .theme-name { position: absolute; right: 14px; top: 14px; z-index: 2; padding: 6px 12px; border-radius: 999px; background: rgba(11, 11, 16, 0.7); backdrop-filter: blur(8px); font-size: 0.82rem; color: var(--muted); }
.showcase .caption { font-size: 0.85rem; color: var(--faint); text-align: center; margin: 12px 0 0; }

.section { padding: 36px 0; }
.section + .section { border-top: 1px solid var(--line); }
@media (min-width: 880px) { .section { padding: 56px 0; } }
.section h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 750; letter-spacing: -0.02em; margin: 0 0 8px; }
.section .sub { color: var(--muted); max-width: 40rem; margin-bottom: 24px; }
.features { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature .glyph { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-strong); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feature .glyph svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.02rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.feature .soon { display: inline-block; margin-left: 6px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--warn); vertical-align: middle; }

.seasons { display: grid; gap: 18px; }
.season h3 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin: 0 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); color: var(--fg); font: inherit; font-size: 0.92rem; font-weight: 500; cursor: pointer; margin: 0; width: auto; transition: border-color 0.15s ease, background 0.15s ease; }
.chip .swatch { width: 10px; height: 10px; border-radius: 50%; background: var(--swatch, var(--accent)); flex: none; }
.chip:hover { background: var(--card-2); border-color: var(--faint); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }

.steps-grid { display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 720px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 20px 20px 20px 64px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 20px; top: 20px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.step h3 { margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.requirements { margin-top: 20px; padding: 16px 18px; border-radius: 12px; background: var(--bg-raised); border: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.requirements strong { color: var(--fg); }
.cta-band { text-align: center; padding: 48px 0 56px; background: radial-gradient(600px 300px at 50% 120%, rgba(217, 98, 43, 0.25), transparent 70%); }
.cta-band h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin-bottom: 8px; }
.cta-band .sub { margin: 0 auto 22px; }
.cta-band .cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-band .cta a.button { width: auto; margin: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---- usage report (/admin/analytics) -------------------------------------- */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .stats { grid-template-columns: repeat(6, 1fr); } }
.stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat strong { font-size: 1.7rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 0.85rem; }
.stat small { color: var(--accent-strong); font-size: 0.85rem; font-weight: 600; }
.report-scroll { overflow-x: auto; margin-top: 8px; }
.report { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.report th { text-align: left; font-weight: 600; color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 6px 10px 6px 0; white-space: nowrap; }
.report td { padding: 8px 10px 8px 0; border-top: 1px solid var(--line); position: relative; white-space: nowrap; }
.report td span { position: relative; }
.report .num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 0; padding-left: 10px; }
.report .bar { position: absolute; left: 0; top: 5px; bottom: 5px; border-radius: 6px; background: var(--accent-soft); min-width: 2px; }
.report td:first-child span:not(.bar) { padding-left: 8px; }
.button.current { border-color: var(--accent); color: var(--accent-strong); }
