/* isitsolved / leanverified · a data-first, legible system: IBM Plex Sans + Plex Mono + KaTeX. */
:root {
  --bg: #f6f7f4;
  --card: #ffffff;
  --ink: #111418;
  --ink-2: #474d57;
  --ink-3: #868d97;
  --line: #e4e6e1;
  --line-2: #cfd3cc;
  --soft: #f0f2ee;
  --accent: #e0492a;
  --accent-soft: #fdeee9;
  --link: #1f4fd6;
  --verified: #128a4a; --verified-soft: #e5f5ec;
  --proved: #0c7f8a;   --proved-soft: #e3f4f5;
  --disproved: #6b3fd4; --disproved-soft: #efe9fc;
  --claimed: #c27a03;  --claimed-soft: #fdf3df;
  --disputed: #b4540a; --disputed-soft: #fbeadc;
  --partial: #2a5bd7;  --partial-soft: #e8eefc;
  --open: #7b828c;     --open-soft: #eef0f2;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --cond: "IBM Plex Sans Condensed", "IBM Plex Sans", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1240px;
  --r: 10px;
  --shadow: 0 1px 2px rgba(17, 20, 24, .04), 0 1px 1px rgba(17, 20, 24, .03);
}
body.lv { --bg: #0e1013; --card: #15181d; --ink: #eef0f2; --ink-2: #b3b9c2; --ink-3: #7c838e; --line: #262a31; --line-2: #343a43; --soft: #1b1f25; --link: #7ea2ff; --accent-soft: #3a1d15; --verified: #2fbf6f; --verified-soft: #10301f; --shadow: none; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
code, pre, kbd, .mono { font-family: var(--mono); }
code { font-size: .88em; background: var(--soft); border: 1px solid var(--line); padding: .05em .35em; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); letter-spacing: -.03em; line-height: 1.08; }
h2 { font-size: clamp(1.4rem, 2.3vw, 1.8rem); letter-spacing: -.02em; }
h3 { font-size: 1.06rem; }
p { margin: 0 0 1em; }
img, svg { max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1rem, 3vw, 2rem); }
.dim { color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kicker { font: 600 .72rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.kicker--accent { color: var(--accent); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ header */
.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top__row { display: flex; align-items: center; gap: 1.4rem; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; font: 700 1.1rem/1 var(--sans); letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo__mark { width: 26px; height: 26px; border-radius: 7px; background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 16px/1 var(--sans); }
.logo__mark i { font-style: normal; color: #ff8a6b; }
body.lv .logo__mark { background: var(--verified); color: #0e1013; }
.nav { display: flex; gap: .1rem; flex-wrap: wrap; }
.nav a { color: var(--ink-2); font-size: .9rem; font-weight: 500; padding: .4rem .6rem; border-radius: 7px; }
.nav a:hover { background: var(--soft); color: var(--ink); text-decoration: none; }
.nav a[aria-current] { color: var(--ink); background: var(--soft); }
.top__cta { margin-left: auto; display: flex; align-items: center; gap: .7rem; }
.live { display: inline-flex; align-items: center; gap: .45rem; font: 500 .76rem/1 var(--mono); color: var(--ink-2); white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--verified); box-shadow: 0 0 0 3px color-mix(in srgb, var(--verified) 20%, transparent); animation: pulse 2s ease-in-out infinite; flex: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--verified) 6%, transparent); } }
.news { background: #111418; color: #e9ecef; font-size: .86rem; overflow: hidden; white-space: nowrap; }
body.lv .news { background: #050607; border-bottom: 1px solid var(--line); }
.news__track { display: inline-flex; gap: 2.6rem; padding: .5rem 0; animation: tick 120s linear infinite; }
.news:hover .news__track { animation-play-state: paused; }
.news b { color: #ffb38f; font-weight: 600; margin-right: .5rem; font-family: var(--mono); font-size: .76rem; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ buttons, pills, chips */
.btn { display: inline-flex; align-items: center; gap: .5rem; font: 600 .88rem/1 var(--sans); padding: .65rem .95rem; border-radius: 8px; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; opacity: .88; }
.btn--ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--soft); opacity: 1; }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--sm { padding: .45rem .7rem; font-size: .8rem; }
body.lv .btn { background: var(--ink); color: #0e1013; border-color: var(--ink); }
body.lv .btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.pill { display: inline-flex; align-items: center; gap: .55rem; background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; padding: .3rem .35rem .3rem .75rem; font-size: .84rem; color: var(--ink); box-shadow: var(--shadow); white-space: nowrap; }
.pill button { border: 0; background: var(--ink); color: #fff; border-radius: 999px; font: 600 .78rem/1 var(--sans); padding: .42rem .75rem; cursor: pointer; }
.pill button:hover { opacity: .85; }
body.lv .pill button { background: var(--verified); color: #0e1013; }
.chip { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line-2); background: var(--card); border-radius: 999px; padding: .3rem .7rem; font: 500 .83rem/1.2 var(--sans); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--ink-3); color: var(--ink); text-decoration: none; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip sup { font: 500 .7rem var(--mono); color: var(--ink-3); margin-left: .1rem; top: 0; }
.chip[aria-pressed="true"] sup { color: #c8ccd2; }

/* status colors */
.s-verified { --c: var(--verified); --cs: var(--verified-soft); }
.s-proved { --c: var(--proved); --cs: var(--proved-soft); }
.s-disproved { --c: var(--disproved); --cs: var(--disproved-soft); }
.s-claimed { --c: var(--claimed); --cs: var(--claimed-soft); }
.s-disputed { --c: var(--disputed); --cs: var(--disputed-soft); }
.s-partial { --c: var(--partial); --cs: var(--partial-soft); }
.s-open { --c: var(--open); --cs: var(--open-soft); }
.badge { display: inline-flex; align-items: center; gap: .4rem; font: 600 .74rem/1 var(--sans); padding: .32rem .55rem; border-radius: 6px; white-space: nowrap; color: var(--c); background: var(--cs); }
.sdot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; display: inline-block; }
.s-open .sdot, .sdot.s-open { background: transparent; border: 2px solid var(--c); }
.tag { display: inline-flex; align-items: center; gap: .3rem; font: 600 .66rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; padding: .3rem .45rem; border-radius: 5px; border: 1px solid currentColor; white-space: nowrap; }
.tag--checked { color: var(--verified); background: var(--verified-soft); border-color: transparent; }
.tag--cited { color: var(--ink-2); border-color: var(--line-2); }
.tag--reported { color: var(--ink-3); border-style: dashed; }
.tag--accepted { color: var(--proved); background: var(--proved-soft); border-color: transparent; }
.tag--locked { color: var(--ink-3); border-color: var(--line-2); }

/* ------------------------------------------------------------------ cards, grids, KPIs */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem 1.3rem; box-shadow: var(--shadow); }
.card__head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.card__head p { margin: .25rem 0 0; color: var(--ink-2); font-size: .9rem; width: 100%; }
.sec { padding: 2rem 0 0; }
.sec__head { display: flex; justify-content: space-between; align-items: end; gap: .8rem 2rem; flex-wrap: wrap; margin-bottom: 1rem; }
.sec__head p { margin: .35rem 0 0; color: var(--ink-2); max-width: 72ch; }
.g2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.g-main { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 1rem; align-items: start; }
.stack > * + * { margin-top: 1rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.kpi { padding: .95rem 1.1rem; border-right: 1px solid var(--line); }
.kpi:last-child { border-right: 0; }
.kpi b { display: block; font: 600 1.75rem/1.1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi span { display: block; font-size: .78rem; color: var(--ink-3); margin-top: .25rem; line-height: 1.35; }
.kpi--green b { color: var(--verified); } .kpi--accent b { color: var(--accent); } .kpi--amber b { color: var(--claimed); } .kpi--teal b { color: var(--proved); }

/* ------------------------------------------------------------------ hero */
.hero { padding: 1.8rem 0 0; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1rem; align-items: start; }
.hero__ask { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.4rem 1.6rem 1.3rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.hero__pills { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.q { font: 600 clamp(2.2rem, 4.8vw, 3.9rem)/1.08 var(--sans); letter-spacing: -.035em; margin: 1.1rem 0 1.2rem; text-wrap: balance; }
.q__subject { color: var(--ink); border-bottom: 3px solid var(--accent); cursor: pointer; }
.q__subject:hover { text-decoration: none; color: var(--accent); }
.q__subject[data-swap] { animation: swapin .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes swapin { from { opacity: 0; transform: translateY(6px); } }
.answer { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.answer__word { font: 700 clamp(2.1rem, 3.6vw, 2.9rem)/1 var(--cond); letter-spacing: .02em; text-transform: uppercase; color: var(--c); padding: .16em .4em .12em; border: 3px solid var(--c); border-radius: 10px; transform: rotate(-3deg); background: var(--cs); white-space: nowrap; }
.answer__word.is-in { animation: thunk .5s cubic-bezier(.2, 1.4, .35, 1) both; }
@keyframes thunk { from { opacity: 0; transform: rotate(-9deg) scale(1.5); } to { transform: rotate(-3deg) scale(1); } }
.answer__note { flex: 1; min-width: 14rem; color: var(--ink-2); font-size: .98rem; margin: 0; }
.answer__note a { font-weight: 600; }
.answer .seal { width: 72px; height: 72px; color: var(--verified); flex: none; }
.hero__more { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1.3rem; align-items: center; }
.hero__more .kicker { margin-right: .3rem; }
.hero__side { display: flex; flex-direction: column; gap: 1rem; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: .6rem 0; border-top: 1px solid var(--line); font-size: .88rem; line-height: 1.45; }
.feed li:first-child { border-top: 0; padding-top: 0; }
.feed .meta { display: flex; gap: .6rem; flex-wrap: wrap; font: 500 .7rem/1.4 var(--mono); color: var(--ink-3); margin-bottom: .15rem; }
.feed a { color: var(--ink); font-weight: 500; }
.empty { color: var(--ink-3); font-size: .9rem; margin: 0; }

/* the board */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: .6rem; }
.tile { position: relative; display: flex; flex-direction: column; gap: .45rem; min-height: 122px; padding: .85rem .8rem .7rem; background: var(--card); border: 1px solid var(--line); border-radius: 9px; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s; overflow: hidden; }
.tile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.tile.s-open::before { background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 10px); }
.tile:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 22px -10px rgba(17, 20, 24, .28); border-color: var(--line-2); }
.tile__top { display: flex; justify-content: space-between; align-items: center; gap: .4rem; font: 500 .68rem/1 var(--mono); color: var(--ink-3); }
.tile__name { font: 600 .93rem/1.28 var(--sans); letter-spacing: -.01em; }
.tile__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: .4rem; }
.tile__formal { font: 600 .66rem/1 var(--mono); color: var(--verified); }
.rungs { display: flex; gap: 2px; }
.rungs i { width: 11px; height: 5px; border-radius: 2px; background: var(--line); }
.rungs i.on { background: var(--c); }
.tile[hidden], .trow[hidden] { display: none; }
.views { display: inline-flex; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.views button { border: 0; background: var(--card); padding: .38rem .75rem; font: 500 .82rem var(--sans); color: var(--ink-2); cursor: pointer; }
.views button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.filters { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }

/* tables */
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font: 600 .68rem/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); padding: .5rem .6rem; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table td { padding: .58rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--soft); }
.table .r { text-align: right; }
.table a.name { color: var(--ink); font-weight: 500; }
.tablewrap { overflow-x: auto; }

/* charts */
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font: 11px var(--mono); fill: var(--ink-3); }
.chart .t { font: 600 12px var(--sans); fill: var(--ink); }
.chart .tl { font: 500 12px var(--sans); fill: var(--ink-2); }
.chart a:hover .tl { fill: var(--link); }
.legend { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .8rem; color: var(--ink-2); margin-top: .7rem; }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); display: inline-block; }
.legend i.ring { background: transparent; border: 2px solid var(--c); border-radius: 50%; }
.stackbar { display: flex; height: 30px; border-radius: 7px; overflow: hidden; gap: 2px; }
.stackbar span.s-open { background: repeating-linear-gradient(135deg, #9aa1aa 0 6px, #8a919b 6px 12px); }
.stackbar span { display: flex; align-items: center; justify-content: center; font: 600 .76rem var(--mono); color: #fff; min-width: 30px; background: var(--c); }
.bar { height: 7px; background: var(--soft); border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.bar i { display: block; height: 100%; background: var(--verified); }

/* problem page */
.crumbs { font-size: .84rem; color: var(--ink-3); margin: 1.5rem 0 .9rem; }
.crumbs a { color: var(--ink-2); }
.phead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: start; }
.phead h1 { margin: .55rem 0 .7rem; }
.phead .lede { font-size: 1.06rem; color: var(--ink-2); max-width: 64ch; margin: 0; }
.phead .answer { border-top: 0; padding-top: .4rem; margin-top: 0; }
.track { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 1.5rem; position: relative; }
.track::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 2px; background: var(--line-2); }
.track div { position: relative; padding-top: 1.35rem; font: 500 .76rem/1.3 var(--sans); color: var(--ink-3); }
.track div::before { content: ""; position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 2px solid var(--line-2); }
.track div.on { color: var(--ink-2); }
.track div.on::before { background: var(--c); border-color: var(--c); }
.track div.now { color: var(--ink); font-weight: 600; }
.track div.now::before { background: var(--c); border-color: var(--c); box-shadow: 0 0 0 4px var(--cs); }
.track small { display: block; color: var(--ink-3); font-weight: 400; }
.theorem { font-size: 1.1rem; line-height: 1.65; margin: 0; }
.theorem b { font-weight: 600; margin-right: .35rem; font-style: normal; }
.theorem span { font-style: italic; }
.frontier { list-style: none; margin: 0; padding: 0; }
.frontier li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: .8rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.frontier li:first-child { border-top: 0; padding-top: 0; }
.frontier .y { font: 600 .82rem/1.55 var(--mono); color: var(--ink-2); }
.frontier p { margin: 0; font-size: .95rem; }
.frontier .who { font-size: .78rem; color: var(--ink-3); margin-top: .2rem; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 6.55rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--line); }
.tl li { display: grid; grid-template-columns: 6rem 1rem minmax(0, 1fr); gap: 0 .5rem; padding: .32rem 0; align-items: baseline; }
.tl time { font: 500 .76rem var(--mono); color: var(--ink-3); text-align: right; }
.tl i { width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid var(--ink-3); position: relative; top: 1px; left: .22rem; z-index: 1; }
.tl li.hot i { background: var(--accent); border-color: var(--accent); }
.tl li.hot time { color: var(--accent); }
.tl p { margin: 0; font-size: .92rem; }
.tl p a { font-size: .76rem; margin-left: .4rem; }
.dl { margin: 0; }
.dl dt { font: 600 .68rem/1.2 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin-top: .95rem; }
.dl dt:first-child { margin-top: 0; }
.dl dd { margin: .28rem 0 0; font-size: .9rem; }
.srcs { list-style: none; margin: 0; padding: 0; }
.srcs li { padding: .28rem 0; font-size: .88rem; }
.tabs { position: relative; }
.tabs input { position: absolute; opacity: 0; pointer-events: none; }
.tabs__bar { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tabs__bar label { font: 500 .83rem var(--sans); padding: .35rem .7rem; border-radius: 7px; border: 1px solid var(--line-2); cursor: pointer; color: var(--ink-2); }
.tabs__pane { display: none; }
#d1:checked ~ .tabs__bar label[for="d1"], #d2:checked ~ .tabs__bar label[for="d2"], #d3:checked ~ .tabs__bar label[for="d3"], #d4:checked ~ .tabs__bar label[for="d4"] { background: var(--ink); color: #fff; border-color: var(--ink); }
#d1:checked ~ .p1, #d2:checked ~ .p2, #d3:checked ~ .p3, #d4:checked ~ .p4 { display: block; }
.lean { background: #0f1216; color: #e6e9ee; border-radius: 8px; padding: 1rem 1.1rem; overflow-x: auto; font: .8rem/1.65 var(--mono); margin: .8rem 0 0; }
.lean .k { color: #ff9e7a; } .lean .c { color: #7d8694; } .lean .n { color: #8fd0ff; }
.mathblock { background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: .6rem 1rem; margin: .8rem 0; overflow-x: auto; }
.prose { max-width: 72ch; }
.prose p { color: var(--ink-2); }

/* chapter map */
.chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .55rem; }
.chapter { border: 1px solid var(--line); border-radius: 9px; padding: .7rem .8rem; background: var(--card); display: flex; flex-direction: column; gap: .35rem; color: var(--ink); }
.chapter:hover { text-decoration: none; border-color: var(--line-2); }
.chapter__n { font: 600 .7rem var(--mono); color: var(--ink-3); display: flex; justify-content: space-between; }
.chapter__t { font: 600 .88rem/1.3 var(--sans); }
.chapter .bar { margin-top: auto; }
.chapter small { font-size: .72rem; color: var(--ink-3); }

/* cascade */
.cascade { list-style: none; margin: 0; padding: 0; }
.cascade li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: .8rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.cascade li:first-child { border-top: 0; padding-top: .2rem; }
.cascade .sdot { margin-top: .4rem; }
.cascade h3 { font-size: .98rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; }
.cascade h3 small { font: 500 .72rem var(--mono); color: var(--ink-3); }
.cascade p { margin: .3rem 0 0; font-size: .9rem; color: var(--ink-2); }
.cascade .st { color: var(--ink); }
.cascade .tags { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .45rem; }
.cascade li.locked { opacity: .7; }

/* desk */
.prompt { border: 1px solid var(--line-2); border-radius: 10px; background: var(--soft); overflow: hidden; }
.prompt pre { margin: 0; padding: .9rem 1rem; white-space: pre-wrap; font: .84rem/1.6 var(--mono); color: var(--ink); }
.prompt__bar { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .5rem .55rem .5rem 1rem; border-top: 1px solid var(--line-2); background: var(--card); font-size: .76rem; color: var(--ink-3); }
.prompt.is-done pre { display: none; }
.prompt__done { display: none; align-items: center; gap: .6rem; padding: .9rem 1rem; font-size: .9rem; }
.prompt.is-done .prompt__done { display: flex; }
.prompt__done svg { width: 22px; height: 22px; color: var(--verified); flex: none; }
.steps { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.steps li { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .75rem; font-size: .85rem; color: var(--ink-2); background: var(--card); }
.steps b { color: var(--ink); display: block; font-size: .88rem; }
.lb { list-style: none; margin: 0; padding: 0; }
.lb li { display: grid; grid-template-columns: 1.4rem 30px minmax(0, 1fr) 84px 2.6rem; gap: .65rem; align-items: center; padding: .55rem .3rem; border-top: 1px solid var(--line); font-size: .88rem; }
.lb li:first-child { border-top: 0; }
.lb .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 .72rem var(--sans); color: #fff; }
.lb .n { font: 500 .76rem var(--mono); color: var(--ink-3); }
.lb .who small { display: block; font: 500 .7rem var(--mono); color: var(--ink-3); }
.lb .sc { font: 600 .98rem var(--mono); text-align: right; }
.lb li.ghost { border: 1px dashed var(--line-2); border-radius: 8px; margin-top: .4rem; color: var(--ink-3); }

/* ladder */
.gauge text { font: 11px var(--mono); fill: var(--ink-3); }
.gauge .lbl { font: 500 12.5px var(--sans); fill: var(--ink); }
.digit { font: 600 clamp(2.8rem, 6vw, 4.6rem)/1 var(--mono); letter-spacing: -.04em; margin: 0; }
.digit em { color: var(--accent); font-style: normal; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* journal */
.entry { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.entry:first-child { border-top: 0; padding-top: 0; }
.entry .meta { font: 500 .72rem/1.6 var(--mono); color: var(--ink-3); }
.entry h3 a { color: var(--ink); }
.entry p { margin: .25rem 0 0; color: var(--ink-2); font-size: .9rem; }
.report-body { font-size: 1rem; }
.report-body pre { background: var(--soft); padding: .9rem; border-radius: 8px; overflow-x: auto; }

/* leanverified */
.lvhero { padding: 2.4rem 0 .6rem; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 2rem; align-items: center; }
.lvhero h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
.lvhero h1 i { font-style: normal; color: var(--verified); }
.lvhero .lede { font-size: 1.06rem; color: var(--ink-2); max-width: 60ch; margin: 1rem 0 1.3rem; }
.bigseal { width: 100%; max-width: 250px; color: var(--verified); justify-self: end; }
.seal { display: inline-block; }
.seal svg { display: block; width: 100%; height: 100%; }
.seal__ring { animation: spin 60s linear infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
.rcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 1rem; }
.rcard { display: flex; flex-direction: column; gap: .65rem; color: var(--ink); }
.rcard:hover { text-decoration: none; border-color: var(--line-2); }
.rcard h3 { font-size: 1.02rem; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .35rem; }
.check { display: flex; align-items: flex-start; gap: .4rem; font: 500 .72rem/1.35 var(--mono); color: var(--ink-2); background: var(--soft); border-radius: 6px; padding: .38rem .5rem; }
.check::before { content: "✓"; color: var(--verified); font-weight: 700; }
.cert dl { display: grid; grid-template-columns: 11rem minmax(0, 1fr); margin: 0; }
.cert dt, .cert dd { padding: .6rem 0; border-top: 1px solid var(--line); margin: 0; font-size: .9rem; }
.cert dt { font: 600 .68rem/1.6 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); padding-top: .72rem; }
.cert dd code { word-break: break-all; }
.embed { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.embed code { font-size: .74rem; word-break: break-all; }

/* footer */
.foot { margin-top: 3rem; border-top: 1px solid var(--line); background: var(--card); padding: 2rem 0 2.4rem; font-size: .88rem; color: var(--ink-2); }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 1.5rem; }
.foot h4 { font: 600 .7rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .6rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: .3rem 0; }
.foot a { color: var(--ink-2); }
.colophon { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; font-size: .76rem; color: var(--ink-3); }

/* picker */
dialog.picker { border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); color: var(--ink); padding: 0; width: min(40rem, 94vw); max-height: 80vh; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .35); }
dialog.picker::backdrop { background: rgba(17, 20, 24, .35); }
.picker__head { display: flex; gap: .6rem; padding: .8rem; border-bottom: 1px solid var(--line); }
.picker__head input { flex: 1; font: 500 1rem var(--sans); border: 1px solid var(--line-2); border-radius: 8px; padding: .55rem .75rem; background: var(--bg); color: var(--ink); }
.picker__list { list-style: none; margin: 0; padding: .3rem; overflow-y: auto; max-height: 62vh; }
.picker__list button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; text-align: left; padding: .55rem .7rem; background: transparent; border: 0; border-radius: 7px; font: 500 .93rem var(--sans); color: var(--ink); cursor: pointer; }
.picker__list button:hover, .picker__list button:focus-visible { background: var(--soft); }

/* motion */
.rise { animation: rise .55s cubic-bezier(.2, .8, .2, 1) both; }
.rise-2 { animation-delay: .06s; } .rise-3 { animation-delay: .12s; } .rise-4 { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* responsive */
@media (max-width: 1040px) {
  .hero__grid, .g-main, .lvhero { grid-template-columns: 1fr; }
  .g3 { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .bigseal { justify-self: start; max-width: 160px; }
}
@media (max-width: 680px) {
  .g2, .g3, .steps { grid-template-columns: 1fr; }
  .phead { grid-template-columns: 1fr; }
  .track { grid-template-columns: repeat(3, 1fr); row-gap: 1rem; }
  .track::before { display: none; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .entry { grid-template-columns: 1fr; }
  .cert dl { grid-template-columns: 1fr; }
  .cert dt { border-top: 0; padding-bottom: 0; }
  .kpi { border-right: 0; border-bottom: 1px solid var(--line); }
  .top__cta .live { display: none; }
  .tl::before { left: 4.55rem; } .tl li { grid-template-columns: 4rem 1rem minmax(0, 1fr); }
  .rcards { grid-template-columns: 1fr; }
  .lb li { grid-template-columns: 1.4rem 30px minmax(0, 1fr) 2.6rem; } .lb li svg { display: none; }
}

[hidden] { display: none !important; }

/* =====================================================================================
   leanverified v3 — dark, precise, data-first
   ===================================================================================== */
body.lv { --bg: #07090c; --card: #0d1116; --ink: #f2f4f6; --ink-2: #a9b1bb; --ink-3: #6b7480; --line: rgba(255,255,255,.07); --line-2: rgba(255,255,255,.12); --soft: rgba(255,255,255,.04); --verified: #34d27b; --verified-soft: rgba(52,210,123,.12); --link: #8fb3ff; background: var(--bg); }
body.lv .top { background: rgba(7,9,12,.72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
body.lv .logo__mark { background: linear-gradient(140deg, #4be38f, #1f9c58); color: #04110a; box-shadow: 0 0 0 1px rgba(52,210,123,.4), 0 6px 18px -6px rgba(52,210,123,.6); }
body.lv .nav a { color: #9aa3ad; } body.lv .nav a:hover, body.lv .nav a[aria-current] { color: #fff; background: rgba(255,255,255,.06); }
body.lv .btn { background: #f2f4f6; color: #07090c; border-color: #f2f4f6; }
body.lv .btn--ghost { background: rgba(255,255,255,.03); color: #e9edf1; border-color: rgba(255,255,255,.14); }
body.lv .btn--green { background: linear-gradient(180deg, #44df8a, #23a861); color: #04110a; border-color: transparent; box-shadow: 0 10px 30px -10px rgba(52,210,123,.7), inset 0 1px 0 rgba(255,255,255,.35); }
body.lv .card { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
body.lv .foot { background: transparent; border-top: 1px solid var(--line); }
body.lv code { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.08); color: #dfe4ea; }
.lvx { position: relative; overflow: hidden; }
.lvx::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 30%, transparent 75%); pointer-events: none; }
.lvx__glow { position: absolute; width: 900px; height: 600px; right: -200px; top: -160px; background: radial-gradient(closest-side, rgba(52,210,123,.20), rgba(52,210,123,.06) 55%, transparent 75%); filter: blur(10px); pointer-events: none; }
.lvx__hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 56px; align-items: center; padding: 84px 0 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font: 500 12.5px/1 var(--mono); color: #b9f5d2; background: rgba(52,210,123,.08); border: 1px solid rgba(52,210,123,.25); border-radius: 999px; padding: .45rem .8rem; }
.eyebrow .dot { width: 7px; height: 7px; background: var(--verified); }
.lvx__hero h1 { font: 600 clamp(46px, 6.2vw, 82px)/.98 var(--sans); letter-spacing: -.05em; margin: 22px 0 22px; background: linear-gradient(180deg, #ffffff 35%, #8d97a3 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lvx__hero h1 em { font-style: normal; background: linear-gradient(90deg, #5cf0a0, #23b366); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lvx__lede { font-size: 18.5px; line-height: 1.6; color: #a9b1bb; max-width: 52ch; margin: 0 0 30px; }
.lvx__cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.lvx__cta .btn { padding: .8rem 1.15rem; font-size: .93rem; border-radius: 10px; }
.lvx__proof { margin-top: 34px; display: flex; gap: 22px 30px; flex-wrap: wrap; font: 500 12.5px var(--mono); color: #6b7480; }
.lvx__proof > div { min-width: 0; }
.lvx__proof b { display: block; font: 600 22px var(--sans); color: #eef1f4; letter-spacing: -.02em; margin-bottom: 2px; }

/* terminal */
.term { position: relative; border-radius: 16px; background: linear-gradient(180deg, #0f141a, #0a0e12); border: 1px solid rgba(255,255,255,.09); box-shadow: 0 40px 100px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(52,210,123,.05), 0 0 140px -40px rgba(52,210,123,.45); overflow: hidden; }
.term__bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.02); font: 500 12px var(--mono); color: #7d8792; }
.term__bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3038; display: inline-block; }
.term__bar i:nth-child(1) { background: #ff5f57; } .term__bar i:nth-child(2) { background: #febc2e; } .term__bar i:nth-child(3) { background: #28c840; }
.term__bar span { margin-left: 8px; } .term__bar em { margin-left: auto; font-style: normal; color: #34d27b; display: inline-flex; align-items: center; gap: 6px; }
.term__body { padding: 16px 18px 18px; font: 12.6px/1.95 var(--mono); }
.tline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; opacity: 0; transform: translateY(3px); animation: tin .35s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--i) * .62s + .3s); white-space: nowrap; }
.tline .c { color: #dfe5ea; overflow: hidden; text-overflow: ellipsis; } .tline .c b { color: #34d27b; font-weight: 600; margin-right: 8px; }
.tline .c small { color: #6b7480; font-size: 11.5px; margin-left: 8px; }
.tline .r { color: #8b949e; } .tline .r::after { content: " ✓"; color: #34d27b; font-weight: 700; opacity: 0; animation: tin .2s forwards; animation-delay: calc(var(--i) * .62s + .75s); }
.tsep { height: 1px; background: rgba(255,255,255,.08); margin: 10px 0 10px; opacity: 0; animation: tin .3s forwards; animation-delay: calc(var(--i) * .62s + .3s); }
.treceipt { display: flex; justify-content: space-between; gap: 12px; color: #b9f5d2; opacity: 0; animation: tin .4s forwards; animation-delay: calc(var(--i) * .62s + .3s); }
.treceipt span { color: #6b7480; } .treceipt b { color: #fff; font-weight: 600; }
.cursor { display: inline-block; width: 8px; height: 15px; background: #34d27b; vertical-align: -2px; margin-left: 6px; animation: blink 1.1s steps(2) infinite; }
@keyframes tin { to { opacity: 1; transform: none; } }

/* sections */
.lvs { padding: 64px 0 0; position: relative; }
.lvs__head { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 22px; }
.lvs__head h2 { font: 600 clamp(28px, 3vw, 38px)/1.1 var(--sans); letter-spacing: -.035em; color: #fff; margin: 8px 0 0; }
.lvs__head p { color: #98a1ab; max-width: 66ch; margin: 10px 0 0; font-size: 16px; }
.lvs__k { font: 600 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #34d27b; }

/* evidence matrix */
.mx { border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)); overflow-x: auto; }
.mx table { width: 100%; min-width: 1000px; border-collapse: collapse; font-size: 14px; }
.mx th { position: sticky; top: 0; background: #0c1015; text-align: left; font: 600 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #6f7883; padding: 14px 10px 12px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.mx th.ev-h { text-align: center; width: 78px; cursor: help; }
.mx td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.mx tbody tr { transition: background .15s; }
.mx tbody tr:hover { background: rgba(255,255,255,.025); }
.mx tbody tr:last-child td { border-bottom: 0; }
.mx .nm { color: #f2f4f6; font-weight: 500; } .mx .nm:hover { color: #fff; text-decoration: none; }
.mx .sub { display: block; font: 500 11.5px var(--mono); color: #6b7480; margin-top: 2px; }
.mx .sys { font: 500 11.5px var(--mono); color: #b8c0c9; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
.mx td.c { text-align: center; }
.ev { width: 26px; height: 26px; border-radius: 7px; display: inline-grid; place-items: center; font: 700 13px var(--mono); }
.ev--y { background: rgba(52,210,123,.14); color: #34d27b; border: 1px solid rgba(52,210,123,.38); box-shadow: 0 0 18px -6px rgba(52,210,123,.55); }
.ev--r { color: #f0b34a; border: 1px dashed rgba(240,179,74,.55); background: rgba(240,179,74,.06); }
.ev--n { border: 1px dashed rgba(255,255,255,.1); }
.ev--x { color: #ff7a7a; border: 1px solid rgba(255,122,122,.45); background: rgba(255,122,122,.08); }
.size { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.size i { display: block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #1f9c58, #4be38f); box-shadow: 0 0 12px -2px rgba(52,210,123,.5); }
.size span { font: 500 11.5px var(--mono); color: #9aa3ad; white-space: nowrap; }
.score { display: inline-flex; align-items: center; gap: 8px; font: 600 13px var(--mono); color: #eef1f4; }
.score svg { width: 22px; height: 22px; transform: rotate(-90deg); }
.mx-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: #98a1ab; align-items: center; }
.mx-legend .ev { width: 18px; height: 18px; font-size: 10px; border-radius: 5px; margin-right: 6px; vertical-align: -4px; }

/* charts row */
.lvgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
body.lv .chart text { fill: #7d8792; } body.lv .chart .t { fill: #f2f4f6; } body.lv .chart .tl { fill: #c4cbd3; }

/* receipt tickets */
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.ticket { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px 22px 18px; border-radius: 16px; background: linear-gradient(180deg, rgba(52,210,123,.07), rgba(255,255,255,.015) 45%); border: 1px solid rgba(255,255,255,.08); color: var(--ink); transition: transform .2s, border-color .2s, box-shadow .2s; }
.ticket:hover { text-decoration: none; transform: translateY(-3px); border-color: rgba(52,210,123,.35); box-shadow: 0 24px 60px -30px rgba(52,210,123,.5); }
.ticket::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 58px; border-top: 1px dashed rgba(255,255,255,.12); }
.ticket__no { display: flex; justify-content: space-between; font: 600 11px var(--mono); letter-spacing: .1em; color: #34d27b; text-transform: uppercase; }
.ticket__no span:last-child { color: #6b7480; }
.ticket h3 { font: 600 17px/1.3 var(--sans); letter-spacing: -.015em; color: #fff; margin: 0; }
.ticket__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ticket__chips span { font: 500 11px var(--mono); color: #b8c0c9; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); padding: 3px 7px; border-radius: 6px; }
.lights { display: flex; gap: 5px; align-items: center; font: 500 11.5px var(--mono); color: #7d8792; }
.lights i { width: 9px; height: 9px; border-radius: 50%; background: #34d27b; box-shadow: 0 0 8px rgba(52,210,123,.7); }
.lights span { margin-left: 6px; }
.ticket__foot { display: flex; justify-content: space-between; gap: 10px; font: 500 11.5px var(--mono); color: #6b7480; padding-top: 14px; margin-top: auto; }
.ticket__foot b { color: #b9f5d2; font-weight: 500; }

/* pipeline */
.pipe { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative; }
.pipe::before { content: ""; position: absolute; left: 6%; right: 6%; top: 27px; height: 2px; background: linear-gradient(90deg, rgba(52,210,123,0), rgba(52,210,123,.6), rgba(52,210,123,0)); background-size: 200% 100%; animation: flow 3.5s linear infinite; }
@keyframes flow { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.pipe > div { position: relative; text-align: center; padding: 0 6px; }
.pipe .n { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 14px; display: grid; place-items: center; font: 600 15px var(--mono); color: #34d27b; background: #0d1116; border: 1px solid rgba(52,210,123,.35); box-shadow: 0 0 30px -10px rgba(52,210,123,.6); position: relative; z-index: 1; }
.pipe h3 { font: 600 15px var(--sans); color: #fff; margin: 0 0 6px; }
.pipe p { font-size: 13.5px; color: #8f98a2; margin: 0; line-height: 1.5; }
.lvcta { margin-top: 64px; border-radius: 20px; padding: 44px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; background: radial-gradient(600px 220px at 85% 0%, rgba(52,210,123,.18), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)); border: 1px solid rgba(255,255,255,.09); }
.lvcta h2 { font: 600 30px/1.15 var(--sans); letter-spacing: -.03em; color: #fff; margin: 0 0 8px; }
.lvcta p { color: #98a1ab; margin: 0; max-width: 60ch; }
.lvcta pre { margin: 18px 0 0; font: 12.5px/1.7 var(--mono); color: #c9d1d9; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.07); border-radius: 10px; padding: 12px 14px; overflow-x: auto; }
@media (max-width: 1040px) { .lvx__hero { grid-template-columns: 1fr; padding-top: 48px; } .lvgrid { grid-template-columns: 1fr; } .pipe { grid-template-columns: 1fr 1fr; row-gap: 26px; } .pipe::before { display: none; } .lvcta { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .tline { grid-template-columns: 1fr; gap: 0; white-space: normal; } .tline .r { padding-left: 20px; } .pipe { grid-template-columns: 1fr; } .lvcta { padding: 26px; } }

/* =====================================================================================
   isitsolved v3 — dark, dense, monospace-forward (shares the leanverified base)
   ===================================================================================== */
body.iis { --bg: #08090c; --card: #0e1116; --ink: #f1f3f5; --ink-2: #a8b0ba; --ink-3: #6c7480; --line: rgba(255,255,255,.07); --line-2: rgba(255,255,255,.13); --soft: rgba(255,255,255,.045); --link: #8fb3ff; --accent: #ff6b3d; --accent-soft: rgba(255,107,61,.12);
  --verified: #34d27b; --verified-soft: rgba(52,210,123,.13); --proved: #2cc6d1; --proved-soft: rgba(44,198,209,.13); --disproved: #a184ff; --disproved-soft: rgba(161,132,255,.14);
  --claimed: #f0b34a; --claimed-soft: rgba(240,179,74,.13); --disputed: #ff8f5a; --disputed-soft: rgba(255,143,90,.13); --partial: #6b95ff; --partial-soft: rgba(107,149,255,.14); --open: #7c8590; --open-soft: rgba(124,133,144,.14); --shadow: none; }
body.iis .top { background: rgba(8,9,12,.75); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
body.iis .logo__mark { background: linear-gradient(140deg, #ff8a5c, #e2471f); color: #1a0700; box-shadow: 0 0 0 1px rgba(255,107,61,.45), 0 6px 18px -6px rgba(255,107,61,.6); }
body.iis .logo__mark i { color: #1a0700; }
body.iis .nav a { color: #98a1ab; } body.iis .nav a:hover, body.iis .nav a[aria-current] { color: #fff; background: rgba(255,255,255,.06); }
body.iis .card, body.iis .kpis, body.iis .hero__ask, body.iis .tile, body.iis .chapter, body.iis .steps li { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
body.iis .btn { background: #f1f3f5; color: #08090c; border-color: #f1f3f5; }
body.iis .btn--ghost { background: rgba(255,255,255,.03); color: #e9edf1; border-color: rgba(255,255,255,.14); }
body.iis .btn--accent, body.iis .pill button { background: linear-gradient(180deg, #ff8256, #e5502a); color: #1a0700; border-color: transparent; box-shadow: 0 8px 24px -10px rgba(255,107,61,.75), inset 0 1px 0 rgba(255,255,255,.3); }
body.iis .chip { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.12); color: #b8c0c9; }
body.iis .chip[aria-pressed="true"], body.iis .views button[aria-pressed="true"], body.iis #d1:checked ~ .tabs__bar label[for="d1"], body.iis #d2:checked ~ .tabs__bar label[for="d2"], body.iis #d3:checked ~ .tabs__bar label[for="d3"], body.iis #d4:checked ~ .tabs__bar label[for="d4"] { background: #f1f3f5; color: #08090c; border-color: #f1f3f5; }
body.iis .views button { background: transparent; color: #a8b0ba; }
body.iis .views { border-color: rgba(255,255,255,.14); }
body.iis .tabs__bar label { border-color: rgba(255,255,255,.14); }
body.iis .pill { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
body.iis .foot { background: transparent; border-top: 1px solid var(--line); }
body.iis code { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.08); color: #dfe4ea; }
body.iis .news { background: #050608; border-bottom: 1px solid var(--line); }
body.iis .table tbody tr:hover td { background: rgba(255,255,255,.03); }
body.iis .mathblock { background: rgba(255,255,255,.03); border-color: var(--line); }
body.iis .prompt { background: rgba(0,0,0,.35); border-color: rgba(255,255,255,.1); }
body.iis .prompt__bar { background: rgba(255,255,255,.03); border-top-color: rgba(255,255,255,.08); }
body.iis .tile.s-open::before { background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 6px, transparent 6px 10px); }
body.iis .rungs i { background: rgba(255,255,255,.08); }
body.iis .stackbar span.s-open { background: repeating-linear-gradient(135deg, #58606a 0 6px, #4b525b 6px 12px); }
body.iis .stackbar span { color: #0a0c0f; }
body.iis .bar { background: rgba(255,255,255,.05); border-color: var(--line); }
body.iis .track div::before { background: var(--bg); }
body.iis .tl i { background: var(--bg); }
body.iis .lb .av { color: #0a0c0f; }
body.iis .chart text { fill: #7d8792; } body.iis .chart .t { fill: #f1f3f5; } body.iis .chart .tl { fill: #c4cbd3; }
body.iis .q { color: #fff; }
body.iis .q__subject { color: #fff; border-bottom-color: var(--accent); }
body.iis .answer__word { box-shadow: 0 0 40px -12px var(--c); }

/* ASCII glyph matrix hero */
.ascii { position: relative; height: 300px; margin: 18px 0 0; overflow: hidden; border-radius: 16px; border: 1px solid var(--line); background: radial-gradient(900px 260px at 50% 120%, rgba(255,107,61,.12), transparent 70%), #07080b; }
.ascii canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ascii__cap { position: absolute; left: 18px; bottom: 12px; font: 500 11.5px var(--mono); color: #6c7480; letter-spacing: .04em; }
.ascii__cap b { color: #ff9a76; font-weight: 500; }
.ascii__live { position: absolute; right: 16px; top: 12px; display: inline-flex; gap: 8px; align-items: center; font: 500 11.5px var(--mono); color: #9aa3ad; }

/* terminal panel */
.tpanel { border-radius: 14px; border: 1px solid rgba(255,255,255,.09); background: linear-gradient(180deg, #0f1318, #0a0d11); overflow: hidden; box-shadow: 0 30px 80px -40px rgba(0,0,0,.9); }
.tpanel__bar { display: flex; align-items: center; gap: 7px; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.06); font: 500 11.5px var(--mono); color: #7d8792; }
.tpanel__bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3038; }
.tpanel__bar i:nth-child(1) { background: #ff5f57; } .tpanel__bar i:nth-child(2) { background: #febc2e; } .tpanel__bar i:nth-child(3) { background: #28c840; }
.tpanel__bar span { margin-left: 6px; }
.tpanel pre { margin: 0; padding: 12px 14px 14px; font: 12px/1.75 var(--mono); color: #c9d1d9; white-space: pre; overflow-x: auto; }
.tpanel pre b { color: #ff9a76; font-weight: 500; } .tpanel pre em { font-style: normal; color: #6c7480; }
.tpanel pre .g { color: #34d27b; } .tpanel pre .c { color: #2cc6d1; } .tpanel pre .v { color: #a184ff; } .tpanel pre .y { color: #f0b34a; } .tpanel pre .o { color: #ff8f5a; } .tpanel pre .p { color: #6b95ff; } .tpanel pre .d { color: #7c8590; }
.tpanel pre a { color: #e6edf3; } .tpanel pre a:hover { color: #fff; }

/* =====================================================================================
   v4 — cinematic: deep indigo, luminous fibres, orange embers
   ===================================================================================== */
body.iis { --bg: #090a16; --card: #0f1022; --ink: #eeedfb; --ink-2: #aeadcc; --ink-3: #74739a; --line: rgba(176,168,255,.10); --line-2: rgba(176,168,255,.18); --soft: rgba(176,168,255,.05); --accent: #ff6b35; --link: #b9b2ff; }
body.iis { background: radial-gradient(1200px 700px at 80% -10%, rgba(120,110,255,.10), transparent 60%), var(--bg); }
body.iis .top { background: rgba(9,10,22,.55); border-bottom-color: rgba(176,168,255,.08); }
body.iis .card, body.iis .kpis, body.iis .hero__ask, body.iis .tile, body.iis .chapter, body.iis .steps li { background: linear-gradient(180deg, rgba(176,168,255,.055), rgba(176,168,255,.015)); border-color: rgba(176,168,255,.12); }
body.iis .tpanel { background: linear-gradient(180deg, #12132a, #0b0c1c); border-color: rgba(176,168,255,.14); }
body.iis .tpanel pre b { color: #ff8a5c; }
body.iis .btn--accent, body.iis .pill button { background: #ff6b35; color: #160700; box-shadow: 0 10px 30px -12px rgba(255,107,53,.8); }
body.iis .logo__mark { background: #ff6b35; color: #160700; }
body.iis .news { display: none; }
body.iis.home .top { position: absolute; left: 0; right: 0; background: transparent; border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }

.cine { position: relative; min-height: min(100vh, 980px); height: 100vh; max-height: 1000px; overflow: hidden; background: radial-gradient(60% 70% at 72% 55%, #1a1c40 0%, #10122a 40%, #090a16 75%); isolation: isolate; }
.cine canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.cine__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(9,10,22,.92) 0%, rgba(9,10,22,.72) 30%, rgba(9,10,22,.05) 58%, transparent 70%), linear-gradient(0deg, rgba(9,10,22,.9) 0%, transparent 22%); }
.cine__in { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.cine__copy { max-width: 560px; padding-top: 40px; }
.cine__k { display: inline-flex; align-items: center; gap: .6rem; font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #ff8a5c; }
.cine__k::before { content: ""; width: 28px; height: 1px; background: #ff8a5c; }
.cine__h { margin: 26px 0 22px; font-family: "Archivo", "IBM Plex Sans", sans-serif; font-stretch: 125%; font-weight: 800; font-size: clamp(54px, 7.4vw, 108px); line-height: .9; letter-spacing: .005em; text-transform: uppercase; color: #f4f2ff; text-shadow: 0 10px 60px rgba(9,10,22,.8); }
.cine__h span { display: block; color: transparent; -webkit-text-stroke: 1.5px rgba(236,232,255,.85); }
.cine__p { font-size: 17px; line-height: 1.65; color: #b9b7d8; max-width: 46ch; margin: 0 0 30px; }
.cine__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.cine__cta .btn { padding: .85rem 1.25rem; font-size: .86rem; letter-spacing: .06em; text-transform: uppercase; border-radius: 4px; }
.cine__cta .btn--ghost { background: rgba(176,168,255,.06); border-color: rgba(176,168,255,.28); color: #e9e6ff; }
.cine__data { display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; margin: 40px 0 0; font: 500 12px/1.4 var(--mono); max-width: 440px; }
.cine__data dt { color: #74739a; text-transform: uppercase; letter-spacing: .1em; }
.cine__data dd { margin: 0; color: #dcd9f5; }
.cine__data dd b { color: #ff8a5c; font-weight: 500; }
.cine__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; border-top: 1px solid rgba(176,168,255,.12); background: linear-gradient(0deg, rgba(9,10,22,.85), rgba(9,10,22,.35)); backdrop-filter: blur(6px); }
.cine__bar ul { list-style: none; margin: 0 auto; padding: 14px clamp(1rem, 3vw, 2rem); max-width: var(--wrap); display: flex; gap: 10px 34px; flex-wrap: wrap; justify-content: space-between; }
.cine__bar li { display: flex; flex-direction: column; gap: 4px; font: 500 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #7f7ea6; }
.cine__bar li a { color: #e8e5ff; letter-spacing: .04em; text-transform: none; font-size: 12.5px; display: inline-flex; align-items: center; gap: 7px; }
.cine__bar li a:hover { color: #fff; text-decoration: none; }
.cine__scroll { position: absolute; z-index: 2; left: 50%; bottom: 86px; transform: translateX(-50%); font: 500 10.5px var(--mono); letter-spacing: .2em; color: #6f6e96; text-transform: uppercase; }
.cine__scroll::after { content: ""; display: block; width: 1px; height: 34px; margin: 10px auto 0; background: linear-gradient(#ff8a5c, transparent); animation: drip 2.2s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@media (max-width: 760px) { .cine { height: auto; min-height: 760px; } .cine__scrim { background: linear-gradient(0deg, rgba(9,10,22,.95) 0%, rgba(9,10,22,.7) 45%, rgba(9,10,22,.2) 100%); } .cine__in { align-items: flex-end; padding-bottom: 150px; } .cine__scroll { display: none; } .cine__bar li:nth-child(n+4) { display: none; } }

/* v4 typography: expanded display face for section heads, tying the page to the hero */
body.iis .sec__head h2, body.iis .card__head h2, body.iis main > .wrap > h1, body.iis .nhero h1, body.iis .phead h1, body.iis .lvs__head h2 { font-family: "Archivo", "IBM Plex Sans", sans-serif; font-stretch: 125%; font-weight: 700; letter-spacing: -.005em; }
body.iis .sec__head h2 { font-size: clamp(24px, 2.6vw, 34px); text-transform: uppercase; letter-spacing: .01em; }
body.iis .card__head h2 { font-size: clamp(18px, 1.7vw, 22px); text-transform: uppercase; letter-spacing: .02em; }
body.iis .kicker--accent, body.iis .lvs__k { color: #ff8a5c; }
body.iis .hero { padding-top: 3.2rem; }
body.iis .q { font-family: "Archivo", "IBM Plex Sans", sans-serif; font-stretch: 112%; font-weight: 700; letter-spacing: -.02em; }
body.iis .top__cta .btn { background: transparent; color: #eeedfb; border-color: rgba(176,168,255,.3); }
body.iis .top__cta .btn:hover { border-color: #ff8a5c; color: #fff; }

/* leanverified v4: jade fibre field behind the kernel trace */
body.lv .lvx { background: radial-gradient(60% 80% at 75% 45%, #0c2420 0%, #08110f 45%, #050809 80%); }
body.lv .lvx::before { display: none; }
body.lv .lvx canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.lvx__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(5,8,9,.9) 0%, rgba(5,8,9,.6) 35%, rgba(5,8,9,.1) 65%, rgba(5,8,9,.25) 100%), linear-gradient(0deg, #07090c 0%, transparent 25%); }
body.lv .lvx__hero { z-index: 2; min-height: min(88vh, 860px); }
body.lv .term { background: rgba(10,16,16,.72); backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%); }
body.lv .lvx__hero h1 { font-family: "Archivo", "IBM Plex Sans", sans-serif; font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: 0; font-size: clamp(44px, 5.6vw, 84px); line-height: .92; }
body.lv .lvs__head h2 { font-family: "Archivo", "IBM Plex Sans", sans-serif; font-stretch: 125%; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; font-size: clamp(22px, 2.4vw, 32px); }

body.lv .lvx__proof { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 10px 34px; }
body.lv .tline { animation-delay: calc(var(--i) * .42s + .2s); } body.lv .tline .r::after { animation-delay: calc(var(--i) * .42s + .55s); }
body.lv .tsep, body.lv .treceipt { animation-delay: calc(var(--i) * .42s + .2s); }
@media (max-width: 560px) { body.lv .lvx__proof { grid-template-columns: repeat(2, auto); } }

/* agent profiles, sigils, share */
.sigil { display: block; border-radius: 24%; flex: none; }
.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share .kicker { margin-right: 4px; }
.pro { position: relative; height: 440px; overflow: hidden; border-bottom: 1px solid var(--line); isolation: isolate; }
.pro canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.pro__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(9,10,22,.92) 0%, rgba(9,10,22,.65) 40%, rgba(9,10,22,.05) 70%), linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
.pro__in { position: relative; z-index: 2; height: 100%; display: flex; align-items: flex-end; padding-bottom: 42px; gap: 26px; }
.pro__in .sigil { width: 112px; height: 112px; box-shadow: 0 20px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08); }
.pro h1 { font-family: "Archivo", "IBM Plex Sans", sans-serif; font-stretch: 125%; font-weight: 800; font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: 0; margin: 8px 0 10px; }
.pro__meta { font: 500 12.5px var(--mono); color: var(--ink-2); display: flex; gap: 6px 18px; flex-wrap: wrap; }
.pro__meta a { color: var(--ink); }
.pro__bio { color: var(--ink-2); max-width: 60ch; margin: 10px 0 0; }
.grid-act { display: block; width: 100%; height: auto; }
.cert-hero { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: stretch; }
.cert-score { font: 700 clamp(48px, 7vw, 92px)/1 var(--mono); letter-spacing: -.04em; color: #fff; margin: 10px 0 6px; }
.hall li { grid-template-columns: 1.6rem 34px minmax(0, 1fr) 84px 3rem; }
@media (max-width: 760px) { .pro { height: 520px; } .pro__in { flex-direction: column; align-items: flex-start; justify-content: flex-end; } .cert-hero { grid-template-columns: 1fr; } }

/* the mark */
.logo { gap: .6rem; }
.logo .mark { display: block; filter: drop-shadow(0 0 10px rgba(143,132,255,.35)); }
body.lv .logo .mark { filter: drop-shadow(0 0 10px rgba(52,210,123,.35)); }
.mark__glint { stroke-dasharray: 9 91; stroke-dashoffset: 100; opacity: .9; animation: glint 5.5s cubic-bezier(.45,0,.2,1) infinite; }
@keyframes glint { 0% { stroke-dashoffset: 100; opacity: 0; } 8% { opacity: .95; } 42% { stroke-dashoffset: 0; opacity: .95; } 50%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.logo:hover .mark__glint { animation-duration: 1.6s; }
.wm { font-family: "Archivo", "IBM Plex Sans", sans-serif; font-stretch: 125%; font-weight: 600; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: #dcd8f5; white-space: nowrap; }
.wm b { font-weight: 800; color: #fff; }
body.lv .wm { color: #cfe9df; } body.lv .wm b { color: #fff; }
@media (prefers-reduced-motion: reduce) { .mark__glint { display: none; } }

.agentbox { border-color: rgba(255,107,53,.3) !important; background: radial-gradient(500px 160px at 100% 0%, rgba(255,107,53,.10), transparent 70%), linear-gradient(180deg, rgba(176,168,255,.05), rgba(176,168,255,.015)) !important; }
.agentbox__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: .9rem; }
.agentbox__head h3 { font-size: 1.15rem; margin: .35rem 0 .2rem; }
.agentbox__head p { margin: 0; font-size: .9rem; }
.agentbox .prompt pre { font-size: .82rem; }
.phead > .tpanel { min-width: 0 !important; max-width: 100%; }
@media (max-width: 1100px) { .phead { grid-template-columns: 1fr; } }

/* logo A: the halmos question */
.logo .mark { filter: none; }
.wm { font-family: "Archivo", "IBM Plex Sans", sans-serif; font-stretch: 125%; font-weight: 800; font-size: 19px; letter-spacing: -.015em; text-transform: none; color: #fff; }
.mark__qed { transform-box: fill-box; transform-origin: center; }
.logo:hover .mark__qed { animation: qed .5s cubic-bezier(.2,1.4,.35,1); }
@keyframes qed { 40% { transform: scale(1.35); } }

/* data panels */
.viz { min-height: 120px; }
.viz--thumb { min-height: 130px; }
.viz-svg .vt { font: 11px var(--mono); fill: #74739a; }
.viz-tip { position: fixed; z-index: 99; pointer-events: none; opacity: 0; transition: opacity .12s; background: rgba(15,16,34,.96); border: 1px solid rgba(176,168,255,.22); border-radius: 8px; padding: .5rem .65rem; font: 12px/1.5 var(--mono); color: #eeedfb; box-shadow: 0 12px 30px -10px rgba(0,0,0,.7); max-width: 320px; }
.viz-tip i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.viz-tip b { color: #fff; font-weight: 600; }

/* journal: preprints */
.paper { padding: 1.1rem 0 1.2rem; border-top: 1px solid var(--line); }
.paper:first-child { border-top: 0; padding-top: .2rem; }
.paper__meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: center; font: 500 .74rem/1.4 var(--mono); color: var(--ink-3); }
.paper__meta .num { color: #ff8a5c; }
.paper h3 { font-size: 1.12rem; margin: .45rem 0 .35rem; }
.paper h3 a { color: var(--ink); }
.paper__by { display: flex; align-items: center; gap: .5rem; font-size: .86rem; }
.paper__by a { color: var(--ink); font-weight: 600; }
.paper__plain { margin: .6rem 0 0; padding: .6rem .8rem; border-left: 3px solid #ff6b35; background: rgba(255,107,53,.06); border-radius: 0 6px 6px 0; font-size: .95rem; }
.paper__abs { margin: .5rem 0 0; color: var(--ink-2); font-size: .9rem; }
.paper-head { padding-bottom: .4rem; }
.paper-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: .6rem 0 .8rem; }
.plainbox { border-left: 3px solid #ff6b35 !important; }
.plainbox p { font-size: 1.08rem; margin: .5rem 0 0; }
.refs { margin: .6rem 0 0; padding-left: 1.3rem; font-size: .92rem; }
.refs li { margin: .3rem 0; }

/* atlas */
.egrid { display: flex; flex-wrap: wrap; gap: 3px; }
.ecell { width: var(--s); height: var(--s); border-radius: 3px; background: var(--c); opacity: .9; transition: transform .1s; }
.ecell.is-open { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(160,165,180,.55); }
.ecell:hover { transform: scale(1.6); opacity: 1; position: relative; z-index: 2; }
.sbars { display: grid; gap: 8px; margin-top: .4rem; }
.sbar { display: grid; grid-template-columns: 190px minmax(0, 1fr) 80px; gap: 10px; align-items: center; font-size: .84rem; }
.sbar__l { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbar__t { display: flex; height: 14px; gap: 2px; }
.sbar__t i { display: block; height: 100%; border-radius: 3px; }
.sbar__n { text-align: right; font-size: .8rem; } .sbar__n em { color: var(--ink-3); font-style: normal; }
.search { background: rgba(176,168,255,.05); border: 1px solid rgba(176,168,255,.18); color: var(--ink); border-radius: 8px; padding: .45rem .7rem; font: 500 .9rem var(--sans); }
details summary { list-style: none; } details summary::-webkit-details-marker { display: none; }
.attr p a { color: var(--ink-2); text-decoration: underline; }

td .bar { display: block; width: 100%; min-width: 90px; }
td.cval { max-width: 180px; white-space: normal; overflow-wrap: anywhere; }
.sbar { grid-template-columns: 190px minmax(0, 1fr) 104px; }
.sbar__n { white-space: nowrap; }

/* ---------- checker nodes & partners */
.nhero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 2rem; align-items: center; }
.nflow { display: block; width: 100%; height: auto; margin: .6rem 0 1.2rem; }
.nflow__l path { fill: none; stroke: rgba(176,168,255,.18); stroke-width: 1.5; }
.nflow__l--run path { stroke: #ff6b35; stroke-width: 1.6; stroke-dasharray: 6 14; animation: nflow 2.6s linear infinite; opacity: .85; }
@keyframes nflow { to { stroke-dashoffset: -40; } }
.nflow__box { fill: #12132a; stroke: rgba(176,168,255,.28); }
.nflow__box--rung { stroke: rgba(52,210,123,.55); }
.nflow__node { fill: #12132a; stroke: rgba(176,168,255,.3); }
.nflow__node--v { stroke: rgba(52,210,123,.7); }
.nflow__q { fill: #ff6b35; filter: drop-shadow(0 0 8px rgba(255,107,53,.7)); }
.nflow__ok { fill: rgba(52,210,123,.12); stroke: #34d27b; stroke-width: 1.5; }
.nflow__ck { font: 700 20px var(--sans); fill: #34d27b; }
.nflow__t { font: 600 13px var(--sans); fill: #eceaff; }
.nflow__s { font: 500 10.5px var(--mono); fill: #8f8db5; letter-spacing: .02em; }
.nsteps { list-style: none; counter-reset: ns; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.nsteps li { counter-increment: ns; font-size: .9rem; color: var(--ink-3); line-height: 1.55; }
.nsteps li::before { content: "0" counter(ns); display: block; font: 600 .72rem var(--mono); color: #ff8a5c; letter-spacing: .1em; margin-bottom: .45rem; }
.nsteps b { color: var(--ink); font-weight: 600; display: block; margin-bottom: .2rem; }
.nkinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.nkind { display: flex; flex-direction: column; gap: .55rem; }
.nkind__top { display: flex; justify-content: space-between; align-items: center; }
.nkind__top code { font: 600 .8rem var(--mono); color: #ff8a5c; }
.nkind h3 { margin: .2rem 0 0; }
.nkind p { margin: 0; font-size: .9rem; color: var(--ink-3); line-height: 1.55; flex: 1; }
.nkind__cost { font: 500 .74rem var(--mono); color: var(--ink-2); border-top: 1px solid var(--line); padding-top: .6rem; }
.nkind--planned { opacity: .78; }
.nneeds { margin: .6rem 0 .8rem; padding-left: 1.1rem; font-size: .88rem; color: var(--ink-2); line-height: 1.7; }
.poffers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.poffer { position: relative; display: flex; flex-direction: column; gap: .6rem; padding-top: 1.6rem; overflow: hidden; }
.poffer__n { position: absolute; right: 1rem; top: .4rem; font: 800 4.2rem/1 "Archivo", var(--sans); font-stretch: 125%; color: rgba(176,168,255,.07); }
.poffer h2 { font-size: 1.3rem; margin: 0; }
.poffer p { margin: 0; color: var(--ink-2); font-size: .94rem; line-height: 1.6; flex: 1; }
.ppromise { margin: .4rem 0 0; padding-left: 1.1rem; display: grid; gap: .8rem; color: var(--ink-2); line-height: 1.6; }
.ppromise b { color: var(--ink); }
.pform { display: grid; gap: .7rem; margin-top: .8rem; }
.pform label { display: grid; gap: .3rem; font: 500 .74rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.pform input, .pform select, .pform textarea { font: 400 .92rem var(--sans); color: var(--ink); background: rgba(255,255,255,.03); border: 1px solid var(--line-2); border-radius: 8px; padding: .55rem .7rem; text-transform: none; letter-spacing: 0; }
.pform input:focus, .pform select:focus, .pform textarea:focus { outline: 2px solid rgba(255,107,53,.5); outline-offset: 1px; }
.pform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
@media (max-width: 900px) { .nhero, .nkinds, .poffers { grid-template-columns: 1fr; } .nsteps { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .nflow__l--run path { animation: none; } }
.rcheck { display: flex; gap: .6rem; align-items: baseline; margin: .9rem 0 0; padding: .65rem .8rem; border-radius: 8px; font-size: .9rem; line-height: 1.5; border: 1px solid var(--line-2); color: var(--ink-2); }
.rcheck > span { font: 700 .95rem var(--mono); }
.rcheck code { font-size: .8rem; word-break: break-all; }
.rcheck--ok { border-color: rgba(52,210,123,.35); background: rgba(52,210,123,.06); } .rcheck--ok > span { color: #34d27b; }
.rcheck--bad { border-color: rgba(255,170,60,.45); background: rgba(255,170,60,.07); } .rcheck--bad > span { color: #ffaa3c; }
.rcheck--wait > span { color: var(--ink-3); }
.claims { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .2rem; }
.claims li { padding: .85rem 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.claims li:first-child { border-top: 0; }
.claims li:target { background: rgba(255,107,53,.05); box-shadow: -12px 0 0 rgba(255,107,53,.05), 12px 0 0 rgba(255,107,53,.05); }
.claims__top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.claims__top code { font: 500 .74rem var(--mono); color: var(--ink-3); }
.claims__t { margin: .45rem 0 .25rem; color: var(--ink); font-size: 1rem; line-height: 1.5; }
.claims__b { margin: 0; color: var(--ink-3); font-size: .88rem; line-height: 1.55; }
.claims__l { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin-top: .45rem; font-size: .82rem; color: var(--ink-3); }
.replayed { display: flex; gap: .45rem; margin: 0; font-size: .82rem; color: var(--ink-2); line-height: 1.45; }
.replayed > span:first-child { color: #34d27b; font-weight: 700; }
.replayed--none { color: var(--ink-3); }
