:root {
  --canvas: #dfe0e8;
  --shell: #f3f3f5;
  --surface: #ffffff;
  --sunk: #f6f6f8;
  --ink: #111214;
  --ink-2: #3d3f45;
  --muted: #8a8c94;
  --line: #e8e8ec;
  --line-2: #d4d5db;
  --green: #18b26b;
  --green-soft: #e2f6ec;
  --amber: #f08a1c;
  --amber-soft: #fdeedd;
  --yellow: #f5c518;
  --red: #ef4b3f;
  --red-soft: #fde6e4;
  --radius: 24px;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.mono, code { font-family: var(--mono); font-size: 0.92em; }
[hidden] { display: none !important; }
.ic { flex: none; }

/* shell */
.shell { max-width: 1320px; margin: 20px auto; background: var(--shell); border-radius: 36px; padding: 20px 24px 28px; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.7); min-height: calc(100vh - 40px); }
.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-bottom: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; background: var(--surface); padding: 8px 18px 8px 8px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.logo { display: block; width: 34px; height: 34px; border-radius: 10px; }
.nav { display: flex; gap: 8px; }
.nav a { padding: 12px 24px; border-radius: 999px; background: var(--surface); text-decoration: none; font-weight: 500; transition: background 0.15s, color 0.15s; }
.nav a:hover { background: #fafafa; }
.nav a.is-active { background: var(--ink); color: #fff; }
.top-r { display: flex; gap: 8px; justify-self: end; align-items: center; }
.net { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); padding: 11px 16px; border-radius: 999px; text-decoration: none; font-weight: 500; }
.net b { background: var(--sunk); border-radius: 999px; padding: 1px 8px; font-weight: 600; font-variant-numeric: tabular-nums; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); animation: beat 2s infinite; }
@keyframes beat { 50% { box-shadow: 0 0 0 7px transparent; } }
.btn-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); cursor: pointer; text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.btn-ic:hover { border-color: var(--line-2); transform: translateY(-1px); }
.btn-ic.sm { width: 34px; height: 34px; cursor: default; }
.btn-ic.sm:hover { transform: none; }

