:root {
  --bg: #ffffff; --page: #f7f8fa; --card: #ffffff; --text: #1f2328; --muted: #646b75; --line: #e1e4e8; --soft: #f1f3f5;
  --accent: #0b4dda; --accent-2: #0a3fb3; --crit: #8a1c7c; --high: #d32f2f; --med: #b26a00; --low: #1f7a96; --info: #6b7280;
  --ok: #18794e; --ok-bg: #e6f4ec; --threat-bg: #fdecec; --issue-bg: #fff4e0; --pending-bg: #e8effd; --failed-bg: #eef0f3;
  --header: #ffffff; --footer: #f1f3f5; --footer-text: #4b525b; --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .08);
  color-scheme: light;
}
/* Theme: data-theme on <html> is set by the server (profile setting or cookie): system | light | dark */
html[data-theme="dark"] {
    --bg: #121417; --page: #121417; --card: #1b1e23; --text: #e6e8eb; --muted: #9aa1ab; --line: #2c3036; --soft: #23272d;
    --accent: #5c8dff; --accent-2: #8aaeff; --crit: #e07bd2; --high: #ff7b7b; --med: #f0b35a; --low: #6cc3df; --info: #9aa3b2;
    --ok: #5fd197; --ok-bg: #15301f; --threat-bg: #3a1a1c; --issue-bg: #352711; --pending-bg: #1b2640; --failed-bg: #252a33;
    --header: #1b1e23; --footer: #0d0f12; --footer-text: #9aa1ab; --shadow: 0 1px 3px rgba(0, 0, 0, .4);
    color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --bg: #121417; --page: #121417; --card: #1b1e23; --text: #e6e8eb; --muted: #9aa1ab; --line: #2c3036; --soft: #23272d;
    --accent: #5c8dff; --accent-2: #8aaeff; --crit: #e07bd2; --high: #ff7b7b; --med: #f0b35a; --low: #6cc3df; --info: #9aa3b2;
    --ok: #5fd197; --ok-bg: #15301f; --threat-bg: #3a1a1c; --issue-bg: #352711; --pending-bg: #1b2640; --failed-bg: #252a33;
    --header: #1b1e23; --footer: #0d0f12; --footer-text: #9aa1ab; --shadow: 0 1px 3px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }  /* the attribute always wins over component display rules */
body { margin: 0; background: var(--page); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex; flex-direction: column; min-height: 100vh; }
a { color: var(--accent); }
code, pre { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }

/* header */
.top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 10px 20px; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; text-decoration: none; color: var(--text); }
.brand svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; }
.stage { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--med);
  border: 1px solid var(--med); border-radius: 4px; padding: 1px 5px; }
nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
nav > a { text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 6px; font-weight: 500; }
nav > a.on, nav > a:hover { color: var(--text); background: var(--soft); }
nav .me { display: flex; align-items: center; gap: 8px; }
nav form { margin: 0 0 0 6px; }
.who { font-size: 14px; }
main { max-width: 1120px; margin: 0 auto; padding: 24px 16px; }
footer { max-width: 1120px; margin: 0 auto 32px; padding: 0 16px; color: var(--muted); font-size: 13px; }

/* building blocks */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; margin-bottom: 18px; min-width: 0; }
.narrow { max-width: 460px; margin: 40px auto; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; margin-bottom: 18px; }
.grid-2 > .card { margin-bottom: 0; }
h1 { font-size: 22px; margin: 0 0 12px; overflow-wrap: anywhere; }
h2 { font-size: 17px; margin: 0 0 12px; }
h2.inline { display: inline; }
h3 { font-size: 14px; margin: 18px 0 8px; color: var(--muted); }
.mt { margin-top: 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
label { display: block; margin: 0 0 14px; font-weight: 600; }
input:not([type=file]), select { display: block; width: 100%; margin-top: 4px; padding: 9px 10px; font: inherit;
  border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); }
