/* omnious. — Elysium palette (warm paper, ink, deep teal, sky) on a desk-and-bench layout.
   Light is "lamp on"; dark is Elysium night. Fonts: DM Sans (variable, 100–1000) and Geist Mono. */
@import url("/fonts/fonts.css");

html[data-theme=light], :root {
  color-scheme: light;
  --bg: #efede8;
  --fg: #18181b;
  --dim: #55585b;
  --faint: #8a8c8d;
  --line: #18181b1c;
  --panel: #f8f7f4;
  --glass: #f8f7f4cc;
  --edge: #18181b24;
  --accent: #2d7388;
  --accent-2: #34b7dd;
  --ok: #2f6b46;
  --warn: #946414;
  --err: #a33a2e;
  --fg-strong: #0c0c0e;
  --hover: #18181b09;
  --press: #18181b11;
  --line-strong: #18181b38;
  --accent-soft: #2d73881f;
  --accent-ink: #f8f7f4;
  --shadow: 0 30px 80px -40px #1e4d5a55;
  --scene-a: #f6f4ef;
  --scene-b: #dcd9d1;
}
html[data-theme=dark] {
  color-scheme: dark;
  --bg: #04181c;
  --fg: #e6eeee;
  --dim: #9db1b3;
  --faint: #62797c;
  --line: #e6eeee1c;
  --panel: #072227;
  --glass: #072227cc;
  --edge: #e6eeee24;
  --accent: #6fcde8;
  --accent-2: #34b7dd;
  --ok: #7fc79a;
  --warn: #e7b45a;
  --err: #ef7d6f;
  --fg-strong: #f6fbfb;
  --hover: #e6eeee0d;
  --press: #e6eeee14;
  --line-strong: #e6eeee38;
  --accent-soft: #6fcde824;
  --accent-ink: #04181c;
  --shadow: 0 30px 80px -30px #000c;
  --scene-a: #0b2a30;
  --scene-b: #031114;
}
:root {
  --font: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --r: 4px;
  --r-pill: 999px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --t: .18s;
  --gutter: clamp(20px, 3.4vw, 56px);
  --header-h: 64px;
  --side-w: 248px;
  --maxw: 1520px;
}

*, :before, :after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg) }
body { background: var(--bg); min-height: 100svh; color: var(--fg); font: 400 14px/1.55 var(--font); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; margin: 0; overflow-x: hidden; transition: background .6s var(--ease), color .6s var(--ease) }
img, video { max-width: 100%; display: block }
svg { flex-shrink: 0; display: block }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit }
button { cursor: pointer; background: 0 0; border: 0; padding: 0 }
a { color: inherit; text-decoration: none }
h1, h2, h3, h4, p { margin: 0 }
ul, ol { margin: 0; padding: 0; list-style: none }
::selection { background: var(--accent); color: var(--accent-ink) }
:focus { outline: none }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; border-radius: 2px }
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent }
[hidden] { display: none !important }
code { font-family: var(--mono); font-size: .92em }

.eyebrow { font: 500 10px/1.2 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--dim) }
.mono { font-family: var(--mono); font-feature-settings: "zero" }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums }
.dot { color: var(--accent) }
.dim { color: var(--dim) }
.faint { color: var(--faint) }
.ok { color: var(--ok) }
.warn { color: var(--warn) }
.err { color: var(--err) }
.small { font-size: 12.5px }
.sr-only { clip: rect(0 0 0 0); white-space: nowrap; width: 1px; height: 1px; position: absolute; overflow: hidden }
.break { word-break: break-all }
@media (prefers-reduced-motion: reduce) { *, :before, :after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important } }
html[data-motion=off] *, html[data-motion=off] :before, html[data-motion=off] :after { transition: none !important; animation: none !important }

