/* Phishly design system
   Dark console after the fintrack reference: #0f0f0f canvas, #171717 cards,
   #262626 hairlines, one periwinkle accent, 12px radii, Inter throughout. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/static/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/static/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/static/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/static/fonts/inter-700.woff2") format("woff2"); }

:root {
  --bg: #000000;
  --surface: #000000;
  --surface-2: #000000;
  --surface-3: #101010;
  --line: #2a2a2a;
  --line-soft: #1f1f1f;
  --panel: #000000;
  --text: #f5f5f5;
  --muted: #a7a7a7;
  --dim: #888888;
  --accent: #2f4dff;
  --accent-strong: #4f6bff;
  --accent-soft: #1b2340;
  --ok: #5fd39a;
  --ok-soft: #163024;
  --danger: #f07a7a;
  --danger-soft: #351a1c;
  --warn: #e6b567;
  --warn-soft: #322714;
  --radius: 12px;
  --radius-sm: 8px;
  --rail: 288px;
  --topbar: 64px;
  --sans: "Inter", "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mono: "SF Mono", "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(123, 147, 255, .075), transparent 64%),
    radial-gradient(760px 460px at 6% 108%, rgba(196, 166, 255, .045), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 14px/1.55 var(--sans);
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
a.link { color: var(--text); border-bottom: 1px solid var(--line); }
a.link:hover { color: var(--accent-strong); border-color: var(--accent-strong); }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
.ic { display: inline-block; vertical-align: -3px; flex: 0 0 auto; }

.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); font-size: 0.94em; letter-spacing: -0.01em; }
.small { font-size: 12.5px; }
.right { text-align: right; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stack-8 > * + * { margin-top: 8px; }
.stack-16 > * + * { margin-top: 16px; }
.hr { height: 1px; background: var(--line-soft); margin: 16px 0; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 8px;
  background: #0b0b0b; color: var(--text);
  font: 500 13.5px/1 var(--sans);
  cursor: pointer; white-space: nowrap;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}
.btn:active { transform: translateY(1px); }
.btn:hover { background: #232323; border-color: #3a3a3a; }
.btn.primary { background: #f2f2f2; border-color: #f2f2f2; color: #080808; }
.btn.primary:hover { background: #ffffff; border-color: #ffffff; color: #000; }
.btn.signal { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.signal:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: #1f1f1f; color: var(--text); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------------------------------------------------------------- app shell */

.shell { display: grid; grid-template-columns: var(--rail) 1fr; min-height: 100vh; }