button { font: inherit; font-weight: 600; padding: 9px 18px; border: 0; border-radius: 6px;
  background: var(--accent); color: #fff; cursor: pointer; }
button.secondary { background: var(--soft); color: var(--text); border: 1px solid var(--line); }
button.link { background: none; color: var(--accent); padding: 0; font-weight: 400; }
button.danger { background: none; color: var(--high); border: 1px solid var(--high); }
.btn-link { font-weight: 600; text-decoration: none; }
.btn-link:hover { text-decoration: underline; }
.upload, .mfa-choice, .inline-form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.inline-form label { flex: 1 1 180px; margin: 0; }
.mfa-choice label { flex: 1 1 100%; margin: 0; }
.alert, .notice, .ok { padding: 10px 14px; border-radius: 8px; border: 1px solid; }
.alert { color: var(--high); border-color: var(--high); background: var(--threat-bg); }
.notice { color: var(--accent); border-color: var(--accent); background: var(--pending-bg); }
.ok { color: var(--ok); border-color: var(--ok); background: var(--ok-bg); }
.danger-zone { margin-top: 8px; }
.danger-card { border-color: var(--high); }
.actions { margin-top: 14px; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; }
.kpi-v { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kpi-v.is-threat { color: var(--high); }
.kpi-l { color: var(--muted); font-size: 13px; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
table.compact td { padding: 6px 6px; vertical-align: middle; }
td.w-bar { width: 38%; }
.scans .fname { overflow-wrap: anywhere; min-width: 140px; }
.scans .hashes { display: grid; grid-template-columns: auto auto; gap: 0 6px; font-size: 12px; }
.scans .hashes span { color: var(--muted); }
.scans code, .inventory code { font-size: 12px; }
.inventory tr.flagged td { background: var(--threat-bg); }
code.path { overflow-wrap: anywhere; }

/* verdict badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; white-space: nowrap;
  padding: 4px 10px 4px 7px; border-radius: 999px; border: 1px solid currentColor; position: relative; overflow: hidden; }
.badge svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.badge-lg { font-size: 15px; padding: 8px 16px 8px 12px; }
.badge-lg svg { width: 24px; height: 24px; }
.v-threat { color: var(--high); background: var(--threat-bg); animation: threat-pulse 1.6s ease-out infinite; }
.v-issues { color: var(--med); background: var(--issue-bg); animation: issue-glow 2.4s ease-in-out infinite; }
.v-clean { color: var(--ok); background: var(--ok-bg); }
.v-clean::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  animation: shine 3.5s ease-in-out infinite; }
.v-pending { color: var(--accent); background: var(--pending-bg); }
.v-pending .spin-track { opacity: .25; }
.v-pending .spin-arc { transform-origin: 12px 12px; animation: spin 1s linear infinite; }
.v-failed { color: var(--info); background: var(--failed-bg); }
@keyframes threat-pulse { 0% { box-shadow: 0 0 0 0 rgba(198, 40, 40, .55); } 70% { box-shadow: 0 0 0 9px rgba(198, 40, 40, 0); } 100% { box-shadow: 0 0 0 0 rgba(198, 40, 40, 0); } }
@keyframes issue-glow { 50% { box-shadow: 0 0 0 4px rgba(178, 106, 0, .18); } }
@keyframes shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .v-threat, .v-issues, .v-clean::after, .v-pending .spin-arc { animation: none; }
}

/* severities */
.summary { display: flex; gap: 8px; flex-wrap: wrap; }
.sev { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 2px 8px;
  border-radius: 4px; border: 1px solid currentColor; }
.sev-critical { color: var(--crit); } .sev-high { color: var(--high); } .sev-medium { color: var(--med); }
.sev-low { color: var(--low); } .sev-info { color: var(--info); }

/* bars and charts (inline SVG, colours from CSS) */
svg.bar { width: 100%; height: 10px; display: block; }
svg.bar .track { fill: var(--soft); }
svg.bar .fill { fill: var(--accent); }
.cat-malware .fill, .sevbar-critical .fill { fill: var(--crit); }
.sevbar-high .fill, .cat-secrets .fill { fill: var(--high); }
.sevbar-medium .fill, .cat-web .fill { fill: var(--med); }
.sevbar-low .fill, .cat-deps .fill { fill: var(--low); }
svg.stack { width: 100%; height: 22px; border-radius: 6px; display: block; }
.v-fill-clean { fill: var(--ok); background: var(--ok); }
.v-fill-issues { fill: var(--med); background: var(--med); }
.v-fill-threat { fill: var(--high); background: var(--high); }
.v-fill-failed { fill: var(--info); background: var(--info); }
svg.chart { width: 100%; height: auto; display: block; }
svg.chart .grid { stroke: var(--line); stroke-width: 1; }
svg.chart .tick { fill: var(--muted); font-size: 11px; }
svg.chart .col, .sw.col { fill: var(--accent); background: var(--accent); }
svg.chart .col-threat, .sw.col-threat { fill: var(--high); background: var(--high); }
.legend { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }

/* forensic report */
.report-head .head-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.report-head .head-text { flex: 1; min-width: 200px; }
.report-head .head-text h1 { margin: 0; }
.report-head .head-text p { margin: 2px 0 0; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 18px 0 0; font-size: 14px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
code.hash { font-size: 13px; }
.dot-ok, .dot-off { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
.dot-ok { background: var(--ok); } .dot-off { background: var(--info); }
details > summary { cursor: pointer; padding: 6px 0; }
.file-block { border-top: 1px solid var(--line); padding: 4px 0; }
.file-block > summary { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.file-meta { margin: 4px 0 8px; overflow-wrap: anywhere; }
.finding { border-left: 3px solid var(--line); padding: 6px 0 6px 12px; margin: 8px 0; }
.f-head { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cat { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.rule { font-size: 13px; }
.loc { color: var(--muted); font-size: 13px; }
.finding p { margin: 6px 0; }
pre { margin: 0; padding: 8px 10px; background: var(--bg); border-radius: 6px; overflow-x: auto; font-size: 13px; }

/* profile */
.avatar { border-radius: 50%; object-fit: cover; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-weight: 700; flex: none; }
.avatar.sm { width: 28px; height: 28px; font-size: 12px; }
.avatar.lg { width: 88px; height: 88px; font-size: 30px; }
.profile-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.profile-head h1 { margin: 0; }
.profile-head p { margin: 4px 0 0; }
.qr-box { background: #fff; padding: 12px; border-radius: 8px; width: 220px; margin: 8px 0 12px; }
svg.qr { width: 196px; height: 196px; display: block; }
code.key { font-size: 16px; letter-spacing: .05em; word-break: break-all; }
.steps { padding-left: 20px; margin: 8px 0; }
.codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.codes code { display: block; padding: 8px; background: var(--bg); border-radius: 6px; text-align: center; font-size: 15px; }

@media (max-width: 640px) {
  .top { padding: 10px 12px; }
  .who { display: none; }
  dl.facts { grid-template-columns: 1fr; }
  dl.facts dt { margin-top: 6px; }
  td.w-bar { width: 30%; }
}

/* ===================== upload zone ===================== */
.upload-zone { display: flex; flex-direction: column; gap: 14px; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0;
  padding: 30px 20px; border: 2px dashed var(--line); border-radius: 14px; text-align: center; cursor: pointer;
  font-weight: 400; transition: border-color .2s, background .2s, transform .2s; }
.drop:hover, .drop.is-drag { border-color: var(--accent); background: var(--pending-bg); }
.drop.is-drag { transform: scale(1.01); }
.drop.has-file { border-style: solid; border-color: var(--accent); }
.drop-icon { width: 46px; height: 46px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.drop.is-drag .drop-icon { animation: drop-bounce .7s ease-in-out infinite alternate; }
.drop-title { font-weight: 600; font-size: 16px; }
.drop-sub { color: var(--muted); font-size: 13px; }
.drop-picked { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; color: var(--accent); min-height: 1em; overflow-wrap: anywhere; }
html.js .drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-zone button { align-self: flex-start; }
.upload-zone button:disabled { opacity: .45; cursor: not-allowed; }
@keyframes drop-bounce { to { transform: translateY(-5px); } }

/* ===================== cinematic scan stage (always dark) ===================== */
body.cine-open { overflow: hidden; }
.cine { --c-bg: #05080f; --c-panel: rgba(13, 19, 31, .92); --c-line: rgba(120, 160, 255, .16); --c-text: #e6ecf7;
  --c-muted: #8a97ad; --c-accent: #5b8cff; --c-accent-2: #22d3ee; --c-ok: #34d399; --c-warn: #fbbf24; --c-bad: #f87171;
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 12px; color: var(--c-text); color-scheme: dark;
  opacity: 0; transition: opacity .4s ease; }
.cine.is-visible { opacity: 1; }
.cine:not(.is-visible) { pointer-events: none; }  /* never block the page while fading or idle */
.cine-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 20%, #10204a 0%, var(--c-bg) 60%); overflow: hidden; }
.cine-grid { position: absolute; inset: -50%; transform: perspective(600px) rotateX(58deg);
  background-image: linear-gradient(var(--c-line) 1px, transparent 1px), linear-gradient(90deg, var(--c-line) 1px, transparent 1px);
  background-size: 48px 48px; animation: grid-move 6s linear infinite; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%); }
.cine-sweep { position: absolute; left: 0; right: 0; height: 30vh; top: -30vh;
  background: linear-gradient(180deg, transparent, rgba(91, 140, 255, .10), transparent); animation: sweep 5s ease-in-out infinite; }
@keyframes grid-move { to { background-position: 0 48px, 0 0; } }
@keyframes sweep { 0% { top: -30vh; } 100% { top: 100vh; } }

.cine-panel { position: relative; width: min(1180px, 100%); max-height: 100%; overflow: auto; background: var(--c-panel);
  border: 1px solid rgba(120, 160, 255, .25); border-radius: 18px; padding: 22px 24px 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .03) inset, 0 0 60px rgba(91, 140, 255, .12);
  backdrop-filter: blur(10px); transform: translateY(18px) scale(.98); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.cine.is-visible .cine-panel { transform: none; }
.cine-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.cine-kicker { margin: 0; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--c-accent-2); }
.cine-file { margin: 4px 0 2px; font-size: 20px; color: var(--c-text); overflow-wrap: anywhere; }
.cine-sub { margin: 0; color: var(--c-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.cine-cancel { background: transparent; color: var(--c-muted); border: 1px solid rgba(255, 255, 255, .15); font-weight: 500; flex: none; }
.cine-cancel:hover { color: var(--c-text); border-color: rgba(255, 255, 255, .35); }
.cine-overall { width: 100%; height: 3px; display: block; margin: 16px 0 18px; border-radius: 2px; overflow: hidden; }
.cine-overall .track { fill: rgba(255, 255, 255, .07); }
.cine-overall .fill { fill: var(--c-accent); transition: width .6s ease; filter: drop-shadow(0 0 4px var(--c-accent)); }
.cine-body { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 22px; }

/* ring */
.ring { position: relative; width: 200px; height: 200px; margin: 0 auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 7; }
.ring-track { stroke: rgba(255, 255, 255, .07); }
.ring-fill { stroke: var(--c-accent); stroke-linecap: round; transition: stroke-dashoffset .5s ease, stroke .6s ease;
  filter: drop-shadow(0 0 6px rgba(91, 140, 255, .7)); }
.ring-busy-arc { stroke: var(--c-accent-2); stroke-linecap: round; opacity: 0; transform-origin: 60px 60px; }
.ring.is-busy .ring-busy-arc { opacity: 1; animation: ring-spin 1.1s linear infinite; }
.ring.is-busy .ring-fill { opacity: .25; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-pct { font-size: 44px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.ring-pct:not(:empty)::after { content: "%"; font-size: 18px; color: var(--c-muted); margin-left: 2px; }
.ring-label { margin-top: 6px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.cine-meta { text-align: center; color: var(--c-muted); font-size: 13px; min-height: 2.6em; margin: 10px 0 6px; font-variant-numeric: tabular-nums; }

/* pipeline */
.pipeline { list-style: none; margin: 0; padding: 0; position: relative; }
.pipeline::before { content: ""; position: absolute; left: 10px; top: 12px; bottom: 12px; width: 2px; background: rgba(255, 255, 255, .08); }
.pipeline li { position: relative; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px;
  padding: 6px 0; color: var(--c-muted); font-size: 14px; transition: color .3s; }
.st-icon { position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; background: #0d1422;
  border: 2px solid rgba(255, 255, 255, .15); transition: all .3s; }
.st-detail { font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.pipeline li.is-active { color: var(--c-text); }
.pipeline li.is-active .st-name { font-weight: 600; }
.pipeline li.is-active .st-icon { border-color: var(--c-accent-2); box-shadow: 0 0 0 4px rgba(34, 211, 238, .15), 0 0 14px rgba(34, 211, 238, .6);
  animation: st-pulse 1.4s ease-in-out infinite; }
.pipeline li.is-done { color: #b8c4d8; }
.pipeline li.is-done .st-icon { background: var(--c-ok); border-color: var(--c-ok); }
.pipeline li.is-done .st-icon::after { content: ""; position: absolute; left: 5px; top: 2px; width: 6px; height: 10px;
  border: solid #05220f; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); animation: tick-in .3s ease; }
.pipeline li.is-error .st-icon { background: var(--c-bad); border-color: var(--c-bad); animation: none; }
@keyframes st-pulse { 50% { box-shadow: 0 0 0 7px rgba(34, 211, 238, .05), 0 0 22px rgba(34, 211, 238, .8); } }
@keyframes tick-in { from { opacity: 0; transform: rotate(45deg) scale(.4); } }

/* code viewer */
.viewer { position: relative; border-radius: 12px; overflow: hidden; background: #070b14; border: 1px solid rgba(255, 255, 255, .08); }
.viewer-head { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: #0c1220; border-bottom: 1px solid rgba(255, 255, 255, .06); min-width: 0; }
.viewer-dots { display: flex; gap: 6px; flex: none; }
.viewer-dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a3346; }
.viewer-dots i:first-child { background: #ff5f57; } .viewer-dots i:nth-child(2) { background: #febc2e; } .viewer-dots i:last-child { background: #28c840; }
.viewer-file { flex: 1; min-width: 0; color: #c9d4e8; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: rtl; text-align: left; }
.viewer-tag { flex: none; font-size: 11px; font-family: ui-monospace, Menlo, monospace; padding: 2px 8px; border-radius: 4px; }
.viewer-tag:empty { display: none; }
.viewer-tag.sev-critical, .viewer-tag.sev-high { background: rgba(248, 113, 113, .18); color: var(--c-bad); }
.viewer-tag.sev-medium { background: rgba(251, 191, 36, .16); color: var(--c-warn); }
.viewer-tag.sev-low, .viewer-tag.sev-info { background: rgba(34, 211, 238, .14); color: var(--c-accent-2); }
.viewer-code { margin: 0; padding: 10px 0; height: 290px; overflow: hidden; background: transparent; font-size: 12.5px; line-height: 1.6;
  counter-reset: none; color: #c3cee3; border-radius: 0; }
.viewer-code .ln { display: block; padding: 0 14px 0 58px; position: relative; white-space: pre; overflow: hidden; text-overflow: ellipsis;
  animation: ln-in .35s ease both; }
.viewer-code .ln::before { content: attr(data-n); position: absolute; left: 0; width: 44px; text-align: right; color: #475269; }
.viewer-code .ln-hit { animation: ln-in .35s ease both, hit-flash 1.1s ease-out .25s; }
.viewer-code .ln-hit.sev-critical, .viewer-code .ln-hit.sev-high { background: rgba(248, 113, 113, .16); box-shadow: inset 3px 0 0 var(--c-bad); color: #ffd7d7; }
.viewer-code .ln-hit.sev-medium { background: rgba(251, 191, 36, .13); box-shadow: inset 3px 0 0 var(--c-warn); color: #ffeec6; }
.viewer-code .ln-hit.sev-low, .viewer-code .ln-hit.sev-info { background: rgba(34, 211, 238, .10); box-shadow: inset 3px 0 0 var(--c-accent-2); }
.viewer-code .ln-empty { display: block; padding: 0 16px; color: #5d6b85; font-style: italic; white-space: normal; }
@keyframes ln-in { from { opacity: 0; transform: translateX(-6px); } }
@keyframes hit-flash { 0% { filter: brightness(2); } 100% { filter: none; } }
.viewer-beam { position: absolute; left: 0; right: 0; top: 40px; height: 46px; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, .13) 50%, transparent); border-bottom: 1px solid rgba(34, 211, 238, .35); }
.viewer.beam .viewer-beam { animation: beam 1.2s ease-in-out; }
.viewer.has-hit { border-color: rgba(248, 113, 113, .35); }
@keyframes beam { 0% { opacity: 0; top: 40px; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; top: calc(100% - 46px); } }

/* live findings feed & ticker */
.feed { margin-top: 14px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; background: rgba(7, 11, 20, .7); }
.feed-head { display: flex; justify-content: space-between; padding: 8px 12px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-muted); }
.feed-count { font-variant-numeric: tabular-nums; color: var(--c-text); font-weight: 700; letter-spacing: 0; }
.feed.has-hits .feed-count { color: var(--c-bad); }
.feed ul { list-style: none; margin: 0; padding: 0 8px 8px; height: 132px; overflow: hidden; }
.feed-item { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; align-items: center; padding: 5px 6px; border-radius: 6px;
  font-size: 12.5px; animation: feed-in .45s cubic-bezier(.2, .8, .2, 1); }
.feed-item code { color: #dbe4f5; font-size: 12px; }
.feed-item .feed-where { color: var(--c-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: rtl; text-align: left; }
.feed-item:first-child { background: rgba(255, 255, 255, .05); }
.cine .sev { font-size: 10px; padding: 1px 6px; }
.cine .sev-critical { color: #f0a5ff; } .cine .sev-high { color: var(--c-bad); } .cine .sev-medium { color: var(--c-warn); }
.cine .sev-low, .cine .sev-info { color: var(--c-accent-2); }
@keyframes feed-in { from { opacity: 0; transform: translateY(-10px); background: rgba(91, 140, 255, .25); } }
.ticker { margin: 12px 0 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; color: #7ee2b8; min-height: 1.5em; overflow-wrap: anywhere; }
.caret { display: inline-block; width: 8px; height: 14px; margin-left: 2px; vertical-align: -2px; background: #7ee2b8; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* verdict reveal */
.cine-result { margin-top: 20px; padding: 22px; border-radius: 14px; text-align: center; background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08); animation: reveal .7s cubic-bezier(.2, .8, .2, 1); }
.cine-result h3 { margin: 12px 0 4px; font-size: 22px; }
.res-badge .badge { transform-origin: center; animation: badge-pop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.res-text { color: var(--c-muted); margin: 0 0 14px; }
.res-sev { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 10px; }
.res-sev li { min-width: 92px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); display: flex; flex-direction: column; }
.res-sev strong { font-size: 26px; font-variant-numeric: tabular-nums; }
.res-sev span { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--c-muted); }
.res-sev li.sev-critical strong { color: #f0a5ff; } .res-sev li.sev-high strong { color: var(--c-bad); }
.res-sev li.sev-medium strong { color: var(--c-warn); } .res-sev li.sev-low strong { color: var(--c-accent-2); }
.res-sev li.is-zero strong { color: #4b5770; }
.res-facts { color: var(--c-muted); font-size: 13px; margin: 0 0 16px; }
.res-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.res-actions .btn { display: inline-block; padding: 10px 20px; border-radius: 8px; background: var(--c-accent); color: #fff; text-decoration: none; font-weight: 600; }
.res-actions .secondary { background: transparent; color: var(--c-text); border: 1px solid rgba(255, 255, 255, .2); }
.cine.is-finished.v-clean .ring-fill { stroke: var(--c-ok); filter: drop-shadow(0 0 10px rgba(52, 211, 153, .8)); }
.cine.is-finished.v-issues .ring-fill { stroke: var(--c-warn); filter: drop-shadow(0 0 10px rgba(251, 191, 36, .8)); }
.cine.is-finished.v-threat .ring-fill { stroke: var(--c-bad); filter: drop-shadow(0 0 12px rgba(248, 113, 113, .9)); }
.cine.is-finished.v-threat .cine-panel { border-color: rgba(248, 113, 113, .45); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 80px rgba(248, 113, 113, .18); }
.cine.is-finished.v-clean .cine-panel { border-color: rgba(52, 211, 153, .4); }
.cine.is-failed .ring-fill { stroke: var(--c-bad); }
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } }
@keyframes badge-pop { from { opacity: 0; transform: scale(.4); } }

/* live box on a report that is still scanning */
.notice.live { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.live-file { font-size: 12px; overflow-wrap: anywhere; color: var(--muted); }

@media (max-width: 860px) {
  .cine-body { grid-template-columns: 1fr; }
  .ring { width: 160px; height: 160px; }
  .ring-pct { font-size: 34px; }
  .viewer-code { height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .cine, .cine-panel, .cine-grid, .cine-sweep, .ring-fill, .ring.is-busy .ring-busy-arc, .pipeline li.is-active .st-icon,
  .viewer-code .ln, .viewer.beam .viewer-beam, .feed-item, .caret, .cine-result, .res-badge .badge, .drop.is-drag .drop-icon,
  .pipeline li.is-done .st-icon::after { animation: none !important; transition: none !important; }
}

/* "Scans live: X" pill */
.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px !important; border-radius: 999px;
  border: 1px solid var(--accent); color: var(--accent) !important; font-size: 13px; text-decoration: none; background: var(--pending-bg); }
.live-pill strong { font-variant-numeric: tabular-nums; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(36, 87, 197, .6);
  animation: live-dot 1.6s ease-out infinite; }
@keyframes live-dot { 70% { box-shadow: 0 0 0 7px rgba(36, 87, 197, 0); } 100% { box-shadow: 0 0 0 0 rgba(36, 87, 197, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* source tabs (CSS only, works without JavaScript) */
.tabs > input[type=radio] { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; margin: 0; }
.tabs > label { display: inline-block; margin: 0 4px 14px 0; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line);
  font-weight: 600; font-size: 14px; cursor: pointer; color: var(--muted); }
.tabs > input:checked + label { color: var(--accent); border-color: var(--accent); background: var(--pending-bg); }
.tabs > input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.tab-panel { display: none; }
#tab-upload:checked ~ .panel-upload, #tab-github:checked ~ .panel-github, #tab-url:checked ~ .panel-url,
#tab-website:checked ~ .panel-website { display: block; }
.website-form { max-width: 640px; margin: 0 auto; }
.web-modes { display: grid; gap: 10px; margin: 4px 0 10px; text-align: left; }
.web-mode { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); cursor: pointer; margin: 0; }
.web-mode > span { display: flex; flex-direction: column; gap: 2px; }
.web-mode:has(input:checked) { border-color: var(--accent); background: var(--pending-bg); }
.web-mode.is-locked { opacity: .65; cursor: not-allowed; }
.web-mode input { margin-top: 4px; }
.import-form { max-width: 640px; }
.src-chip { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 1px 6px; border-radius: 4px; background: var(--soft); color: var(--muted); vertical-align: 1px; }

/* ===================== HEIMDALL sign-in flows ===================== */
.auth { max-width: 480px; margin: 24px auto 40px; }
.auth-brand { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 18px; }
.auth-brand svg { width: 42px; height: 42px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(36, 87, 197, .35)); }
.auth-brand strong { display: block; font-size: 20px; letter-spacing: .22em; }
.auth-brand span { font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.stepper { list-style: none; display: flex; justify-content: space-between; padding: 0; margin: 0 0 18px; position: relative; }
.stepper::before { content: ""; position: absolute; left: 12%; right: 12%; top: 14px; height: 2px; background: var(--line); }
.stepper li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.stepper .dot { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700;
  background: var(--card); border: 2px solid var(--line); transition: all .3s; }
.stepper li.done .dot { background: var(--ok); border-color: var(--ok); color: transparent; position: relative; }
.stepper li.done .dot::after { content: ""; position: absolute; width: 7px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translate(-1px, -1px); }
.stepper li.active { color: var(--text); font-weight: 600; }
.stepper li.active .dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 5px rgba(36, 87, 197, .14); animation: step-pulse 1.8s ease-in-out infinite; }
@keyframes step-pulse { 50% { box-shadow: 0 0 0 9px rgba(36, 87, 197, .05); } }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px 26px 22px;
  box-shadow: 0 12px 40px rgba(15, 30, 70, .10); animation: card-in .45s ease both; }
.auth-card h1 { font-size: 22px; }
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } }
.auth-who { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.verified { color: var(--ok); font-weight: 600; margin-left: 6px; }
.auth-links { font-size: 14px; margin: 16px 0 0; }
.auth-foot { text-align: center; margin-top: 16px; }
.layer-kicker { margin: 0 0 4px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.captcha-box { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; }
/* captcha image and code field share one size: 200 x 46 */
img.captcha { width: 200px; height: 46px; flex: none; border-radius: 6px; border: 1px solid var(--line); display: block; }
.captcha-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.captcha-row label { flex: 0 1 200px; margin: 0; }
.captcha-new { font-size: 13px; margin: 6px 0 14px; }
.mono-input { height: 46px; padding-top: 6px !important; padding-bottom: 6px !important; }
.captcha-row .mono-input, .guest-captcha .mono-input { width: 200px; max-width: 100%; }
.mono-input, .code-input { font-family: ui-monospace, Menlo, Consolas, monospace !important; letter-spacing: .3em; font-size: 20px !important; text-transform: uppercase; }
.code-input { text-align: center; }
form.inline { display: inline; }
/* the email authentication layer blurs in over the previous step */
.step-code { position: relative; overflow: hidden; }
.auth-layer { animation: layer-in .8s cubic-bezier(.2, .8, .2, 1) both; }
/* the veil rests invisible: only its animation shows it, so with animations off (reduced motion, Remote Desktop) the form stays clear */
.step-code::before { content: ""; position: absolute; inset: 0; pointer-events: none; backdrop-filter: blur(14px); opacity: 0;
  background: rgba(36, 87, 197, .10); animation: layer-veil .9s ease; }
@keyframes layer-in { from { opacity: 0; filter: blur(14px); transform: scale(1.04); } }
@keyframes layer-veil { from { opacity: 1; } to { opacity: 0; } }
.layer-icon { width: 64px; height: 64px; margin: 4px 0 10px; }
.layer-icon svg { width: 64px; height: 64px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.layer-icon .badge-c { fill: var(--ok); stroke: var(--card); stroke-width: 2; animation: badge-in .5s .6s cubic-bezier(.2, 1.4, .4, 1) both; transform-origin: 37px 35px; }
.layer-icon .badge-t { stroke: #fff; stroke-width: 2.4; animation: badge-in .5s .7s ease both; transform-origin: 37px 35px; }
@keyframes badge-in { from { opacity: 0; transform: scale(.2); } }
table.history tr.is-failed td:nth-child(2) { color: var(--high); }
@media (prefers-reduced-motion: reduce) {
  .auth-card, .auth-layer, .step-code::before, .stepper li.active .dot, .layer-icon .badge-c, .layer-icon .badge-t { animation: none !important; }
}

/* ===================== site frame (VirusTotal-like day theme, HEIMDALL brand) ===================== */
main { flex: 1 0 auto; width: 100%; max-width: 1180px; margin: 0 auto; padding: 24px 20px 40px; }
.site-header { background: var(--header); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.hdr-inner { max-width: 1280px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); flex: none; }
.brand svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { font-weight: 800; letter-spacing: .16em; font-size: 16px; }
.brand-sub { font-size: 14px; color: var(--muted); font-weight: 500; }
.hdr-search { flex: 1; max-width: 560px; display: flex; align-items: center; gap: 8px; background: var(--soft);
  border: 1px solid transparent; border-radius: 8px; padding: 0 12px; transition: border-color .2s, background .2s; }
.hdr-search:focus-within { border-color: var(--accent); background: var(--card); }
.hdr-search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.hdr-search input { border: 0 !important; background: transparent !important; margin: 0 !important; padding: 9px 0 !important; box-shadow: none; outline: none; }
.hdr-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.hdr-nav > a { text-decoration: none; color: var(--muted); padding: 7px 10px; border-radius: 6px; font-weight: 500; font-size: 14px; }
.hdr-nav > a.on, .hdr-nav > a:hover { color: var(--text); background: var(--soft); }
.hdr-nav form { margin: 0; }
.hdr-nav .me { display: flex; align-items: center; gap: 8px; }
.icon-btn { background: transparent; color: var(--muted); padding: 7px; border-radius: 6px; display: inline-flex; }
.icon-btn:hover { background: var(--soft); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { background: var(--accent) !important; color: #fff !important; font-weight: 600 !important; }
.btn-sm:hover { background: var(--accent-2) !important; }
.btn-primary, .btn-ghost { display: inline-block; padding: 10px 22px; border-radius: 8px; font-weight: 600; text-decoration: none; font-size: 15px; }
.btn-primary { background: var(--accent); color: #fff; border: 0; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: var(--card); }
.page-notice { max-width: 760px; margin: 0 auto 16px; }

/* hero */
.hero { max-width: 820px; margin: 20px auto 34px; text-align: center; }
.hero-logo { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.hero-logo svg { width: 58px; height: 58px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hero-word { font-size: 40px; font-weight: 800; letter-spacing: .2em; }
.hero-sub { font-size: 22px; color: var(--muted); font-weight: 500; align-self: flex-end; margin-bottom: 8px; }
.hero-tag { color: var(--muted); max-width: 640px; margin: 0 auto 26px; font-size: 16px; }
.vt-tabs { text-align: left; }
.vt-tabs > label, .tab-static { display: inline-block; margin: 0; padding: 10px 22px; border: 0; border-bottom: 3px solid transparent;
  border-radius: 0; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.vt-tabs { border-bottom: 1px solid var(--line); text-align: center; }
.vt-tabs > input:checked + label, .tab-static.on { color: var(--accent); border-bottom-color: var(--accent); background: transparent; }
.vt-tabs > label:hover { color: var(--text); }
.vt-tabs .tab-panel { padding: 28px 0 6px; text-align: center; }
.tabs.is-static { cursor: default; }
.upload-zone { align-items: center; }
.drop { width: 100%; padding: 38px 20px 30px; border: 2px dashed var(--line); border-radius: 12px; background: var(--card); }
.drop-icon { width: 72px; height: 72px; stroke: var(--accent); stroke-width: 2.4; }
.btn-choose { display: inline-block; margin: 6px 0 4px; padding: 10px 26px; border-radius: 8px; background: var(--accent); color: #fff; font-weight: 600; }
.drop:hover .btn-choose { background: var(--accent-2); }
.drop-title { font-weight: 500; color: var(--muted); }
.upload-zone button.btn-primary { align-self: center; }
.hero-field { display: flex; gap: 10px; max-width: 640px; margin: 0 auto 14px; }
.hero-field input { margin: 0 !important; padding: 12px 14px !important; font-size: 15px; border-radius: 8px !important; background: var(--card) !important; }
.hero-field .ref { max-width: 190px; }
.import-form, .vt-tabs form { max-width: none; }
.hero-legal { color: var(--muted); font-size: 12.5px; max-width: 620px; margin: 18px auto 0; }
.hero-stats { color: var(--muted); font-size: 14px; margin-top: 18px; }
.landing-box { padding: 34px 20px 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-top: 26px; }
.landing-actions { display: flex; gap: 12px; justify-content: center; margin-top: 16px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; max-width: 1020px; margin: 10px auto 0; }
.features div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.features h3 { margin: 0 0 6px; font-size: 15px; color: var(--text); }
.features p { margin: 0; color: var(--muted); font-size: 14px; }
.card { box-shadow: var(--shadow); }
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-top: 24px; }
.prose li { margin: 6px 0; }
.search-form { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.search-form .hero-field { flex: 1; margin: 0; max-width: none; }

/* footer */
.site-footer { background: var(--footer); color: var(--footer-text); border-top: 1px solid var(--line); margin-top: 20px; font-size: 14px; }
.ftr-inner { max-width: 1280px; margin: 0 auto; padding: 36px 20px 24px; display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 24px; }
.ftr-brand p { margin: 12px 0 16px; max-width: 320px; line-height: 1.55; }
.ftr-col h4 { margin: 4px 0 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.ftr-col a { display: block; color: var(--footer-text); text-decoration: none; padding: 3px 0; }
.ftr-col a:hover { color: var(--accent); }
.ftr-bottom { max-width: 1280px; margin: 0 auto; padding: 14px 20px 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.theme-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.theme-switch button { background: transparent; color: var(--footer-text); padding: 6px 12px; border-radius: 0; font-weight: 500; font-size: 13px; }
.theme-switch button + button { border-left: 1px solid var(--line); }
.theme-switch button.on { background: var(--accent); color: #fff; }

/* appearance cards in the profile */
.theme-choice { display: flex; gap: 14px; flex-wrap: wrap; }
.theme-card { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 140px; padding: 12px; border-radius: 10px;
  background: var(--card); color: var(--text); border: 2px solid var(--line); font-weight: 600; }
.theme-card.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--pending-bg); }
.theme-card .preview { width: 100%; height: 62px; border-radius: 6px; display: grid; grid-template-rows: 12px 1fr; gap: 6px; padding: 6px; }
.theme-card .preview i { display: block; border-radius: 3px; }
.theme-card .preview i:nth-child(3) { display: none; }
.t-light .preview { background: #f7f8fa; border: 1px solid #e1e4e8; } .t-light .preview i { background: #dfe5ef; } .t-light .preview i:first-child { background: #0b4dda; width: 40%; }
.t-dark .preview { background: #121417; border: 1px solid #2c3036; } .t-dark .preview i { background: #23272d; } .t-dark .preview i:first-child { background: #5c8dff; width: 40%; }
.t-system .preview { background: linear-gradient(90deg, #f7f8fa 50%, #121417 50%); border: 1px solid #c9ced6; }
.t-system .preview i { background: rgba(128, 128, 128, .35); } .t-system .preview i:first-child { background: #0b4dda; width: 40%; }

@media (max-width: 900px) {
  .ftr-inner { grid-template-columns: 1fr 1fr; }
  .ftr-brand { grid-column: 1 / -1; }
  .hdr-inner { flex-wrap: wrap; }
  .hdr-search { order: 3; flex-basis: 100%; max-width: none; }
}
@media (max-width: 560px) {
  .hero-word { font-size: 28px; } .hero-logo svg { width: 42px; height: 42px; } .hero-sub { font-size: 16px; margin-bottom: 4px; }
  .vt-tabs > label, .tab-static { padding: 10px 12px; letter-spacing: .05em; }
  .hero-field { flex-direction: column; } .hero-field .ref { max-width: none; }
  .brand-sub { display: none; }
}

/* ===================== plans, guests, Pro, admin, API ===================== */
.plan-chip { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); vertical-align: 2px; }
.plan-chip.plan-free { background: var(--pending-bg); color: var(--accent); }
.plan-chip.plan-pro { background: linear-gradient(90deg, #f5b301, #f08a00); color: #241500; }
.plan-chip.plan-guest { background: var(--soft); }
.quota-line { color: var(--muted); font-size: 13.5px; margin: 14px auto 0; max-width: 680px; }
.go-pro { color: #b06d00 !important; font-weight: 600 !important; }
.guest-captcha { display: flex; gap: 14px; align-items: flex-end; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.guest-captcha label { margin: 0; text-align: left; }
.guest-captcha input { width: 200px; }
.guest-captcha label input { margin-top: 4px; }
.locked-tab { padding: 30px 20px; border: 1px dashed var(--line); border-radius: 12px; background: var(--card); }
.locked-tab p { margin: 4px 0 10px; }
.cine .guest-lock { display: none; }
.cine.is-guest .guest-lock { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 4px; min-height: 330px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, .15); background: rgba(7, 11, 20, .7); padding: 20px; }
.cine.is-guest .guest-lock svg { width: 44px; height: 44px; fill: none; stroke: var(--c-accent-2); stroke-width: 1.8; }
.cine.is-guest .guest-lock .muted { color: var(--c-muted); max-width: 380px; }
.cine.is-guest .guest-lock .btn-primary { margin-top: 8px; }
.cine.is-guest .viewer, .cine.is-guest .feed { display: none; }
.card.unlock { display: flex; gap: 18px; align-items: flex-start; }
.card.unlock > svg { width: 44px; height: 44px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card.unlock h1, .card.unlock h2 { margin-top: 0; }
.plan-card-profile { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.plan-card-profile h2 { margin: 0 0 4px; }
.plan-card-profile p { margin: 0; }
.pricing-head { text-align: center; margin: 10px 0 24px; }
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; max-width: 1020px; margin: 0 auto; }
.plan-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px 22px;
  display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan-card.featured { border: 2px solid var(--accent); }
.plan-card.current { outline: 3px solid var(--pending-bg); }
.plan-card h2 { margin: 0; font-size: 20px; }
.plan-card .price { font-size: 18px; font-weight: 700; margin: 8px 0 14px; min-height: 2.6em; }
.plan-card ul { list-style: none; padding: 0; margin: 0 0 18px; flex: 1; }
.plan-card li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.plan-card li span { color: var(--muted); }
.plan-card .btn-primary, .plan-card .btn-ghost, .plan-card form button { width: 100%; text-align: center; }
.plan-card form { margin: 0; }
.ribbon { position: absolute; top: 14px; right: 14px; background: linear-gradient(90deg, #f5b301, #f08a00); color: #241500;
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.btn-ghost.disabled { opacity: .7; cursor: default; }
.center { text-align: center; }
.admin-users tr.requested td { background: var(--issue-bg); }
.admin-form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 0; }
.admin-form input[type=date] { width: auto; margin: 0; padding: 6px 8px; }
.btn-sm-plain { padding: 7px 12px; font-size: 13px; }
.admin-form .danger { padding: 7px 12px; font-size: 13px; }
pre.token { font-size: 15px; padding: 14px; user-select: all; overflow-wrap: anywhere; white-space: pre-wrap; }
tr.revoked td { opacity: .5; }
.prose-mini pre { font-size: 12.5px; }
table.small { font-size: 12.5px; }
.api-docs td:first-child { white-space: nowrap; }

/* API documentation (docs-style layout) */
.hero-automate { margin: 18px auto 0; font-size: 14px; }
.docs { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: start; }
.docs-nav { position: sticky; top: 76px; display: flex; flex-direction: column; font-size: 14px; }
.docs-nav a { color: var(--text); text-decoration: none; padding: 5px 10px; border-left: 2px solid var(--line); }
.docs-nav a:hover { color: var(--accent); border-left-color: var(--accent); background: var(--soft); }
.docs-nav-title { margin: 16px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.docs-nav-title:first-child { margin-top: 0; }
.docs-body { padding: 28px 32px; }
.docs-body h2 { margin-top: 32px; padding-top: 6px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.docs-body h1 { scroll-margin-top: 80px; }
.docs-body .lead { font-size: 16px; color: var(--muted); }
.docs-body pre { font-size: 12.5px; }
.verb { display: inline-block; min-width: 44px; text-align: center; font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 4px; color: #fff; }
.verb.get { background: #1f7a4d; } .verb.post { background: #0b4dda; } .verb.put { background: #b06d00; } .verb.delete { background: #b42318; }
@media (max-width: 860px) { .docs { grid-template-columns: 1fr; } .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px; } .docs-nav-title { width: 100%; } }

/* ===================== quota banner, Get Started, use cases, contact ===================== */
.quota-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; max-width: 860px; margin: 0 auto 6px;
  padding: 10px 16px; border-radius: 12px; background: var(--pending-bg); border: 1px solid rgba(11, 77, 218, .25); }
.quota-banner > svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; flex: none; }
.quota-banner .qb-text { display: flex; flex-direction: column; flex: 1; min-width: 200px; font-size: 14px; }
.quota-banner .qb-text span { color: var(--muted); font-size: 13px; }
.quota-banner .qb-bar { width: 140px; height: 8px; flex: none; }
.quota-banner .qb-bar .track { fill: rgba(11, 77, 218, .15); } .quota-banner .qb-bar .fill { fill: var(--accent); }
.quota-banner.is-empty { background: var(--issue-bg); border-color: rgba(178, 106, 0, .35); }
.quota-banner.is-empty .qb-bar .fill { fill: var(--med); }
.quota-banner .btn-sm { padding: 7px 12px; border-radius: 8px; text-decoration: none; font-size: 13px; }

.get-started-link { position: relative; display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 18px; padding: 7px 16px;
  border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--accent); background: var(--card);
  border: 1px solid transparent; background-clip: padding-box; isolation: isolate; }
.get-started-link::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: 999px; padding: 1px;
  background: conic-gradient(from var(--gs-angle, 0deg), #0b4dda, #22d3ee, #7c3aed, #0b4dda);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: gs-spin 4s linear infinite; }
.get-started-link::after { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: 999px; box-shadow: 0 0 18px rgba(34, 211, 238, .35); }
.get-started-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  animation: gs-nudge 1.6s ease-in-out infinite; }
@property --gs-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes gs-spin { to { --gs-angle: 360deg; } }
@keyframes gs-nudge { 50% { transform: translateX(4px); } }

main.full { max-width: none; padding: 0 0 40px; }
.gs-hero { position: relative; min-height: 78vh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; color: #fff; }
.gs-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gs-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 8, 15, .35) 0%, rgba(5, 8, 15, .55) 55%, rgba(5, 8, 15, .92) 100%); }
.gs-content { position: relative; max-width: 900px; margin: auto auto 40px; padding: 80px 24px 0; text-align: center; animation: gs-rise .9s ease both; }
.gs-kicker { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: #22d3ee; }
.gs-content h1 { font-size: clamp(30px, 5vw, 54px); line-height: 1.1; margin: 0 0 16px; }
.gs-sub { font-size: 17px; color: #c7d2e6; max-width: 720px; margin: 0 auto 26px; }
.gs-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-glass { display: inline-block; padding: 10px 22px; border-radius: 8px; font-weight: 600; text-decoration: none; color: #fff;
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, .16); }
.gs-cases { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; max-width: 1180px; width: 100%;
  margin: 0 auto; padding: 0 20px 34px; }
.gs-cases a { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 12px; text-decoration: none; color: #e6ecf7;
  background: rgba(13, 19, 31, .55); border: 1px solid rgba(120, 160, 255, .25); backdrop-filter: blur(8px); font-size: 14px; font-weight: 600;
  transition: transform .2s, border-color .2s, background .2s; animation: gs-rise .9s ease both; }
.gs-cases a:nth-child(2) { animation-delay: .08s; } .gs-cases a:nth-child(3) { animation-delay: .16s; }
.gs-cases a:nth-child(4) { animation-delay: .24s; } .gs-cases a:nth-child(5) { animation-delay: .32s; }
.gs-cases a:hover { transform: translateY(-3px); border-color: #22d3ee; background: rgba(13, 19, 31, .75); }
.gs-cases svg { width: 26px; height: 26px; fill: none; stroke: #22d3ee; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes gs-rise { from { opacity: 0; transform: translateY(18px); } }
.gs-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.gs-section { margin-top: 48px; }
.gs-section h2 { text-align: center; font-size: 26px; margin-bottom: 8px; }
.ais-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 22px; }
.ais-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: var(--shadow); }
.ais-card h3 { margin: 8px 0 6px; font-size: 16px; }
.ais-card p { margin: 0; color: var(--muted); font-size: 14px; }
.ais-card.is-live { border: 2px solid var(--ok); }
.ais-state { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 2px 8px;
  border-radius: 999px; background: var(--issue-bg); color: var(--med); }
.ais-card.is-live .ais-state, .ais-state.live { background: var(--ok-bg); color: var(--ok); }
.gs-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 22px; }
.gs-plans > div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; }
.gs-plans > div.hl { border: 2px solid var(--accent); }
.gs-plans h3 { margin: 0 0 6px; } .gs-plans p { color: var(--muted); flex: 1; margin: 0 0 12px; font-size: 14px; }
.gs-plans a { font-weight: 600; text-decoration: none; }
.uc-nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 24px; }
.uc-nav a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--muted); font-size: 13.5px; background: var(--card); }
.uc-nav a.on, .uc-nav a:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.uc-hero { text-align: center; max-width: 820px; margin: 0 auto 26px; padding: 40px 24px; border-radius: 16px; color: #fff;
  background: linear-gradient(180deg, rgba(5, 8, 15, .55), rgba(5, 8, 15, .85)), url(/assets/media/getstarted-poster.jpg) center / cover; }
.uc-hero h1 { font-size: clamp(24px, 4vw, 36px); margin: 0 0 12px; }
.uc-challenge { color: #c7d2e6; margin: 0; font-size: 16px; }
.check-list { list-style: none; padding: 0; margin: 12px 0 18px; }
.check-list li { position: relative; padding: 6px 0 6px 28px; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 6px; height: 11px; border: solid var(--ok);
  border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; align-items: start; max-width: 1080px; margin: 10px auto 0; }
.contact-intro h1 { font-size: 32px; margin: 0 0 12px; }
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form textarea { display: block; width: 100%; margin-top: 4px; padding: 9px 10px; font: inherit; border: 1px solid var(--line);
  border-radius: 6px; background: var(--bg); color: var(--text); resize: vertical; }
.contact-form fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 14px; padding: 10px 14px; display: grid;
  grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.contact-form legend { font-weight: 600; padding: 0 4px; }
label.chk { display: flex; align-items: flex-start; gap: 8px; font-weight: 400; margin: 2px 0; font-size: 14px; }
label.chk input { width: auto; margin: 3px 0 0; display: inline; }
.consent { margin: 8px 0 16px !important; }
.guest-captcha.left { justify-content: flex-start; margin: 0 0 12px; }
.contact-item { border-top: 1px solid var(--line); padding: 14px 0; }
.contact-item.handled { opacity: .55; }
.contact-item pre.msg { white-space: pre-wrap; font-family: inherit; font-size: 14px; }
.plan-business { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; max-width: 1020px; margin: 22px auto 10px; }
.plan-business h2 { margin: 8px 0 6px; }
.ribbon.static { position: static; display: inline-block; }
@media (max-width: 900px) {
  .gs-cases { grid-template-columns: 1fr 1fr; } .contact { grid-template-columns: 1fr; }
  .contact-form .row2, .contact-form fieldset { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .get-started-link::before, .get-started-link svg, .gs-content, .gs-cases a { animation: none !important; }
}

/* community board */
.cm-hero { text-align: center; padding: 48px 22px 34px; margin: 0 0 18px; border-radius: 14px; color: #e8eef9;
  background: radial-gradient(ellipse at 30% 0%, rgba(34, 211, 238, .22), transparent 60%), linear-gradient(135deg, #0a1730, #10224a 55%, #0b1a38); }
.cm-hero h1 { font-size: 34px; margin: 0 0 12px; color: #fff; }
.cm-sub { max-width: 640px; margin: 0 auto 20px; color: #b9c6dd; }
.cm-stats { margin: 22px 0 0; font-size: 14px; color: #b9c6dd; }
.cm-stats strong { color: #fff; }
.cm-search { margin: 0 0 18px; }
.cm-cat { padding: 0; overflow: hidden; }
.cm-cat-head { padding: 18px 22px 10px; }
.cm-cat-head h2, .cm-cat-head h1 { margin: 0 0 4px; display: inline-block; }
.cm-cat-head.row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding: 0 0 12px; }
.cm-cat-head a { text-decoration: none; color: var(--text); }
.cm-row, .cm-topic { display: grid; grid-template-columns: 36px minmax(0, 1fr) 90px 90px 150px; gap: 12px; align-items: center;
  padding: 12px 22px; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); }
.cm-topic { grid-template-columns: minmax(0, 1fr) 90px 90px 150px; padding: 12px 4px; }
.cm-row:hover, .cm-topic:hover { background: var(--soft); }
.cm-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; }
.cm-name { display: flex; flex-direction: column; min-width: 0; }
.cm-name strong { overflow-wrap: anywhere; }
.cm-num { font-size: 13px; color: var(--muted); }
.cm-num strong { color: var(--text); }
.is-hidden { opacity: .55; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 7px;
  border-radius: 999px; background: var(--pending-bg); color: var(--accent); vertical-align: middle; }
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.pager { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; }
.pager a { padding: 3px 10px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.pager a.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.topic-head h1 { margin: 0 0 4px; overflow-wrap: anywhere; }
.mod-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.mod-bar form { margin: 0; } .mod-bar button, .mod-bar select, .mod-bar input { padding: 5px 10px; font-size: 13px; margin: 0; }
.post { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; }
.post-author { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; border-right: 1px solid var(--line); padding-right: 14px; }
.avatar.md { width: 44px; height: 44px; font-size: 18px; }
.role { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.r-admin { background: var(--threat-bg); color: var(--high); } .r-mod { background: var(--ok-bg); color: var(--ok); }
.r-pro { background: linear-gradient(90deg, #f5b301, #f08a00); color: #241500; }
.post-meta { margin: 0 0 8px; } .post-meta a { color: inherit; text-decoration: none; }
.md { overflow-wrap: anywhere; line-height: 1.6; }
.md pre { background: var(--soft); padding: 10px 12px; border-radius: 8px; overflow-x: auto; }
.md code { background: var(--soft); padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.md pre code { background: none; padding: 0; }
.md blockquote { margin: 8px 0; padding: 4px 14px; border-left: 3px solid var(--line); color: var(--muted); }
.post-images, .upload-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.post-images figure, .upload-grid figure { margin: 0; }
.post-images img { max-width: 260px; max-height: 200px; width: auto; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.upload-grid img { width: 110px; height: 80px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.post-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: 13px; margin-top: 12px; }
.post-actions form { margin: 0; }
.report summary { cursor: pointer; color: var(--muted); }
.report form { margin-top: 8px; }
.danger-link { color: var(--high) !important; }
.reply textarea, .narrow-wide textarea { display: block; width: 100%; padding: 9px 10px; font: inherit; border: 1px solid var(--line);
  border-radius: 6px; background: var(--bg); color: var(--text); }
.narrow-wide { max-width: 820px; margin: 0 auto 18px; }
.md-help code { font-size: 12px; }
.cat-row, .cat-del { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; padding: 8px 0 0; }
.cat-del { padding: 2px 0 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.cat-row.sub, .cat-del.sub { padding-left: 34px; }
.cat-row input, .cat-row select { margin: 0; } .cat-row input[name=name] { flex: 0 1 200px; } .cat-row input[name=description] { flex: 1 1 240px; }
.cat-row .pos { width: 72px; } .chk { display: flex; gap: 4px; align-items: center; margin: 0; }
.report-item { border-top: 1px solid var(--line); padding: 10px 0; }
@media (max-width: 760px) {
  .cm-row { grid-template-columns: 30px minmax(0, 1fr) 70px; } .cm-topic { grid-template-columns: minmax(0, 1fr) 70px; }
  .cm-row .cm-num + .cm-num, .cm-last, .cm-topic .cm-num + .cm-num { display: none; }
  .post { grid-template-columns: 1fr; } .post-author { flex-direction: row; flex-wrap: wrap; align-items: center; border: 0; padding: 0; }
  .cm-hero h1 { font-size: 26px; }
}

/* website scans */
.web-live-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.web-live-head h2 { margin: 0; overflow-wrap: anywhere; }
.web-live .live-dot { position: static; }
.web-steps { list-style: none; margin: 16px 0 10px; padding: 0; display: grid; gap: 4px; }
.web-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; opacity: .55; transition: opacity .3s, background .3s; }
.web-steps li > span:last-child { display: flex; flex-direction: column; }
.web-steps li.is-active { opacity: 1; background: var(--pending-bg); }
.web-steps li.is-done { opacity: 1; }
.ws-dot { flex: none; width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; border: 2px solid var(--line); }
.web-steps li.is-active .ws-dot { border-color: var(--accent); border-top-color: transparent; animation: spin 1s linear infinite; }
.web-steps li.is-done .ws-dot { border-color: var(--ok); background: var(--ok); }
.web-alert summary { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.web-alert-body { padding: 4px 4px 10px; }
.web-alert-body h3 { margin: 14px 0 4px; }
.pre-line { white-space: pre-line; overflow-wrap: anywhere; }
.domain-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.domain-head h2 { margin: 0; overflow-wrap: anywhere; }
.domain-actions { display: flex; gap: 14px; align-items: center; margin-top: 12px; }
.domain-actions form { margin: 0; }
@media (prefers-reduced-motion: reduce) { .web-steps li.is-active .ws-dot { animation: none; } }

/* community: animated hero line, official posts, introduction reminder */
.cm-rotator { margin: 0 auto 18px; font-size: 20px; font-weight: 600; color: #dbe6f7; display: flex; justify-content: center;
  gap: .35em; flex-wrap: wrap; }
.cm-rot-words { position: relative; display: inline-block; height: 1.4em; min-width: 11ch; overflow: hidden; text-align: left; }
.cm-rot-words span { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; transform: translateY(100%);
  background: linear-gradient(90deg, #22d3ee, #8aaeff); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: cm-rot 12.5s infinite; }
.cm-rot-words span:nth-child(2) { animation-delay: 2.5s; }
.cm-rot-words span:nth-child(3) { animation-delay: 5s; }
.cm-rot-words span:nth-child(4) { animation-delay: 7.5s; }
.cm-rot-words span:nth-child(5) { animation-delay: 10s; }
@keyframes cm-rot { 0% { opacity: 0; transform: translateY(100%); } 3%, 17% { opacity: 1; transform: translateY(0); }
  20%, 100% { opacity: 0; transform: translateY(-100%); } }
.cm-hero h1 { animation: cm-rise .8s ease-out both; }
.cm-sub { animation: cm-rise .8s .15s ease-out both; }
@keyframes cm-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .cm-rot-words span, .cm-hero h1, .cm-sub { animation: none; }
  .cm-rot-words span:first-child { opacity: 1; transform: none; }
}
.post.is-official { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.r-team { background: linear-gradient(90deg, #0b4dda, #22d3ee); color: #fff; }
.team-avatar { background: #0a1730; }
.team-avatar svg { width: 26px; height: 26px; fill: none; stroke: #22d3ee; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.intro-reminder { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 0 0 18px; padding: 16px 20px;
  border-radius: 12px; border: 1px solid var(--accent); background: var(--pending-bg); }
.intro-reminder > div { flex: 1 1 320px; }
.intro-reminder p { margin: 4px 0 0; color: var(--muted); }
.ir-wave { width: 34px; height: 34px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transform-origin: 70% 70%; animation: ir-wave 2.4s ease-in-out 3; }
@keyframes ir-wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) { .ir-wave { animation: none; } }

/* admin: service clients */
.svc-form { display: grid; gap: 10px; margin-top: 8px; }
.svc-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.svc-form fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; display: grid; gap: 4px; margin: 0; }
.svc-form textarea { display: block; width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg); color: var(--text); }
.secret-once { border-color: var(--med); background: var(--issue-bg); }
.secret-once .token { font-size: 14px; user-select: all; }
@media (max-width: 640px) { .svc-form .row2 { grid-template-columns: 1fr; } }

/* Admin Center gate */
.admin-gate { text-align: center; }
.admin-gate form { text-align: left; }
.gate-icon { width: 52px; height: 52px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
table.audit td { vertical-align: top; }

/* ===== HEIMDALL Admin Center ===== */
body.ac { display: block; min-height: 100vh; background: var(--page); }
.ac-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; padding: 10px 20px;
  background: #0a1730; color: #dfe7f5; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.ac-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; white-space: nowrap; }
.ac-brand svg { width: 26px; height: 26px; fill: none; stroke: #22d3ee; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ac-brand strong { letter-spacing: .14em; margin-right: 4px; }
.ac-env { font-size: 11px; font-weight: 800; letter-spacing: .1em; padding: 2px 8px; border-radius: 4px; background: #f5b301; color: #241500; }
.ac-search { flex: 1; max-width: 560px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 8px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.ac-search svg { width: 16px; height: 16px; fill: none; stroke: #8ea3c4; stroke-width: 2; flex: none; }
.ac-search input { margin: 0 !important; border: 0 !important; background: transparent !important; color: #fff !important; padding: 8px 0 !important; }
.ac-search input::placeholder { color: #8ea3c4; }
.ac-tools { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.ac-tools form { margin: 0; }
.ac-vpn { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #9de6b8; white-space: nowrap; }
.ac-dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .2); }
.ac-top .icon-btn svg { stroke: #dfe7f5; }
.ac-me { display: flex; align-items: center; gap: 8px; }
.ac-me-text { display: flex; flex-direction: column; line-height: 1.2; font-size: 13px; }
.ac-me-text span { color: #8ea3c4; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.ac-btn { display: inline-block; padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer;
  color: inherit; background: transparent; border: 1px solid currentColor; opacity: .9; }
.ac-top .ac-btn { color: #dfe7f5; border-color: rgba(255, 255, 255, .25); }
.ac-btn:hover { opacity: 1; }
.ac-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: calc(100vh - 56px); }
.ac-side { display: block; background: #0d1d3a; color: #b7c4da; padding: 18px 12px; position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; }
.ac-group { margin: 18px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6f84a8; }
.ac-group:first-child { margin-top: 0; }
nav.ac-side > a, .ac-soon { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 0 0 2px; border-radius: 8px;
  color: #c9d4e8; text-decoration: none; font-size: 14px; font-weight: 500; }
nav.ac-side > a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
nav.ac-side > a.on { background: linear-gradient(90deg, rgba(34, 211, 238, .18), rgba(34, 211, 238, .04)); color: #fff; box-shadow: inset 3px 0 0 #22d3ee; }
.ac-side svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ac-soon { opacity: .45; cursor: default; }
.ac-soon em { margin-left: auto; font-style: normal; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.ac-side-foot { margin: 24px 10px 0; font-size: 11px; color: #6f84a8; }
.ac-main { padding: 24px 28px 48px; min-width: 0; }
.ac-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.ac-head h1 { margin: 0 0 2px; font-size: 24px; overflow-wrap: anywhere; }
.ac-head p { margin: 0; }
.ac-crumbs { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.ac-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.ac-kpi { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; }
a.ac-kpi:hover { border-color: var(--accent); }
.ac-kpi strong { font-size: 26px; line-height: 1.2; }
.ac-kpi-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ac-kpi-sub { font-size: 12px; color: var(--muted); }
.ac-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.ac-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; min-width: 0; margin-bottom: 16px; }
.ac-grid > .ac-card { margin-bottom: 0; }
.ac-span2 { grid-column: span 2; }
.ac-flush { padding: 0; overflow: hidden; }
.ac-pad { padding: 14px 18px; }
.ac-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.ac-card-head h2 { margin: 0; font-size: 16px; }
.ac-flush .ac-card-head { margin: 0; border-bottom: 1px solid var(--line); }
.ac-chart { display: block; width: 100%; height: 170px; }
.ac-chart.small { height: 80px; }
.ac-chart .b-clean { fill: var(--ok); } .ac-chart .b-issues { fill: var(--med); } .ac-chart .b-threat { fill: var(--high); } .ac-chart .b-failed { fill: var(--info); }
.ac-line { fill: none; stroke: var(--accent); stroke-width: .8; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ac-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 4px; }
.ac-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; margin: 8px 0 0; }
.ac-legend span[class^=l-]::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.l-clean::before { background: var(--ok); } .l-issues::before { background: var(--med); } .l-threat::before { background: var(--high); } .l-failed::before { background: var(--info); }
.ac-todo, .ac-feed { list-style: none; margin: 0; padding: 0; }
.ac-todo a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.ac-todo li:last-child a { border-bottom: 0; }
.ac-todo strong { min-width: 28px; text-align: center; border-radius: 999px; background: var(--soft); font-size: 13px; padding: 0 8px; }
.ac-todo li.has strong { background: var(--accent); color: #fff; }
.ac-feed li { display: flex; flex-direction: column; padding: 7px 0; border-bottom: 1px solid var(--line); }
.ac-feed li:last-child { border-bottom: 0; }
.ac-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ac-filters input, .ac-filters select { margin: 0; width: auto; }
.ac-filters input[type=search] { flex: 1 1 260px; }
.ac-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ac-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600;
  padding: 10px 14px; background: var(--soft); border-bottom: 1px solid var(--line); }
.ac-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ac-table tbody tr:hover td { background: var(--soft); }
.ac-table tr.is-locked td { background: var(--threat-bg); }
.ac-user { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-width: 0; }
.ac-user > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ac-user strong { overflow-wrap: anywhere; }
.ac-user.big h1 { margin: 0; }
.ac-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.ac-ok { color: var(--ok); font-weight: 600; font-size: 13px; }
.ac-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.ac-act { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0; }
.ac-act input { margin: 0; width: auto; }
.ac-act button { padding: 6px 12px; font-size: 13px; }
.ac-inline summary { cursor: pointer; font-size: 13px; }
.ac-inline form { margin-top: 8px; }
.ac-danger { border-color: var(--high); }
.ac-danger input { min-width: 260px; }
.ac-main .page-notice { max-width: none; margin: 0 0 14px; }
@media (max-width: 1100px) { .ac-grid { grid-template-columns: 1fr 1fr; } .ac-span2 { grid-column: span 2; } }
@media (max-width: 860px) {
  .ac-shell { grid-template-columns: 1fr; }
  .ac-side { position: static; height: auto; display: flex; gap: 4px; overflow-x: auto; padding: 8px; }
  .ac-group, .ac-side-foot, .ac-soon { display: none; }
  .ac-side a { white-space: nowrap; }
  .ac-top { flex-wrap: wrap; }
  .ac-search { order: 3; flex-basis: 100%; max-width: none; }
  .ac-me-text, .ac-vpn { display: none; }
  .ac-main { padding: 18px 16px 40px; }
  .ac-grid { grid-template-columns: 1fr; } .ac-span2 { grid-column: auto; }
}

/* ===== phone navigation (hamburger + nested drawer) ===== */
.mnav { display: none; }
@media (max-width: 860px) {
  .site-header { --hdr-h: 57px; }
  .hdr-inner { flex-wrap: nowrap; padding: 10px 16px; gap: 10px; min-height: var(--hdr-h); }
  .hdr-search { display: none; }
  .hdr-nav { margin-left: auto; flex-wrap: nowrap; }
  .hdr-nav > *:not(.live-pill) { display: none !important; }
  .brand .brand-sub, .brand .stage { display: none; }
  .mnav { display: block; }
  .mn-toggle { list-style: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
    color: var(--text); border: 1px solid var(--line); background: var(--card); }
  .mn-toggle::-webkit-details-marker { display: none; }
  .mn-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .mn-close, .mnav[open] .mn-open, .mnav:not([open]) > .mn-panel { display: none; }
  .mnav[open] .mn-close { display: block; }
  .mnav[open] .mn-toggle { border-color: var(--text); }
  .mn-panel { position: fixed; inset: var(--hdr-h) 0 0 0; z-index: 40; overflow-y: auto; overscroll-behavior: contain;
    background: var(--bg); padding: 16px 20px calc(28px + env(safe-area-inset-bottom)); animation: mn-in .18s ease-out; }
  @keyframes mn-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  body.mn-lock { overflow: hidden; }
}
.mn-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }
.mn-search:focus-within { border-color: var(--accent); }
.mn-search svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; }
.mn-search input { flex: 1; width: auto; min-width: 0; margin: 0 !important; border: 0 !important; background: transparent !important; padding: 13px 0 !important; font-size: 16px; }
.mn-me { display: flex; align-items: center; gap: 12px; margin: 18px 0 4px; color: var(--text); text-decoration: none; }
.mn-me > span { display: flex; flex-direction: column; line-height: 1.3; }
.mn-me > span span { font-size: 13px; color: var(--muted); }
.mn-list, .mn-list ul { list-style: none; margin: 0; padding: 0; }
.mn-list { margin-top: 10px; }
.mn-list > li { border-bottom: 1px solid var(--line); }
.mn-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer;
  padding: 15px 2px; font-size: 17px; font-weight: 600; color: var(--text); }
.mn-list summary::-webkit-details-marker { display: none; }
.mn-chev { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s; }
.mn-list details[open] > summary > .mn-chev { transform: rotate(90deg); }
.mn-list details > ul { padding: 0 0 10px 2px; }
.mn-list details:not([open]) > ul { display: none; }
.mn-list ul a, .mn-link { display: block; width: 100%; text-align: left; padding: 10px 2px; font-size: 15px; color: var(--muted);
  text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; }
.mn-list ul a:hover, .mn-list ul a:focus-visible, .mn-link:hover { color: var(--text); }
.mn-list ul details > summary { padding: 10px 2px; font-size: 15px; font-weight: 500; color: var(--text); }
.mn-list ul ul { padding-left: 14px; border-left: 1px solid var(--line); margin: 0 0 6px 4px; }
.mn-list ul ul a { font-size: 14px; padding: 8px 2px; }
.mn-list form { margin: 0; }
.mn-theme { display: flex; gap: 0; margin: 22px 0 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mn-theme button { flex: 1; min-width: 0; padding: 10px; background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.mn-theme button + button { border-left: 1px solid var(--line); }
.mn-theme button.on { background: var(--soft); color: var(--text); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .mn-panel { animation: none; } .mn-chev { transition: none; } }

/* long code and addresses wrap instead of widening the page on phones */
.docs li code, .docs p code, .md code, .facts code { overflow-wrap: anywhere; }

/* hero logo: scales with the screen so the letter-spaced word never runs past the edge */
@media (max-width: 420px) {
  .hero-logo { gap: 8px; max-width: 100%; flex-wrap: wrap; justify-content: center; }
  .hero-word { font-size: clamp(20px, 7.4vw, 28px) !important; letter-spacing: .14em; }
  .hero-logo svg { width: 36px; height: 36px; }
}

/* legal pages */
.legal { max-width: 860px; margin-left: auto; margin-right: auto; }
.legal-date { margin: -6px 0 14px; color: var(--muted); font-size: 13px; }
.legal-lede { font-size: 16px; color: var(--text); }
.legal h2 { margin-top: 30px; padding-top: 6px; scroll-margin-top: 80px; }
.legal h3 { color: var(--text); font-size: 15px; }
.legal-toc { margin: 16px 0 6px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; font-size: 14px; }
.legal-toc li { break-inside: avoid; padding: 2px 0; }
.legal-table td, .legal-table th { vertical-align: top; }
.legal-address { font-style: normal; line-height: 1.7; }
.legal-box { border: 1px solid var(--line); border-radius: 10px; padding: 4px 18px 10px; background: var(--soft); font-size: 14px; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }
textarea.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13px; }
.ac-health { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-weight: 600; border: 1px solid var(--line); background: var(--card); }
.ac-health .ac-dot { width: 10px; height: 10px; }
.ac-health.ac-warn .ac-dot { background: var(--med); box-shadow: 0 0 0 3px rgba(178, 106, 0, .2); }
.ac-health.ac-fail .ac-dot { background: var(--high); box-shadow: 0 0 0 3px rgba(211, 47, 47, .2); }
.ac-checks { list-style: none; margin: 0; padding: 0; }
.ac-checks li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ac-checks li:last-child { border-bottom: 0; }
.ac-checks li > span:last-child { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.ac-state { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--ok); }
.ac-checks .ac-warn .ac-state { background: var(--med); }
.ac-checks .ac-fail .ac-state { background: var(--high); }

/* ===== community: introduction gate ===== */
[data-needs-intro] { transition: filter .45s ease, opacity .45s ease, transform .45s ease; }
.is-gated { filter: blur(3px) grayscale(.6); opacity: .35; transform: scale(.97); pointer-events: none; }
.intro-reminder { position: relative; scroll-margin-top: 120px; }
.intro-reminder.is-called { animation: ir-focus .7s ease-out, ir-glow 1.4s ease-in-out .5s 2; }
@keyframes ir-focus { from { filter: blur(4px); opacity: .55; transform: scale(.985); } to { filter: none; opacity: 1; transform: none; } }
@keyframes ir-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(11, 77, 218, 0); } 50% { box-shadow: 0 0 0 6px rgba(11, 77, 218, .22), 0 10px 30px rgba(11, 77, 218, .18); } }
.reply-gated { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.reply-gated p { margin: 0; }
@media (prefers-reduced-motion: reduce) {
  .intro-reminder.is-called, .gate-hand { animation: none !important; }
  .gate-hand { opacity: 1; }
  [data-needs-intro] { transition: none; }
}

/* ===== badges ===== */
.bdg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.bdg { display: inline-block; vertical-align: middle; overflow: visible; transition: transform .25s ease; }
.bdg:hover { transform: scale(1.12) rotate(-4deg); }
.bdg-icon { fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bdg-shine { fill: rgba(255, 255, 255, .2); }
.bdg-base .bdg-rim { fill: url(#bdg-rim-base); } .bdg-base .bdg-face { fill: url(#bdg-face-base); }
.bdg-bronze .bdg-rim { fill: url(#bdg-rim-bronze); } .bdg-bronze .bdg-face { fill: url(#bdg-face-bronze); }
.bdg-silver .bdg-rim { fill: url(#bdg-rim-silver); } .bdg-silver .bdg-face { fill: url(#bdg-face-silver); }
.bdg-gold .bdg-rim { fill: url(#bdg-rim-gold); } .bdg-gold .bdg-face { fill: url(#bdg-face-gold); }
.bdg-platinum .bdg-rim { fill: url(#bdg-rim-platinum); } .bdg-platinum .bdg-face { fill: url(#bdg-face-platinum); }
.bdg-legendary .bdg-rim { fill: url(#bdg-rim-legendary); } .bdg-legendary .bdg-face { fill: url(#bdg-face-legendary); }
.bdg-partner .bdg-rim { fill: url(#bdg-rim-partner); } .bdg-partner .bdg-face { fill: url(#bdg-face-partner); }
.bdg-staff .bdg-rim { fill: url(#bdg-rim-staff); } .bdg-staff .bdg-face { fill: url(#bdg-face-staff); }
.bdg-silver .bdg-icon { stroke: #24324a; }
.bdg-gold .bdg-shine, .bdg-platinum .bdg-shine, .bdg-legendary .bdg-shine, .bdg-staff .bdg-shine, .bdg-partner .bdg-shine { animation: bdg-shimmer 3.6s ease-in-out infinite; }
@keyframes bdg-shimmer { 0%, 100% { fill: rgba(255, 255, 255, .12); } 50% { fill: rgba(255, 255, 255, .42); } }
.bdg-legendary { animation: bdg-legend 6s linear infinite; }
@keyframes bdg-legend { from { filter: hue-rotate(0deg) drop-shadow(0 0 4px rgba(150, 110, 255, .6)); } to { filter: hue-rotate(360deg) drop-shadow(0 0 4px rgba(150, 110, 255, .6)); } }
.bdg.is-locked { filter: grayscale(1); opacity: .28; animation: none; }
.bdg.is-locked .bdg-shine { animation: none; }
.bdg-row { display: inline-flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.bdg-more { font-size: 11px; font-weight: 700; color: var(--muted); padding: 1px 6px; border-radius: 999px; background: var(--soft); }
.bdg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.bdg-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px 10px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); }
.bdg-tile strong { font-size: 14px; }
.bdg-tile span { font-size: 12px; color: var(--muted); }
.bdg-tile.is-locked strong { color: var(--muted); }
.bdg-group-title { margin: 18px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* award celebration: an overlay only with JavaScript (is-live); without it a plain card */
.bdg-award { margin: 18px auto; max-width: 420px; text-align: center; }
.bdg-award-card { position: relative; padding: 26px 24px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.bdg-award:not(.is-live) [data-award-next] { display: none; }
.bdg-award.is-live { position: fixed; inset: 0; z-index: 300; margin: 0; max-width: none; display: grid; place-items: center; padding: 16px;
  background: rgba(5, 10, 22, .78); backdrop-filter: blur(6px); animation: bdg-fade .35s ease-out; }
.bdg-award.is-live .bdg-award-card { width: min(420px, 100%); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); animation: bdg-rise .5s cubic-bezier(.2, .9, .2, 1.1); }
.bdg-award.is-leaving { animation: bdg-fade .35s ease-in reverse forwards; }
.bdg-award-rays { display: none; }
.bdg-award.is-live .bdg-award-rays { display: block; position: absolute; width: 900px; height: 900px; left: 50%; top: 50%; margin: -450px 0 0 -450px;
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 102, .14) 0deg 8deg, transparent 8deg 22deg);
  mask-image: radial-gradient(circle, #000 0%, transparent 62%); animation: bdg-spin 18s linear infinite; pointer-events: none; }
.bdg-award-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.bdg-award-medal { position: relative; display: inline-block; margin: 6px 0 4px; }
.bdg-award.is-live .bdg-award-item:not([hidden]) .bdg-award-medal .bdg { animation: bdg-pop .9s cubic-bezier(.2, .9, .25, 1.25) both; }
.bdg-award-item h2 { margin: 6px 0 2px; font-size: 24px; }
.bdg-award-tier { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bdg-award-actions { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 14px; }
.bdg-sparks { position: absolute; inset: 0; pointer-events: none; }
.bdg-sparks i { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: #ffd666; opacity: 0; }
.bdg-award.is-live .bdg-award-item:not([hidden]) .bdg-sparks i { animation: bdg-spark 1.1s ease-out .35s both; }
.bdg-sparks i:nth-child(1) { --dx: -70px; --dy: -50px; } .bdg-sparks i:nth-child(2) { --dx: 72px; --dy: -46px; background: #8fd3ee; }
.bdg-sparks i:nth-child(3) { --dx: -84px; --dy: 18px; background: #f0b3ff; } .bdg-sparks i:nth-child(4) { --dx: 86px; --dy: 22px; }
.bdg-sparks i:nth-child(5) { --dx: -30px; --dy: 74px; background: #a7f3d0; } .bdg-sparks i:nth-child(6) { --dx: 34px; --dy: 76px; background: #8fd3ee; }
@keyframes bdg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bdg-rise { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes bdg-spin { to { transform: rotate(360deg); } }
@keyframes bdg-pop { 0% { transform: scale(.15) rotate(-40deg); opacity: 0; } 60% { transform: scale(1.12) rotate(6deg); opacity: 1; } 100% { transform: none; } }
@keyframes bdg-spark { 0% { opacity: 1; transform: translate(-50%, -50%) scale(.4); } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .bdg-legendary, .bdg-award-rays, .bdg-award.is-live .bdg-award-rays, .bdg-shine, .bdg-award.is-live .bdg-award-card,
  .bdg-award.is-live .bdg-award-item .bdg-award-medal .bdg, .bdg-sparks i, .bdg-award.is-live { animation: none !important; }
}

/* the hand that appears at a gated button and points to the welcome banner (community.js) */
.gate-hand { position: absolute; z-index: 60; width: 52px; height: 52px; pointer-events: none; opacity: 0;
  transform: rotate(var(--a)); filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .28));
  animation: gate-hand 10s ease-in-out forwards; transition: opacity .4s ease, filter .4s ease; }
.gate-hand svg { display: block; width: 100%; height: 100%; }
.gate-hand.is-done { opacity: 0 !important; filter: blur(4px); }
.gate-hand-shape { fill: #fff; stroke: var(--accent); stroke-width: 2.4; stroke-linejoin: round; }
.gate-hand-lines { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
@keyframes gate-hand {  /* 10 s: blur in, then calm taps towards the introduction button */
  0% { opacity: 0; transform: rotate(var(--a)) translateY(-18px) scale(.7); filter: blur(6px) drop-shadow(0 8px 14px rgba(0, 0, 0, .28)); }
  5% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(1); filter: blur(0) drop-shadow(0 8px 14px rgba(0, 0, 0, .28)); }
  10%, 22%, 34%, 46%, 58%, 70%, 82% { opacity: 1; transform: rotate(var(--a)) translateY(12px); }
  16%, 28%, 40%, 52%, 64%, 76%, 88%, 100% { opacity: 1; transform: rotate(var(--a)) translateY(0); }
}
}

/* "Write an introduction": cinematic hover with a light reflection, flame glow and rising sparks
   in green, red and gold. CSS only; still when "reduce motion" is set. */
.ir-cta { position: relative; isolation: isolate; overflow: visible;
  background-image: linear-gradient(110deg, transparent 0 38%, rgba(255, 255, 255, .55) 48%, transparent 58% 100%);
  background-size: 260% 100%; background-position: 130% 0; background-repeat: no-repeat; background-color: var(--accent);
  transition: transform .25s ease, box-shadow .3s ease; }
.ir-cta::before, .ir-cta::after { content: ""; position: absolute; pointer-events: none; opacity: 0; transition: opacity .3s ease; }
/* flames: soft tongues of light under the button */
.ir-cta::before { inset: -10px -8px -16px; z-index: -1; border-radius: 16px; filter: blur(10px);
  background: radial-gradient(40% 70% at 20% 100%, rgba(52, 211, 153, .9), transparent 70%),
              radial-gradient(38% 80% at 50% 100%, rgba(255, 196, 0, .95), transparent 72%),
              radial-gradient(40% 70% at 80% 100%, rgba(248, 68, 68, .9), transparent 70%); }
/* sparks: single particles in green, red and gold, scattered over the button and rising */
.ir-cta::after { left: 50%; top: 40%; width: 3px; height: 3px; border-radius: 50%; z-index: 1; background: transparent;
  box-shadow: 79px 9px 0 1px #34d399,
    -15px 6px 0 1px #ffc400,
    -3px 1px 0 0 #f84444,
    -49px -1px 0 0 #ffe08a,
    52px 1px 0 1px #6ee7b7,
    -8px 6px 0 1px #fb7185,
    60px -6px 0 0 #34d399,
    36px 5px 0 0 #ffc400,
    -8px -4px 0 1px #f84444,
    12px -7px 0 0 #ffe08a,
    47px 10px 0 1px #6ee7b7,
    -8px 3px 0 1px #fb7185,
    53px 6px 0 0 #34d399,
    -72px 0px 0 1px #ffc400,
    83px -6px 0 0 #f84444,
    92px 1px 0 1px #ffe08a,
    -23px 4px 0 1px #6ee7b7,
    -90px 6px 0 1px #fb7185; }
.ir-cta:hover, .ir-cta:focus-visible { transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255, 210, 90, .7), 0 0 18px rgba(255, 196, 0, .55), 0 0 34px rgba(52, 211, 153, .35), 0 0 46px rgba(248, 68, 68, .3);
  animation: ir-flicker 1.2s ease-in-out infinite, ir-shine 2.2s ease-in-out infinite; }
.ir-cta:hover::before, .ir-cta:focus-visible::before { opacity: 1; animation: ir-flames 1.4s ease-in-out infinite alternate; }
.ir-cta:hover::after, .ir-cta:focus-visible::after { animation: ir-sparks 1.8s ease-out infinite; }
@keyframes ir-flicker {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 210, 90, .7), 0 0 18px rgba(255, 196, 0, .55), 0 0 34px rgba(52, 211, 153, .35), 0 0 46px rgba(248, 68, 68, .3); }
  50% { box-shadow: 0 0 0 1px rgba(255, 230, 140, .9), 0 0 24px rgba(255, 196, 0, .7), 0 0 40px rgba(248, 68, 68, .4), 0 0 52px rgba(52, 211, 153, .4); }
}
@keyframes ir-flames { from { transform: scaleY(.85) translateY(4px); filter: blur(10px) hue-rotate(0deg); }
                       to { transform: scaleY(1.15) translateY(-3px); filter: blur(12px) hue-rotate(-12deg); } }
@keyframes ir-sparks { 0% { opacity: 0; transform: translateY(14px) scale(.6); } 15% { opacity: 1; }
                       100% { opacity: 0; transform: translateY(-42px) scale(1.15); } }
@keyframes ir-shine { 0% { background-position: 130% 0; } 55%, 100% { background-position: -30% 0; } }
@media (prefers-reduced-motion: reduce) {
  .ir-cta:hover, .ir-cta:focus-visible, .ir-cta:hover::before, .ir-cta:hover::after { animation: none; }
}

/* ===== community, milestone 4a ===== */
.cm-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 16px; padding: 4px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }
.cm-tabs a { padding: 8px 14px; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.cm-tabs a:hover { color: var(--text); }
.cm-tabs a.on { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(11, 77, 218, .25); }
.cm-view-title { margin: 0 0 4px; font-size: 22px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tag-chip { display: inline-flex; gap: 4px; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--pending-bg); color: var(--accent); text-decoration: none; }
.tag-chip.small { padding: 0 7px; font-size: 11px; margin-left: 4px; }
a.tag-chip:hover { background: var(--accent); color: #fff; }
.tag-question { background: var(--issue-bg); color: var(--med); }
.tag-solved { background: var(--ok-bg); color: var(--ok); }
.cm-topic.is-unread .cm-name strong { font-weight: 800; }
.unread-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 2px;
  box-shadow: 0 0 0 3px rgba(11, 77, 218, .18); }
.unread-divider { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; color: var(--accent); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; scroll-margin-top: 90px; }
.unread-divider::before, .unread-divider::after { content: ""; flex: 1; height: 1px; background: var(--accent); opacity: .4; }
.topic-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.topic-meta p { margin: 0; }
.follow-form { margin: 0 0 0 auto; }
.small-btn { padding: 5px 12px !important; font-size: 13px !important; }
.solution-box { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); border-color: var(--ok); background: var(--ok-bg); }
.solution-box svg, .solution-flag svg { width: 22px; height: 22px; fill: none; stroke: var(--ok); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.solution-box > span { display: flex; flex-direction: column; }
.post.is-solution { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok) inset; }
.solution-flag { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 2px 10px 2px 6px; border-radius: 999px;
  background: var(--ok-bg); color: var(--ok); font-weight: 700; font-size: 13px; }
.solution-flag svg { width: 16px; height: 16px; }
.solution-btn { color: var(--ok) !important; font-weight: 600; }
.post-name { font-weight: 700; color: var(--text); text-decoration: none; }
.post-name:hover { color: var(--accent); }
a.mention { font-weight: 600; text-decoration: none; background: var(--pending-bg); padding: 0 4px; border-radius: 4px; }
.reactions { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.react-form { margin: 0; }
.react { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--card); color: var(--muted); border: 1px solid var(--line); cursor: pointer; transition: transform .15s ease, border-color .15s ease; }
.react svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.react b { color: var(--text); }
button.react:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.react.is-mine { background: var(--pending-bg); border-color: var(--accent); color: var(--accent); }
.react.is-static { cursor: default; }
.bell { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; color: var(--muted); }
.bell:hover { background: var(--soft); color: var(--text); }
.bell svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bell-n { position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--high); color: #fff;
  font-size: 10px; font-weight: 800; line-height: 17px; text-align: center; }
.bell.has-new svg { animation: bell-ring 1.2s ease-in-out 2; transform-origin: 50% 10%; }
@keyframes bell-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-10deg); } 60% { transform: rotate(6deg); } }
.note-list { list-style: none; margin: 0; padding: 0; }
.note-list a { display: flex; gap: 12px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.note-list a > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.note-list li.is-new a { background: var(--pending-bg); }
.note-kind { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.note-list li.is-new .note-kind { background: var(--accent); }
.note-solution { background: var(--ok) !important; } .note-warning { background: var(--high) !important; }
.member-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.member-head h1 { margin: 0 0 4px; }
.member-kpis { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.kind-pick { border: 1px solid var(--line); border-radius: 8px; padding: 6px 14px 10px; margin: 0 0 12px; display: flex; gap: 18px; flex-wrap: wrap; }
.field-label { display: block; font-weight: 600; margin: 6px 0 4px; }
.editor { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); }
.editor:focus-within { border-color: var(--accent); }
.editor-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 4px 6px; background: var(--soft); border-bottom: 1px solid var(--line); }
.ed-btn { display: grid; place-items: center; width: 32px; height: 30px; padding: 0; border-radius: 6px; background: none; border: 0; color: var(--muted); cursor: pointer; }
.ed-btn:hover { background: var(--card); color: var(--text); }
.ed-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ed-spacer { flex: 1; }
.ed-tab { padding: 5px 12px; border-radius: 6px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ed-tab.is-on { background: var(--card); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.editor textarea { border: 0 !important; border-radius: 0 !important; margin: 0 !important; display: block; width: 100%; padding: 12px; resize: vertical; min-height: 140px; }
.editor-preview { padding: 12px 14px; min-height: 140px; }
.editor-draft { margin: 0; padding: 4px 12px 8px; }

/* ===== community administration (milestone 4b) ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ac-tabs { margin-bottom: 18px; }
.tab-n { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: var(--high); color: #fff;
  font-size: 11px; line-height: 18px; text-align: center; }
.ac-tabs a.on .tab-n { background: #fff; color: var(--accent); }
.ac-chart .b-topic { fill: var(--accent); opacity: .55; }
.queue-item { border-top: 1px solid var(--line); padding: 14px 0; }
.queue-item:first-of-type { border-top: 0; }
.queue-body { max-height: 260px; overflow: auto; padding: 10px 14px; border-radius: 8px; background: var(--soft); margin: 8px 0; }
.cat-row-wide select, .cat-row-wide input { font-size: 13px; }
.ed-canned { margin: 0 6px; padding: 4px 8px; font-size: 13px; width: auto; max-width: 200px; }

/* ===================== partners: advertising spaces and sponsor page ===================== */
.ad-shell { flex: 1 0 auto; display: flex; flex-direction: column; width: 100%; }
.ad-shell > main { flex: 1 0 auto; }
.ad-rail { display: none; }
@media (min-width: 1600px) {
  .ad-shell.has-rails { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1180px) minmax(0, 1fr); align-items: start; }
  .ad-shell.has-rails > main { grid-column: 2; grid-row: 1; }
  .ad-rail { display: block; position: sticky; top: 92px; grid-row: 1; margin-top: 24px; }
  .ad-rail-l { grid-column: 1; justify-self: end; margin-right: 12px; }
  .ad-rail-r { grid-column: 3; justify-self: start; margin-left: 12px; }
}
.ad, .ad-free { position: relative; display: flex; box-sizing: border-box; border-radius: 10px; overflow: hidden; text-decoration: none; }
.ad img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ad-rail-l .ad, .ad-rail-l .ad-free, .ad-rail-r .ad, .ad-rail-r .ad-free { width: 160px; height: 600px; }
.ad-footer-1, .ad-footer-2, .ad-footer-3 { width: 300px; height: 100px; }
.ad-label { position: absolute; top: 4px; right: 4px; padding: 1px 6px; border-radius: 4px; font-size: 10px; letter-spacing: .06em;
  text-transform: uppercase; color: #fff; background: rgba(5, 8, 15, .55); }
.ad-free { flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line); background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(127, 140, 170, .06) 10px 20px);
  transition: border-color .2s, color .2s, background-color .2s; }
.ad-free:hover { border-color: var(--accent); color: var(--text); background-color: rgba(34, 211, 238, .06); }
.ad-free-k { font-weight: 700; font-size: 14px; color: var(--text); }
.ad-free-s { font-size: 12px; }
.ad-free-cta { font-size: 12px; font-weight: 600; color: var(--accent); }
.ad-rail .ad-free-k { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 18px; letter-spacing: .08em; }
.ad-footer-1.ad-free, .ad-footer-2.ad-free, .ad-footer-3.ad-free { gap: 2px; }
.ad-foot { max-width: 1280px; margin: 0 auto; padding: 22px 20px 0; display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }
.ad-foot-more { flex-basis: 100%; text-align: center; font-size: 12px; color: var(--muted); }
@media (max-width: 980px) { .ad-foot { display: none; } }

.pt-hero { margin: 0 0 18px; padding: 44px 28px; border-radius: 14px; text-align: center; color: #fff;
  background: radial-gradient(ellipse at 20% 0%, rgba(34, 211, 238, .25), transparent 55%), radial-gradient(ellipse at 90% 100%, rgba(212, 175, 55, .22), transparent 55%), #0b1220; }
.pt-hero h1 { font-size: clamp(26px, 4vw, 42px); line-height: 1.15; margin: 0 0 12px; }
.pt-sub { max-width: 720px; margin: 0 auto 22px; color: #c7d2e6; font-size: 16px; }
.pt-map { display: flex; gap: 10px; justify-content: center; align-items: stretch; height: 170px; margin: 18px 0; }
.pt-map-rail { width: 46px; display: flex; align-items: center; justify-content: center; writing-mode: vertical-rl; font-size: 11px; font-weight: 600;
  border-radius: 6px; border: 1px dashed #22c55e; color: #16a34a; background: rgba(34, 197, 94, .08); }
.pt-map-page { width: 260px; display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); }
.pt-map-head { height: 14px; border-radius: 3px; background: var(--line); }
.pt-map-body { flex: 1; border-radius: 3px; background: repeating-linear-gradient(180deg, var(--line) 0 4px, transparent 4px 12px); opacity: .6; }
.pt-map-foot { display: flex; gap: 6px; }
.pt-map-foot i { flex: 1; height: 26px; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; font-weight: 700;
  border-radius: 4px; border: 1px dashed #22c55e; color: #16a34a; background: rgba(34, 197, 94, .08); }
.pt-map .is-booked { border-style: solid; border-color: #f59e0b; color: #b45309; background: rgba(245, 158, 11, .1); }
.pt-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.pt-slot { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--page); }
.pt-slot p { margin: 0; }
.pt-slot .btn-sm { margin-top: auto; align-self: flex-start; padding: 7px 12px; border-radius: 8px; text-decoration: none; font-size: 13px; }
.pt-slot-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pt-slot-head h3 { margin: 0; font-size: 15px; }
.pt-state { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 99px; color: #16a34a; background: rgba(34, 197, 94, .12); }
.pt-slot.is-booked .pt-state { color: #b45309; background: rgba(245, 158, 11, .14); }
.pt-slot:target { outline: 2px solid var(--accent); outline-offset: 2px; }
.pt-price { margin: 4px 0; }
.pt-slot .pt-price span { display: block; }
.pt-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 16px 0 20px; }
.pt-tier { padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--page); border-top: 4px solid #94a3b8; }
.pt-tier h3 { margin: 0 0 4px; }
.pt-tier.tier-partner { border-top-color: #22d3ee; }
.pt-tier.tier-principal { border-top-color: #d4af37; }
.pt-wall { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pt-wall-item { display: flex; align-items: center; justify-content: center; min-width: 140px; height: 64px; padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); font-weight: 700; color: var(--text); text-decoration: none; }
.pt-wall-item img { max-height: 48px; max-width: 180px; }
.pt-wall-item.tier-principal { border-color: #d4af37; }
@media (max-width: 640px) { .pt-map { display: none; } .pt-hero { padding: 30px 18px; } }
.ac-head-link { padding: 7px 12px; border-radius: 8px; text-decoration: none; font-size: 13px; }
.ac-ad-thumb { max-width: 120px; max-height: 60px; border-radius: 4px; border: 1px solid var(--line); vertical-align: middle; }
.ac-logo-thumb { max-width: 120px; max-height: 40px; display: block; margin-bottom: 4px; }
.ac-decide { min-width: 250px; }
.ac-decide form + form { margin-top: 6px; }
.ac-decide input:not([type]) { flex: 1 1 140px; min-width: 0; }
.ac-decide input[type="number"] { width: 90px; }
.ac-prices fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 10px; padding: 8px 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.ac-prices legend { font-size: 13px; font-weight: 600; padding: 0 4px; }
.ac-prices label { font-size: 12px; display: flex; flex-direction: column; gap: 2px; }
.ac-prices input { width: 90px; }
.ac-mail { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }

/* ===================== visitors (statistics page, footer banner) ===================== */
.visits-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.visits-head h2 { margin: 0; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 99px; font-size: 13px;
  color: #16a34a; background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .3); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: live-pulse 2s infinite; }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.kpis-visits { margin: 16px 0; }
svg.chart .col-views, .sw.col-views { fill: #22d3ee; background: #22d3ee; opacity: .55; }
svg.chart .col-visitors, .sw.col-visitors { fill: var(--accent); background: var(--accent); }
.visit-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 22px; margin-top: 8px; }
.visit-details h3 { font-size: 14px; margin: 14px 0 6px; }
.vd-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ftr-live { display: inline-flex; line-height: 0; }
.ftr-live img { height: 24px; width: auto; }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.pt-profile .gs-actions { justify-content: flex-start; align-items: center; }
.pt-profile .btn-sm { padding: 9px 16px; border-radius: 8px; text-decoration: none; }
.pt-mine .tag.st-active { color: #16a34a; background: rgba(34, 197, 94, .12); }
.pt-mine .tag.st-approved { color: #b45309; background: rgba(245, 158, 11, .14); }

/* ===================== partners page: cinematic hall of supporters ===================== */
@property --pt-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.pt-show { position: relative; isolation: isolate; overflow: hidden; margin: 0 0 18px; padding: 46px 26px 40px; border-radius: 16px; color: #e6ecf7;
  background: radial-gradient(1200px 400px at 50% -10%, rgba(34, 211, 238, .18), transparent 60%), #060a14;
  border: 1px solid rgba(120, 160, 255, .18); box-shadow: 0 30px 80px -40px rgba(34, 211, 238, .45); }
.pt-show-aurora { position: absolute; inset: -40%; z-index: -1; opacity: .55; filter: blur(60px);
  background: conic-gradient(from var(--pt-angle), rgba(34, 211, 238, .35), rgba(212, 175, 55, .3), rgba(239, 68, 68, .18), rgba(34, 197, 94, .25), rgba(34, 211, 238, .35));
  animation: pt-aurora 24s linear infinite; }
.pt-show::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(1px 1px at 20% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 70% 20%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 40% 80%, #cfe 50%, transparent 51%), radial-gradient(1px 1px at 85% 65%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 10% 70%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 60% 50%, #ffe 50%, transparent 51%);
  animation: pt-twinkle 6s ease-in-out infinite alternate; }
@keyframes pt-aurora { to { --pt-angle: 360deg; } }
@keyframes pt-twinkle { from { opacity: .25; } to { opacity: .6; } }
.pt-show-head { text-align: center; max-width: 720px; margin: 0 auto 30px; animation: pt-rise .8s ease both; }
.pt-show-head h2 { margin: 0 0 10px; font-size: clamp(24px, 3.4vw, 36px); line-height: 1.15;
  background: linear-gradient(90deg, #fff, #a5f3fc 40%, #f5d77a 75%, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pt-show-head p:last-child { margin: 0; color: #b8c4da; }
.pt-tier-row { margin: 0 0 26px; }
.pt-tier-row h3 { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #94a3b8; }
.pt-tier-row h3::before, .pt-tier-row h3::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(148, 163, 184, .4), transparent); }
.tier-row-principal h3 { color: #f5d77a; }
.tier-row-partner h3 { color: #67e8f9; }
.pt-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.pt-card { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 200px; min-height: 130px; padding: 18px 14px; border-radius: 14px; text-align: center; text-decoration: none; color: #e6ecf7;
  background: rgba(15, 23, 42, .6); border: 1px solid rgba(148, 163, 184, .22); backdrop-filter: blur(6px);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s; animation: pt-rise .7s ease both; }
.pt-cards > .pt-card:nth-child(2) { animation-delay: .08s; } .pt-cards > .pt-card:nth-child(3) { animation-delay: .16s; }
.pt-cards > .pt-card:nth-child(4) { animation-delay: .24s; } .pt-cards > .pt-card:nth-child(n+5) { animation-delay: .32s; }
.pt-card:hover, .pt-card:focus-visible { transform: translateY(-4px) scale(1.02); }
.pt-card strong { font-size: 15px; }
.pt-card img { max-width: 160px; max-height: 56px; object-fit: contain; }
.pt-card-url { font-size: 11.5px; color: #94a3b8; overflow-wrap: anywhere; }
.pt-mono { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; font-size: 22px; font-weight: 800;
  background: linear-gradient(135deg, rgba(34, 211, 238, .25), rgba(99, 102, 241, .25)); border: 1px solid rgba(255, 255, 255, .15); }
.pt-card-shine { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .22) 48%, transparent 66%); transform: translateX(-120%); }
.pt-card:hover .pt-card-shine, .pt-card:focus-visible .pt-card-shine { transition: transform .9s ease; transform: translateX(120%); }
/* principal: rotating gold rim */
.pt-card-gold { width: 260px; min-height: 160px; border: 2px solid transparent;
  background: linear-gradient(#0b1220, #0b1220) padding-box, conic-gradient(from var(--pt-angle), #b8860b, #f5d77a, #fff6d5, #d4af37, #b8860b) border-box;
  animation: pt-rise .7s ease both, pt-aurora 6s linear infinite; box-shadow: 0 0 40px -12px rgba(245, 215, 122, .55); }
.pt-card-gold .pt-mono { background: linear-gradient(135deg, #f5d77a, #b8860b); color: #1a1205; }
.pt-card-gold:hover { box-shadow: 0 0 60px -6px rgba(245, 215, 122, .7); }
.pt-card-cyan { width: 230px; border-color: rgba(34, 211, 238, .45); box-shadow: 0 0 30px -14px rgba(34, 211, 238, .7); }
.pt-card-cyan:hover { border-color: #22d3ee; box-shadow: 0 0 44px -8px rgba(34, 211, 238, .75); }
.pt-card-glass:hover { border-color: rgba(226, 232, 240, .5); }
.pt-card-ad { width: 180px; min-height: 110px; }
.pt-card-ad:hover { border-color: rgba(34, 197, 94, .55); }
.pt-card.is-empty { opacity: .75; border-style: dashed; }
.pt-show-foot { margin: 22px 0 0; text-align: center; color: #b8c4da; }
.pt-show a:not(.pt-card) { color: #67e8f9; }
@keyframes pt-rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  .pt-show-aurora, .pt-show::after, .pt-card, .pt-card-gold, .pt-show-head { animation: none !important; }
  .pt-card:hover .pt-card-shine { transition: none; }
}
.pt-rate-l { display: block; margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pt-type { display: flex; gap: 12px; flex-wrap: wrap; border: 0; padding: 0; margin: 0 0 14px; }
.pt-type legend { font-weight: 600; margin-bottom: 8px; }
.pt-type-opt { flex: 1 1 240px; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--page); cursor: pointer; }
.pt-type-opt input { width: auto; margin-top: 3px; }
.pt-type-opt span { display: flex; flex-direction: column; gap: 2px; }
.pt-type-opt small { color: var(--muted); }
.pt-type-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
/* receipt */
.receipt { max-width: 720px; margin: 0 auto; }
.rc-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.rc-head h1 { margin: 0; }
.rc-head address { font-style: normal; font-size: 13px; line-height: 1.5; text-align: right; }
.rc-meta { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 16px 0; }
.rc-meta dt { color: var(--muted); }
.rc-meta dd { margin: 0; }
.rc-items { width: 100%; border-collapse: collapse; }
.rc-items th, .rc-items td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.rc-items .num { text-align: right; white-space: nowrap; }
.rc-items tfoot th { border-bottom: 0; font-size: 16px; }
.rc-thanks { margin-top: 18px; font-weight: 600; color: var(--accent); }
@media (max-width: 560px) { .rc-head address { text-align: left; } .pt-card, .pt-card-gold, .pt-card-cyan { width: 100%; } }
.ac-disc { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 10px; } .ac-disc input { width: 70px; }
.pt-proof { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; max-width: 900px; margin: 28px auto 0; padding: 0; }
.pt-proof li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.pt-proof strong { font-size: 14px; }
.pt-proof span { font-size: 12px; color: #b8c4da; }
.pt-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 0 0 18px; }
.pt-why article { padding: 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.pt-why h3 { margin: 6px 0 6px; font-size: 16px; }
.pt-why p { margin: 0; color: var(--muted); font-size: 14px; }
.pt-why-i { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-size: 18px; color: #22d3ee;
  background: linear-gradient(135deg, rgba(34, 211, 238, .16), rgba(212, 175, 55, .16)); }
.pt-slot .pt-price span { display: block; }
.pt-private { margin: 2px 0 8px !important; font-size: 12px; }
.pt-type-opt.is-main { flex: 2 1 280px; }
.pt-type-opt.is-minor { flex: 1 1 220px; opacity: .85; }
.pt-type-opt.is-minor strong { font-weight: 600; font-size: 14px; }
.pt-why h3 { color: var(--text); }

/* ===================== languages: switcher, Admin Center editor ===================== */
.lang-sw { position: relative; }
.lang-sw summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; padding: 6px 8px; border-radius: 8px;
  color: var(--muted); font-size: 13px; font-weight: 600; }
.lang-sw summary::-webkit-details-marker { display: none; }
.lang-sw summary:hover, .lang-sw[open] summary { color: var(--text); background: var(--soft); }
.lang-sw svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.lang-sw ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; margin: 0; padding: 6px; list-style: none;
  border-radius: 12px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.lang-sw-ftr ul { top: auto; bottom: calc(100% + 6px); }
.lang-sw li a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px; }
.lang-sw li a span { color: var(--muted); font-size: 12px; }
.lang-sw li a:hover, .lang-sw li a.on { background: var(--soft); }
.lang-sw li a.on { font-weight: 700; }
.lang-sw .lang-more a { display: block; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; font-size: 12.5px; color: var(--accent); }
@media (max-width: 900px) { .hdr-nav .lang-sw { display: none; } }
.ac-filter { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 14px; }
.ac-filter input[type="search"] { flex: 1 1 240px; }
.lang-editor .lang-k { width: 24%; min-width: 180px; word-break: break-all; }
.lang-editor .lang-en { width: 34%; color: var(--muted); font-size: 13.5px; }
.lang-editor textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 14px; padding: 7px 9px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--page); color: var(--text); resize: vertical; }
.lang-editor tr.is-missing textarea { border-color: #f59e0b; background: rgba(245, 158, 11, .06); }
.lang-editor tr.is-error textarea { border-color: var(--high); }
.lang-err { color: var(--high); margin: 4px 0 0; }
.lang-warn { color: #b45309; margin: 4px 0 0; }
.lang-save { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; position: sticky; bottom: 0; background: var(--card); border-top: 1px solid var(--line); }
.lang-pages { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.lang-pages a { padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line); text-decoration: none; font-size: 13px; }
.lang-pages a.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.lang-bar { display: inline-block; width: 120px; height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; vertical-align: middle; }
.lang-bar i { display: block; height: 100%; background: linear-gradient(90deg, #22d3ee, #22c55e); }
.lang-bar i.w-0 { width: 0%; } .lang-bar i.w-5 { width: 5%; } .lang-bar i.w-10 { width: 10%; } .lang-bar i.w-15 { width: 15%; } .lang-bar i.w-20 { width: 20%; } .lang-bar i.w-25 { width: 25%; } .lang-bar i.w-30 { width: 30%; } .lang-bar i.w-35 { width: 35%; } .lang-bar i.w-40 { width: 40%; } .lang-bar i.w-45 { width: 45%; } .lang-bar i.w-50 { width: 50%; } .lang-bar i.w-55 { width: 55%; } .lang-bar i.w-60 { width: 60%; } .lang-bar i.w-65 { width: 65%; } .lang-bar i.w-70 { width: 70%; } .lang-bar i.w-75 { width: 75%; } .lang-bar i.w-80 { width: 80%; } .lang-bar i.w-85 { width: 85%; } .lang-bar i.w-90 { width: 90%; } .lang-bar i.w-95 { width: 95%; } .lang-bar i.w-100 { width: 100%; } 
.tag.lang-st-published, .tag.lang-st-master { color: #16a34a; background: rgba(34, 197, 94, .12); }
.tag.lang-st-draft { color: #b45309; background: rgba(245, 158, 11, .14); }
.ac-inline { display: inline-flex; }
.ac-btn-link { padding: 5px 10px; border-radius: 8px; text-decoration: none; font-size: 13px; }
.ac-howto { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.ac-filter input[type="search"], .ac-filter select { width: auto; margin: 0; }
.ac-filter input[type="search"] { flex: 1 1 260px; }
.ac-filter select { flex: 0 1 200px; }
.ac-filter .secondary { flex: 0 0 auto; }

/* ===================== community search: full width, filters inside the field ===================== */
.cm-search { margin: 0 0 18px; width: 100%; }
.cms-field { position: relative; display: flex; align-items: center; gap: 6px; width: 100%; box-sizing: border-box; padding: 6px 6px 6px 14px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s; }
.cms-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15), var(--shadow); }
.cms-icon { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; }
.cms-field input[type="search"] { flex: 1 1 auto; min-width: 0; width: auto; margin: 0; padding: 10px 6px; border: 0; background: transparent; box-shadow: none;
  font-size: 15.5px; color: var(--text); outline: none; }
.cms-field input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
.cms-filter { position: static; flex: 0 0 auto; }
.cms-filter-btn { list-style: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--text); background: var(--soft); border: 1px solid var(--line); user-select: none;
  transition: background-color .2s, border-color .2s, color .2s; }
.cms-filter-btn::-webkit-details-marker { display: none; }
.cms-filter-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cms-filter-btn:hover, .cms-filter[open] .cms-filter-btn { border-color: var(--accent); color: var(--accent); }
.cms-filter[data-active] .cms-filter-btn { color: var(--accent); border-color: rgba(37, 99, 235, .45); background: rgba(37, 99, 235, .08); }
.cms-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; font-size: 11px;
  color: #fff; background: var(--accent); }
.cms-go { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 38px; padding: 0; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--accent); color: #fff; }
.cms-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cms-go:hover { filter: brightness(1.1); }
.cms-panel { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 25; padding: 18px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--card); box-shadow: 0 18px 50px -18px rgba(15, 23, 42, .35); animation: cms-in .18s ease both; }
@keyframes cms-in { from { opacity: 0; transform: translateY(-4px); } }
.cms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 16px; }
.cms-grid label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cms-grid select, .cms-grid input { margin: 0; width: 100%; font-size: 14px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.cms-actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.cms-reset { font-size: 13.5px; color: var(--muted); }
@media (max-width: 560px) {
  .cms-filter-btn span { display: none; }
  .cms-filter-btn { padding: 8px 10px; }
  .cms-field { padding-left: 10px; }
}
@media (prefers-reduced-motion: reduce) { .cms-panel { animation: none; } }
.lang-sw:not([open]) > ul, .cms-filter:not([open]) > .cms-panel { display: none; }
@media (max-width: 560px) { .cms-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .cms-panel { padding: 14px; } }

/* ===================== invitations ===================== */
.invite-card { position: relative; overflow: hidden; border-top: 3px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(90deg, #22d3ee, #6366f1, #d4af37) border-box; }
.inv-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.inv-head h2 { margin: 0 0 6px; }
.inv-head > div:first-child { flex: 1 1 420px; }
.inv-stats { display: flex; gap: 12px; }
.inv-stats div { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 96px; padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--page); }
.inv-stats strong { font-size: 26px; line-height: 1.1; }
.inv-stats span { font-size: 12px; color: var(--muted); }
.inv-stats .inv-pro { border-color: rgba(212, 175, 55, .55); background: rgba(212, 175, 55, .08); }
.inv-link { display: flex; gap: 8px; margin: 16px 0 10px; }
.inv-link input { flex: 1 1 auto; min-width: 0; margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.inv-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.inv-btn { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--page);
  color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; font-family: inherit; }
.inv-btn:hover, .inv-btn.is-copied { border-color: var(--accent); color: var(--accent); }
.inv-text { width: 100%; box-sizing: border-box; margin: 10px 0 0; font: inherit; font-size: 13px; color: var(--muted); resize: none; border-radius: 8px; }
.inv-progress { margin: 16px 0 8px; padding: 14px; border-radius: 12px; border: 1px dashed var(--line); }
.inv-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.inv-b:not(.is-earned) { opacity: .45; filter: grayscale(.8); }
.inv-bar { width: 100%; max-width: 360px; }
.invite-note { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(34, 211, 238, .08);
  border: 1px solid rgba(34, 211, 238, .35); font-size: 14px; }
.invite-note svg { flex: 0 0 22px; width: 22px; height: 22px; fill: none; stroke: #0891b2; stroke-width: 1.8; stroke-linecap: round; }
/* the golden animated badge: a pulsing golden aura on top of the gold shimmer */
.bdg-k-gold_ambassador:not(.is-locked) { animation: bdg-gold-aura 2.4s ease-in-out infinite; }
@keyframes bdg-gold-aura { 0%, 100% { filter: drop-shadow(0 0 2px rgba(245, 215, 122, .6)); } 50% { filter: drop-shadow(0 0 9px rgba(245, 200, 80, .95)); } }
@media (prefers-reduced-motion: reduce) { .bdg-k-gold_ambassador { animation: none !important; } }
.inv-link .btn-primary { white-space: nowrap; }

/* ===================== partner tabs, live price quote, sponsorship calculator ===================== */
.pt-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; padding: 5px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.pt-tabs a { flex: 1 1 180px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; border-radius: 10px;
  font-weight: 700; font-size: 14.5px; text-decoration: none; color: var(--muted); transition: background-color .2s, color .2s; }
.pt-tabs a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pt-tabs a:hover { color: var(--text); background: var(--soft); }
.pt-tabs a.on { color: #fff; background: linear-gradient(135deg, #2563eb, #0891b2); box-shadow: 0 6px 18px -8px rgba(37, 99, 235, .7); }
.pt-slot.is-selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(37, 99, 235, .25); }
.pt-map [data-map] { cursor: pointer; transition: transform .2s; }
.pt-map .is-selected { border-style: solid !important; border-color: var(--accent) !important; color: var(--accent) !important; background: rgba(37, 99, 235, .1) !important; transform: scale(1.04); }
.pt-book-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.pt-quote { position: sticky; top: 92px; padding: 18px; border-radius: 14px; color: #e6ecf7;
  background: radial-gradient(ellipse at 0% 0%, rgba(34, 211, 238, .22), transparent 60%), #0b1220; border: 1px solid rgba(120, 160, 255, .25); }
.pt-quote h3 { margin: 2px 0 2px; font-size: 19px; }
.pt-quote .muted { color: #94a3b8; }
.pt-quote dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; margin: 14px 0; font-size: 13.5px; }
.pt-quote dt { color: #94a3b8; }
.pt-quote dd { margin: 0; text-align: right; }
.pt-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding-top: 12px; border-top: 1px solid rgba(148, 163, 184, .25); }
.pt-total strong { font-size: 30px; background: linear-gradient(90deg, #a5f3fc, #f5d77a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pt-quote.is-pulse .pt-total strong { animation: pt-pulse .45s ease; }
@keyframes pt-pulse { 50% { transform: scale(1.06); } }
@media (max-width: 900px) { .pt-book-grid { grid-template-columns: 1fr; } .pt-quote { position: static; order: -1; } }
.sp-hero { background: radial-gradient(ellipse at 80% 0%, rgba(212, 175, 55, .3), transparent 55%), radial-gradient(ellipse at 10% 100%, rgba(34, 211, 238, .2), transparent 55%), #0b1220; }
.sp-tiers .pt-tier { display: flex; flex-direction: column; gap: 4px; }
.sp-tiers .btn-sm { align-self: flex-start; margin-top: auto; padding: 7px 14px; border-radius: 8px; text-decoration: none; font-size: 13px; }
.sp-calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 820px) { .sp-calc-grid { grid-template-columns: 1fr; } }
.sp-amount input { font-size: 22px; font-weight: 700; }
.sp-calc input[type="range"] { width: 100%; margin: 10px 0 4px; accent-color: #d4af37; }
.sp-figures { display: grid; grid-template-columns: max-content 1fr; gap: 8px 14px; margin: 14px 0; }
.sp-figures dt { color: var(--muted); font-size: 13.5px; }
.sp-figures dd { margin: 0; font-weight: 700; text-align: right; }
.sp-alloc { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 12px; }
.sp-alloc li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; }
.sp-alloc-l { font-size: 13.5px; }
.sp-alloc-v { font-weight: 700; text-align: right; }
.sp-alloc-bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.sp-alloc-bar i { display: block; height: 100%; border-radius: 99px; }
.alloc-hardware { background: linear-gradient(90deg, #22d3ee, #2563eb); } .alloc-engines { background: linear-gradient(90deg, #a78bfa, #6366f1); }
.alloc-hosting { background: linear-gradient(90deg, #34d399, #059669); } .alloc-community { background: linear-gradient(90deg, #f5d77a, #d4af37); }
.sp-legal { margin: 16px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--soft); color: var(--muted); }
.sp-alloc-bar i.w-0 { width: 0%; } .sp-alloc-bar i.w-5 { width: 5%; } .sp-alloc-bar i.w-10 { width: 10%; } .sp-alloc-bar i.w-15 { width: 15%; } .sp-alloc-bar i.w-20 { width: 20%; } .sp-alloc-bar i.w-25 { width: 25%; } .sp-alloc-bar i.w-30 { width: 30%; } .sp-alloc-bar i.w-35 { width: 35%; } .sp-alloc-bar i.w-40 { width: 40%; } .sp-alloc-bar i.w-45 { width: 45%; } .sp-alloc-bar i.w-50 { width: 50%; } .sp-alloc-bar i.w-55 { width: 55%; } .sp-alloc-bar i.w-60 { width: 60%; } .sp-alloc-bar i.w-65 { width: 65%; } .sp-alloc-bar i.w-70 { width: 70%; } .sp-alloc-bar i.w-75 { width: 75%; } .sp-alloc-bar i.w-80 { width: 80%; } .sp-alloc-bar i.w-85 { width: 85%; } .sp-alloc-bar i.w-90 { width: 90%; } .sp-alloc-bar i.w-95 { width: 95%; } .sp-alloc-bar i.w-100 { width: 100%; } 
.sd-mine { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 0 0 18px; }
.sd-sponsorship { border-top: 4px solid #94a3b8; margin: 0; }
.sd-sponsorship.tier-partner { border-top-color: #22d3ee; } .sd-sponsorship.tier-principal { border-top-color: #d4af37; }
.sd-sponsorship h2 { margin: 2px 0 8px; }
.sd-sponsorship .sp-figures dd { font-weight: 600; }
.pt-quote h3 { color: #fff; }

/* full-page background ("skin"): fixed behind the content on wide screens, the margins are the partner's link */
.ad-skin { display: none; }
@media (min-width: 1600px) {
  .ad-shell.has-skin { pointer-events: none; }
  .ad-shell.has-skin > main { pointer-events: auto; position: relative; z-index: 1; background: var(--page); border-radius: 18px; margin-top: 24px; margin-bottom: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
  .ad-skin { display: block; position: fixed; inset: 0; z-index: 0; pointer-events: auto; }
  .ad-skin img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .ad-skin .ad-label { top: auto; bottom: 12px; right: 12px; position: absolute; }
  .site-footer { position: relative; z-index: 1; }
}
.pt-map-skin { position: absolute; inset: -10px; border-radius: 12px; border: 1px dashed var(--line); z-index: 0; display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 2px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  background: repeating-linear-gradient(135deg, rgba(168, 85, 247, .08) 0 10px, transparent 10px 20px); }
.pt-map-skin.is-booked { border-style: solid; border-color: #f59e0b; }
.pt-map-wrap { position: relative; padding: 14px 14px 18px; margin: 18px auto; width: max-content; max-width: 100%; }
.pt-map-wrap .pt-map { position: relative; z-index: 1; margin: 0; }
.pt-slot.is-premium { border-color: rgba(168, 85, 247, .55); background: linear-gradient(160deg, rgba(168, 85, 247, .12), transparent 60%), var(--card);
  grid-column: 1 / -1; }
.pt-premium { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .05em;
  color: #fff; background: linear-gradient(90deg, #7c3aed, #db2777); vertical-align: middle; }
@media (max-width: 640px) { .pt-map-wrap { display: none; } }
.pt-map-wrap .is-selected.pt-map-skin { border-style: solid; border-color: var(--accent); color: var(--accent); }

/* partner programmes */
.pg-hero { background: radial-gradient(circle at 20% 0%, rgba(124, 58, 237, .55), transparent 55%), radial-gradient(circle at 90% 100%, rgba(34, 211, 238, .4), transparent 50%), #0b1020; }
.pg-why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.pg-why-grid p { margin: 4px 0 0; }
.pg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 18px 0; }
.pg-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--card);
  border-top: 4px solid var(--pg, #22d3ee); transition: transform .2s, box-shadow .2s; }
.pg-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, .18); }
.pg-card h3 { margin: 4px 0 0; font-size: 19px; }
.pg-card h4 { margin: 8px 0 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pg-card p { margin: 0; }
.pg-card .btn-sm { margin-top: auto; align-self: flex-start; padding: 8px 14px; border-radius: 8px; text-decoration: none; font-size: 13px; }
.pg-card h3 { color: var(--text); }
.pg-for { font-size: 13px; font-weight: 600; color: var(--pg, #22d3ee); }
.pg-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--pg, #22d3ee) 16%, transparent); }
.pg-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--pg, #22d3ee); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pg-list { margin: 2px 0 6px; padding-left: 18px; font-size: 14px; }
.pg-expect { color: var(--muted); }
.pg-channel { --pg: #22d3ee; } .pg-alliance { --pg: #a855f7; } .pg-managed { --pg: #10b981; }
.pg-exchange { --pg: #f59e0b; } .pg-academy { --pg: #3b82f6; } .pg-research { --pg: #ec4899; }
.pg-dir { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.pg-dir h3 { margin: 0 0 6px; font-size: 15px; }
.pg-dir ul { margin: 0; padding-left: 18px; }
/* the "get started" pill always gets its own line above the logo (side by side at some widths otherwise) */
.hero > .get-started-link { display: flex; width: max-content; max-width: 100%; margin: 4px auto 18px; }
.legal-review { margin: 0 0 18px; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(245, 158, 11, .5); background: rgba(245, 158, 11, .1); font-size: 14px; }
.legal-review a { margin-left: 6px; font-weight: 600; }
/* long account names or longer translations must not push "sign out" onto a second header line */
.hdr-nav .me .who { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hdr-nav > a, .hdr-nav form .link { white-space: nowrap; }

/* Language Studio (profile) */
.studio-head { display: flex; gap: 20px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.studio-head > div { flex: 1 1 360px; }
.studio-head h2 { margin-top: 0; }
.studio-badges { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.studio-badges li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; max-width: 220px; font-size: 12px; color: var(--muted); }
.studio-badges li strong { display: block; color: var(--text); font-size: 13px; }
.studio-badges li.is-earned { border-color: rgba(212, 175, 55, .6); background: rgba(212, 175, 55, .08); }
.studio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 12px; }
.studio-grid h3 { margin: 0 0 10px; font-size: 15px; }
.studio-langs { list-style: none; margin: 0 0 10px; padding: 0; }
.studio-langs li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.studio-lang { display: flex; flex-direction: column; gap: 4px; min-width: 160px; }
.studio-lang .lang-bar { width: 140px; }
.studio-dl { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.studio-form { display: flex; flex-direction: column; gap: 10px; }
.studio-new summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.studio-new .row3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 8px; }
.studio-mine { margin-top: 6px; }
.pack-st-scanning { background: rgba(59, 130, 246, .12); color: #2563eb; }
.pack-st-review { background: rgba(245, 158, 11, .14); color: #b45309; }
.pack-st-verified { background: rgba(16, 185, 129, .14); color: #047857; }
.pack-st-merged { background: rgba(212, 175, 55, .18); color: #92710c; }
.pack-st-rejected, .pack-st-declined { background: rgba(239, 68, 68, .12); color: #b91c1c; }
.pack-diff tr.pack-new td:last-child { color: #047857; }
.pack-diff tr.pack-change td:last-child { color: #b45309; }
/* grid columns may shrink below their content, so wide tables scroll inside .table-wrap instead of widening the page */
.grid-2 > *, .studio-grid > * { min-width: 0; }
.site-footer { min-width: 0; max-width: 100%; }
.ftr-inner > *, .ftr-bottom > * { min-width: 0; overflow-wrap: anywhere; }
.lic-valid { background: rgba(16, 185, 129, .14); color: #047857; }
.lic-expired, .lic-offline, .lic-wrong_domain { background: rgba(245, 158, 11, .14); color: #b45309; }
.lic-revoked, .lic-invalid { background: rgba(239, 68, 68, .12); color: #b91c1c; }
.lic-doc { width: 100%; font: 12px/1.4 ui-monospace, monospace; word-break: break-all; }
.device-card { max-width: 640px; margin: 24px auto; }
.device-code { font-size: 22px; letter-spacing: .12em; }
.device-code-input { font: 600 22px/1.2 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; max-width: 220px; }
.device-actions, .device-enter { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; margin-top: 12px; }

/* profile: HEIMDALL Guard protection state per computer */
.badge.ok { color: var(--ok); } .badge.warn { color: var(--med); }
ul.plain { list-style: none; padding: 0; margin: 6px 0 0; } ul.plain li { margin: 3px 0; }

/* plans: HEIMDALL Guard comparison, Pro in detail, HEIMDALL ONE */
.plan-section { max-width: 1020px; margin: 46px auto 0; }
.plan-section-head { margin-bottom: 16px; }
.plan-section-head h2 { margin: 4px 0 8px; font-size: 26px; }
.plan-section-head p.muted { max-width: 70ch; margin: 0; }
.kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
table.plan-compare { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 14px; }
.plan-compare th, .plan-compare td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.plan-compare tbody tr:last-child th, .plan-compare tbody tr:last-child td { border-bottom: 0; }
.plan-compare tbody th { text-align: left; font-weight: 500; }
.plan-compare thead th { font-size: 15px; }
.plan-compare .hl { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.plan-compare thead .hl { color: var(--accent); }
.plan-compare .yes { color: var(--ok); font-weight: 700; } .plan-compare .no { color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.detail { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.detail h3 { margin: 0 0 8px; font-size: 16px; }
.detail ul { margin: 0; padding-left: 18px; } .detail li { margin: 5px 0; font-size: 14px; }
.central { max-width: 1020px; margin: 46px auto 10px; border-radius: 20px; overflow: hidden; color: #e8eefc;
  background: radial-gradient(120% 140% at 0% 0%, #1b3a8f 0%, #0b1530 45%, #070c1c 100%); border: 1px solid #22305a; }
.central-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; padding: 36px 34px; }
@media (max-width: 860px) { .central-inner { grid-template-columns: minmax(0, 1fr); padding: 28px 20px; } }
.central .kicker { color: #22d3ee; }
.central h2 { margin: 6px 0 10px; font-size: 34px; letter-spacing: -.01em; color: #fff; }
.central-lead { font-size: 17px; line-height: 1.55; color: #c9d5f2; margin: 0 0 16px; }
.central-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #67e8f9; margin: 0 0 20px; }
.central-status .dot { width: 8px; height: 8px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 0 4px rgba(34, 211, 238, .18); }
.central-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.central-cta .muted { color: #9fb0d6; }
.central-features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.central-features li { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); border-radius: 12px; padding: 13px 15px; }
.central-features strong { display: block; color: #fff; font-size: 14px; margin-bottom: 3px; }
.central-features span { font-size: 13px; line-height: 1.45; color: #aebbdb; }
.soon { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--med);
  border: 1px solid currentColor; border-radius: 999px; padding: 1px 8px; white-space: nowrap; }

/* ===================== HEIMDALL Store (always dark, cinematic) ===================== */
.sg { --s-bg: #05080f; --s-panel: rgba(14, 21, 36, .85); --s-line: rgba(120, 160, 255, .16); --s-text: #e6ecf7; --s-muted: #93a1ba;
  --s-accent: #5b8cff; --s-cyan: #22d3ee; --s-ok: #34d399; --s-bad: #f87171; --s-warn: #fbbf24;
  background: var(--s-bg); color: var(--s-text); color-scheme: dark; overflow-x: clip; }  /* clip, not hidden: the story stage is sticky */
.sg a:not(.btn-primary):not(.btn-glass) { color: #9ec0ff; }
.sg h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.12; margin: 6px 0 14px; letter-spacing: -.01em; color: #fff; }
.sg h3 { color: #fff; }
.sg-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--s-cyan); }
.sg-kicker a { color: inherit; text-decoration: none; }
.sg-lead { font-size: 18px; color: #c3cee4; max-width: 680px; margin: 0 0 26px; }
.sg-section { max-width: 1120px; margin: 0 auto; padding: 90px 24px; }
.btn-glass { display: inline-block; padding: 10px 18px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .22); color: #fff !important;
  background: rgba(255, 255, 255, .06); text-decoration: none; font-weight: 600; backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, .12); }
.sg-big { padding: 14px 28px; font-size: 16px; }

/* hero */
.sg-hero { position: relative; min-height: min(92vh, 900px); display: flex; align-items: center;
  background: radial-gradient(80% 90% at 75% 40%, #12306f 0%, #0a1430 45%, #05080f 100%); }
.sg-grid { position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(91, 140, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(91, 140, 255, .09) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(70% 70% at 60% 45%, #000 20%, transparent 75%);
  animation: sg-grid 18s linear infinite; }
@keyframes sg-grid { to { background-position: 56px 56px, 56px 56px; } }
.sg-hero-inner { position: relative; max-width: 1120px; width: 100%; margin: 0 auto; padding: 60px 24px; display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
@media (max-width: 860px) { .sg-hero-inner { grid-template-columns: minmax(0, 1fr); text-align: center; } .sg-orb { order: -1; } .sg-actions { justify-content: center; } }
.sg-hero-copy > * { animation: sg-rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.sg-hero-copy > :nth-child(2) { animation-delay: .12s; } .sg-hero-copy > :nth-child(3) { animation-delay: .24s; }
.sg-hero-copy > :nth-child(4) { animation-delay: .36s; } .sg-hero-copy > :nth-child(5) { animation-delay: .48s; }
@keyframes sg-rise { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.sg-title { font-size: clamp(46px, 8vw, 92px); line-height: .98; margin: 14px 0 18px; letter-spacing: -.03em; color: #fff; }
.sg-title span { background: linear-gradient(100deg, #22d3ee, #5b8cff 60%, #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sg-tagline { font-size: clamp(18px, 2.2vw, 22px); color: #c7d2e6; max-width: 560px; margin: 0 0 28px; }
@media (max-width: 860px) { .sg-tagline { margin-inline: auto; } }
.sg-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.sg-meta { margin: 18px 0 0; font-size: 13px; color: var(--s-muted); }
.sg-orb { position: relative; width: min(420px, 78vw); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.sg-orb .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(34, 211, 238, .35); animation: sg-ping 4.5s ease-out infinite; }
.sg-orb .r2 { animation-delay: 1.5s; } .sg-orb .r3 { animation-delay: 3s; }
@keyframes sg-ping { 0% { transform: scale(.45); opacity: .9; } 100% { transform: scale(1.12); opacity: 0; } }
.sg-shield { position: relative; width: 56%; filter: drop-shadow(0 20px 60px rgba(47, 107, 255, .55)); animation: sg-float 6s ease-in-out infinite; }
@keyframes sg-float { 50% { transform: translateY(-10px); } }
.sg-scanline { animation: sg-scan 3.2s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes sg-scan { 0% { transform: translateY(0); } 100% { transform: translateY(60px); } }
.sg-check { stroke-dasharray: 40; stroke-dashoffset: 40; animation: sg-draw .9s .8s ease forwards; }
@keyframes sg-draw { to { stroke-dashoffset: 0; } }
.sg-scroll { position: absolute; left: 50%; bottom: 26px; width: 24px; height: 38px; margin-left: -12px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 14px; }
.sg-scroll span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: sg-wheel 1.8s infinite; }
@keyframes sg-wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* story: a sticky stage that plays the step in view */
.sg-story { position: relative; max-width: 1120px; margin: 0 auto; padding: 40px 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
@media (max-width: 860px) { .sg-story { grid-template-columns: minmax(0, 1fr); } .sg-stage { position: relative !important; top: 0 !important; height: 300px !important; } }
.sg-stage { position: sticky; top: 12vh; height: 76vh; max-height: 560px; border-radius: 22px; border: 1px solid var(--s-line); overflow: hidden;
  background: radial-gradient(90% 80% at 50% 30%, #0f2250, #070d1d 70%); }
.sg-steps { padding: 10vh 0; }
.sg-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .5s ease; }
.sg-step.on { opacity: 1; }
.sg-step p { font-size: 17px; color: #c3cee4; max-width: 46ch; }
.sg-num { font: 700 13px/1 ui-monospace, Consolas, monospace; letter-spacing: .2em; color: var(--s-cyan) !important; margin: 0; }
.st-folder { position: absolute; left: 8%; right: 8%; bottom: 10%; height: 30%; border-radius: 14px; border: 1px dashed rgba(255, 255, 255, .22);
  display: flex; align-items: flex-end; padding: 12px 16px; font-size: 13px; color: var(--s-muted); }
.st-file { position: absolute; left: 50%; top: 14%; width: 150px; margin-left: -75px; padding: 46px 12px 12px; border-radius: 10px; text-align: center;
  font: 12px ui-monospace, Consolas, monospace; color: #fff; background: linear-gradient(160deg, #26334f, #141c2e); border: 1px solid rgba(255, 255, 255, .18);
  transition: transform .9s cubic-bezier(.3, 1.3, .4, 1), opacity .6s, border-color .4s, box-shadow .4s; }
.st-file::before { content: ""; position: absolute; left: 50%; top: 12px; width: 26px; height: 30px; margin-left: -13px; border-radius: 4px; background: #5b8cff; opacity: .85; }
.st-engines { position: absolute; left: 0; right: 0; top: 52%; display: flex; justify-content: center; gap: 12px; opacity: 0; transition: opacity .5s; }
.eng { padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; border: 1px solid rgba(91, 140, 255, .5); color: #cfe0ff; background: rgba(91, 140, 255, .1); }
.st-verdict { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%) scale(.6); display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0; transition: opacity .5s, transform .7s cubic-bezier(.3, 1.4, .4, 1); }
.st-verdict svg { width: 110px; } .st-verdict svg path:first-child { fill: #e5484d; }
.st-verdict strong { font-size: 18px; color: #fff; }
.st-mail { position: absolute; right: 7%; top: 8%; padding: 10px 14px; border-radius: 12px; font-size: 13px; color: #fff; background: rgba(52, 211, 153, .16);
  border: 1px solid rgba(52, 211, 153, .5); opacity: 0; transform: translateY(-12px); transition: opacity .5s, transform .5s; }
.st-mail span { margin-right: 8px; }
.sg-stage[data-step="1"] .st-file { transform: translateY(110%); }
.sg-stage[data-step="2"] .st-file { transform: translateY(0) scale(1.05); border-color: var(--s-cyan); box-shadow: 0 0 0 6px rgba(34, 211, 238, .12), 0 0 40px rgba(34, 211, 238, .35); }
.sg-stage[data-step="2"] .st-engines { opacity: 1; }
.sg-stage[data-step="2"] .eng { animation: sg-eng 1.4s ease-in-out infinite; }
.sg-stage[data-step="2"] .e2 { animation-delay: .25s; } .sg-stage[data-step="2"] .e3 { animation-delay: .5s; }
@keyframes sg-eng { 50% { background: rgba(91, 140, 255, .45); color: #fff; } }
.sg-stage[data-step="3"] .st-file, .sg-stage[data-step="4"] .st-file { opacity: 0; transform: scale(.3); }
.sg-stage[data-step="3"] .st-verdict, .sg-stage[data-step="4"] .st-verdict { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.sg-stage[data-step="4"] .st-mail { opacity: 1; transform: none; }

/* app gallery */
.sg-app { text-align: center; } .sg-app .sg-lead { margin-inline: auto; }
.sg-tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 5px; border-radius: 12px; background: rgba(255, 255, 255, .06); margin-bottom: 22px; }
.sg-tabs button { border: 0; background: transparent; color: var(--s-muted); padding: 8px 14px; border-radius: 8px; font: inherit; font-size: 14px; cursor: pointer; }
.sg-tabs button[aria-selected="true"] { background: #fff; color: #0b1530; font-weight: 600; }
.sg-window { position: relative; max-width: 960px; margin: 0 auto; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 40px 120px rgba(20, 60, 160, .45), 0 0 0 1px rgba(0, 0, 0, .4); background: #f3f3f3; transform: perspective(1600px) rotateX(4deg);
  transition: transform .8s ease; }
.sg-window:hover { transform: none; }
.sg-window-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #e8e8e8; color: #333; font-size: 12px; }
.sg-window-bar span { width: 10px; height: 10px; border-radius: 50%; background: #c7c7c7; } .sg-window-bar em { margin-left: 8px; font-style: normal; }
.sg-shot { margin: 0; display: none; } .sg-shot.on { display: block; animation: sg-fade .5s ease; }
@keyframes sg-fade { from { opacity: 0; } to { opacity: 1; } }
.sg-shot img { display: block; width: 100%; height: auto; }
.sg-shot figcaption { padding: 12px; font-size: 14px; color: #c3cee4; background: #0a1226; }

/* editions */
.sg-editions { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; margin-top: 10px; }
.sg-edition { position: relative; display: flex; flex-direction: column; padding: 26px 24px; border-radius: 18px; background: var(--s-panel); border: 1px solid var(--s-line); }
.sg-edition.pro { border-color: rgba(91, 140, 255, .75); box-shadow: 0 0 60px rgba(47, 107, 255, .25); }
.sg-edition h3 { margin: 0; font-size: 22px; }
.sg-price { color: var(--s-muted); margin: 4px 0 16px; }
.sg-edition ul { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.sg-edition li { padding: 7px 0 7px 24px; position: relative; font-size: 15px; color: #d5def0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.sg-edition li::before { content: "✓"; position: absolute; left: 0; color: var(--s-ok); font-weight: 700; }
.sg-edition .btn-primary, .sg-edition .btn-glass { text-align: center; }
.sg-ribbon { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 800; letter-spacing: .12em; color: #fff; background: #2f6bff; padding: 3px 9px; border-radius: 999px; }

/* trust, download, specs */
.sg-trust { border-top: 1px solid var(--s-line); border-bottom: 1px solid var(--s-line); }
.sg-trust-grid, .sg-specs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 36px; }
.sg-trust p { color: #c3cee4; }
.sg-download { text-align: left; }
.sg-preview { padding: 12px 16px; border-radius: 12px; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .4); color: #fde4a0; max-width: 760px; }
.sg-dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; margin-top: 18px; }
@media (max-width: 860px) { .sg-dl { grid-template-columns: minmax(0, 1fr); } }
.sg-dl-meta { color: var(--s-muted); font-size: 13px; margin: 12px 0 0; word-break: break-all; }
.sg-sha { cursor: copy; color: #cfe0ff; } .sg-sha.copied { color: var(--s-ok); }
.sg-steps-list { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.sg-steps-list li { counter-increment: s; position: relative; padding: 0 0 18px 48px; }
.sg-steps-list li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; background: rgba(91, 140, 255, .18); color: #cfe0ff; }
.sg-steps-list strong { display: block; color: #fff; } .sg-steps-list span { color: var(--s-muted); font-size: 14px; }
.sg-note { color: var(--s-muted); margin-top: 18px; }
.sg-specs dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; font-size: 15px; }
.sg-specs dt { color: var(--s-muted); } .sg-specs dd { margin: 0; color: #dbe3f3; }
.sg-faq details { border-bottom: 1px solid var(--s-line); padding: 12px 0; } .sg-faq summary { cursor: pointer; color: #fff; font-weight: 600; }
.sg-faq p { color: #c3cee4; margin: 10px 0 0; }

/* store landing */
.store-head { padding-bottom: 30px; } .store-title { font-size: clamp(32px, 5vw, 56px); line-height: 1.05; margin: 12px 0 14px; color: #fff; letter-spacing: -.02em; }
.store-grid { padding-top: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.store-card { display: flex; gap: 18px; padding: 26px; border-radius: 18px; background: var(--s-panel); border: 1px solid var(--s-line); color: var(--s-text) !important;
  text-decoration: none; transition: transform .3s, border-color .3s; }
a.store-card:hover { transform: translateY(-4px); border-color: rgba(91, 140, 255, .6); }
.store-card.feature { grid-column: 1 / -1; background: radial-gradient(90% 120% at 0% 0%, #163a8a, #0b1530 60%); }
.store-card h2 { font-size: 24px; margin: 4px 0 8px; } .store-card p { color: #c3cee4; margin: 0 0 12px; }
.store-state { font-size: 12px !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--s-warn) !important; margin: 0 !important; }
.store-state.live { color: var(--s-ok) !important; }
.store-more { color: #9ec0ff; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .sg *, .sg *::before { animation: none !important; transition: none !important; }
  .sg-check { stroke-dashoffset: 0; } .sg-step { opacity: 1; } .sg-window { transform: none; }
}
.store-state.invite { color: #67e8f9 !important; }