/* ---------------------------------------------------------------- buttons */
.btn { --h: 40px; height: var(--h); border-radius: var(--r); font: 500 13.5px/1 var(--font); letter-spacing: -.005em; white-space: nowrap; transition: background var(--t), border-color var(--t), color var(--t), opacity var(--t); user-select: none; border: 1px solid #0000; justify-content: center; align-items: center; gap: 9px; padding: 0 16px; display: inline-flex }
.btn-sm { --h: 32px; gap: 7px; padding: 0 12px; font-size: 12.5px }
.btn-lg { --h: 50px; padding: 0 22px; font-size: 15px }
.btn-block { width: 100% }
.btn:disabled { opacity: .45; cursor: not-allowed }
.btn.is-busy { opacity: .8; cursor: progress }
.btn-primary { background: var(--fg); color: var(--bg) }
.btn-primary:hover:not(:disabled) { background: var(--fg-strong) }
.btn-accent { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff; border-color: color-mix(in srgb, var(--accent) 70%, #000) }
html[data-theme=dark] .btn-accent { color: var(--accent-ink) }
.btn-accent:hover:not(:disabled) { filter: brightness(1.06) }
.btn-ghost { border-color: var(--edge); color: var(--fg) }
.btn-ghost:hover:not(:disabled) { background: var(--hover); border-color: var(--line-strong) }
.btn-quiet { color: var(--dim); padding: 0 10px }
.btn-quiet:hover:not(:disabled) { color: var(--fg); background: var(--hover) }
.btn-danger { border-color: color-mix(in srgb, var(--err) 45%, transparent); color: var(--err) }
.btn-danger:hover:not(:disabled) { background: color-mix(in srgb, var(--err) 10%, transparent) }
.btn-link { height: auto; color: var(--fg); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; border: 0; padding: 0 }
.btn-link:hover:not(:disabled) { text-decoration-color: var(--accent) }
.btn-trail { transition: transform var(--t) var(--ease) }
.btn:hover:not(:disabled) .btn-trail { transform: translate(2px, -1px) }
.icon-btn { border-radius: var(--r); width: 30px; height: 30px; color: var(--dim); transition: color var(--t), background var(--t); flex: none; place-items: center; display: inline-grid }
.icon-btn:hover { color: var(--fg); background: var(--hover) }
.link-arrow { color: var(--fg); white-space: nowrap; align-items: center; gap: 6px; font-size: 13px; display: inline-flex }
.link-arrow:hover { color: var(--accent) }
a.inline, .prose a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px }
a.inline:hover, .prose a:hover { text-decoration-color: var(--accent) }

/* ---------------------------------------------------------------- panels, rows, tabs */
.panel { border-top: 1px solid var(--line); padding: 26px 0 }
.panel:first-child { border-top: 0; padding-top: 0 }
.panel-inset { border: 1px solid var(--line); border-radius: var(--r); background: color-mix(in srgb, var(--bg) 40%, transparent); padding: 20px }
.panel-head { justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; display: flex }
.panel-title { font: 500 18px/1.25 var(--font); letter-spacing: -.02em }
.panel-lede { color: var(--dim); max-width: 62ch; margin-bottom: 18px; font-size: 14px }
.panel > * + * { margin-top: 16px }
.panel > .panel-head + *, .panel > .panel-lede + * { margin-top: 0 }
.rows { border-top: 1px solid var(--line) }
.row { border-bottom: 1px solid var(--line); justify-content: space-between; align-items: center; gap: 20px; min-height: 46px; padding: 11px 0; display: flex }
.row-label { color: var(--dim); flex-direction: column; font-size: 13.5px; display: flex }
.row-label small { color: var(--faint); font-size: 12px }
.row-value { text-align: right; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; font-size: 13.5px; display: flex }
.row-value.mono { font-size: 12.5px }
.row-text { text-overflow: ellipsis; white-space: nowrap; overflow: hidden }
.row-strong { font-size: 15px; font-weight: 500 }
.tabs { border-bottom: 1px solid var(--line); scrollbar-width: none; gap: 26px; display: flex; overflow-x: auto }
.tabs::-webkit-scrollbar { display: none }
.tab { color: var(--dim); white-space: nowrap; transition: color var(--t); align-items: center; gap: 8px; padding: 12px 0 13px; font-size: 13.5px; display: inline-flex; position: relative }
.tab:hover, .tab[aria-selected=true] { color: var(--fg) }
.tab:after { content: ""; background: var(--accent); transform-origin: 0; height: 1px; transition: transform .35s var(--ease); position: absolute; bottom: -1px; left: 0; right: 0; transform: scaleX(0) }
.tab[aria-selected=true]:after { transform: scaleX(1) }
.tab-body { padding-top: 22px }
.seg { border: 1px solid var(--edge); border-radius: var(--r); scrollbar-width: none; align-self: flex-start; gap: 2px; width: max-content; max-width: 100%; padding: 3px; display: inline-flex; overflow-x: auto }
.seg-item { color: var(--dim); white-space: nowrap; transition: background var(--t), color var(--t); border-radius: 2px; padding: 7px 14px; font-size: 13px }
.seg-sm .seg-item { padding: 5px 10px; font-size: 12px }
.seg-item:hover { color: var(--fg) }
.seg-item[aria-checked=true] { background: var(--press); color: var(--fg); box-shadow: inset 0 0 0 1px var(--edge) }

/* ---------------------------------------------------------------- forms */
.field { flex-direction: column; gap: 8px; display: flex }
.field-top { justify-content: space-between; align-items: baseline; gap: 12px; display: flex }
.field-label { color: var(--dim); font-size: 13px }
.field-aside { color: var(--dim); font-size: 12px }
.field-aside button { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px }
.field-hint { color: var(--faint); font-size: 12px }
.field-error { color: var(--err); font-size: 12.5px }
.input { border: 1px solid var(--edge); border-radius: var(--r); background: color-mix(in srgb, var(--bg) 55%, transparent); width: 100%; height: 44px; transition: border-color var(--t), background var(--t); padding: 0 14px; font-size: 14px }
.input.mono { font-size: 13px }
.input::placeholder { color: var(--faint) }
.input:hover { border-color: var(--line-strong) }
.input:focus { border-color: color-mix(in srgb, var(--fg) 55%, transparent); outline: none }
.input[aria-invalid=true] { border-color: color-mix(in srgb, var(--err) 60%, transparent) }
textarea.input { resize: vertical; height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.5 }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px }
.input-wrap { display: flex; position: relative }
.input-wrap .input { padding-right: 70px }
.input-addon { color: var(--dim); font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; border-radius: 2px; padding: 0 10px; position: absolute; top: 6px; bottom: 6px; right: 6px }
.input-addon:hover { color: var(--fg); background: var(--hover) }
.asset-picker { flex-wrap: wrap; gap: 8px; display: flex }
.chip { border: 1px solid var(--edge); border-radius: var(--r); height: 44px; font: 500 12.5px/1 var(--mono); letter-spacing: .02em; color: var(--dim); transition: border-color var(--t), color var(--t), background var(--t); align-items: center; gap: 8px; padding: 0 14px 0 10px; display: inline-flex }
.chip:hover { color: var(--fg); border-color: var(--line-strong) }
.chip[aria-checked=true] { color: var(--fg); border-color: color-mix(in srgb, var(--fg) 50%, transparent); background: var(--press) }
.asset-glyph { width: 20px; height: 20px; font: 600 9.5px/1 var(--mono); opacity: .85; border: 1px solid; border-radius: 50%; place-items: center; display: inline-grid }
.asset-amount { font-size: 15px !important }
.inline-row > .asset-amount, .asset-picker .asset-amount { flex: 140px; min-width: 120px }
.copyfield { border: 1px solid var(--edge); border-radius: var(--r); background: color-mix(in srgb, var(--bg) 55%, transparent); align-items: center; gap: 4px; min-height: 44px; padding: 6px 6px 6px 14px; display: flex }
.copyfield-text { word-break: break-all; flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.5 }
.copyfield.is-hidden .copyfield-text { color: var(--faint); letter-spacing: .1em; white-space: nowrap; overflow: hidden }
.check { cursor: pointer; align-items: flex-start; gap: 10px; font-size: 13.5px; display: flex }
.check input { accent-color: var(--accent); margin-top: 3px }
.inline-row { flex-wrap: wrap; align-items: center; gap: 10px; display: flex }
.inline-row > .input { flex: 200px; width: auto }
.stack { flex-direction: column; gap: 14px; display: flex }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr } }
.qr { flex-direction: column; gap: 10px; margin: 0; display: flex; max-width: 220px }
.qr svg { border-radius: var(--r); background: #f8f7f4; width: 100%; height: auto; padding: 10px }
.qr figcaption { color: var(--faint); text-align: center; font-size: 12px }

/* ---------------------------------------------------------------- tags, notices, findings */
.tag { border: 1px solid var(--edge); height: 18px; color: var(--dim); font: 500 9px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; border-radius: 2px; align-items: center; padding: 0 6px; display: inline-flex }
.tag-accent { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent) }
.tag-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent) }
.tag-warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent) }
.tag-err { color: var(--err); border-color: color-mix(in srgb, var(--err) 45%, transparent) }
.live-dot { background: var(--accent); vertical-align: middle; border-radius: 50%; width: 6px; height: 6px; margin-right: 2px; animation: 2.4s ease-in-out infinite live; display: inline-block }
@keyframes live { 0%, to { opacity: 1 } 50% { opacity: .35 } }
.spinner { border: 1.5px solid; border-right-color: #0000; border-radius: 50%; flex: none; width: 14px; height: 14px; animation: .8s linear infinite spin; display: inline-block }
@keyframes spin { to { transform: rotate(360deg) } }
.notice { border: 1px solid var(--line); border-left: 2px solid var(--line-strong); border-radius: var(--r); background: color-mix(in srgb, var(--bg) 35%, transparent); color: var(--fg); align-items: flex-start; gap: 12px; padding: 13px 16px; font-size: 13.5px; display: flex }
.notice-icon { color: var(--dim); flex: none; margin-top: 2px }
.notice-body { flex: 1; min-width: 0 }
.notice-body strong { margin-bottom: 2px; font-weight: 500; display: block }
.notice-body div { color: var(--dim) }
.notice-ok { border-left-color: var(--ok) } .notice-ok .notice-icon { color: var(--ok) }
.notice-warn { border-left-color: var(--warn) } .notice-warn .notice-icon { color: var(--warn) }
.notice-err { border-left-color: var(--err) } .notice-err .notice-icon { color: var(--err) } .notice-err .notice-body div { color: var(--fg) }
.notice-accent { border-left-color: var(--accent) } .notice-accent .notice-icon { color: var(--accent) }
.notice-action { flex: none; align-self: center }
.finding { border-bottom: 1px solid var(--line); grid-template-columns: 74px 1fr; gap: 14px; padding: 12px 0; font-size: 13.5px; display: grid }
.finding-tag { font: 500 9px/1 var(--mono); letter-spacing: .16em; border: 1px solid; border-radius: 2px; place-self: start; margin-top: 1px; padding: 3px 6px }
.finding-ok .finding-tag { color: var(--ok) }
.finding-watch .finding-tag { color: var(--dim) }
.finding-warn .finding-tag { color: var(--warn) }
.finding-danger .finding-tag { color: var(--err) }
.finding-title { font-weight: 500 }
.finding-body { color: var(--dim); margin-top: 2px }
.finding-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap }
.disclosure { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line) }
.disclosure + .disclosure { border-top: 0 }
.disclosure summary { cursor: pointer; color: var(--fg); justify-content: space-between; align-items: center; gap: 12px; padding: 15px 0; font-size: 13.5px; list-style: none; display: flex }
.disclosure summary::-webkit-details-marker { display: none }
.disclosure-chev { color: var(--dim); transition: transform .3s var(--ease) }
.disclosure[open] .disclosure-chev { transform: rotate(180deg) }
.disclosure-grid { grid-template-columns: 1fr 1fr; gap: 28px; padding: 4px 0 20px; display: grid }
.disclosure-grid .eyebrow { margin-bottom: 10px }
.disclosure-notes { color: var(--dim); padding: 0 0 18px; font-size: 13.5px }
.disclosure-notes > * + * { margin-top: 10px }
.ticks li { color: var(--fg); padding: 5px 0 5px 20px; font-size: 13.5px; line-height: 1.5; position: relative }
.ticks li:before { content: ""; background: var(--ok); width: 9px; height: 1px; position: absolute; top: 12px; left: 2px }
.ticks-no li { color: var(--dim) }
.ticks-no li:before { background: var(--faint) }
.rules { border-top: 1px solid var(--line) }
.rules li { border-bottom: 1px solid var(--line); padding: 13px 0 13px 18px; position: relative; color: var(--dim); font-size: 13.5px }
.rules li:before { content: "–"; position: absolute; left: 2px; color: var(--faint) }
.rules strong { color: var(--fg); font-weight: 500 }
.steps li { border-bottom: 1px solid var(--line); grid-template-columns: 40px 1fr; gap: 8px; padding: 12px 0; display: grid }
.steps-n { color: var(--faint); padding-top: 2px; font-size: 11px }
.steps-title { font-size: 14px; font-weight: 500 }
.steps-body { color: var(--dim); margin-top: 2px; font-size: 13.5px }
.busy { border: 1px solid var(--line); border-radius: var(--r); background: color-mix(in srgb, var(--bg) 35%, transparent); padding: 16px 18px }
.busy-title { margin-bottom: 10px }
.busy li { grid-template-columns: 22px 1fr; gap: 10px; padding: 6px 0; font-size: 13.5px; display: grid }
.busy-mark { height: 20px; color: var(--dim); place-items: center; display: grid }
.busy-dot { background: var(--faint); border-radius: 50%; width: 5px; height: 5px }
.busy-todo .busy-label, .busy-skip .busy-label { color: var(--faint) }
.busy-doing .busy-mark { color: var(--accent) }
.busy-done .busy-mark { color: var(--ok) }
.busy-error .busy-mark, .busy-error .busy-detail { color: var(--err) }
.busy-detail { color: var(--dim); word-break: break-word; margin-top: 1px; font-size: 12.5px }
.gate { border: 1px solid var(--line); border-radius: var(--r); background: color-mix(in srgb, var(--bg) 35%, transparent); align-items: center; gap: 16px; padding: 20px; display: flex }
.gate-icon { border: 1px solid var(--edge); border-radius: var(--r); width: 40px; height: 40px; color: var(--dim); flex: none; place-items: center; display: grid }
.gate-text { flex: 1 }
.gate-title { font-weight: 500 }
.gate-sub { color: var(--faint); margin-top: 2px; font-size: 12.5px }
.shiftcard { border: 1px solid var(--line); border-radius: var(--r); justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; display: flex; flex-wrap: wrap }
.shiftcard .eyebrow { align-items: center; gap: 6px; display: flex }
.shiftcard-none { color: var(--dim); max-width: 44ch; margin-top: 6px; font-size: 13px }
.shiftcard-bal { gap: 14px; margin-top: 8px; font-size: 15px; display: flex; flex-wrap: wrap }
.shiftcard-addr { margin-top: 4px; font-size: 11.5px }
.shiftcard-actions { align-items: center; gap: 10px; display: flex; flex-wrap: wrap }
.prooflink { flex-direction: column; align-items: flex-start; gap: 8px; display: flex }
.prooflink-url { color: var(--dim); word-break: break-all; font-size: 11.5px }
.empty { text-align: center; color: var(--dim); flex-direction: column; align-items: center; gap: 8px; padding: 36px 16px; display: flex }
.empty-title { color: var(--fg); font-weight: 500 }
.empty-body { max-width: 44ch; font-size: 13px }
.danger-zone { border-top: 1px dashed var(--line); flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 16px; display: flex }
.table { width: 100%; border-collapse: collapse; font-size: 13px }
.table th { text-align: left; font: 500 9.5px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--faint); padding: 0 10px 10px 0; border-bottom: 1px solid var(--line-strong) }
.table td { border-bottom: 1px solid var(--line); padding: 10px 10px 10px 0; vertical-align: middle }
.table td.r, .table th.r { text-align: right; padding-right: 0 }
.table-wrap { overflow-x: auto }

