:root {
  --bg: #0b0c0c;
  --bg2: #121414;
  --bg3: #181b1a;
  --line: #242827;
  --line2: #363c3a;
  --fg: #eef1ef;
  --dim: #a7afab;
  --faint: #78817c;
  --acc: #9ef25e;
  --accbg: rgba(158, 242, 94, 0.08);
  --warn: #ff7a66;
  --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --box: ui-monospace, Menlo, Consolas, monospace;
  --pad: 48px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); }
body { font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; }
body::after { content: ""; position: fixed; inset: -50%; pointer-events: none; z-index: 51; opacity: 0.03; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
button, input { font-family: var(--mono); }
::selection { background: var(--acc); color: var(--bg); }
.micro { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.acc { color: var(--acc); }
.warn { color: var(--warn); }
pre, code, .mono, .term, .chip, .btn, .copy, .cmp, .ix li button, .ix .sig, .ix .filter, .cap .bar, .cap .names, .ev, .diffgrid .n, .pid, .mx, .acclist, .tab, dl.kv dd, .hex, .flow { font-family: var(--mono); }
.dim { color: var(--dim); }
.faint { color: var(--faint); }
.fg { color: var(--fg); }
.ul { border-bottom: 1px solid var(--line2); }
.ul:hover, .ul:focus-visible { border-color: var(--fg); color: var(--fg); outline: none; }
.mono-break { word-break: break-all; }

.top { position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; height: 48px; padding: 0 var(--pad); background: var(--bg); border-bottom: 1px solid var(--line); }
.top .id { display: flex; gap: 14px; align-items: center; }
.top .id b { font-weight: 600; letter-spacing: 0.14em; }
.top .id b i { font-style: normal; color: var(--acc); }
.top nav { display: flex; gap: 26px; justify-content: center; }
.top nav a { color: var(--dim); }
.top nav a:hover, .top nav a:focus-visible { color: var(--fg); outline: none; }
.top .mini-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line2); padding: 0 10px; height: 30px; width: 300px; }
.top .mini-search span { color: var(--acc); }
.top .mini-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--fg); font-size: 12px; }
.top .mini-search input::placeholder { color: var(--faint); }

