/* iTAO · Intelligence for TAO. Cloud-white and deep black, architectural, calm. */
:root {
  --paper: #f2f1ed;
  --paper-2: #e6e4de;
  --card: #fbfaf8;
  --ink: #0c0c0d;
  --ink-2: #2a2a2d;
  --mute: #6b6a66;
  --line: rgba(12, 12, 13, .13);
  --line-2: rgba(12, 12, 13, .07);
  --night: #0b0b0c;
  --night-2: #141416;
  --night-3: #1c1c1f;
  --on-night: #f2f1ed;
  --mute-d: #93928e;
  --line-d: rgba(242, 241, 237, .14);
  --line-d2: rgba(242, 241, 237, .07);
  --sun: #c7a26a;
  --ok: #3d7a55;
  --ok-d: #8fd0a6;
  --err: #a3402d;
  --err-d: #f0a08f;

  --f-body: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --f-serif: 'Instrument Serif', 'Times New Roman', serif;
  --f-wide: 'Syncopate', 'Geist', sans-serif;

  --gut: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --r: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.6 var(--f-body); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
.mono { font-family: var(--f-mono); font-feature-settings: 'tnum' 1, 'zero' 1; letter-spacing: -.01em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.night :focus-visible, .foot :focus-visible { outline-color: var(--on-night); }

/* ------------------------------------------------------------------ mark */
.mark { width: 34px; height: 34px; flex: none; --mk-bg: var(--ink); --mk-fg: var(--paper); }
.mark-lg { width: 64px; height: 64px; }
.foot .mark { --mk-bg: var(--on-night); --mk-fg: var(--night); }

/* ------------------------------------------------------------------ header */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 30; height: 64px;
  display: flex; align-items: center; gap: 24px; padding: 0 var(--gut);
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.top.solid { background: rgba(242, 241, 237, .86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--line-2); }
.top.dark { background: rgba(11, 11, 12, .82); color: var(--on-night); border-bottom-color: var(--line-d2); }
.top.dark .mark { --mk-bg: var(--on-night); --mk-fg: var(--night); }
.top.dark .btn-ink { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-word { font: 600 19px/1 var(--f-body); letter-spacing: .02em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 13px; letter-spacing: .02em; opacity: .72; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.top-right { display: flex; align-items: center; gap: 12px; margin-left: 12px; }

.pill { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--mute); }
.pill[data-tone="live"] i { background: var(--ok); box-shadow: 0 0 0 3px rgba(61, 122, 85, .18); }
.pill[data-tone="fork"] i { background: var(--sun); }
.top.dark .pill, .pill-d { border-color: var(--line-d); }
.pill-d[data-tone="live"] i { background: var(--ok-d); box-shadow: 0 0 0 3px rgba(143, 208, 166, .16); }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border: 1px solid var(--ink); border-radius: var(--r); font-size: 14px; font-weight: 500; letter-spacing: .01em; text-decoration: none; background: transparent; transition: background .2s, color .2s, opacity .2s, transform .2s var(--ease); white-space: nowrap; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover:not(:disabled) { background: #26262a; }
.btn-line:hover { background: rgba(12, 12, 13, .06); }
.btn-paper { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.btn-paper:hover:not(:disabled) { background: #fff; }
.btn:disabled { opacity: .42; }
.btn-wide { width: 100%; min-height: 54px; font-size: 15px; }
.chip { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); background: transparent; font: 500 12px/1 var(--f-mono); letter-spacing: .02em; text-decoration: none; white-space: nowrap; }
.chip:hover:not(:disabled) { border-color: var(--ink); }
.chip:disabled { opacity: .4; }
.night .chip { border-color: var(--line-d); }
.night .chip:hover:not(:disabled) { border-color: var(--on-night); }
.linkish { border: 0; background: none; padding: 0 0 0 6px; font: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; background: linear-gradient(180deg, #d9dee2 0%, #efe7da 46%, #f5efe4 52%, #e7e6e3 70%, #f2f1ed 100%); isolation: isolate; }
#sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-veil { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(242, 241, 237, .0) 60%, rgba(242, 241, 237, .0) 80%, rgba(242, 241, 237, .55) 100%); }
.hero-in { position: absolute; left: 0; right: 0; top: clamp(110px, 17vh, 190px); }
.kicker { margin: 0 0 22px; font: 500 11px/1.4 var(--f-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); }
.tagline { margin: 0; font: 400 clamp(26px, 4.4vw, 64px)/1.08 var(--f-wide); letter-spacing: .34em; text-transform: uppercase; margin-right: -.34em; }
.tagline span { display: inline-block; }
.hero-lede { max-width: 30em; margin: 26px 0 0; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.55; color: var(--ink-2); }
.hero-lede em { font-family: var(--f-serif); font-size: 1.22em; font-style: italic; color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-cta .btn-line { background: rgba(242, 241, 237, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

.hero-strip { position: absolute; left: 0; right: 0; bottom: clamp(18px, 4vh, 36px); display: flex; }
.hero-strip { gap: 0; }
.hero-strip .hs { flex: 1 1 0; min-width: 0; padding: 14px 18px; background: rgba(250, 249, 246, .62); backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1); border: 1px solid rgba(255, 255, 255, .7); display: flex; flex-direction: column; gap: 4px; }
.hero-strip .hs + .hs { border-left: 1px solid var(--line-2); }
.hs-k { font: 500 10px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.hs-v { font-size: clamp(15px, 1.5vw, 20px); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------------ sections */
.sec { padding: clamp(84px, 11vw, 160px) 0; position: relative; }
.paper { background: var(--paper); }
.paper2 { background: var(--paper-2); }
.night { background: var(--night); color: var(--on-night); }
.rail { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; font: 500 11px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.night .rail { color: var(--mute-d); }
.rail .idx { color: var(--ink); }
.night .rail .idx { color: var(--on-night); }
.rail::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.night .rail::after { background: var(--line-d); }
.display { margin: 0; font: 400 clamp(40px, 6.6vw, 96px)/.98 var(--f-serif); letter-spacing: -.02em; max-width: 14em; }
.display em { font-style: italic; color: var(--mute); }
.night .display em { color: var(--mute-d); }
.lede { max-width: 40em; margin: 28px 0 0; font-size: clamp(16px, 1.3vw, 18px); color: var(--ink-2); }
.night .lede { color: #cfcdc8; }
.lede em { font-family: var(--f-serif); font-size: 1.15em; }
.label { font: 500 11px/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.night .label { color: var(--mute-d); }
.label b { color: var(--ink); font-weight: 500; }
.night .label b { color: var(--on-night); }
.fine { font-size: 13px; line-height: 1.55; color: var(--mute); margin: 14px 0 0; }
.night .fine { color: var(--mute-d); }
.fine sup { font-size: .7em; }

/* ------------------------------------------------------------------ 01 question */
.q-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; margin-top: 56px; }
.q-card { background: var(--card); border: 1px solid var(--line-2); padding: clamp(20px, 3vw, 36px); min-width: 0; }
.q-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.q-open { margin: 26px 0 0; font: 400 clamp(22px, 2.2vw, 30px)/1.2 var(--f-serif); }
.q-open b { font-family: var(--f-mono); font-weight: 400; font-size: .82em; }
.q-count { margin: 6px 0 18px; font-size: clamp(56px, 9vw, 128px); line-height: 1; letter-spacing: -.04em; font-weight: 400; }
.bar { height: 2px; background: var(--line); position: relative; overflow: hidden; }
.bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
.q-dl, .rs-dl, .quote, .mkt-live { margin: 22px 0 0; display: grid; gap: 0; }
.q-dl div, .rs-dl div, .quote div, .mkt-live div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-2); min-width: 0; }
dt { color: var(--mute); font-size: 14px; }
dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.q-price { margin: 22px 0 0; font-size: clamp(48px, 6.4vw, 92px); line-height: 1; letter-spacing: -.04em; }
.live { display: inline-flex; align-items: center; gap: 8px; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--mute); }
.live.on i { background: var(--ok); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.tempos { margin-top: 20px; background: var(--card); border: 1px solid var(--line-2); padding: clamp(20px, 3vw, 36px); }
.tempo-chart { margin-top: 22px; height: 150px; }
.tempo-chart svg { width: 100%; height: 100%; overflow: visible; }
.tc-line { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.tc-area { fill: rgba(12, 12, 13, .05); }
.tc-dot { fill: var(--ink); }
.tc-dot.partial { fill: var(--card); stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.tc-grid { stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.tempo-cells { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(118px, 1fr); gap: 0; margin-top: 16px; overflow-x: auto; scrollbar-width: thin; border-top: 1px solid var(--line); }
.tcell { padding: 12px 12px 4px 0; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tcell + .tcell { padding-left: 12px; border-left: 1px solid var(--line-2); }
.tcell .t-n { font: 500 10px/1.2 var(--f-mono); letter-spacing: .1em; color: var(--mute); text-transform: uppercase; }
.tcell .t-p { font: 400 17px/1.2 var(--f-mono); }
.tcell .t-d { font: 400 12px/1.3 var(--f-mono); color: var(--mute); white-space: nowrap; }
.tcell.partial .t-p { color: var(--mute); }
.empty { color: var(--mute); font-size: 14px; padding: 14px 0; }
.night .empty { color: var(--mute-d); }

/* ------------------------------------------------------------------ 02 console */
.notice { margin: 30px 0 0; max-width: 60em; padding: 14px 16px; border: 1px solid var(--line-d); border-left: 2px solid var(--on-night); font-size: 14px; color: #d8d6d1; }
.notice[hidden] { display: none; }
.console { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1px; margin-top: 44px; background: var(--line-d); border: 1px solid var(--line-d); }
.instrument, .roundside { background: var(--night-2); padding: clamp(20px, 3vw, 36px); min-width: 0; }
.c-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.readout { margin-top: 30px; }
.r-usd { margin: 0; font-size: clamp(52px, 7.4vw, 104px); line-height: 1; letter-spacing: -.045em; }
.r-sub { margin: 12px 0 0; color: var(--mute-d); font-size: 14px; }
.r-sub .mono { color: var(--on-night); }
.band { margin-top: 26px; }
.band svg { width: 100%; height: 96px; overflow: visible; }
.b-axis { stroke: var(--line-d); stroke-width: 1; vector-effect: non-scaling-stroke; }
.b-area { fill: rgba(242, 241, 237, .1); stroke: rgba(242, 241, 237, .55); stroke-width: 1; vector-effect: non-scaling-stroke; }
.b-spot { stroke: var(--sun); stroke-width: 1.5; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.b-mark { stroke: var(--on-night); stroke-width: 2; vector-effect: non-scaling-stroke; }
.band-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 12px; color: var(--mute-d); }
.band-legend span { display: inline-flex; align-items: center; gap: 7px; }
.band-legend i { display: inline-block; width: 14px; height: 2px; }
.lg-spot { background: var(--sun); }
.lg-mark { background: var(--on-night); }
.lg-area { background: rgba(242, 241, 237, .35); height: 8px !important; }

.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 40px; margin: 18px 0 0; background: transparent; }
.slider::-webkit-slider-runnable-track { height: 2px; background: var(--line-d); }
.slider::-moz-range-track { height: 2px; background: var(--line-d); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -12px; border-radius: 50%; background: var(--on-night); border: 6px solid var(--night-2); box-shadow: 0 0 0 1px var(--on-night); cursor: grab; }
.slider::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--on-night); border: 5px solid var(--night-2); box-shadow: 0 0 0 1px var(--on-night); cursor: grab; }
.nudges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.nudges .chip { min-width: 0; min-height: 40px; padding: 0 4px; }
.chip-spot { color: var(--sun); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.f-k { font-size: 12px; color: var(--mute); }
.night .f-k { color: var(--mute-d); }
.f-row { display: flex; gap: 6px; }
.field input { width: 100%; min-width: 0; min-height: 46px; padding: 0 14px; border: 1px solid var(--line-d); border-radius: var(--r); background: var(--night); font-family: var(--f-mono); font-size: 16px; }
.field input:focus { border-color: var(--on-night); outline: none; }
.field .chip { min-height: 46px; }
.txline { margin: 12px 0 0; min-height: 1.4em; font-size: 13px; overflow-wrap: anywhere; }
.txline[data-tone="ok"] { color: var(--ok); }
.txline[data-tone="err"] { color: var(--err); }
.night .txline[data-tone="ok"] { color: var(--ok-d); }
.night .txline[data-tone="err"] { color: var(--err-d); }
.txline a { text-underline-offset: 2px; }

.roundside { display: flex; flex-direction: column; gap: 0; padding: 0; }
.rs-block { padding: clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--line-d2); }
.rs-block:last-child { border-bottom: 0; flex: 1; }
.rs-dl div { border-bottom-color: var(--line-d2); }
.night dt { color: var(--mute-d); }
.mine { margin: 12px 0 0; font-size: 15px; }
.rs-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.claims { list-style: none; margin: 12px 0 0; padding: 0; }
.claims li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-d2); font-size: 13px; }
.claims li.empty { display: block; }
.claims .cl-r { font-family: var(--f-mono); }
.claims .cl-s { color: var(--mute-d); font-size: 12px; grid-column: 1; }
.claims .chip { grid-row: 1 / span 2; grid-column: 2; }

/* ------------------------------------------------------------------ 03 scoring */
.diagram { margin: 56px 0 0; padding: clamp(16px, 3vw, 32px); background: var(--card); border: 1px solid var(--line-2); overflow-x: auto; }
.diagram svg { width: 100%; min-width: 640px; height: auto; }
.dg-a, .dg-c { fill: none; stroke: var(--ink); stroke-width: 1; }
.dg-b { fill: var(--ink); }
.dg-t text { font: 500 15px var(--f-mono); letter-spacing: .08em; fill: var(--ink); }
.dg-t .dg-s { font: 400 13px var(--f-mono); letter-spacing: 0; fill: var(--mute); }
.dg-t .dg-inv { fill: var(--paper); }
.dg-t .dg-s.dg-inv { fill: #b9b7b2; }
.dg-small text, text.dg-small { font: 400 12px var(--f-mono); letter-spacing: 0; fill: var(--mute); }
.dg-ticks line { stroke: var(--ink); stroke-width: 1; }
.dg-arc { fill: none; stroke: var(--mute); stroke-width: 1; stroke-dasharray: 3 5; }
.score-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; }
.curve { margin: 0; padding: clamp(16px, 3vw, 32px); background: var(--card); border: 1px solid var(--line-2); min-width: 0; }
.curve svg { width: 100%; height: auto; }
.cv-axis { stroke: var(--ink); stroke-width: 1; }
.cv-grid { stroke: var(--line); stroke-dasharray: 3 4; }
.cv-line { fill: rgba(12, 12, 13, .06); stroke: var(--ink); stroke-width: 1.6; }
.cv-t text { font: 400 12px var(--f-mono); fill: var(--mute); }
.curve figcaption { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.rules { margin: 0; padding: 0; list-style: none; counter-reset: rule; }
.rules li { counter-increment: rule; position: relative; padding: 16px 0 16px 44px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.rules li:first-child { border-top: 1px solid var(--line); }
.rules li::before { content: counter(rule, decimal-leading-zero); position: absolute; left: 0; top: 18px; font: 500 11px var(--f-mono); letter-spacing: .1em; color: var(--mute); }
.rules b { color: var(--ink); font-weight: 500; }

/* ------------------------------------------------------------------ 04 market */
.mkt-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(28px, 5vw, 72px); margin-top: 20px; align-items: start; }
.facts { margin: 30px 0 0; }
.facts div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.facts dd { text-align: left; color: var(--ink-2); font-size: 15px; }
.mkt-live { margin-top: 30px; }
.ca { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.ca[hidden] { display: none; }
.ca-addr { font-size: 13px; overflow-wrap: anywhere; min-width: 0; }
.ca-act { display: flex; gap: 6px; }
.trade { background: var(--card); border: 1px solid var(--line-2); padding: clamp(18px, 2.6vw, 28px); min-width: 0; box-shadow: 0 30px 60px -40px rgba(12, 12, 13, .35); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.tabs button { min-height: 44px; border: 0; background: transparent; font-weight: 500; font-size: 14px; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.payrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 18px 0 10px; }
.seg { display: inline-flex; border: 1px solid var(--line); }
.seg button { min-height: 34px; padding: 0 14px; border: 0; background: transparent; font: 500 12px var(--f-mono); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.seg-s button { min-height: 30px; padding: 0 9px; }
.box { border: 1px solid var(--line); padding: 12px 14px; }
.box + .box { border-top: 0; }
.box-out { background: rgba(12, 12, 13, .025); }
.box-top { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.box-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.box-row input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 26px/1.3 var(--f-mono); padding: 0; outline: none; }
.box-row .out { flex: 1; min-width: 0; font-size: 26px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; }
.asset { font: 500 13px var(--f-mono); padding: 6px 10px; border: 1px solid var(--line); }
.quote { margin: 14px 0 16px; font-size: 13px; }
.quote dt { font-size: 13px; }
.warn { margin: 0 0 14px; padding: 10px 12px; border-left: 2px solid var(--err); background: rgba(163, 64, 45, .06); font-size: 13px; }
.warn[hidden] { display: none; }

/* ------------------------------------------------------------------ 05 ledger */
.counters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 50px; background: var(--line-d); border: 1px solid var(--line-d); }
.ct { background: var(--night); padding: clamp(18px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ct-k { font: 500 10px/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute-d); }
.ct-v { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.1; overflow-wrap: anywhere; }
.ct-u { font-size: 12px; color: var(--mute-d); }
.rounds { margin-top: 40px; }
.tablewrap { overflow-x: auto; margin-top: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
th { text-align: left; font: 500 10px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute-d); padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line-d); }
td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line-d2); font-family: var(--f-mono); white-space: nowrap; }
td.empty { font-family: var(--f-body); white-space: normal; }
.r { text-align: right; }
.st { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.st-Open { color: var(--on-night); }
.st-Settled { color: var(--ok-d); }
.st-Void { color: var(--mute-d); }

/* ------------------------------------------------------------------ 06 docs */
.docs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 56px); margin-top: 50px; }
.disclaimer { padding: clamp(22px, 3vw, 36px); background: var(--ink); color: var(--on-night); align-self: start; }
.disclaimer .label { color: var(--mute-d); }
.disclaimer p { margin: 16px 0 0; font-size: 15px; color: #d4d2cd; }
.disclaimer b { color: var(--on-night); font-weight: 500; }
.docs-list details { border-top: 1px solid var(--line); }
.docs-list details:last-child { border-bottom: 1px solid var(--line); }
.docs-list summary { list-style: none; cursor: pointer; padding: 18px 30px 18px 0; position: relative; font: 400 22px/1.25 var(--f-serif); }
.docs-list summary::-webkit-details-marker { display: none; }
.docs-list summary::after { content: '+'; position: absolute; right: 2px; top: 16px; font: 300 22px var(--f-body); color: var(--mute); }
.docs-list details[open] summary::after { content: '−'; }
.docs-list p { margin: 0 0 20px; color: var(--ink-2); font-size: 15px; }
.docs-list sup { font-size: .7em; }
.addrs { margin-top: 56px; }
.addrs dl { margin: 14px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.addrs dl div { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; border-top: 1px solid var(--line); min-width: 0; }
.addrs dt { font-size: 12px; }
.addrs dd { text-align: left; font: 400 13px var(--f-mono); overflow-wrap: anywhere; }
.addrs dd.pending { color: var(--mute); font-family: var(--f-body); }

/* ------------------------------------------------------------------ footer */
.foot { background: var(--night); color: var(--on-night); padding: 72px 0 calc(40px + env(safe-area-inset-bottom)); }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: end; }
.foot-brand { display: flex; align-items: center; gap: 22px; }
.foot-tag { margin: 0; font: 400 clamp(14px, 1.8vw, 22px)/1.3 var(--f-wide); letter-spacing: .34em; text-transform: uppercase; }
.foot-links { display: flex; flex-direction: column; gap: 10px; text-align: right; font-size: 14px; }
.foot-links a { text-decoration: none; opacity: .8; }
.foot-links a:hover { opacity: 1; text-decoration: underline; }
.foot-fine { grid-column: 1 / -1; margin: 20px 0 0; padding-top: 20px; border-top: 1px solid var(--line-d); font-size: 12px; color: var(--mute-d); }

/* ------------------------------------------------------------------ wallet sheet */
.sheet { width: min(420px, calc(100vw - 32px)); padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink); }
.sheet::backdrop { background: rgba(12, 12, 13, .45); backdrop-filter: blur(3px); }
.sheet header { display: flex; justify-content: space-between; align-items: center; }
.wlist { display: grid; gap: 8px; margin-top: 18px; }
.wlist .btn { justify-content: flex-start; }
.wlist img { width: 22px; height: 22px; }
.wlist p { margin: 0; font-size: 13px; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ phase */
body[data-phase="predeploy"] .ct-v { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute-d); padding: 8px 0 6px; }
body[data-phase="predeploy"] .rs-dl dd, body[data-phase="predeploy"] .mkt-live dd { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
body[data-phase="predeploy"] .rs-dl dd { color: var(--mute-d); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .nav { display: none; }
  .top-right { margin-left: auto; }
  .counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .q-grid, .console, .score-grid, .mkt-grid, .docs-grid { grid-template-columns: minmax(0, 1fr); }
  .hs-x { display: none !important; }
}
@media (max-width: 640px) {
  .top { height: 58px; gap: 10px; }
  .top-right { gap: 8px; }
  #statusTag { display: none; }
  .btn { padding: 0 14px; }
  .top .btn { min-height: 40px; font-size: 13px; }
  .hero { min-height: 640px; }
  .hero-in { top: 96px; }
  .tagline { letter-spacing: .22em; margin-right: -.22em; }
  .kicker { letter-spacing: .12em; }
  .tagline span { display: block; }
  .hero-strip { flex-wrap: wrap; }
  .hero-strip .hs { flex: 1 1 33%; padding: 11px 12px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nudges { gap: 4px; }
  .addrs dl { grid-template-columns: minmax(0, 1fr); }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .foot-links { text-align: left; }
  .foot-brand { flex-direction: column; align-items: flex-start; gap: 16px; }
  .q-count { font-size: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live.on i { animation: none; }
}