/* ---------------------------------------------------------------- dialogs, menus, toasts */
.dialog { border: 1px solid var(--edge); border-radius: var(--r); background: var(--panel); width: min(560px, 100vw - 32px); max-height: calc(100svh - 48px); color: var(--fg); box-shadow: var(--shadow); padding: 0; overflow: auto }
.dialog-wide { width: min(760px, 100vw - 32px) }
.dialog::backdrop { backdrop-filter: blur(6px); background: #0000009e }
html[data-theme=light] .dialog::backdrop { background: #18181b59 }
.dialog[open] { animation: dialog-in .45s var(--ease) }
@keyframes dialog-in { 0% { opacity: 0; transform: translateY(10px) scale(.985) } }
.dialog-inner { padding: 40px 40px 36px; position: relative }
.dialog-close { position: absolute; top: 16px; right: 16px }
.dialog-eyebrow { margin-bottom: 14px }
.dialog-title { font: 800 30px/1.04 var(--display); letter-spacing: -.035em; max-width: 18ch; margin-bottom: 18px }
.dialog-wide .dialog-title { max-width: none; font-size: clamp(32px, 4vw, 46px); line-height: 1.02 }
.dialog-inner > p { color: var(--dim) }
.dialog-inner > * + * { margin-top: 14px }
.dialog-actions { flex-wrap: wrap; gap: 10px; display: flex }
.connect-section { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 22px }
.connect-h { font: 500 16px/1.2 var(--font); letter-spacing: -.015em }
.connect-sub { color: var(--dim); margin: 4px 0 16px; font-size: 13px }
.wallet-list { display: flex; flex-direction: column; gap: 8px }
.wallet-opt { display: flex; align-items: center; gap: 12px; border: 1px solid var(--edge); border-radius: var(--r); padding: 10px 14px; text-align: left; transition: border-color var(--t), background var(--t) }
.wallet-opt:hover { border-color: var(--line-strong); background: var(--hover) }
.wallet-opt img { width: 24px; height: 24px; border-radius: 5px }
.wallet-opt .grow { flex: 1 }
.why-list { border-top: 1px solid var(--line); margin-top: 26px !important }
.why-list li { border-bottom: 1px solid var(--line); grid-template-columns: 44px 1fr; gap: 10px; padding: 18px 0; display: grid }
.why-list .num { padding-top: 3px; font-size: 11px }
.why-list strong { letter-spacing: -.01em; font-size: 16px; font-weight: 500 }
.why-list p { color: var(--dim); margin-top: 4px }
.why-foot { font-size: 12.5px; color: var(--faint) !important; margin-top: 20px !important }
@media (max-width: 560px) { .dialog-inner { padding: 32px 22px 26px } .dialog-title { font-size: 26px } .disclosure-grid { grid-template-columns: 1fr; gap: 18px } .gate { flex-wrap: wrap } .gate .btn { width: 100% } }
.pop-anchor { position: relative }
.menu { z-index: 70; border: 1px solid var(--edge); border-radius: var(--r); background: var(--panel); width: 270px; box-shadow: var(--shadow); animation: menu-in .24s var(--ease); padding: 6px; position: absolute; top: calc(100% + 8px); right: 0 }
@keyframes menu-in { 0% { opacity: 0; transform: translateY(-6px) } }
.menu-item { width: 100%; color: var(--fg); text-align: left; border-radius: 3px; align-items: center; gap: 12px; padding: 10px 12px; font-size: 13.5px; display: flex }
.menu-item:hover { background: var(--hover) }
.menu-item svg { color: var(--dim) }
.menu-head { border-bottom: 1px solid var(--line); margin-bottom: 6px; padding: 10px 12px 12px }
.menu-addr { margin-top: 6px; font-size: 12px }
.toasts { position: fixed; z-index: 90; bottom: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, 100vw - 36px) }
.toast { border: 1px solid var(--edge); border-left: 2px solid var(--accent); background: var(--panel); box-shadow: var(--shadow); border-radius: var(--r); padding: 12px 14px; font-size: 13px; animation: menu-in .3s var(--ease) }
.toast.is-err { border-left-color: var(--err) }
.toast.is-ok { border-left-color: var(--ok) }

/* ---------------------------------------------------------------- landing */
.shell { isolation: isolate; --edge-x: max(var(--gutter), calc((100% - var(--maxw)) / 2)); min-height: 100svh; position: relative }
.wordmark { font: 700 26px/1 var(--font); letter-spacing: -.06em; color: var(--fg); flex: none; padding-bottom: 2px }
.top-link { color: var(--dim); white-space: nowrap; transition: color var(--t); font-size: 13.5px }
.top-link:hover { color: var(--fg) }
.topstrip { height: 30px; padding: 0 var(--edge-x); border-bottom: 1px solid var(--line); color: var(--dim); font: 500 11px/1 var(--mono); letter-spacing: .14em; white-space: nowrap; transition: color var(--t), background var(--t); align-items: center; gap: 10px; display: flex; overflow: hidden }
.topstrip:hover { color: var(--fg); background: var(--hover) }
.topstrip-dot { background: var(--accent); flex: none; width: 6px; height: 6px }
.topstrip-k { color: var(--fg) }
.topstrip-sep { color: var(--faint) }
.topstrip-short { display: none }
.home-header { height: var(--header-h); padding: 0 var(--edge-x); justify-content: space-between; align-items: center; gap: 24px; display: flex }
.home-nav { align-items: center; gap: 28px; display: flex }
.stage-home { padding: 0 var(--edge-x); animation: home-in .8s var(--ease) both; display: block }
@keyframes home-in { 0% { opacity: 0 } }

.frame { aspect-ratio: 2.35; border: 1px solid var(--edge); border-radius: var(--r); background: var(--bg); width: 100%; max-height: 70vh; margin: 0; position: relative; overflow: hidden }
.film { background: radial-gradient(120% 90% at 55% 35%, var(--scene-a), var(--scene-b)); position: absolute; inset: 0; overflow: hidden; container-type: size }
/* one plate the render's shape (1600×680), covering the frame; every layer fills it, so they always line up */
.film-plate { position: absolute; top: 50%; left: 50%; width: max(100cqw, 100cqh * 2.3529); height: max(100cqh, 100cqw / 2.3529); transform: translate(-50%, -50%) }
.film-plate img, .film-plate video, .film-box, .film-seam { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block }
/* the site theme picks the day or night version */
.film-day, .film-night { transition: opacity .9s var(--ease) }
html[data-theme=light] .film-night, html[data-theme=dark] .film-day { opacity: 0 }
.film-video { opacity: 0 !important; transition: opacity 1.2s var(--ease) }
html[data-theme=light] .film-video.film-day.is-playing, html[data-theme=dark] .film-video.film-night.is-playing { opacity: 1 !important }
/* the lamp: off, the box fades out of focus, the room dims, and the seam's afterglow lingers */
.film-box { transition: opacity 1.4s var(--ease), filter 1.4s var(--ease) }
.film-empty { transition: filter 1.6s var(--ease) }
html[data-lamp=off] .film-box { opacity: 0; filter: blur(10px) }
html[data-lamp=off] .film-empty { filter: brightness(.35) }
.film-seam { opacity: 0; pointer-events: none; overflow: visible }
.film-seam polyline { fill: none; stroke: var(--accent-2); stroke-width: 2.2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px var(--accent-2)) drop-shadow(0 0 14px var(--accent-2)) }
html[data-lamp=off] .film-seam { animation: seam 3.2s var(--ease) .4s both }
@keyframes seam { 0% { opacity: 0 } 25%, 60% { opacity: 1 } to { opacity: .3 } }
.film:after { content: ""; background: linear-gradient(90deg, var(--bg) 0%, transparent 12%, transparent 88%, color-mix(in srgb, var(--bg) 40%, transparent) 100%); pointer-events: none; position: absolute; inset: 0; opacity: .55 }
.tick { z-index: 2; border: 0 solid color-mix(in srgb, var(--fg) 55%, transparent); pointer-events: none; width: 16px; height: 16px; position: absolute }
.tick-tl { border-top-width: 1px; border-left-width: 1px; top: 12px; left: 12px }
.tick-tr { border-top-width: 1px; border-right-width: 1px; top: 12px; right: 12px }
.tick-bl { border-bottom-width: 1px; border-left-width: 1px; bottom: 12px; left: 12px }
.tick-br { border-bottom-width: 1px; border-right-width: 1px; bottom: 12px; right: 12px }
.hud { z-index: 3; color: var(--fg); font: 500 10.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; align-items: center; gap: 16px; display: flex; position: absolute; text-shadow: 0 0 10px color-mix(in srgb, var(--bg) 60%, transparent) }
.hud-tl { top: 19px; left: 38px }
.hud-tr { font-variant-numeric: tabular-nums; top: 19px; right: 38px }
.hud-dim { color: var(--dim) }
.hud-bl { gap: 8px; bottom: 19px; left: 38px }
.hud-br { bottom: 13px; right: 34px }
.rec-dot { background: var(--accent-2); border-radius: 50%; width: 7px; height: 7px; animation: 2.6s ease-in-out infinite rec; display: inline-block }
@keyframes rec { 0%, to { opacity: 1 } 50% { opacity: .2 } }
.lamp { border: 1px solid color-mix(in srgb, var(--fg) 28%, transparent); background: color-mix(in srgb, var(--bg) 70%, transparent); height: 26px; color: var(--fg); font: 500 10px/1 var(--mono); letter-spacing: .14em; transition: border-color var(--t); border-radius: 3px; align-items: center; gap: 8px; padding: 0 8px; display: inline-flex }
.lamp:hover { border-color: color-mix(in srgb, var(--fg) 55%, transparent) }
.lamp-track { border: 1px solid color-mix(in srgb, var(--fg) 60%, transparent); border-radius: 2px; width: 22px; height: 10px; position: relative }
.lamp-track i { background: var(--faint); width: 8px; height: 6px; transition: transform .25s var(--ease), background .25s var(--ease); border-radius: 1px; position: absolute; top: 1px; left: 1px }
.lamp[aria-pressed=true] .lamp-track i { background: var(--accent); transform: translate(10px) }
.lamp-state { min-width: 2.2em; color: var(--dim) }
.lamp[aria-pressed=true] .lamp-state { color: var(--fg) }

