/* Authority design system - colours taken from the app (gui/ui.cpp): near-black ground,
   white as the only accent, one grey ramp, severity colours reserved for findings. */

:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #0c0c0e;
  --surface-hi: #131316;
  --surface-3: #19191d;
  --hairline: #1f1f23;
  --hairline-2: #2c2c32;
  --text: #f5f5f7;
  --text-2: #8e8e96;
  --text-3: #5f5f68;
  --text-4: #3c3c43;

  --accent: #3b7cf6;
  --accent-2: #7aa9ff;
  --accent-bg: rgba(59, 124, 246, .14);
  --accent-br: rgba(59, 124, 246, .40);

  --critical: #f4586b;
  --critical-bg: rgba(244, 88, 107, .12);
  --critical-br: rgba(244, 88, 107, .38);
  --warning: #f5b74f;
  --warning-bg: rgba(245, 183, 79, .12);
  --warning-br: rgba(245, 183, 79, .38);
  --ok: #3ddc97;
  --ok-bg: rgba(61, 220, 151, .12);
  --ok-br: rgba(61, 220, 151, .38);
  --info: #8e8e96;

  --r: 18px;
  --r-sm: 12px;
  --r-xs: 9px;
  --sans: "Manrope", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Sora", "Manrope", -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gutter: 24px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 14px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0 0 12px; }
code, .mono { font-family: var(--mono); font-size: .9em; }
img { max-width: 100%; }
::selection { background: rgba(255, 255, 255, .18); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; border-radius: 4px; }
.hidden { display: none !important; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 460px; }
.stack > * + * { margin-top: 16px; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.center { text-align: center; }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap-row { flex-wrap: wrap; }
.spacer { flex: 1; }
.grid { display: grid; gap: 16px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; background: rgba(10, 10, 10, .82);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--hairline);
}
.topbar-in { display: flex; align-items: center; gap: 14px; height: 52px; min-height: 52px; }
.brand { font-weight: 750; letter-spacing: .2em; font-size: 13.5px; line-height: 1; display: flex; align-items: center; gap: 8px; }
.brand .dot { width: 9px; height: 9px; background: #fff; border-radius: 2px; display: inline-block; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { padding: 6px 11px; border-radius: var(--r-xs); color: var(--text-2); font-weight: 550; font-size: 13px; line-height: 1.2; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.active { color: var(--text); background: var(--surface-hi); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r-sm); border: 1px solid var(--hairline-2);
  background: var(--surface-hi); color: var(--text); font: inherit; font-weight: 600; font-size: 13.5px;
  cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, transform .04s;
}
.btn:hover { background: var(--surface-3); border-color: #3f3f3f; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: #ffffff; color: #0a0a0a; border-color: #ffffff; }
.btn.primary:hover { background: #e9e9e9; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { color: var(--text); background: var(--surface); }
.btn.danger { color: var(--critical); border-color: var(--critical-br); background: var(--critical-bg); }
.btn.danger:hover { background: rgba(240, 82, 79, .2); }
.btn.sm { padding: 7px 11px; font-size: 12.5px; border-radius: var(--r-xs); }
.btn.lg { padding: 13px 22px; font-size: 15px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r); }
.card-b { padding: 22px; }
.card-h { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--hairline); }
.card-h h3 { font-size: 15px; }

/* ---------- Forms ---------- */
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; font-weight: 550; }
.input, input[type=text], input[type=email], input[type=password], select, textarea {
  width: 100%; padding: 11px 13px; background: var(--bg); color: var(--text);
  border: 1px solid var(--hairline-2); border-radius: var(--r-sm); font: inherit; font-size: 14px;
}
.input:focus, input:focus, select:focus, textarea:focus { outline: none; border-color: #ffffff; }
input::placeholder, textarea::placeholder { color: var(--text-3); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); }
.check input { width: 16px; height: 16px; margin-top: 1px; accent-color: #fff; flex: none; }
.hint { font-size: 12px; color: var(--text-3); margin-top: 6px; }

/* ---------- Auth screens ---------- */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px; gap: 22px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .card-b { padding: 28px; }
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-head h1 { font-size: 21px; margin-bottom: 6px; }
.auth-foot { text-align: center; font-size: 13px; color: var(--text-2); margin-top: 18px; }
.auth-foot a { color: var(--text); font-weight: 600; }

/* ---------- Alerts ---------- */
.alert { padding: 11px 14px; border-radius: var(--r-sm); font-size: 13px; margin-bottom: 16px; border: 1px solid var(--hairline-2); background: var(--surface-hi); }
.alert.error { color: var(--critical); border-color: var(--critical-br); background: var(--critical-bg); }
.alert.ok { color: var(--ok); border-color: var(--ok-br); background: var(--ok-bg); }
.alert.warn { color: var(--warning); border-color: var(--warning-br); background: var(--warning-bg); }

/* ---------- Pills / badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 650; border: 1px solid var(--hairline-2); color: var(--text-2); }
.pill.fail { color: var(--critical); border-color: var(--critical-br); background: var(--critical-bg); }
.pill.review { color: var(--warning); border-color: var(--warning-br); background: var(--warning-bg); }
.pill.pass { color: var(--ok); border-color: var(--ok-br); background: var(--ok-bg); }
.pill.incomplete { color: var(--text-2); }

/* ---------- Stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 16px; }
.stat .n { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.stat .l { font-size: 12px; color: var(--text-2); margin-top: 2px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--hairline); }
table.data td { padding: 12px; border-bottom: 1px solid var(--hairline); }
table.data tr:hover td { background: var(--surface-hi); }

/* ---------- Backup codes ---------- */
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0; }
.codes .c { font-family: var(--mono); font-size: 15px; letter-spacing: .06em; padding: 10px; text-align: center; background: var(--bg); border: 1px solid var(--hairline-2); border-radius: var(--r-xs); }

/* ---------- SaaS app shell (customer panel) ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto;
  background: var(--surface); border-right: 1px solid var(--hairline);
  display: flex; flex-direction: column; padding: 18px 14px;
}
.side-brand { display: flex; align-items: center; gap: 9px; font-weight: 750; letter-spacing: .18em; font-size: 14px; padding: 6px 10px 18px; }
.side-brand .dot { width: 9px; height: 9px; background: #fff; border-radius: 2px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-group { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-4); font-weight: 600; padding: 16px 10px 6px; }
.side-nav a { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: var(--r-sm); color: var(--text-2); font-size: 14px; font-weight: 550; }
.side-nav a .ic { width: 16px; text-align: center; color: var(--text-3); font-size: 13px; }
.side-nav a:hover { color: var(--text); background: var(--surface-hi); }
.side-nav a.active { color: var(--text); background: var(--surface-hi); }
.side-nav a.active .ic { color: var(--text); }
.side-card { margin: 18px 6px 14px; margin-top: auto; padding: 14px; border: 1px solid var(--hairline); border-radius: var(--r); background: linear-gradient(180deg, var(--surface-hi), var(--surface)); }
.side-card-k { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.side-card-v { font-size: 17px; font-weight: 700; margin-top: 2px; }
.side-card-sub { font-size: 12px; color: var(--text-2); margin-top: 2px; line-height: 1.4; }
.side-foot { display: flex; align-items: center; gap: 8px; padding: 12px 6px 4px; border-top: 1px solid var(--hairline); margin: 0 6px; }
.side-user { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: inherit; }
.side-avatar { width: 32px; height: 32px; border-radius: 8px; background: var(--surface-3); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; }
.side-user-info { display: flex; flex-direction: column; min-width: 0; }
.side-user-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user-sub { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shell-main { min-width: 0; padding: 0 16px; }
.shell-main .wrap { max-width: 1180px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: 26px; letter-spacing: -0.02em; }
.page-head .sub { color: var(--text-2); font-size: 14px; margin-top: 4px; }

/* Stat cards with trend (dashboard) */
.kpi-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r); padding: 18px; }
.kpi-card .top { display: flex; align-items: center; gap: 9px; color: var(--text-2); font-size: 13px; margin-bottom: 14px; }
.kpi-card .top .ico { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-hi); display: flex; align-items: center; justify-content: center; }
.kpi-card .big { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.kpi-card .delta { font-size: 12px; font-weight: 600; }
.kpi-card .delta.up { color: var(--ok); } .kpi-card .delta.down { color: var(--critical); }

/* Donut */
.donut-wrap { display: flex; align-items: center; justify-content: center; padding: 8px 0 14px; }
.donut-legend { display: flex; flex-direction: column; gap: 10px; }
.donut-legend .row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.donut-legend .dot2 { width: 9px; height: 9px; border-radius: 50%; }
.donut-legend .val { margin-left: auto; font-weight: 700; }
.donut-legend .pct { color: var(--text-3); width: 38px; text-align: right; }

.dash-grid { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } .kpi-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px; }
  .side-nav { flex-direction: row; flex-wrap: wrap; }
  .side-group, .side-card, .side-foot { display: none; }
  .shell-main { padding: 20px 18px 40px; }
}
@media (max-width: 560px) { .kpi-cards { grid-template-columns: 1fr; } }

