/* Priors — engineered, not marketed. Graphite ground, hairline rules, a dot grid, one cool accent.
   JetBrains Mono carries the page; IBM Plex Sans is only for running text. Motion is a typing
   terminal, a log that appends, a wireframe tree that turns once every two minutes. */
:root {
  --bg: #0A0B0E;
  --bg-2: #0E1014;
  --surface: #12141A;
  --surface-2: #171A21;
  --line: #262A33;
  --line-2: #1C1F26;
  --hair: rgba(230, 232, 225, .1);
  --text: #E6E8E1;
  --text-2: #A7AAB3;
  --muted: #6E7280;
  --faint: #4A4E59;
  --acc: #8F97FF;
  --acc-2: #B3B8FF;
  --acc-soft: rgba(143, 151, 255, .13);
  --accent: var(--acc); --accent-2: var(--acc-2); --accent-soft: var(--acc-soft);
  --rose: #F2A390; --rose-2: #FFC4B5; --rose-soft: rgba(242, 163, 144, .14);
  --mint: #7DE0B5; --mint-soft: rgba(125, 224, 181, .14);
  --violet: var(--rose); --violet-soft: var(--rose-soft);
  --coral: #FF6F7D; --coral-soft: rgba(255, 111, 125, .14);
  --gold: #E8C77A; --gold-soft: rgba(232, 199, 122, .14);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ui: "IBM Plex Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: var(--mono);
  --r: 6px;
  --ease: cubic-bezier(.22, .61, .21, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--mono); font-size: 13.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1px solid var(--acc); outline-offset: 3px; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.wrap { max-width: 1280px; margin: 0 auto; padding-inline: clamp(18px, 3.5vw, 40px); }
h1, h2, h3 { font-family: var(--mono); margin: 0; font-weight: 500; letter-spacing: -.01em; }
p { margin: 0; }
::selection { background: rgba(143,151,255,.3); }
.k { color: var(--acc-2); } .g { color: var(--mint); } .r { color: var(--coral); } .o { color: var(--rose); } .c { color: var(--muted); } .y { color: var(--gold); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(10, 11, 14, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--hair); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.brand svg { width: 24px; height: 24px; border-radius: 6px; }
.links { display: flex; gap: 2px; margin-left: 6px; }
.links a { padding: 6px 10px; border-radius: var(--r); color: var(--text-2); font-size: 12.5px; transition: color .3s, background .3s; }
.links a:hover, .links a.on { color: var(--text); background: rgba(230,232,225,.06); }
.nav .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav .sub { color: var(--muted); font-size: 12px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; padding: 5px 10px; border-radius: var(--r); border: 1px solid var(--hair); background: rgba(230,232,225,.03); color: var(--muted); white-space: nowrap; }
.status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.status.live { color: var(--mint); border-color: rgba(125,224,181,.3); }
.status.live .dot { background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.status.snapshot { color: var(--gold); border-color: rgba(232,199,122,.3); }
.status.snapshot .dot { background: var(--gold); }
.status.error { color: var(--coral); border-color: rgba(255,111,125,.3); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; border-radius: var(--r); font-weight: 500; font-size: 12.5px; border: 1px solid var(--hair); background: rgba(230,232,225,.03); color: var(--text); transition: background .3s, border-color .3s, transform .4s var(--ease); font-family: var(--mono); }
.btn:hover { border-color: rgba(230,232,225,.3); background: rgba(230,232,225,.07); }
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.primary:hover { background: #fff; }
.btn .arr { transition: transform .4s var(--ease); } .btn:hover .arr { transform: translateX(3px); }
.btn.sm { padding: 6px 11px; font-size: 12px; }

/* ---------- landing ---------- */
body.landing { background: var(--bg); }
.page { position: relative; z-index: 1; }
.rule { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); flex-wrap: wrap; }
.rule b { color: var(--text-2); font-weight: 500; }

/* spec header */
.spec { padding-block: 40px 28px; }
.spec h1 { margin-top: 44px; font-size: clamp(22px, 3.1vw, 40px); line-height: 1.25; font-weight: 500; max-width: 30ch; letter-spacing: -.02em; }
.spec h1 .c { font-weight: 400; }
.spec h1 .cur { display: inline-block; width: .55em; height: 1em; background: var(--acc); vertical-align: -.15em; margin-left: 2px; animation: blink 1s steps(1) infinite; }
.spec .sum { margin-top: 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); max-width: 860px; }
.spec .sum > div { background: var(--bg); padding: 12px 14px; }
.spec .sum .label { margin-bottom: 6px; }
.spec .sum .v { font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
.spec .sum .v.g { color: var(--mint); }
.spec .sum .s { font-size: 11.5px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bench { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: stretch; }
.schem { position: relative; border: 1px solid var(--hair); background: rgba(14,16,20,.6); border-radius: var(--r); overflow: hidden; min-height: 420px; }
.schem canvas { position: absolute; inset: 0 0 54px 0; width: 100%; height: calc(100% - 54px); opacity: 0; transition: opacity 1.6s ease; }
.schem canvas.on { opacity: 1; }
.schem .leg { position: absolute; left: 14px; right: 14px; bottom: 10px; display: flex; gap: 12px; font-size: 11px; color: var(--muted); flex-wrap: wrap; }
.schem .tip { position: absolute; z-index: 2; pointer-events: none; padding: 8px 10px; border-radius: var(--r); background: rgba(18,20,26,.96); border: 1px solid var(--hair); font-size: 12px; line-height: 1.5; color: var(--text-2); max-width: 240px; }
.schem .tip b { color: var(--text); }
.schem .leg .r { flex-basis: 100%; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.schem .leg i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.term { border: 1px solid var(--hair); background: rgba(14,16,20,.88); border-radius: var(--r); display: flex; flex-direction: column; min-height: 420px; }
.term .tbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--hair); font-size: 11.5px; color: var(--muted); }
.term .tbar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.term .tbar span { margin-left: 6px; }
.term .tbar .right { margin-left: auto; }
.term pre { flex: 1; max-height: 380px; margin: 0; padding: 16px 18px; border: 0; background: transparent; font-size: 12.5px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-2); overflow: hidden; }
.term pre .p { color: var(--muted); } .term pre .cmd { color: var(--text); } .term pre .out { color: var(--text-2); }
.term pre .cur { display: inline-block; width: 7px; height: 14px; background: var(--acc); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.logwrap { margin-top: 20px; border: 1px solid var(--hair); border-radius: var(--r); background: rgba(14,16,20,.88); overflow: hidden; }
.logwrap header { display: flex; gap: 16px; padding: 8px 14px; border-bottom: 1px solid var(--hair); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.logwrap header span:last-child { margin-left: auto; text-transform: none; letter-spacing: 0; }
.log { display: grid; font-size: 12.5px; }
.log .ln { display: grid; grid-template-columns: 64px 96px minmax(0, 1.2fr) minmax(0, 1.6fr) 100px 120px; gap: 14px; padding: 7px 14px; border-bottom: 1px solid var(--line-2); align-items: baseline; white-space: nowrap; overflow: hidden; }
.log .ln:last-child { border-bottom: 0; }
.log .ln > span { overflow: hidden; text-overflow: ellipsis; }
.log .ln .blk { color: var(--muted); } .log .ln .kind { font-weight: 500; } .log .ln .amt { text-align: right; font-variant-numeric: tabular-nums; } .log .ln .tx { color: var(--faint); text-align: right; }
.log .ln .tx a:hover { color: var(--acc-2); }
.log .ln.repaid .kind, .log .ln.claimed .kind { color: var(--mint); } .log .ln.borrowed .kind { color: var(--acc-2); } .log .ln.vouched .kind, .log .ln.root .kind { color: var(--rose); } .log .ln.defaulted .kind, .log .ln.recourse .kind, .log .ln.slashed .kind { color: var(--coral); }
.log .ln.repaid .amt { color: var(--mint); } .log .ln.defaulted .amt { color: var(--coral); }
@keyframes lnIn { from { opacity: 0; transform: translateY(-3px); background: var(--acc-soft); } to { opacity: 1; transform: none; background: transparent; } }
.log .ln.new { animation: lnIn 1.6s ease-out both; }

/* numbered sections */
section.sec { padding-block: 72px; border-top: 1px solid var(--hair); }
.sec .head { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: baseline; margin-bottom: 36px; }
.sec .head .no { font-size: 12px; color: var(--acc); letter-spacing: .08em; }
.sec .head h2 { font-size: clamp(20px, 2.4vw, 28px); font-weight: 500; }
.sec .head p { margin-top: 10px; color: var(--text-2); font-family: var(--ui); font-size: 15px; max-width: 64ch; line-height: 1.6; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.box { border: 1px solid var(--hair); border-radius: var(--r); background: rgba(14,16,20,.6); }
.box > header { padding: 8px 14px; border-bottom: 1px solid var(--hair); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; gap: 12px; }
.box > header span:last-child { margin-left: auto; text-transform: none; letter-spacing: 0; }
.code { margin: 0; padding: 16px 18px; font-family: var(--mono); font-size: 12.5px; line-height: 1.8; color: var(--text-2); white-space: pre; overflow-x: auto; background: transparent; border: 0; }
.code b { color: var(--text); font-weight: 500; }
.code .line { display: block; margin-inline: -18px; padding-inline: 18px; transition: background .6s, color .6s; }
.code .line.hi { background: rgba(143,151,255,.09); }
.code .line.hi b { color: var(--acc-2); }
.code .cm { color: var(--muted); }
.prose { font-family: var(--ui); font-size: 15px; color: var(--text-2); line-height: 1.65; padding: 16px 18px; }
.prose b { color: var(--text); font-weight: 500; }
.prose p + p { margin-top: 12px; }
.defs { display: grid; gap: 0; }
.def { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 12px 18px; border-top: 1px solid var(--line-2); font-size: 12.5px; }
.def:first-child { border-top: 0; }
.def .t { color: var(--text); font-weight: 500; }
.def .d { color: var(--text-2); font-family: var(--ui); font-size: 14px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th, .tbl td { padding: 9px 14px; border-top: 1px solid var(--line-2); text-align: left; white-space: nowrap; }
.tbl th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; border-top: 0; }
.tbl td.n { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.tbl td.c { color: var(--muted); white-space: normal; font-family: var(--ui); font-size: 13px; }
.tblwrap { overflow-x: auto; }

/* state machine */
.fsm svg { width: 100%; height: auto; display: block; }
.fsm rect { fill: var(--surface); stroke: var(--line); }
.fsm svg { padding: 12px 8px 6px; }
.fsm text { font-family: var(--mono); font-size: 12px; fill: var(--text-2); }
.fsm text.t { fill: var(--text); font-weight: 500; font-size: 13px; }
.fsm text.c { fill: var(--muted); font-size: 11.5px; }
.fsm path { fill: none; stroke: var(--line); stroke-width: 1.2; }
.fsm path.hot { stroke: var(--acc); stroke-dasharray: 4 8; animation: dash 3s linear infinite; }
.fsm path.bad { stroke: var(--coral); stroke-dasharray: 4 8; animation: dash 3s linear infinite; }
.fsm path.ok { stroke: var(--mint); stroke-dasharray: 4 8; animation: dash 3s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }

/* score example */
.ex { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 12px; padding: 9px 18px; border-top: 1px solid var(--line-2); font-size: 12.5px; }
.ex:first-of-type { border-top: 0; }
.ex .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.ex.total { border-top: 1px solid var(--hair); font-weight: 500; color: var(--text); }
.ex.total .v { color: var(--acc-2); font-size: 15px; }
.ex .sub { color: var(--muted); }

/* invariants */
.inv { display: grid; gap: 20px; }
.inv .box .code { font-size: 13.5px; color: var(--text); }
.stat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--r); overflow: hidden; }
.stat > div { background: var(--bg); padding: 14px 16px; }
.stat .v { font-size: 20px; font-weight: 500; }
.stat .label { margin-top: 4px; }

/* interface */
.sig { padding: 8px 18px; border-top: 1px solid var(--line-2); font-size: 12.5px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.sig:first-child { border-top: 0; }
.sig .fn { color: var(--text); } .sig .fn .k { color: var(--acc-2); } .sig .who { color: var(--muted); }
.kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px 14px; font-size: 12.5px; padding: 14px 18px; }
.kv span { color: var(--muted); }
.kv code { overflow-wrap: anywhere; color: var(--text-2); font-family: inherit; }
.kv a { color: var(--acc-2); }
pre { background: transparent; border: 0; color: var(--text-2); padding: 16px 18px; margin: 0; overflow: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.75; }
pre b { color: var(--rose-2); font-weight: 500; }
.params { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); padding: 12px 18px; border-top: 1px solid var(--line-2); }
.params b { color: var(--text-2); font-weight: 500; }

footer.foot { border-top: 1px solid var(--hair); padding-block: 28px; color: var(--muted); font-size: 12px; position: relative; z-index: 1; }
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- app ---------- */
.grove { position: relative; height: 420px; background: var(--bg-2); overflow: hidden; }
.cap { padding: 16px 18px; display: grid; gap: 10px; }
.capbar { display: flex; height: 10px; border-radius: 3px; overflow: hidden; background: var(--line-2); margin-bottom: 6px; }
.capbar i { display: block; height: 100%; width: 0; transition: width 1.6s var(--ease); }
.cap .idle { background: var(--acc); } .cap .out { background: var(--acc-2); opacity: .55; } .cap .stake { background: var(--rose); } .cap .res { background: var(--mint); }
.caprow { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 12.5px; color: var(--text-2); }
.caprow i { width: 8px; height: 8px; border-radius: 2px; }
.caprow b { font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.grove canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.grove .tip { position: absolute; z-index: 2; pointer-events: none; padding: 8px 10px; border-radius: var(--r); background: rgba(18,20,26,.96); border: 1px solid var(--hair); font-size: 12px; line-height: 1.5; color: var(--text-2); max-width: 240px; }
.grove .tip b { color: var(--text); }
.panel > header .sub { font-size: 12px; color: var(--muted); }
.map .legend i { background: var(--faint); }
body.app { background: var(--bg); }
.app-main { padding-block: 24px 64px; display: grid; gap: 18px; max-width: 1480px; }
body.app .nav .wrap { max-width: 1480px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-2); position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--acc); opacity: 0; transition: opacity .9s; }
.kpi.tick::after { opacity: 1; }
.kpi .label { margin-bottom: 8px; }
.kpi .val { font-weight: 600; font-size: 24px; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi .sub { margin-top: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.good .val { color: var(--mint); }
.kpi.bad .val { color: var(--coral); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 18px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.panel > header { display: flex; align-items: baseline; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line-2); }
.panel > header h2 { font-size: 14px; font-weight: 600; }
.panel > header .label { margin-left: auto; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: 12px; }
.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 760px; }
th .sub { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--faint); margin-left: 6px; }
td.wrapcell { white-space: normal; min-width: 120px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; white-space: nowrap; font-size: 12.5px; }
th:first-child, td:first-child { padding-left: 18px; }
th:last-child, td:last-child { padding-right: 18px; }
th { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--surface); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .35s; }
tbody tr:hover td { background: var(--surface-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.rank { color: var(--faint); width: 44px; font-variant-numeric: tabular-nums; }
.agent { display: flex; align-items: center; gap: 12px; }
.agent .av { width: 30px; height: 30px; border-radius: var(--r); background: var(--acc-soft); color: var(--acc-2); display: grid; place-items: center; font-weight: 600; font-size: 12px; }
.agent .av.dead { background: var(--coral-soft); color: var(--coral); }
.agent .av.root { background: var(--rose-soft); color: var(--rose-2); }
.agent .nm { font-weight: 600; }
.agent .id { font-size: 11.5px; color: var(--muted); }
.scorecell { display: flex; align-items: center; gap: 10px; min-width: 104px; }
tr.top .scorecell b { color: var(--acc-2); }
tr.top td.rank { color: var(--acc-2); }
td.rec { font-family: var(--mono); color: var(--mint); letter-spacing: .02em; font-size: 13px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
td.rec .r { color: var(--coral); } td.rec .o { color: var(--rose); }
.linecell { display: grid; gap: 5px; min-width: 110px; max-width: 170px; }
.linecell span { font-size: 12px; color: var(--text); font-variant-numeric: tabular-nums; }
.linecell em { font-style: normal; color: var(--muted); }
.lbar { height: 5px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.lbar i { display: block; height: 100%; width: 0; background: var(--acc-2); opacity: .8; transition: width 1.6s var(--ease); }
.lbar.root i { background: var(--rose); }
.lbar.dead i { background: var(--coral); }
.bar { flex: 1; height: 5px; background: var(--line-2); border-radius: 3px; position: relative; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; background: var(--acc); border-radius: 3px; transition: width 1.6s var(--ease); }
.bar.dead i { background: var(--coral); }
.scorecell b { font-weight: 600; min-width: 3ch; text-align: left; font-variant-numeric: tabular-nums; }
tr.dead .nm, tr.dead .scorecell b { color: var(--coral); }
.sub { color: var(--muted); font-size: 12px; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 500; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.ok { color: var(--mint); border-color: rgba(125,224,181,.3); background: var(--mint-soft); }
.chip.warn { color: var(--gold); border-color: rgba(232,199,122,.3); background: var(--gold-soft); }
.chip.bad { color: var(--coral); border-color: rgba(255,111,125,.3); background: var(--coral-soft); }
.chip.root { color: var(--rose-2); border-color: rgba(242,163,144,.3); background: var(--rose-soft); }
.chip.neutral { color: var(--acc-2); border-color: rgba(143,151,255,.3); background: var(--acc-soft); }
@keyframes rowFlash { from { background: var(--acc-soft); } to { background: transparent; } }
tr.flash td { animation: rowFlash 3s ease-out both; }
.map { position: relative; height: 380px; background: var(--bg-2); }
.map canvas { position: absolute; inset: 0; }
.map .legend { position: absolute; left: 14px; bottom: 12px; display: inline-flex; gap: 12px; font-size: 11px; color: var(--muted); }
.map .legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.side { display: grid; gap: 18px; }
.ev { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line-2); align-items: start; font-size: 12.5px; }
.ev:last-child { border-bottom: 0; }
.ev .k { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: var(--faint); }
.ev.repaid .k, .ev.claimed .k { background: var(--mint); }
.ev.borrowed .k { background: var(--acc); }
.ev.vouched .k, .ev.root .k { background: var(--rose); }
.ev.defaulted .k, .ev.recourse .k, .ev.slashed .k { background: var(--coral); }
.ev .d { color: var(--text-2); overflow-wrap: anywhere; }
.ev .d b { color: var(--text); font-weight: 600; }
.ev .t { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.ev .t a { color: var(--muted); }
.ev .t a:hover { color: var(--acc-2); }
.ev .a { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; color: var(--text-2); }
.ev.repaid .a, .ev.claimed .a { color: var(--mint); }
.ev.defaulted .a { color: var(--coral); }
@keyframes evIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.ev.new { animation: evIn 1.4s ease-out both; }
.ledger { max-height: 520px; overflow: auto; }

@media (prefers-reduced-motion: reduce) {
  .ev.new, tr.flash td, .log .ln.new, .fsm path, .term pre .cur { animation: none; }
  .bar i, .btn { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 1000px) {
  .bench, .grid2, .grid3, .split, .sec .head { grid-template-columns: 1fr; }
  .spec .sum, .stat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .links { display: none; }
  .log .ln { grid-template-columns: 56px 90px minmax(0, 1fr) 90px; }
  .log .ln .who2, .log .ln .tx { display: none; }
}
@media (max-width: 640px) {
  .status #status-text { display: none; }
  .nav .sub { display: none; }
  .kpis, .spec .sum, .stat { grid-template-columns: 1fr; }
  .def { grid-template-columns: 1fr; gap: 4px; }
  .term, .schem { min-height: 340px; }
  .grove { height: 320px; }
  .panel > header .sub { display: none; }
}