.lead { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: 48px; padding: 72px 0 88px; display: grid }
.lead-h { font: 850 clamp(64px, 8.6vw, 128px) / .84 var(--display); letter-spacing: -.055em; text-transform: uppercase; color: var(--fg) }
.lead-h span { display: block }
.lead-side { max-width: 460px; padding-bottom: 6px }
.lead-k { border-bottom: 1px solid var(--line); color: var(--dim); font: 500 10.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; margin-bottom: 18px; padding-bottom: 14px }
.intro { color: var(--fg); letter-spacing: -.01em; max-width: 32ch; font-size: 18px; line-height: 1.5 }
.lead-cta { flex-wrap: wrap; gap: 10px; margin-top: 30px; display: flex }
.lead-cta .btn { min-width: 156px }
.lead-cta .btn-primary { justify-content: space-between; gap: 28px }
.sec-head { border-bottom: 1px solid var(--fg); justify-content: space-between; align-items: baseline; gap: 20px; padding-bottom: 16px; display: flex }
.sec-title { font: 850 34px/1 var(--display); letter-spacing: -.035em; text-transform: uppercase }
.sec-meta { color: var(--faint); font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase }
.bench { padding-top: 8px }
.idx { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 44px; display: grid }
.idx-col { flex-direction: column; gap: 44px; padding-top: 34px; display: flex }
.idx-head { color: var(--fg); font: 500 10.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; justify-content: space-between; padding: 0 0 12px 12px; display: flex }
.idx-head .faint { letter-spacing: .1em }
.idx-group ul { border-top: 1px solid var(--line-strong) }
.idx-row { border-bottom: 1px solid var(--line); text-align: left; width: 100%; transition: background var(--t); grid-template-columns: 46px minmax(0, 1fr) auto 14px; align-items: center; column-gap: 12px; padding: 15px 4px 15px 12px; display: grid; position: relative }
.idx-row:before { content: ""; background: var(--accent); transform-origin: top; width: 2px; transition: transform .32s var(--ease); position: absolute; top: -1px; bottom: -1px; left: 0; transform: scaleY(0) }
.idx-row:hover { background: var(--hover) }
.idx-row:hover:before, .idx-row:focus-visible:before { transform: scaleY(1) }
.idx-code { color: var(--faint); font: 500 11px/1 var(--mono); letter-spacing: .04em; transition: color var(--t); align-self: start; padding-top: 3px }
.idx-row:hover .idx-code { color: var(--accent) }
.idx-main { min-width: 0 }
.idx-name { color: var(--fg); font: 500 15px/1.25 var(--font); letter-spacing: -.01em; display: block }
.idx-line { color: var(--dim); margin-top: 3px; font-size: 12.5px; line-height: 1.45; display: block }
.idx-arrow { color: var(--faint); transition: transform var(--t) var(--ease), color var(--t) }
.idx-row:hover .idx-arrow { color: var(--fg); transform: translate(2px) }
.chip-status { border: 1px solid var(--edge); height: 18px; color: var(--dim); font: 500 9px/1 var(--mono); letter-spacing: .14em; white-space: nowrap; border-radius: 2px; align-items: center; padding: 0 5px; display: inline-flex }
.chip-status.is-setup { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent) }
.chip-status.is-live { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent) }
.chip-status.is-none { border-color: #0000 }
.howto { padding-top: 112px }
.dg { grid-template-columns: repeat(3, minmax(0, 1fr)); display: grid }
.dg-step { padding: 30px 36px 6px 0 }
.dg-step + .dg-step { border-left: 1px solid var(--line); padding-left: 36px }
.dg-rail { font: 500 10.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; align-items: baseline; gap: 14px; display: flex }
.dg-n { color: var(--accent) }
.dg-k { color: var(--fg) }
.dg-draw { align-items: center; min-height: 112px; margin: 22px 0 18px; display: flex }
.dg-node { border: 1px solid var(--line-strong); color: var(--fg); font: 500 10px/1 var(--mono); letter-spacing: .14em; border-radius: 2px; flex: none; padding: 9px 10px }
.dg-node.is-accent { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, transparent) }
.dg-wire { background: var(--line-strong); flex: 1; min-width: 28px; max-width: 120px; height: 1px; margin: 0 6px 0 0; position: relative }
.dg-wire:after { content: ""; border-top: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong); width: 6px; height: 6px; position: absolute; top: -3px; right: 0; transform: rotate(45deg) }
.dg-wire.is-cut { background: linear-gradient(90deg, var(--line-strong) 0 40%, transparent 40% 60%, var(--line-strong) 60%) }
.dg-wire.is-cut:before { content: ""; border-left: 1px solid var(--faint); border-right: 1px solid var(--faint); width: 7px; height: 13px; position: absolute; top: -6px; left: 50%; transform: translate(-50%) skew(-24deg) }
.dg-list { border-left: 1px solid var(--line-strong); color: var(--dim); font: 500 10px/1 var(--mono); letter-spacing: .14em; flex-direction: column; gap: 7px; padding: 2px 0 2px 12px; display: flex }
.dg-copy { max-width: 36ch; color: var(--dim); font-size: 14px; line-height: 1.6 }
.howto-foot { border-top: 1px solid var(--line); color: var(--faint); margin-top: 34px; padding-top: 16px; font-size: 12.5px }
.footer { padding: 26px var(--edge-x) 30px; border-top: 1px solid var(--line); flex-wrap: wrap; align-items: center; gap: 36px; margin-top: 112px; display: flex }
.footer-id { align-items: baseline; gap: 16px; display: flex }
.footer-mark { font-size: 22px }
.footer-line { color: var(--faint); font-size: 12.5px }
.footer-links { align-items: center; gap: 22px; display: flex }
.footer-links a { color: var(--dim); transition: color var(--t); font-size: 13px }
.footer-links a:hover { color: var(--fg) }
.footer-end { align-items: center; gap: 18px; margin-left: auto; display: flex }
.footer-copy { color: var(--faint); font: 500 11px/1 var(--mono); letter-spacing: .04em }
.ca-chip { border: 1px solid var(--edge); border-radius: var(--r); height: 30px; padding: 0 10px; display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 var(--mono); color: var(--dim) }
.ca-chip:hover { color: var(--fg); border-color: var(--line-strong) }