/* ---------- Admin ---------- */
.admin { display: grid; grid-template-columns: 200px 1fr; gap: 0; min-height: calc(100vh - 60px); }
.admin-nav { border-right: 1px solid var(--hairline); padding: 20px 12px; }
.admin-nav a { display: block; padding: 8px 12px; border-radius: var(--r-xs); color: var(--text-2); font-size: 13.5px; font-weight: 550; margin-bottom: 2px; }
.admin-nav a:hover { color: var(--text); background: var(--surface); }
.admin-nav a.active { color: var(--text); background: var(--surface-hi); }
.admin-nav .badge { float: right; font-size: 11px; background: var(--critical); color: #fff; border-radius: 999px; padding: 0 7px; line-height: 18px; }
.admin-main { padding: 24px 26px 40px; min-width: 0; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.chart { width: 100%; height: 160px; }
.chart .bar { fill: var(--text-4); }
.chart .bar.hi { fill: #fff; }
.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.def { display: grid; grid-template-columns: 130px 1fr; gap: 6px 14px; font-size: 13.5px; }
.def dt { color: var(--text-3); } .def dd { margin: 0; }
@media (max-width: 760px) { .admin { grid-template-columns: 1fr; } .admin-nav { display: flex; gap: 4px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--hairline); } .admin-nav a { white-space: nowrap; margin: 0; } }

/* ---------- Report page ---------- */
.rep-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 22px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r); }
.rep-verdict { display: inline-flex; align-items: center; justify-content: center; min-width: 108px; padding: 12px 16px; border-radius: var(--r-sm); font-weight: 700; font-size: 15px; letter-spacing: .04em; border: 1px solid var(--hairline-2); }
.rep-verdict.fail { color: var(--critical); background: var(--critical-bg); border-color: var(--critical-br); }
.rep-verdict.review { color: var(--warning); background: var(--warning-bg); border-color: var(--warning-br); }
.rep-verdict.pass { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-br); }
.rep-verdict.incomplete { color: var(--text-2); }
.rep-meta { display: flex; gap: 22px; flex-wrap: wrap; flex: 1; min-width: 200px; }
.rep-meta .m { min-width: 0; }
.rep-meta .m .l { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.rep-meta .m .v { font-size: 14px; font-weight: 600; margin-top: 2px; }
.rep-meta .m .v.mono { font-family: var(--mono); font-size: 12.5px; font-weight: 500; }
.rep-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.kpi-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 18px 0; }
.kpi { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 16px; }
.kpi .n { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.kpi .l { font-size: 11.5px; color: var(--text-2); margin-top: 2px; }
.kpi.crit .n { color: var(--critical); } .kpi.warn .n { color: var(--warning); } .kpi.ok .n { color: var(--ok); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--hairline); margin: 20px 0 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; font-size: 13.5px; font-weight: 600; color: var(--text-2); border-bottom: 2px solid transparent; white-space: nowrap; cursor: pointer; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--text); border-bottom-color: #fff; }
.tabs a .c { font-size: 11px; color: var(--text-3); margin-left: 5px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.finding { border-bottom: 1px solid var(--hairline); }
.finding-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; }
.finding-row:hover { background: var(--surface-hi); }
.finding-row .sev { width: 8px; height: 8px; border-radius: 2px; flex: none; background: var(--info); }
.finding-row .sev.critical { background: var(--critical); } .finding-row .sev.warning { background: var(--warning); }
.finding-row .msg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.finding-row .cat { font-size: 11px; color: var(--text-3); font-family: var(--mono); }
.finding-row .chev { flex: none; color: var(--text-3); font-size: 17px; line-height: 1; transition: transform .15s ease; }
.finding-row.open .chev { transform: rotate(90deg); }
.finding-row.expandable:hover .chev { color: var(--text); }
.finding-detail { padding: 2px 16px 14px 36px; font-size: 12.5px; color: var(--text-2); }
.finding-detail .d-text { white-space: pre-wrap; word-break: break-word; line-height: 1.5; color: var(--text-2); }
.finding-detail .d-why { margin-top: 6px; line-height: 1.5; color: var(--text-2); }
.finding-detail .d-k2 { display: block; margin-bottom: 2px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.finding-detail .d-fields { display: grid; gap: 1px; margin: 10px 0 2px; border: 1px solid var(--hairline); border-radius: var(--r-sm); overflow: hidden; }
.finding-detail .d-field { display: grid; grid-template-columns: 92px 1fr; background: var(--surface-hi); }
.finding-detail .d-k { padding: 7px 10px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); background: var(--surface); }
.finding-detail .d-v { padding: 7px 10px; font-size: 12px; color: var(--text); word-break: break-all; }
.finding-detail .d-raw { margin-top: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-sm); font-family: var(--mono); font-size: 11.5px; color: var(--text-2); white-space: pre-wrap; word-break: break-word; }
.tag { display: inline-block; font-size: 11px; color: var(--text-2); border: 1px solid var(--hairline-2); border-radius: 5px; padding: 1px 6px; }
.pathrow { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--hairline); font-family: var(--mono); font-size: 12.5px; }
.raw { font-family: var(--mono); font-size: 12px; white-space: pre; overflow: auto; max-height: 620px; padding: 16px; color: var(--text-2); }
.callout { padding: 12px 14px; border-radius: var(--r-sm); font-size: 13px; border: 1px solid var(--hairline-2); }
.callout.critical { color: var(--critical); border-color: var(--critical-br); background: var(--critical-bg); }

@media (max-width: 820px) {
  .kpi-row { grid-template-columns: repeat(3, 1fr); }
  .two-col { grid-template-columns: 1fr; }
}

