/* ============================================================
   SentinelScan — design tokens
   ============================================================ */
:root {
  --bg: #f5f6f9;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --surface-3: #f2f4f8;
  --border: #e6e9ef;
  --border-strong: #d8dde7;
  --text: #0e1726;
  --text-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;

  --primary: #4f46e5;
  --primary-ink: #4338ca;
  --primary-soft: #eef0ff;
  --cyan: #06b6d4;

  --critical: #dc2626;
  --critical-soft: #fdecec;
  --high: #ea580c;
  --high-soft: #fdf0e8;
  --medium: #d97706;
  --medium-soft: #fdf5e3;
  --low: #0284c7;
  --low-soft: #e8f4fc;
  --ok: #059669;
  --ok-soft: #e7f7f0;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px -12px rgba(16, 24, 40, 0.12);
  --shadow-lg: 0 24px 60px -18px rgba(15, 23, 42, 0.28);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* ============================================================
   Layout
   ============================================================ */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 244px;
  flex: 0 0 244px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px 14px 14px;
  color: #cbd5e1;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(99, 102, 241, 0.22), transparent 60%),
    radial-gradient(90% 40% at 100% 100%, rgba(6, 182, 212, 0.12), transparent 60%),
    #0b1120;
  border-right: 1px solid rgba(148, 163, 184, 0.12);
}

.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 16px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(99, 102, 241, 0.28), rgba(6, 182, 212, 0.16));
  border: 1px solid rgba(129, 140, 248, 0.32);
  color: #c7d2fe;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.brand-mark svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { color: #f1f5f9; font-size: 15px; letter-spacing: -0.01em; font-weight: 650; }
.brand-text span { font-size: 11px; color: #7c8aa0; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 158px; }

.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: #5b6a80;
  padding: 14px 10px 6px;
}
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 9px;
  color: #a8b6c9; font-size: 13.5px; font-weight: 500;
  position: relative; transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: rgba(148, 163, 184, 0.08); color: #e2e8f0; }