/* settings popover */
.settings { position: relative }
.settings-btn { border: 1px solid var(--edge); border-radius: var(--r); height: 30px; color: var(--dim); transition: color var(--t), border-color var(--t); align-items: center; gap: 8px; padding: 0 10px; font-size: 12.5px; display: inline-flex }
.settings-btn:hover, .settings-btn[aria-expanded=true] { color: var(--fg); border-color: var(--line-strong) }
.settings-btn.is-compact { justify-content: center; width: 34px; height: 34px; padding: 0 }
.settings-pop { z-index: 70; border: 1px solid var(--edge); border-radius: var(--r); background: var(--panel); width: 296px; box-shadow: var(--shadow); animation: menu-in .24s var(--ease); padding: 2px 14px 6px; position: absolute; bottom: calc(100% + 8px); right: 0 }
.settings-pop.is-start { left: 0; right: auto }
.set-head { border-bottom: 1px solid var(--line); color: var(--faint); font: 500 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; padding: 12px 0 10px }
.set-row { border-bottom: 1px solid var(--line); justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; display: flex }
.set-row:last-child { border-bottom: 0 }
.set-label { color: var(--dim); font-size: 13px }
.set-seg { border: 1px solid var(--edge); border-radius: 3px; gap: 2px; padding: 2px; display: inline-flex }
.set-seg button { min-width: 44px; color: var(--dim); font: 500 11px/1.1 var(--mono); letter-spacing: .04em; transition: background var(--t), color var(--t); border-radius: 2px; padding: 5px 8px }
.set-seg button:hover { color: var(--fg) }
.set-seg button[aria-checked=true] { background: var(--press); color: var(--fg) }