section { position: relative; border-bottom: 1px solid var(--line); scroll-margin-top: 48px; }
.cross { position: absolute; width: 11px; height: 11px; color: var(--faint); font-size: 14px; line-height: 11px; text-align: center; pointer-events: none; }
.cross.tl { left: calc(var(--pad) - 6px); top: -6px; }
.cross.tr { right: calc(var(--pad) - 6px); top: -6px; }
.shead { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 30px var(--pad); border-bottom: 1px solid var(--line); }
.shead h2 { margin: 0; font-family: var(--mono); font-size: clamp(20px, 2.3vw, 32px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.shead h2::before { content: "> "; color: var(--acc); }
.shead h2 .d { color: var(--dim); }
.body { padding: 34px var(--pad) 48px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.grid2 > * { min-width: 0; }
.grid2 > :first-child { border-right: 1px solid var(--line); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: calc(100vh - 48px); }
.hero > * { min-width: 0; }
.hero .left { padding: 40px var(--pad) 32px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.tagrow { display: flex; gap: 16px; flex-wrap: wrap; }
.word { margin: 20px 0 0; font-family: var(--box); font-size: 26px; line-height: 1; letter-spacing: 0; white-space: pre; color: var(--fg); user-select: none; }
.word .r { color: var(--acc); }
.expand { margin-top: 18px; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); }
.expand b { font-weight: 500; color: var(--fg); }
.lede { margin: 18px 0 0; max-width: 560px; color: var(--dim); font-size: 19px; line-height: 1.5; }
.lede b { color: var(--fg); font-weight: 500; }
.term { margin-top: 22px; border: 1px solid var(--line2); background: var(--bg2); max-width: 620px; }
.term .bar { display: flex; justify-content: space-between; gap: 12px; padding: 7px 12px; border-bottom: 1px solid var(--line); }
.term form { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; }
.term form .ps { color: var(--acc); }
.term form .cmd { color: var(--fg); white-space: nowrap; }
.term input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--fg); font-size: 14px; font-weight: 500; caret-color: var(--acc); }
.term input::placeholder { color: var(--faint); }
.btn { background: var(--fg); color: var(--bg); border: 0; padding: 7px 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; cursor: pointer; text-transform: uppercase; }
.btn:hover, .btn:focus-visible { background: var(--acc); color: var(--bg); outline: none; }
.btn.ghost { background: none; color: var(--dim); border: 1px solid var(--line2); font-weight: 500; }
.btn.ghost:hover, .btn.ghost:focus-visible { color: var(--fg); border-color: var(--fg); background: none; }
.btn[disabled] { opacity: 0.4; cursor: default; }
.out { margin: 0; padding: 0 14px 14px; font-size: 12.5px; line-height: 1.7; white-space: pre-wrap; color: var(--dim); min-height: 0; }
.out:empty { padding: 0; }
.out .k { color: var(--fg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; max-width: 620px; }
.chip { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--line2); padding: 6px 10px; font-size: 12px; color: var(--dim); }
.chip:hover, .chip:focus-visible { color: var(--fg); border-color: var(--fg); outline: none; }
.chip i { font-style: normal; color: var(--faint); }
.left .foot { margin-top: auto; padding-top: 22px; display: flex; gap: 12px 18px; flex-wrap: wrap; align-items: center; }

.plate { position: relative; padding: 34px var(--pad) 28px 28px; display: flex; flex-direction: column; overflow: hidden; min-height: 520px; }
.plate .ph { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.scan { position: relative; flex: 1; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); border: 1px solid var(--line2); overflow: hidden; background: radial-gradient(120% 90% at 50% 40%, #121a12 0%, #0c100c 70%); min-height: 420px; }
.filmcol { position: relative; padding: 16px 12px 16px 14px; border-right: 1px dashed var(--line2); min-height: 0; }
.filmcol canvas { display: block; width: 100%; height: 100%; }
.readcol { position: relative; overflow: hidden; min-height: 0; }
.scan::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2; background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, 0.22) 2px 4px); }
.scan .corner { position: absolute; width: 14px; height: 14px; border-color: var(--acc); border-style: solid; border-width: 0; }
.scan .corner.a { left: -1px; top: -1px; border-left-width: 2px; border-top-width: 2px; }
.scan .corner.b { right: -1px; top: -1px; border-right-width: 2px; border-top-width: 2px; }
.scan .corner.c { left: -1px; bottom: -1px; border-left-width: 2px; border-bottom-width: 2px; }
.scan .corner.e { right: -1px; bottom: -1px; border-right-width: 2px; border-bottom-width: 2px; }
.hex { margin: 0; font-size: 12.5px; line-height: 1.62; white-space: pre; position: absolute; left: 0; right: 0; top: 16px; padding-right: 14px; }
.hex .off { color: var(--faint); }
.hex .hx { color: #4d6a3c; }
.hex .hx.hot { color: var(--acc); }
.hex .sp { color: var(--fg); }
.hex .sp.dim { color: var(--dim); }
.hex .sp.hi { color: var(--acc); }
.beam { position: absolute; left: 0; right: 0; height: 2px; background: var(--acc); box-shadow: 0 0 18px 2px rgba(158, 242, 94, 0.45); top: 0; opacity: 0; pointer-events: none; }
.beam::after { content: attr(data-off); position: absolute; right: 8px; top: -18px; font-size: 10px; letter-spacing: 0.1em; color: var(--acc); background: var(--bg2); padding: 0 4px; }
.plate .pf { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }

/* board */
.board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.card { background: var(--bg); padding: 0 0 18px; display: flex; flex-direction: column; gap: 12px; min-height: 260px; }
.card > :not(.cardfilm) { margin-left: 18px; margin-right: 18px; }
.cardfilm { height: 132px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: radial-gradient(120% 120% at 50% 30%, #111911 0%, #0b0f0b 75%); }
.cardfilm canvas { display: block; width: 100%; height: 100%; }
.ctop { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ro { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0; margin: 0; font-family: var(--mono); }
.ro dt, .ro dd { margin: 0; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.ro dt { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); padding-top: 8px; }
.ro dd { font-size: 13px; color: var(--fg); }
.ro dd i { display: inline-block; width: 16px; font-style: normal; }
.ro dd.warn i { color: var(--warn); }
.ro dd.ok i { color: var(--acc); }
.ro dd.info { color: var(--dim); }
.ro.big { grid-template-columns: 150px minmax(0, 1fr); margin-top: 26px; max-width: 640px; }
.ro.big dt { font-size: 11.5px; padding-top: 14px; }
.ro.big dd { font-size: 18px; padding: 10px 0; }
.ro.big dd i { width: 26px; }
.tdiff { margin: 0; padding: 30px 28px 10px; font-size: 13.5px; line-height: 1.9; white-space: pre-wrap; color: var(--fg); }
.tdiff .add { color: var(--acc); }
.tdiff .del { color: var(--dim); }
.card:hover, .card:focus-visible { background: var(--bg2); outline: none; }
.card h3 { margin: 0; font-size: 21px; font-weight: 500; letter-spacing: -0.015em; }
.card .vd { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.45; }
.card .go { margin-top: auto; }
.vline { display: grid; grid-template-columns: 14px 1fr; gap: 6px; }
.vline i { font-style: normal; }
.vline { color: var(--fg); }
.vline.info { color: var(--dim); }
.vline.warn i { color: var(--warn); }
.vline.ok i { color: var(--acc); }
.vline.info i { color: var(--faint); }

.cmp { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.cmp > div { background: var(--bg); padding: 14px 18px; font-size: 13px; }
.cmp .h { font-weight: 600; letter-spacing: 0.12em; }
.cmp .h.me { color: var(--acc); }
.flow { padding: 30px 28px 34px; font-size: 12px; white-space: pre; line-height: 2; overflow: hidden; margin: 0; }
.pane pre.flow, pre.flow { white-space: pre; word-break: normal; overflow-wrap: normal; }
.flow .fl-n { color: var(--fg); }
.flow .fl-p { color: var(--faint); }
.flow .fl-k { color: var(--acc); }

/* program page */
.phero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.phero > * { min-width: 0; }
.phero .left { padding: 40px var(--pad) 34px; border-right: 1px solid var(--line); }
.pname { margin: 16px 0 0; font-family: var(--mono); font-size: clamp(30px, 4vw, 54px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.02; text-transform: uppercase; word-break: break-word; }
.pid { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--dim); }
.pid code { color: var(--fg); word-break: break-all; }
.copy { background: none; border: 1px solid var(--line2); color: var(--dim); padding: 3px 9px; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.copy:hover, .copy:focus-visible { color: var(--fg); border-color: var(--fg); outline: none; }
.verdicts { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; font-size: 20px; line-height: 1.4; letter-spacing: -0.01em; }
.verdicts .vline { grid-template-columns: 22px 1fr; }
.metarow { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; }
.metarow span b { color: var(--fg); font-weight: 500; }
.ptabs { position: sticky; top: 48px; z-index: 30; display: flex; gap: 0; overflow-x: auto; background: var(--bg); border-bottom: 1px solid var(--line); padding: 0 var(--pad); scrollbar-width: none; }
.ptabs::-webkit-scrollbar { display: none; }
.ptabs a { padding: 14px 18px 13px; white-space: nowrap; border-bottom: 2px solid transparent; }
.ptabs a:first-child { padding-left: 0; }
.ptabs a:hover, .ptabs a:focus-visible, .ptabs a.on { color: var(--fg); outline: none; }
.ptabs a.on { border-bottom-color: var(--acc); }
dl.kv { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0; margin: 0; }
dl.kv dt, dl.kv dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
dl.kv dt { color: var(--dim); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 13px; }
dl.kv dd { word-break: break-word; }
dl.kv dd a { border-bottom: 1px solid var(--line2); }
.note { color: var(--dim); font-size: 15px; line-height: 1.6; max-width: 720px; }
.note b { color: var(--fg); font-weight: 500; }

.ix { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 480px; }
.ix > * { min-width: 0; }
.ix .list { border-right: 1px solid var(--line); display: flex; flex-direction: column; max-height: 640px; }
.ix .filter { display: flex; gap: 8px; align-items: center; padding: 12px var(--pad) 12px var(--pad); border-bottom: 1px solid var(--line); }
.ix .filter span { color: var(--acc); }
.ix .filter input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--fg); font-size: 13px; }
.ix .filter input::placeholder { color: var(--faint); }
.ix ul { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 1; }
.ix li button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--dim); padding: 9px var(--pad); font-size: 13px; cursor: pointer; }
.ix li button:hover, .ix li button:focus-visible { color: var(--fg); background: var(--bg2); outline: none; }
.ix li button.on { color: var(--acc); background: var(--accbg); }
.ix li button em { font-style: normal; color: var(--faint); font-size: 11px; white-space: nowrap; }
.ix li button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phero ~ section { scroll-margin-top: 94px; }
.ix .detail { padding: 22px 28px 28px; }
.ix .sig { font-size: 15px; line-height: 1.5; word-break: break-word; }
.ix .sig b { font-weight: 500; color: var(--fg); }
.ix .sig span { color: var(--dim); }
.ix .docs { color: var(--dim); font-size: 15px; line-height: 1.6; margin-top: 10px; max-width: 720px; }
.ix svg { width: 100%; height: auto; display: block; margin-top: 18px; overflow: visible; }
.ix svg text { font-family: var(--mono); font-weight: 500; }
.edge { fill: none; stroke: var(--line2); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 0.9s ease-out forwards; }
.edge.w { stroke: var(--acc); }
.nd { opacity: 0; animation: fadein 0.4s ease-out forwards; }
.nd rect { fill: var(--bg2); stroke: var(--line2); }
.nd.w rect { stroke: var(--acc); }
.nd.c rect { stroke: var(--fg); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; }
.acclist { display: none; margin-top: 16px; }
.acclist div { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.acclist div.w span:first-child { color: var(--acc); }

.caps { display: flex; flex-direction: column; }
.cap { display: grid; grid-template-columns: 280px minmax(0, 1fr) 220px; gap: 20px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.cap .bar { font-size: 12px; color: var(--fg); white-space: nowrap; overflow: hidden; }
.cap .bar.hi { color: var(--acc); }
.cap .names { color: var(--dim); font-size: 12px; word-break: break-word; }

.events { display: flex; flex-direction: column; }
.ev { display: grid; grid-template-columns: 110px 130px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.ev .what { color: var(--fg); }
.ev .what { font-family: var(--sans); font-size: 15px; }
.ev .what.code { color: var(--fg); }
.ev .what.code::before { content: "■ "; color: var(--acc); }
.ev .meta { color: var(--faint); font-size: 12px; word-break: break-all; }
.ev .meta a { border-bottom: 1px solid var(--line2); }
.termlog { margin: 0; padding: 14px 16px; border: 1px solid var(--line2); background: var(--bg2); font-size: 12.5px; line-height: 1.7; white-space: pre-wrap; color: var(--dim); }
.termlog .k { color: var(--fg); }
.diffbox { margin-top: 22px; border: 1px solid var(--line2); }
.diffbox .dh { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg2); }
.diffgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.diffgrid > div { background: var(--bg); padding: 16px; }
.diffgrid .n { display: block; font-size: 30px; font-weight: 500; line-height: 1; margin-bottom: 6px; }
.diffgrid .n.hi { color: var(--acc); }
.diffgrid p { margin: 0; color: var(--dim); font-size: 13.5px; }
.difflines { margin: 0; padding: 16px; font-size: 12.5px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; }
.difflines .add { color: var(--acc); }
.difflines .del { color: var(--dim); text-decoration: line-through; text-decoration-color: rgba(238, 241, 239, 0.35); }
.difflines .hd { color: var(--faint); }
pre.spec { margin: 0; padding: 20px 22px; border: 1px solid var(--line2); background: var(--bg2); font-size: 12.5px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; max-height: 640px; overflow: auto; color: var(--dim); }
pre.spec .h { color: var(--fg); }
pre.spec .r { color: var(--warn); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.inst { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.inst > * { min-width: 0; }
.tabs { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.tab { text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--dim); padding: 18px var(--pad); cursor: pointer; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.tab.on { color: var(--fg); background: var(--bg2); box-shadow: inset 2px 0 0 var(--acc); }
.tab:hover, .tab:focus-visible { color: var(--fg); outline: none; }
.pane { position: relative; padding: 28px var(--pad) 34px; }
.pane pre { margin: 0; font-size: 13.5px; line-height: 1.9; white-space: pre-wrap; word-break: break-word; }
.pane pre .c { color: var(--faint); }
.pane .copy { position: absolute; top: 22px; right: var(--pad); padding: 6px 12px; font-size: 11px; }

.end { padding: 40px var(--pad) 56px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.end > * { min-width: 0; }
.end p { margin: 0 0 8px; color: var(--dim); max-width: 680px; font-size: 14px; }
.end p b { color: var(--fg); font-weight: 500; }
.end .mini { font-family: var(--box); font-size: 9px; line-height: 1; white-space: pre; color: var(--faint); margin: 0; }

.err { padding: 80px var(--pad); min-height: 60vh; }
.err h1 { margin: 16px 0 0; font-size: clamp(30px, 4vw, 54px); font-weight: 600; letter-spacing: -0.03em; }
.err p { color: var(--dim); max-width: 600px; font-size: 17px; line-height: 1.6; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }
.cur { display: inline-block; width: 0.6em; height: 1.05em; background: var(--acc); vertical-align: -0.15em; animation: blink 1s steps(1) infinite; }

@media (max-width: 1200px) {
  .board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cap { grid-template-columns: 220px minmax(0, 1fr); }
  .cap .names { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --pad: 16px; }
  .top { grid-template-columns: auto auto; gap: 12px; }
  .top nav, .top .mini-search, .top .id .micro { display: none; }
  .top .lic { text-align: right; }
  .hero, .phero, .grid2, .ix, .inst { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; }
  .hero .left, .phero .left { border-right: 0; border-bottom: 1px solid var(--line); padding: 32px 16px 28px; }
  .grid2 > :first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .word { font-size: clamp(9px, calc((100vw - 32px) / 21), 26px); }
  .lede { font-size: 16px; }
  .plate { padding: 24px 16px; min-height: 0; }
  .scan { grid-template-columns: minmax(0, 1fr); grid-template-rows: 210px 430px; }
  .filmcol { border-right: 0; border-bottom: 1px dashed var(--line2); }
  .ro.big { grid-template-columns: 112px minmax(0, 1fr); }
  .ro.big dd { font-size: 16px; }
  .tdiff { padding: 22px 16px 6px; font-size: 12px; }
  .hex { font-size: 11px; }
  .shead { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 18px 16px; }
  .board { grid-template-columns: minmax(0, 1fr); }
  .card { min-height: 0; }
    .cmp { grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1fr); }
  .cmp > div { padding: 12px 10px; font-size: 12px; }
  .flow { padding: 24px 16px; font-size: 11px; }
  .verdicts { font-size: 17px; }
  dl.kv { grid-template-columns: minmax(0, 1fr); }
  dl.kv dt { border-bottom: 0; padding-bottom: 0; }
  .ix .list { border-right: 0; border-bottom: 1px solid var(--line); max-height: 320px; }
  .ix .filter { padding: 12px 16px; }
  .ix li button { padding: 9px 16px; }
  .ix .detail { padding: 20px 16px; }
  .ix svg { display: none; }
  .acclist { display: block; }
  .cap { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ev { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .ev .when { grid-column: 1 / 2; }
  .ev .meta { grid-column: 1 / -1; }
  .diffgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabs { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); }
  .tab { flex: 1; text-align: center; padding: 14px 8px; border-bottom: 0; border-right: 1px solid var(--line); }
  .tab.on { box-shadow: inset 0 -2px 0 var(--acc); }
  .pane { padding: 22px 16px 28px; }
  .pane pre { font-size: 12px; }
  .pane .copy { position: static; margin-top: 18px; }
  .end { grid-template-columns: minmax(0, 1fr); padding: 32px 16px 44px; }
  .err { padding: 48px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .edge { stroke-dashoffset: 0 !important; animation: none !important; }
  .nd { opacity: 1 !important; animation: none !important; }
  .cur { animation: none; }
}

.top .id { font-family: var(--mono); }
.ev .when { font-family: var(--mono); }
.ev .meta { font-family: var(--mono); font-size: 12px; }

.hl { margin: 22px 0 0; font-family: var(--mono); font-size: clamp(24px, 2.6vw, 36px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.hl .d { color: var(--dim); }

/* chapters */
:root { --gut: max(var(--pad), calc((100vw - 1376px) / 2)); --sec: clamp(104px, 11vw, 176px); }
.chap { border-bottom: 0; padding-top: var(--sec); scroll-margin-top: 0; }
main > .chap:last-of-type { padding-bottom: var(--sec); }
.ch { padding: 0 var(--gut); margin-bottom: clamp(44px, 5vw, 80px); }
.chmeta { display: flex; align-items: center; gap: 18px; }
.chmeta .rule { flex: 1; height: 1px; background: var(--line2); }
.chmeta > span:last-child:empty { display: none; }
.cht { margin: clamp(30px, 3.6vw, 52px) 0 0; font-family: var(--mono); font-size: clamp(30px, 4.3vw, 62px); font-weight: 500; letter-spacing: -0.045em; line-height: 1.04; max-width: 16em; text-wrap: balance; }
.cht .d { color: var(--faint); }
.chl { margin: 26px 0 0; max-width: 60ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: var(--dim); text-wrap: pretty; }
.statrow, .boardwrap, .frame, .pbgrid, .cmpwrap, .proofs, .lingrid, .progress, .road { margin-left: var(--gut); margin-right: var(--gut); }
.up { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease var(--d, 0ms), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms); }
.up.in { opacity: 1; transform: none; }

/* 01 problem */
.statrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 56px); }
.stat { border-top: 1px solid var(--line2); padding-top: 26px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.stat .n { font-family: var(--mono); font-size: clamp(72px, 8.6vw, 136px); font-weight: 500; letter-spacing: -0.07em; line-height: 0.88; color: var(--acc); }
.stat .n small { font-size: 0.42em; letter-spacing: -0.04em; color: var(--faint); margin-left: 0.08em; }
.stat .t { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.35; color: var(--fg); max-width: 18em; }
.stat .w { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--faint); }

/* 02 board */
.boardwrap { border: 1px solid var(--line); }
.swipe { display: none; }

/* frames */
.frame { border: 1px solid var(--line2); background: var(--bg); }
.frame .ix .filter { padding: 14px 20px; }
.frame .ix li button { padding: 10px 20px; }
.frame .ix .list { max-height: 600px; }
.frame .ix .detail { padding: 30px 36px 34px; }
.frame .tab { padding: 20px 24px; }
.frame .pane { padding: 30px 36px 36px; }
.frame .pane .copy { right: 24px; top: 24px; }

/* 04 plate b */
.pbgrid { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: clamp(32px, 3.6vw, 64px); align-items: start; }
.pbgrid > * { min-width: 0; }
.tlh { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line2); }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 18px; padding: 18px 0 18px 22px; border-bottom: 1px dashed var(--line); }
.tl li::before { content: ""; position: absolute; left: 0; top: 25px; width: 8px; height: 8px; border: 1px solid var(--line2); }
.tl li.code::before { background: var(--line2); border-color: var(--line2); }
.tl li.on::before { background: var(--acc); border-color: var(--acc); box-shadow: 0 0 10px rgba(158, 242, 94, 0.5); }
.tl li::after { content: ""; position: absolute; left: 4px; top: 38px; bottom: -18px; width: 1px; background: var(--line); }
.tl li:last-child::after { display: none; }
.tl .when { font-family: var(--mono); font-size: 13px; color: var(--fg); padding-top: 1px; }
.tl .what { font-size: 16px; line-height: 1.4; color: var(--fg); }
.tl li.auth .what { color: var(--dim); }
.tl .what em { white-space: nowrap; font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; margin-left: 6px; }
.tl .meta { display: block; margin-top: 6px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.pbgrid .diffbox { margin-top: 0; }
details.more { border-top: 1px solid var(--line); }
details.more summary { cursor: pointer; padding: 14px 16px; color: var(--dim); list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+ "; color: var(--acc); }
details.more[open] summary::before { content: "− "; }
details.more summary:hover, details.more summary:focus-visible { color: var(--fg); outline: none; }
details.more .difflines { padding-top: 0; }

/* 05 compare */
.cmpt { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 14px; }
.cmpt th { text-align: left; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); padding: 0 16px 14px 0; border-bottom: 1px solid var(--line2); }
.cmpt td { padding: 20px 16px 20px 0; border-bottom: 1px dashed var(--line); color: var(--dim); vertical-align: top; line-height: 1.5; }
.cmpt td:first-child { color: var(--fg); white-space: nowrap; }
.cmpt td.bad { color: var(--warn); }
.cmpt tr.me td { color: var(--acc); border-bottom: 1px solid var(--acc); background: var(--accbg); }
.cmpt tr.me td:first-child { font-weight: 600; padding-left: 14px; }
.proofs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 56px); margin-top: clamp(64px, 7vw, 112px); }
.proof { border-top: 1px solid var(--line2); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.proof b { font-family: var(--mono); font-size: clamp(20px, 1.7vw, 24px); font-weight: 500; letter-spacing: -0.025em; }
.proof p { margin: 0; color: var(--dim); font-size: 16px; line-height: 1.6; }
.proof code { margin-top: auto; padding-top: 10px; font-size: 12px; color: var(--faint); word-break: break-all; }

/* 06 lineage band */
.chap.band { margin-top: var(--sec); padding-bottom: var(--sec); background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chap.band + .chap { padding-top: var(--sec); }
.chap.forge { padding-top: clamp(64px, 7vw, 112px); }
.lingrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 96px); align-items: start; }
.lingrid > * { min-width: 0; }
.quote blockquote { margin: 0; font-size: clamp(28px, 3vw, 46px); line-height: 1.18; font-weight: 500; letter-spacing: -0.025em; text-wrap: balance; }
.quote blockquote::before { content: "\201C"; color: var(--acc); }
.quote blockquote::after { content: "\201D"; color: var(--acc); }
.quote cite { display: block; margin-top: 22px; font-style: normal; }
.quote .then { margin: 44px 0 0; color: var(--dim); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; max-width: 32em; }
.quote .then b { color: var(--fg); font-weight: 500; }
.pane2 { border: 1px solid var(--line2); background: var(--bg); }
.pane2 .tdiff { padding: 28px 28px 24px; }
.pane2 .flow { border-top: 1px dashed var(--line2); padding: 26px 28px 28px; }

/* 07 roadmap */
.progress { font-family: var(--mono); font-size: 13px; margin-bottom: 30px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 0; white-space: pre; }
.progress .pg { margin-left: 18px; color: var(--dim); white-space: normal; }
.progress .pg b { color: var(--fg); font-weight: 500; }
.road { display: flex; flex-direction: column; border-top: 1px solid var(--line2); }
.rrow { display: grid; grid-template-columns: 64px 180px minmax(0, 1fr) 300px 84px; gap: 20px; align-items: baseline; padding: 20px 14px; border-bottom: 1px dashed var(--line); font-family: var(--mono); font-size: 13px; color: var(--dim); }
.rrow .rv { color: var(--faint); }
.rrow .rn { color: var(--fg); font-size: 15px; }
.rrow .rp i { font-style: normal; color: var(--faint); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; margin-right: 6px; }
.rrow .rs { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); text-align: right; }
.rrow.shipped .rn, .rrow.shipped .rs { color: var(--acc); }
.rrow.next { background: var(--accbg); }
.rrow.next .rn { color: var(--acc); }
.rrow.next .rs { color: var(--fg); }

@media (max-width: 1100px) {
  .rrow { grid-template-columns: 60px minmax(0, 1fr) 80px; }
  .rrow .rw, .rrow .rp { grid-column: 2 / -1; }
  .pbgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  :root { --sec: 88px; }
  .cht { font-size: clamp(28px, 8.4vw, 40px); letter-spacing: -0.04em; }
  .chl { margin-top: 18px; }
  .chmeta { gap: 12px; }
  .statrow { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .stat .n { font-size: 84px; }
  .boardwrap { margin-left: 0; margin-right: 0; border-left: 0; border-right: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .boardwrap::-webkit-scrollbar { display: none; }
  .board { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82vw; }
  .card { scroll-snap-align: start; }
  .swipe { display: block; margin: 12px var(--gut) 0; text-align: right; }
  .frame .ix .detail { padding: 22px 18px; }
  .frame .ix .filter, .frame .ix li button { padding-left: 16px; padding-right: 16px; }
  .frame .tab { padding: 14px 8px; }
  .frame .pane { padding: 22px 16px 26px; }
  .tl li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .cmpt thead { display: none; }
  .cmpt, .cmpt tbody, .cmpt tr, .cmpt td { display: block; }
  .cmpt tr { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .cmpt td { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 4px 0; border: 0; font-size: 12.5px; }
  .cmpt td:first-child { display: block; font-size: 15px; margin-bottom: 8px; }
  .cmpt td[data-l]::before { content: attr(data-l); color: var(--faint); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 2px; }
  .cmpt tr.me { background: var(--accbg); padding: 18px 14px; border-bottom: 1px solid var(--acc); }
  .cmpt tr.me td { background: none; border: 0; }
  .cmpt tr.me td:first-child { padding-left: 0; }
  .proofs { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .lingrid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .quote .then { margin-top: 28px; }
  .pane2 .tdiff { padding: 22px 16px 18px; }
  .pane2 .flow { padding: 22px 16px; }
  .progress { font-size: 11px; }
  .progress .pg { margin-left: 0; width: 100%; margin-top: 6px; }
  .rrow { padding: 16px 10px; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
  .rrow .rs { display: none; }
  .rrow .rw, .rrow .rp { grid-column: 2 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .up { opacity: 1; transform: none; transition: none; }
}

.codebar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px var(--pad); border-bottom: 1px solid var(--line); }
.cstats { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.cstats b { font-weight: 500; color: var(--fg); }
.cstats b.acc { color: var(--acc); }
.cnav { display: flex; gap: 8px; }
pre.asm { margin: 0; padding: 18px var(--pad) 26px; font-size: 12.5px; line-height: 1.7; max-height: 620px; overflow: auto; background: radial-gradient(140% 100% at 30% 0%, #0f150f 0%, var(--bg) 60%); color: var(--fg); white-space: pre; }
pre.asm .la { color: var(--faint); }
pre.asm .lb { color: #4d6a3c; }
pre.asm .lf { color: var(--acc); font-weight: 600; }
pre.asm .ll { color: var(--dim); }
pre.asm .lt { color: var(--acc); }
pre.asm .k-sys { color: var(--acc); }
pre.asm .k-call { color: var(--fg); }
pre.asm .k-jmp { color: #d6e6cf; }
pre.asm .k-exit { color: var(--warn); }
pre.asm .k-str { color: var(--fg); }
pre.asm .ln { color: var(--dim); }
pre.asm .k-unk { color: var(--warn); }
@media (max-width: 900px) { pre.asm { font-size: 11px; padding: 14px 16px 20px; } .codebar { padding: 14px 16px; } pre.asm .lb { display: none; } }
.nw { white-space: nowrap; }

/* forge */
.fbar { margin: 0 var(--gut) 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.chipsel { display: flex; gap: 8px; flex-wrap: wrap; }
.chipsel button { background: none; border: 1px solid var(--line2); color: var(--dim); padding: 8px 14px; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.chipsel button i { font-style: normal; color: var(--faint); margin-left: 8px; }
.chipsel button:hover, .chipsel button:focus-visible { color: var(--fg); border-color: var(--fg); outline: none; }
.chipsel button.on { color: var(--bg); background: var(--acc); border-color: var(--acc); }
.chipsel button.on i { color: rgba(11, 12, 12, 0.6); }
.fgrid { margin: 0 var(--gut); display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
.fgrid > * { min-width: 0; }
.blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.blk { border: 1px solid var(--line2); background: var(--bg); display: flex; flex-direction: column; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.blk[hidden] { display: none; }
.blk:hover { border-color: #4a5a48; }
.blk.on { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc), 0 0 28px -8px rgba(158, 242, 94, 0.45); }
.bprev { position: relative; height: 210px; border-bottom: 1px solid var(--line); background: #0d100d; overflow: hidden; }
.bprev canvas { display: block; width: 100%; height: 100%; }
.bprev::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, 0.18) 2px 4px); }
.bcat, .btag { position: absolute; top: 10px; z-index: 1; background: rgba(13, 16, 13, 0.85); padding: 2px 6px; }
.bcat { left: 10px; color: var(--acc); }
.btag { right: 10px; color: var(--faint); }
.bbody { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.bbody h3 { margin: 0; font-family: var(--mono); font-size: 22px; font-weight: 500; letter-spacing: -0.03em; }
.bbody p { margin: 0; color: var(--dim); font-size: 15px; line-height: 1.55; }
.bstat { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.bstat b { color: var(--fg); font-weight: 500; }
.bact { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.blk.on .add { background: var(--acc); }
.tray { position: sticky; top: 72px; border: 1px solid var(--line2); background: var(--bg2); padding: 20px; display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 96px); overflow: auto; scroll-margin-top: 64px; }
.tlab { display: flex; justify-content: space-between; gap: 10px; }
.tchips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; font-size: 14px; }
.tchips button { font-family: var(--mono); font-size: 12px; background: var(--accbg); color: var(--acc); border: 1px solid rgba(158, 242, 94, 0.4); padding: 5px 9px; cursor: pointer; }
.tchips button i { font-style: normal; color: var(--faint); margin-left: 4px; }
.tchips button:hover { border-color: var(--acc); }
.tfilm { position: relative; height: 150px; border: 1px solid var(--line2); background: radial-gradient(120% 120% at 50% 30%, #111911 0%, #0b0f0b 75%); padding: 10px; }
.tfilm canvas { display: block; width: 100%; height: 100%; }
.tbeam { position: absolute; right: 8px; bottom: 6px; color: var(--acc); }
.tray .ro { grid-template-columns: 78px minmax(0, 1fr); }
.tray .ro dd { font-size: 12.5px; overflow-wrap: anywhere; }
.tin { display: flex; flex-direction: column; gap: 8px; }
.tin i { font-style: normal; text-transform: none; letter-spacing: 0; }
.tin .row { display: flex; gap: 6px; }
.tin input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line2); color: var(--fg); padding: 10px; font-size: 12px; outline: none; }
.tin input:focus { border-color: var(--acc); }
.btn.deploy { padding: 14px; font-size: 13px; background: var(--acc); color: var(--bg); }
.btn.deploy:hover, .btn.deploy:focus-visible { background: var(--fg); }
.btn.wide { width: 100%; }
.tcmd { display: flex; gap: 8px; align-items: center; border: 1px dashed var(--line2); padding: 8px 10px; }
.tcmd code { flex: 1; min-width: 0; font-size: 11.5px; color: var(--dim); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.dlog { margin: 0; border: 1px solid var(--line2); background: #090b09; padding: 12px; font-size: 11.5px; line-height: 1.75; white-space: pre-wrap; color: var(--dim); word-break: break-all; }
.dlog .k { color: var(--fg); }
.okcard { border: 1px solid var(--acc); background: var(--accbg); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.okcard .ro { grid-template-columns: 78px minmax(0, 1fr); }
.okcard .ro dd { font-size: 12px; word-break: break-all; }
.okcard .note { font-size: 13px; margin: 0; }
.perks { margin: 0 var(--gut); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 40px); }
.perk { border-top: 1px solid var(--line2); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.perk b { font-family: var(--mono); font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
.perk p { margin: 0; color: var(--dim); font-size: 15px; line-height: 1.55; }
.mbar { display: none; }
.devtag { color: var(--bg); background: var(--acc); padding: 1px 6px; }
.forgetag { display: inline-block; margin-top: 14px; border: 1px solid rgba(158, 242, 94, 0.35); background: var(--accbg); padding: 6px 10px; color: var(--dim); }
.forgetag:hover { border-color: var(--acc); color: var(--fg); }
body.noscroll { overflow: hidden; }
.drawer { position: fixed; inset: 0; z-index: 60; background: rgba(5, 7, 5, 0.72); backdrop-filter: blur(3px); display: flex; justify-content: flex-end; animation: fadein 0.2s ease-out forwards; opacity: 0; }
.dpanel { width: min(860px, 100%); height: 100%; background: var(--bg); border-left: 1px solid var(--line2); display: flex; flex-direction: column; animation: slidein 0.32s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes slidein { from { transform: translateX(40px); opacity: 0.4; } to { transform: none; opacity: 1; } }
.dhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 28px 16px; border-bottom: 1px solid var(--line); }
.dhead h3 { margin: 8px 0 0; font-family: var(--mono); font-size: 30px; font-weight: 500; letter-spacing: -0.04em; }
.dtabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); padding: 0 28px; overflow-x: auto; scrollbar-width: none; }
.dtabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--dim); padding: 14px 14px 12px; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; white-space: nowrap; }
.dtabs button:first-child { padding-left: 0; }
.dtabs button.on { color: var(--fg); border-bottom-color: var(--acc); }
.dbody { flex: 1; overflow: auto; padding: 22px 28px; }
pre.rust { margin: 0; font-size: 12.5px; line-height: 1.7; white-space: pre; color: var(--fg); }
pre.rust .rk { color: var(--acc); }
pre.rust .rt { color: #d6e6cf; }
pre.rust .rs { color: #e6c98a; }
pre.rust .rn { color: #8fd3c8; }
pre.rust .rc { color: var(--faint); }
table.dt { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12.5px; }
table.dt th { text-align: left; font-size: 10.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); padding: 0 12px 10px 0; border-bottom: 1px solid var(--line2); }
table.dt td { padding: 12px 12px 12px 0; border-bottom: 1px dashed var(--line); vertical-align: top; color: var(--dim); line-height: 1.6; }
table.dt td b { color: var(--fg); font-weight: 500; }
table.dt td i { font-style: normal; font-size: 10px; color: var(--faint); margin-left: 2px; vertical-align: super; }
table.dt .r { text-align: right; }
table.dt td span { margin-right: 8px; white-space: nowrap; }
.dfoot { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 28px; border-top: 1px solid var(--line); background: var(--bg2); }
.dfoot code { font-size: 12px; color: var(--dim); }
@media (max-width: 1100px) {
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .tray { position: static; max-height: none; }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .blocks { grid-template-columns: minmax(0, 1fr); }
  .bprev { height: 190px; }
  .perks { grid-template-columns: minmax(0, 1fr); }
  .mbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; background: var(--bg2); border: 1px solid var(--acc); font-family: var(--mono); font-size: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
  .dhead, .dtabs, .dbody, .dfoot { padding-left: 16px; padding-right: 16px; }
  pre.rust { font-size: 11px; }
}

/* landing forge teaser */
.newtag { display: inline-flex; gap: 8px; align-items: center; border: 1px solid rgba(158, 242, 94, 0.35); background: var(--accbg); padding: 6px 10px; color: var(--fg); }
.newtag:hover, .newtag:focus-visible { border-color: var(--acc); outline: none; }
.fminis { margin: 0 var(--gut); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.fmini { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fmc { position: relative; height: 170px; border: 1px solid var(--line2); background: #0d100d; overflow: hidden; transition: border-color 0.2s ease; }
.fmc canvas { display: block; width: 100%; height: 100%; }
.fmc::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, 0.18) 2px 4px); }
.fmini b { font-family: var(--mono); font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
.fmini:hover .fmc, .fmini:focus-visible .fmc { border-color: var(--acc); }
.fmini:focus-visible { outline: none; }
.ffacts { margin: clamp(40px, 4vw, 64px) var(--gut) 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 40px); }
.ffacts > div { border-top: 1px solid var(--line2); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.ffacts b { font-family: var(--mono); font-size: clamp(40px, 4.4vw, 64px); font-weight: 500; letter-spacing: -0.06em; line-height: 0.95; }
.ffacts span { color: var(--dim); font-size: 15px; }
.factions { margin: 36px var(--gut) 0; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.factions .btn { padding: 14px 22px; font-size: 13px; background: var(--acc); }
.factions .btn:hover { background: var(--fg); }
.top nav a.navnew { color: var(--acc); }
.top nav a.navnew::after { content: " ◆"; font-size: 9px; vertical-align: 1px; }
.rrow.forge .rv { color: var(--acc); opacity: 0.8; }

/* scroll rail */
.rail { position: fixed; left: 14px; top: 96px; bottom: 48px; width: 22px; z-index: 35; --p: 0; opacity: 0; transition: opacity 0.4s ease; pointer-events: none; }
.rail.show { opacity: 1; pointer-events: auto; }
.rail .track, .rail .fill { position: absolute; left: 10px; top: 0; width: 1px; }
.rail .track { bottom: 0; background: var(--line2); }
.rail .fill { height: calc(var(--p) * 100%); background: var(--acc); box-shadow: 0 0 8px rgba(158, 242, 94, 0.6); }
.rail .head { position: absolute; left: 6px; top: calc(var(--p) * 100%); width: 9px; height: 9px; margin-top: -4px; background: var(--acc); box-shadow: 0 0 12px 2px rgba(158, 242, 94, 0.55); }
.rail a { position: absolute; left: 0; width: 22px; height: 16px; margin-top: -8px; display: flex; align-items: center; }
.rail a::before { content: ""; position: absolute; left: 7px; width: 7px; height: 1px; background: var(--faint); }
.rail a span { position: absolute; left: 20px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em; color: var(--faint); opacity: 0; transition: opacity 0.2s; }
.rail a.on::before { background: var(--acc); width: 9px; left: 6px; }
.rail a.on span { color: var(--acc); }
.rail:hover a span, .rail a:focus-visible span { opacity: 1; }
.rail a:focus-visible { outline: none; }

/* chapter scan sweep */
.ch .chmeta .rule { position: relative; overflow: hidden; }
.ch .chmeta .rule::after { content: ""; position: absolute; top: -1px; height: 3px; width: 120px; left: -140px; background: linear-gradient(90deg, transparent, var(--acc), transparent); opacity: 0; }
.ch.in .chmeta .rule::after { animation: sweep 1.4s cubic-bezier(0.3, 0.6, 0.2, 1) 0.15s 1 forwards; }
@keyframes sweep { 0% { left: -140px; opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* board card x-ray on hover */
.cardfilm { position: relative; overflow: hidden; }
.cardfilm::after { content: ""; position: absolute; left: 0; right: 0; top: -10%; height: 2px; background: var(--acc); box-shadow: 0 0 14px 3px rgba(158, 242, 94, 0.55); opacity: 0; }
.card:hover .cardfilm::after, .card:focus-visible .cardfilm::after { animation: cardscan 1.1s linear infinite; opacity: 1; }
.card:hover .cardfilm canvas, .card:focus-visible .cardfilm canvas { filter: brightness(1.35) contrast(1.1); }
.cardfilm canvas { transition: filter 0.25s ease; }
@keyframes cardscan { from { top: 0; } to { top: 100%; } }
.card .go { transition: color 0.2s; }
.card:hover .go { color: var(--acc); }

@media (max-width: 1100px) {
  .fminis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ffacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .fminis { margin-left: 0; margin-right: 0; padding: 0 var(--gut); display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 72vw; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .fminis::-webkit-scrollbar { display: none; }
  .fmini { scroll-snap-align: start; }
  .ffacts b { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .ch.in .chmeta .rule::after, .card:hover .cardfilm::after { animation: none; opacity: 0; }
}

/* community */
.cbadge { position: absolute; left: 10px; bottom: 10px; z-index: 1; background: rgba(13, 16, 13, 0.85); padding: 2px 6px; color: var(--warn); border: 1px solid rgba(255, 122, 102, 0.35); }
.cbadge.ok { color: var(--acc); border-color: rgba(158, 242, 94, 0.35); }
.blk.comm { border-style: dashed; }
.blk.comm.on { border-style: solid; }
.bproof { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--faint); }
.tnote { color: var(--warn); margin: 0; text-transform: none; letter-spacing: 0.02em; line-height: 1.5; }
.pipe { margin: 0 var(--gut) clamp(32px, 4vw, 56px); display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.pipe > div { flex: 1; min-width: 150px; border: 1px solid var(--line2); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; background: var(--bg); }
.pipe > div b { font-family: var(--mono); font-weight: 500; font-size: 17px; }
.pipe > div span:last-child { color: var(--dim); font-size: 13px; }
.pipe > div.done { border-color: rgba(158, 242, 94, 0.5); background: var(--accbg); }
.pipe > i { font-style: normal; align-self: center; color: var(--acc); font-family: var(--mono); }
.pubform { margin: 0 var(--gut); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; border: 1px solid var(--line2); background: var(--bg2); padding: 22px; }
.pcol { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.prow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.pf { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pf input, .pf select, .pf textarea { background: var(--bg); border: 1px solid var(--line2); color: var(--fg); padding: 10px 12px; font-family: var(--mono); font-size: 12.5px; outline: none; width: 100%; border-radius: 0; }
.pf textarea { resize: vertical; line-height: 1.6; tab-size: 4; }
.pf input:focus, .pf select:focus, .pf textarea:focus { border-color: var(--acc); }
.lintout { margin: 0; border: 1px solid var(--line2); background: #090b09; padding: 12px 14px; font-size: 12px; line-height: 1.8; white-space: pre-wrap; color: var(--dim); min-height: 64px; }
.subbody { margin: 0 var(--gut); }
.subbody .ro.big { margin-top: 32px; }
table.dt tr.bad td { color: var(--warn); }
@media (max-width: 900px) {
  .pubform { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .pipe > i { display: none; }
  .pipe > div { min-width: 0; flex-basis: 44%; }
}
.subbody .pipe { margin-left: 0; margin-right: 0; }
#p-src, #p-ix, #p-sc { white-space: pre; overflow-wrap: normal; overflow-x: auto; }

/* deploy list */
.deploys { margin: clamp(48px, 5vw, 80px) var(--gut) 0; border-top: 1px solid var(--line2); padding-top: 24px; }
.dlhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.dlhead > div { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.dlhead b { font-family: var(--mono); font-size: clamp(36px, 3.6vw, 52px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.dlist { display: flex; flex-direction: column; }
.drow { display: grid; grid-template-columns: 110px 150px minmax(0, 1fr) auto 60px; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); font-family: var(--mono); font-size: 13px; }
.drow:hover .go, .drow:focus-visible .go { color: var(--acc); }
.drow:focus-visible { outline: none; background: var(--bg2); }
.drow .when { color: var(--faint); }
.ldeploys { margin-top: clamp(40px, 4vw, 64px); }
.livedot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 10px var(--acc); animation: livedot 1.6s ease-in-out infinite; }
@keyframes livedot { 50% { opacity: 0.35; } }
.drow.fresh { animation: drowfresh 2.4s ease-out; }
@keyframes drowfresh { 0% { background: color-mix(in srgb, var(--acc) 22%, transparent); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .livedot, .drow.fresh { animation: none; } }
.drow .pg { color: var(--fg); }
.drow .bl { display: flex; gap: 6px; flex-wrap: wrap; }
.drow .bl i { font-style: normal; font-size: 11.5px; color: var(--acc); background: var(--accbg); border: 1px solid rgba(158, 242, 94, 0.3); padding: 2px 7px; }
.drow .ok { color: var(--acc); }
.drow .go { color: var(--faint); text-align: right; }
.bstat .used b { color: var(--acc); }
.mine { display: flex; flex-direction: column; gap: 6px; }
.mine .tlab { margin-top: 4px; }
.mrow { display: flex; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.mrow:hover span:first-child { color: var(--acc); }
.vote { margin: calc(-1 * clamp(16px, 2vw, 32px)) var(--gut) clamp(32px, 4vw, 56px); display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; border: 1px solid rgba(158, 242, 94, 0.35); background: var(--accbg); padding: 14px 18px; font-size: 15px; color: var(--fg); }
.perks { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (max-width: 900px) {
  .drow { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .drow .bl { grid-column: 1 / -1; }
  .drow .ok, .drow .when { font-size: 11px; }
  .drow .go { display: none; }
}
.top nav a.xlink { color: var(--fg); border: 1px solid var(--line2); padding: 3px 8px; margin-left: 4px; }
.top nav a.xlink:hover, .top nav a.xlink:focus-visible { border-color: var(--acc); color: var(--acc); }
.top .xmob { display: none; }
.top nav a, .top .id .micro, .top .id b { white-space: nowrap; }
@media (max-width: 1240px) { .top .id .micro { display: none; } .top nav { gap: 18px; } .top .mini-search { width: 230px; } }
@media (max-width: 1060px) { .top { gap: 16px; } .top nav { gap: 14px; } .top nav a.xlink { font-size: 0; padding: 3px 8px; } .top nav a.xlink::before { content: "𝕏"; font-size: 12px; } .top .mini-search { width: 180px; } }
@media (max-width: 900px) { .top { grid-template-columns: auto 1fr auto; } .top .xmob { display: inline-flex; justify-self: end; color: var(--fg); border: 1px solid var(--line2); padding: 4px 9px; font-size: 13px; } }

.castrip { position: sticky; top: 48px; z-index: 39; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px var(--pad); background: linear-gradient(var(--accbg), var(--accbg)), var(--bg); border-bottom: 1px solid rgba(158, 242, 94, 0.35); }
.castrip[hidden] { display: none; }
.castrip code { font-size: 12.5px; color: var(--fg); word-break: break-all; }
.castrip .lk { margin-left: auto; display: flex; gap: 14px; }
.castrip ~ main .ptabs { top: 85px; }
@media (max-width: 900px) { .castrip { padding: 8px 16px; gap: 8px; } .castrip code { font-size: 11px; flex-basis: 100%; order: 3; } .castrip .lk { margin-left: 0; order: 4; } }
.castrip ~ main .tray { top: 100px; }