.nav a.active {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.22), rgba(99, 102, 241, 0.08));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.22);
}
.nav a.active::before {
  content: ""; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 18px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #818cf8, #22d3ee);
}
.nav a.active .ic { color: #c7d2fe; }
.nav-count {
  margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600;
  padding: 1px 7px; border-radius: 20px;
  background: rgba(148, 163, 184, 0.14); color: #b6c2d4;
}
.nav-count.danger { background: rgba(220, 38, 38, 0.18); color: #fca5a5; }
.nav-dot {
  margin-left: auto; width: 7px; height: 7px; border-radius: 50%;
  background: #22d3ee; box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.16);
}
.nav-dot:empty, .nav-dot[hidden] { display: none; }

.side-foot { display: flex; flex-direction: column; gap: 10px; }
.plan-card {
  border-radius: 12px; padding: 13px;
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.16), rgba(15, 23, 42, 0.2));
  border: 1px solid rgba(129, 140, 248, 0.22);
}
.plan-card-head { display: flex; align-items: center; justify-content: space-between; }
.plan-name { color: #e2e8f0; font-size: 13px; font-weight: 600; }
.plan-badge {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em;
  padding: 2px 6px; border-radius: 5px;
  background: rgba(34, 211, 238, 0.16); color: #67e8f9;
  border: 1px solid rgba(34, 211, 238, 0.24);
}
.plan-usage { margin: 10px 0 12px; }
.plan-usage-row { display: flex; justify-content: space-between; font-size: 11.5px; color: #94a3b8; margin-bottom: 6px; }
.plan-usage-row b { color: #e2e8f0; font-weight: 600; }
.plan-bar { height: 5px; border-radius: 99px; background: rgba(148, 163, 184, 0.2); overflow: hidden; }
.plan-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #818cf8, #22d3ee); }
.btn-upgrade {
  width: 100%; height: 32px; border-radius: 8px; font-size: 12.5px; font-weight: 600;
  color: #0b1120; background: #f1f5f9; border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: pointer; transition: 0.15s;
}
.btn-upgrade:hover { background: #fff; transform: translateY(-1px); }

.side-user {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 8px; border-radius: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}
.avatar {
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto;
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 600; color: #e0e7ff;
  background: linear-gradient(145deg, #4338ca, #1e293b);
  border: 1px solid rgba(129, 140, 248, 0.3);
}
.side-user-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.side-user-text strong { font-size: 12.5px; color: #e2e8f0; font-weight: 550; }
.side-user-text span { font-size: 10.5px; color: #7b8899; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn.tiny { width: 26px; height: 26px; margin-left: auto; border-color: transparent; color: #7b8899; background: transparent; }
.icon-btn.tiny:hover { background: rgba(148, 163, 184, 0.1); color: #e2e8f0; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 64px; flex: 0 0 64px;
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 0 26px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.crumb { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.crumb .sep { width: 13px; height: 13px; color: var(--faint); }
.crumb strong { color: var(--text); font-weight: 600; font-size: 13.5px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.top-search {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 10px; width: 282px;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--surface-3); color: var(--faint);
  transition: 0.16s;
}
.top-search:focus-within { background: #fff; border-color: #c7cdfb; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); width: 300px; }
.top-search input {
  border: 0; outline: 0; background: transparent; flex: 1; min-width: 0;
  font-size: 13px; color: var(--text); font-family: inherit;
}
.top-search input::placeholder { color: var(--faint); }
.top-search kbd {
  font-family: var(--sans); font-size: 10.5px; color: var(--faint);
  border: 1px solid var(--border-strong); border-radius: 5px;
  padding: 1px 5px; background: #fff;
}

.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 9px; border: 1px solid var(--border);
  background: #fff; color: var(--muted); cursor: pointer;
  transition: 0.15s; position: relative; flex: 0 0 auto;
}
.icon-btn:hover { color: var(--primary); border-color: #c7cdfb; background: var(--primary-soft); }
.icon-btn.has-dot::after {
  content: ""; position: absolute; top: 8px; right: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  background: #ef4444; box-shadow: 0 0 0 2px #fff;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 9px;
  font-size: 13px; font-weight: 550; cursor: pointer;
  border: 1px solid transparent; transition: 0.16s; white-space: nowrap;
}
.btn .ic { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(180deg, #5b53f0, #4f46e5);
  color: #fff;
  box-shadow: 0 1px 2px rgba(79, 70, 229, 0.35), 0 8px 18px -10px rgba(79, 70, 229, 0.85);
}
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: #fff; border-color: var(--border-strong); color: var(--text-2); }
.btn-ghost:hover { border-color: #c7cdfb; color: var(--primary); background: var(--primary-soft); }
.btn-soft { background: var(--primary-soft); color: var(--primary-ink); border-color: #dfe2ff; }
.btn-soft:hover { background: #e6e9ff; }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; }
.btn-danger { background: #fff; border-color: #f3cccc; color: #b91c1c; }
.btn-danger:hover { background: #fef2f2; }

/* ============================================================
   Page scaffolding
   ============================================================ */
.view { padding: 24px 26px 64px; width: 100%; max-width: 1480px; margin: 0 auto; }

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
}
.page-head h1 { font-size: 21px; font-weight: 650; letter-spacing: -0.02em; }
.page-head p { font-size: 12.8px; color: var(--muted); margin-top: 4px; }
.page-head .live {
  display: inline-flex; align-items: center; gap: 5px; color: var(--ok);
  font-size: 11.5px; font-weight: 550;
}
.page-head .live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.05); }
}
.head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.seg {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--surface-3); border: 1px solid var(--border); border-radius: 9px;
}
.seg button {
  height: 28px; padding: 0 11px; border: 0; border-radius: 6px;
  background: transparent; color: var(--muted); font-size: 12.5px;
  font-weight: 500; cursor: pointer; transition: 0.14s;
}
.seg button.active { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); font-weight: 550; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--border);
}
.card-head h3 { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.card-head .sub { font-size: 11.8px; color: var(--faint); margin-top: 2px; }
.card-body { padding: 16px 18px; }
.card-link { font-size: 12.5px; color: var(--primary); font-weight: 550; display: inline-flex; align-items: center; gap: 3px; cursor: pointer; }
.card-link:hover { text-decoration: underline; }

.grid-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.grid-main { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; margin-bottom: 14px; }
.grid-half { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-half > .card { display: flex; flex-direction: column; }
.grid-half .scan-foot { margin-top: auto; }

/* ============================================================
   KPI
   ============================================================ */
.kpi { padding: 16px 17px 15px; position: relative; overflow: hidden; }
.kpi::after {
  content: ""; position: absolute; inset: 0 0 auto auto; width: 120px; height: 120px;
  background: radial-gradient(circle at 100% 0, rgba(99, 102, 241, 0.07), transparent 70%);
  pointer-events: none;
}
.kpi-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.kpi-label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.kpi-icon {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
}
.kpi-icon .ic { width: 17px; height: 17px; }
.kpi-icon.amber { background: var(--medium-soft); color: #b45309; }
.kpi-icon.red { background: var(--critical-soft); color: var(--critical); }
.kpi-icon.cyan { background: #e6f7fb; color: #0e7490; }
.kpi-value {
  font-size: 29px; font-weight: 650; letter-spacing: -0.03em;
  margin-top: 10px; display: flex; align-items: baseline; gap: 5px;
  font-variant-numeric: tabular-nums;
}
.kpi-value small { font-size: 12px; font-weight: 500; color: var(--faint); letter-spacing: 0; }
.kpi-foot { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 11.8px; color: var(--faint); padding-right: 78px; line-height: 1.45; }
.delta { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; font-size: 11.5px; }
.delta.up { color: var(--critical); }
.delta.down { color: var(--ok); }
.delta.flat { color: var(--muted); }
.delta.good { color: var(--ok); }
.delta.bad { color: var(--critical); }
.delta .ic { width: 12px; height: 12px; stroke-width: 2.2; }
.kpi-spark { position: absolute; right: 14px; bottom: 12px; opacity: 0.9; }

/* ============================================================
   Charts
   ============================================================ */
.legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); }
.legend i { width: 7px; height: 7px; border-radius: 2px; display: inline-block; }

.chart-wrap { padding: 6px 4px 0; }
.chart-wrap svg { display: block; width: 100%; height: auto; overflow: visible; }
.bar-rect { transition: opacity 0.15s; }
.bar-rect:hover { opacity: 0.8; }
.axis-label { font-size: 10.5px; fill: var(--faint); font-family: var(--sans); }
.grid-line { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 4; }

.donut-wrap { display: flex; align-items: center; gap: 18px; padding: 4px 0 2px; }
.donut { flex: 0 0 auto; }
.donut-center-value { font-size: 25px; font-weight: 650; fill: var(--text); letter-spacing: -0.02em; }
.donut-center-label { font-size: 10.5px; fill: var(--faint); }
.donut-legend { flex: 1; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.donut-legend-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.donut-legend-row .name { color: var(--text-2); }
.donut-legend-row .val { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.donut-legend-row .pct { color: var(--faint); font-size: 11px; width: 34px; text-align: right; }

.mini-hbars { display: flex; flex-direction: column; gap: 11px; }
.mini-hbar-row { display: grid; grid-template-columns: 74px 1fr 32px; align-items: center; gap: 9px; font-size: 12.3px; }
.mini-hbar-row .name { color: var(--text-2); }
.mini-hbar-row .track { height: 7px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.mini-hbar-row .track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #6366f1, #a5b4fc); }
.mini-hbar-row .num { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 550; }

/* ============================================================
   Tables
   ============================================================ */
.table-wrap { width: 100%; overflow-x: auto; }
table.data { width: 100%; border-collapse: separate; border-spacing: 0; }
table.data th {
  text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted);
  letter-spacing: 0.02em; padding: 9px 14px; background: var(--surface-2);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.data th:first-child { padding-left: 18px; }
table.data th:last-child { padding-right: 18px; }
table.data td {
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--text-2); vertical-align: middle;
}
table.data td:first-child { padding-left: 18px; }
table.data td:last-child { padding-right: 18px; }
table.data tbody tr { transition: background 0.12s; }
table.data tbody tr:hover { background: #f8fafc; }
table.data tbody tr.clickable { cursor: pointer; }
table.data tbody tr:last-child td { border-bottom: 0; }
.cell-strong { color: var(--text); font-weight: 550; }
.cell-mono { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.cell-sub { color: var(--faint); font-size: 11.5px; margin-top: 2px; }
.nowrap { white-space: nowrap; }
.row-actions { display: flex; align-items: center; gap: 6px; opacity: 0.55; transition: opacity 0.15s; }
tr:hover .row-actions { opacity: 1; }

/* badges & pills */
.sev { display: inline-flex; align-items: center; gap: 6px; font-size: 12.3px; font-weight: 600; white-space: nowrap; }
.sev .dot { width: 7px; height: 7px; border-radius: 50%; }
.sev-critical { color: var(--critical); } .sev-critical .dot { background: var(--critical); box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12); }
.sev-high { color: var(--high); } .sev-high .dot { background: var(--high); box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12); }
.sev-medium { color: var(--medium); } .sev-medium .dot { background: var(--medium); box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12); }
.sev-low { color: var(--low); } .sev-low .dot { background: var(--low); box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12); }

.pill {
  display: inline-flex; align-items: center; gap: 4px;
  height: 21px; padding: 0 8px; border-radius: 6px;
  font-size: 11.3px; font-weight: 550; white-space: nowrap;
  background: var(--surface-3); color: var(--muted);
}
.pill-ok { background: var(--ok-soft); color: #047857; }
.pill-run { background: #eef0ff; color: var(--primary-ink); }
.pill-warn { background: var(--medium-soft); color: #b45309; }
.pill-danger { background: var(--critical-soft); color: #b91c1c; }
.pill-info { background: var(--low-soft); color: #0369a1; }
.pill .ic { width: 12px; height: 12px; }

.tag {
  display: inline-flex; align-items: center; height: 19px; padding: 0 7px;
  border-radius: 5px; border: 1px solid var(--border);
  font-size: 10.8px; color: var(--muted); background: #fff;
}
.tag-row { display: flex; gap: 4px; flex-wrap: wrap; }

.mono-chip {
  font-family: var(--mono); font-size: 11.5px;
  background: var(--surface-3); border-radius: 5px; padding: 1px 6px; color: var(--text-2);
}

/* ============================================================
   Scan list / progress
   ============================================================ */
.scan-list { display: flex; flex-direction: column; }
.scan-item { padding: 14px 18px; border-bottom: 1px solid var(--border); }
.scan-item:last-child { border-bottom: 0; }
.scan-item-head { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.scan-target { font-size: 13.2px; font-weight: 600; color: var(--text); font-family: var(--mono); letter-spacing: -0.01em; }
.scan-meta { font-size: 11.6px; color: var(--faint); display: flex; gap: 8px; flex-wrap: wrap; }
.scan-meta .dot-sep { color: var(--border-strong); }
.scan-progress-row { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.bar { height: 6px; border-radius: 99px; background: #eef1f6; overflow: hidden; flex: 1; }
.bar > i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #6366f1, #22d3ee);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.bar > i.run::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.bar-pct { font-size: 11.5px; font-weight: 600; color: var(--text-2); width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.bar.done > i { background: linear-gradient(90deg, #10b981, #34d399); }

.scan-foot {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 11px 18px; border-top: 1px dashed var(--border);
  background: var(--surface-2); border-radius: 0 0 14px 14px;
  font-size: 11.6px; color: var(--faint);
}

/* ============================================================
   Toolbars / filters
   ============================================================ */
.toolbar {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 13px 16px; border-bottom: 1px solid var(--border);
}
.field {
  display: flex; align-items: center; gap: 7px; height: 34px;
  padding: 0 10px; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; color: var(--faint); transition: 0.15s;
}
.field:focus-within { border-color: #c7cdfb; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.09); }
.field input { border: 0; outline: 0; font-size: 12.8px; font-family: inherit; color: var(--text); background: transparent; width: 190px; }
.field .ic { width: 15px; height: 15px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  height: 30px; padding: 0 11px; border-radius: 7px; cursor: pointer;
  border: 1px solid var(--border); background: #fff; color: var(--muted);
  font-size: 12.3px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px;
  transition: 0.14s;
}
.chip:hover { border-color: var(--border-strong); color: var(--text-2); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 2px 8px -3px rgba(79, 70, 229, 0.7); }
.chip .count { font-size: 11px; opacity: 0.75; font-variant-numeric: tabular-nums; }
.chip.active .count { opacity: 0.9; }

/* risk meter */
.risk-cell { display: flex; align-items: center; gap: 8px; min-width: 96px; }
.risk-num { font-weight: 650; font-size: 13px; font-variant-numeric: tabular-nums; width: 22px; }
.risk-track { height: 5px; width: 52px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.risk-track i { display: block; height: 100%; border-radius: 99px; }
.risk-high i { background: linear-gradient(90deg, #f87171, #dc2626); }
.risk-mid i { background: linear-gradient(90deg, #fbbf24, #d97706); }
.risk-low i { background: linear-gradient(90deg, #34d399, #059669); }

/* report cards */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-strip > div { padding: 14px 18px; border-right: 1px solid var(--border); }
.stat-strip > div:last-child { border-right: 0; }
.stat-strip .k { font-size: 11.8px; color: var(--muted); }
.stat-strip .v { font-size: 19px; font-weight: 650; margin-top: 4px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-strip .v small { font-size: 11.5px; font-weight: 500; color: var(--faint); margin-left: 4px; letter-spacing: 0; }

.report-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.report-card {
  padding: 16px 17px; display: flex; gap: 13px; align-items: flex-start;
  cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  position: relative; overflow: hidden;
}
.report-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.report-card.is-featured {
  grid-column: 1 / -1;
  background: linear-gradient(120deg, #fbfcff 0%, #ffffff 55%);
  border-color: #dfe4f6;
  padding: 20px 22px;
}
.report-card.is-lone { grid-column: 1 / -1; }
.report-card.is-featured::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, #4f46e5, #06b6d4);
}
.report-card.is-featured .report-icon { width: 46px; height: 54px; }
.report-card.is-featured .report-thumb { width: 220px; flex-basis: 220px; }
.report-card.is-featured .report-thumb-bars { height: 46px; }
.report-icon {
  width: 38px; height: 44px; border-radius: 6px; flex: 0 0 auto;
  background: linear-gradient(160deg, #eef0ff, #f8fafc);
  border: 1px solid #e0e4f7; display: grid; place-items: center; color: var(--primary);
}
.report-icon .ic { width: 19px; height: 19px; }
.report-body { flex: 1; min-width: 0; }
.report-title { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.report-card.is-featured .report-title { font-size: 15.5px; letter-spacing: -0.01em; }
.report-meta { font-size: 11.6px; color: var(--faint); }
.report-actions { display: flex; gap: 6px; margin-top: 11px; }
.report-thumb {
  width: 138px; flex: 0 0 138px; align-self: stretch; border-radius: 8px;
  border: 1px solid var(--border); background: #fff; padding: 11px 10px;
  display: flex; flex-direction: column; gap: 5px; opacity: 0.9;
}
.report-thumb > span { height: 4px; border-radius: 2px; background: #e8ecf4; display: block; }
.report-thumb > span:first-child { height: 6px; background: #dfe4f7; }
.report-thumb-bars { display: flex; align-items: flex-end; gap: 4px; height: 34px; margin-top: auto; }
.report-thumb-bars i { flex: 1; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, #6366f1, #a5b4fc); }
@media (max-width: 1100px) { .report-thumb { display: none; } }

/* plan view */
.plan-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; align-items: start; }
.plan-hero { padding: 22px; }
.plan-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 2px; }
.plan-price b { font-size: 32px; font-weight: 650; letter-spacing: -0.03em; }
.plan-price span { font-size: 12.5px; color: var(--muted); }
.usage-list { display: flex; flex-direction: column; gap: 15px; margin-top: 18px; }
.usage-row .usage-top { display: flex; justify-content: space-between; font-size: 12.6px; margin-bottom: 6px; color: var(--text-2); }
.usage-top b { font-variant-numeric: tabular-nums; }
.usage-row .bar { height: 7px; }
.usage-note { font-size: 11.5px; color: var(--faint); margin-top: 6px; }
.feature-table td { font-size: 12.8px; }
.feature-table .free-col, .feature-table .pro-col { text-align: center; width: 110px; }
.feature-table th.free-col { color: var(--primary-ink); }
.check-yes { color: var(--ok); }
.check-no { color: #cbd5e1; }
.upgrade-box {
  margin-top: 14px; padding: 16px; border-radius: 12px;
  background: linear-gradient(135deg, #eef0ff, #f5f8ff);
  border: 1px solid #dfe3fb;
}
.upgrade-box h4 { font-size: 13.5px; margin-bottom: 4px; }
.upgrade-box p { font-size: 12.2px; color: var(--muted); }

/* info strip */
.sys-strip {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 11px 16px; border-radius: 12px;
  background: #fff; border: 1px solid var(--border);
  font-size: 11.7px; color: var(--faint);
}
.sys-strip b { color: var(--text-2); font-weight: 550; }
.sys-strip .sep { width: 1px; height: 12px; background: var(--border); }

/* ============================================================
   Drawer / modal / toast
   ============================================================ */
.overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
  animation: fade 0.18s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
  width: min(580px, 94vw);
  background: #fff; border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  animation: slideIn 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes slideIn { from { transform: translateX(28px); opacity: 0.4; } to { transform: translateX(0); opacity: 1; } }
.drawer-head {
  padding: 18px 22px 14px; border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 12px;
}
.drawer-head h2 { font-size: 16px; font-weight: 620; letter-spacing: -0.015em; line-height: 1.4; }
.drawer-head .sub { font-size: 12px; color: var(--faint); margin-top: 5px; }
.drawer-body { padding: 18px 22px 28px; overflow-y: auto; flex: 1; }
.drawer-foot {
  padding: 14px 22px; border-top: 1px solid var(--border);
  display: flex; gap: 9px; justify-content: flex-end; background: var(--surface-2);
}
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.meta-item .k { font-size: 11.2px; color: var(--faint); margin-bottom: 3px; }
.meta-item .v { font-size: 12.8px; color: var(--text); font-weight: 500; word-break: break-all; }
.section-title {
  font-size: 12px; font-weight: 650; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted);
  margin: 22px 0 9px; display: flex; align-items: center; gap: 7px;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.prose { font-size: 13.2px; color: var(--text-2); line-height: 1.75; }
.code-block {
  font-family: var(--mono); font-size: 11.8px; line-height: 1.65;
  background: #0f172a; color: #cbd5e1;
  border-radius: 9px; padding: 12px 14px; overflow-x: auto;
  white-space: pre-wrap; word-break: break-all;
  border: 1px solid #1e293b;
}
.steps { margin: 0; padding-left: 0; list-style: none; counter-reset: s; }
.steps li {
  counter-increment: s; position: relative;
  padding-left: 28px; margin-bottom: 9px; font-size: 13px; color: var(--text-2); line-height: 1.6;
}
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 1px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary-ink);
  font-size: 10.5px; font-weight: 700;
  display: grid; place-items: center;
  border: 1px solid #dfe2ff;
}

.modal {
  position: fixed; z-index: 70; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 92vw);
  background: #fff; border-radius: 16px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  animation: pop 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes pop { from { transform: translate(-50%, -48%) scale(0.97); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.modal-head { padding: 18px 20px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-head h3 { font-size: 15.5px; font-weight: 620; }
.modal-head p { font-size: 12.2px; color: var(--muted); margin-top: 3px; }
.modal-body { padding: 16px 20px 4px; display: flex; flex-direction: column; gap: 13px; }
.modal-foot { padding: 14px 20px 18px; display: flex; gap: 8px; justify-content: flex-end; }
.form-row label { display: block; font-size: 12.2px; font-weight: 550; color: var(--text-2); margin-bottom: 5px; }
.form-row input, .form-row select {
  width: 100%; height: 36px; padding: 0 11px;
  border: 1px solid var(--border-strong); border-radius: 8px;
  font-size: 13px; font-family: inherit; color: var(--text); background: #fff;
  outline: 0; transition: 0.15s;
}
.form-row input:focus, .form-row select:focus { border-color: #a5b4fc; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }
.form-hint { font-size: 11.3px; color: var(--faint); margin-top: 5px; }
.form-split { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.radio-card {
  border: 1px solid var(--border-strong); border-radius: 9px; padding: 10px;
  cursor: pointer; transition: 0.14s; background: #fff;
}
.radio-card input { display: none; }
.radio-card .rc-title { font-size: 12.5px; font-weight: 600; color: var(--text); }
.radio-card .rc-sub { font-size: 10.8px; color: var(--faint); margin-top: 2px; line-height: 1.4; }
.radio-card.checked { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.12); }

.toast-root {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: flex; flex-direction: column; gap: 9px; align-items: flex-end;
}
.toast {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; border-radius: 10px;
  background: #0f172a; color: #e2e8f0; font-size: 12.8px;
  box-shadow: 0 16px 32px -12px rgba(15, 23, 42, 0.5);
  animation: toastIn 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  max-width: 340px;
}
@keyframes toastIn { from { transform: translateY(10px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.toast .ic { width: 15px; height: 15px; color: #34d399; }
.toast.err .ic { color: #f87171; }

/* loading */
.loading {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 52vh; color: var(--faint); font-size: 13px;
}
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border-strong); border-top-color: var(--primary);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.fade-in { animation: fadeUp 0.3s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.empty { padding: 44px 20px; text-align: center; color: var(--faint); font-size: 13px; }
.empty .ic { width: 26px; height: 26px; margin-bottom: 8px; color: var(--border-strong); }

.only-mobile { display: none; }
.mobile-scrim { display: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1240px) {
  .grid-kpi { grid-template-columns: repeat(2, 1fr); }
  .grid-main, .grid-half, .plan-grid, .report-grid { grid-template-columns: 1fr; }
  .top-search { width: 200px; }
  .top-search:focus-within { width: 230px; }
}
@media (max-width: 960px) {
  .only-mobile { display: grid; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 80;
    transform: translateX(-100%); transition: transform 0.24s ease;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.open { transform: translateX(0); }
  .mobile-scrim { display: block; }
  .view { padding: 18px 16px 56px; }
  .topbar { padding: 0 16px; gap: 8px; }
  .top-search { display: none; }
  .crumb span, .crumb .sep { display: none; }
  .grid-kpi { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi-value { font-size: 25px; }
  .meta-grid, .form-split, .radio-cards { grid-template-columns: 1fr; }
  .head-actions .btn-ghost { display: none; }
}
@media (max-width: 560px) {
  .grid-kpi { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 19px; }
  .btn-primary span.btn-text { display: none; }
}

/* ============================================================
   Utility bits
   ============================================================ */
.mono-sm { font-family: var(--mono); font-size: 12.2px; color: var(--muted); }
.mono-md { font-family: var(--mono); font-size: 15px; font-weight: 600; }
.strong-sm { font-size: 13px; font-weight: 550; color: var(--text); }
.sub-sm { font-size: 11.8px; color: var(--faint); margin-top: 3px; line-height: 1.5; }
.v-sm { font-size: 15px !important; font-weight: 600; }
.toolbar-note { margin-left: auto; font-size: 12px; color: var(--faint); }
.table-note {
  padding: 10px 18px; border-top: 1px solid var(--border);
  font-size: 11.5px; color: var(--faint); background: var(--surface-2);
  border-radius: 0 0 var(--radius) var(--radius);
}
.btn-lg { height: 44px; padding: 0 20px; font-size: 14px; border-radius: 10px; }
.btn-outline { background: #fff; border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: #c7cdfb; color: var(--primary); background: var(--primary-soft); }
.icon-btn.lang { font-size: 11.5px; font-weight: 650; letter-spacing: 0.02em; color: var(--text-2); }
.code-block.light {
  background: var(--surface-3); color: var(--text-2);
  border: 1px solid var(--border); font-size: 11.5px;
}

/* ============================================================
   Marketing (landing) mode
   ============================================================ */
body.is-marketing .sidebar,
body.is-marketing .topbar { display: none; }
body.is-marketing .app { display: block; }
body.is-marketing .view { padding: 0; max-width: none; }
body.is-marketing { background: #fff; }

.site { color: var(--text); }

.site-nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 28px;
  height: 68px; padding: 0 40px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-brand { display: flex; align-items: center; gap: 10px; }
.site-brand strong { font-size: 16px; font-weight: 680; letter-spacing: -0.02em; }
.site-brand .brand-mark { background: #0b1120; border-color: #0b1120; color: #c7d2fe; }
.site-links { display: flex; align-items: center; gap: 24px; margin-left: 14px; }
.site-links a { font-size: 13.5px; color: var(--text-2); font-weight: 500; }
.site-links a:hover { color: var(--primary); }
.site-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.site-login { font-size: 13.5px; color: var(--text-2); padding: 0 6px; }
.site-login:hover { color: var(--primary); }
.lang-btn {
  height: 30px; min-width: 34px; padding: 0 8px; border-radius: 7px;
  border: 1px solid var(--border-strong); background: #fff; color: var(--text-2);
  font-size: 11.5px; font-weight: 650; cursor: pointer; font-family: inherit;
}
.lang-btn:hover { border-color: #c7cdfb; color: var(--primary); }

/* hero */
.hero {
  max-width: 1200px; margin: 0 auto;
  padding: 72px 40px 56px;
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center;
  position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: -80px 0 auto 0; height: 520px; z-index: -1;
  background:
    radial-gradient(45% 60% at 20% 30%, rgba(99, 102, 241, 0.14), transparent 70%),
    radial-gradient(40% 55% at 78% 20%, rgba(6, 182, 212, 0.13), transparent 70%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px 5px 9px; border-radius: 99px;
  background: var(--primary-soft); border: 1px solid #dfe2ff;
  color: var(--primary-ink); font-size: 12px; font-weight: 550;
}
.hero-badge .ic { width: 14px; height: 14px; }
.hero h1 {
  font-size: 46px; line-height: 1.16; letter-spacing: -0.035em;
  font-weight: 680; margin: 18px 0 0;
}
.hero h1 .accent {
  background: linear-gradient(100deg, #4f46e5 10%, #0891b2 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy > p {
  font-size: 15px; line-height: 1.75; color: var(--muted);
  margin-top: 18px; max-width: 520px;
}
.hero-cta { display: flex; gap: 11px; margin-top: 26px; flex-wrap: wrap; }
.hero-note { font-size: 12px; color: var(--faint); margin-top: 16px; }
.hero-trust {
  display: flex; gap: 18px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .ic { width: 14px; height: 14px; color: var(--faint); }

.hero-visual { position: relative; }
.mock-window {
  border-radius: 16px; border: 1px solid var(--border);
  background: #fff; box-shadow: 0 30px 70px -30px rgba(15, 23, 42, 0.35), 0 2px 6px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: #e2e8f0; }
.mock-bar i:first-child { background: #fca5a5; }
.mock-bar i:nth-child(2) { background: #fcd34d; }
.mock-bar i:nth-child(3) { background: #86efac; }
.mock-bar span { margin-left: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.mock-body { padding: 14px 16px 16px; }
.mock-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mock-kpis > div {
  padding: 9px 10px; border-radius: 9px; background: var(--surface-3);
  display: flex; flex-direction: column; gap: 3px;
}
.mock-kpis span { font-size: 9.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-kpis b { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; }
.mock-kpis b.bad { color: var(--critical); }
.mock-chart { margin-top: 12px; }
.mock-chart svg { width: 100%; height: auto; display: block; }
.mock-rows { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.mock-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 9px; border-radius: 8px; border: 1px solid var(--border);
  font-size: 11px;
}
.mock-row .mr-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.mock-row .mr-cvss { font-weight: 650; color: var(--critical); }
.float-card {
  position: absolute; left: -24px; bottom: -26px;
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; border-radius: 11px; background: #fff;
  border: 1px solid var(--border); box-shadow: 0 16px 32px -16px rgba(15, 23, 42, 0.3);
}
.fc-dot { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14); }
.float-card b { display: block; font-size: 11px; color: var(--faint); font-weight: 500; }
.float-card span { display: block; font-size: 13px; font-weight: 650; letter-spacing: -0.01em; }

/* stats */
.stats-strip {
  max-width: 1200px; margin: 0 auto; padding: 26px 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stats-strip > div { display: flex; flex-direction: column; gap: 3px; }
.stats-strip b { font-size: 27px; font-weight: 680; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stats-strip span { font-size: 12px; color: var(--muted); }

/* sections */
.section { max-width: 1200px; margin: 0 auto; padding: 68px 40px; }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head h2 { font-size: 30px; font-weight: 660; letter-spacing: -0.03em; line-height: 1.25; }
.section-head p { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.7; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card {
  padding: 22px; border-radius: 14px; background: #fff;
  border: 1px solid var(--border); transition: 0.18s;
}
.feature-card:hover { border-color: #d9ddfb; box-shadow: 0 18px 40px -28px rgba(79, 70, 229, 0.5); transform: translateY(-2px); }
.feature-icon {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(150deg, #eef0ff, #f1f9fe); color: var(--primary);
  border: 1px solid #e4e7fb; margin-bottom: 14px;
}
.feature-icon .ic { width: 19px; height: 19px; }
.feature-card h3 { font-size: 14.5px; font-weight: 620; margin-bottom: 6px; letter-spacing: -0.01em; }
.feature-card p { font-size: 12.8px; color: var(--muted); line-height: 1.65; }

.cve-section { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); max-width: none; }
.cve-section > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.cve-preview { display: flex; flex-direction: column; gap: 2px; }
.cve-line {
  display: grid; grid-template-columns: 148px 1.4fr 1fr 128px 52px;
  align-items: center; gap: 14px;
  padding: 13px 16px; border-radius: 10px; background: #fff;
  border: 1px solid var(--border); margin-bottom: 8px;
  transition: 0.15s;
}
.cve-line:hover { border-color: #d9ddfb; background: #fdfdff; transform: translateX(2px); }
.cve-line-name { font-size: 13px; font-weight: 550; color: var(--text); }
.cve-line-prod { font-size: 12px; color: var(--muted); }
.cve-line-score { text-align: right; font-weight: 680; color: var(--critical); font-variant-numeric: tabular-nums; }

/* pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.price-card {
  padding: 24px; border-radius: 16px; background: #fff; border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0;
}
.price-card.featured {
  border-color: #c7cdfb;
  box-shadow: 0 24px 60px -30px rgba(79, 70, 229, 0.55), 0 0 0 1px rgba(79, 70, 229, 0.08);
  position: relative;
}
.price-tag {
  position: absolute; top: -11px; left: 24px;
  padding: 3px 10px; border-radius: 99px;
  background: linear-gradient(100deg, #4f46e5, #0891b2); color: #fff;
  font-size: 10.5px; font-weight: 600;
}
.price-card h3 { font-size: 14px; font-weight: 620; color: var(--muted); letter-spacing: 0.01em; }
.price { display: flex; align-items: baseline; gap: 5px; margin: 10px 0 4px; }
.price b { font-size: 34px; font-weight: 680; letter-spacing: -0.035em; }
.price b.custom { font-size: 27px; }
.price span { font-size: 12px; color: var(--faint); }
.price-desc { font-size: 12.5px; color: var(--muted); line-height: 1.6; min-height: 40px; }
.price-card ul { list-style: none; margin: 16px 0 20px; padding: 16px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 9px; flex: 1; }
.price-card li { display: flex; align-items: flex-start; gap: 8px; font-size: 12.8px; color: var(--text-2); }
.price-card li .ic { width: 14px; height: 14px; color: var(--ok); margin-top: 2px; }
.price-card .btn { width: 100%; margin-top: auto; }

/* faq */
.faq-section { border-top: 1px solid var(--border); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 40px; }
.faq-item h4 { font-size: 13.8px; font-weight: 620; margin-bottom: 6px; }
.faq-item p { font-size: 12.8px; color: var(--muted); line-height: 1.75; }

/* footer */
.site-footer {
  background: #0b1120; color: #94a3b8; padding: 48px 40px 22px;
  display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 32px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}
.footer-brand { display: flex; align-items: flex-start; gap: 10px; }
.footer-brand strong { display: block; color: #f1f5f9; font-size: 15px; font-weight: 650; }
.footer-brand span { display: block; font-size: 11.5px; color: #64748b; margin-top: 3px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer-cols h5 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: #64748b; margin-bottom: 10px; font-weight: 600; }
.footer-cols a { display: block; font-size: 12.5px; color: #94a3b8; padding: 3px 0; }
.footer-cols a:hover { color: #e2e8f0; }
.footer-bottom {
  grid-column: 1 / -1; margin-top: 26px; padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 11.5px; color: #64748b;
}

/* ============================================================
   Capabilities & CVE extras
   ============================================================ */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cap-card { padding: 17px 17px 15px; display: flex; flex-direction: column; gap: 8px; }
.cap-head { display: flex; align-items: center; justify-content: space-between; }
.cap-icon {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); border: 1px solid #e4e7fb;
}
.cap-icon .ic { width: 17px; height: 17px; }
.cap-card h3 { font-size: 13.6px; font-weight: 620; letter-spacing: -0.01em; }
.cap-card p { font-size: 12.2px; color: var(--muted); line-height: 1.65; flex: 1; }
.cap-meta { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--border); }
.cap-rules { font-size: 11.5px; font-weight: 600; color: var(--primary-ink); font-variant-numeric: tabular-nums; }
.tpl-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.tpl-card { padding: 16px 18px; border-right: 1px solid var(--border); }
.tpl-card:last-child { border-right: 0; }
.tpl-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.tpl-name { font-size: 12.8px; font-weight: 620; }
.tpl-desc { font-size: 11.5px; color: var(--faint); line-height: 1.6; }
.compliance-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 18px; }
.compliance-item .compliance-top { display: flex; justify-content: space-between; font-size: 12.2px; margin-bottom: 7px; color: var(--text-2); }
.compliance-top b { font-weight: 600; }
.compliance-top span { color: var(--muted); font-variant-numeric: tabular-nums; }
.compliance-item .bar { height: 6px; }

@media (max-width: 1240px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .tpl-grid { grid-template-columns: repeat(2, 1fr); }
  .tpl-card { border-bottom: 1px solid var(--border); }
  .compliance-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { gap: 34px; padding-top: 52px; }
  .hero h1 { font-size: 39px; }
}
@media (max-width: 960px) {
  .site-nav { padding: 0 20px; gap: 14px; }
  .site-links { display: none; }
  .hero { grid-template-columns: 1fr; padding: 40px 20px 40px; }
  .hero h1 { font-size: 33px; }
  .hero-visual { order: 2; }
  .float-card { left: auto; right: 10px; bottom: -14px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); padding: 22px 20px; gap: 16px; }
  .section { padding: 44px 20px; }
  .section-head h2 { font-size: 23px; }
  .feature-grid, .pricing-grid, .faq-grid { grid-template-columns: 1fr; }
  .cve-line { grid-template-columns: 1fr auto; gap: 6px; }
  .cve-line-prod, .cve-line .pill { display: none; }
  .site-footer { grid-template-columns: 1fr; padding: 36px 20px 18px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .cap-grid { grid-template-columns: 1fr; }
  .tpl-grid { grid-template-columns: 1fr; }
  .compliance-grid { grid-template-columns: 1fr; }
  .mock-kpis { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Report document viewer（#/reports/<id>）
   ============================================================ */
.ic-back { transform: rotate(180deg); }

.rv {
  margin: -24px -26px -64px;
  padding: 0 26px 64px;
  background:
    radial-gradient(900px 320px at 50% -120px, #e7eaf5, transparent 70%),
    #eef1f6;
  min-height: calc(100vh - 64px);
}

.rv-toolbar {
  position: sticky; top: 64px; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0 13px;
  background: linear-gradient(180deg, rgba(238, 241, 246, 0.96) 60%, rgba(238, 241, 246, 0.72));
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid rgba(203, 213, 225, 0.6);
  margin-bottom: 22px;
}
.rv-toolbar-title {
  font-size: 13px; font-weight: 600; color: var(--text-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%;
}
.rv-toolbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pill-ghost { background: #fff; border: 1px solid var(--border-strong); color: var(--muted); }

.rv-doc {
  width: 900px; max-width: 100%; margin: 0 auto;
  background: #fff; border: 1px solid #e6eaf2; border-radius: 4px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 30px 70px -30px rgba(15, 23, 42, 0.35);
  padding: 52px 56px 34px;
  color: #0e1726;
}

/* cover */
.rv-cover { padding-bottom: 30px; border-bottom: 2px solid #0e1726; }
.rv-cover-top { display: flex; align-items: center; justify-content: space-between; }
.rv-brand { display: flex; align-items: center; gap: 9px; }
.rv-brand-mark {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(150deg, #4f46e5, #06b6d4); color: #fff;
}
.rv-brand-mark .ic { width: 17px; height: 17px; stroke-width: 2; }
.rv-brand-name { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.rv-conf {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em;
  color: #b91c1c; border: 1px solid #f3c5c5; background: #fdf2f2;
  padding: 3px 8px; border-radius: 3px;
}
.rv-cover-main { padding: 40px 0 30px; }
.rv-kicker {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.18em;
  color: var(--primary); text-transform: uppercase; margin-bottom: 12px;
}
.rv-title {
  font-size: 31px; line-height: 1.22; font-weight: 680; letter-spacing: -0.025em;
  max-width: 620px;
}
.rv-lead { margin-top: 13px; font-size: 13px; color: var(--muted); max-width: 560px; line-height: 1.7; }
.rv-cover-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #e6eaf2;
}
.rv-cover-grid > div { padding: 12px 14px 0 0; }
.rv-mk { font-size: 10px; letter-spacing: 0.06em; color: var(--faint); text-transform: uppercase; }
.rv-mv { font-size: 12.2px; font-weight: 550; color: var(--text-2); margin-top: 3px; }

/* sections */
.rv-sec { padding: 30px 0; border-bottom: 1px solid #edf0f6; }
.rv-sec-last { border-bottom: 0; padding-bottom: 18px; }
.rv-sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.rv-no {
  font-family: var(--mono); font-size: 11px; font-weight: 600; color: #fff;
  background: #0e1726; border-radius: 4px; padding: 2px 6px; letter-spacing: 0.04em;
}
.rv-sec-head h2 { font-size: 16.5px; font-weight: 650; letter-spacing: -0.015em; }

.rv-summary { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: center; }
.rv-summary-text p { font-size: 12.8px; line-height: 1.85; color: #334155; margin-bottom: 10px; }
.rv-verdict {
  margin-top: 4px; padding: 10px 13px; border-radius: 6px;
  font-size: 12.4px; font-weight: 550; border-left: 3px solid;
}
.rv-verdict-high { background: #fdf2f2; border-color: #dc2626; color: #991b1b; }
.rv-verdict-medium { background: #fdf6e8; border-color: #d97706; color: #92400e; }
.rv-verdict-low { background: #ecf9f2; border-color: #059669; color: #065f46; }
.rv-summary-gauge { display: flex; justify-content: center; }
.rv-gauge { width: 100%; max-width: 300px; }
.rv-gauge-num { font-family: var(--sans); font-size: 46px; font-weight: 700; letter-spacing: -0.04em; }
.rv-gauge-lab { font-size: 10.5px; fill: #94a3b8; letter-spacing: 0.04em; }

.rv-kpis {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  margin-top: 22px; border: 1px solid #eaeef5; border-radius: 6px; overflow: hidden;
  background: #fbfcfe;
}
.rv-kpi { padding: 12px 14px; border-right: 1px solid #eaeef5; }
.rv-kpi:last-child { border-right: 0; }
.rv-kpi .k { font-size: 10.5px; color: var(--faint); }
.rv-kpi .v {
  font-size: 21px; font-weight: 700; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; margin-top: 2px;
}
.rv-kpi .v small { font-size: 10.5px; font-weight: 500; color: var(--faint); margin-left: 3px; }

.rv-split { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: center; }
.rv-donut-wrap { display: flex; justify-content: center; }
.rv-donut-num { font-size: 30px; font-weight: 700; fill: #0e1726; letter-spacing: -0.03em; }
.rv-donut-lab { font-size: 9.5px; fill: #94a3b8; letter-spacing: 0.08em; }
.rv-chart { margin-top: 20px; }
.rv-chart-cap { font-size: 11px; color: var(--faint); margin-bottom: 4px; letter-spacing: 0.03em; }
.rv-chart svg { width: 100%; height: auto; }

/* tables */
.rv-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rv-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.rv-table th {
  text-align: left; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--faint); font-weight: 600; padding: 7px 10px; border-bottom: 1px solid #e6eaf2;
}
.rv-table td { padding: 10px; border-bottom: 1px solid #f1f4f9; vertical-align: middle; }
.rv-table tr:last-child td { border-bottom: 0; }
.rv-table .ta-r { text-align: right; }
.rv-table-tight td { padding: 9px 10px; }
.rv-table .strong { font-weight: 650; }
.rv-table .strong-sm { font-weight: 600; font-size: 12.2px; line-height: 1.4; }
.muted-sm { font-size: 10.8px; color: var(--faint); }

.rv-cvss { display: inline-flex; align-items: center; gap: 8px; }
.rv-cvss b { font-variant-numeric: tabular-nums; font-size: 12px; min-width: 26px; }
.rv-cvss-track { width: 68px; height: 5px; border-radius: 99px; background: #eef1f6; overflow: hidden; display: block; }
.rv-cvss-track i { display: block; height: 100%; border-radius: 99px; }

/* assets */
.rv-asset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rv-asset { border: 1px solid #eaeef5; border-radius: 6px; padding: 10px 12px; background: #fcfdff; }
.rv-asset-name { font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-asset-meta { font-size: 10.2px; color: var(--faint); margin-top: 2px; }
.rv-asset-bar { height: 4px; border-radius: 99px; background: #eef1f6; margin: 8px 0 6px; overflow: hidden; }
.rv-asset-bar i { display: block; height: 100%; border-radius: 99px; }
.rv-asset-foot { display: flex; justify-content: space-between; font-size: 10.2px; color: var(--faint); }
.rv-asset-foot b { color: var(--text-2); font-variant-numeric: tabular-nums; }

/* compliance */
.rv-comp { display: flex; flex-direction: column; gap: 12px; }
.rv-comp-row { display: grid; grid-template-columns: 168px 1fr 42px 130px; gap: 12px; align-items: center; }
.rv-comp-name { font-size: 12px; font-weight: 550; }
.rv-comp-bar { height: 7px; border-radius: 99px; background: #eef1f6; overflow: hidden; }
.rv-comp-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #4f46e5, #06b6d4); }
.rv-comp-pct { font-size: 12px; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.rv-comp-note { font-size: 10.5px; color: var(--faint); }

/* roadmap */
.rv-road { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rv-phase { border: 1px solid #eaeef5; border-radius: 6px; padding: 12px 14px; background: #fcfdff; }
.rv-phase-critical { border-top: 3px solid #dc2626; }
.rv-phase-high { border-top: 3px solid #ea580c; }
.rv-phase-medium { border-top: 3px solid #d97706; }
.rv-phase-head { display: flex; align-items: center; gap: 7px; font-size: 12.2px; }
.rv-phase-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rv-phase-critical .rv-phase-dot { color: #dc2626; }
.rv-phase-high .rv-phase-dot { color: #ea580c; }
.rv-phase-medium .rv-phase-dot { color: #d97706; }
.rv-phase-count {
  margin-left: auto; font-size: 10.5px; font-weight: 700; color: var(--muted);
  background: #eef1f6; border-radius: 20px; padding: 1px 7px;
}
.rv-phase-desc { font-size: 10.5px; color: var(--faint); margin-top: 5px; line-height: 1.5; }
.rv-phase ul { margin: 9px 0 0; padding-left: 14px; }
.rv-phase li { font-size: 11.2px; color: #334155; line-height: 1.6; margin-bottom: 3px; }

/* method */
.rv-method ol { margin: 0; padding-left: 18px; }
.rv-method li { font-size: 11.6px; color: #334155; line-height: 1.8; }
.rv-note {
  margin-top: 12px; padding: 10px 12px; border-radius: 6px;
  background: #f7f9fc; border: 1px dashed #dde3ee;
  font-size: 10.8px; color: var(--muted); line-height: 1.7;
}

.rv-foot {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 8px; padding-top: 14px; border-top: 1px solid #e6eaf2;
  font-size: 9.5px; color: var(--faint); letter-spacing: 0.02em;
}

@media (max-width: 1180px) {
  .rv { margin: -24px -20px -64px; padding: 0 20px 56px; }
  .rv-doc { padding: 40px 34px 28px; }
  .rv-cover-grid { grid-template-columns: repeat(2, 1fr); }
  .rv-kpis { grid-template-columns: repeat(3, 1fr); }
  .rv-kpi:nth-child(3) { border-right: 0; }
  .rv-summary, .rv-split { grid-template-columns: 1fr; }
  .rv-summary-gauge { order: -1; }
  .rv-road, .rv-asset-grid { grid-template-columns: 1fr; }
  .rv-comp-row { grid-template-columns: 1fr 42px; }
  .rv-comp-bar { grid-column: 1 / -1; }
  .rv-comp-note { grid-column: 1 / -1; }
}
@media (max-width: 1180px) {
  .rv { margin: -18px -16px -56px; padding: 0 16px 48px; }
  .rv-toolbar { top: 56px; }
}
@media (max-width: 640px) {
  .rv-doc { padding: 26px 16px 20px; }
  .rv-table { min-width: 460px; }
  .rv-toolbar { flex-wrap: wrap; gap: 8px; }
  .rv-toolbar-actions { margin-left: 0; }
  .rv-title { font-size: 23px; }
  .rv-cover-main { padding: 26px 0 20px; }
  .rv-kpis { grid-template-columns: repeat(2, 1fr); }
  .rv-toolbar-title { display: none; }
}

/* ============================================================
   Print — 导出为 PDF / 打印
   ============================================================ */
@media print {
  @page { size: A4; margin: 12mm; }
  html, body { background: #fff !important; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sidebar, .topbar, .overlay, .drawer, .rv-toolbar, .toast-wrap { display: none !important; }
  .app, .main { display: block !important; }
  .view { padding: 0 !important; max-width: none !important; }
  .rv { margin: 0 !important; padding: 0 !important; background: #fff !important; min-height: 0 !important; }
  .rv-doc {
    width: 100% !important; max-width: none !important;
    border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
    padding: 0 !important;
  }
  /* 打印时锁定桌面版栅格，避免 <1180px 媒体查询把报告压成移动布局 */
  .rv-cover-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .rv-summary { grid-template-columns: 1fr 250px !important; gap: 18px !important; }
  .rv-summary-gauge { order: 0 !important; }
  .rv-kpis { grid-template-columns: repeat(5, 1fr) !important; }
  .rv-split { grid-template-columns: 180px 1fr !important; gap: 16px !important; }
  .rv-road, .rv-asset-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .rv-comp-row { grid-template-columns: 148px 1fr 38px 118px !important; }
  .rv-comp-bar, .rv-comp-note { grid-column: auto !important; }
  .rv-table { min-width: 0 !important; }
  .rv-table-wrap { overflow: visible !important; }
  .rv-sec { break-inside: auto; page-break-inside: auto; padding: 16px 0; }
  .rv-sec-head { break-after: avoid; page-break-after: avoid; }
  .rv-kpis, .rv-split, .rv-chart, .rv-road, .rv-asset-grid, .rv-comp, .rv-summary { break-inside: avoid; page-break-inside: avoid; }
  .rv-cover { break-after: auto; }
  .rv-table tr, .rv-phase, .rv-asset { break-inside: avoid; }
  .fade-in { animation: none !important; }
}

/* ============================================================
   CVE.org 数据核对
   ============================================================ */
.verify-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 13px 16px; margin-bottom: 14px;
  border: 1px solid #dbe7f5; border-radius: var(--radius);
  background:
    radial-gradient(120% 180% at 0% 0%, rgba(6, 182, 212, 0.08), transparent 60%),
    linear-gradient(90deg, #f7fbff, #ffffff 55%);
  box-shadow: var(--shadow-sm);
}
.verify-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.verify-badge {
  display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto;
  font-size: 11.5px; font-weight: 650; letter-spacing: 0.01em;
  color: #0369a1; background: #e6f6fe; border: 1px solid #bfe6f8;
  border-radius: 999px; padding: 4px 9px;
}
.verify-badge .ic { width: 13px; height: 13px; stroke-width: 2.4; }
.verify-title { font-size: 13px; font-weight: 600; color: var(--text); }
.verify-sub { font-size: 11.4px; color: var(--muted); margin-top: 2px; }
.verify-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.vfy {
  display: inline-grid; place-items: center; width: 14px; height: 14px;
  margin-left: 6px; border-radius: 50%; vertical-align: 1px;
  background: var(--ok-soft); color: var(--ok);
}
.vfy .ic { width: 9px; height: 9px; stroke-width: 3; }

.official {
  margin-top: 14px; padding: 12px 14px 13px;
  border: 1px solid #e2e8f5; border-radius: 11px;
  background: linear-gradient(180deg, #fbfcff, #ffffff);
}
.official-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.official-badge {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em;
  color: #fff; background: linear-gradient(135deg, #4f46e5, #06b6d4);
  border-radius: 5px; padding: 2px 7px;
}
.official-meta { font-size: 11px; color: var(--faint); }
.official-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px; }
.official-grid .k { font-size: 10.2px; color: var(--faint); letter-spacing: 0.02em; }
.official-grid .v { font-size: 12.4px; font-weight: 600; color: var(--text-2); margin-top: 1px; }
.official-grid .v em { font-style: normal; font-weight: 500; font-size: 10.5px; color: var(--faint); margin-left: 3px; }
.official-line {
  margin-top: 9px; font-size: 11.4px; color: var(--muted); line-height: 1.6;
  display: flex; gap: 8px; align-items: flex-start;
}
.official-line b { flex: 0 0 auto; font-size: 10.2px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: 0.04em; padding-top: 1px; }
.official-desc { margin-top: 10px; }
.official-desc summary { font-size: 11.5px; color: var(--primary); cursor: pointer; }
.official-desc .prose { margin-top: 7px; font-size: 11.8px; line-height: 1.75; color: var(--text-2); }
.official-refs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.official-refs a {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--muted); text-decoration: none;
  border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px;
  background: #fff; transition: 0.15s;
}
.official-refs a:hover { color: var(--primary); border-color: #c7cdfb; background: var(--primary-soft); }
.official-refs .ic { width: 11px; height: 11px; }

.note-box {
  padding: 11px 13px; border-radius: 9px;
  background: #f7f9fc; border: 1px dashed #dde3ee;
  font-size: 11.6px; color: var(--muted); line-height: 1.75;
}
.diff-table td, .diff-table th { font-size: 11.8px; }

@media (max-width: 720px) {
  .verify-actions { margin-left: 0; }
  .official-grid { grid-template-columns: 1fr; }
}