/* ---------------------------------------------------------------- desk (tool workspace) */
.connect-btn { min-width: 96px }
.connect-btn.is-connected { gap: 10px }
.wallet-dot { background: var(--ok); border-radius: 50%; width: 7px; height: 7px }
.wallet-dot[data-kind=browser], .wallet-dot[data-kind=pocket] { background: var(--accent) }
.shift-chip { border: 1px solid var(--edge); border-radius: var(--r); justify-content: space-between; align-items: center; gap: 2px; height: 34px; padding: 0 3px 0 10px; font-size: 12px; display: flex; text-align: left }
.shift-chip.is-empty { color: var(--dim); transition: border-color var(--t); justify-content: flex-start; gap: 10px; padding-right: 10px }
.shift-chip.is-empty:hover { border-color: var(--line-strong); color: var(--fg) }
.shift-chip-k { color: var(--dim); font: 500 10px/1 var(--mono); letter-spacing: .16em }
.shift-chip-main { white-space: nowrap; align-items: center; gap: 6px; display: inline-flex; overflow: hidden }
.desk { --desk-pad: clamp(28px, 4vw, 64px); --list-pad: 12px; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100svh; display: grid }
.side { border-right: 1px solid var(--line); background: var(--bg); flex-direction: column; height: 100svh; display: flex; position: sticky; top: 0 }
.side-top { border-bottom: 1px solid var(--line); flex: none; align-items: center; height: 56px; padding: 0 20px; display: flex }
.side-list { min-height: 0; padding: 2px var(--list-pad) 12px; flex: 1; overflow-y: auto }
.side-group { padding-top: 10px }
.side-label { color: var(--faint); font: 500 9.5px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; justify-content: space-between; padding: 0 8px 6px; display: flex }
.side-item { height: 26px; color: var(--dim); transition: color var(--t), background var(--t); border-radius: 3px; align-items: center; gap: 10px; padding: 0 6px 0 8px; font-size: 13px; display: flex; position: relative }
.side-item svg { opacity: .85 }
.side-name { text-overflow: ellipsis; white-space: nowrap; min-width: 0; overflow: hidden }
.side-item:hover { color: var(--fg); background: var(--hover) }
.side-item .chip-status { opacity: 0; height: 16px; transition: opacity var(--t); margin-left: auto; font-size: 8.5px }
.side-item:hover .chip-status { opacity: 1 }
.side-item[aria-current=page] { color: var(--fg) }
.side-item[aria-current=page]:before { content: ""; left: calc(-1 * var(--list-pad)); background: var(--accent); width: 2px; position: absolute; top: 4px; bottom: 4px }
.side-manual { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 8px }
.side-foot { border-top: 1px solid var(--line); flex-direction: column; flex: none; gap: 10px; padding: 12px 16px 14px; display: flex }
.side-row { gap: 8px; display: flex }
.side-row .shift-chip { flex: 1; min-width: 0 }
.monitor { aspect-ratio: 16/9; border: 1px solid var(--edge); border-radius: 3px; position: relative; overflow: hidden; display: block }
.monitor .film { position: absolute }
.monitor-cam { z-index: 2; color: var(--fg); font: 500 9px/1 var(--mono); letter-spacing: .16em; align-items: center; gap: 6px; display: inline-flex; position: absolute; top: 8px; left: 8px }
.monitor-cam .rec-dot { width: 5px; height: 5px }
.monitor .lamp { z-index: 2; gap: 6px; height: 22px; padding: 0 6px; font-size: 9px; position: absolute; bottom: 6px; right: 6px }
.desk-main { flex-direction: column; min-width: 0; display: flex }
.bar { z-index: 20; height: 56px; padding: 0 var(--desk-pad); border-bottom: 1px solid var(--line); background: var(--bg); align-items: center; gap: 16px; display: flex; position: sticky; top: 0 }
.bar-mark { display: none }
.crumb { min-width: 0; color: var(--faint); font: 500 11.5px/1 var(--mono); letter-spacing: .04em; white-space: nowrap; align-items: center; gap: 9px; display: flex }
.crumb a { color: var(--dim); transition: color var(--t) }
.crumb a:hover, .crumb-here { color: var(--fg) }
.bar-end { align-items: center; gap: 22px; margin-left: auto; display: flex }
.tools-btn { border: 1px solid var(--edge); border-radius: var(--r); height: 40px; color: var(--fg); align-items: center; gap: 8px; padding: 0 12px; font-size: 13px; display: none }
.ws { padding: 60px var(--desk-pad) 112px; animation: ws-in .6s var(--ease) both; flex: 1 }
@keyframes ws-in { 0% { opacity: 0; transform: translateY(8px) } }
.ws-head { max-width: 820px; padding-bottom: 36px }
.ws-code { color: var(--dim); font: 500 11px/1 var(--mono); letter-spacing: .18em }
.ws-title { font: 850 56px/.95 var(--display); letter-spacing: -.045em; margin-top: 18px }
.ws-sub { max-width: 52ch; color: var(--dim); margin-top: 14px; font-size: 17px; line-height: 1.45 }
.tool-surface { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); max-width: 820px; padding: 34px 36px 36px }
.tool-surface > * + * { margin-top: 18px }
.desk.is-wide .ws-head, .desk.is-wide .tool-surface { max-width: 1120px }
.surface-loading { min-height: 160px; color: var(--dim); justify-content: center; align-items: center; gap: 12px; display: flex }
.lede { color: var(--dim); max-width: 62ch }
.sheet { --list-pad: 16px; z-index: 60; background: var(--bg); animation: fade-in .25s var(--ease); flex-direction: column; display: flex; position: fixed; inset: 0; overflow-y: auto }
@keyframes fade-in { 0% { opacity: 0 } }
html.sheet-open body { overflow: hidden }
.sheet-head { z-index: 1; border-bottom: 1px solid var(--line); background: var(--bg); flex: none; justify-content: space-between; align-items: center; height: 56px; padding: 0 16px; display: flex; position: sticky; top: 0 }
.sheet .side-list { flex: none; overflow: visible }
.sheet .side-item { height: 42px; font-size: 15.5px }
.sheet .side-item .chip-status { opacity: 1 }