/* ---------- Misc ---------- */
.qr { background: #fff; padding: 10px; border-radius: var(--r-sm); width: max-content; }
.divider { height: 1px; background: var(--hairline); margin: 18px 0; border: 0; }
.kbd { font-family: var(--mono); font-size: 28px; font-weight: 700; letter-spacing: .28em; }
footer.site { border-top: 1px solid var(--hairline); margin-top: 60px; padding: 30px 0; color: var(--text-3); font-size: 13px; }
footer.site a { color: var(--text-2); }
footer.site a:hover { color: var(--text); }
.sf-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.sf-brand p { margin: 10px 0 14px; max-width: 260px; font-size: 13px; color: var(--text-3); }
.sf-brand .brand { display: inline-flex; align-items: center; gap: 8px; }
.sf-discord { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--hairline-2); border-radius: 999px; font-weight: 600; }
.sf-discord:hover { border-color: var(--accent, #3b82f6); }
.sf-col { display: flex; flex-direction: column; gap: 9px; }
.sf-col b { color: var(--text); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.sf-base { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--hairline); font-size: 12px; }
@media (max-width: 760px) { .sf-grid { grid-template-columns: 1fr 1fr; } .sf-brand { grid-column: 1 / -1; } }

/* ---------- Landing ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--hairline); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(680px 340px at 50% -60px, rgba(255,255,255,.07), transparent 70%); }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 72px 0 80px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); border: 1px solid var(--hairline-2); border-radius: 999px; padding: 5px 12px; margin-bottom: 20px; }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
h1.display { font-size: 52px; line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; }
.lede { font-size: 18px; color: var(--text-2); max-width: 480px; margin: 18px 0 28px; line-height: 1.55; }
.section { padding: 68px 0; border-bottom: 1px solid var(--hairline); }
.section-head { max-width: 620px; margin-bottom: 36px; }
.section-head .k { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.section-head h2 { font-size: 32px; letter-spacing: -0.02em; margin: 10px 0 8px; }
.section-head p { color: var(--text-2); font-size: 16px; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r); padding: 22px; position: relative; }
.step .num { font-family: var(--mono); font-size: 12px; color: var(--text-3); margin-bottom: 30px; }
.step h4 { font-size: 15px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--text-2); margin: 0; }

.checks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.check-item { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 18px; }
.check-item h4 { font-size: 14px; margin-bottom: 5px; display: flex; align-items: center; gap: 8px; }
.check-item h4::before { content: ""; width: 6px; height: 6px; background: var(--text); border-radius: 2px; flex: none; }
.check-item p { font-size: 12.5px; color: var(--text-2); margin: 0; line-height: 1.5; }

.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.trust .t { padding: 20px; border: 1px solid var(--hairline); border-radius: var(--r-sm); }
.trust .t b { display: block; margin-bottom: 5px; font-size: 15px; }
.trust .t span { color: var(--text-2); font-size: 13px; }

/* App window mockup (echoes gui/ui.cpp) */
.appwin { width: 320px; max-width: 100%; margin: 0 auto; background: #0a0a0a; border: 1px solid var(--hairline-2); border-radius: 16px; box-shadow: 0 40px 90px rgba(0,0,0,.7); overflow: hidden; }
.appwin .bar { height: 34px; display: flex; align-items: center; justify-content: flex-end; padding: 0 12px; border-bottom: 1px solid var(--hairline); }
.appwin .bar i { width: 11px; height: 11px; color: var(--text-3); font-style: normal; }
.appwin .body { padding: 40px 34px 34px; text-align: center; }
.appwin .logo { letter-spacing: .28em; font-weight: 700; font-size: 15px; }
.appwin .tag { color: var(--text-3); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; margin-top: 6px; }
.appwin .pins { display: flex; gap: 8px; justify-content: center; margin: 32px 0 22px; }
.appwin .pin { width: 34px; height: 44px; border: 1px solid var(--hairline-2); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 20px; }
.appwin .pin.on { border-color: #fff; }
.appwin .go { background: #fff; color: #0a0a0a; border-radius: 10px; padding: 12px; font-weight: 700; font-size: 13px; letter-spacing: .05em; }
.appwin .hint2 { color: var(--text-3); font-size: 11px; margin-top: 14px; }

/* Pricing */
.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--hairline-2); box-shadow: 0 0 0 1px var(--hairline-2); }
.plan .name { font-size: 14px; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
.plan .price { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin: 10px 0 2px; }
.plan .per { font-size: 12.5px; color: var(--text-3); margin-bottom: 16px; }
.plan .save { display: inline-block; font-size: 11.5px; color: var(--ok); border: 1px solid var(--ok-br); background: var(--ok-bg); border-radius: 999px; padding: 2px 8px; margin-bottom: 14px; width: max-content; }
.plan .btn { margin-top: auto; }

.enterprise { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r); padding: 30px; }
.slider-row { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
input[type=range] { width: 100%; accent-color: #fff; height: 4px; }
.seat-count { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.toggle { display: inline-flex; border: 1px solid var(--hairline-2); border-radius: 999px; padding: 3px; gap: 3px; }
.toggle button { border: 0; background: transparent; color: var(--text-2); padding: 7px 16px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.toggle button.on { background: #fff; color: #0a0a0a; }
.quote { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.faq-item { border-bottom: 1px solid var(--hairline); padding: 18px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--text-3); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--text-2); margin: 12px 0 0; font-size: 14px; }

/* Legal pages */
.legal { max-width: 760px; }
.legal h2 { font-size: 20px; margin: 32px 0 10px; }
.legal h3 { font-size: 16px; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--text-2); font-size: 14.5px; line-height: 1.65; }
.legal ul { padding-left: 20px; }
.legal .updated { color: var(--text-3); font-size: 13px; }

/* =====================================================================
   Landing layer (scoped to .lp / .pillnav): monochrome, motion kept subtle
   ===================================================================== */
.dim { color: var(--text-3); }

.lp-announce { background: #181818; border-bottom: 1px solid var(--hairline); text-align: center; padding: 8px 16px; font-size: 13px; color: var(--text-2); }

/* Floating pill navigation */
.pillnav { position: sticky; top: 10px; z-index: 50; display: flex; justify-content: center; padding: 0 16px; margin-bottom: -56px; pointer-events: none; }
.pillnav-in {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; width: 100%; max-width: 760px;
  min-height: 44px; padding: 4px 6px 4px 14px; border-radius: 999px; border: 1px solid var(--hairline-2);
  background: rgba(14,14,14,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.pillnav .brand { font-size: 13px; gap: 7px; }
.pillnav .brand-logo { width: 20px; height: 20px; border-radius: 5px; }
.pn-links { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; flex-wrap: nowrap; min-width: 0; }
.pn-links a { padding: 5px 9px; border-radius: 999px; color: var(--text-2); font-size: 12.5px; font-weight: 550; line-height: 1.2; white-space: nowrap; }
.pn-links a:hover { color: var(--text); background: var(--surface-hi); }
.pn-actions { display: flex; align-items: center; gap: 4px; }
.pn-signin { padding: 5px 10px; color: var(--text-2); font-size: 13px; font-weight: 550; border-radius: 999px; line-height: 1.2; }
.pn-signin:hover { color: var(--text); }
.pillnav .btn { padding: 6px 12px; font-size: 12.5px; }
.pillnav .btn.primary { border-radius: 999px; }

/* Hero */
.lp .hero { border-bottom: 0; }
.pillnav + .lp .hero { padding-top: 92px; }
.lp .hero::before {
  background:
    radial-gradient(900px 420px at 50% -80px, rgba(255,255,255,.10), transparent 70%);
}
.lp .hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(640px 360px at 50% 18%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(640px 360px at 50% 18%, #000, transparent 75%);
}
.lp .hero > .wrap { position: relative; z-index: 1; display: block; padding-bottom: 70px; }
.hero-copy { text-align: center; max-width: 780px; margin: 0 auto; }
.lp .eyebrow { background: rgba(255,255,255,.04); color: var(--text-2); border-color: var(--hairline-2); }
.lp h1.display { font-size: 64px; line-height: 1.02; letter-spacing: -0.04em; }
.lp .lede { margin: 22px auto 30px; max-width: 580px; font-size: 18px; }
.hero-cta { justify-content: center; gap: 10px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; color: var(--text-3); font-size: 13px; }
.hero-note b { color: var(--text); }
.lp .btn.primary { box-shadow: 0 0 0 1px rgba(255,255,255,.4), 0 8px 30px rgba(255,255,255,.12); }

/* Example report card */
.rpt { max-width: 760px; margin: 64px auto 0; background: #0d0d0d; border: 1px solid var(--hairline-2); border-radius: 18px; box-shadow: 0 50px 110px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.03); overflow: hidden; text-align: left; }
.rpt-bar { display: flex; align-items: center; gap: 14px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--hairline); background: #101010; }
.rpt-dots { display: flex; gap: 6px; }
.rpt-dots i { width: 9px; height: 9px; border-radius: 50%; background: #2a2a2a; display: block; }
.rpt-url { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }
.rpt-body { padding: 26px; }
.rpt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.rpt-k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.rpt-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; }
.rpt-sub { color: var(--text-3); font-size: 12.5px; margin-top: 2px; }
.verdict { font-weight: 800; letter-spacing: .1em; font-size: 15px; padding: 8px 18px; border-radius: 10px; border: 1px solid; flex: none; }
.verdict.fail { color: var(--critical); border-color: var(--critical-br); background: var(--critical-bg); }
.rpt-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 22px 0; }
.rpt-stats > div { background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px; padding: 14px 16px; }
.rpt-stats b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.rpt-stats span { font-size: 12px; color: var(--text-3); }
.c-crit { color: var(--critical); } .c-warn { color: var(--warning); }
.rpt-list { border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; }
.rpt-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--hairline); font-size: 13.5px; background: var(--surface); }
.rpt-row:last-child { border-bottom: 0; }
.rpt-msg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rpt-row .chev { color: var(--text-3); font-size: 18px; line-height: 1; }

.sev { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid; flex: none; }
.sev.crit { color: var(--critical); border-color: var(--critical-br); background: var(--critical-bg); }
.sev.warn { color: var(--warning); border-color: var(--warning-br); background: var(--warning-bg); }
.sev.info { color: var(--text-2); border-color: var(--hairline-2); background: var(--surface-hi); }

/* Scrolling strip of check names */
.strip { overflow: hidden; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.strip-track { display: flex; gap: 44px; width: max-content; animation: stripMove 55s linear infinite; }
.strip-track span { color: var(--text-3); font-size: 13px; font-weight: 550; letter-spacing: .02em; white-space: nowrap; display: inline-flex; align-items: center; gap: 44px; }
.strip-track span::after { content: ""; width: 4px; height: 4px; background: var(--text-4); border-radius: 50%; }
@keyframes stripMove { to { transform: translateX(-50%); } }

/* Process: large numerals, hairline rows */
.lp .section-head .k { color: var(--text-3); }
.process { border-top: 1px solid var(--hairline); }
.proc { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--hairline); transition: background .2s ease; }
.proc .pn { font-family: var(--mono); font-size: 44px; font-weight: 600; letter-spacing: -0.04em; color: var(--text-4); transition: color .25s ease; }
.proc:hover .pn { color: var(--text); }
.proc h4 { font-size: 21px; letter-spacing: -0.02em; margin-bottom: 6px; }
.proc p { color: var(--text-2); font-size: 15px; max-width: 560px; margin: 0; }

/* Checks, severity, trust, plans: monochrome hover */
.lp .checks-grid { grid-template-columns: repeat(4, 1fr); }
.lp .check-item { transition: transform .22s ease, border-color .22s ease, background .22s ease; }
.lp .check-item:hover { transform: translateY(-3px); border-color: var(--hairline-2); background: var(--surface-hi); }
.sev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sev-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r); padding: 24px; transition: transform .22s ease, border-color .22s ease; }
.sev-card:hover { transform: translateY(-3px); border-color: var(--hairline-2); }
.sev-card h4 { font-size: 17px; margin: 16px 0 8px; letter-spacing: -0.015em; }
.sev-card p { color: var(--text-2); font-size: 13.5px; margin: 0; }
.lp .trust .t { transition: transform .22s ease, border-color .22s ease; }
.lp .trust .t:hover { transform: translateY(-3px); border-color: var(--hairline-2); }
.lp .plan { transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.lp .plan:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(0,0,0,.5); }
.lp .plan.featured { border-color: #fff; box-shadow: 0 0 0 1px #fff, 0 18px 50px rgba(255,255,255,.08); }

/* Closing call to action */
.cta-band { padding: 70px 0 20px; }
.cta-card { text-align: center; padding: 64px 24px; border: 1px solid var(--hairline-2); border-radius: 22px; position: relative; overflow: hidden; background: radial-gradient(600px 240px at 50% 0%, rgba(255,255,255,.08), transparent 70%), var(--surface); }
.cta-card h2 { font-size: 38px; letter-spacing: -0.03em; line-height: 1.1; }

/* Player download page reuses .lp: keep its panel simple */
.lp .appwin { animation: none; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .06s; } .reveal.d2 { transition-delay: .12s; }
.reveal.d3 { transition-delay: .18s; } .reveal.d4 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .strip-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; gap: 36px; }
  h1.display { font-size: 40px; }
  .lp h1.display { font-size: 46px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .lp .checks-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .sev-grid { grid-template-columns: 1fr; }
  .pn-links { display: none; }
  .pillnav-in { justify-content: space-between; }
}
@media (max-width: 640px) {
  .nav .hide-sm { display: none; }
  .codes { grid-template-columns: 1fr; }
  h1.display { font-size: 34px; }
  .lp h1.display { font-size: 36px; }
  .lp .checks-grid, .plan-grid, .steps { grid-template-columns: 1fr; }
  .slider-row { grid-template-columns: 1fr; gap: 16px; }
  .rpt-stats { grid-template-columns: repeat(2, 1fr); }
  .rpt-body { padding: 18px; }
  .proc { grid-template-columns: 56px 1fr; gap: 12px; }
  .proc .pn { font-size: 28px; }
  .cta-card h2 { font-size: 28px; }
  .pn-signin { display: none; }
}

/* =====================================================================
   Panel layer: shared shell for the customer panel and admin
   ===================================================================== */
.shell-main { display: flex; flex-direction: column; min-height: 100vh; padding: 0; }
.shell-content { flex: 1; min-width: 0; padding: 0 16px; }
.admin-page { padding: 28px 24px 40px; }
.side-tag { margin-left: 4px; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); border: 1px solid var(--hairline-2); border-radius: 5px; padding: 1px 6px; font-weight: 650; }
.side-nav a .nbadge { margin-left: auto; font-size: 11px; font-weight: 700; background: var(--critical); color: #fff; border-radius: 999px; padding: 0 7px; line-height: 18px; }
.side-card { margin-top: auto; margin-bottom: 10px; }
.side-foot { border-top: 1px solid var(--hairline); padding: 12px 6px 10px; }
.side-signout { margin: 0 6px 2px; }
.side-signout .btn { color: var(--text-2); font-size: 13px; }
.side-signout .btn:hover { color: var(--critical); border-color: var(--critical-br); background: var(--critical-bg); }
.side-signout .ic { font-size: 14px; }

.app-announce { background: var(--surface-hi); border-bottom: 1px solid var(--hairline); text-align: center; padding: 8px 16px; font-size: 13px; color: var(--text-2); }
.app-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 40px; padding: 20px 28px; border-top: 1px solid var(--hairline); font-size: 12.5px; color: var(--text-3); }
.af-l { display: flex; align-items: center; gap: 12px; }
.af-brand { font-weight: 750; letter-spacing: .18em; font-size: 11.5px; color: var(--text-2); }
.af-links { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.af-links a { color: var(--text-2); }
.af-links a:hover { color: var(--text); }

/* Status banner, shown on every page when an admin sets one */
.status-bar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 16px; font-size: 13px; font-weight: 550; border-bottom: 1px solid var(--hairline-2); background: var(--surface-hi); color: var(--text-2); position: relative; z-index: 60; }
.status-bar .sb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-2); flex: none; }
.status-bar.degraded { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-br); }
.status-bar.degraded .sb-dot { background: var(--warning); }
.status-bar.outage { background: var(--critical-bg); color: var(--critical); border-color: var(--critical-br); }
.status-bar.outage .sb-dot { background: var(--critical); }

/* Page heading used on every logged-in page */
.ph { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 0 0 22px; }
.ph h1 { font-size: 26px; letter-spacing: -0.02em; }
.ph .sub { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.ph-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Status / severity badges */
.badge2 { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 650; border: 1px solid var(--hairline-2); color: var(--text-2); background: var(--surface-hi); white-space: nowrap; }
.badge2::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge2.crit { color: var(--critical); border-color: var(--critical-br); background: var(--critical-bg); }
.badge2.warn { color: var(--warning); border-color: var(--warning-br); background: var(--warning-bg); }
.badge2.ok { color: var(--ok); border-color: var(--ok-br); background: var(--ok-bg); }
.badge2.conf { color: #d8b4fe; border-color: rgba(192, 132, 252, .45); background: rgba(192, 132, 252, .12); }
.badge2.blue { color: #7cb7ff; border-color: rgba(96, 165, 250, .45); background: rgba(96, 165, 250, .12); }
.badge2.mute { color: var(--text-3); }
.badge2.zero { color: var(--text-3); background: transparent; border-color: var(--hairline); }
.badge2.zero::before { opacity: .4; }

/* Tables with row lines */
table.data.lined th { background: var(--surface-hi); }
table.data.lined td { border-bottom: 1px solid var(--hairline); }
table.data.lined tr:last-child td { border-bottom: 0; }
table.data tr[data-href] { cursor: pointer; }

/* Pill toggle group and filter chips */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--hairline-2); background: transparent; color: var(--text-2); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
.chip:hover { color: var(--text); background: var(--surface-hi); }
.chip.on { background: #fff; color: #0a0a0a; border-color: #fff; }
.chip .n { font-size: 11px; opacity: .65; font-weight: 700; }
.chip.crit.on { background: var(--critical); border-color: var(--critical); color: #fff; }
.chip.warn.on { background: var(--warning); border-color: var(--warning); color: #1a1100; }
.chip.conf.on { background: #c084fc; border-color: #c084fc; color: #14061f; }

.empty { text-align: center; padding: 48px 20px; color: var(--text-2); }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }

@media (max-width: 920px) {
  .side-signout { margin: 0; }
  .shell-content { padding: 0 8px; }
  .app-foot { padding: 18px 16px; }
}
/* Support: tiles, conversation, forms */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r); padding: 16px 18px; }
.tile .tn { font-size: 28px; font-weight: 650; letter-spacing: -.02em; }
.tile .tl { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.tile.hot { border-color: var(--critical-br); background: var(--critical-bg); }
.tile.hot .tn { color: var(--critical); }
.field-label { font-size: 12.5px; color: var(--text-2); font-weight: 550; margin-bottom: 8px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.cat-opt { display: block; cursor: pointer; }
.cat-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cat-opt span { display: block; border: 1px solid var(--hairline-2); border-radius: var(--r-sm); padding: 11px 13px; background: var(--surface); transition: border-color .12s, background .12s; }
.cat-opt span b { display: block; font-size: 13.5px; }
.cat-opt span small { color: var(--text-3); font-size: 12px; }
.cat-opt input:checked + span { border-color: #fff; background: var(--surface-hi); }
.cat-opt input:focus-visible + span { outline: 2px solid var(--text-2); outline-offset: 2px; }
.msg-sys { display: flex; justify-content: center; gap: 10px; font-size: 12.5px; color: var(--text-3); padding: 2px 0; }
.msg-sys time { font-size: 12px; }
.ticket-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }

/* Tickets v2: lists, header, conversation, composer */
.tk-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--hairline); margin: 18px 0 16px; overflow-x: auto; }
.tk-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--text-2); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.tk-tab:hover { color: var(--text); }
.tk-tab.on { color: var(--text); border-bottom-color: #fff; }
.tk-tab .n { font-size: 11.5px; font-weight: 650; padding: 1px 8px; border-radius: 999px; background: var(--surface-hi); color: var(--text-2); }
.tk-tab .n.hot { background: var(--critical-bg); color: var(--critical); }
.tk-callout { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-top: 4px; border: 1px solid var(--critical-br); background: var(--critical-bg); border-radius: var(--r); color: var(--text); }
.tk-callout b { display: block; font-size: 14px; }
.tk-callout small { display: block; color: var(--text-2); font-size: 12.5px; margin-top: 2px; }
.tk-callout-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--critical); box-shadow: 0 0 0 4px var(--critical-bg); flex: none; }
.tk-callout-go { font-size: 13px; font-weight: 600; color: var(--critical); white-space: nowrap; }
.tk-statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 4px; }
.tk-stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border: 1px solid var(--hairline); border-radius: var(--r); background: var(--surface); color: var(--text); transition: border-color .12s, background .12s; }
.tk-stat:hover { border-color: var(--hairline-2); background: var(--surface-hi); }
.tk-stat b { font-size: 24px; font-weight: 650; letter-spacing: -.02em; }
.tk-stat span { font-size: 12.5px; color: var(--text-2); }
.tk-stat.hot { border-color: var(--warning-br); }
.tk-stat.hot b { color: var(--warning); }
.tk-search { display: flex; gap: 8px; }
.tk-search .input { width: 260px; }
.tk-list { display: flex; flex-direction: column; border: 1px solid var(--hairline); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.tk-row { display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 15px 20px 15px 0; border-bottom: 1px solid var(--hairline); color: inherit; transition: background .12s; }
.tk-row:last-child { border-bottom: 0; }
.tk-row:hover { background: var(--surface-hi); }
.tk-rail { align-self: stretch; background: var(--hairline-2); border-radius: 0 3px 3px 0; }
.tk-rail.rail-warn { background: var(--warning); }
.tk-rail.rail-crit { background: var(--critical); }
.tk-rail.rail-ok { background: var(--ok); }
.tk-rail.rail-blue { background: #60a5fa; }
.tk-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tk-title { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 650; color: var(--text); }
.tk-preview { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-preview b { color: var(--text-3); font-weight: 600; }
.tk-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--text-3); }
.tk-meta a { color: var(--text); }
.tk-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); opacity: .7; }
.tk-side { display: flex; align-items: center; gap: 12px; }
.tk-assignee { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 650; background: var(--surface-3); border: 1px solid var(--hairline-2); color: var(--text); }
.tk-assignee.none { background: transparent; border-style: dashed; color: var(--text-3); }
.tk-back { display: inline-block; font-size: 13px; color: var(--text-2); margin-bottom: 14px; }
.tk-back:hover { color: var(--text); }
.tk-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--hairline); }
.tk-head-main { flex: 1; min-width: 240px; }
.tk-head h1 { margin: 0 0 8px; font-size: 24px; }
.badge2.big { font-size: 12.5px; padding: 5px 13px; }
.tk-col { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.tk-aside { position: sticky; top: 20px; }
.tk-person { display: flex; align-items: center; gap: 12px; }
.tk-person b { display: block; font-size: 13.5px; overflow-wrap: anywhere; }
.tk-person a { font-size: 12.5px; }
/* Ticket chat (Teams-style) */
.chat { display: flex; flex-direction: column; height: calc(100vh - 250px); min-height: 540px; max-height: 860px; border: 1px solid var(--hairline); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.chat-bar { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--hairline); background: var(--surface-hi); flex: none; }
.chat-bar-who b { display: block; font-size: 14px; overflow-wrap: anywhere; }
.chat-bar-who small { display: block; font-size: 12px; color: var(--text-3); }
.chat-bar-who small a { color: var(--text-2); text-decoration: underline; }
.chat-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 22px 10px; display: flex; flex-direction: column; gap: 3px; scroll-behavior: smooth; }
.chat-day { display: flex; align-items: center; gap: 14px; margin: 14px 0 10px; font-size: 11.5px; font-weight: 600; color: var(--text-3); letter-spacing: .02em; }
.chat-day::before, .chat-day::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
.chat-sys { display: flex; justify-content: center; gap: 8px; margin: 10px 0; font-size: 12px; color: var(--text-3); }
.cm { display: flex; align-items: flex-end; gap: 10px; max-width: 78%; margin-top: 10px; }
.cm.grouped { margin-top: 0; }
.cm.mine { margin-left: auto; justify-content: flex-end; }
.cm-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--surface-3); border: 1px solid var(--hairline-2); color: var(--text); }
.cm.grouped .cm-av { visibility: hidden; height: 0; border: 0; }
.cm-av.staff { background: #fff; color: #0a0a0a; border-color: #fff; }
.cm-col { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cm.mine .cm-col { align-items: flex-end; }
.cm-head { display: flex; align-items: baseline; gap: 8px; padding: 0 4px; font-size: 12px; }
.cm-head b { font-size: 12.5px; color: var(--text); }
.cm-head time, .chat-sys time { font-size: 11.5px; color: var(--text-3); }
.cm-bubble { padding: 9px 14px; border: 1px solid var(--hairline); border-radius: 4px 14px 14px 14px; background: var(--surface-3); font-size: 14px; line-height: 1.5; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.cm.mine .cm-bubble { border-radius: 14px 4px 14px 14px; background: rgba(96, 165, 250, .14); border-color: rgba(96, 165, 250, .32); }
.cm.grouped .cm-bubble { border-radius: 14px; }
.cm.theirs.grouped .cm-bubble { border-top-left-radius: 4px; }
.cm.mine.grouped .cm-bubble { border-top-right-radius: 4px; }
.chat-note { align-self: stretch; margin: 10px 0; border: 1px dashed var(--warning-br); background: var(--warning-bg); border-radius: var(--r-sm); padding: 10px 14px; }
.chat-note .cm-head { padding: 0; margin-bottom: 4px; }
.chat-note .cm-head b { color: var(--warning); }
.chat-note .cm-head span { color: var(--text-2); }
.chat-note .cm-head time { margin-left: auto; }
.chat-note .cm-text { font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-compose { flex: none; padding: 12px 16px 16px; border-top: 1px solid var(--hairline); background: var(--surface); }
.chat-hint { font-size: 12.5px; margin: 0 2px 8px; color: var(--text-2); }
.chat-hint.warn { color: var(--warning); }
.compose-box { border: 1px solid var(--hairline-2); border-radius: 12px; background: var(--bg, #0a0a0a); overflow: hidden; transition: border-color .12s; }
.compose-box:focus-within { border-color: #5a5a5a; }
.compose-box textarea { display: block; width: 100%; box-sizing: border-box; padding: 12px 14px 4px; border: 0; outline: 0; resize: none; min-height: 64px; max-height: 220px; background: transparent; color: var(--text); font: inherit; font-size: 14px; line-height: 1.5; }
.compose-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 10px 10px 14px; font-size: 12px; }
.compose-foot .input { width: auto; padding: 5px 9px; font-size: 12.5px; }
.compose-box.tabbed .ct-pane { display: none; }
.ct-tabs { display: flex; gap: 4px; padding: 6px 8px 0; border-bottom: 1px solid var(--hairline); }
.ct-tabs label { padding: 8px 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.ct-tabs label:hover { color: var(--text); }
#ct-reply:checked ~ .ct-tabs label[for="ct-reply"] { color: var(--text); border-bottom-color: #fff; }
#ct-note:checked ~ .ct-tabs label[for="ct-note"] { color: var(--warning); border-bottom-color: var(--warning); }
#ct-reply:checked ~ .ct-pane-reply, #ct-note:checked ~ .ct-pane-note { display: block; }
@media (max-width: 640px) {
  .tk-row { grid-template-columns: 4px minmax(0, 1fr); }
  .tk-side { grid-column: 2; }
  .cm { max-width: 94%; }
  .chat { height: calc(100vh - 200px); }
  .tk-search { width: 100%; }
  .tk-search .input { flex: 1; width: auto; }
}
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: 13px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.stack-actions { display: flex; flex-direction: column; gap: 8px; }
.stack-actions .btn { width: 100%; justify-content: center; }
.stack-actions .btn.ghost { border: 1px solid var(--line, #262626); }
@media (max-width: 920px) { .ticket-grid { grid-template-columns: 1fr; } .tk-aside { position: static; } }
/* Report v2 */
.badge2.cat0 { color: #5eead4; border-color: rgba(94,234,212,.4); background: rgba(94,234,212,.10); }
.badge2.cat1 { color: #f9a8d4; border-color: rgba(249,168,212,.4); background: rgba(249,168,212,.10); }
.badge2.cat2 { color: #fdba74; border-color: rgba(253,186,116,.4); background: rgba(253,186,116,.10); }
.badge2.cat3 { color: #a5b4fc; border-color: rgba(165,180,252,.4); background: rgba(165,180,252,.10); }
.badge2.cat4 { color: #67e8f9; border-color: rgba(103,232,249,.4); background: rgba(103,232,249,.10); }
.badge2.cat5 { color: #bef264; border-color: rgba(190,242,100,.4); background: rgba(190,242,100,.10); }
.badge2.cat6 { color: #fda4af; border-color: rgba(253,164,175,.4); background: rgba(253,164,175,.10); }
.badge2.cat7 { color: #fde68a; border-color: rgba(253,230,138,.4); background: rgba(253,230,138,.10); }

.rep-verdict { flex-direction: column; gap: 2px; min-width: 130px; padding: 12px 18px; letter-spacing: 0; }
.rep-verdict .vl { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.rep-verdict .vw { font-size: 18px; font-weight: 700; }
.rep-verdict.pass { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-br); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 16px 0 20px; }
.stat { text-align: left; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 13px 15px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; position: relative; overflow: hidden; }
.stat:disabled { cursor: default; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--hairline-2); }
.stat .n { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.stat .l { font-size: 12px; color: var(--text-2); }
.stat:not(:disabled):hover { border-color: var(--hairline-2); background: var(--surface-hi); }
.stat.crit::before { background: var(--critical); } .stat.crit.has .n { color: var(--critical); }
.stat.warn::before { background: var(--warning); } .stat.warn.has .n { color: var(--warning); }
.stat.conf::before { background: #c084fc; } .stat.conf.has .n { color: #d8b4fe; }
.stat.blue::before { background: #60a5fa; } .stat.blue.has .n { color: #7cb7ff; }
.stat.ok::before { background: var(--ok); } .stat.ok .n { color: var(--ok); }

.rep-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 26px; align-items: start; }
.rep-rail { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; }
.rail-title { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 0 10px 8px; }
.rep-rail a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: var(--r-xs); font-size: 13px; color: var(--text-2); border-left: 2px solid transparent; }
.rep-rail a:hover { color: var(--text); background: var(--surface); }
.rep-rail a.active { color: var(--text); background: var(--surface-hi); border-left-color: #fff; }
.rep-rail a .c { font-size: 11.5px; color: var(--text-3); }
.rep-main { min-width: 0; display: flex; flex-direction: column; gap: 34px; }
.rep-sec { scroll-margin-top: 16px; }
.rep-sec-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.rep-sec-h h2 { font-size: 17px; letter-spacing: -.01em; }
.rep-sec-h .muted { font-size: 13px; }
.card-f { padding: 10px 16px; font-size: 12.5px; border-top: 1px solid var(--hairline); }
.chip .cc { opacity: .7; font-weight: 500; margin-left: 3px; }
button.chip { font: inherit; cursor: pointer; }

table.xp tr.xrow { cursor: pointer; }
table.xp tr.xrow.nox { cursor: default; }
table.xp tr.xrow:hover td { background: var(--surface-hi); }
table.xp tr.xrow.sev-critical td:first-child { box-shadow: inset 3px 0 0 var(--critical); }
table.xp tr.xrow.sev-warning td:first-child { box-shadow: inset 3px 0 0 var(--warning); }
table.xp tr.xrow.sev-info td:first-child { box-shadow: inset 3px 0 0 #60a5fa; }
table.xp td.chev { color: var(--text-3); font-size: 18px; text-align: center; transition: transform .15s; }
table.xp tr.xrow.open td.chev { transform: rotate(90deg); color: var(--text); }
table.xp tr.xdetail { display: none; }
table.xp tr.xdetail.show { display: table-row; }
table.xp tr.xdetail td { background: var(--surface); padding: 0; }
table.xp tr.xdetail .finding-detail { padding: 14px 18px 16px 18px; }
.fmsg { font-size: 13.5px; }
.fpath { font-size: 11.5px; color: var(--text-3); margin-top: 3px; word-break: break-all; }
.pathcell { word-break: break-all; font-size: 12.5px; }
.loc-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; color: var(--text-2); }
.raw-wrap { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r); }
.raw-wrap summary { cursor: pointer; padding: 13px 16px; font-size: 13.5px; color: var(--text-2); }

@media (max-width: 920px) {
  .rep-layout { grid-template-columns: 1fr; gap: 14px; }
  .rep-rail { position: sticky; top: 0; z-index: 5; flex-direction: row; overflow-x: auto; background: var(--bg); padding: 8px 0; border-bottom: 1px solid var(--hairline); }
  .rail-title { display: none; }
  .rep-rail a { white-space: nowrap; border-left: 0; }
}

@media print {
  :root { --bg: #fff; --surface: #fff; --surface-hi: #f4f4f5; --surface-3: #f4f4f5; --hairline: #d4d4d8; --hairline-2: #a1a1aa; --text: #111; --text-2: #3f3f46; --text-3: #52525b; --text-4: #71717a; --critical: #b91c1c; --warning: #b45309; --ok: #047857; }
  html, body { background: #fff !important; color: #111 !important; }
  .sidebar, .side, .app-foot, .status-bar, .app-announce, .rep-rail, .no-print, .topbar, footer.site, a[href="/app/scans"] { display: none !important; }
  .shell, .shell-main, .shell-content { display: block !important; margin: 0 !important; padding: 0 !important; }
  .rep-layout { display: block; }
  .rep-main { gap: 20px; }
  table.xp tr.xdetail { display: table-row !important; }
  .finding-detail { color: #111; }
  .rep-sec, .card { break-inside: avoid-page; }
  tr { break-inside: avoid; }
  .raw-wrap { display: none; }
  .badge2 { border-color: #a1a1aa; background: #fff; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* ---- Customise scanner: YARA, strings, branding ---- */
.yara-err { margin: 8px 0 0; white-space: pre-wrap; font-family: var(--mono); font-size: 12px; line-height: 1.5; color: inherit; max-height: 260px; overflow: auto; }
.yara-src, textarea.mono { font-family: var(--mono); font-size: 12.5px; line-height: 1.5; tab-size: 4; }
.brand-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 960px) { .brand-grid { grid-template-columns: 1fr; } }
.swatches { display: grid; gap: 8px; }
.swatch { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--hairline-2); border-radius: var(--r-sm); cursor: pointer; }
.swatch span { flex: 1; display: flex; flex-direction: column; font-size: 13px; }
.swatch small { color: var(--text-3); font-size: 11.5px; }
.swatch code { font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.swatch input[type=color] { width: 40px; height: 32px; padding: 0; border: 1px solid var(--hairline-2); border-radius: 6px; background: transparent; cursor: pointer; }
.scanner-prev { border: 1px solid var(--hairline-2); border-radius: var(--r-md, 12px); overflow: hidden; background: var(--pb); color: var(--pt); box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.sp-bar { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--ps); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sp-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--pa); }
.sp-body { padding: 36px 28px 30px; text-align: center; }
.sp-name { font-size: 28px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; overflow-wrap: anywhere; }
.sp-tag { min-height: 20px; margin-top: 6px; font-size: 13px; opacity: .65; }
.sp-card { margin: 26px auto 0; max-width: 300px; padding: 16px; border-radius: 10px; background: var(--ps); text-align: left; }
.sp-row { font-size: 12px; opacity: .7; margin-bottom: 8px; }
.sp-input { padding: 9px 12px; border-radius: 7px; background: var(--pb); font-family: var(--mono); font-size: 13px; letter-spacing: .1em; border: 1px solid rgba(128,128,128,.3); }
.sp-progress { height: 6px; border-radius: 3px; background: var(--pb); margin: 14px 0; overflow: hidden; }
.sp-progress i { display: block; width: 62%; height: 100%; background: var(--pa); }
.sp-btn { text-align: center; padding: 9px; border-radius: 7px; background: var(--pa); color: var(--pb); font-weight: 700; font-size: 13px; }

/* =====================================================================
   Design v3: navy-black ground, white primary accents, blue secondary.
   Overrides earlier component rules; keep effects flat and restrained.
   ===================================================================== */
body {
  background-color: var(--bg);
  background-image: radial-gradient(1150px 520px at 56% -150px, rgba(37, 99, 235, .45) 0%, rgba(37, 99, 235, .14) 42%, transparent 74%), radial-gradient(560px 300px at 10% -110px, rgba(59, 124, 246, .16) 0%, transparent 70%);
  background-repeat: no-repeat;
}
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; }
::selection { background: rgba(122, 169, 255, .3); }
::-webkit-scrollbar-thumb { background: #26262b; }
.i { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: middle; }
.num, .tnum { font-variant-numeric: tabular-nums; }

/* Buttons: pill shaped, white primary */
.btn { border-radius: 999px; padding: 10px 18px; background: var(--surface-hi); border-color: var(--hairline-2); font-weight: 650; }
.btn:hover { background: var(--surface-3); border-color: #3a3a41; }
.btn.primary { background: #fff; color: #000000; border-color: #fff; }
.btn.primary:hover { background: #e6e6e9; border-color: #e6e6e9; }
.btn.sm { border-radius: 999px; padding: 7px 14px; }
.btn.lg { padding: 12px 22px; font-size: 14.5px; }
.btn .i { width: 16px; height: 16px; }
.btn.icon { width: 38px; height: 38px; padding: 0; }

/* Cards */
.card { background: var(--surface); border-color: var(--hairline); border-radius: var(--r); }
.card-h { padding: 18px 22px 14px; border-bottom: 1px solid var(--hairline); }
.card-h h3 { font-size: 15.5px; }
.card-ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-hi); border: 1px solid var(--hairline-2); color: var(--text); flex: none; }
.card-ico .i { width: 17px; height: 17px; }

/* Inputs */
.input, input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  background: #08080a; border-color: var(--hairline-2); border-radius: var(--r-sm);
}
.input:focus, input:focus, select:focus, textarea:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(59, 124, 246, .18); }
.check input { accent-color: var(--accent); }

/* Pills, badges, chips */
.pill { padding: 3px 10px; font-size: 12px; font-weight: 700; border: 0; background: var(--surface-hi); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.fail { background: var(--critical-bg); } .pill.review { background: var(--warning-bg); } .pill.pass { background: var(--ok-bg); }
.badge2 { border: 0; font-size: 12px; font-weight: 700; padding: 3px 10px; }
.badge2.blue, .badge2.conf { color: var(--accent-2); background: var(--accent-bg); }
.chip { border-radius: 999px; }
.chip.on { background: var(--surface-3); color: var(--text); border-color: transparent; }
.chip.conf.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.tag { border-radius: 999px; padding: 1px 9px; border-color: var(--hairline-2); }

/* Tables */
table.data th { color: var(--text-3); font-weight: 700; font-size: 11px; letter-spacing: .08em; padding: 12px 14px; }
table.data td { padding: 13px 14px; border-bottom-color: var(--hairline); }
table.data.lined th { background: transparent; }
table.data tr:hover td { background: rgba(255, 255, 255, .02); }

/* Alerts */
.alert { border-radius: var(--r-sm); border: 0; padding: 12px 16px; }
.alert.info { color: var(--accent-2); background: var(--accent-bg); }

/* App shell */
.shell { grid-template-columns: 244px minmax(0, 1fr); }
.side { background: #050505; border-right: 1px solid var(--hairline); padding: 24px 14px 16px; }
.side-brand { font-family: var(--display); font-weight: 700; letter-spacing: .2em; font-size: 14.5px; padding: 0 10px 20px; gap: 10px; }
.side-brand .side-logo { width: 24px; height: 24px; border-radius: 6px; flex: none; display: block; }
.side-group { color: var(--text-4); letter-spacing: .14em; font-weight: 700; padding: 16px 12px 6px; }
.side-nav { gap: 3px; }
.side-nav a { gap: 12px; padding: 9px 12px; border-radius: 12px; border: 1px solid transparent; color: var(--text-2); font-weight: 600; font-size: 13.5px; }
.side-nav a .i { color: var(--text-3); }
.side-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.side-nav a:hover .i { color: var(--text-2); }
.side-nav a.active { color: var(--text); background: var(--surface-hi); border-color: var(--hairline-2); }
.side-nav a.active .i { color: #fff; }
.side-foot { margin: auto 0 0; padding: 14px 4px 0; border-top: 1px solid var(--hairline); display: flex; align-items: center; gap: 10px; }
.side-user { gap: 10px; }
.side-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--hairline-2); font-family: var(--display); font-weight: 600; }
.side-user-sub { font-size: 11.5px; }
.side-signout { margin: 0; }
.side-out { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--hairline); background: transparent; color: var(--text-2); display: grid; place-items: center; cursor: pointer; transition: color .12s, border-color .12s, background .12s; }
.side-out .i { width: 16px; height: 16px; }
.side-out:hover { color: var(--critical); border-color: var(--critical-br); background: var(--critical-bg); }
.side-tag { border-radius: 999px; color: var(--accent-2); border-color: var(--accent-br); background: var(--accent-bg); }
.side-nav a .nbadge { background: var(--critical); }

.app-top { display: flex; align-items: center; gap: 12px; padding: 22px 32px 0; max-width: 1260px; width: 100%; margin: 0 auto; }
.app-date { color: var(--text-2); font-weight: 600; font-size: 13.5px; }
.shell-content { padding: 22px 16px 0; }
.shell-main .wrap { max-width: 1260px; }
.shell-content > main.wrap { padding-top: 0 !important; }
.app-foot { border-top-color: var(--hairline); }
.app-announce { background: var(--accent-bg); color: var(--accent-2); border-bottom: 0; }

/* Page headings */
.ph h1, .page-head h1 { font-size: 28px; letter-spacing: -.015em; }
.ph .sub, .page-head .sub { color: var(--text-2); }

/* Tickets and chat on the new palette */
.tk-list { border-radius: var(--r); }
.tk-tab.on { border-bottom-color: #fff; }
.tk-stat { border-radius: var(--r); }
.chat { border-radius: var(--r); }
.chat-bar { background: transparent; }
.cm-bubble { background: var(--surface-hi); border-color: var(--hairline); border-radius: 6px 18px 18px 18px; padding: 10px 15px; }
.cm.mine .cm-bubble { background: #15243f; border-color: rgba(122, 169, 255, .2); border-radius: 18px 6px 18px 18px; }
.cm.grouped .cm-bubble { border-radius: 18px; }
.compose-box { border-radius: 18px; background: #08080a; }
.compose-box:focus-within { border-color: var(--accent-2); }

@media (max-width: 920px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { padding: 12px 14px; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 6px; }
  .side-brand { padding: 0 10px 0 0; }
  .side-nav { flex-wrap: nowrap; }
  .side-nav a { white-space: nowrap; }
  .side-foot { display: none; }
  .app-top { padding: 16px 16px 0; }
}.brand-logo { width: 22px; height: 22px; border-radius: 6px; flex: none; display: inline-block; vertical-align: middle; }

/* Search-landing pages, guides and comparisons */
.art-wrap { max-width: 860px; padding-block: 36px 20px; }
.art-crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); margin-bottom: 22px; }
.art-crumbs a { color: var(--text-2); }
.art-preview { margin-bottom: 18px; color: var(--accent-2, #7cb7ff); }
.art-head .k { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.art-head h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.08; letter-spacing: -0.03em; margin: 10px 0 14px; }
.art-lede { font-size: 17px; color: var(--text-2); line-height: 1.6; margin: 0; max-width: 680px; }
.art-cta { gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.art-body { margin-top: 40px; }
.art-body h2, .art-faq h2, .art-related h2 { font-size: 23px; letter-spacing: -0.02em; margin: 38px 0 12px; }
.art-body p, .art-body li { color: var(--text-2); font-size: 15px; line-height: 1.7; }
.art-body a, .art-small a { color: var(--text); text-decoration: underline; text-decoration-color: var(--hairline-2); text-underline-offset: 3px; }
.art-body ul { padding-left: 20px; }
.art-steps { padding-left: 20px; display: grid; gap: 10px; }
.art-steps b, .art-body li b { color: var(--text); }
.art-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 8px; }
.art-grid > div { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: 16px 18px; }
.art-grid h3 { font-size: 15px; margin-bottom: 6px; }
.art-grid p { font-size: 13.5px; margin: 0; line-height: 1.55; }
.art-faq { margin-top: 10px; }
.art-table { overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--r-sm); }
.art-table table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.art-table th, .art-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.art-table tr:last-child th, .art-table tr:last-child td { border-bottom: 0; }
.art-table thead th { color: var(--text); font-size: 13px; background: var(--surface); }
.art-table tbody th { color: var(--text-3); font-weight: 600; width: 30%; }
.art-table td { color: var(--text-2); }
.art-table td.muted { color: var(--text-3); font-style: italic; }
.art-small { font-size: 12.5px; color: var(--text-3); line-height: 1.6; margin-top: 12px; }
.art-links { display: flex; flex-wrap: wrap; gap: 8px; }
.art-links a { padding: 7px 12px; border: 1px solid var(--hairline-2); border-radius: 999px; font-size: 13px; color: var(--text-2); }
.art-links a:hover { color: var(--text); }
.art-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.art-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-sm); color: var(--text-2); font-size: 13.5px; text-decoration: none !important; }
.art-card b { color: var(--text); font-size: 15px; }
.art-card:hover { border-color: var(--hairline-2); }
.art-end { margin-top: 56px; padding: 48px 20px; }
.art-end h2 { font-size: 30px; }
@media (max-width: 640px) { .art-grid, .art-cards { grid-template-columns: 1fr; } .art-end h2 { font-size: 24px; } }
