/* FraudGraph Agent — light theme. No framework, no build step. */

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f9fafc;
  --tint: #eef0ff;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #8a94a8;
  --line: #e5e8f0;
  --line-2: #eef0f5;

  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --brand-soft: #eef0ff;
  --brand-ink: #3730a3;

  --fraud: #e11d48;
  --fraud-soft: #ffe8ed;
  --legit: #059669;
  --legit-soft: #dcfce9;
  --warn: #d97706;
  --warn-soft: #fff4dc;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --shadow-lg: 0 24px 60px -24px rgba(49, 46, 129, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 64px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.2; margin: 0; }
p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
code, .mono { font-family: var(--mono); font-size: .86em; }
code { background: var(--brand-soft); color: var(--brand-ink); padding: .1em .4em; border-radius: 6px; word-break: break-word; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid rgba(79, 70, 229, .35); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--ink-2); }
.t-fraud { color: var(--fraud); }
.t-legit { color: var(--legit); }
.t-warn { color: var(--warn); }
.container { width: min(1200px, 100%); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }

/* ─────────────────────────────────────────────────────────── nav ── */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(255, 255, 255, .78); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 24px; width: min(1200px, 100%); margin: 0 auto; padding: 0 24px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.logo-text span { color: var(--brand); }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 6px 16px -6px rgba(79, 70, 229, .6); }
.logo-mark svg { width: 22px; height: 22px; fill: #fff; stroke: rgba(255, 255, 255, .8); stroke-width: 1.4; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a { color: var(--ink-2); font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: background .15s, color .15s; display: inline-flex; align-items: center; gap: 6px; }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a.active { color: var(--brand-ink); background: var(--brand-soft); }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--fraud); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.status.live .status-dot { background: var(--legit); box-shadow: 0 0 0 4px var(--legit-soft); animation: blink 2.4s infinite; }
.status.local .status-dot { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.status.down .status-dot { background: var(--fraud); }
@keyframes blink { 50% { box-shadow: 0 0 0 7px rgba(5, 150, 105, .08); } }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.menu-btn span { width: 16px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ─────────────────────────────────────────────────────── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; padding: 10px 16px; font-weight: 600; font-size: 14px; transition: transform .15s var(--ease), box-shadow .15s, background .15s, color .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 13px 22px; font-size: 15px; border-radius: 14px; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 20px -8px rgba(79, 70, 229, .6); }
.btn-primary:hover { box-shadow: 0 12px 26px -8px rgba(79, 70, 229, .7); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #c7cbe0; background: var(--surface-2); }
.btn-soft { background: var(--brand-soft); color: var(--brand-ink); }
.btn-soft:hover { background: #e2e5ff; }
.btn[disabled] { opacity: .6; cursor: progress; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; }

/* ─────────────────────────────────────────────────────────── views ── */
.view { display: none; }
.view.active { display: block; animation: view-in .35s var(--ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 5px 12px; border-radius: 999px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ─────────────────────────────────────────────────────────── hero ── */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; animation: drift 18s ease-in-out infinite alternate; }
.b1 { width: 460px; height: 460px; background: #c7d2fe; top: -140px; left: -120px; }
.b2 { width: 380px; height: 380px; background: #e9d5ff; top: 40px; right: -80px; animation-delay: -6s; }
.b3 { width: 300px; height: 300px; background: #bae6fd; bottom: -120px; left: 40%; animation-delay: -12s; opacity: .4; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; margin: 18px 0 18px; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--brand), var(--brand-2) 60%, #db2777); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--ink-2); font-size: 14px; }
.hero-points li::before { content: "✓"; color: var(--legit); font-weight: 800; margin-right: 7px; }
.hero-art { position: relative; aspect-ratio: 46 / 40; }
.net { width: 100%; height: 100%; overflow: visible; }
.net .edges path { stroke: #c7cbe6; stroke-width: 2; fill: none; stroke-dasharray: 6 7; animation: dash 3s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -26; } }
.net circle { transform-box: fill-box; transform-origin: center; }
.net .n-card { fill: #fbbf24; animation: bob 5s ease-in-out infinite; }
.net .n-txn { fill: #34d399; animation: bob 6s ease-in-out infinite -2s; }
.net .n-dev { fill: #fb7185; animation: bob 5.5s ease-in-out infinite -1s; }
.net .n-mem { fill: #a78bfa; animation: bob 6.5s ease-in-out infinite -3s; }
.net .n-dim { fill: #d7dbee; }
.net .pulse { fill: #818cf8; animation: pulse 2.6s ease-out infinite; }
.net text { fill: #fff; font: 700 12px var(--display); letter-spacing: .08em; }
@keyframes bob { 50% { transform: translateY(-7px); } }
@keyframes pulse { from { transform: scale(1); opacity: .5; } to { transform: scale(2.4); opacity: 0; } }
.float-card { position: absolute; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; animation: bob 6s ease-in-out infinite; }
.fc-k { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; }
.fc-v { font-family: var(--display); font-weight: 800; font-size: 17px; }
.fc1 { top: 4%; left: -2%; }
.fc2 { bottom: 10%; right: -3%; animation-delay: -2s; }
.fc3 { bottom: -2%; left: 8%; animation-delay: -4s; }

/* stats strip */
.stats-strip { position: relative; margin-top: 12px; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.stat-big { padding: 22px 20px; border-right: 1px solid var(--line-2); }
.stat-big:last-child { border-right: 0; }
.stat-big .num { display: block; font-family: var(--display); font-weight: 800; font-size: 32px; letter-spacing: -.03em; background: linear-gradient(135deg, var(--ink), var(--brand-ink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-big .lbl { color: var(--ink-2); font-size: 13px; }

/* sections */
.section { padding: 88px 0; }
.section-tint { background: linear-gradient(180deg, #f1f2ff, #f6f7fb); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; margin: 14px 0 10px; }
.section-head p { color: var(--ink-2); font-size: 16.5px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; position: relative; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 18px; position: relative; transition: transform .25s var(--ease), box-shadow .25s; counter-increment: s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step::after { content: counter(s); position: absolute; top: 16px; right: 16px; font: 800 13px var(--display); color: var(--ink-3); }
.step-ico { font-size: 24px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-soft); margin-bottom: 14px; }
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 14px; }
.steps .step:nth-child(2) { transition-delay: .06s; } .steps .step:nth-child(3) { transition-delay: .12s; }
.steps .step:nth-child(4) { transition-delay: .18s; } .steps .step:nth-child(5) { transition-delay: .24s; }

.feature-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.fcase { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 12px; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; color: inherit; }
.fcase:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #cfd3f5; }
.fcase .top { display: flex; justify-content: space-between; align-items: center; }
.fcase .cid { font: 700 13px var(--mono); color: var(--ink-3); }
.fcase h3 { font-size: 19px; }
.fcase p { color: var(--ink-2); font-size: 14.5px; flex: 1; }
.fcase .go { font-weight: 700; color: var(--brand); display: inline-flex; gap: 6px; }
.fcase:hover .go span { transform: translateX(4px); }
.fcase .go span { transition: transform .2s; }

.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.why-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.why-ico { font-size: 26px; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #eef0ff, #f5edff); margin-bottom: 14px; }
.why-card h3 { font-size: 18px; margin-bottom: 8px; }
.why-card p { color: var(--ink-2); font-size: 14.5px; }
.cta-band { margin-top: 40px; border-radius: var(--r-lg); padding: 30px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(120deg, #4f46e5, #7c3aed 60%, #a855f7); color: #fff; box-shadow: var(--shadow-lg); }
.cta-band h3 { font-size: 22px; margin-bottom: 4px; }
.cta-band p { opacity: .85; }
.cta-band .btn-primary { background: #fff; color: var(--brand-ink); box-shadow: none; }
.footer { border-top: 1px solid var(--line); padding: 26px 0; font-size: 13.5px; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ─────────────────────────────────────────────────────── pages ── */
.page { padding-top: 32px; padding-bottom: 64px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; margin-bottom: 4px; }

/* toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.search { flex: 1 1 220px; display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; height: 40px; }
.search svg { width: 17px; height: 17px; stroke: var(--ink-3); fill: none; stroke-width: 2; flex: none; }
.search input { border: 0; background: transparent; outline: 0; font: inherit; width: 100%; color: var(--ink); }
.select { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 4px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.select select { appearance: none; -webkit-appearance: none; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23475569'%3E%3Cpath d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E") no-repeat right 8px center / 16px; padding: 8px 32px 8px 2px; font: 600 14px var(--sans); color: var(--ink); text-transform: none; letter-spacing: 0; cursor: pointer; outline: 0; }
.toggles { display: flex; gap: 8px; }
.toggle { height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 13.5px; color: var(--ink-2); transition: all .15s; }
.toggle[aria-pressed="true"] { background: var(--brand-soft); border-color: #c7cbf8; color: var(--brand-ink); }

/* cases layout */
.cases-layout { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.case-list-wrap { position: sticky; top: calc(var(--nav-h) + 16px); max-height: calc(100vh - var(--nav-h) - 32px); display: flex; flex-direction: column; }
.list-meta { font-size: 13px; color: var(--ink-3); padding: 0 4px 8px; font-weight: 600; }
.case-list { list-style: none; padding: 0 4px 4px 0; margin: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; }
.citem { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 14px 12px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; position: relative; }
.citem:hover { border-color: #cdd1ea; transform: translateX(2px); }
.citem.sel { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .12); }
.citem .row1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.citem .cid { font: 700 14px var(--mono); }
.citem .trig { font-size: 12.5px; color: var(--ink-2); margin: 4px 0 8px; display: flex; gap: 6px; align-items: center; }
.citem .mini { height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.citem .mini span { display: block; height: 100%; border-radius: 99px; }
.citem .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }

/* chips / pills */
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pill.fraud { background: var(--fraud-soft); color: var(--fraud); }
.pill.legitimate { background: var(--legit-soft); color: var(--legit); }
.pill.uncertain { background: var(--warn-soft); color: var(--warn); }
.pill.neutral { background: var(--line-2); color: var(--ink-2); }
.pill.brand { background: var(--brand-soft); color: var(--brand-ink); }
.pill .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* detail */
.case-detail { min-width: 0; }
.empty-state { background: var(--surface); border: 1px dashed #d5d9e8; border-radius: var(--r-lg); padding: 60px 24px; text-align: center; color: var(--ink-2); }
.empty-ico { font-size: 34px; margin-bottom: 8px; }
.empty-state h3 { color: var(--ink); margin-bottom: 4px; }
.back-link { display: none; margin-bottom: 12px; font-weight: 600; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 16px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-title h3 { font-size: 16.5px; }
.card-title .hint { font-size: 13px; color: var(--ink-3); }

.case-hero { position: relative; overflow: hidden; }
.case-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--vc, var(--brand)); }
.ch-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.ch-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ch-title h2 { font: 800 26px var(--mono); letter-spacing: -.02em; }
.ch-verdict { font-size: 13px; padding: 5px 12px; }
.quote { margin-top: 14px; padding: 12px 16px; border-left: 3px solid var(--brand); background: var(--surface-2); border-radius: 0 12px 12px 0; color: var(--ink-2); font-size: 14.5px; }
.quote b { color: var(--ink); font-weight: 600; }
.ch-actions { display: flex; gap: 8px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 20px 0 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs button:hover { color: var(--ink); }
.tabs button.active { color: var(--brand); border-bottom-color: var(--brand); }
.tabs .count { font-size: 11px; background: var(--line-2); color: var(--ink-2); padding: 1px 7px; border-radius: 99px; }
.tab-select { display: none; }
.tabpane { animation: view-in .3s var(--ease); }

/* overview */
.ov-grid { display: grid; grid-template-columns: 250px 1fr; gap: 16px; }
.ov-grid .card + .card { margin-top: 0; }
.gauge-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.gauge { width: 190px; height: 190px; position: relative; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .track { stroke: var(--line-2); }
.gauge .arc { transition: stroke-dashoffset 1.1s var(--ease), stroke .3s; stroke-linecap: round; }
.gauge .center { position: absolute; inset: 0; display: grid; place-content: center; }
.gauge .pct { font: 800 40px var(--display); letter-spacing: -.03em; }
.gauge .sub { font-size: 12px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.gauge-legend { font-size: 12.5px; color: var(--ink-2); margin-top: 10px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fact { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; }
.fact .k { font-size: 11.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.fact .v { font: 700 16px var(--display); margin-top: 2px; word-break: break-word; }

/* decision journey */
.journey { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: stretch; }
.journey.two { grid-template-columns: 1fr auto 1fr; }
.jstep { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--surface-2); }
.jstep.final { background: linear-gradient(180deg, #f6f7ff, #fff); border-color: #d9dcfb; }
.jstep h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 10px; }
.jarrow { display: grid; place-items: center; color: var(--ink-3); font-size: 22px; }
.act { display: flex; flex-direction: column; gap: 4px; padding: 9px 0; border-top: 1px dashed var(--line); }
.act:first-of-type { border-top: 0; padding-top: 0; }
.act .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.act .name { font-weight: 700; font-size: 14.5px; }
.act .why { font-size: 13px; color: var(--ink-2); }
.route { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.route-auto { background: var(--legit-soft); color: var(--legit); }
.route-L1 { background: var(--warn-soft); color: var(--warn); }
.route-L2 { background: var(--fraud-soft); color: var(--fraud); }
.question { font-weight: 600; font-size: 14.5px; margin-bottom: 8px; }
.qmeta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.shift { display: flex; align-items: center; gap: 8px; font: 700 15px var(--display); margin-top: 6px; }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-ink); font-size: 14px; margin-top: 14px; }
.callout.soft { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line-2); }
.callout .ci { font-size: 18px; line-height: 1.3; }
.summary-text { color: var(--ink-2); font-size: 15px; }

details.more { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-top: 12px; }
details.more > summary { list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "⌄"; font-size: 18px; color: var(--ink-3); transition: transform .2s; line-height: 1; }
details.more[open] > summary::after { transform: rotate(180deg); }
details.more > .body { padding: 0 16px 16px; color: var(--ink-2); font-size: 14.5px; }
.sar-text { white-space: pre-wrap; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px; font-size: 14px; color: var(--ink); }

/* evidence */
.ev-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ev { display: grid; grid-template-columns: 1fr 130px; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-2); }
.ev:first-child { border-top: 0; }
.ev .claim { font-size: 14.5px; }
.ev .src { font-size: 12px; color: var(--ink-3); margin-top: 4px; font-family: var(--mono); word-break: break-word; }
.impact { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.impact .val { font: 700 13px var(--mono); }
.impact .bar { width: 100%; height: 8px; background: var(--line-2); border-radius: 99px; position: relative; overflow: hidden; }
.impact .bar::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: #cbd1e1; }
.impact .bar span { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
.hyp { display: grid; grid-template-columns: 190px 1fr 56px; gap: 12px; align-items: center; padding: 7px 0; font-size: 14px; }
.hyp .track { height: 10px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.hyp .fill { height: 100%; border-radius: 99px; background: #c7cbe6; width: 0; transition: width 1s var(--ease); }
.hyp.top .fill { background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.hyp .v { font: 600 13px var(--mono); text-align: right; color: var(--ink-2); }
.hyp.top .name { font-weight: 700; }

/* graph */
.graph-wrap { background: radial-gradient(circle at 50% 45%, #f7f7ff, #fff 70%); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; }
#graph { width: 100%; height: auto; display: block; }
#graph line { stroke: #d5d9ea; stroke-width: 1.2; }
#graph .gn { cursor: default; transition: opacity .2s; }
#graph .gn circle { stroke: #fff; stroke-width: 2; }
#graph text { font: 500 10.5px var(--sans); fill: var(--ink-2); }
#graph.hovering .gn { opacity: .3; }
#graph.hovering .gn.hl { opacity: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }

/* memory */
.mem-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mem { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--surface-2); }
.mem .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mem .id { font: 700 14px var(--mono); }
.mem .pat { font-size: 13.5px; color: var(--ink-2); margin: 6px 0 10px; }
.meter-row { display: grid; grid-template-columns: 90px 1fr 48px; gap: 10px; align-items: center; font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }
.meter-row .track { height: 7px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.meter-row .track span { display: block; height: 100%; background: linear-gradient(90deg, #818cf8, #a78bfa); border-radius: 99px; }
.meter-row .v { font-family: var(--mono); text-align: right; }
.mem .shared { font-size: 12px; color: var(--ink-3); margin-top: 8px; font-family: var(--mono); word-break: break-word; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 11.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-family: var(--mono); white-space: nowrap; }

/* timeline (trace) */
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 14px 14px; font-size: 13.5px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); }
.timeline .tn { font-weight: 700; }
.timeline .tt { font: 500 12px var(--mono); color: var(--ink-3); margin-left: 6px; }
.timeline .td { color: var(--ink-2); font-size: 12.5px; font-family: var(--mono); word-break: break-word; margin-top: 2px; }

/* approvals */
.approval-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.approval-list { display: grid; gap: 12px; }
.appr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; transition: box-shadow .2s, opacity .3s; }
.appr:hover { box-shadow: var(--shadow); }
.appr .head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.appr .act-name { font: 700 17px var(--display); }
.appr .why { color: var(--ink-2); font-size: 14px; margin-top: 6px; }
.appr .meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.appr .btns { display: flex; gap: 8px; }
.btn-ok { background: var(--legit); color: #fff; }
.btn-ok:hover { background: #047857; }
.btn-no { background: var(--surface); color: var(--fraud); border-color: #fecdd6; }
.btn-no:hover { background: var(--fraud-soft); }
.decided { font-size: 13.5px; font-weight: 600; }

/* insights */
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.seg button { border: 0; background: none; padding: 8px 18px; border-radius: 9px; font-weight: 600; color: var(--ink-2); }
.seg button.active { background: var(--brand-soft); color: var(--brand-ink); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.kpi .k { font-size: 12px; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.kpi .v { font: 800 24px var(--display); margin-top: 2px; }
.lr { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.lr .axis { flex: 1; height: 8px; background: var(--line-2); border-radius: 99px; position: relative; }
.lr .axis::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: #c3c9dc; }
.lr .axis span { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
.policy-tools { margin-bottom: 12px; }
.rule { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 10px; }
.rule > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.rule > summary::-webkit-details-marker { display: none; }
.rule > summary .rid { font: 700 13px var(--mono); background: var(--brand-soft); color: var(--brand-ink); padding: 3px 9px; border-radius: 8px; flex: none; }
.rule > summary .rt { font-weight: 600; flex: 1; }
.rule > summary::after { content: "⌄"; color: var(--ink-3); font-size: 18px; transition: transform .2s; }
.rule[open] > summary::after { transform: rotate(180deg); }
.rule .body { padding: 0 16px 16px 16px; color: var(--ink-2); font-size: 14.5px; }

/* drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .28); backdrop-filter: blur(2px); z-index: 60; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--surface); z-index: 61; box-shadow: -20px 0 60px -20px rgba(15, 23, 42, .3); transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; display: flex; flex-direction: column; }
.drawer.open { transform: none; visibility: visible; transition: transform .35s var(--ease); }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin-top: 8px; font-size: 19px; }
.drawer-gauge { padding: 18px 22px 6px; }
.live-bar { height: 12px; background: var(--legit-soft); border-radius: 99px; overflow: hidden; }
.live-bar span { display: block; height: 100%; background: linear-gradient(90deg, #fb7185, var(--fraud)); border-radius: 99px; transition: width .5s var(--ease); }
.live-lbl { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); margin-top: 6px; font-weight: 600; }
.live-steps { list-style: none; margin: 0; padding: 12px 22px 24px; overflow-y: auto; flex: 1; }
.live-steps li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); animation: view-in .3s var(--ease); font-size: 13.5px; }
.live-steps .ico { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.live-steps .nm { font-weight: 700; }
.live-steps .dt { color: var(--ink-3); font-size: 12px; font-family: var(--mono); word-break: break-word; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
.btn-soft .spinner { border-color: rgba(79, 70, 229, .25); border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: all .3s var(--ease); z-index: 70; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* skeleton */
.skel { background: linear-gradient(90deg, #eef0f5, #f7f8fb, #eef0f5); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ─────────────────────────────────────────────────── responsive ── */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .stats-strip { grid-template-columns: repeat(3, 1fr); }
  .stat-big:nth-child(3) { border-right: 0; }
  .stat-big:nth-child(n+4) { border-top: 1px solid var(--line-2); }
  .ov-grid { grid-template-columns: 1fr; }
  .gauge-card { flex-direction: row; justify-content: center; gap: 24px; text-align: left; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; margin: 0; gap: 2px; box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .2s var(--ease); }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; }
  .menu-btn { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; margin: 0 auto; width: 100%; }
  .feature-cases, .why-grid { grid-template-columns: 1fr; }
  .cases-layout { grid-template-columns: 1fr; }
  .case-list-wrap { position: static; max-height: none; }
  .cases-layout.show-detail .case-list-wrap { display: none; }
  .cases-layout:not(.show-detail) .case-detail { display: none; }
  .back-link { display: inline-flex; }
  .journey, .journey.two { grid-template-columns: 1fr; }
  .jarrow { transform: rotate(90deg); padding: 2px 0; }
  .mem-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .container, .nav-inner { padding: 0 16px; }
  .status-text { display: none; }
  .status { padding: 8px; }
  .hero { padding-top: 40px; }
  .lead { font-size: 16px; }
  .float-card { display: none; }
  .fc1 { display: flex; top: 0; left: 0; }
  .steps { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-big { border-right: 0 !important; border-top: 1px solid var(--line-2); }
  .stat-big:nth-child(-n+2) { border-top: 0; }
  .stat-big:last-child { grid-column: 1 / -1; }
  .section { padding: 56px 0; }
  .toolbar .select { flex: 1 1 calc(50% - 5px); justify-content: space-between; }
  .toggles { flex: 1 1 100%; }
  .toggle { flex: 1; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .gauge-card { flex-direction: column; text-align: center; }
  .tabs { display: none; }
  .tab-select { display: flex; width: 100%; margin: 16px 0; }
  .tab-select select { width: 100%; }
  .ev { grid-template-columns: 1fr; gap: 8px; }
  .impact { align-items: stretch; }
  .hyp { grid-template-columns: 1fr 56px; }
  .hyp .track { grid-column: 1 / -1; grid-row: 2; }
  .appr { grid-template-columns: 1fr; }
  .appr .btns .btn { flex: 1; }
  .approval-summary { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .card { padding: 18px 16px; }
  .ch-title h2 { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ───────────────────────────── scoreboard, monitoring, provenance, replay ── */
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sb-wrap { border: 0; border-radius: var(--r-lg); }
table.sb td { vertical-align: middle; }
table.sb tr:hover td { background: #fafbff; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable::after { content: " ↕"; color: #c5cadb; }
th.sortable.asc::after { content: " ↑"; color: var(--brand); }
th.sortable.desc::after { content: " ↓"; color: var(--brand); }
.pbar { width: 70px; height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; display: inline-block; vertical-align: middle; margin-right: 8px; }
.pbar span { display: block; height: 100%; border-radius: 99px; }
.pbar.big { width: 100%; height: 8px; margin: 10px 0; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip-act { font-size: 11.5px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); padding: 2px 8px; border-radius: 8px; white-space: nowrap; }
.source-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 16px; }
.source { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.source:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.source.on { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .12); }
.source .s-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.source .s-exp { font: 800 20px var(--display); margin-top: 8px; }
details.mon > summary { flex-wrap: wrap; }
.ctype { display: inline-block; font: 700 10.5px var(--sans); letter-spacing: .02em; padding: 1px 7px; border-radius: 6px; margin-right: 6px; text-transform: uppercase; vertical-align: 1px; }
.ctype.fact { background: #e0f2fe; color: #0369a1; }
.ctype.infer { background: var(--brand-soft); color: var(--brand-ink); }
.ctype.model { background: var(--warn-soft); color: var(--warn); }
.ctype.policy { background: #f1f5f9; color: #475569; }
.ctype.sim { background: #fdf4ff; color: #a21caf; }
.ctype.cust { background: var(--fraud-soft); color: var(--fraud); }
.entropy { width: 100%; margin-top: 14px; display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 12.5px; color: var(--ink-2); text-align: left; }
.entropy b { font-family: var(--mono); color: var(--ink); }
.entropy .ebar { grid-column: 1 / -1; height: 6px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.entropy .ebar span { display: block; height: 100%; background: linear-gradient(90deg, #a5b4fc, #7c3aed); border-radius: 99px; }
ul.oq { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; }
ul.oq li { margin: 4px 0; }
.sar-actions { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.graph-wrap { position: relative; }
#graph { touch-action: none; cursor: grab; }
#graph.panning { cursor: grabbing; }
#graph .gn { cursor: pointer; }
.gctl { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; }
.gctl .icon-btn { width: 32px; height: 32px; font-size: 16px; box-shadow: var(--shadow-sm); }
.node-info { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 13.5px; color: var(--ink-2); }
ol.stepper { list-style: none; margin: 0 0 14px; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; }
ol.stepper li { flex: 1 0 110px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; text-align: center; position: relative; padding-top: 2px; }
ol.stepper li::before { content: ""; position: absolute; top: 16px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
ol.stepper li:first-child::before { display: none; }
ol.stepper .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line); font: 700 12px var(--display); color: var(--ink-3); z-index: 1; transition: all .25s var(--ease); }
ol.stepper .lbl { font-size: 12px; color: var(--ink-3); font-weight: 600; line-height: 1.3; }
ol.stepper li.done .dot { background: var(--brand-soft); border-color: #c7cbf8; color: var(--brand-ink); }
ol.stepper li.done::before, ol.stepper li.on::before { background: #c7cbf8; }
ol.stepper li.on .dot { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff; transform: scale(1.12); box-shadow: 0 6px 14px -6px rgba(79, 70, 229, .7); }
ol.stepper li.on .lbl { color: var(--ink); }
.step-detail { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 14px 16px; animation: view-in .3s var(--ease); }
.step-detail .sd-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.step-detail .live-bar { background: var(--line-2); }
@media (max-width: 900px) {
  .nav-links { max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .head-actions { width: 100%; }
  .head-actions .select { flex: 1; }
  .gctl { top: 6px; right: 6px; }
}
table.sb td:first-child a { white-space: nowrap; }
table.sb .chips { max-width: 230px; }
table.sb .chip-act { white-space: normal; }
table.sb td, table.sb th { padding: 10px 10px; }

/* ───────────────────────────── probability path (Evidence tab) ── */
.ppath { display: grid; gap: 2px; }
.pp-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) 78px; gap: 14px; align-items: center; padding: 6px 0; }
.pp-label { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; }
.pp-label span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-label .ctype { flex: none; }
.pp-base .pp-label, .pp-final .pp-label { font-weight: 600; }
.pp-final { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px; }
.pp-track { position: relative; height: 14px; background: var(--line-2); border-radius: 99px; }
.pp-bar { position: absolute; top: 0; bottom: 0; border-radius: 99px; opacity: .9; }
.pp-final .pp-bar, .pp-base .pp-bar { opacity: .55; }
.pp-tick { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--ink-3); opacity: .35; }
.pp-val { font: 600 12.5px var(--mono); text-align: right; white-space: nowrap; }
.pp-axisrow { padding: 0; }
.pp-axis { position: relative; height: 16px; font: 500 11px var(--mono); color: var(--ink-3); }
.pp-axis span { position: absolute; transform: translateX(-50%); }
.pp-axis span:first-child { transform: none; }
.pp-axis span:last-child { transform: translateX(-100%); }
@media (max-width: 640px) {
  .pp-row { grid-template-columns: minmax(0, 1fr) 64px; gap: 4px 10px; }
  .pp-label { grid-column: 1 / -1; }
  .pp-track { grid-column: 1; }
  .pp-axisrow > div:first-child, .pp-axisrow > div:last-child, .pp-axis span:last-child { display: none; }
}

.status.snap .status-dot { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
