/* Akovara design system ------------------------------------------------ */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f1f4f7;
  --surface-3: #e8edf2;
  --ink: #0d1726;
  --ink-2: #344256;
  --muted: #64748b;
  --line: #e3e8ee;
  --line-2: #d3dae3;
  --brand: #0d7a6f;
  --brand-ink: #ffffff;
  --brand-soft: #e3f4f1;
  --brand-strong: #075e55;
  --focus: #2563eb;
  --side: #0b1320;
  --side-2: #121d2e;
  --side-ink: #c4cfdd;
  --side-muted: #7c8aa0;
  --crit: #c81e1e; --crit-bg: #fde8e8; --crit-line: #f8c4c4;
  --high: #d4570b; --high-bg: #fff0e3; --high-line: #fbd2b0;
  --med: #a46b00; --med-bg: #fff6d9; --med-line: #f3df9c;
  --low: #2759d6; --low-bg: #e8efff; --low-line: #c3d3fb;
  --info: #5f6f84; --info-bg: #eef1f5; --info-line: #d8dee6;
  --ok: #157a3f; --ok-bg: #e4f6ea;
  --shadow-sm: 0 1px 2px rgba(13, 23, 38, .06);
  --shadow: 0 1px 2px rgba(13, 23, 38, .05), 0 4px 14px rgba(13, 23, 38, .06);
  --shadow-lg: 0 10px 40px rgba(13, 23, 38, .14);
  --radius: 10px;
  --radius-sm: 7px;
  --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f17; --surface: #111823; --surface-2: #161f2c; --surface-3: #1d2836;
    --ink: #e8eef6; --ink-2: #c3cedb; --muted: #8796ab; --line: #222d3b; --line-2: #2c394a;
    --brand: #2bb3a3; --brand-ink: #04211e; --brand-soft: #0f2d2a; --brand-strong: #5fd0c2;
    --side: #070b11; --side-2: #0f1722;
    --crit: #ff6b6b; --crit-bg: #3a1416; --crit-line: #5c1f22;
    --high: #ff9a4d; --high-bg: #3a2210; --high-line: #5a3417;
    --med: #f3c344; --med-bg: #362a0b; --med-line: #554112;
    --low: #7aa2ff; --low-bg: #142244; --low-line: #213668;
    --info: #9aa9bd; --info-bg: #1b2533; --info-line: #2a3646;
    --ok: #4ad485; --ok-bg: #0f2c1c;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.25);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0f17; --surface: #111823; --surface-2: #161f2c; --surface-3: #1d2836;
  --ink: #e8eef6; --ink-2: #c3cedb; --muted: #8796ab; --line: #222d3b; --line-2: #2c394a;
  --brand: #2bb3a3; --brand-ink: #04211e; --brand-soft: #0f2d2a; --brand-strong: #5fd0c2;
  --side: #070b11; --side-2: #0f1722;
  --crit: #ff6b6b; --crit-bg: #3a1416; --crit-line: #5c1f22;
  --high: #ff9a4d; --high-bg: #3a2210; --high-line: #5a3417;
  --med: #f3c344; --med-bg: #362a0b; --med-line: #554112;
  --low: #7aa2ff; --low-bg: #142244; --low-line: #213668;
  --info: #9aa9bd; --info-bg: #1b2533; --info-line: #2a3646;
  --ok: #4ad485; --ok-bg: #0f2c1c;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.25);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 22px; font-weight: 700; }
