/* CONTAINMENT/OS — the splice terminal's operating system. One screen, tabs, windows. */
@font-face { font-family: "Geist"; src: url(/fonts/geist-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url(/fonts/geist-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url(/fonts/geist-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlowc-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url(/fonts/barlowc-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Share Tech Mono"; src: url(/fonts/stm.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "DSEG7"; src: url(/fonts/dseg7.woff2) format("woff2"); font-display: block; }

:root {
  --void: #000201; --bg: #020604; --win: #040a07; --win2: #061009; --raise: #0a1610; --hover: #0e1d15;
  --line: rgba(125, 255, 176, .08); --line2: rgba(125, 255, 176, .14); --line3: rgba(125, 255, 176, .26);
  --text: #dcf3e6; --dim: #8aa597; --mute: #4c6457;
  --ph: #7dffb0; --ph-soft: rgba(125, 255, 176, .09); --ph-glow: 0 0 12px rgba(125, 255, 176, .35);
  --hz: #f5c518; --hz-ink: #110e02; --hz-soft: rgba(245, 197, 24, .1);
  --bad: #ff5a47; --bad-soft: rgba(255, 90, 71, .1); --vi: #b39bff;
  --ui: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hd: "Barlow Condensed", "Arial Narrow", sans-serif;
  --mono: "Share Tech Mono", ui-monospace, Menlo, Consolas, monospace;
  --seg: "DSEG7", "Share Tech Mono", monospace;
  --r: 6px; --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }
html { background: var(--void); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body { color: var(--text); font: 400 14px/1.5 var(--ui); -webkit-font-smoothing: antialiased; background: radial-gradient(1200px 700px at 50% 40%, #07120c, var(--void) 70%); overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 1.5px solid var(--ph); outline-offset: 2px; }
::selection { background: var(--ph); color: #021; }
* { scrollbar-width: thin; scrollbar-color: #163a26 transparent; }
.mono { font-family: var(--mono); } .dim { color: var(--dim); } .mute { color: var(--mute); }
.label { font: 400 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }

/* ───────── the screen ───────── */
.screen { position: fixed; inset: 10px; display: flex; flex-direction: column; background: var(--bg); border-radius: 16px; border: 1px solid rgba(125, 255, 176, .12); overflow: hidden; box-shadow: 0 0 0 6px #050806, 0 0 0 7px rgba(125, 255, 176, .05), 0 30px 80px rgba(0, 0, 0, .8), inset 0 0 120px rgba(0, 0, 0, .65); }
.screen::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; background: linear-gradient(rgba(125, 255, 176, .025) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(125, 255, 176, .025) 1px, transparent 1px) 0 0 / 32px 32px; -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 85%); mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 85%); }
.scan { position: absolute; inset: 0; pointer-events: none; z-index: 50; border-radius: inherit; background: repeating-linear-gradient(transparent 0 2px, rgba(0, 0, 0, .14) 2px 3px), radial-gradient(ellipse at 50% 50%, transparent 62%, rgba(0, 0, 0, .45)); }
.scan::after { content: ""; position: absolute; left: 0; right: 0; height: 22%; top: -22%; background: linear-gradient(transparent, rgba(125, 255, 176, .022), transparent); animation: roll 9s linear infinite; }
@keyframes roll { to { top: 100%; } }

/* top bar */
.os-bar { position: relative; z-index: 5; flex: none; display: flex; align-items: stretch; gap: 18px; height: 52px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line2); background: linear-gradient(#071209, #040a07); }
.os-logo { display: flex; align-items: center; gap: 10px; flex: none; }
.os-logo svg { width: 24px; height: 24px; color: var(--hz); filter: drop-shadow(0 0 8px rgba(245, 197, 24, .35)); }
.os-logo b { font: 600 19px/1 var(--hd); letter-spacing: .12em; }
.os-logo span { font: 13px var(--mono); color: var(--ph); letter-spacing: .04em; margin-left: -6px; }
.os-tabs { display: flex; align-items: stretch; gap: 2px; min-width: 0; }
.os-tabs a { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 16px; font: 600 15px/1 var(--hd); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); transition: color .15s, background .15s; white-space: nowrap; }
.os-tabs a i { font: 400 11px var(--mono); font-style: normal; color: var(--mute); letter-spacing: 0; }
.os-tabs a:hover { color: var(--text); background: var(--ph-soft); }
.os-tabs a.on { color: var(--ph); background: linear-gradient(transparent, rgba(125, 255, 176, .07)); text-shadow: var(--ph-glow); }
.os-tabs a.on i { color: var(--ph); }
.os-tabs a.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--ph); box-shadow: 0 0 10px var(--ph); }
.os-tray { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.tray-item { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 32px; font: 12px var(--mono); color: var(--dim); letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 4px; }
.tray-item b { color: var(--hz); font-weight: 400; }
.led { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--mute); display: inline-block; }
.led.ok { background: var(--ph); box-shadow: 0 0 8px var(--ph); }
.led.hz { background: var(--hz); box-shadow: 0 0 8px var(--hz); animation: blink 2.4s steps(1) infinite; }
.led.bad { background: var(--bad); box-shadow: 0 0 8px var(--bad); }
@keyframes blink { 50% { opacity: .35; } }
.key { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 4px; font: 600 14px/1 var(--hd); letter-spacing: .1em; text-transform: uppercase; color: var(--hz-ink); background: var(--hz); box-shadow: 0 0 18px rgba(245, 197, 24, .25); transition: filter .15s; }
.key svg { width: 15px; height: 15px; }
.key:hover { filter: brightness(1.1); }
.key.in { color: var(--ph); background: var(--ph-soft); border: 1px solid var(--line3); box-shadow: none; font: 13px var(--mono); letter-spacing: .04em; text-transform: none; }
.eject { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 4px; font: 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line); }
.eject svg { width: 14px; height: 14px; }
.eject:hover { color: var(--text); border-color: var(--line3); }

/* main + status bar */
main { position: relative; z-index: 1; flex: 1; min-height: 0; overflow: auto; padding: 14px; outline: none; }
.os-status { position: relative; z-index: 5; flex: none; display: flex; align-items: center; gap: 18px; height: 28px; padding: 0 16px; border-top: 1px solid var(--line2); background: #030806; font: 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); white-space: nowrap; overflow: hidden; }
.os-status span { display: flex; align-items: center; gap: 7px; }
.os-status .sp { flex: 1; }
.os-status #st-clock { color: var(--ph); }
.os-status a:hover { color: var(--text); }
.os-status b { color: var(--dim); font-weight: 400; }

/* ───────── windows ───────── */
.win { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--win); border: 1px solid var(--line2); border-radius: var(--r); animation: winin .4s var(--ease) both; }
.win-h { flex: none; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(125, 255, 176, .05), transparent 70%); font: 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.win-h .ttl { color: var(--text); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.win-h .ttl::before { content: ""; width: 6px; height: 6px; background: var(--ph); box-shadow: 0 0 6px var(--ph); }
.win.hzw .win-h .ttl::before { background: var(--hz); box-shadow: 0 0 6px var(--hz); }
.win-h .sp { flex: 1; min-width: 0; }
.win-h .id { color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.win-b { flex: 1; min-height: 0; padding: 16px; }
.win-f { flex: none; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
@keyframes winin { from { opacity: 0; transform: translateY(6px); } }
.win:nth-child(2) { animation-delay: .05s; } .win:nth-child(3) { animation-delay: .1s; } .win:nth-child(4) { animation-delay: .15s; }

/* the dark viewport that holds a live 3D view */
.vp { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #020604; }
.vp:last-child { border-radius: 0 0 var(--r) var(--r); }
.vp::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; z-index: 1; pointer-events: none; background: linear-gradient(transparent, rgba(2, 6, 4, .82)); }
.vp .viewer-gl { position: absolute; inset: 0; width: 100% !important; height: 100% !important; touch-action: none; cursor: grab; }
.vp .viewer-gl:active { cursor: grabbing; }
.vp .ov { position: absolute; z-index: 2; pointer-events: none; }
.vp .ov a, .vp .ov button { pointer-events: auto; }
.vp .tl { top: 14px; left: 16px; } .vp .tr { top: 14px; right: 16px; text-align: right; } .vp .bl { left: 16px; bottom: 16px; right: 16px; } .vp .br { right: 16px; bottom: 16px; text-align: right; }
.vp::after { content: ""; position: absolute; inset: 8px; pointer-events: none; z-index: 1; --k: rgba(125, 255, 176, .4); background: linear-gradient(var(--k), var(--k)) 0 0 / 14px 1px, linear-gradient(var(--k), var(--k)) 0 0 / 1px 14px, linear-gradient(var(--k), var(--k)) 100% 0 / 14px 1px, linear-gradient(var(--k), var(--k)) 100% 0 / 1px 14px, linear-gradient(var(--k), var(--k)) 0 100% / 14px 1px, linear-gradient(var(--k), var(--k)) 0 100% / 1px 14px, linear-gradient(var(--k), var(--k)) 100% 100% / 14px 1px, linear-gradient(var(--k), var(--k)) 100% 100% / 1px 14px; background-repeat: no-repeat; }
.tag { display: inline-flex; align-items: center; gap: 7px; height: 22px; padding: 0 8px; border-radius: 3px; font: 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); background: rgba(2, 8, 5, .75); border: 1px solid var(--line2); white-space: nowrap; }
.tag.ph { color: var(--ph); border-color: rgba(125, 255, 176, .3); }
.tag.hz { color: var(--hz); border-color: rgba(245, 197, 24, .35); }
.tag.bad { color: var(--bad); border-color: rgba(255, 90, 71, .4); background: rgba(30, 6, 4, .8); }
.tag.vi { color: var(--vi); border-color: rgba(179, 155, 255, .35); }
.tag .led { width: 6px; height: 6px; }
a.tag:hover { border-color: currentColor; }

/* LCD readouts */
.lcds { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: #030805; border-radius: 0 0 var(--r) var(--r); }
.lcd { padding: 10px 14px 12px; border-right: 1px solid var(--line); min-width: 0; }
.lcd:last-child { border-right: 0; }
.lcd .label { display: block; margin-bottom: 7px; }
.lcd b { display: block; font: 400 19px/1 var(--seg); color: var(--ph); text-shadow: var(--ph-glow); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcd b.hz { color: var(--hz); text-shadow: 0 0 12px rgba(245, 197, 24, .35); }
.lcd b.txt { font: 17px/1 var(--mono); letter-spacing: .04em; }
.lcd b small { font: 11px var(--mono); color: var(--mute); margin-left: 4px; text-shadow: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 4px; border: 1px solid var(--line3); font: 600 14px/1 var(--hd); letter-spacing: .1em; text-transform: uppercase; color: var(--text); background: var(--raise); transition: background .15s, border-color .15s, filter .15s, color .15s; white-space: nowrap; }
.btn:hover { background: var(--hover); border-color: rgba(125, 255, 176, .4); }
.btn.ph { color: var(--ph); border-color: rgba(125, 255, 176, .45); background: var(--ph-soft); }
.btn.ph:hover { background: rgba(125, 255, 176, .16); }
.btn.hz { color: var(--hz-ink); background: var(--hz); border-color: var(--hz); box-shadow: 0 0 20px rgba(245, 197, 24, .2); }
.btn.hz:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: var(--line2); color: var(--dim); }
.btn.ghost:hover { color: var(--text); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .4; cursor: default; }
.btn svg { width: 15px; height: 15px; }
.spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.seg { display: inline-flex; padding: 2px; gap: 2px; border: 1px solid var(--line2); border-radius: 4px; background: #020604; }
.seg button { height: 24px; padding: 0 11px; border-radius: 3px; font: 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.seg button:hover { color: var(--text); }
.seg button.on { color: var(--ph); background: var(--ph-soft); box-shadow: inset 0 0 0 1px rgba(125, 255, 176, .3); }
.field { width: 100%; height: 40px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--line2); background: #020604; color: var(--text); font: 15px var(--ui); transition: border-color .15s, box-shadow .15s; }
.field::placeholder { color: var(--mute); }
.field:focus { outline: none; border-color: rgba(125, 255, 176, .55); box-shadow: 0 0 0 3px rgba(125, 255, 176, .08); }
.field.mono { font: 16px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
textarea.field { height: 76px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.fs { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fs > label { font: 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.fs > label .mute { letter-spacing: .04em; text-transform: none; }
.err { color: var(--bad); font: 13px var(--mono); }
.err:empty { display: none; }
.empty { display: grid; place-items: center; text-align: center; padding: 48px 20px; gap: 12px; color: var(--dim); }
.empty h3 { font: 600 22px/1.1 var(--hd); letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.empty p { max-width: 40ch; }

/* ───────── 01 · synthesize ───────── */
.synth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 520px); gap: 14px; height: 100%; min-height: 580px; }
.synth .tankw { min-height: 0; }
.tank-name { font: 600 32px/1 var(--hd); letter-spacing: .04em; text-transform: uppercase; text-wrap: balance; }
.tank-name.ph { color: var(--mute); }
.tank-sub { margin-top: 8px; font: 15px var(--mono); color: var(--ph); letter-spacing: .04em; }
.tank-tr { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.wiz { min-height: 0; }
.wiz-tabs { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); }
.wiz-tabs button { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px 11px; text-align: left; border-right: 1px solid var(--line); color: var(--mute); transition: color .15s, background .15s; min-width: 0; }
.wiz-tabs button:last-child { border-right: 0; }
.wiz-tabs button i { font: 11px var(--mono); font-style: normal; letter-spacing: .1em; }
.wiz-tabs button span { font: 600 14px/1 var(--hd); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wiz-tabs button:hover { color: var(--dim); background: var(--ph-soft); }
.wiz-tabs button.done { color: var(--dim); }
.wiz-tabs button.done i::after { content: " ✓"; color: var(--ph); }
.wiz-tabs button.on { color: var(--ph); background: rgba(125, 255, 176, .05); }
.wiz-tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ph); box-shadow: 0 0 8px var(--ph); }
.wiz-b { flex: 1; min-height: 0; overflow: auto; padding: 18px; display: flex; flex-direction: column; }
.sheet { margin-top: auto; padding-top: 18px; }
.sheet .label { display: block; margin-bottom: 8px; }
.sheet-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px dashed var(--line2); border-radius: 5px; overflow: hidden; }
.sheet-g > div { background: #030805; padding: 8px 10px; min-width: 0; }
.sheet-g small { display: block; font: 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.sheet-g b { display: flex; align-items: center; gap: 4px; margin-top: 3px; font: 14px var(--mono); font-weight: 400; color: var(--text); white-space: nowrap; overflow: hidden; text-transform: capitalize; }
.sheet-g b i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); margin-left: 4px; }
.sheet-g b i:first-child { margin-left: 0; }
.pane { display: none; flex-direction: column; gap: 16px; }
.pane.on { display: flex; animation: winin .3s var(--ease) both; }
.pane-h h2 { font: 600 26px/1.05 var(--hd); letter-spacing: .05em; text-transform: uppercase; text-wrap: balance; }
.pane-h p { margin-top: 6px; color: var(--dim); max-width: 52ch; }
.wiz-f { justify-content: space-between; }
.wiz-f .pg { font: 12px var(--mono); color: var(--mute); letter-spacing: .1em; }

/* reagent vials */
.vials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.vial { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 6px 10px; border-radius: 5px; border: 1px solid var(--line); background: #030805; transition: border-color .15s, background .15s, transform .15s; text-align: center; }
.vial:hover { border-color: var(--line3); transform: translateY(-1px); }
.vial .tube { position: relative; width: 20px; height: 44px; border-radius: 3px 3px 10px 10px; border: 1.5px solid rgba(220, 243, 230, .28); overflow: hidden; }
.vial .tube::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: var(--c); opacity: .5; transition: height .35s var(--ease), opacity .2s; }
.vial .sym { font: 600 19px/1 var(--hd); letter-spacing: .02em; }
.vial small { font: 11px/1.25 var(--mono); color: var(--mute); }
.vial.on { border-color: color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 7%, #030805); }
.vial.on .tube { border-color: var(--c); box-shadow: 0 0 14px color-mix(in srgb, var(--c) 45%, transparent); }
.vial.on .tube::before { height: 80%; opacity: 1; }
.vial.on .sym { color: var(--c); }
.vial .ord { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 3px; font: 11px var(--mono); color: #021; background: var(--c); }
.mix { display: flex; gap: 2px; height: 8px; border-radius: 2px; overflow: hidden; background: #030805; border: 1px solid var(--line); }
.mix i { flex: 1; background: var(--c); box-shadow: 0 0 8px var(--c); }
.mix-l { display: flex; justify-content: space-between; gap: 10px; font: 12px var(--mono); color: var(--dim); margin-top: 8px; }

/* structures */
.structs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.struct { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px 12px; border-radius: 5px; border: 1px solid var(--line); background: #030805; color: var(--dim); transition: border-color .15s, color .15s, background .15s; }
.struct svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.struct svg circle { fill: #030805; }
.struct b { font: 600 16px/1 var(--hd); letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.struct small { font: 11.5px var(--mono); color: var(--mute); }
.struct:hover { border-color: var(--line3); }
.struct.on { color: var(--ph); border-color: rgba(125, 255, 176, .5); background: var(--ph-soft); }
.struct.on svg { filter: drop-shadow(0 0 6px rgba(125, 255, 176, .5)); }
.struct.on svg circle { fill: #06140c; }

/* faders */
.fader { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 12px; padding: 14px; border: 1px solid var(--line); border-radius: 5px; background: #030805; }
.fader label { font: 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.fader output { font: 22px/1 var(--seg); color: var(--ph); text-shadow: var(--ph-glow); }
.fader output.hz { color: var(--hz); text-shadow: 0 0 10px rgba(245, 197, 24, .35); }
.fader input { grid-column: 1 / -1; }
.fader small { grid-column: 1 / -1; color: var(--mute); font-size: 13px; }
.fader .ticks { grid-column: 1 / -1; display: flex; justify-content: space-between; font: 10.5px var(--mono); color: var(--mute); margin-top: -4px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; --p: 50%; --c: var(--ph); }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 1px; background: linear-gradient(90deg, var(--c) var(--p), #0c1a12 var(--p)); box-shadow: inset 0 0 0 1px var(--line); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 1px; background: #0c1a12; }
input[type=range]::-moz-range-progress { height: 6px; background: var(--c); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 24px; margin-top: -9px; border-radius: 2px; background: linear-gradient(#e7f5ec, #9bb2a5); border: 1px solid #020604; box-shadow: 0 0 0 1px var(--line3), 0 2px 6px rgba(0, 0, 0, .6); }
input[type=range]::-moz-range-thumb { width: 14px; height: 24px; border-radius: 2px; background: linear-gradient(#e7f5ec, #9bb2a5); border: 1px solid #020604; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
details.more summary { cursor: pointer; font: 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+ "; color: var(--ph); }
details.more[open] summary::before { content: "− "; }
details.more[open] summary { margin-bottom: 12px; }
details.more .fs + .fs { margin-top: 10px; }
.parent { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid rgba(179, 155, 255, .35); background: rgba(179, 155, 255, .06); border-radius: 5px; }
.parent img { width: 44px; height: 44px; border-radius: 4px; }
.parent b { font: 600 16px var(--hd); letter-spacing: .06em; text-transform: uppercase; }
.parent .btn { margin-left: auto; }

/* launch pane */
.buys { display: flex; flex-wrap: wrap; gap: 6px; }
.buys button { height: 34px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--line2); font: 13px var(--mono); color: var(--dim); background: #030805; }
.buys button:hover { color: var(--text); border-color: var(--line3); }
.buys button.on { color: var(--ph); border-color: rgba(125, 255, 176, .5); background: var(--ph-soft); }
.buys input { width: 96px; height: 34px; padding: 0 10px; border-radius: 4px; border: 1px solid var(--line2); background: #030805; font: 13px var(--mono); }
.buys input:focus { outline: none; border-color: rgba(125, 255, 176, .5); }
.manifest { border: 1px solid var(--line); border-radius: 5px; background: #030805; }
.manifest > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.manifest > div:last-child { border-bottom: 0; }
.manifest dt { color: var(--dim); }
.manifest dd { font: 13.5px var(--mono); text-align: right; }
.splitbar { display: flex; height: 28px; border-radius: 4px; overflow: hidden; font: 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.splitbar i { display: flex; align-items: center; padding: 0 10px; font-style: normal; white-space: nowrap; min-width: 0; }
.splitbar .you { background: rgba(125, 255, 176, .14); color: var(--ph); border: 1px solid rgba(125, 255, 176, .35); border-right: 0; border-radius: 4px 0 0 4px; }
.splitbar .rx { background: repeating-linear-gradient(-45deg, var(--hz) 0 8px, #2a2104 8px 16px); justify-content: flex-end; border-radius: 0 4px 4px 0; }
.splitbar .rx b { background: var(--hz); color: var(--hz-ink); padding: 2px 6px; border-radius: 2px; font-weight: 400; }
.ignite { position: relative; flex: none; height: 56px; width: 100%; border-radius: 5px; overflow: hidden; font: 600 20px/1 var(--hd); letter-spacing: .16em; text-transform: uppercase; color: var(--hz-ink); background: var(--hz); box-shadow: 0 0 0 4px #020604, 0 0 0 5px rgba(245, 197, 24, .5), 0 0 30px rgba(245, 197, 24, .25); transition: filter .15s, transform .1s; }
.ignite::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(0, 0, 0, .13) 0 10px, transparent 10px 20px); background-size: 28px 28px; animation: hazard 1.2s linear infinite; }
.ignite span { position: relative; }
.ignite:hover { filter: brightness(1.08); }
.ignite:active { transform: translateY(1px); }
.ignite.off { color: var(--ph); background: var(--ph-soft); box-shadow: 0 0 0 4px #020604, 0 0 0 5px rgba(125, 255, 176, .35); }
.ignite.off::before { display: none; }
@keyframes hazard { to { background-position: 28px 0; } }

/* ───────── 02 · registry ───────── */
.reg { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, 1fr); gap: 14px; }
.reg .topw { grid-row: span 2; min-height: 440px; }
.reg .idx { grid-column: 1 / -1; }
.top-name { font: 600 40px/1 var(--hd); letter-spacing: .03em; text-transform: uppercase; text-wrap: balance; }
.top-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.top-row .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.top-mc { font: 400 26px/1 var(--seg); color: var(--ph); text-shadow: var(--ph-glow); }
.fuelw .win-b { display: flex; flex-direction: column; gap: 12px; }
.big-seg { font: 400 40px/1 var(--seg); color: var(--hz); text-shadow: 0 0 16px rgba(245, 197, 24, .35); }
.big-seg small { font: 13px var(--mono); color: var(--mute); text-shadow: none; margin-left: 6px; }
.meter { height: 8px; border-radius: 1px; background: #0c1a12; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.meter i { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--hz) 0 6px, transparent 6px 8px); filter: drop-shadow(0 0 4px rgba(245, 197, 24, .5)); }
.feed { display: flex; flex-direction: column; font: 13px var(--mono); }
.feed > * { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.feed > *:last-child { border-bottom: 0; }
.feed .k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.feed .synth .k, .feed .buyback .k { color: var(--hz); } .feed .derive .k { color: var(--vi); } .feed .buy .k { color: var(--ph); }
.feed b { font-weight: 400; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .t { color: var(--mute); font-size: 11.5px; }
.feed a:hover b { color: var(--ph); }
.feed .none { display: block; color: var(--mute); }
.idx-tools { display: flex; gap: 8px; align-items: center; text-transform: none; letter-spacing: 0; }
.search { height: 26px; width: 220px; padding: 0 10px; border-radius: 4px; border: 1px solid var(--line2); background: #020604; font: 13px var(--mono); }
.search:focus { outline: none; border-color: rgba(125, 255, 176, .5); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.tile { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 5px; background: #030805; overflow: hidden; transition: border-color .15s, transform .2s var(--ease); }
.tile:hover { border-color: rgba(125, 255, 176, .4); transform: translateY(-2px); }
.tile .im { position: relative; aspect-ratio: 1; background: #020604; overflow: hidden; border-bottom: 1px solid var(--line); }
.tile .im img { width: 100%; height: 100%; object-fit: cover; }
.tile .im .tag { position: absolute; top: 8px; left: 8px; z-index: 2; }
.tile .im .no { position: absolute; top: 10px; right: 10px; z-index: 2; font: 11px var(--mono); color: var(--mute); }
.tile .bd { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; }
.tile .row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; min-width: 0; }
.tile .nm { font: 600 17px/1.1 var(--hd); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .tk { font: 12px var(--mono); color: var(--hz); flex: none; }
.tile .fm { font: 12px var(--mono); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .mc { font: 13px var(--mono); color: var(--ph); flex: none; }
.tile .bar { height: 3px; margin-top: 6px; background: #0c1a12; border-radius: 1px; overflow: hidden; }
.tile .bar i { display: block; height: 100%; background: var(--ph); box-shadow: 0 0 6px var(--ph); }
.tile.unstable { opacity: .6; }
.tile.unstable .nm { text-decoration: line-through; text-decoration-color: var(--bad); }
.live3d { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .35s; }
.live3d.on { opacity: 1; }
.live3d .viewer-gl { width: 100% !important; height: 100% !important; }

/* ───────── compound file ───────── */
.file { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 14px; align-items: start; }
.file-l { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-content: start; }
.file-l .tankw { grid-column: 1 / -1; height: min(64vh, 580px); min-height: 380px; }
.file-r { display: flex; flex-direction: column; gap: 14px; }
.kv { display: grid; grid-template-columns: auto 1fr; font-size: 13.5px; }
.kv dt, .kv dd { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.kv dt { color: var(--dim); padding-right: 16px; }
.kv dd { font-family: var(--mono); text-align: right; overflow-wrap: anywhere; }
.kv > :nth-last-child(-n+2) { border-bottom: 0; }
.verify { display: flex; gap: 14px; align-items: flex-start; }
.lamp { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 600 17px var(--hd); }
.lamp.ok { color: #021; background: radial-gradient(circle at 40% 35%, #c9ffe0, var(--ph) 55%, #2c8f5a); box-shadow: 0 0 18px rgba(125, 255, 176, .55); }
.lamp.bad { color: #210402; background: radial-gradient(circle at 40% 35%, #ffd0c8, var(--bad) 55%, #8f2a1f); box-shadow: 0 0 18px rgba(255, 90, 71, .55); animation: blink 1.4s steps(1) infinite; }
.verify p { color: var(--dim); font-size: 13.5px; }
.verify p b { color: var(--text); font-weight: 500; }
.pipes { display: flex; align-items: center; flex-wrap: wrap; row-gap: 8px; }
.pipes span { padding: 6px 10px; border: 1px solid var(--line3); border-radius: 4px; font: 13px var(--mono); background: #030805; }
.pipes span:last-child { color: var(--hz); border-color: rgba(245, 197, 24, .45); }
.pipes em { position: relative; width: 28px; height: 2px; background: var(--line3); overflow: hidden; }
.pipes em::after { content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 100%; background: var(--ph); box-shadow: 0 0 6px var(--ph); animation: pipe 1.4s linear infinite; }
@keyframes pipe { to { left: 100%; } }
.txt { color: var(--dim); font-size: 13.5px; }
.txt + .txt, .pipes + .txt { margin-top: 10px; }
.dispense .win-b { display: flex; flex-direction: column; gap: 12px; }
.amt { display: flex; align-items: center; height: 56px; padding: 0 14px; border-radius: 5px; border: 1px solid var(--line2); background: #020604; }
.amt:focus-within { border-color: rgba(125, 255, 176, .5); }
.amt input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: 400 24px var(--seg); color: var(--ph); outline: none; }
.amt input::placeholder { color: #173524; }
.amt span { font: 13px var(--mono); color: var(--dim); }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.quick button { height: 28px; padding: 0 10px; border-radius: 4px; border: 1px solid var(--line2); font: 12px var(--mono); color: var(--dim); }
.quick button:hover { color: var(--text); border-color: var(--line3); }
.est { display: flex; justify-content: space-between; font-size: 13px; color: var(--dim); padding: 8px 0 0; border-top: 1px dashed var(--line); }
.est b { font: 13px var(--mono); color: var(--text); font-weight: 400; }
.actions { display: flex; flex-direction: column; gap: 8px; }
.kids { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.kids .tile .nm { font-size: 15px; }

/* ───────── 03 · reactor ───────── */
.rx { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: 14px; }
.rx .corew { min-height: 480px; }
.rx-r { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.gauge { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: center; }
.gauge svg { width: 150px; height: 150px; }
.gauge .ring-bg { fill: none; stroke: #0c1a12; stroke-width: 10; }
.gauge .ring { fill: none; stroke: var(--hz); stroke-width: 10; filter: drop-shadow(0 0 6px rgba(245, 197, 24, .5)); transition: stroke-dashoffset 1.4s var(--ease); }
.gauge .tk { stroke: rgba(125, 255, 176, .3); stroke-width: 1; }
.gauge text { fill: var(--text); font: 22px var(--seg); }
.gauge text.l { fill: var(--mute); font: 10px var(--mono); letter-spacing: .14em; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.stats3 > div { background: #030805; padding: 10px 12px; min-width: 0; }
.stats3 b { display: block; margin-top: 6px; font: 18px/1 var(--seg); color: var(--ph); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow svg { width: 100%; height: auto; display: block; }
.flow .box { fill: #030805; stroke: var(--line3); }
.flow .box.y { stroke: rgba(125, 255, 176, .55); } .flow .box.z { stroke: rgba(245, 197, 24, .6); }
.flow text { fill: var(--dim); font: 13px var(--mono); }
.flow text.h { fill: var(--text); font: 600 17px var(--hd); letter-spacing: .08em; }
.flow .wire { fill: none; stroke-dasharray: 5 7; animation: wire .8s linear infinite; }
@keyframes wire { to { stroke-dashoffset: -12; } }
.full { grid-column: 1 / -1; }
.log table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.log th { text-align: left; font: 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 400; padding: 0 12px 8px 0; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.log td { padding: 9px 12px 9px 0; border-bottom: 1px dashed var(--line); font-family: var(--mono); white-space: nowrap; }
.log tr:last-child td { border-bottom: 0; }
.log a { color: var(--hz); }
.scroll-x { overflow-x: auto; }

/* ───────── 04 · protocol ───────── */
.proto { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 14px; align-items: start; }
.toc { position: sticky; top: 0; }
.toc .win-b { padding: 8px; display: flex; flex-direction: column; }
.toc a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 4px; font: 13px var(--mono); color: var(--dim); }
.toc a i { font-style: normal; color: var(--mute); }
.toc a:hover, .toc a.on { color: var(--ph); background: var(--ph-soft); }
.manual .win-b { padding: 6px 26px 24px; }
.sec { padding: 22px 0; border-bottom: 1px dashed var(--line2); display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 6px 16px; scroll-margin-top: 10px; }
.sec:last-child { border-bottom: 0; }
.sec .n { grid-row: span 2; font: 400 26px/1 var(--seg); color: var(--ph); text-shadow: var(--ph-glow); padding-top: 2px; }
.sec h3 { font: 600 24px/1.1 var(--hd); letter-spacing: .06em; text-transform: uppercase; }
.sec p { color: var(--dim); max-width: 66ch; font-size: 15px; line-height: 1.6; }
.manual .lead { padding: 20px 0 8px; color: var(--dim); max-width: 66ch; font-size: 15px; line-height: 1.6; }
.manual .lead b { color: var(--text); font-weight: 500; }

/* ───────── modal, toasts, boot ───────── */
.modal-bg { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(0, 3, 1, .74); backdrop-filter: blur(3px); animation: fade .2s both; }
.modal { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: var(--r); border: 1px solid var(--line3); background: var(--win); box-shadow: 0 30px 80px rgba(0, 0, 0, .7); animation: winin .3s var(--ease) both; }
.modal .win-h { position: sticky; top: 0; background: #06100a; z-index: 1; }
.modal .mb { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.modal .mb h3 { font: 600 22px/1.1 var(--hd); letter-spacing: .06em; text-transform: uppercase; }
.modal .x { margin-left: auto; width: 26px; height: 26px; border-radius: 3px; color: var(--dim); font: 14px var(--mono); }
.modal .x:hover { color: var(--text); background: var(--ph-soft); }
@keyframes fade { from { opacity: 0; } }
.wallet-opt { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--line2); background: #030805; text-align: left; font: 15px var(--ui); }
.wallet-opt:hover { border-color: rgba(125, 255, 176, .45); background: var(--ph-soft); }
.wallet-opt img { width: 24px; height: 24px; border-radius: 5px; }
.prog { display: flex; flex-direction: column; font: 13.5px var(--mono); }
.prog .s { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); color: var(--mute); }
.prog .s:last-child { border-bottom: 0; }
.prog .s i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; }
.prog .s small { font-size: 12px; color: var(--mute); }
.prog .s.run { color: var(--text); } .prog .s.run i { border-color: var(--hz); border-right-color: transparent; animation: spin .8s linear infinite; }
.prog .s.ok { color: var(--dim); } .prog .s.ok i { border-color: var(--ph); background: var(--ph); box-shadow: 0 0 6px var(--ph); }
.prog .s.bad { color: var(--bad); } .prog .s.bad i { border-color: var(--bad); background: var(--bad); }
.done:empty { display: none; }
.done p { color: var(--dim); } .done p b { color: var(--ph); font-weight: 500; }
.done .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.toasts { position: fixed; right: 26px; bottom: 48px; z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { max-width: 360px; padding: 10px 14px; border-radius: 4px; border: 1px solid rgba(125, 255, 176, .4); background: #04100a; font: 13px var(--mono); color: var(--ph); box-shadow: 0 10px 30px rgba(0, 0, 0, .6); animation: winin .25s var(--ease) both; }
.toast::before { content: "> "; color: var(--mute); }
.toast.bad { color: var(--bad); border-color: rgba(255, 90, 71, .45); background: #140504; }
.bootlog { display: none; }
.boot .bootlog { display: flex; position: absolute; inset: 0; z-index: 60; flex-direction: column; justify-content: flex-end; padding: 28px; background: #010402; font: 14px/1.75 var(--mono); color: var(--ph); text-shadow: var(--ph-glow); border-radius: inherit; animation: bootout .45s ease 1.6s forwards; }
.bootlog .dim { color: var(--mute); text-shadow: none; }
.bootlog .hz { color: var(--hz); }
@keyframes bootout { to { opacity: 0; visibility: hidden; } }
.crt-on { position: fixed; inset: 0; z-index: 999; pointer-events: none; display: none; background: #000; }
.from-lab .crt-on { display: block; animation: crt-bg 1.1s ease forwards; }
.from-lab .crt-on::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: #d8ffe9; box-shadow: 0 0 30px 8px rgba(157, 255, 200, .6); transform: scaleX(0); animation: crt-line 1.1s cubic-bezier(.2, .7, .1, 1) forwards; }
@keyframes crt-line { 0% { transform: scaleX(0); opacity: 1; } 35% { transform: scaleX(1); height: 2px; opacity: 1; } 70% { top: 0; height: 100%; margin-top: 0; opacity: .25; } 100% { top: 0; height: 100%; margin-top: 0; opacity: 0; } }
@keyframes crt-bg { 0%, 45% { background: #000; } 100% { background: transparent; } }

/* ───────── responsive ───────── */
@media (max-width: 1240px) {
  .os-tabs a i { display: none; }
  .os-tabs a { padding: 0 12px; }
  .tray-item { display: none; }
  .synth { grid-template-columns: minmax(0, 1fr) minmax(380px, 460px); }
}
@media (max-width: 920px) {
  body { overflow: auto; }
  .screen { position: relative; inset: auto; min-height: 100vh; min-height: 100dvh; border-radius: 0; border: 0; box-shadow: none; overflow: visible; }
  .screen::before { position: fixed; }
  .scan { position: fixed; border-radius: 0; }
  .os-bar { position: sticky; top: 0; flex-wrap: wrap; height: auto; gap: 0; padding: 0; }
  .os-logo { height: 48px; padding-left: 16px; }
  .os-tray { height: 48px; padding-right: 12px; }
  .os-tabs { order: 3; width: 100%; overflow-x: auto; border-top: 1px solid var(--line); scrollbar-width: none; }
  .os-tabs a { flex: 1; justify-content: center; height: 42px; padding: 0 10px; }
  main { overflow: visible; padding: 12px 16px; }
  .synth, .reg, .file, .file-l, .rx, .proto { grid-template-columns: minmax(0, 1fr); }
  .synth { height: auto; min-height: 0; }
  .synth .tankw { height: 56vh; min-height: 340px; }
  .reg .topw { grid-row: auto; min-height: 380px; }
  .file-l .tankw { height: 54vh; min-height: 320px; }
  .rx .corew { min-height: 340px; height: 50vh; }
  .toc { position: static; }
  .toc .win-b { flex-direction: row; overflow-x: auto; }
  .toc a { white-space: nowrap; }
  .os-status { position: sticky; bottom: 0; }
  .os-status .hide-sm, #st-links, #st-core { display: none; }
  .toasts { right: 16px; bottom: 40px; left: 16px; align-items: stretch; }
  .toast { max-width: none; }
}
@media (max-width: 560px) {
  .os-logo span { display: none; }
  .eject span { display: none; }
  .os-tabs a { font-size: 13px; padding: 0 4px; letter-spacing: .05em; }
  .lcds { grid-template-columns: repeat(2, 1fr); }
  .lcd:nth-child(2) { border-right: 0; }
  .lcd:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .vials { gap: 6px; }
  .vial small { display: none; }
  .structs { grid-template-columns: repeat(2, 1fr); }
  .two { grid-template-columns: 1fr; }
  .wiz-tabs button { padding: 9px 6px; }
  .wiz-tabs button span { font-size: 12px; letter-spacing: .04em; }
  .wiz-b { padding: 14px; }
  .tank-name { font-size: 24px; }
  .top-name { font-size: 30px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .gauge { grid-template-columns: 1fr; justify-items: center; }
  .idx .win-h { height: auto; flex-wrap: wrap; padding: 8px 12px; row-gap: 8px; }
  .idx-tools { width: 100%; flex-wrap: wrap; }
  .search { flex: 1; width: auto; min-width: 0; }
  .sec { grid-template-columns: 1fr; }
  .sec .n { grid-row: auto; }
  .manual .win-b { padding: 4px 16px 16px; }
  .os-status { gap: 12px; }
  .os-status span:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}