/* layout */
.view.fade { animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.col > .grow { flex: 1; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; flex: 1; }
.duo .trail { flex-direction: column; overflow: visible; }
.duo .trail li { min-width: 0; }
.duo .trail li + li::before { left: 31px; top: -11px; width: 0; height: 10px; border-top: 0; border-left: 1.5px dashed var(--line-2); }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
.card { background: var(--surface); border-radius: var(--radius); padding: 22px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-h h2 { font-size: 17px; font-weight: 500; margin: 0; letter-spacing: -0.01em; }
.muted-s { color: var(--muted); font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; }
.muted-s a { color: var(--ink-2); }
.k { color: var(--muted); font-size: 12.5px; display: block; }
.nowrap { white-space: nowrap; }
.t-red { color: var(--red); } .t-amber { color: var(--amber); }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.tools { display: flex; gap: 8px; }
.seg { display: inline-flex; background: var(--surface); border-radius: 999px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg-i { padding: 8px 16px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: 13px; }
.seg-i.is-on { background: var(--ink); color: #fff; }

/* pills, chips, avatars */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.tone-green { background: var(--green); color: #fff; }
.pill.tone-red { background: var(--red); color: #fff; }
.pill.tone-amber { background: var(--amber); color: #fff; }
.pill.tone-muted { background: var(--sunk); color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--sunk); font-size: 12.5px; white-space: nowrap; }
.toolbar > .chip { background: var(--surface); padding: 10px 16px; font-size: 13px; }
.av { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; font-weight: 700; font-size: 12px; flex: none; }
.av.tone-red { background: var(--red-soft); color: var(--red); }
.av.tone-amber { background: var(--amber-soft); color: var(--amber); }
.av.tone-green { background: var(--green-soft); color: var(--green); }
.av.tone-muted, .av.tone-ink { background: var(--sunk); color: var(--ink-2); }

/* score card */
.gauge-wrap { position: relative; }
.gauge { width: 100%; display: block; }
.g-lbl { font-size: 10px; fill: var(--muted); font-family: var(--sans); }
.gauge-num { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; }
.gauge-num strong { font-size: 54px; font-weight: 400; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.delta { display: inline-block; margin-left: 6px; vertical-align: top; margin-top: 8px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.delta.up { background: var(--green-soft); color: var(--green); }
.delta.down { background: var(--red-soft); color: var(--red); }
.mini-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.mini-row div { background: var(--sunk); border-radius: 14px; padding: 10px 12px; }
.mini-row b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* live card */
.live { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 14px; }
.browser { border-radius: 18px; background: var(--sunk); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; min-height: 250px;
  background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 14px 14px; }
.b-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.b-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.b-bar span { margin-left: 10px; font: 12px var(--mono); color: var(--muted); background: var(--sunk); padding: 4px 12px; border-radius: 999px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-body { flex: 1; display: grid; place-items: center; padding: 18px; }
.pins { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 460px; }
.pin { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; font-size: 13px; font-weight: 500;
  box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.25); animation: pop 0.4s cubic-bezier(0.3, 1.4, 0.5, 1) backwards; animation-delay: var(--d); transition: transform 0.15s; }
.pin:hover { transform: translateY(-2px); }
.pin.tone-red { border-color: color-mix(in srgb, var(--red) 35%, var(--line)); }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } }
.metrics { display: grid; gap: 10px; }
.metric { border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; align-items: end; row-gap: 2px; }
.metric .k { grid-column: 1 / -1; }
.metric strong { font-size: 34px; font-weight: 400; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.clean { display: grid; place-items: center; gap: 8px; color: var(--green); text-align: center; padding: 18px; }
.clean b { color: var(--ink-2); font-weight: 500; }
.clean.sm { padding: 28px 12px; color: var(--muted); }
.clean.bad { color: var(--red); }
.clean.pulse { animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.45; } }

/* radar */
.radar { width: 100%; max-width: 300px; display: block; margin: 0 auto; }
.r-lbl { font-size: 11px; fill: var(--ink-2); font-family: var(--sans); font-weight: 500; }
.legend { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 7px; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.legend .n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 11px; }
.legend i { flex: 1; border-bottom: 1.5px dashed var(--line); }
.legend .pill { min-width: 34px; justify-content: center; }

/* observation grid */
.key { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.key .dot + .dot { margin-left: 8px; }
.obs-wrap { overflow-x: auto; }
.obs { border-collapse: separate; border-spacing: 6px 8px; margin: -8px -6px; width: calc(100% + 12px); }
.obs th { font-weight: 500; text-align: center; font-size: 12px; color: var(--muted); white-space: nowrap; }
.obs thead th span { display: block; color: var(--ink-2); font-weight: 600; }
.obs thead th small { font-size: 10.5px; }
.obs tbody th { text-align: left; color: var(--ink); white-space: nowrap; padding-right: 12px; }
.obs tbody th > * { vertical-align: middle; }
.obs tbody th .av { margin-right: 8px; }
.obs tbody th .mono { font-size: 12px; }
.obs tbody th .av { width: 22px; height: 22px; border-radius: 7px; font-size: 10px; }
.obs td { text-align: center; }
.obs thead th:first-child, .obs tbody th { width: 1%; }
.dot { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; }
.dot.x { background: var(--red); }
.dot.ok { background: var(--green); }
.key .dot { width: 16px; height: 16px; }

/* severity mix */
.mix-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mix-cols div { min-width: 0; }
.mix-cols strong { font-size: 30px; font-weight: 400; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.mix-bar { display: flex; gap: 4px; height: 34px; margin-top: 10px; }
.mix-bar span { border-radius: 12px; min-width: 14px; }
.seg-red { background: var(--red); } .seg-amber { background: var(--amber); }
.seg-hatch { background: repeating-linear-gradient(-45deg, var(--line) 0 6px, var(--sunk) 6px 12px); }
.dials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
.dial { position: relative; aspect-ratio: 1; }
.dial svg { width: 100%; height: 100%; }
.dial-inner { position: absolute; inset: 26%; border-radius: 50%; display: grid; place-items: center; font-size: 20px; }
.dial-inner b { font-weight: 500; }
.dial-inner.tone-red { background: var(--red); color: #fff; }
.dial-inner.tone-amber { background: var(--amber-soft); color: var(--amber); }
.dial-inner.tone-green { background: var(--green-soft); color: var(--green); }

/* audit trail */
.trail { list-style: none; margin: 0; padding: 4px 0 6px; display: flex; gap: 10px; overflow-x: auto; }
.trail li { flex: 0 0 auto; display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px 12px 12px; min-width: 210px; position: relative; }
.trail li + li::before { content: ""; position: absolute; left: -11px; top: 50%; width: 10px; border-top: 1.5px dashed var(--line-2); }
.trail li > div { display: grid; gap: 1px; }
.trail li > div > span { color: var(--muted); font-size: 12px; }
.trail a { font-size: 11.5px; color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.trail a:hover { color: var(--ink); text-decoration: underline; }
.t-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none; }
.trail .good .t-ic { background: var(--green-soft); color: var(--green); }
.trail .bad .t-ic { background: var(--red); color: #fff; font-size: 15px; }

/* tables */
.tbl-wrap { overflow-x: auto; margin: 0 -8px; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font: 500 11px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.row { cursor: pointer; transition: background 0.12s; }
.tbl tr.row:hover td, .tbl tr.row:focus-visible td { background: var(--sunk); }
.tbl tr.row:focus-visible { outline: none; }
.tbl tr.is-fixed .who b, .tbl tr.is-fixed .who .mono { color: var(--muted); }
.tbl tr.is-fixed .who .mono { text-decoration: line-through; text-decoration-color: var(--green); }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who > div { display: grid; min-width: 0; }
.who b { font-weight: 600; }
.who .mono { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seen { display: flex; align-items: center; gap: 3px; }
.seen i { width: 6px; height: 16px; border-radius: 3px; background: var(--line); }
.seen i.on { background: var(--ink); }
.seen b { margin-left: 6px; font-weight: 500; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.chev { color: var(--muted); width: 1%; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.ring-txt { font: 600 10px var(--sans); fill: var(--ink); }
.btn-dark { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; padding: 7px 14px; border-radius: 10px; font-size: 12.5px; font-weight: 600; }

/* KPI */
.kpi { display: grid; gap: 4px; align-content: start; position: relative; }
.kpi strong { font-size: 40px; font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-row { display: flex; align-items: center; justify-content: space-between; }
.gstrip { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.gstrip i { width: 22px; height: 22px; border-radius: 7px; }
.gstrip .tone-red { background: var(--red); } .gstrip .tone-amber { background: var(--amber); } .gstrip .tone-green { background: var(--green); }
.sevstrip { display: flex; gap: 4px; height: 22px; margin-top: 12px; }
.sevstrip i { border-radius: 7px; min-width: 10px; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 34px; margin-top: 4px; }
.spark i { flex: 1; max-width: 10px; background: var(--line); border-radius: 3px; }
.spark i.tone-ink { background: var(--ink); } .spark i.tone-red { background: var(--red); } .spark i.tone-green { background: var(--green); }

/* URL bar */
.urlbar { display: flex; align-items: center; gap: 12px; background: var(--sunk); border: 1px solid var(--line); padding: 10px 10px 10px 18px; }
.ub-ic { color: var(--muted); }
.ub-form { display: flex; flex: 1; gap: 12px; align-items: center; flex-wrap: wrap; }
.ub-form input[type="url"] { flex: 1 1 260px; min-width: 0; font: 14px var(--mono); padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); }
.ub-form input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--yellow); color: var(--ink); border: 0; border-radius: 14px; padding: 12px 20px; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform 0.15s, filter 0.15s; }
.btn-primary:hover:not(:disabled) { filter: brightness(0.96); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-ghost { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none; }
.btn-ghost:hover { border-color: var(--line-2); }

/* switches */
.sw { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; user-select: none; }
.sw input { position: absolute; opacity: 0; pointer-events: none; }
.sw span { width: 36px; height: 22px; border-radius: 999px; background: var(--line-2); position: relative; transition: background 0.2s; }
.sw span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 0.2s; }
.sw input:checked + span { background: var(--green); }
.sw input:checked + span::after { transform: translateX(14px); }
.sw input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.sw input:disabled + span { opacity: 0.5; }
.sw.lg { font-size: 14px; font-weight: 500; }

/* run mode */
.modebar { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0; }
.modebar .chip { background: var(--surface); }

/* banner */
.banner { display: flex; align-items: center; gap: 14px; background: var(--ink); color: #fff; }
.banner > div { flex: 1; display: grid; gap: 4px; min-width: 0; }
.banner code { color: #a7f3c4; font-size: 12.5px; overflow-wrap: anywhere; }
.banner .btn-ic { background: #222; border-color: #333; color: #fff; }

/* pipeline */
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.pipeline li { position: relative; display: grid; justify-items: center; gap: 10px; padding: 18px 8px 14px; border-radius: 18px; border: 1px solid var(--line); color: var(--muted); transition: all 0.25s; }
.pipeline li + li::before { content: ""; position: absolute; left: -13px; top: 42px; width: 14px; border-top: 2px dashed var(--line-2); }
.pipeline b { color: var(--ink-2); font-weight: 500; font-size: 13px; }
.p-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--sunk); transition: all 0.25s; }
.p-n { position: absolute; top: 10px; right: 12px; font: 11px var(--mono); }
.pipeline li.active { border-color: var(--ink); color: var(--ink); }
.pipeline li.active .p-ic { background: var(--ink); color: #fff; animation: ping 1.2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(17, 18, 20, 0.35); } 100% { box-shadow: 0 0 0 14px transparent; } }
.pipeline li.done { border-color: color-mix(in srgb, var(--green) 40%, var(--line)); }
.pipeline li.done .p-ic { background: var(--green); color: #fff; }
.pipeline li.done + li::before { border-top-color: var(--green); border-top-style: solid; }
.pipeline li.error { border-color: var(--red); }
.pipeline li.error .p-ic { background: var(--red); color: #fff; }

/* result */
.result { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.res-score { display: grid; justify-items: center; gap: 10px; }
.res-score .ring-txt { font-size: 22px; font-weight: 500; }
.res-counts { display: flex; gap: 28px; }
.res-counts strong { font-size: 34px; font-weight: 400; letter-spacing: -0.03em; line-height: 1; }
.res-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.res-chips .chip { padding: 4px 12px 4px 4px; background: var(--surface); border: 1px solid var(--line); }
.res-chips .av { width: 22px; height: 22px; border-radius: 50%; font-size: 10px; }
.res-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.res-foot code { color: var(--muted); margin-right: auto; }

/* demo */
.demo { display: grid; gap: 16px; }
.demo-state { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; background: var(--sunk); }
.demo-state b { font-size: 16px; font-weight: 500; }
.big-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--line-2); }
.demo-state.on { background: var(--red-soft); } .demo-state.on .big-dot { background: var(--red); animation: beat 1.6s infinite; box-shadow: 0 0 0 4px rgba(239, 75, 63, 0.2); }
.demo-state.off { background: var(--green-soft); } .demo-state.off .big-dot { background: var(--green); }
.link-s { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-2); }

/* log */
.log summary { cursor: pointer; display: inline-flex; gap: 8px; align-items: center; font-weight: 500; color: var(--ink-2); list-style: none; }
.log summary::-webkit-details-marker { display: none; }
.console { margin: 14px 0 0; background: #121315; color: #d9dbe0; font: 12px/1.6 var(--mono); padding: 16px; border-radius: 16px; max-height: 360px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }

/* verify */
.drop { display: grid; justify-items: center; gap: 6px; padding: 56px 16px; border: 2px dashed var(--line-2); border-radius: 20px; background: var(--sunk); cursor: pointer; text-align: center; transition: all 0.15s; }
.drop:hover, .drop.over { border-color: var(--ink); background: #fff; }
.drop b { font-size: 17px; font-weight: 500; }
.drop-ic { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--ink); color: #fff; margin-bottom: 6px; }
.center { display: flex; justify-content: center; margin-top: 14px; }
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.check { position: relative; display: grid; justify-items: center; text-align: center; gap: 6px; padding: 24px 14px; border-radius: 20px; border: 1px solid var(--line); animation: pop 0.35s ease backwards; }
.check b { font-size: 15px; font-weight: 600; }
.check .muted-s { justify-content: center; }
.c-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; margin-bottom: 4px; background: var(--sunk); }
.check.ok .c-ic { background: var(--green); color: #fff; }
.check.bad { border-color: var(--red); }
.check.bad .c-ic { background: var(--red); color: #fff; }
.c-step { position: absolute; top: 14px; left: 14px; color: var(--muted); }
#verify-card.verified { box-shadow: inset 0 0 0 2px var(--green); }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 30; }
.drawer-bg { position: absolute; inset: 0; background: rgba(17, 18, 20, 0.28); opacity: 0; transition: opacity 0.2s; }
.drawer-panel { position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(440px, calc(100vw - 24px)); background: var(--surface); border-radius: 28px; padding: 24px; overflow-y: auto; transform: translateX(105%); transition: transform 0.22s ease; }
.drawer.open .drawer-bg { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-panel header { display: flex; gap: 12px; align-items: center; }
.drawer-panel header > div { flex: 1; min-width: 0; display: grid; }
.drawer-panel header .av { width: 44px; height: 44px; border-radius: 14px; font-size: 17px; }
.drawer-panel h3 { margin: 0; font-size: 19px; font-weight: 600; }
.drawer-panel header .mono { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.d-pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.d-stats { display: grid; gap: 8px; }
.d-stats div { background: var(--sunk); border-radius: 14px; padding: 10px 14px; }
.d-stats b { font-weight: 500; }
.d-why { font-size: 15px; line-height: 1.5; margin: 18px 0; }
.drawer-panel h4 { display: flex; gap: 8px; align-items: center; margin: 0 0 10px; font-size: 13px; font-weight: 600; }
.cites { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cites li { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 4px; }
cite { font: normal 600 12px var(--mono); color: var(--red); }
.cites span { color: var(--ink-2); font-size: 13px; }

/* skeleton, empty, toast */
.sk { min-height: 220px; }
.sk-bar, .sk-block { background: linear-gradient(90deg, var(--sunk), #ececf0, var(--sunk)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 10px; }
.sk-bar { height: 16px; width: 40%; margin-bottom: 18px; }
.sk-block { height: 150px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty-card { display: grid; justify-items: center; gap: 8px; padding: 64px 16px; text-align: center; color: var(--muted); }
.empty-card h2 { color: var(--ink); margin: 8px 0 0; font-weight: 500; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: rot 0.7s linear infinite; display: inline-block; }
@keyframes rot { to { transform: rotate(360deg); } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-weight: 500; opacity: 0; transition: all 0.25s; z-index: 40; }
.toast.in { opacity: 1; transform: translate(-50%, 0); }

/* responsive */
@media (max-width: 1080px) {
  .span-3 { grid-column: span 6; }
  .span-4, .span-8 { grid-column: span 12; }
  .top { grid-template-columns: 1fr auto; }
  .nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
}
@media (max-width: 640px) {
  .shell { margin: 0; border-radius: 0; padding: 14px 16px 24px; box-shadow: none; }
  .span-3 { grid-column: span 12; }
  .nav { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 10px 16px; white-space: nowrap; }
  .net-name { display: none; }
  .live { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .metric { grid-template-columns: 1fr; padding: 10px; }
  .metric strong { font-size: 26px; }
  .metric .pill { justify-self: start; }
  .pipeline { grid-template-columns: repeat(5, minmax(84px, 1fr)); overflow-x: auto; }
  .checks { grid-template-columns: 1fr; }
  .result { grid-template-columns: 1fr; justify-items: start; }
  .card { padding: 18px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