.rail {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: #000000;
  border-right: 1px solid var(--line-soft);
  padding: 18px 14px 12px;
}
.rail .brand {
  display: flex; align-items: center; gap: 11px;
  height: 44px; padding: 0 8px; margin-bottom: 14px;
  font-size: 18px; font-weight: 600; letter-spacing: -0.025em;
}
.rail .brand .bell { margin-left: auto; color: var(--muted); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; position: relative; }
.rail .brand .bell:hover { background: var(--surface); color: var(--text); }
.rail .brand .bell i { position: absolute; top: 4px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.rail .nav-group { margin-bottom: 16px; }
.rail .nav-label {
  font-size: 12px; font-weight: 500; letter-spacing: 0;
  color: #8a8a8a; padding: 10px 10px 7px;
}
.rail a.nav {
  display: flex; align-items: center; gap: 11px;
  height: 36px; padding: 0 10px; margin-bottom: 2px;
  border: 1px solid transparent; border-radius: 8px;
  color: #b3b3b3; font-size: 13.5px;
}
.rail a.nav .ic { color: #8f8f8f; }
.rail a.nav:hover { background: #171717; color: var(--text); }
.rail a.nav.on { background: #1d1d1d; border-color: transparent; color: var(--text); }
.rail a.nav.on .ic { color: var(--text); }
.rail a.nav .count {
  margin-left: auto; min-width: 20px; height: 18px; padding: 0 5px;
  border-radius: 5px; background: #262626; color: var(--muted);
  font: 500 11px/18px var(--mono); text-align: center;
}
.rail a.nav.on .count { background: #2f2f2f; color: var(--text); }
.rail .spacer { flex: 1; }

.rail .plan-box {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface-2);
  padding: 14px; margin: 0 2px 12px; font-size: 12px; color: var(--muted);
}
.rail .plan-box b { display: block; color: var(--text); font-weight: 500; font-size: 12.5px; margin-bottom: 4px; }
.rail .plan-box .link { display: inline-block; margin-top: 6px; }
.rail .plan-box .link { font-size: 12px; }

.rail .who {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 8px 6px; border-top: 1px solid var(--line-soft); font-size: 13px;
}
.rail .who .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid #352d55; color: #c9c2ff;
  display: grid; place-items: center; font: 600 11px/1 var(--sans);
}
.rail .who .email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); font-size: 11.5px; }

.main { min-width: 0; }

.topbar {
  height: var(--topbar); display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px) minmax(0, 1fr);
  align-items: center; gap: 18px;
  padding: 0 26px; border-bottom: 1px solid var(--line-soft);
}
.crumbs { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; white-space: nowrap; min-width: 0; overflow: hidden; }
.crumbs .sep { color: #5a5a5a; }
.crumbs .here { color: var(--text); }
.crumbs .cico { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: #1a1a1a; border: 1px solid var(--line); color: var(--muted); }
.topbar .searchbox { margin: 0; justify-self: center; width: 100%; max-width: 380px; height: 38px; border-radius: 10px;
  background: #000000; border-color: #262626; cursor: text; text-align: left; padding: 0 10px;
  transition: border-color 140ms ease, background 140ms ease; }
.searchbox .sph { flex: 1; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .searchbox:focus-within { border-color: #4a5a9a; background: #1d1d1d; }
.topbar .searchbox:focus-within kbd { color: #cfcfcf; border-color: #3a3a3a; }
.topbar .topactions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.searchbox {
  display: flex; align-items: center; gap: 8px;
  width: 320px; max-width: 40vw; height: 34px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #171717; color: var(--dim); font-size: 13px;
}
.searchbox input {
  border: 0; background: transparent; outline: none; color: var(--text);
  font: 13px var(--sans); width: 100%; padding: 0;
}
.searchbox kbd {
  font: 500 10.5px/1 var(--mono); color: var(--dim);
  border: 1px solid var(--line); border-radius: 5px; padding: 3px 5px;
}
.topbar .tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.topbar .tool {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--muted); font-size: 13px; background: transparent;
}
.topbar .tool:hover { border-color: #3a3a3a; }
.topbar .tool:hover { background: var(--surface); color: var(--text); }

.content { padding: 26px 34px 56px; max-width: none; width: 100%; }

/* ---------------------------------------------------------------- page head */

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-head h1 { font-family: var(--sans); font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.page-head .sub { color: var(--muted); font-size: 13.5px; margin-top: 5px; }
.page-head .actions { display: flex; align-items: center; gap: 8px; padding-top: 4px; }

/* ---------------------------------------------------------------- cards */

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card .k { font-size: 12.5px; color: var(--muted); font-weight: 450; }
.card .v { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; margin-top: 10px; }
.card .s { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.card.alert .v { color: #a9baff; }
.card.metric { background: var(--surface); border-color: var(--line); }
.card.metric .delta { display: inline-flex; align-items: center; gap: 4px; margin-top: 9px; font-size: 11px; font-weight: 500; }
.card.metric .delta.up { color: var(--ok); }
.card.metric .delta.down { color: var(--danger); }
.card.metric .delta.down .ic { transform: rotate(90deg); }
.card.metric .delta.flat { color: var(--dim); }
.card.metric .delta .note { color: var(--dim); font-weight: 400; margin-left: 2px; }

.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.dash-grid .card { padding: 20px; min-height: 190px; display: flex; flex-direction: column; }
.charts-grid { grid-template-columns: 1.55fr 1fr; }

.promo { background: #1b1830; border-color: #302a4e; position: relative; overflow: hidden; }
.promo::after {
  content: ""; position: absolute; right: -70px; top: -60px; width: 260px; height: 260px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 40% 40%, rgba(122,101,255,.38), rgba(122,101,255,0) 62%);
  box-shadow: 0 0 0 1px rgba(155,140,255,.16) inset;
}
.promo > * { position: relative; z-index: 1; }
.promo .tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px;
  border-radius: 5px; background: #332a5c; color: #c7bfff;
  font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.promo h3 { font-size: 17px; margin: 14px 0 8px; }
.promo p { color: #a9a3c2; font-size: 13px; line-height: 1.55; }
.promo .go { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 6px; color: #c7bfff; font-size: 13px; font-weight: 500; }
.promo .go:hover { color: #fff; }

.stat-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; margin-top: 18px; }
.stat-pairs .p { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.stat-pairs .l { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

.segments { display: flex; align-items: flex-end; gap: 4px; height: 88px; margin: auto 0 14px; padding-top: 16px; }
.segments i { flex: 1; border-radius: 3px 3px 0 0; background: #232323; min-height: 8px; }
.segments i.on { background: var(--accent); }
.segments i.warn { background: var(--warn); }
.segments i.bad { background: var(--danger); }

.chart-card { display: flex; flex-direction: column; }
.chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.chart-head h3 { font-size: 15px; }
.chart-head .sub { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.chart-head .select {
  height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 7px;
  background: #171717; color: var(--muted); font-size: 12px; display: inline-flex; align-items: center; gap: 8px;
}
.chart-wrap { margin-top: 14px; flex: 1; }
.chart-wrap svg { display: block; width: 100%; height: auto; }
.chart-empty { color: var(--dim); font-size: 12.5px; padding: 28px 0; text-align: center; }

.legend { display: flex; gap: 14px; color: var(--dim); font-size: 11.5px; margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); display: inline-block; }

/* ---------------------------------------------------------------- panels and tables */

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.panel + .panel { margin-top: 14px; }
.panel .panel-title {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--line-soft);
}
.panel .panel-title h2 { font-size: 14.5px; }
.panel .panel-title .meta { font-size: 12px; color: var(--dim); }
.panel-body { padding: 18px; }

summary.summary-add { border-left: 2px solid var(--accent); cursor: pointer; list-style: none; }
summary.summary-add:hover { background: #232323; }
summary.summary-add .plus {
  display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 10px;
  border: 1px solid var(--line); border-radius: 6px; font: 500 13px/1 var(--mono);
}
details[open] summary.summary-add { border-bottom: 1px solid var(--line-soft); }
details[open] summary.summary-add .plus { color: var(--accent-strong); border-color: #3a3160; }

table.grid { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.grid th {
  text-align: left; font-weight: 500; font-size: 10.5px; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--dim); padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}
table.grid td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.grid tr:last-child td { border-bottom: 0; }
table.grid tbody tr:hover { background: #242424; }
table.grid td.num { font-family: var(--mono); text-align: right; }
table.grid th.num { text-align: right; }
table.grid .dom { font-family: var(--mono); font-size: 12.5px; }

.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 7px;
  border: 1px solid var(--line); border-radius: 5px; background: #1a1a1a;
  font: 500 10.5px/1 var(--sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
}
.chip.critical { color: #ffb4b4; border-color: #47272a; background: #2a1719; }
.chip.high { color: #a9baff; border-color: #2c3a63; background: #16203c; }
.chip.medium { color: #e2c68d; border-color: #3f3623; background: #241f14; }
.chip.low { color: var(--muted); }
.chip.ok, .chip.sent { color: #93e6b8; border-color: #234531; background: #14261b; }
.chip.draft { color: #a9baff; border-color: #2c3a63; background: #16203c; }
.chip.failed { color: #ffb4b4; border-color: #47272a; background: #2a1719; }
.chip.open { color: var(--muted); }

.risk { font-family: var(--mono); font-size: 12.5px; }
.bar { height: 3px; background: #2e2e2e; width: 46px; margin-top: 5px; border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 3px; background: var(--muted); }
.bar.critical i { background: var(--danger); }
.bar.high i { background: var(--accent); }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #171717; }
.seg a { padding: 6px 11px; font-size: 12px; color: var(--muted); border-right: 1px solid var(--line); }
.seg a:last-child { border-right: 0; }
.seg a:hover { color: var(--text); }
.seg a.on { background: #2a2a2a; color: var(--text); }

details.finding { border-bottom: 1px solid var(--line-soft); }
details.finding:last-child { border-bottom: 0; }
details.finding > summary {
  list-style: none; cursor: pointer; display: grid;
  grid-template-columns: 70px 1fr 80px 120px 120px; gap: 14px; align-items: center;
  padding: 12px 16px;
}
.finding-head {
  display: grid; grid-template-columns: 70px 1fr 80px 120px 120px; gap: 14px;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
  font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--dim);
}
.finding-head .right { text-align: right; }
details.finding > summary::-webkit-details-marker { display: none; }
details.finding > summary:hover { background: #242424; }
details.finding[open] > summary { background: #242424; }
.fev { padding: 6px 16px 22px 100px; }
.fev .kv { display: grid; grid-template-columns: 150px 1fr; gap: 7px 14px; font-size: 13px; margin: 0; }
.fev .kv dt { color: var(--dim); }
.fev .kv dd { margin: 0; }
.fev .snippet {
  margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 8px;
  background: #171717; font-family: var(--mono); font-size: 12px; color: var(--muted); line-height: 1.6;
}
.fev .snippet + .snippet { margin-top: 10px; }
.fev .actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.fev .shot { margin: 4px 0 18px; max-width: 540px; }
.fev .shot img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #171717; }
.fev .shot a:hover img { border-color: #3d3d3d; }

.empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 30px 24px; text-align: center; color: var(--muted); }
.empty h3 { font-size: 15.5px; color: var(--text); margin-bottom: 6px; }
.empty p { max-width: 54ch; margin: 0 auto; font-size: 13px; }
.empty .link { color: var(--text); }

/* ---------------------------------------------------------------- forms */

.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.form-row .hint { font-size: 11.5px; color: var(--dim); margin-top: 6px; }
input[type=text], input[type=email], input[type=password], textarea, select {
  width: 100%; background: #0b0b0b; border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--text);
  font: 13.5px/1.5 var(--sans); padding: 9px 11px; outline: none;
}
input:focus, textarea:focus, select:focus { border-color: #46538c; box-shadow: 0 0 0 3px rgba(117, 145, 255, 0.14); }
textarea { min-height: 84px; resize: vertical; font-family: var(--mono); font-size: 12.5px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--muted); }
.check input { margin-top: 2px; accent-color: var(--accent); }

.two-col { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; align-items: start; }
.side-form { position: sticky; top: 16px; }
.pre {
  font-family: var(--mono); font-size: 12px; line-height: 1.65; white-space: pre-wrap; word-break: break-word;
  background: #151515; border: 1px solid var(--line-soft); border-radius: 8px; padding: 14px; color: var(--muted);
}

/* ---------------------------------------------------------------- public pages */

.pub-nav {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(8px);
}
.pub-nav .wrap { display: flex; align-items: center; height: 62px; gap: 26px; }
.pub-nav nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.pub-nav nav a { font-size: 13.5px; color: var(--muted); }
.pub-nav nav a:hover { color: var(--text); }
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15.5px; letter-spacing: -0.02em; }
.wordmark svg { display: block; color: #fff; }

.hero { padding: 78px 0 64px; border-bottom: 1px solid var(--line-soft); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { margin: 16px 0 18px; }
h1.display { font-size: 46px; line-height: 1.06; letter-spacing: -0.035em; font-weight: 600; }
.hero p.lede { font-size: 15.5px; line-height: 1.65; color: var(--muted); max-width: 44ch; }
.hero-actions { display: flex; gap: 10px; margin-top: 26px; align-items: center; }
.hero-note { margin-top: 16px; font-size: 12px; color: var(--dim); }

.stat-strip { border-bottom: 1px solid var(--line-soft); }
.stat-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-strip .item { padding: 22px 0; border-right: 1px solid var(--line-soft); padding-right: 20px; }
.stat-strip .item:last-child { border-right: 0; }
.stat-strip .n { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.stat-strip .l { font-size: 11.5px; color: var(--dim); margin-top: 2px; }

.section { padding: 68px 0; border-bottom: 1px solid var(--line-soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-head p { max-width: 44ch; color: var(--muted); font-size: 13.5px; }
h2.section { font-size: 27px; line-height: 1.2; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 26px; }
.step .num { font-family: var(--mono); font-size: 11px; color: var(--accent-strong); }
.step h3 { margin: 14px 0 8px; font-size: 16px; }
.step p { color: var(--muted); font-size: 13px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.compare .top {
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase;
}
.compare.hit .top { color: #a9baff; }
.compare.miss .top { color: var(--dim); }
.compare .body { padding: 18px; font-family: var(--mono); font-size: 12.5px; }
.compare .body .t { color: var(--muted); margin: 10px 0 14px; font-family: var(--sans); font-size: 13.5px; }
.kv { display: grid; grid-template-columns: 132px 1fr; gap: 5px 12px; font-size: 12.5px; }
.kv dt { color: var(--dim); font-family: var(--sans); }
.kv dd { margin: 0; }
.flag { color: #a9baff; }

.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.plan {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 22px;
  display: flex; flex-direction: column; background: var(--surface);
}
.plan.featured { border-color: #3b3363; background: #1b1830; }
.plan .head { display: flex; align-items: baseline; justify-content: space-between; }
.plan .name { font-size: 14.5px; font-weight: 500; }
.plan .price { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; margin: 16px 0 2px; }
.plan .price small { font-size: 12.5px; color: var(--dim); font-weight: 400; letter-spacing: 0; }
.plan .small.muted { min-height: 34px; }
.plan ul { list-style: none; margin: 18px 0 22px; padding: 0; font-size: 13px; color: var(--muted); }
.plan li { padding: 7px 0; border-bottom: 1px solid var(--line-soft); display: flex; gap: 9px; }
.plan li:last-child { border-bottom: 0; }
.plan li::before { content: ""; width: 4px; height: 4px; border-radius: 1px; background: var(--accent); margin-top: 8px; flex: 0 0 auto; }
.plan .cta { margin-top: auto; }

.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.faq .qa { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.faq h3 { font-size: 14.5px; margin-bottom: 7px; }
.faq p { color: var(--muted); font-size: 13px; }

.pub-foot { padding: 34px 0 46px; }
.pub-foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 12.5px; color: var(--dim); }
.pub-foot a:hover { color: var(--text); }

/* ---------------------------------------------------------------- auth */

.auth { min-height: calc(100vh - 62px); display: grid; place-items: center; padding: 40px 18px; }
.auth-card { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-card p.sub { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.auth-alt { font-size: 12.5px; color: var(--dim); margin-top: 16px; text-align: center; }

/* ---------------------------------------------------------------- misc */

.flash { padding: 10px 13px; border: 1px solid var(--line); border-left: 2px solid var(--accent); background: #000000; border-radius: 8px; font-size: 13px; margin-bottom: 12px; }
.flash.error { border-left-color: var(--danger); }
.flash.ok { border-left-color: var(--ok); }
.flash.warn { border-left-color: var(--warn); }
.toast-note { font-size: 11.5px; color: var(--dim); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #2e2e2e; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #3d3d3d; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1180px) {
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .charts-grid { grid-template-columns: 1fr; }
  .dash-grid .promo { grid-column: span 2; min-height: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  h1.display { font-size: 40px; }
}

@media (max-width: 1100px) {
  .topbar { display: flex; }
  .topbar .searchbox { flex: 1; width: auto; max-width: none; justify-self: auto; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --rail: 0px; }
  .shell { grid-template-columns: 1fr; }
  .rail {
    position: static; height: auto; flex-direction: row; align-items: center;
    gap: 6px; padding: 10px 12px; overflow-x: auto; border-right: 0;
    border-bottom: 1px solid var(--line-soft); min-width: 0; max-width: 100vw;
  }
  .rail .brand { margin: 0 8px 0 0; height: 34px; padding: 0 4px; }
  .rail .brand .bell, .rail .nav-label, .rail .plan-box, .rail .who .email, .rail .spacer { display: none; }
  .rail .nav-group { margin: 0; display: flex; gap: 2px; }
  .rail a.nav { height: 32px; padding: 0 9px; margin: 0; }
  .rail a.nav span.label { display: inline; max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rail .who { border-top: 0; padding: 0; margin-left: auto; }
  .topbar { display: flex; padding: 0 14px; gap: 10px; }
  .searchbox { max-width: none; flex: 1; }
  .topbar .tool span { display: none; }
  .content { padding: 18px 14px 40px; }
  .page-head { flex-direction: column; gap: 12px; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-grid .promo { grid-column: auto; }
  .cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .two-col { grid-template-columns: 1fr; }
  .side-form { position: static; }
  .steps, .split, .faq, .price-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .stat-strip .wrap { grid-template-columns: 1fr 1fr; }
  .stat-strip .item { border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 16px 0; }
  .pub-nav nav a:not(.btn) { display: none; }
  .panel { overflow-x: auto; }
  table.grid { min-width: 560px; }
  .two-col > *, .panel { min-width: 0; }
  .finding-head { display: none; }
  .fev .kv { grid-template-columns: 1fr; }
  .fev .kv dd { margin-bottom: 8px; }
  details.finding > summary { grid-template-columns: 60px 1fr 90px; }
  details.finding > summary > .col-hide { display: none; }
  .fev { padding-left: 16px; }
  .pub-foot .wrap { flex-direction: column; align-items: flex-start; gap: 16px; }
  .pub-foot .row { flex-wrap: wrap; row-gap: 10px; }
  h1.display { font-size: 32px; }
  .pub-nav .wrap { height: 56px; }
}

/* landing evidence panel */
.evidence-card { font-family: var(--mono); font-size: 12.5px; }
.evidence-card .dom { font-size: 14px; }
.evidence-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.evidence-row:last-child { border-bottom: 0; }
.evidence-row .k { color: var(--dim); }
.evidence-row .v { text-align: right; }

/* billing */
.billgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.billtile { background: var(--bg); border: 1px solid #242424; border-radius: 12px; padding: 14px; }
.bt-label { font-size: 11.5px; color: #8a8a8a; }
.bt-value { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin-top: 6px; }
.bt-of { font-size: 13px; color: #7a7a7a; font-weight: 400; }
.bt-sub { font-size: 11.5px; color: #7a7a7a; margin-top: 4px; }
.billstrip { display: flex; align-items: stretch; border: 1px solid #242424; border-radius: 12px;
  overflow: hidden; background: var(--bg); }
.billstrip > div { flex: 1; min-width: 0; padding: 10px 16px; border-left: 1px solid var(--line-soft); }
.billstrip > div:first-child { border-left: 0; }
.billstrip span { display: block; font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.billstrip b { display: block; margin-top: 2px; font-size: 13.5px; font-weight: 550; }
.billstrip em { display: block; margin-top: 1px; font-style: normal; font-size: 10.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) {
  .billstrip { display: grid; grid-template-columns: 1fr 1fr; }
  .billstrip > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line-soft); }
  .billstrip > div:nth-child(4) { border-top: 1px solid var(--line-soft); }
}
.plans3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.plancard { background: var(--bg); border: 1px solid #242424; border-radius: 14px; padding: 20px; display: flex; flex-direction: column; }
.plancard.current { border-color: #f2f2f2; }
.ptop { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pname { font-size: 14px; font-weight: 600; }
.pprice { font-size: 38px; font-weight: 600; letter-spacing: -.035em; margin-top: 14px; }
.pprice small { font-size: 12px; color: #8a8a8a; font-weight: 400; }
.plancard ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 9px; }
.plancard li { display: flex; gap: 8px; font-size: 12.5px; color: #b0b0b0; line-height: 1.45; }
.plancard li .ic { color: #5fd39a; margin-top: 2px; }
.pcta { margin-top: auto; padding-top: 18px; }
.pay-row { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #1c1c1c; }
.pay-row:last-of-type { border-bottom: 0; }
.copybtn { flex: 0 0 auto; height: 28px; font-size: 11.5px; padding: 0 9px; }
.stepslist { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
@media (max-width: 1100px) { .billgrid { grid-template-columns: 1fr 1fr; } .plans3 { grid-template-columns: 1fr; } }

/* page boot skeleton + cross-document transitions */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .16s; }
#page-skeleton { display: none; }
body.booting #page-skeleton { display: block; }
body.booting .content > *:not(#page-skeleton) { visibility: hidden; }
body.page-loading #page-skeleton { display: block; }
body.page-loading .content > *:not(#page-skeleton) { visibility: hidden; display: block !important; }


.page-skel { min-height: calc(100vh - 220px); }
.page-skel .skgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.page-skel .skpanel { background: #000; border: 1px solid #1a1a1a; border-radius: 12px; padding: 16px; }
.page-skel .skpanel .skhead { width: 150px; height: 12px; margin-bottom: 14px; }
.page-skel .sklines { display: grid; gap: 8px; }
.page-skel .skline { height: 34px; border-radius: 6px; }
.page-skel .skline.short { width: 70%; }
.page-skel .skpix { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; height: 90px; }
.page-skel .skpix span { border-radius: 2px; background: #111; }
.page-skel .skpixwall { display: grid; grid-template-columns: repeat(auto-fill, minmax(9px, 1fr)); gap: 3px; }
.page-skel .skpixwall span { aspect-ratio: 1; border-radius: 2px; background: #101010; }
.page-skel .skstatrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.page-skel .skstat { height: 92px; background: #000; border: 1px solid #1a1a1a; border-radius: 12px; padding: 14px; }
.page-skel .skform { display: grid; gap: 12px; }
.page-skel .skform .skinput { height: 38px; border-radius: 8px; }
.page-skel .skform .skbutton { width: 130px; height: 36px; border-radius: 8px; }
@media (max-width: 900px) { .page-skel .skgrid2, .page-skel .skstatrow { grid-template-columns: 1fr; } }


/* pixel analytics */
.pxgrid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.pxdays { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; height: 104px; }
.pxday { display: flex; flex-direction: column; gap: 4px; }
.pxday i { flex: 1; background: #141414; border-radius: 2px; }
.pxday i.on.l1 { background: #3b2a17; }
.pxday i.on.l2 { background: #6d441f; }
.pxday i.on.l3 { background: #b06b2c; }
.pxday i.on.l4 { background: #f2a35e; }
.pxlabels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 10px; color: #6f6f6f; }
.pxlegend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; font-size: 11px; color: #8a8a8a; }
.pxk, .pxo { width: 8px; height: 8px; border-radius: 2px; display: inline-block; background: #1b1b1b; margin-right: 3px; }
.pxo { background: #f2a35e; }
.pxwall { display: grid; grid-template-columns: repeat(auto-fill, minmax(9px, 1fr)); gap: 3px;
  min-height: 104px; align-content: start; }
.pxp { aspect-ratio: 1; border-radius: 2px; background: #181818; display: block; }
.pxp.critical { background: #f07a7a; }
.pxp.high { background: #f2a35e; }
.pxp.medium { background: #2f4dff; }
.pxp.low { background: #3a3a3a; }
.pxp.off { background: #161616; }
.pxp.void { background: #101010; }
.pxscans { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.pxscans i { aspect-ratio: 1; border-radius: 3px; background: #181818; }
.pxscans i.on { background: #5fd39a; }
.pxscans i.bad { background: #f07a7a; }
.pxscans i.warn { background: #f2c273; }
.pxcov { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; }
.pxcov i { aspect-ratio: 1; border-radius: 2px; background: #181818; }
.pxcov i.on { background: #5fd39a; }
.lg { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-left: 6px; }
.lg.critical { background: #f07a7a; }
.lg.high { background: #f2a35e; }
.lg.medium { background: #2f4dff; }
.lg.low { background: #3a3a3a; }
.lg.off { background: #161616; border: 1px solid #2a2a2a; }
@media (max-width: 900px) { .pxgrid-2 { grid-template-columns: 1fr; } }


/* ------------------------------------------------------------- brand wizard */

.wpanel[hidden], .wactions [hidden] { display: none !important; }

.wizard { max-width: none; }
.wizard-head { margin-bottom: 14px; }
.wiz-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.wiz-kicker { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8a8a8a; }
.wiz-count { font-size: 11.5px; color: #8a8a8a; font-variant-numeric: tabular-nums; }
.wiz-count b { color: #f2f2f2; font-weight: 600; }
.wiz-track { height: 4px; border-radius: 999px; background: #1a1a1a; overflow: hidden; }
.wiz-track i { display: block; height: 100%; border-radius: 999px; background: #2f4dff;
  transition: width .28s cubic-bezier(.2,.7,.2,1); }
.wiz-steps { display: flex; gap: 18px; margin-top: 12px; }
.wdot { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.wdot span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid #2a2a2a; color: #8a8a8a; font-size: 11px; font-variant-numeric: tabular-nums; }
.wdot b { font-size: 12px; font-weight: 500; color: #8a8a8a; white-space: nowrap; }
.wdot.on span { background: #2f4dff; border-color: #2f4dff; color: #000000; }
.wdot.on b { color: #f2f2f2; }
.wdot.done span { background: #16203c; border-color: #2c3a63; color: #a9baff; }
.wdot.done b { color: #a9baff; }

.wizard-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.wizard-main { min-width: 0; }
.wizard-aside { position: sticky; top: 80px; }

.wpanel { margin-bottom: 14px; }
.wpanel .panel-body { padding: 26px 28px; }
.wform { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; max-width: none; }
.wform .span2 { grid-column: 1 / -1; }
.wform input, .wform textarea { max-width: 620px; }
.wizard .two-col { gap: 16px; }
.wverify { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 28px; align-items: start; }

.featgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feat { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #1e1e1e;
  border-radius: 10px; padding: 15px 16px; cursor: pointer; background: #000000;
  transition: border-color .15s ease, background .15s ease; }
.feat:hover { border-color: #333; background: #080808; }
.feat input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: #2f4dff; flex: none; }
.feat b { display: block; font-size: 13px; font-weight: 500; color: #f2f2f2; }
.feat em { display: block; margin-top: 5px; font-style: normal; font-size: 11.5px;
  line-height: 1.55; color: #8a8a8a; }
.feat.off { opacity: .55; cursor: default; }
.feat.off:hover { border-color: #1e1e1e; background: #000000; }
.feat .badge { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 999px;
  background: #16203c; color: #a9baff; font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; }
.feat.wide { grid-column: 1 / -1; align-items: center; }
.feat.wide .ficon { width: 32px; height: 32px; border-radius: 8px; background: #0b0b0b;
  border: 1px solid #1e1e1e; display: grid; place-items: center; color: #9db0ff; flex: none; }
.feat-link { margin-left: auto; white-space: nowrap; font-size: 12px; }

.wiz-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px;
  padding: 11px 12px; border: 1px solid #1b1b1b; border-radius: 8px; background: #030303;
  font-size: 11.5px; line-height: 1.55; color: #8a8a8a; }
.wiz-note svg { flex: none; color: #6f6f6f; margin-top: 1px; }

.wsum { display: grid; gap: 10px; max-width: none; padding: 14px 0;
  border-top: 1px solid #1b1b1b; border-bottom: 1px solid #1b1b1b; font-size: 12px; }
.wsum .between span:last-child { color: #f2f2f2; }

.wactions { display: flex; align-items: center; gap: 12px; padding: 4px 0 8px; }
.wactions .spacer { flex: 1; }
.wstepnote { font-size: 11.5px; color: #8a8a8a; font-variant-numeric: tabular-nums; }

.wizard-skel .skdots { margin: 18px 0 4px; }
.wizard-skel .skdot { width: 24px; height: 24px; border-radius: 50%; }
.page-skel .skprogress { height: 4px; border-radius: 999px; margin: 12px 0 4px; width: 33%; }

@media (min-width: 1500px) {
  .featgrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1200px) {
  .wizard-layout { grid-template-columns: 1fr; }
  .wizard-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .wizard-aside .mt-16 { margin-top: 0; }
}
@media (max-width: 760px) {
  .featgrid { grid-template-columns: 1fr; }
  .wizard-aside { grid-template-columns: 1fr; }
  .wform { grid-template-columns: 1fr; }
  .wform .span2 { grid-column: auto; }
  .wverify { grid-template-columns: 1fr; gap: 20px; }
  .wdot { gap: 6px; }
  .wdot b { font-size: 11px; }
  .wpanel .panel-body { padding: 18px; }
  .wactions { gap: 8px; }
  .wstepnote { display: none; }
}


/* --------------------------------------------------- minimal integrations */
.integrations-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.integrations-grid > .panel { height: 100%; display: flex; flex-direction: column; }
.integrations-grid > .panel > .panel-body { flex: 1; }

.copyline { display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: #000; }
.copyline .mono { flex: 1; min-width: 0; word-break: break-all; font-size: 12px; }

.ilist { margin-top: 10px; }
.irow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.irow:first-child { border-top: 0; }
.idom { flex: 1; min-width: 0; }
.idom b { display: block; font-size: 12.5px; font-weight: 500; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idom span { display: block; margin-top: 3px; font-size: 11px; color: var(--dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iempty { padding: 16px 0 4px; font-size: 12px; color: var(--dim); }
.iact { display: flex; align-items: center; gap: 10px; flex: none; }
.iact button { border: 0; background: none; padding: 4px 0; cursor: pointer;
  font: 500 11.5px var(--sans); color: var(--muted); }
.iact button:hover { color: var(--text); }

.addbox { margin-top: 14px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.addbox > summary { cursor: pointer; list-style: none; font-size: 12px; color: var(--accent-strong); }
.addbox > summary::-webkit-details-marker { display: none; }
.addbox > summary::before { content: "+ "; color: var(--dim); }
.addbox[open] > summary::before { content: "− "; }
.addbox form { display: grid; gap: 10px; margin-top: 12px; }
.addbox form input[type="text"], .addbox form input[type="url"], .addbox form input[type="email"],
.addbox form input[type="password"] { max-width: none; }
.addbox .hint { margin: 0; }
.eventchips { display: flex; flex-wrap: wrap; gap: 6px; }
.eventchips label { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 11px; color: var(--muted); cursor: pointer; }
.eventchips input { width: 12px; height: 12px; accent-color: var(--accent); margin: 0; }
.delivery-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; cursor: pointer; list-style: none; font-size: 13.5px; font-weight: 500; }
.delivery-summary::-webkit-details-marker { display: none; }

/* ------------------------------------------------------- minimal settings */
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: start; }
.settings-main { display: grid; gap: 14px; }
.settings-side { display: grid; gap: 14px; }
.settings-grid .panel { min-width: 0; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fgrid .span2 { grid-column: 1 / -1; }
.sdivider { border-top: 1px solid var(--line-soft); margin: 16px 0; }
.settings-sub { padding: 0 18px 16px; }
.settings-sub .between { font-size: 12.5px; }
.settings-sub .between b { font-weight: 550; }
.settings-sub .hint { margin: 4px 0 0; }
.settings-sub .addbox { margin-top: 10px; }
.settings-side .ilist { margin-top: 4px; }
.settings-side .irow { padding: 9px 0; }

@media (max-width: 1180px) {
  .settings-grid { grid-template-columns: 1fr; }
  .settings-side { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (max-width: 900px) {
  .integrations-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .settings-side { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr; }
  .fgrid .span2 { grid-column: auto; }
}


/* --------------------------------------------------------- brand detail */
.brand-overview { padding: 0; overflow: hidden; margin-bottom: 14px; }
.bo-body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.85fr); }
.bo-metrics { display: grid; grid-template-columns: repeat(4, 1fr); padding: 16px 18px; }
.bo-metrics .bs { min-width: 0; padding: 0 16px; border-left: 1px solid var(--line-soft); }
.bo-metrics .bs:first-child { padding-left: 0; border-left: 0; }
.bo-metrics b { display: block; font-size: 23px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.bo-metrics span { display: block; margin-top: 3px; font-size: 11.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bo-metrics .bs.hot b { color: #a9baff; }
.bo-trend { border-left: 1px solid var(--line-soft); padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; }
.bo-trend .between { font-size: 11.5px; color: var(--muted); }
.btrend { display: flex; align-items: flex-end; gap: 3px; height: 38px; margin-top: 10px; }
.btrend i { flex: 1; min-height: 2px; border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #5268c8, #1b2340); }
.bo-facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-soft); }
.bo-facts > div { padding: 11px 18px; border-left: 1px solid var(--line-soft); min-width: 0; }
.bo-facts > div:first-child { border-left: 0; }
.bo-facts span { display: block; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.bo-facts b { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 500; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.subhead { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; border-top: 1px solid var(--line); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.panel-title h2 .count { margin-left: 5px; font-size: 11.5px; font-weight: 450; color: var(--dim); }

details.finding > summary { grid-template-columns: 86px minmax(0, 1fr) 44px 112px 104px; gap: 12px; padding: 14px 18px; }
details.finding > summary:hover, details.finding[open] > summary { background: #0b0b0b; }
.fscore { font-size: 12.5px; font-weight: 550; color: var(--text); }
.fdate { font-size: 11.5px; text-align: right; }
.fev { padding: 2px 18px 22px; }
.fev-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.fev-grid.with-shot { grid-template-columns: 340px minmax(0, 1fr); align-items: start; }
.fev-grid .shot { margin: 0; max-width: none; }
.fev .kv { grid-template-columns: 136px minmax(0, 1fr); gap: 7px 14px; }
.fev .snippet { margin-top: 16px; }
.fev .actions { margin-top: 18px; }

.brand-settings-body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(230px, 0.55fr); gap: 28px; align-items: start; }
.brand-settings-body form { min-width: 0; }
.checkgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 20px; margin: 4px 0 16px; }
.checkgrid .check { margin: 0; font-size: 12px; }
.brand-side { border-left: 1px solid var(--line-soft); padding-left: 22px; font-size: 12px; color: var(--muted); }
.brand-side .between { margin-bottom: 9px; }
.brand-side .between span:last-child { color: var(--text); }
.addbox.danger { margin-top: 16px; padding-top: 12px; }
.addbox.danger > summary { color: var(--muted); }
.addbox.danger > summary::before { content: ""; }
.addbox.danger > summary:hover { color: #ffb4b4; }

.seg { background: #000; }
.seg a.on { background: #171717; }

@media (max-width: 860px) {
  .bo-body { grid-template-columns: 1fr; }
  .bo-metrics { grid-template-columns: 1fr 1fr; gap: 14px 0; }
  .bo-metrics .bs:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-soft); padding-top: 12px; }
  .bo-metrics .bs:nth-child(4) { border-top: 1px solid var(--line-soft); padding-top: 12px; }
  .bo-trend { border-left: 0; border-top: 1px solid var(--line-soft); }
  .bo-facts { grid-template-columns: 1fr 1fr; }
  .bo-facts > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line-soft); }
  .bo-facts > div:nth-child(4) { border-top: 1px solid var(--line-soft); }
  .fev-grid.with-shot { grid-template-columns: 1fr; }
  .brand-settings-body { grid-template-columns: 1fr; gap: 18px; }
  .brand-side { border-left: 0; border-top: 1px solid var(--line-soft); padding-left: 0; padding-top: 16px; }
}
@media (max-width: 700px) {
  .checkgrid { grid-template-columns: 1fr; }
  details.finding > summary { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 13px 16px; }
  details.finding > summary > span:nth-child(1) { grid-column: 1; grid-row: 1; }
  details.finding > summary > span:nth-child(2) { grid-column: 1; grid-row: 2; font-weight: 550; }
  details.finding > summary > span:nth-child(4) { grid-column: 2; grid-row: 1 / span 2; }
  details.finding > summary > span:nth-child(3),
  details.finding > summary > span:nth-child(5) { display: none; }
  .fev { padding: 2px 16px 18px; }
  .fev-grid .shot { max-width: 100%; }
}


/* --------------------------------------------------------------- team page */
.team-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: start; }
.team-people { padding: 0; overflow: hidden; }
.team-top { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.team-top h2 { font-size: 15px; font-weight: 550; letter-spacing: -0.01em; }
.team-top .meta { display: block; margin-top: 2px; font-size: 11.5px; }
.team-top > .meta { margin-top: 0; flex: none; color: var(--muted); }

.team-link { display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  border-bottom: 1px solid var(--line-soft); background: #070707; }
.team-link > span { flex: none; font-size: 11px; color: var(--muted); }
.team-link input { flex: 1; min-width: 0; height: 28px; margin: 0; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 6px; background: #000;
  font-family: var(--mono); font-size: 10.5px; color: var(--muted); }

.team-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 104px 66px;
  gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); }
.team-row:last-child { border-bottom: 0; }
.avatar { width: 28px; height: 28px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--line); border-radius: 7px; background: #080808;
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.03em; color: var(--muted); }
.who { min-width: 0; }
.who b { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who > span { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 11px;
  color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who .chip { flex: none; padding: 1px 5px; font-size: 9px; }
.role { min-width: 0; font-size: 11.5px; color: var(--muted); }
.role form { display: block; }
.role-label { font-size: 11.5px; color: var(--muted); }
.select-inline { height: 28px; padding: 0 6px; font-size: 11.5px; background: #000; }
.act { text-align: right; }
.act form { display: inline; }
.act .btn { padding: 0 8px; height: 27px; font-size: 10.5px; }
.team-row.pending .avatar { color: var(--dim); }
.team-row.pending .who b { color: var(--muted); font-weight: 450; }

.team-invite { padding: 0; }
.team-invite .panel-title { padding: 14px 16px 0; border-bottom: 0; }
.team-invite .panel-body { padding: 14px 16px; }
.team-invite .form-row { margin-bottom: 12px; }
.team-invite .hint { margin: 8px 0 0; }

.team-activity-wrap { border-top: 1px solid var(--line); }
.team-activity-wrap > summary { display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; list-style: none; cursor: pointer; font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.team-activity-wrap > summary::-webkit-details-marker { display: none; }
.team-activity-wrap > summary .count { color: var(--muted); }
.team-activity { display: grid; grid-template-columns: 8px minmax(0, 1fr) 90px; gap: 9px;
  align-items: center; padding: 7px 16px; border-top: 1px solid var(--line-soft);
  font-size: 11.5px; color: var(--muted); }
.team-activity .dot { width: 4px; height: 4px; border-radius: 50%; background: #3b3b3b; }
.team-activity b { color: var(--text); font-weight: 500; }
.team-activity time { font-size: 10.5px; color: var(--dim); text-align: right; }

@media (max-width: 980px) {
  .team-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .team-row { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 6px 9px; }
  .team-row .avatar { grid-row: 1 / span 2; }
  .team-row .role { grid-column: 2; grid-row: 2; }
  .team-row .act { grid-column: 3; grid-row: 1 / span 2; }
  .who > span { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
  .team-activity { grid-template-columns: 8px minmax(0, 1fr); }
  .team-activity time { grid-column: 2; text-align: left; }
}


/* ------------------------------------------------------------ reports page */
.reports-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.reports-layout > .panel { min-width: 0; }
.report-summary { padding: 0; }
.rep-kpis { display: grid; grid-template-columns: repeat(3, 1fr); padding: 16px; gap: 10px; }
.rep-kpis b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.rep-kpis span { display: block; margin-top: 3px; font-size: 10.5px; color: var(--dim); }
.rep-rate { padding: 0 16px 14px; }
.rep-rate .between { margin-bottom: 8px; font-size: 11.5px; color: var(--muted); }
.rep-rate b { color: var(--text); font-weight: 500; }
.rep-facts { border-top: 1px solid var(--line-soft); padding: 12px 16px; font-size: 11.5px; color: var(--muted); }
.rep-facts .between + .between { margin-top: 8px; }
.rep-facts span:last-child { color: var(--text); }
.rep-note { margin: 0; padding: 12px 16px; border-top: 1px solid var(--line-soft); font-size: 11px; line-height: 1.55; color: var(--dim); }

@media (max-width: 980px) { .reports-layout { grid-template-columns: 1fr; } }


/* collapsible lower sections */
.foldpanel { padding: 0; overflow: hidden; }
.foldhead { display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  list-style: none; cursor: pointer; }
.foldhead::-webkit-details-marker { display: none; }
.foldhead > span:first-child { font-size: 15px; font-weight: 550; letter-spacing: -0.01em; }
.foldhead .meta { margin-left: auto; }
.foldhead::after { content: "+"; margin-left: 2px; font-size: 13px; color: var(--dim); }
details[open] > .foldhead::after { content: "−"; }
.scan-history { margin-top: 14px; border-top: 1px solid var(--line-soft); }
.scan-history > summary { display: flex; align-items: center; gap: 10px; padding: 12px 0 4px;
  list-style: none; cursor: pointer; font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--dim); }
.scan-history > summary::-webkit-details-marker { display: none; }
.scan-history > summary span { color: var(--muted); }
.scan-history > summary::after { content: "+"; margin-left: auto; font-size: 13px; }
.scan-history[open] > summary::after { content: "−"; }


/* ------------------------------------------------------- report detail */
.report-strip { margin-bottom: 14px; }
.report-strip .mono { font-size: 11px; }
.report-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: start; }
.report-message { min-width: 0; }
.report-message textarea { min-height: 430px; line-height: 1.7; }
.report-outcome { min-width: 0; }
.report-outcome .outcome-note { margin-top: 14px; padding: 10px 12px; border: 1px solid var(--line-soft);
  border-radius: 8px; font-size: 12px; color: var(--muted); line-height: 1.55; }
.report-outcome .hint { margin: 14px 0 0; }
.report-outcome .addbox { margin-top: 16px; }
@media (max-width: 980px) { .report-layout { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- analytics charts */
.overview-charts { margin-top: 14px; }
.achart.compact { padding-top: 12px; }
.achart.compact .achart-plot { height: 152px; }
.achart.compact .achart-y { top: 12px; bottom: 24px; }
.achart.compact .achart-foot { margin-top: 8px; padding-top: 8px; }
.riskmix.compact { gap: 11px; padding: 3px 0 5px; }
.overview-charts .rmfoot { margin-top: 10px; padding-top: 9px; }
.skchartrow { margin: 14px 0; }

.scan-summary { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 26px;
  align-items: center; padding: 10px 0 20px; border-bottom: 1px solid #1b1b1b; }
.scan-rate b { display: block; font-size: 32px; font-weight: 600; letter-spacing: -.03em;
  line-height: 1; font-variant-numeric: tabular-nums; }
.scan-rate span { display: block; margin-top: 7px; font-size: 11px; color: #8a8a8a; }
.ratio.big { height: 10px; gap: 0; border-radius: 999px; overflow: hidden; }
.ratio.big i { flex: none; height: 100%; border-radius: 0; }
.scan-facts { display: flex; justify-content: space-between; gap: 14px; padding-top: 10px;
  font-size: 11px; color: #8a8a8a; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .scan-summary { grid-template-columns: 1fr; gap: 14px; }
  .scan-rate b { font-size: 28px; }
}

.charts-2 { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  gap: 14px; margin-bottom: 14px; align-items: stretch; }
.charts-2 .panel { min-width: 0; height: 100%; display: flex; flex-direction: column; }
.charts-2 .panel > .panel-body { flex: 1; display: flex; flex-direction: column; }
.charts-2 .riskmix { flex: 1; align-content: center; }

.achart { position: relative; padding: 16px 0 0 38px; }
.achart-y { position: absolute; left: 0; top: 16px; bottom: 24px; width: 32px; }
.achart-y span { position: absolute; right: 0; transform: translateY(-50%);
  font-size: 10.5px; color: #6f6f6f; font-variant-numeric: tabular-nums; }
.achart-plot { position: relative; height: 210px; }
.achart-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.agrid { stroke: #1c1c1c; stroke-width: 1; vector-effect: non-scaling-stroke; }
.aarea { fill: rgba(123, 147, 255, .12); }
.aline { fill: none; stroke: #2f4dff; stroke-width: 2; vector-effect: non-scaling-stroke;
  stroke-linejoin: round; stroke-linecap: round; }
.adot { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #2f4dff;
  border: 2px solid #000000; transform: translate(-50%, -50%); opacity: .55; }
.adot:hover { opacity: 1; }
.adot.last { width: 7px; height: 7px; opacity: 1; box-shadow: 0 0 0 3px rgba(123, 147, 255, .14); }
.achart-x { position: relative; height: 16px; margin-top: 8px;
  font-size: 10.5px; color: #6f6f6f; font-variant-numeric: tabular-nums; }
.achart-x span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.achart-x span.first { transform: none; }
.achart-x span.last { transform: translateX(-100%); }
.achart-foot { display: flex; justify-content: space-between; border-top: 1px solid #1b1b1b;
  margin-top: 12px; padding-top: 10px; font-size: 11.5px; color: #8a8a8a; }
.achart-foot b { color: #f2f2f2; font-weight: 600; font-variant-numeric: tabular-nums; }

.riskmix { display: grid; gap: 14px; padding: 5px 0 7px; }
.rmrow { display: grid; grid-template-columns: 66px minmax(0, 1fr) 28px; align-items: center; gap: 10px; }
.rmname { font-size: 12px; color: #bdbdbd; }
.rmtrack { height: 8px; background: #161616; border-radius: 999px; overflow: hidden; }
.rmrow i { display: block; height: 100%; border-radius: 999px; background: #4a4a4a; }
.rmrow.critical i { background: #f07a7a; }
.rmrow.high i { background: #f2a35e; }
.rmrow.medium i { background: #2f4dff; }
.rmrow.low i { background: #666; }
.rmrow.off i { background: #2c2c2c; }
.rmn { font-size: 12px; color: #f2f2f2; text-align: right; font-variant-numeric: tabular-nums; }
.rmfoot { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid #1b1b1b;
  margin-top: 13px; padding-top: 10px; font-size: 10.5px; color: #6f6f6f; }

.kspark { height: 42px; border-bottom: 1px solid #202020; padding-bottom: 2px; }
.kspark svg { display: block; width: 100%; height: 38px; overflow: visible; }
.ksline { fill: none; stroke: #e8a86a; stroke-width: 1.6; vector-effect: non-scaling-stroke;
  stroke-linecap: round; stroke-linejoin: round; }
.ksdot { fill: #e8a86a; stroke: #000000; stroke-width: .8; }
.ratio { display: flex; gap: 2px; height: 7px; }
.ratio i { flex: 1; background: #242424; border-radius: 2px; }
.ratio i.ok { background: #5fd39a; }
.ratio i.bad { background: #f07a7a; }
.ratio i.warn { background: #f2c273; }
.ratio.one { display: block; background: #1a1a1a; border-radius: 999px; overflow: hidden; }
.ratio.one i { display: block; height: 100%; background: #2f4dff; border-radius: 999px; }
.ratio-foot { display: flex; justify-content: space-between; padding-top: 8px;
  font-size: 10.5px; color: #7a7a7a; font-variant-numeric: tabular-nums; }

.scanchart { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding-top: 8px; }
.scan-y { display: flex; flex-direction: column; justify-content: space-between; height: 140px;
  padding-bottom: 1px; font-size: 10.5px; color: #6f6f6f; text-align: right;
  font-variant-numeric: tabular-nums; }
.scanplot { position: relative; min-width: 0; }
.sgrid { position: absolute; left: 0; right: 0; top: 0; height: 140px; pointer-events: none; }
.sgrid i { position: absolute; left: 0; right: 0; border-top: 1px solid #1a1a1a; }
.sgrid i:nth-child(1) { top: 0; }
.sgrid i:nth-child(2) { top: 50%; }
.sgrid i:nth-child(3) { top: 100%; }
.scanbars { display: grid; align-items: end; gap: 8px; height: 140px; }
.sb { height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.sb i { display: block; width: min(42px, 72%); border-radius: 3px 3px 0 0; background: #3a3a3a;
  min-height: 3px; transition: filter .15s ease; }
.sb.ok i { background: #5fd39a; }
.sb.bad i { background: #f07a7a; }
.sb.warn i { background: #f2c273; }
.sb:hover i { filter: brightness(1.15); }
.scan-x { display: grid; gap: 8px; padding-top: 8px; }
.scan-x span { font-size: 9.5px; color: #6f6f6f; text-align: center; white-space: nowrap;
  font-variant-numeric: tabular-nums; }

@media (max-width: 900px) { .charts-2 { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .achart-plot { height: 170px; }
  .scanbars, .sgrid, .scan-y { height: 110px; }
  .scanbars { gap: 4px; }
  .scan-x { gap: 4px; }
  .scan-x span { font-size: 8px; }
  .rmrow { grid-template-columns: 60px minmax(0, 1fr) 24px; }
}



.shot-frame { position: relative; background: #1b1b1b; border-radius: 8px; overflow: hidden; min-height: 120px; }
.shot-frame::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #1b1b1b 25%, #272727 37%, #1b1b1b 63%); background-size: 400% 100%; animation: shimmer 1.5s ease infinite; }
.shot-frame img.shot { display: block; width: 100%; height: auto; opacity: 0; transition: opacity 260ms ease; }
.shot-frame.loaded::before { display: none; }
.shot-frame img.shot.loaded { opacity: 1; }



/* ------------------------------------------------ motion, skeletons, accents */
.mcard .delta-pill.purple { background: #2a2140; color: #c4a6ff; }

@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes pagefade { from { opacity: .55; } to { opacity: 1; } }
@keyframes drawline { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.content { animation: pagefade 200ms ease both; }
body.booted .content { animation: pagefade 240ms ease both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(10px) scale(.995); }
  to { opacity: 1; transform: none; }
}
@keyframes softpulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}
.content { transition: opacity .18s ease, transform .18s ease; }
.content > .panel { animation: rise .48s cubic-bezier(.2,.7,.2,1) both; }
.mcard:hover { background: radial-gradient(120% 90% at 14% 0%, rgba(123,147,255,.12), transparent 58%), #080808; }
body.page-exit .content { animation: none; opacity: 0; transform: translateY(-6px); pointer-events: none; }
.mcards .mcard { animation: rise .46s cubic-bezier(.2,.7,.2,1) both; }
.mcards .mcard:nth-child(2) { animation-delay: .055s; }
.mcards .mcard:nth-child(3) { animation-delay: .11s; }
.charts-2 > .panel { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
.charts-2 > .panel:nth-child(2) { animation-delay: .07s; }
.board .bcol { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
.board .bcol:nth-child(2) { animation-delay: .05s; }
.board .bcol:nth-child(3) { animation-delay: .1s; }
.board .bcol:nth-child(4) { animation-delay: .15s; }
.wpanel { animation: rise .42s cubic-bezier(.2,.7,.2,1) both; }
.wizard-aside .panel { animation: rise .48s cubic-bezier(.2,.7,.2,1) both; }
.wizard-aside .panel:nth-child(2) { animation-delay: .08s; }
.featgrid .feat { animation: rise .4s cubic-bezier(.2,.7,.2,1) both; }
.featgrid .feat:nth-child(2) { animation-delay: .05s; }
.featgrid .feat:nth-child(3) { animation-delay: .1s; }
.featgrid .feat:nth-child(4) { animation-delay: .15s; }

/* chart light and gradients */
.mcard {
  background: radial-gradient(120% 90% at 14% 0%, rgba(123, 147, 255, .07), transparent 56%), #000;
}
.charts-2 > .panel {
  position: relative; overflow: visible;
  background: radial-gradient(110% 100% at 12% 0%, rgba(123, 147, 255, .075), transparent 58%), #000;
}
.charts-2 > .panel:nth-child(2) {
  background: radial-gradient(110% 100% at 88% 0%, rgba(196, 166, 255, .065), transparent 58%), #000;
}
.charts-2 > .panel > * { position: relative; z-index: 1; }
.charts-2 > .panel::after { display: none; }
.aarea { fill: rgba(123, 147, 255, .10); }
.aline { filter: drop-shadow(0 0 6px rgba(123, 147, 255, .42)); }
.aline[pathLength], .mspark-line[pathLength], .ksline[pathLength] {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: drawline 1s cubic-bezier(.2,.7,.2,1) .08s forwards;
}
.mcard .mspark-line { filter: drop-shadow(0 0 5px rgba(123, 147, 255, .40)); }
.mcard .mspark.amber .mspark-line { filter: drop-shadow(0 0 5px rgba(232, 168, 106, .35)); }
.rmrow.critical i { background: linear-gradient(90deg, #f07a7a, #f2c273); }
.rmrow.high i { background: linear-gradient(90deg, #f2a35e, #e8c58a); }
.rmrow.medium i { background: linear-gradient(90deg, #2f4dff, #b5c3ff); }
.rmrow.low i { background: linear-gradient(90deg, #5a5a5a, #8a8a8a); }
.rmrow.off i { background: linear-gradient(90deg, #262626, #3a3a3a); }
.ratio i.ok, .ratio.big i.ok { background: linear-gradient(90deg, #3fbf83, #7ce3b3); }
.ratio i.bad, .ratio.big i.bad { background: linear-gradient(90deg, #cf5f66, #f09a9f); }
.ratio.one i { background: linear-gradient(90deg, #6f88ff, #b5c3ff); }

.chart-card svg polyline[pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawline 900ms ease .1s forwards; }

.skel {
  background: linear-gradient(90deg, #1b1b1b 25%, #272727 37%, #1b1b1b 63%);
  background-size: 400% 100%;
  animation: shimmer 1.5s ease infinite;
  border-radius: 8px;
}
.page-skel { display: block; }
.page-skel .skel-h1 { width: 240px; height: 24px; margin-bottom: 10px; }
.page-skel .skel-sub { width: 340px; max-width: 60%; height: 11px; margin-bottom: 22px; }
.page-skel .skel-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.page-skel .skel-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.page-skel .skel-pill { width: 88px; height: 30px; border-radius: 8px; }
.page-skel .skel-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.page-skel .skcard { height: 188px; background: var(--bg); border: 1px solid #1f1f1f; border-radius: 12px;
  padding: 16px; display: flex; flex-direction: column; }
.page-skel .skrow { display: flex; align-items: center; gap: 10px; }
.page-skel .skico { width: 26px; height: 26px; border-radius: 7px; flex: 0 0 auto; }
.page-skel .sklabel { width: 110px; height: 10px; }
.page-skel .skpill { width: 54px; height: 20px; border-radius: 999px; margin-left: auto; }
.page-skel .skvalue { width: 74px; height: 30px; margin-top: 18px; }
.page-skel .sksub { width: 160px; height: 9px; margin-top: 9px; }
.page-skel .skchart { margin-top: auto; height: 38px; display: flex; align-items: flex-end; gap: 4px; }
.page-skel .skchart span { flex: 1; border-radius: 2px; height: 45%; background: #141414; }
.page-skel .skchart span:nth-child(3n) { height: 80%; }
.page-skel .skchart span:nth-child(4n) { height: 25%; }
.page-skel .skchart span:nth-child(5n) { height: 60%; }
.page-skel .skchart.tall { height: 190px; margin-top: 14px; }

.page-skel .skcol { background: #000000; border: 1px solid #1a1a1a; border-radius: 14px; padding: 12px; }
.page-skel .skcolhead { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.page-skel .skdot { width: 14px; height: 14px; border-radius: 4px; }
.page-skel .skcount { width: 20px; height: 15px; border-radius: 4px; }
.page-skel .skb { height: 158px; background: var(--bg); border: 1px solid #1f1f1f; border-radius: 10px;
  padding: 14px; margin-bottom: 8px; display: flex; flex-direction: column; }
.page-skel .sktitle { width: 76%; height: 11px; margin-top: 10px; }
.page-skel .skbar { height: 5px; border-radius: 999px; margin-top: 10px; }
.page-skel .skfoot { margin-top: auto; padding-top: 9px; border-top: 1px solid #1a1a1a; display: flex; justify-content: space-between; }
.page-skel .skmeta { width: 50px; height: 8px; }

body.page-loading .content > *:not(#page-skeleton) { display: none !important; }
#page-skeleton[hidden] { display: none; }

/* search palette */
.searchbox .sph { display: block; }
.palette { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.62);
  display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px; }
.palette[hidden] { display: none; }
.palette-box { width: min(620px, 100%); background: #000000; border: 1px solid #2e2e2e;
  border-radius: 14px; overflow: hidden; box-shadow: 0 30px 90px rgba(0,0,0,.65); }
.palette-head { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-bottom: 1px solid #1f1f1f; color: #8a8a8a; }
.palette-head input { flex: 1; background: transparent; border: 0; outline: 0; box-shadow: none;
  color: #f5f5f5; font: 14px/1.4 var(--sans); padding: 0; }
.pal-close { height: 24px; padding: 0 8px; border: 1px solid #2c2c2c; border-radius: 6px;
  background: #0b0b0b; color: #9a9a9a; font: 11px/1 var(--sans); cursor: pointer; }
.pal-close:hover { color: #fff; border-color: #3d3d3d; }
.palette-results { max-height: 56vh; overflow: auto; padding: 6px; }
.pal-group { margin-bottom: 2px; }
.pal-label { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #6f6f6f; padding: 9px 10px 5px; }
.pal-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px;
  color: #d6d6d6; font-size: 13px; }
.pal-item:hover, .pal-item.on { background: #141414; color: #fff; }
.pal-dot { width: 7px; height: 7px; border-radius: 2px; background: #3a3a3a; flex: 0 0 auto; }
.pal-dot.live { background: #f08a8a; }
.pal-dot.review { background: #f2c273; }
.pal-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-meta { font-size: 11.5px; color: #8a8a8a; white-space: nowrap; }
.pal-empty { padding: 26px 12px; color: #8a8a8a; font-size: 13px; text-align: center; }
.palette-foot { display: flex; gap: 16px; padding: 9px 14px; border-top: 1px solid #1f1f1f; color: #757575; font-size: 11px; }
.pal-brand { margin-left: auto; color: #6f6f6f; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .aline[pathLength], .mspark-line[pathLength], .ksline[pathLength] {
    stroke-dasharray: none !important; stroke-dashoffset: 0 !important;
  }
}
@media (max-width: 900px) {
  .page-skel .skel-row { grid-template-columns: 1fr; }
  .page-skel .skel-board { grid-template-columns: 1fr; }
  .page-skel .skcard { height: 150px; }
  .palette { padding: 6vh 10px; }
  .palette-results { max-height: 64vh; }
}



/* ------------------------------------------------ mobile shell */
@media (max-width: 900px) {
  .shell { display: block; }
  .rail {
    position: static; height: auto; flex-direction: row; align-items: center;
    gap: 6px; overflow-x: auto; padding: 10px 12px; border-right: 0;
    border-bottom: 1px solid var(--line-soft); scrollbar-width: none;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail { -webkit-mask-image: linear-gradient(to right, #000 94%, transparent); mask-image: linear-gradient(to right, #000 94%, transparent); }
  .rail .brand { height: 34px; margin: 0 6px 0 0; padding: 0 4px; font-size: 16px; flex: 0 0 auto; }
  .rail .brand svg, .rail .brand .mark { width: 20px; height: 20px; }
  .rail .nav-group { display: flex; align-items: center; gap: 2px; margin: 0; }
  .rail .nav-label, .rail .spacer, .rail .brands-nav { display: none; }
  .rail a.nav { height: 32px; padding: 0 8px; margin: 0; white-space: nowrap; }
  .rail a.nav .label { display: inline; max-width: 104px; overflow: hidden; text-overflow: ellipsis; }
  .rail .who { border-top: 0; padding: 0; margin-left: auto; }
  .rail .who > div { display: none; }
  .rail a.nav .count { display: none; }
  .topbar { flex-wrap: wrap; height: auto; padding: 10px 14px; gap: 8px; }
  .crumbs { order: 1; }
  .topactions { order: 2; margin-left: auto; }
  .topactions .tool span { display: none; }
  .topbar .searchbox { order: 3; width: 100%; max-width: none; margin: 0; }
  .content { padding: 18px 14px 40px; }
  .page-head { margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
  .page-head h1 { font-size: 21px; }
  .page-head .actions { padding-top: 0; }
  .mcards { gap: 10px; }
  .mcard { min-height: 0; }
  .bcol { min-height: 0; }
  .panel { overflow-x: auto; }
}



/* ------------------------------------------------ reference dashboard (fintrack) */

.mcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.mcard {
  background: var(--bg); border: 1px solid #2a2a2a; border-radius: 12px;
  padding: 16px 16px 14px; min-height: 188px; display: flex; flex-direction: column;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}
.mcard:hover { border-color: #3a3a3a; background: #101010; transform: translateY(-1px); }
.mcard .mtop { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mcard .mtitle { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #cfcfcf; }
.mcard .mico { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
  background: #242424; border: 1px solid #333333; color: #d7d7d7; }
.mcard .mico.amber { color: #f5b06b; background: #2b2114; border-color: #3d2f1c; }
.mcard .mico.blue { color: #94a9ff; background: #18203a; border-color: #273252; }
.mcard .mico.green { color: #6fd6a1; background: #15291f; border-color: #213a2c; }
.mcard .mico.purple { color: #c4a6ff; background: #241b38; border-color: #35294f; }
.mcard .mval { font-size: 36px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; margin-top: 18px; font-variant-numeric: tabular-nums; }
.mcard .msub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.mcard .mvis { margin-top: auto; padding-top: 16px; }
.mcard .mspark { position: relative; height: 46px; border-bottom: 1px solid #1f1f1f; padding-bottom: 2px; }
.mcard .mspark svg { display: block; width: 100%; height: 42px; overflow: visible; }
.mcard .mspark-area { fill: rgba(123, 147, 255, .10); }
.mcard .mspark-line { fill: none; stroke: #2f4dff; stroke-width: 1.6; vector-effect: non-scaling-stroke;
  stroke-linecap: round; stroke-linejoin: round; }
.mcard .mspark.amber .mspark-area { fill: rgba(232, 168, 106, .10); }
.mcard .mspark.amber .mspark-line { stroke: #e8a86a; }
.mcard .mspark-dot { position: absolute; right: 0; width: 6px; height: 6px; border-radius: 50%;
  background: #2f4dff; transform: translate(50%, -50%); box-shadow: 0 0 0 3px rgba(123, 147, 255, .12); }
.mcard .mspark.amber .mspark-dot { background: #e8a86a; box-shadow: 0 0 0 3px rgba(232, 168, 106, .12); }
.mcard .mspark-foot { display: flex; justify-content: space-between; gap: 10px; padding-top: 8px;
  font-size: 10.5px; color: #7a7a7a; font-variant-numeric: tabular-nums; }

.mcard .delta-pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px;
  border-radius: 999px; font-size: 11.5px; font-weight: 500; background: var(--ok-soft); color: var(--ok); }
.mcard .delta-pill.flat { background: #1e1e1e; color: #a5a5a5; }
.mcard .delta-pill.down { background: var(--danger-soft); color: var(--danger); }
.mcard .dots { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px 0; height: 38px; align-items: end; }
.mcard .dots .dcol { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.mcard .dots i { display: block; width: 7px; height: 7px; border-radius: 2px; background: #2c2c2c; }
.mcard .dots i.on { background: #e8a86a; }
.mcard .bars { display: flex; align-items: flex-end; gap: 4px; height: 48px; min-width: 0;
  border-bottom: 1px solid #262626; padding-bottom: 3px; }
.mcard .bars i { flex: 1 1 0; min-width: 0; min-height: 3px; border-radius: 2px; background: #2a3556; }
.mcard .bars i.on { background: #2f4dff; }
.mcard .track { height: 7px; border-radius: 999px; background: #232323; overflow: hidden; }
.mcard .track i { display: block; height: 100%; border-radius: 999px; background: #5fd39a; }

.tabrow { display: flex; align-items: center; gap: 14px; margin: 10px 0 18px; padding: 3px 0; }
.tabrow .tablabel { font-size: 12.5px; color: #8a8a8a; white-space: nowrap; }
.tabrow .tabsep { width: 1px; height: 20px; background: var(--line); }
.tabs { display: flex; align-items: center; gap: 4px; }
.tabs a { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px;
  border-radius: 8px; color: #a7a7a7; font-size: 12.5px; }
.tabs a:hover { background: #1a1a1a; color: var(--text); }
.tabs a.on { background: #1e1e1e; color: var(--text); }
.tabrow .tabright { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tabrow .ghostbtn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 12.5px; background: transparent; }
.tabrow .ghostbtn:hover { color: var(--text); border-color: #3a3a3a; }

.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.bcol { background: #000000; border: 1px solid #1f1f1f; border-radius: 14px; padding: 12px; min-height: 320px; }
.bcol-head { display: flex; align-items: center; gap: 8px; padding: 2px 2px 10px; }
.bcol-head .bic { color: #9a9a9a; display: grid; place-items: center; }
.bcol-head b { font-size: 12.5px; font-weight: 600; letter-spacing: -0.005em; }
.bcol-head .n { min-width: 19px; height: 18px; padding: 0 5px; border-radius: 5px; background: #232323;
  color: #bdbdbd; font: 500 11px/18px var(--sans); text-align: center; }
.bcol-head a.more { margin-left: auto; color: #7c7c7c; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; }
.bcol-head a.more:hover { background: #1c1c1c; color: var(--text); }
.bcol-cards { display: flex; flex-direction: column; gap: 8px; }

.bcard { display: flex; flex-direction: column; min-height: 158px; background: var(--bg); border: 1px solid #262626; border-radius: 10px; padding: 14px;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease; }
.bcard:hover { border-color: #3d3d3d; background: #111111; transform: translateY(-1px); }
.bcard .brow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bcard .bcat { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: #9e9e9e; }
.bcard .bcat .cic { color: #b3b3b3; display: inline-grid; place-items: center; }
.bcard .bpill { display: inline-flex; align-items: center; height: 21px; padding: 0 8px; border-radius: 999px;
  font-size: 11px; font-weight: 500; white-space: nowrap; }
.bcard .bpill.live { background: #3d1d20; color: #ff9fa0; }
.bcard .bpill.review { background: #3a2a12; color: #f2c273; }
.bcard .bpill.filed { background: #17392a; color: #77e6ab; }
.bcard .bpill.cleared { background: #2a2a2a; color: #b0b0b0; }
.bcol-head .bic.live { color: #ff9fa0; }
.bcol-head .bic.review { color: #f2c273; }
.bcol-head .bic.filed { color: #77e6ab; }
.bcol-head .bic.cleared { color: #a8a8a8; }
.bcard .bdom { margin-top: 9px; font-size: 12.5px; color: #cfcfcf; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcard .bnum { display: flex; align-items: baseline; gap: 6px; margin-top: 3px;
  font-size: 30px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bcard .bnum span { font-size: 11px; font-weight: 500; color: #808080; letter-spacing: 0.02em; text-transform: uppercase; }
.bcard .btrack { margin-top: 10px; height: 5px; border-radius: 999px; background: #262626; overflow: hidden; }
.bcard .btrack i { display: block; height: 100%; border-radius: 999px; background: #f08a8a; }
.bcard .btrack.review i { background: #f2c273; }
.bcard .btrack.filed i { background: #77e6ab; }
.bcard .btrack.cleared i { background: #8a8a8a; }
.bcard .bfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: auto; padding-top: 9px; border-top: 1px solid #242424; font-size: 11px; color: #8b8b8b; }
.bcard .bfoot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcol-empty { border: 1px dashed #242424; border-radius: 10px; padding: 18px 12px; text-align: center;
  font-size: 11.5px; color: #777; }

.avastack { display: flex; align-items: center; }
.avastack .av { width: 28px; height: 28px; border-radius: 50%; background: #1e1e1e; border: 2px solid var(--bg);
  display: grid; place-items: center; font-size: 10.5px; font-weight: 600; color: #cfcfcf; margin-left: -8px; }
.avastack .av:first-child { margin-left: 0; }
.avastack .av.more { background: #262626; color: #bdbdbd; }

@media (max-width: 1180px) {
  .mcards { grid-template-columns: 1fr 1fr; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .mcards, .board { grid-template-columns: 1fr; }
  .tabrow { flex-wrap: wrap; gap: 8px; }
  .tabrow .tabright { margin-left: 0; }
  .mcard { min-height: 0; }
}