h2 { font-size: 16px; font-weight: 650; }
h3 { font-size: 14px; font-weight: 650; }
p { margin: 0 0 .75em; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.icon.sm { width: 15px; height: 15px; }
.icon.lg { width: 24px; height: 24px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.break { overflow-wrap: anywhere; }
.right { text-align: right; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px }
.mb-0 { margin-bottom: 0 } .mb-1 { margin-bottom: 8px } .mb-2 { margin-bottom: 16px }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.stack > * + * { margin-top: 16px; }
.grow { flex: 1; min-width: 0; }

/* App shell ---------------------------------------------------------------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.logo { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.logo:hover { text-decoration: none; }
/* Akovara lockup: tiered-A mark (signal teal) + outlined Sora wordmark. Colours come from CSS via currentColor. */
.logo-mark { width: 32px; height: 34px; display: grid; place-items: center; color: #2bb3a3; flex: none; }
.logo-mark .brand-mark { width: 31px; height: 33px; display: block; }
.logo-text { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.logo-text .brand-word { height: 18px; width: auto; display: block; color: #fff; }
.logo small { display: block; font-weight: 500; font-size: 11px; color: var(--side-muted); letter-spacing: .02em; line-height: 1; }
.org-switch { margin: 4px 12px 10px; position: relative; }
.org-switch summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; background: var(--side-2); border: 1px solid rgba(255,255,255,.06); }
.org-switch summary::-webkit-details-marker { display: none; }
.org-avatar { width: 28px; height: 28px; border-radius: 7px; background: #23324a; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.org-name { color: #fff; font-weight: 600; font-size: 13px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-meta { font-size: 11px; color: var(--side-muted); }
.org-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--side-2); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: 6px; z-index: 20; box-shadow: var(--shadow-lg); }
.org-menu form { margin: 0; }
.org-menu button, .org-menu a { width: 100%; display: flex; gap: 8px; align-items: center; text-align: left; background: none; border: 0; color: var(--side-ink); padding: 8px; border-radius: 6px; font: inherit; font-size: 13px; cursor: pointer; }
.org-menu button:hover, .org-menu a:hover { background: rgba(255,255,255,.06); text-decoration: none; }
.nav { padding: 4px 10px; display: flex; flex-direction: column; gap: 1px; }
.nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--side-muted); padding: 14px 10px 6px; font-weight: 600; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 7px; color: var(--side-ink); font-weight: 500; font-size: 13.5px; }
.nav a:hover { background: rgba(255,255,255,.05); color: #fff; text-decoration: none; }
.nav a.active { background: rgba(20,184,166,.14); color: #fff; box-shadow: inset 2px 0 0 #14b8a6; }
.nav a.active .icon { color: #2dd4bf; }
.nav .count { margin-left: auto; font-size: 11px; font-weight: 600; background: rgba(255,255,255,.08); color: #e2e8f0; padding: 1px 7px; border-radius: 99px; }
.nav .count.hot { background: #c81e1e; color: #fff; }
.side-foot { margin-top: auto; padding: 12px; border-top: 1px solid rgba(255,255,255,.06); }
.pilot { background: linear-gradient(135deg, rgba(20,184,166,.16), rgba(20,184,166,.04)); border: 1px solid rgba(45,212,191,.25); border-radius: 9px; padding: 10px 12px; font-size: 12px; color: var(--side-ink); margin-bottom: 10px; }
.pilot b { color: #fff; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 8px; }
.user-chip .avatar { width: 30px; height: 30px; border-radius: 50%; background: #1f2b3d; color: #cbd5e1; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.user-chip .who { font-size: 12.5px; line-height: 1.25; min-width: 0; }
.user-chip .who b { color: #fff; font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip .who span { color: var(--side-muted); }
.user-chip form { margin-left: auto; }
.icon-btn { background: none; border: 0; color: inherit; cursor: pointer; padding: 6px; border-radius: 6px; display: inline-grid; place-items: center; }
.icon-btn:hover { background: rgba(127,127,127,.15); }

.scrim { display: none; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 60px; display: flex; align-items: center; gap: 14px; padding: 0 28px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: saturate(1.6) blur(8px); position: sticky; top: 0; z-index: 10; }
.topbar .search { flex: 1; max-width: 460px; position: relative; }
.topbar .search input { width: 100%; padding: 8px 12px 8px 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: inherit; }
.topbar .search .icon { position: absolute; left: 11px; top: 9px; color: var(--muted); }
.topbar .spacer { flex: 1; }
.menu-toggle { display: none; }
.content { padding: 26px 28px 60px; max-width: 1360px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; display: flex; gap: 6px; align-items: center; }
.crumbs a { color: var(--muted); }

/* Buttons ------------------------------------------------------------------ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, box-shadow .12s; box-shadow: var(--shadow-sm); }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn.danger { color: var(--crit); border-color: var(--crit-line); }
.btn.danger:hover { background: var(--crit-bg); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn.lg { height: 44px; padding: 0 20px; font-size: 15px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }
.btn-group { display: inline-flex; gap: 8px; flex-wrap: wrap; }

/* Cards and layout --------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-head h2 { font-size: 14.5px; }
.card-head .sub { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.card-body { padding: 18px; }
.card-body.tight { padding: 0; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); font-size: 12.5px; }
.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.main-side { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.grid.side-main { grid-template-columns: 300px minmax(0, 1fr); align-items: start; }

/* KPI tiles ---------------------------------------------------------------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; position: relative; overflow: hidden; box-shadow: var(--shadow-sm); display: block; color: inherit; }
.kpi:hover { text-decoration: none; border-color: var(--line-2); }
.kpi .label { font-size: 12.5px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 7px; }
.kpi .value { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .value small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.kpi .foot { font-size: 12px; color: var(--muted); margin-top: 6px; }
.kpi.alert { border-color: var(--crit-line); background: linear-gradient(180deg, var(--crit-bg), var(--surface) 70%); }
.kpi.alert .value { color: var(--crit); }
.kpi::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent, transparent); }

/* Badges and chips --------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 650; letter-spacing: .01em; border: 1px solid transparent; white-space: nowrap; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sev-critical { color: var(--crit); background: var(--crit-bg); border-color: var(--crit-line); }
.sev-high { color: var(--high); background: var(--high-bg); border-color: var(--high-line); }
.sev-medium { color: var(--med); background: var(--med-bg); border-color: var(--med-line); }
.sev-low { color: var(--low); background: var(--low-bg); border-color: var(--low-line); }
.sev-info, .sev-unscored { color: var(--info); background: var(--info-bg); border-color: var(--info-line); }
.st { color: var(--ink-2); background: var(--surface-2); border-color: var(--line); }
.st-new { color: var(--low); background: var(--low-bg); border-color: var(--low-line); }
.st-investigating { color: var(--med); background: var(--med-bg); border-color: var(--med-line); }
.st-takedown, .st-sent, .st-acknowledged { color: var(--high); background: var(--high-bg); border-color: var(--high-line); }
.st-resolved, .st-removed, .st-done { color: var(--ok); background: var(--ok-bg); border-color: transparent; }
.st-false_positive, .st-accepted, .st-watching, .st-draft, .st-queued { color: var(--info); background: var(--info-bg); border-color: var(--info-line); }
.st-rejected, .st-failed { color: var(--crit); background: var(--crit-bg); border-color: var(--crit-line); }
.st-running, .st-partial { color: var(--med); background: var(--med-bg); border-color: var(--med-line); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.pill-ok, .pill-warn, .pill-bad, .pill-na { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.pill-ok::before, .pill-warn::before, .pill-bad::before, .pill-na::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.pill-ok { color: var(--ok); } .pill-ok::before { background: var(--ok); }
.pill-warn { color: var(--med); } .pill-warn::before { background: var(--med); }
.pill-bad { color: var(--crit); } .pill-bad::before { background: var(--crit); }
.pill-na { color: var(--muted); } .pill-na::before { background: var(--line-2); }

/* Tables ------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.table .title-cell a { color: var(--ink); font-weight: 600; }
.table .title-cell .sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 520px; }
.table td.check, .table th.check { width: 36px; padding-right: 0; }
.score { font-variant-numeric: tabular-nums; font-weight: 700; }
.scorebar { width: 64px; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; display: inline-block; vertical-align: middle; margin-left: 6px; }
.scorebar i { display: block; height: 100%; border-radius: 3px; }

/* Lists -------------------------------------------------------------------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: 12px 18px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.list > li:last-child { border-bottom: 0; }
.list > li a.stretch { color: var(--ink); font-weight: 600; }
.threat-item { display: grid !important; grid-template-columns: auto 1fr auto; gap: 12px; }
.threat-item .t { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.threat-item .m { font-size: 12.5px; color: var(--muted); }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }

/* Forms -------------------------------------------------------------------- */
.form-grid { display: grid; gap: 16px; }
.field label, .label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 6px; color: var(--ink); }
.field .help { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.field .errors, .errorlist { color: var(--crit); font-size: 12.5px; margin: 5px 0 0; padding: 0; list-style: none; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; transition: border-color .12s, box-shadow .12s;
}
textarea { resize: vertical; min-height: 70px; }
textarea.mono { font-family: var(--mono); font-size: 12.5px; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--crit); }
input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--brand); vertical-align: middle; }
.check-row { display: flex; gap: 10px; align-items: center; font-weight: 500 !important; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.filters select, .filters input { width: auto; height: 34px; padding: 0 10px; font-size: 13px; }
.filters input[type=search] { min-width: 220px; }
.seg { display: inline-flex; flex-wrap: wrap; max-width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 3px; gap: 2px; }
.seg a { padding: 5px 12px; border-radius: 6px; color: var(--ink-2); font-weight: 600; font-size: 12.5px; }
.seg a:hover { text-decoration: none; background: var(--surface-3); }
.seg a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* Alerts and messages ------------------------------------------------------ */
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 14px; font-size: 13.5px; box-shadow: var(--shadow-sm); }
.flash.success { border-color: color-mix(in srgb, var(--ok) 35%, transparent); background: var(--ok-bg); }
.flash.error { border-color: var(--crit-line); background: var(--crit-bg); }
.flash.warning { border-color: var(--med-line); background: var(--med-bg); }
.flash.info { border-color: var(--low-line); background: var(--low-bg); }
.flash .x { margin-left: auto; }
.callout { border-radius: 10px; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; }
.callout.danger { background: var(--crit-bg); border-color: var(--crit-line); }
.callout.warn { background: var(--med-bg); border-color: var(--med-line); }
.callout.brand { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 30%, transparent); }

/* Empty states ------------------------------------------------------------- */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .icon-wrap { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin: 0 auto 14px; }
.empty h3 { color: var(--ink); font-size: 15px; margin-bottom: 6px; }
.empty p { max-width: 420px; margin: 0 auto 14px; }

/* Progress ----------------------------------------------------------------- */
.progress { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #2dd4bf); border-radius: 99px; transition: width .6s ease; }
.progress.live > i { background-size: 30px 30px; background-image: linear-gradient(135deg, rgba(255,255,255,.25) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.25) 50%, rgba(255,255,255,.25) 75%, transparent 75%), linear-gradient(90deg, var(--brand), #2dd4bf); animation: stripes 1s linear infinite; }
@keyframes stripes { to { background-position: 30px 0, 0 0; } }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--brand) 25%, transparent); border-top-color: var(--brand); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.sources { display: grid; gap: 8px; }
.source { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 13px; background: var(--surface); }
.source .name { font-weight: 600; }
.source .detail { color: var(--muted); font-size: 12.5px; }
.source .state { margin-left: auto; }

/* Score dial and signals --------------------------------------------------- */
.dial { --v: 50; --c: var(--med); width: 104px; height: 104px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--surface-3) 0); display: grid; place-items: center; flex: none; }
.dial > div { width: 80px; height: 80px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; text-align: center; }
.dial b { font-size: 26px; line-height: 1; letter-spacing: -.02em; }
.dial span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; display: block; margin-top: 2px; }
.signals { display: grid; gap: 8px; }
.signal { display: grid; grid-template-columns: 1fr 120px 42px; gap: 12px; align-items: center; font-size: 13.5px; }
.signal .bar { height: 7px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.signal .bar i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.signal.neg .bar i { background: var(--ok); }
.signal .pts { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.signal.neg .pts { color: var(--ok); }

/* Timeline ----------------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 16px 38px; font-size: 13.5px; }
.timeline .node { position: absolute; left: 4px; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); display: grid; place-items: center; }
.timeline .node.user { border-color: var(--brand); }
.timeline .node .icon { width: 11px; height: 11px; color: var(--muted); }
.timeline .meta { font-size: 12px; color: var(--muted); }
.timeline .text { white-space: pre-line; }

/* Evidence ----------------------------------------------------------------- */
.evidence { display: grid; gap: 10px; }
.ev { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; }
.ev .ic { width: 40px; height: 40px; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; color: var(--ink-2); }
.ev .hash { font-family: var(--mono); font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.shot img { display: block; width: 100%; height: auto; }
.shot .cap { padding: 8px 12px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); background: var(--surface); }
pre.code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; overflow: auto; font-family: var(--mono); font-size: 12px; line-height: 1.6; margin: 0; white-space: pre-wrap; word-break: break-word; }

/* Chart -------------------------------------------------------------------- */
.chart { width: 100%; height: auto; display: block; }
.chart .grid-line { stroke: var(--line); stroke-dasharray: 3 4; }
.chart text { fill: var(--muted); font-size: 9px; font-family: var(--font); }
.chart rect.critical { fill: var(--crit); } .chart rect.high { fill: var(--high); } .chart rect.medium { fill: var(--med); }
.chart rect.low { fill: var(--low); } .chart rect.info { fill: var(--info); opacity: .6; }
.chart .hit:hover rect { opacity: .8; }
.chart .hit.link { cursor: pointer; }
.chart a:focus-visible rect { outline: 2px solid var(--brand); }
.chart .hit.link:hover rect[fill="transparent"] { fill: var(--surface-3); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend a { color: var(--muted); text-decoration: none; }
.legend a:hover { color: var(--ink); text-decoration: underline; }
.legend span::before, .legend a::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; background: var(--c); vertical-align: -1px; }
.sevbar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--surface-3); gap: 2px; }
.sevbar i, .sevbar a { display: block; height: 100%; }
.sevbar a:hover { filter: brightness(1.15); }
.sevbar:has(a) { height: 14px; }
.kpis-sub { margin-top: -4px; }
.catbar { display: grid; grid-template-columns: minmax(140px, 1.2fr) 2fr auto; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; padding: 4px 6px; margin: 0 -6px; border-radius: 8px; }
.catbar:hover { background: var(--surface-2); }
.catbar .lbl { font-size: 13px; }
.catbar .track { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.catbar .track i { display: block; height: 100%; background: var(--brand); border-radius: 99px; min-width: 2px; }
.catbar .n { font-weight: 650; font-size: 13px; white-space: nowrap; }
@media (max-width: 560px) { .catbar { grid-template-columns: 1fr auto; } .catbar .track { grid-column: 1 / -1; order: 3; } }

/* Tabs --------------------------------------------------------------------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; font-weight: 600; font-size: 13.5px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--brand); }
.tabs .n { font-size: 11px; background: var(--surface-3); padding: 1px 6px; border-radius: 99px; margin-left: 4px; }

/* Pagination --------------------------------------------------------------- */
.pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* Bulk bar ----------------------------------------------------------------- */
.bulkbar { display: none; align-items: center; gap: 10px; padding: 10px 14px; background: var(--brand-soft); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.bulkbar.on { display: flex; }

/* Auth & public pages ------------------------------------------------------ */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: radial-gradient(1200px 600px at 10% -10%, rgba(20,184,166,.35), transparent 60%), radial-gradient(800px 500px at 110% 110%, rgba(37,99,235,.3), transparent 60%), #0b1320; color: #cbd5e1; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-art .logo { padding: 0; }
.auth-art h2 { color: #fff; font-size: 28px; line-height: 1.25; letter-spacing: -.02em; max-width: 460px; }
.auth-art ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; max-width: 460px; }
.auth-art li { display: flex; gap: 10px; align-items: flex-start; }
.auth-art li .icon { color: #2dd4bf; margin-top: 2px; }
.auth-form { display: grid; place-items: center; padding: 40px 24px; background: var(--surface); }
.auth-form .box { width: 100%; max-width: 400px; }
.auth-form h1 { font-size: 24px; margin-bottom: 6px; }

.pub { background: var(--surface); }
.pub-nav { display: flex; align-items: center; gap: 18px; padding: 16px 40px; max-width: 1200px; margin: 0 auto; }
.pub-nav .logo { color: var(--ink); padding: 0; }
.pub-nav .logo small { color: var(--muted); }
.pub-nav .logo .logo-mark, .pub .logo .logo-mark { color: var(--brand); }
.pub-nav .logo .brand-word, .pub .logo .brand-word { color: var(--ink); }
.pub-nav .links { margin-left: auto; display: flex; gap: 20px; align-items: center; }
.pub-nav .links a:not(.btn) { color: var(--ink-2); font-weight: 500; }
.hero { position: relative; overflow: hidden; background: radial-gradient(900px 500px at 85% 0%, rgba(20,184,166,.18), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(37,99,235,.10), transparent 60%), var(--surface); border-bottom: 1px solid var(--line); }
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 64px 40px 72px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: 5px 12px; border-radius: 99px; margin-bottom: 18px; }
.hero h1 { font-size: 46px; line-height: 1.08; letter-spacing: -.035em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { font-size: 18px; color: var(--ink-2); margin: 18px 0 26px; max-width: 560px; }
.hero .proof { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; font-size: 13px; color: var(--muted); }
.hero .proof b { display: block; font-size: 22px; color: var(--ink); letter-spacing: -.02em; }
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-top { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mock-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.section { max-width: 1200px; margin: 0 auto; padding: 72px 40px; }
.section h2.big { font-size: 32px; letter-spacing: -.025em; font-weight: 750; margin-bottom: 10px; }
.section .intro { font-size: 16.5px; color: var(--ink-2); max-width: 680px; margin-bottom: 36px; }
.feature { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.feature .fi { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.feature h3 { font-size: 15.5px; margin-bottom: 6px; }
.feature p { color: var(--ink-2); margin: 0; font-size: 14px; }
.band { background: var(--side); color: #cbd5e1; }
.band h2.big { color: #fff; }
.band .intro { color: #9fb0c6; }
.stat-big { font-size: 40px; font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1; }
.steps { counter-reset: s; display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.step::before { counter-increment: s; content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 700; display: grid; place-items: center; }
.price { padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.price.featured { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.price .amt { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 2px; }
.price ul { padding-left: 0; list-style: none; display: grid; gap: 8px; margin: 18px 0; font-size: 13.5px; }
.price li { display: flex; gap: 8px; }
.price li .icon { color: var(--brand); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 650; cursor: pointer; font-size: 15px; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }
.footer { border-top: 1px solid var(--line); padding: 28px 40px; color: var(--muted); font-size: 13px; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.main-side, .grid.side-main { grid-template-columns: 1fr; }
  .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 30; }
  .scrim.on { display: block; }
  .menu-toggle { display: inline-grid; }
  .topbar { padding: 0 16px; }
  .topbar .search { display: none; }
  .content { padding: 20px 16px 48px; }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .pub-nav { padding: 14px 16px; }
  .pub-nav .links a:not(.btn) { display: none; }
  .hero-inner, .section { padding-left: 16px; padding-right: 16px; }
  .hero h1 { font-size: 34px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 8px; }
  .signal { grid-template-columns: 1fr 60px 36px; }
  .table .hide-sm { display: none; }
}
@media (max-width: 520px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi .value { font-size: 24px; }
  .grid.cols-4 { grid-template-columns: 1fr; }
  .page-head { align-items: flex-start; }
}
@media print {
  .sidebar, .topbar, .btn, .filters, form { display: none !important; }
  .shell { display: block; }
  .card { box-shadow: none; break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* details-based cards */
details.card > summary { list-style: none; }
details.card > summary::-webkit-details-marker { display: none; }
details.card:not([open]) > summary { border-bottom: 0; }
.list > li.active { background: var(--brand-soft); }
fieldset[disabled] { opacity: .8; }
.org-name, .org-meta { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-switch summary > .grow { min-width: 0; }
.grid > *, .stack > * { min-width: 0; }
.kv.small { grid-template-columns: 96px 1fr; }
aside .kv code { word-break: break-all; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 12px; }
main:focus { outline: none; }

ol.steps { list-style: none; padding: 0; margin: 0; }
.doc h1.big-title { font-size: 34px; letter-spacing: -.025em; margin: 10px 0 8px; }
.doc .lead-muted { font-size: 16.5px; color: var(--ink-2); margin-bottom: 26px; }
.doc h2 { font-size: 18px; margin: 28px 0 10px; }
.doc p, .doc li { font-size: 15px; color: var(--ink-2); line-height: 1.7; }
.doc ul { padding-left: 20px; }

/* Overview: period/brand controls, exposure score, comparisons, deadlines, activity */
.dash-controls { display: flex; flex-wrap: wrap; gap: 10px; margin: -6px 0 16px; }
.score-grid { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(260px, 2fr); gap: 24px; align-items: center; }
.score-main .label { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.score-value { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 6px; flex-wrap: wrap; }
.score-value .num { font-size: 44px; font-weight: 750; line-height: 1; letter-spacing: -0.02em; }
.score-value .of { color: var(--muted); font-weight: 600; }
.pill-band { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; align-self: center; background: var(--surface-3); }
.sc-crit { color: var(--crit); stroke: var(--crit); } .sc-high { color: var(--high); stroke: var(--high); } .sc-med { color: var(--med); stroke: var(--med); }
.sc-low { color: var(--low); stroke: var(--low); } .sc-ok { color: var(--ok); stroke: var(--ok); }
.pill-band.sc-crit { background: color-mix(in srgb, var(--crit) 14%, transparent); } .pill-band.sc-high { background: color-mix(in srgb, var(--high) 14%, transparent); }
.pill-band.sc-med { background: color-mix(in srgb, var(--med) 16%, transparent); } .pill-band.sc-low { background: color-mix(in srgb, var(--low) 14%, transparent); }
.pill-band.sc-ok { background: color-mix(in srgb, var(--ok) 14%, transparent); }
.spark { width: 100%; height: auto; max-height: 120px; display: block; overflow: visible; }
.spark .base { stroke: var(--line); stroke-dasharray: 3 4; }
.spark .line { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.spark .dot { fill: currentColor; stroke: var(--surface); stroke-width: 2; }
.delta { display: inline-block; font-size: 12px; font-weight: 600; margin-top: 6px; }
.delta.bad { color: var(--crit); } .delta.good { color: var(--ok); } .delta.flat { color: var(--muted); }
.delta .muted { font-weight: 400; }
.deadline .ic, .activity .ic { color: var(--muted); display: inline-flex; padding-top: 2px; }
.deadline.overdue .ic, .deadline.overdue .when { color: var(--crit); font-weight: 600; }
.deadline.soon .ic, .deadline.soon .when { color: var(--high); font-weight: 600; }
.deadline .when { color: var(--muted); }
.activity.is-new { background: color-mix(in srgb, var(--brand) 6%, transparent); }
@media (max-width: 760px) { .score-grid { grid-template-columns: 1fr; gap: 12px; } .score-value .num { font-size: 38px; } }

/* Exposure score line: one clickable column per day, with guide, dot and tooltip */
.spark .spark-day .col { fill: transparent; }
.spark .spark-day .guide { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0; }
.spark .spark-day .dot { opacity: 0; }
.spark .spark-day { cursor: pointer; outline: none; }
.spark .spark-day:hover .col, .spark .spark-day:focus-visible .col { fill: color-mix(in srgb, var(--brand) 7%, transparent); }
.spark .spark-day:hover .guide, .spark .spark-day:focus-visible .guide,
.spark .spark-day:hover .dot, .spark .spark-day:focus-visible .dot { opacity: 1; }
.spark .spark-day:focus-visible .col { stroke: var(--brand); stroke-width: 1.5; }
.spark .dot.now { pointer-events: none; }
.chart-tip { position: fixed; z-index: 60; pointer-events: none; max-width: 300px; padding: 8px 10px; border-radius: 8px;
  background: var(--ink); color: var(--surface); font-size: 12px; line-height: 1.45; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.chart-tip b { display: block; font-size: 12.5px; }
.chart-tip .cta { opacity: .75; margin-top: 2px; }
.chart-tip[hidden] { display: none; }

/* ===================================================================== Sidebar v2
   Fixed header and footer, only the section list scrolls (thin, dark scrollbar), compact on short
   screens, collapsible to an icon rail on desktop ( [ key or the panel button ), account menu in the footer. */
.tabs a.active { color: var(--ink); border-bottom-color: var(--brand); }
.tabs a .icon { margin-right: 4px; vertical-align: -2px; }
.sidebar { overflow: hidden; }
.side-head { display: flex; align-items: center; justify-content: space-between; padding-right: 10px; }
.side-head .logo { flex: 1; min-width: 0; }
.side-toggle { color: var(--side-muted); flex: none; }
.side-toggle:hover { color: #fff; background: rgba(255,255,255,.06); }
.sidebar .nav { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 10px 10px;
  scrollbar-width: thin; scrollbar-color: transparent transparent; transition: scrollbar-color .2s; }
.sidebar .nav:hover, .sidebar .nav:focus-within { scrollbar-color: rgba(255,255,255,.18) transparent; }
.sidebar .nav::-webkit-scrollbar { width: 8px; }
.sidebar .nav::-webkit-scrollbar-thumb { background: transparent; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
.sidebar .nav:hover::-webkit-scrollbar-thumb { background-color: rgba(255,255,255,.18); }
.nav a { position: relative; }
.nav a .icon { flex: none; }
.nav a .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav a:focus-visible { outline: 2px solid #2bb3a3; outline-offset: -2px; }
.nav-label { padding: 16px 10px 6px; }
.side-foot { margin-top: 0; padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 6px; background: var(--side); }
.ops-link, .plan-chip { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: #d7f5f0; text-decoration: none; }
.ops-link { background: rgba(43,179,163,.12); border: 1px solid rgba(43,179,163,.28); }
.ops-link:hover { background: rgba(43,179,163,.2); text-decoration: none; color: #fff; }
.plan-chip { color: var(--side-ink); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); font-weight: 500; }
.plan-chip:hover { color: #fff; text-decoration: none; background: rgba(255,255,255,.07); }
.plan-chip.warn { color: #ffd8a8; border-color: rgba(255,154,77,.35); background: rgba(255,154,77,.08); }
.user-menu { position: relative; }
.user-menu > summary { list-style: none; cursor: pointer; }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-chip:hover, .user-menu[open] > .user-chip { background: rgba(255,255,255,.05); }
.user-chip .icon { color: var(--side-muted); }
.user-pop { position: absolute; bottom: calc(100% + 6px); left: 0; right: 0; min-width: 220px; background: #111b2b; border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.45); padding: 6px; z-index: 50; }
.user-pop-head { padding: 8px 10px 10px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 4px; font-size: 12.5px; line-height: 1.35; }
.user-pop-head b { display: block; color: #fff; } .user-pop-head span { color: var(--side-muted); word-break: break-all; }
.user-pop a, .user-pop button { display: flex; width: 100%; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 7px; color: var(--side-ink);
  font: inherit; font-size: 13px; background: none; border: 0; cursor: pointer; text-align: left; }
.user-pop a:hover, .user-pop button:hover { background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.user-pop form { margin: 0; }
.user-pop .danger-text { color: #ff9b9b; }
.org-static { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; background: rgba(255,154,77,.08); border: 1px solid rgba(255,154,77,.3); }
.kbd { position: absolute; right: 9px; top: 7px; font: 600 11px/1 var(--mono); color: var(--muted); border: 1px solid var(--line-2); border-radius: 5px; padding: 3px 6px; background: var(--surface); pointer-events: none; }
.topbar .search input:focus + .kbd, .topbar .search input:not(:placeholder-shown) + .kbd { display: none; }
.support-bar, .announce { display: flex; align-items: center; gap: 10px; padding: 9px 28px; font-size: 13px; border-bottom: 1px solid var(--line); }
.support-bar { background: color-mix(in srgb, var(--high) 12%, var(--surface)); color: var(--ink); }
.support-bar form { margin: 0; }
.announce.info { background: color-mix(in srgb, var(--brand) 10%, var(--surface)); }
.announce.warning { background: color-mix(in srgb, var(--med) 16%, var(--surface)); }
/* Short screens (laptops at 768 px): tighter rhythm so most sections fit without scrolling */
@media (max-height: 860px) and (min-width: 961px) {
  .sidebar .logo { padding: 14px 16px 10px; }
  .org-switch { margin-bottom: 6px; }
  .org-switch summary, .org-static { padding: 7px 9px; }
  .nav a { padding: 6px 10px; }
  .nav-label { padding: 11px 10px 4px; }
  .side-foot { padding-top: 8px; padding-bottom: 8px; gap: 4px; }
}
/* Collapsed rail (desktop only) */
@media (min-width: 961px) {
  .side-collapsed .shell { grid-template-columns: 68px 1fr; }
  .side-collapsed .sidebar .lbl, .side-collapsed .logo-text, .side-collapsed .nav .count { display: none; }
  .side-collapsed .side-head { flex-direction: column; padding: 10px 0 4px; gap: 6px; }
  .side-collapsed .side-head .logo { padding: 6px 0; justify-content: center; }
  .side-collapsed .org-switch { margin: 4px 10px 8px; }
  .side-collapsed .org-switch summary, .side-collapsed .org-static { justify-content: center; padding: 7px 0; }
  .side-collapsed .org-menu { left: 100%; top: 0; margin-left: 8px; width: 240px; }
  .side-collapsed .nav { padding: 2px 10px; }
  .side-collapsed .nav a { justify-content: center; padding: 9px 0; }
  .side-collapsed .nav-label { padding: 8px 0 4px; } .side-collapsed .nav-label::before { content: ""; display: block; height: 1px; background: rgba(255,255,255,.07); margin: 0 6px; }
  .side-collapsed .ops-link, .side-collapsed .plan-chip { justify-content: center; padding: 8px 0; }
  .side-collapsed .user-chip { justify-content: center; }
  .side-collapsed .user-pop { left: 100%; bottom: 0; margin-left: 8px; width: 240px; }
  .side-collapsed .side-toggle .icon { transform: scaleX(-1); }
  .side-collapsed .nav .count.hot::after { content: ""; }
  .side-collapsed .nav a:has(.count.hot)::after { content: ""; position: absolute; top: 7px; right: 12px; width: 7px; height: 7px; border-radius: 50%; background: #ff6b6b; }
}
@media (max-width: 960px) { .side-toggle { display: none; } .kbd { display: none; } }

/* Operations console */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.row-attn td:first-child { box-shadow: inset 3px 0 0 var(--high); }
.life { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); vertical-align: middle; }
.life-active { background: var(--ok-bg); color: var(--ok); }
.life-pilot { background: var(--low-bg); color: var(--low); }
.life-renewal_due, .life-unpaid, .life-grace { background: var(--med-bg); color: var(--med); }
.life-lapsed, .life-pilot_ended, .life-suspended { background: var(--crit-bg); color: var(--crit); }
h1 .life { font-size: 13px; margin-left: 6px; }
.ops-att .ic { color: var(--muted); display: inline-flex; }
.ops-att.monitoring .ic { color: var(--crit); } .ops-att.billing .ic { color: var(--med); } .ops-att.pilot .ic { color: var(--low); }
.ops-forms { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.ops-forms label { display: flex; align-items: center; gap: 8px; }
.ops-forms select { width: auto; }
.row-menu > summary { list-style: none; display: inline-flex; } .row-menu > summary::-webkit-details-marker { display: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.ops-shell .logo small { color: #7fe0d3; }

/* ===================================================================== Landing page */
@font-face { font-family: "Sora"; src: url("../fonts/sora-latin.48a40548d60f.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
.lp h1, .lp h2.big, .lp .price .amt, .lp .lp-stat b, .lp .lp-final h2 { font-family: "Sora", var(--font); }
.lp-nav { position: sticky; top: 0; z-index: 30; max-width: none; background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--line);
  padding-left: max(40px, calc((100vw - 1200px) / 2 + 40px)); padding-right: max(40px, calc((100vw - 1200px) / 2 + 40px)); }
.lp-hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -.04em; font-weight: 700; }
.lp-hero .hero-inner { padding-top: 56px; padding-bottom: 80px; }
.lp-check { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 12px; max-width: 580px; }
.lp-check-field { flex: 1 1 240px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-sm); }
.lp-check-field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.lp-check-field .icon { color: var(--muted); flex: none; }
.lp-check-field input { border: 0; outline: 0; background: transparent; padding: 13px 0; font: inherit; font-size: 15.5px; width: 100%; color: var(--ink); box-shadow: none; }
.lp-micro { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; flex-wrap: wrap; }
.lp-micro .icon { margin-top: 2px; }
.lp-visual { position: relative; }
.mock-url { margin-left: 10px; font: 500 11.5px var(--mono); color: var(--muted); }
.lp-mock-body { padding: 16px; }
.lp-mock-list { margin: 0 -16px; }
.lp-mock-list .threat-item > .icon { color: var(--muted); flex: none; }
.lp-float { position: absolute; display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 12.5px; }
.lp-float b { display: block; font-size: 13px; }
.lp-float span { color: var(--muted); }
.lp-float-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.lp-float-ic.ok { background: var(--ok-bg); color: var(--ok); }
.lp-float-a { left: -28px; bottom: -62px; }
.lp-float-b { right: -18px; top: -20px; }
.lp-strip { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.lp-strip-inner { max-width: 1200px; margin: 0 auto; padding: 16px 40px; display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.lp-strip-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 700; }
.lp-head { max-width: 760px; margin-bottom: 34px; }
.lp-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lp-head.center .intro { margin-left: auto; margin-right: auto; }
.lp-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.band .lp-kicker { color: #5fd0c2; }
.lp h2.big { font-size: clamp(26px, 3vw, 38px); line-height: 1.12; letter-spacing: -.03em; font-weight: 700; }
.lp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lp-stat { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.lp-stat b { font-size: 30px; letter-spacing: -.03em; color: var(--crit); }
.lp-stat span { font-size: 14px; color: var(--ink-2); flex: 1; }
.lp-stat a { font-size: 12px; color: var(--muted); }
.lp-show { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 20px; }
.lp-show-tabs { display: flex; flex-direction: column; gap: 4px; }
.lp-show-tabs button { display: flex; gap: 12px; align-items: center; text-align: left; padding: 11px 12px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: #c6d2e1; cursor: pointer; font: inherit; }
.lp-show-tabs button small { display: block; color: #8796ab; font-size: 12.5px; }
.lp-show-tabs button b { color: #fff; font-weight: 600; font-size: 14.5px; }
.lp-show-tabs button:hover { background: rgba(255,255,255,.04); }
.lp-show-tabs button[aria-selected="true"] { background: rgba(43,179,163,.12); border-color: rgba(43,179,163,.35); }
.lp-show-tabs button:focus-visible { outline: 2px solid #2bb3a3; outline-offset: 2px; }
.lp-ti { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #5fd0c2; flex: none; }
.lp-pane { background: #0f1a2a; border: 1px solid #1c2a3e; border-radius: 16px; padding: 30px; color: #c6d2e1; min-height: 100%; }
.lp-pane h3 { color: #fff; font-size: 22px; letter-spacing: -.02em; margin: 0 0 10px; }
.lp-pane p { font-size: 15.5px; color: #aebdd0; max-width: 640px; }
.lp-pane code { background: rgba(255,255,255,.07); color: #e8eef6; padding: 1px 6px; border-radius: 5px; }
.lp-checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.lp-checks li { position: relative; padding-left: 28px; font-size: 14.5px; }
.lp-checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 20%, transparent); }
.lp-checks li::after { content: ""; position: absolute; left: 6px; top: 5px; width: 5px; height: 9px; border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.band .lp-checks li::before { background: rgba(95,208,194,.16); }
.band .lp-checks li::after { border-color: #5fd0c2; }
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lp-steps li { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.lp-steps li:not(:last-child)::after { content: ""; position: absolute; top: 40px; right: -17px; width: 18px; height: 2px; background: var(--line-2); }
.lp-step-n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--brand); color: var(--brand-ink); }
.lp-steps h3 { font-size: 16.5px; margin: 0 0 4px; }
.lp-steps p { margin: 0; color: var(--ink-2); font-size: 14px; }
.lp-compare { border-radius: 14px; border: 1px solid #1c2a3e; margin-bottom: 30px; }
.lp-compare .table { background: #0f1a2a; color: #c6d2e1; }
.lp-compare .table th { background: #0b1422; color: #8796ab; border-color: #1c2a3e; }
.lp-compare .table td { border-color: #1c2a3e; font-size: 14px; }
.lp-compare .lp-us { color: #fff; font-weight: 600; background: rgba(43,179,163,.08); }
.lp-compare th.lp-us { color: #5fd0c2; }
.lp-compare .lp-us .icon { color: #5fd0c2; vertical-align: -3px; }
.lp-trust h3 { color: #fff; font-size: 16px; display: flex; gap: 8px; align-items: center; }
.lp-trust h3 .icon { color: #5fd0c2; }
.lp-trust p { color: #9fb0c6; font-size: 14px; }
.lp-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.lp-chips li { display: inline-flex; gap: 8px; align-items: center; padding: 9px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font-weight: 600; font-size: 13.5px; }
.lp-chips .icon { color: var(--brand); }
.lp-prices { align-items: stretch; }
.lp-prices .price { display: flex; flex-direction: column; position: relative; }
.lp-prices .price ul { flex: 1; }
.lp-per { font-size: 14px; font-weight: 500; color: var(--muted); font-family: var(--font); }
.lp-pop { position: absolute; top: -11px; left: 26px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; padding: 3px 10px; border-radius: 99px; background: var(--brand); color: var(--brand-ink); }
.lp-request-copy { padding: 36px; border-right: 1px solid var(--line); background: var(--surface-2); }
.lp-request-form { padding: 36px; }
.lp-final { background: radial-gradient(700px 300px at 50% 0%, rgba(43,179,163,.28), transparent 70%), var(--side); color: #c6d2e1; text-align: center; }
.lp-final .section { padding: 80px 40px; }
.lp-final h2 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.03em; margin-bottom: 10px; }
.lp-final p { font-size: 17px; color: #aebdd0; margin-bottom: 26px; }
.lp-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.lp-ghost:hover { background: rgba(255,255,255,.06); color: #fff; }
.lp-footer { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; padding-top: 40px; }
.lp-foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.lp-foot-brand .logo-mark { color: var(--brand); }
.lp-foot-brand .brand-word { color: var(--ink); }
.lp-foot-brand .logo-text small { color: var(--muted); }
.lp-foot-brand > span { display: inline-flex; }
.lp-foot-links { display: flex; gap: 48px; justify-content: flex-end; }
.lp-foot-links div { display: flex; flex-direction: column; gap: 8px; }
.lp-foot-links b { color: var(--ink); font-size: 13px; }
.lp-foot-links a { color: var(--muted); }
.lp-foot-legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: 12.5px; }
@media (max-width: 1100px) {
  .lp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-steps li::after { display: none; }
}
@media (max-width: 960px) {
  .lp-nav { padding-left: 16px; padding-right: 16px; }
  .lp-nav .links a:not(.btn) { display: none; }
  .lp-show { grid-template-columns: 1fr; }
  .lp-show-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .lp-show-tabs button { flex: none; scroll-snap-align: start; }
  .lp-show-tabs button small { display: none; }
  .lp-float { display: none; }
  .lp-request-copy { border-right: 0; border-bottom: 1px solid var(--line); }
  .lp-footer { grid-template-columns: 1fr; }
  .lp-foot-links { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .lp-stats, .lp-steps { grid-template-columns: 1fr; }
  .lp-strip-inner, .lp-final .section { padding-left: 16px; padding-right: 16px; }
  .lp-request-copy, .lp-request-form { padding: 22px; }
  .lp-pane { padding: 22px; }
}
.lp-hero .lp-visual { margin-bottom: 40px; }
.lp-compare table { min-width: 680px; }
.lp-foot-brand .logo { padding: 0; color: inherit; }
.sidebar .logo-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
/* Menus (organisation switcher, account menu) must be able to spill out of the sidebar, e.g. beside the collapsed rail; only .nav scrolls. */
.sidebar { overflow: visible; z-index: 25; }
.side-collapsed .org-menu, .side-collapsed .user-pop { z-index: 60; box-shadow: 0 16px 40px rgba(0,0,0,.45); }

/* Landing hero v2: centred message, then the real product, large, in a refined frame */
.lp-hero { background: radial-gradient(1100px 520px at 50% 108%, rgba(43,179,163,.22), transparent 62%), radial-gradient(900px 420px at 50% -10%, rgba(37,99,235,.08), transparent 60%), var(--surface); }
.lp-hero-copy { max-width: 900px; margin: 0 auto; padding: 64px 24px 40px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.lp-hero-copy h1 { font-size: clamp(36px, 5.2vw, 62px); max-width: 880px; margin-top: 16px; }
.lp-hero-copy .lead { max-width: 700px; margin: 20px auto 26px; font-size: 18.5px; }
.lp-hero-copy .lp-check { justify-content: center; margin-left: auto; margin-right: auto; width: 100%; }
.lp-hero-copy .lp-micro { justify-content: center; text-align: center; }
.lp-shot-wrap { position: relative; max-width: 1180px; margin: 12px auto 0; padding: 0 24px; }
.lp-shot-wrap::before { content: ""; position: absolute; inset: 6% 8% -4%; background: radial-gradient(closest-side, rgba(43,179,163,.45), transparent); filter: blur(60px); z-index: 0; }
.lp-shot { position: relative; z-index: 1; margin: 0; border-radius: 14px 14px 0 0; overflow: hidden; background: #0a0f17;
  border: 1px solid rgba(255,255,255,.10); border-bottom: 0;
  box-shadow: 0 0 0 1px rgba(13,23,38,.06), 0 30px 80px -20px rgba(4,12,24,.55), 0 12px 30px -12px rgba(4,12,24,.35);
  -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.lp-shot img { display: block; width: 100%; height: auto; }
.lp-shot-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #0d1522; border-bottom: 1px solid rgba(255,255,255,.07); }
.lp-shot-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3546; }
.lp-shot-bar span { margin: 0 auto; transform: translateX(-26px); font: 500 12px var(--mono); color: #7c8aa0; background: rgba(255,255,255,.05); padding: 4px 14px; border-radius: 6px; }
.lp-notif { position: absolute; z-index: 2; right: -6px; top: 64px; width: 340px; display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); box-shadow: 0 24px 60px -18px rgba(4,12,24,.45); font-size: 13px; line-height: 1.4;
  animation: lp-notif-in .7s cubic-bezier(.2,.8,.2,1) .5s both; }
.lp-notif-icon { width: 38px; height: 38px; border-radius: 10px; background: #0b1320; color: #2bb3a3; display: grid; place-items: center; flex: none; }
.lp-notif-icon .brand-mark { width: 22px; height: 24px; }
.lp-notif-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-bottom: 2px; }
.lp-notif-top b { color: var(--ink-2); font-weight: 600; }
.lp-notif-title { display: block; color: var(--ink); font-weight: 650; }
.lp-notif-body { color: var(--ink-2); }
@keyframes lp-notif-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lp-notif { animation: none; } }
@media (max-width: 960px) { .lp-notif { display: none; } .lp-hero-copy { padding-top: 40px; } .lp-shot-bar span { display: none; } }
@media (max-width: 640px) { .lp-shot-wrap { padding: 0 12px; } .lp-hero-copy .lead { font-size: 16.5px; } }
.lp-hero-copy { padding-top: 48px; padding-bottom: 32px; }
.lp-hero-copy h1 { font-size: clamp(34px, 4.4vw, 54px); max-width: 860px; }
.lp-hero-copy .lead { margin: 16px auto 22px; }
@media (max-width: 640px) { .lp-hero-copy .lp-micro { display: block; } .lp-hero-copy .lp-micro .icon { vertical-align: -2px; margin-right: 4px; } .lp-check .btn { flex: 1 1 100%; justify-content: center; } }
.choice-list { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.choice-list legend { margin-bottom: 6px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, transparent); }
.choice input { margin-top: 3px; }
.choice small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