/* manual (long-form) */
.prose { max-width: 68ch; color: var(--fg); font-size: 14.5px; line-height: 1.65 }
.prose > * + * { margin-top: 14px }
.prose h2 { font: 800 30px/1.05 var(--display); letter-spacing: -.035em; margin-top: 46px }
.prose h3 { font: 500 18px/1.3 var(--font); letter-spacing: -.015em; margin-top: 34px }
.prose h4 { font: 500 10.5px/1.2 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-top: 24px }
.prose p, .prose li { color: var(--dim) }
.prose strong { color: var(--fg); font-weight: 500 }
.prose ul li, .prose ol li { padding-left: 18px; position: relative; margin-top: 8px }
.prose ul li:before { content: "–"; position: absolute; left: 2px; color: var(--faint) }
.prose ol { counter-reset: n }
.prose ol li { counter-increment: n }
.prose ol li:before { content: counter(n, decimal-leading-zero); position: absolute; left: -10px; font: 500 10px/2.3 var(--mono); color: var(--faint) }
.prose ol li { padding-left: 22px }
.prose .eyebrow { margin-top: 56px; color: var(--accent) }
.toc { display: grid; gap: 4px; font-size: 13.5px; border-top: 1px solid var(--line); padding-top: 14px }
.toc a { color: var(--dim) } .toc a:hover { color: var(--fg) }
.toc .toc-n { font: 500 10.5px/1 var(--mono); color: var(--faint); width: 30px; display: inline-block }
.addr-table td .mono { word-break: break-all }

