/* Sally HQ styles. Light and dark themes. Sidebar from 900px, bottom bar below. */
:root {
  --bg: #f3f5f8; --surface: #ffffff; --surface-2: #eaeef3; --hover: #dde4ec;
  --text: #14202b; --muted: #475563; --line: #c9d2dc; --line-strong: #7b8896;
  --accent: #1d4ed8; --accent-hover: #1a43bd; --on-accent: #ffffff; --focus: #1d4ed8;
  --g-bg: #e3f6ea; --g-line: #2f8a58; --g-fg: #0f5c33;
  --a-bg: #fff1d6; --a-line: #b7791f; --a-fg: #7a4400;
  --r-bg: #fde4e1; --r-line: #c0392b; --r-fg: #a3150b;
  --i-bg: #e6edf8; --i-line: #5b78a8; --i-fg: #1f3b6b;
  --radar: #1d9a5b; --shadow: 0 1px 2px rgba(20,32,43,.08), 0 4px 14px rgba(20,32,43,.06);
  --nav-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1419; --surface: #18202a; --surface-2: #222c38; --hover: #2c3846;
    --text: #e8edf2; --muted: #aab5c1; --line: #2f3b49; --line-strong: #7f8d9c;
    --accent: #8db8ff; --accent-hover: #a9c9ff; --on-accent: #0b1220; --focus: #9cc2ff;
    --g-bg: #0f2e1f; --g-line: #2f8a58; --g-fg: #6ee7a0;
    --a-bg: #33260a; --a-line: #b7791f; --a-fg: #fbbf24;
    --r-bg: #3a1512; --r-line: #c0392b; --r-fg: #ff9a90;
    --i-bg: #172438; --i-line: #4d6a99; --i-fg: #a9c4f0;
    --radar: #4ade80; --shadow: 0 1px 2px rgba(0,0,0,.4);
  }
}
:root[data-theme="dark"] {
  --bg: #0f1419; --surface: #18202a; --surface-2: #222c38; --hover: #2c3846;
  --text: #e8edf2; --muted: #aab5c1; --line: #2f3b49; --line-strong: #7f8d9c;
  --accent: #8db8ff; --accent-hover: #a9c9ff; --on-accent: #0b1220; --focus: #9cc2ff;
  --g-bg: #0f2e1f; --g-line: #2f8a58; --g-fg: #6ee7a0;
  --a-bg: #33260a; --a-line: #b7791f; --a-fg: #fbbf24;
  --r-bg: #3a1512; --r-line: #c0392b; --r-fg: #ff9a90;
  --i-bg: #172438; --i-line: #4d6a99; --i-fg: #a9c4f0;
  --radar: #4ade80; --shadow: 0 1px 2px rgba(0,0,0,.4);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: hidden; }
body.noscroll { overflow: hidden; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.15rem; margin-bottom: 10px; } h3 { font-size: 1rem; }
p { margin: 0 0 10px; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; overflow-wrap: anywhere; }
.err { color: var(--r-fg); font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--on-accent); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
kbd { font: .85rem ui-monospace, Menlo, monospace; background: var(--surface-2); border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; padding: 1px 7px; }
.noscript { padding: 20px; }
.icon { flex: none; }

/* Shell */
.app { display: flex; min-height: 100vh; min-height: 100dvh; }
.side { display: none; }
.col { flex: 1; min-width: 0; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
.top { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; min-height: 56px; }
.top-brand { display: flex; align-items: center; gap: 8px; color: var(--g-line); }
.top-brand strong { color: var(--text); }
.top-time { margin-left: auto; font-size: .875rem; text-align: right; }
.icon-btn { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.icon-btn:hover { background: var(--hover); }
.mode-badge { font-size: .8rem; font-weight: 700; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; border: 1px solid; }
.mode-badge.live { background: var(--g-bg); color: var(--g-fg); border-color: var(--g-line); }
.mode-badge.sample { background: var(--a-bg); color: var(--a-fg); border-color: var(--a-line); }
main { padding: 16px; max-width: 1280px; margin: 0 auto; outline: none; }
main > * + * { margin-top: 16px; }
nav#nav { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: flex; background: var(--surface); border-top: 1px solid var(--line); z-index: 30; }
.nav-link { flex: 1; min-width: 0; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); text-decoration: none; font-size: .75rem; font-weight: 600; }
.nav-link[aria-current="page"] { color: var(--accent); box-shadow: inset 0 3px 0 var(--accent); }
.app.gated nav#nav, .app.gated .top { display: none; }
.app.gated .col { padding-bottom: 0; }
@media (min-width: 900px) {
  .side { display: flex; flex-direction: column; gap: 16px; width: 232px; padding: 18px 12px; background: var(--surface); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; height: 100dvh; flex: none; }
  .app.gated .side { display: none; }
  .brand { display: flex; align-items: center; gap: 10px; color: var(--g-line); padding: 0 8px; }
  .brand-name { font-weight: 800; font-size: 1.2rem; color: var(--text); }
  .brand-note { font-size: .8rem; color: var(--muted); }
  nav#nav { position: static; display: flex; flex-direction: column; height: auto; padding: 0; background: none; border: 0; gap: 4px; }
  .nav-link { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 10px 12px; font-size: 1rem; border-radius: 10px; }
  .nav-link:hover { background: var(--hover); }
  .nav-link[aria-current="page"] { background: var(--surface-2); box-shadow: none; }
  .side-help { margin-top: auto; padding: 0 8px; color: var(--muted); font-size: .875rem; }
  .col { padding-bottom: 0; }
  .top-brand { display: none; }
  main { padding: 24px; }
}
@media (max-width: 899px) { .side { display: block; width: 0; height: 0; } .side .brand, .side .side-help { display: none; } }

/* Cards, buttons, chips */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); min-width: 0; }
.card > * + * { margin-top: 12px; }
.card > h2 { margin-bottom: 0; }
.page-head { display: flex; flex-direction: column; gap: 6px; }
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover:not(:disabled) { background: var(--hover); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn.big { min-height: 52px; padding: 10px 22px; font-size: 1.05rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.end { justify-content: flex-end; }
.lnk { display: inline-flex; min-height: 44px; align-items: center; }
.back { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; }
.badge, .sev, .tag, .st, .count-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; border: 1px solid; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.s-green { background: var(--g-bg); color: var(--g-fg); border-color: var(--g-line); }
.s-amber { background: var(--a-bg); color: var(--a-fg); border-color: var(--a-line); }
.s-red { background: var(--r-bg); color: var(--r-fg); border-color: var(--r-line); }
.sev-high { background: var(--r-bg); color: var(--r-fg); border-color: var(--r-line); }
.sev-medium { background: var(--a-bg); color: var(--a-fg); border-color: var(--a-line); }
.sev-low, .sev-info { background: var(--i-bg); color: var(--i-fg); border-color: var(--i-line); }
.tag.safe { background: var(--g-bg); color: var(--g-fg); border-color: var(--g-line); }
.tag.person { background: var(--surface-2); color: var(--text); border-color: var(--line-strong); }
.tag.env, .count-pill { background: var(--surface-2); color: var(--muted); border-color: var(--line); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Overview */
.hero { display: grid; gap: 16px; grid-template-columns: 1fr; }
.two { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero, .two { grid-template-columns: 1fr 1fr; } }
.ring-wrap { position: relative; width: min(240px, 70vw); margin: 0 auto; }
.ring { width: 100%; display: block; }
.ring-bg { stroke: var(--surface-2); }
.ring-arc { transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); }
.ring-mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-n { font-size: 3rem; font-weight: 800; line-height: 1; }
.ring-l { color: var(--muted); font-size: .875rem; }
.voice { text-align: center; font-weight: 700; font-size: 1.05rem; }
.how summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--accent); font-weight: 600; }
.radar-wrap { width: min(320px, 82vw); margin: 0 auto; }
.radar { width: 100%; display: block; }
.r-ring { stroke: var(--line-strong); stroke-width: 1; opacity: .5; }
.r-cross { stroke: var(--line-strong); stroke-width: 1; opacity: .3; }
.r-edge { stroke: var(--radar); stroke-width: 2; }
.sweep { transform-origin: 150px 150px; animation: spin 7s linear infinite; }
.radar.fast .sweep { animation-duration: 2.4s; }
@keyframes spin { to { transform: rotate(360deg); } }
.dot { animation: pulse 7s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.d-red { fill: var(--r-line); } .d-amber { fill: var(--a-line); } .d-green { fill: var(--g-line); }
@keyframes pulse { 0% { opacity: 1; transform: scale(1.8); } 25% { opacity: .85; transform: scale(1); } 100% { opacity: .85; transform: scale(1); } }
.legend { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; padding: 0; margin: 0; justify-content: center; }
.legend li { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.sw { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.sw.s-red { background: var(--r-line); } .sw.s-amber { background: var(--a-line); } .sw.s-green { background: var(--g-line); }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, 1fr); } .stats.tight { grid-template-columns: repeat(3, 1fr); } }
.stats.tight { grid-template-columns: repeat(3, 1fr); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); min-width: 0; }
.stat.accent { border-color: var(--accent); }
.stat-n { font-size: 2rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-l { color: var(--muted); font-size: .875rem; }
.bars { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 70px 1fr 44px; gap: 10px; align-items: center; }
.bar-track { height: 14px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.b-high { background: var(--r-line); } .b-medium { background: var(--a-line); } .b-low { background: var(--i-line); } .b-info { background: var(--line-strong); }
.bar-n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.ticker { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.tick { display: flex; gap: 10px; padding: 8px 10px; border-left: 4px solid var(--i-line); background: var(--surface-2); border-radius: 6px; }
.tick.t-red { border-left-color: var(--r-line); } .tick.t-amber { border-left-color: var(--a-line); } .tick.t-green { border-left-color: var(--g-line); }
.tick-time { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.hype { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Clients and findings */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.fld { display: flex; flex-direction: column; gap: 4px; min-width: 130px; }
.fld.grow { flex: 1; min-width: 180px; }
.fld-l { font-size: .875rem; font-weight: 600; color: var(--muted); display: block; }
input[type=text], input[type=search], input[type=password], select { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.ccard { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-left-width: 5px; border-radius: 12px; color: var(--text); text-decoration: none; box-shadow: var(--shadow); min-height: 44px; min-width: 0; }
.ccard:hover { background: var(--surface-2); }
.ccard.st-red { border-left-color: var(--r-line); } .ccard.st-amber { border-left-color: var(--a-line); } .ccard.st-green { border-left-color: var(--g-line); }
.cc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.cc-name { font-weight: 700; overflow-wrap: anywhere; }
.empty { color: var(--muted); padding: 20px; text-align: center; grid-column: 1 / -1; }
.sites { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.site-h { font-weight: 600; overflow-wrap: anywhere; }
.fnds, .types { display: flex; flex-direction: column; gap: 10px; }
.fnd, .type { border: 1px solid var(--line); border-left-width: 5px; border-radius: 10px; background: var(--surface); }
.fnd.f-high, .type.f-high { border-left-color: var(--r-line); } .fnd.f-medium, .type.f-medium { border-left-color: var(--a-line); }
.fnd.f-low, .type.f-low, .fnd.f-info, .type.f-info { border-left-color: var(--i-line); }
.fnd > summary, .type > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; min-height: 44px; }
summary::-webkit-details-marker { display: none; }
.fnd-t { font-weight: 700; flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.fnd-s { font-size: .875rem; }
.dl { margin: 0; padding: 4px 14px 14px; display: grid; gap: 4px; }
.dl dt { font-weight: 700; margin-top: 8px; color: var(--muted); font-size: .875rem; text-transform: uppercase; letter-spacing: .03em; }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.sub { padding: 0 14px; }
.tsites { list-style: none; margin: 8px 0 0; padding: 0 14px 12px; display: flex; flex-direction: column; gap: 6px; }
.tsites li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--surface); }
.seg-b { min-height: 44px; padding: 8px 14px; border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.seg-b + .seg-b { border-left: 1px solid var(--line-strong); }
.seg-b[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
ul.plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

/* Fixes, timeline, preview */
.lockhead { display: flex; gap: 12px; align-items: center; }
.lockhead h2 { margin: 0; }
.banner { padding: 10px 14px; border-radius: 10px; font-weight: 800; letter-spacing: .03em; text-align: center; border: 2px dashed; }
.banner.pv { background: var(--a-bg); color: var(--a-fg); border-color: var(--a-line); }
.banner.srv { background: var(--i-bg); color: var(--i-fg); border-color: var(--i-line); }
.pv-prog { height: 14px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pv-fill { display: block; height: 100%; width: 0; background: var(--g-line); transition: width .3s; }
.tl-box { max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.tl { list-style: none; margin: 0; padding: 0; }
.tl-row { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; padding: 10px 12px; border-top: 1px solid var(--line); }
.tl-row:first-child { border-top: 0; }
.tl-main { display: flex; flex-direction: column; min-width: 0; grid-column: 2; }
.tl-t { font-weight: 700; overflow-wrap: anywhere; }
.pips { display: flex; gap: 4px; grid-column: 2; }
.pip { width: 26px; height: 6px; border-radius: 3px; background: var(--line); }
.pip.on { background: var(--g-line); }
.tl-step { grid-column: 2; font-size: .875rem; min-height: 1.3em; }
.tl-running { background: var(--surface-2); }
.st-planned { background: var(--surface-2); color: var(--muted); border-color: var(--line-strong); }
.st-running { background: var(--i-bg); color: var(--i-fg); border-color: var(--i-line); }
.st-done { background: var(--g-bg); color: var(--g-fg); border-color: var(--g-line); }
.st-failed { background: var(--r-bg); color: var(--r-fg); border-color: var(--r-line); }
.st-undone { background: var(--a-bg); color: var(--a-fg); border-color: var(--a-line); }
.shieldup { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 12px; background: var(--g-bg); color: var(--g-fg); border: 1px solid var(--g-line); font-size: 1.1rem; }
.sumtext { margin: 0; padding: 12px; background: var(--surface-2); border-radius: 10px; white-space: pre-wrap; overflow-wrap: anywhere; font: .9rem/1.5 ui-monospace, Menlo, monospace; }
.locked { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 10px; background: var(--a-bg); color: var(--a-fg); border: 1px solid var(--a-line); }
.locked .muted { color: inherit; opacity: .9; }

/* Scan */
.modes { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .modes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .modes { grid-template-columns: repeat(4, 1fr); } }
.mode { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; padding: 18px; min-height: 150px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; font: inherit; box-shadow: var(--shadow); }
.mode:hover:not(:disabled) { border-color: var(--accent); background: var(--surface-2); }
.mode:disabled { opacity: .55; cursor: not-allowed; }
.mode-ic { color: var(--accent); }
.mode-n { font-weight: 800; font-size: 1.15rem; }
.mode-t { color: var(--muted); flex: 1; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sstep { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.sstep > span:nth-child(2) { flex: 1; font-weight: 600; }
.ss-active { background: var(--i-bg); color: var(--i-fg); }
.ss-done { background: var(--g-bg); color: var(--g-fg); }
.ss-fail { background: var(--r-bg); color: var(--r-fg); }
.scanlist li { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Settings */
.swrow { display: flex; align-items: center; gap: 12px; }
.switch { width: 56px; height: 32px; min-height: 32px; border-radius: 999px; border: 2px solid var(--line-strong); background: var(--surface-2); position: relative; cursor: pointer; flex: none; padding: 0; }
.switch::before { content: ""; position: absolute; inset: -8px -2px; }
.knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--text); transition: transform .2s; }
.switch[aria-checked="true"] { background: var(--g-line); border-color: var(--g-line); }
.switch[aria-checked="true"] .knob { transform: translateX(24px); background: #fff; }
.switch:disabled { opacity: .55; }

/* Sheets, celebration, gate */
.overlay { position: fixed; inset: 0; background: rgba(8,12,18,.62); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
[hidden] { display: none !important; }
.sheet { background: var(--surface); color: var(--text); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0; padding: 18px; outline: none; }
.sheet-in > * + * { margin-top: 12px; }
.sheet-list { max-height: 240px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; }
.sheet-list summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }
@media (min-width: 700px) { .overlay { align-items: center; } .sheet { border-radius: 18px; } }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.keys dt, .keys dd { margin: 0; }
.confirm { display: flex; flex-direction: column; gap: 6px; }
.cele { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; background: rgba(8,12,18,.35); animation: fadein .2s; }
.cele-card { background: var(--surface); color: var(--text); border: 2px solid var(--g-line); border-radius: 20px; padding: 28px 32px; text-align: center; max-width: 90vw; box-shadow: 0 10px 40px rgba(0,0,0,.35); animation: pop .35s cubic-bezier(.2,1.4,.4,1); }
.cele-shield { color: var(--g-line); }
.cele-title { font-size: 2rem; font-weight: 800; margin-top: 8px; }
.cele-sub { color: var(--muted); margin-top: 4px; }
@keyframes fadein { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.gate { min-height: 80vh; display: flex; align-items: center; justify-content: center; }
.gate-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.gate-mark { color: var(--g-line); }

@media (max-width: 420px) {
  main { padding: 12px; }
  .card { padding: 12px; }
  h1 { font-size: 1.35rem; }
  .bar-row { grid-template-columns: 58px 1fr 38px; }
  .top-time { display: none; }
  .btn.big { width: 100%; }
  .ring-n { font-size: 2.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .sweep { animation: none; }
}

/* Team accounts */
.userrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.userrow .btn { margin-left: auto; min-height: 44px; }
code.secret { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--surface-2, var(--line)); padding: 2px 8px; border-radius: 8px; word-break: break-all; user-select: all; }
textarea.uri { width: 100%; box-sizing: border-box; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--text); font: .8125rem ui-monospace, Menlo, Consolas, monospace; word-break: break-all; }