@media (max-width: 1180px) { .idx { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 40px; padding-top: 34px } .idx-col { display: contents } .idx-group { min-width: 0 } }
@media (max-width: 899px) {
  :root { --header-h: 58px }
  .desk { --desk-pad: 16px; grid-template-columns: minmax(0, 1fr) }
  .side { display: none }
  .bar { gap: 10px; height: 56px }
  .bar-mark { font-size: 24px; display: block }
  .crumb, .bar-end .top-link { display: none }
  .bar-end { gap: 8px }
  .tools-btn { display: inline-flex }
  .ws { padding-top: 32px; padding-bottom: 72px }
  .ws-head { padding-bottom: 24px }
  .ws-title { margin-top: 14px; font-size: 44px }
  .ws-sub { font-size: 15.5px }
  .tool-surface { padding: 22px 16px 24px }
  .lead { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 44px 0 64px }
  .dg { grid-template-columns: minmax(0, 1fr) }
  .dg-step, .dg-step + .dg-step { border-left: 0; padding: 26px 0 22px }
  .dg-step + .dg-step { border-top: 1px solid var(--line) }
  .dg-draw { min-height: 0 }
}
@media (max-width: 640px) {
  :root { --gutter: 16px }
  .topstrip { letter-spacing: .12em; gap: 8px; font-size: 10px }
  .topstrip-long { display: none }
  .topstrip-short { display: inline }
  .home-nav { gap: 16px }
  .home-nav .top-link:nth-child(2) { display: none }
  .wordmark { font-size: 24px }
  .frame { aspect-ratio: 4/3 }
  .hud { letter-spacing: .12em; font-size: 9.5px }
  .hud-tl, .hud-bl { left: 30px }
  .hud-tr { flex-direction: column; align-items: flex-end; gap: 7px; right: 30px }
  .hud-br { bottom: 10px; right: 32px }
  .lead-h { font-size: clamp(60px, 19vw, 92px) }
  .intro { font-size: 16px }
  .lead-cta .btn { flex: 140px; min-width: 0 }
  .sec-title { font-size: 26px }
  .bench { padding-top: 0 }
  .idx { flex-direction: column; gap: 36px; padding-top: 28px; display: flex }
  .idx-row { grid-template-columns: 42px minmax(0, 1fr) auto }
  .idx-arrow { display: none }
  .howto { padding-top: 80px }
  .footer { gap: 18px 24px; margin-top: 80px }
  .footer-end { justify-content: space-between; width: 100%; margin-left: 0 }
  .connect-btn { min-width: 0 }
}
