/* REFLUX · one dark theme sampled from the brand art */
:root, html { color-scheme: dark !important; }
:root {
  --deep: #071A29; --sea: #0B1F2E; --shelf: #10293D; --shelf-2: #163650; --line: rgba(246,244,236,.1); --line-2: rgba(246,244,236,.18);
  --teal: #2BC4B6; --teal-2: #29CBBA; --teal-dim: rgba(43,196,182,.14); --gold: #F5C451; --gold-dim: rgba(245,196,81,.14);
  --foam: #F6F4EC; --text: #DCE6EA; --mute: #8FA6B5; --bad: #F07167; --warn: #F2A541; --info: #7FB8E6;
  --fd: 'Plus Jakarta Sans', system-ui, sans-serif; --fb: 'Rethink Sans', system-ui, sans-serif; --fm: 'Red Hat Mono', ui-monospace, monospace;
  --r: 16px; --r-s: 10px; --gut: clamp(16px, 4vw, 56px); --max: 1240px; --strip: 56px;
}
*, *::before, *::after { box-sizing: border-box; }
* { scrollbar-width: thin; scrollbar-color: #2A4A63 transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: #2A4A63; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal); }
::-webkit-scrollbar-button { display: none; }
html { background: var(--deep); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--deep); color: var(--text); font: 400 16px/1.6 var(--fb); overflow-x: hidden; min-height: 100vh; }
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--foam); }
h1, h2, h3, h4 { font-family: var(--fd); color: var(--foam); margin: 0 0 .5em; line-height: 1.08; letter-spacing: -.02em; }
h1 { font-size: clamp(38px, 6vw, 78px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 46px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--fm); }
code { font-size: .88em; color: var(--foam); background: rgba(246,244,236,.06); padding: .1em .35em; border-radius: 5px; }
code.wrap { overflow-wrap: anywhere; word-break: break-word; }
.gold { color: var(--gold) !important; }
.ok { color: var(--teal) !important; } .bad { color: var(--bad) !important; } .muted { color: var(--mute); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.pad { padding-top: clamp(64px, 10vw, 130px); padding-bottom: clamp(32px, 5vw, 60px); }
.row { display: flex; align-items: center; } .gap { gap: 12px; flex-wrap: wrap; } .wrapr { flex-wrap: wrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--gold); color: var(--deep); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.noscript { padding: 40px; max-width: 720px; margin: 0 auto; }

/* layers */
#flux { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; image-rendering: auto; filter: blur(14px) saturate(1.1); opacity: .9; transition: opacity .8s; }
body[data-mode="app"] #flux { opacity: .32; }
.grain { position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
main, .foot { position: relative; z-index: 2; }
main { padding-top: var(--strip); min-height: 80vh; outline: none; }
#cursor { position: fixed; left: -18px; top: -18px; width: 36px; height: 36px; border: 1.5px solid var(--teal); border-radius: 50%; z-index: 400; pointer-events: none; opacity: 0; transition: width .2s, height .2s, left .2s, top .2s, opacity .3s, background .2s; mix-blend-mode: screen; }
#cursor.on { opacity: .8; }
#cursor.big { width: 56px; height: 56px; left: -28px; top: -28px; background: var(--teal-dim); border-color: var(--gold); }

/* loader */
#loader { position: fixed; inset: 0; z-index: 500; background: var(--deep); display: grid; place-items: center; clip-path: inset(0 0 0 0); }
.ld-stage { position: relative; width: min(52vw, 280px); }
.ld-svg { width: 100%; overflow: visible; }
.ld-track, .ld-path, .ld-head { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ld-track { stroke: rgba(43,196,182,.14); stroke-width: 9; }
.ld-path { stroke: var(--teal); stroke-width: 9; }
.ld-head { stroke: var(--teal); stroke-width: 7; opacity: 0; transition: opacity .3s; }
#loader.back .ld-head { opacity: 1; }
.ld-drop { fill: var(--gold); filter: drop-shadow(0 0 6px rgba(245,196,81,.8)); }
.ld-mark { position: absolute; width: 34%; left: 33%; top: 18%; opacity: 0; transform: scale(.5); }
.ld-meta { position: absolute; bottom: 48px; left: 0; right: 0; display: flex; justify-content: center; gap: 22px; color: var(--mute); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.ld-name { font-family: var(--fd); font-weight: 800; color: var(--foam); letter-spacing: .3em; }
.ld-pct { color: var(--gold); }

/* U-turn transition */
#uturn { position: fixed; inset: 0; z-index: 450; pointer-events: none; visibility: hidden; }
#uturn.on { visibility: visible; pointer-events: all; }
#uturn svg { width: 100%; height: 100%; display: block; }
.ut-band { fill: none; stroke: var(--teal); stroke-width: 92; }
.ut-line { fill: none; stroke: var(--gold); stroke-width: .35; }
.ut-tag { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: flex; align-items: baseline; gap: 14px; color: var(--deep); opacity: 0; }
.ut-idx { font-size: 14px; font-weight: 600; }
.ut-name { font-family: var(--fd); font-weight: 800; font-size: clamp(40px, 7vw, 96px); letter-spacing: -.03em; }

/* status strip */
.strip { position: fixed; top: 0; left: 0; right: 0; height: var(--strip); z-index: 100; display: flex; align-items: center; gap: 16px; padding: 0 var(--gut); background: rgba(7,26,41,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--foam); font-family: var(--fd); font-weight: 800; letter-spacing: .14em; font-size: 15px; }
.brand img { width: 24px; height: auto; }
.head-chip { margin-left: 8px; font-size: 12px; color: var(--mute); display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.head-chip i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.head-chip i.live { background: var(--teal); box-shadow: 0 0 0 4px var(--teal-dim); animation: pulse 2s infinite; }
.head-chip i.stale { background: var(--warn); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
.strip-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.soc { color: var(--mute); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); }
.soc:hover { color: var(--foam); border-color: var(--teal); }
.wallet .wdot { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); display: inline-block; margin-right: 8px; }
.wallet .wdot.in { background: var(--teal); }
.wallet { font-family: var(--fm); }
.wallet.on { background: transparent; color: var(--foam); box-shadow: inset 0 0 0 1px var(--line-2); }
.wallet.on:hover { box-shadow: inset 0 0 0 1px var(--teal); background: var(--teal-dim); color: var(--teal); }

/* return dial */
.dial { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 120; }
.dial-btn { position: relative; width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--shelf); display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 40px rgba(0,0,0,.45), inset 0 0 0 1px var(--line-2); transition: transform .3s, background .3s; }
.dial-btn img { width: 26px; height: auto; transition: transform .5s cubic-bezier(.6,-.3,.3,1.4); }
.dial-btn:hover { background: var(--shelf-2); }
.dial.open .dial-btn img { transform: rotate(-180deg); }
.dial-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.dial-ring circle { fill: none; stroke: var(--gold); stroke-width: 2; stroke-dasharray: 188.5; stroke-dashoffset: 188.5; transition: stroke-dashoffset .6s; }
.dial.open .dial-ring circle, .dial-btn:hover .dial-ring circle { stroke-dashoffset: 94; }
.dial-now { position: absolute; right: 76px; bottom: 20px; white-space: nowrap; font-family: var(--fd); font-weight: 700; color: var(--foam); font-size: 13px; padding: 4px 12px; border-radius: 99px; background: rgba(7,26,41,.8); border: 1px solid var(--line); transition: opacity .2s; }
.dial-now .mono { color: var(--gold); font-size: 11px; }
.dial.open .dial-now { opacity: 0; }
.dial-arc { position: absolute; right: 32px; bottom: 32px; width: 0; height: 0; pointer-events: none; }
.dial-arc a { --a: calc(var(--i) * 30deg); position: absolute; right: 0; bottom: 0; display: flex; align-items: baseline; gap: 8px; white-space: nowrap; padding: 9px 16px; border-radius: 99px; background: rgba(16,41,61,.94); border: 1px solid var(--line-2); color: var(--foam); backdrop-filter: blur(10px); opacity: 0; transform: translate(0,0) scale(.6); transition: transform .45s cubic-bezier(.3,1.4,.5,1), opacity .25s, background .2s; transition-delay: calc(var(--i) * 25ms); }
.dial-arc a b { font-family: var(--fd); font-size: 15px; }
.dial-arc a small { color: var(--mute); font-size: 12px; }
.dial-arc a .mono { color: var(--gold); font-size: 11px; }
.dial-arc a:hover, .dial-arc a:focus-visible { background: var(--teal); color: var(--deep); }
.dial-arc a:hover small, .dial-arc a:hover .mono, .dial-arc a:focus-visible small, .dial-arc a:focus-visible .mono { color: var(--deep); }
.dial-arc a.cur { border-color: var(--gold); }
.dial.open .dial-arc { pointer-events: all; }
/* U-turn arc: items travel up and left along a half-loop */
.dial.open .dial-arc a { opacity: 1; transform: translate(calc(-48px - sin(var(--a)) * 230px), calc(-60px - (1 - cos(var(--a))) * 205px)); }

/* buttons, chips */
.btn { --bg: var(--teal); display: inline-flex; align-items: center; gap: 8px; justify-content: center; font: 700 15px/1 var(--fd); color: var(--deep); background: var(--bg); border: 0; border-radius: 99px; padding: 14px 22px; cursor: pointer; transition: background .2s, color .2s, transform .25s, box-shadow .2s; text-decoration: none; min-height: 44px; }
.btn:hover { background: var(--gold); color: var(--deep); box-shadow: 0 10px 30px rgba(245,196,81,.2); }
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; background: var(--teal); }
.btn.ghost { background: transparent; color: var(--foam); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--teal); color: var(--teal); background: var(--teal-dim); }
.btn.sm { padding: 10px 16px; font-size: 14px; min-height: 40px; }
.btn.xs { padding: 7px 12px; font-size: 13px; min-height: 32px; }
.strip .btn { min-height: 36px; padding: 9px 16px; font-size: 13px; }
.icon-btn { background: none; border: 0; color: var(--mute); cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.icon-btn:hover { color: var(--foam); background: var(--line); }
.linkbtn { background: none; border: 0; color: var(--teal); cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px/1 var(--fm); padding: 5px 9px; border-radius: 99px; white-space: nowrap; letter-spacing: .02em; vertical-align: middle; }
.chip-ok { background: var(--teal-dim); color: var(--teal); } .chip-done { background: rgba(127,184,230,.14); color: var(--info); }
.chip-gold { background: var(--gold-dim); color: var(--gold); } .chip-warn { background: rgba(242,165,65,.14); color: var(--warn); }
.chip-bad { background: rgba(240,113,103,.14); color: var(--bad); } .chip-mute { background: rgba(143,166,181,.14); color: var(--mute); } .chip-info { background: rgba(127,184,230,.12); color: var(--info); }
.hash { font: 500 12.5px var(--fm); color: var(--teal); background: none; border: 0; border-bottom: 1px dashed rgba(43,196,182,.5); padding: 0; cursor: pointer; }
.hash:hover { color: var(--gold); border-color: var(--gold); }
.tlink { display: inline-flex; gap: 6px; align-items: center; font-family: var(--fd); font-weight: 700; color: var(--teal); }
.tlink.sm { font-size: 13px; }
.tlink:hover { color: var(--gold); }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.eyebrow span { color: var(--gold); }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--text); max-width: 62ch; line-height: 1.55; }
.lead.narrow { max-width: 52ch; }
.note { font-size: 13.5px; color: var(--mute); border-left: 2px solid var(--gold); padding: 2px 0 2px 12px; }
.err { color: var(--bad); font-size: 14px; }
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; margin-bottom: -.06em; }
.wi { display: inline-block; }
[data-reveal] { opacity: 0; transform: translateY(26px); }
[data-reveal].shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* glare cards */
.glare { position: relative; isolation: isolate; }
.glare::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(43,196,182,.12), transparent 45%); opacity: 0; transition: opacity .3s; z-index: -1; }
.glare:hover::after { opacity: 1; }
.panel { background: rgba(16,41,61,.62); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 2.4vw, 28px); backdrop-filter: blur(8px); }
.panel h3 { margin-bottom: .6em; }
.need { text-align: left; max-width: 560px; }
.empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--mute); }
.empty svg { margin: 0 auto 12px; color: var(--teal); }
.empty h4 { font-size: 18px; }
.empty .btn { margin-top: 8px; }

/* hero */
.hero { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; min-height: calc(100vh - var(--strip)); max-width: 1440px; margin: 0 auto; }
.hero-l { padding: clamp(48px, 8vh, 110px) var(--gut) 60px; align-self: center; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(42px, 6.2vw, 92px); margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { margin-bottom: 28px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 28px; margin: 44px 0 0; max-width: 560px; }
.hero-stats dt { font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: .1em; }
.hero-stats dd { margin: 4px 0 0; font: 800 28px var(--fd); color: var(--foam); }
.hero-stats small { font-size: 13px; color: var(--mute); font-weight: 500; margin-left: 2px; }
.hero-r { position: relative; overflow: hidden; }
.collage { position: absolute; inset: 0; }
.tile { position: absolute; border-radius: 22px; border: 1px solid var(--line-2); background: rgba(16,41,61,.82); box-shadow: 0 30px 60px rgba(0,0,0,.35); backdrop-filter: blur(6px); }
.tile.data { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 16px 20px; }
.tile.data small { color: var(--mute); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.tile.data b { font: 800 clamp(18px, 1.8vw, 26px) var(--fd); color: var(--foam); white-space: nowrap; }
.tile.data b.mono { font: 600 clamp(15px, 1.3vw, 19px) var(--fm); color: var(--teal); }
.tile.data b i { font-style: normal; color: var(--mute); } .tile.data b em { font-style: normal; color: var(--gold); }
.tile.data span { color: var(--mute); font-size: 11.5px; }
.t0 { width: 34%; height: 30%; left: 6%; top: 9%; display: grid; place-items: center; background: linear-gradient(145deg, #0E2B40, #0A2132); }
.t0 img { width: 42%; height: auto; }
.t1 { width: 36%; left: 44%; top: 28%; }
.t2 { width: 36%; left: 14%; top: 47%; }
.t3 { width: 44%; left: 6%; top: 69%; }
.t4 { width: 10%; height: 10%; left: 58%; top: 52%; background: var(--gold); border: 0; }
.t5 { width: 12%; height: 8%; left: 46%; top: 6%; background: var(--teal); border: 0; }
.loop { position: absolute; inset: 6% 2% 6% 4%; width: 94%; height: 88%; }
.loop .node rect { fill: rgba(7,26,41,.86); stroke: var(--line-2); }
.loop text { fill: var(--foam); font: 700 15px var(--fd); text-anchor: middle; }
.loop text.sm { font: 500 11px var(--fm); fill: var(--mute); }
.loop text.lbl { font: 500 12px var(--fm); fill: var(--teal); }
.loop text.lbl.gold { fill: var(--gold); }
.hdrop { fill: var(--teal); filter: drop-shadow(0 0 6px rgba(43,196,182,.9)); }
.hdrop.gold { fill: var(--gold); filter: drop-shadow(0 0 6px rgba(245,196,81,.9)); }

/* worked example */
.ex-sentence { font: 700 clamp(22px, 3.1vw, 40px)/1.45 var(--fd); color: var(--foam); letter-spacing: -.015em; max-width: 26em; }
.ex-sentence label { white-space: nowrap; color: var(--gold); }
.ex-sentence input { font: inherit; color: var(--gold); background: transparent; border: 0; border-bottom: 2px dashed rgba(245,196,81,.55); width: 3.2ch; text-align: center; padding: 0; }
.ex-sentence input:focus { outline: none; border-bottom-color: var(--teal); }
.ex-out { margin-top: 30px; }
.ex-steps { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 18px; }
.ex-steps div { padding: 16px 18px; border-right: 1px solid var(--line); }
.ex-steps div:last-child { border-right: 0; }
.ex-steps .res { background: var(--gold-dim); }
.ex-steps small { display: block; color: var(--mute); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.ex-steps b { font: 700 20px var(--fm); color: var(--foam); }
.ex-out p { max-width: 70ch; }

/* pour set-piece */
.pour { position: relative; }
.pour-pin { min-height: 100vh; display: flex; align-items: center; }
.pour-in { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.pour-copy { position: relative; min-height: 300px; }
.pstep { position: absolute; left: 0; right: 0; top: 46px; opacity: 0; transform: translateY(14px); transition: opacity .45s, transform .45s; }
.pstep.on { opacity: 1; transform: none; }
.pstep h3 { font-size: clamp(24px, 2.6vw, 34px); }
.pour-chart { position: relative; background: rgba(11,31,46,.75); border: 1px solid var(--line); border-radius: 24px; padding: 18px; }
#pourSvg { width: 100%; height: auto; display: block; }
#pourSvg .axis { stroke: var(--line-2); }
#pourSvg .pcol { fill: none; stroke: var(--teal); stroke-width: 1.5; }
#pourSvg .pfill { fill: var(--gold); opacity: .85; }
#pourSvg .pfill.over { fill: #F8D98C; }
#pourSvg .plbl { fill: var(--mute); font: 500 10px var(--fm); text-anchor: middle; }
#pourSvg .capline line { stroke: var(--bad); stroke-width: 1.5; stroke-dasharray: 6 5; }
#pourSvg .capline text { fill: var(--bad); font: 600 11px var(--fm); text-anchor: start; }
#pourSvg .res-box { fill: none; stroke: var(--line-2); }
#pourSvg .res-fill { fill: var(--gold); opacity: .75; }
#pourSvg .lef-fill { fill: var(--teal); opacity: .6; }
#pourSvg g text { fill: var(--foam); font: 700 12px var(--fd); text-anchor: middle; }
.pour-tally { margin-top: 10px; font-size: 13px; color: var(--gold); }

/* live strip */
.lgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 18px; }
.lcell { background: var(--sea); padding: 20px; min-width: 0; }
.lcell small { color: var(--mute); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.lcell b { display: block; font: 700 22px var(--fm); color: var(--foam); margin: 6px 0 4px; overflow-wrap: anywhere; }
.lcell i { font-style: normal; font-size: 11px; color: var(--mute); display: block; overflow-wrap: anywhere; }

/* roles */
.rgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.rcard { background: rgba(16,41,61,.55); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; }
.rcard .n { color: var(--gold); font-size: 13px; margin-bottom: 30px; }
.rcard p { color: var(--text); flex: 1; }
.rnote { margin-top: 22px; color: var(--mute); max-width: 70ch; }

/* verify */
.vgrid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.ticks { list-style: none; padding: 0; margin: 0 0 26px; }
.ticks li { padding: 8px 0 8px 28px; position: relative; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 16px; width: 10px; height: 6px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.tree { width: 100%; height: auto; }
.tree .tl { fill: none; stroke: var(--teal); stroke-width: 1.6; opacity: .75; }
.tree .tn { fill: var(--sea); stroke: var(--teal); stroke-width: 2; }
.tree .tn.l0 { fill: var(--gold); stroke: none; }
.tree .tn.l3 { fill: var(--teal); }
.tree .tr { fill: var(--teal); font: 700 13px var(--fm); text-anchor: middle; }
.tree .tlf { fill: var(--mute); font: 500 11px var(--fm); text-anchor: middle; }

/* programs */
.sec-h { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 22px; }
.pcard { display: flex; flex-direction: column; gap: 18px; padding: 22px; border-radius: 20px; background: rgba(16,41,61,.6); border: 1px solid var(--line); color: var(--text); transition: border-color .2s, transform .3s; }
.pcard:hover { border-color: var(--teal); color: var(--text); transform: translateY(-3px); }
.pc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pc-top b { font: 800 20px var(--fd); color: var(--foam); }
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pc-grid small { display: block; color: var(--mute); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.pc-grid span { font-family: var(--fm); font-size: 14px; color: var(--foam); }
.pc-foot { display: flex; justify-content: space-between; color: var(--mute); font-size: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.pc-foot span { color: var(--teal); }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font: 700 18px var(--fd); color: var(--foam); padding: 16px 36px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 22px; width: 10px; height: 10px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(45deg); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq details p { color: var(--text); max-width: 70ch; padding-bottom: 8px; }
.faqt .faq { margin: 10px 0 24px; }

/* closing */
.closing { position: relative; padding: clamp(90px, 14vw, 180px) 0; overflow: hidden; }
.cl-loop { position: absolute; inset: 10% 0; width: 100%; height: 80%; }
.cl-loop path { fill: none; stroke: var(--teal); stroke-width: 70; opacity: .13; }
.cl-in { position: relative; text-align: left; padding-left: clamp(30px, 22vw, 330px); }
.cl-in h2 { font-size: clamp(44px, 7vw, 100px); }

/* footer */
.foot { margin-top: 60px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(4,16,26,.8)); }
.floop { position: relative; padding-top: 60px; padding-bottom: 40px; }
.floop-svg { position: absolute; inset: 20px var(--gut) 10px; width: calc(100% - 2 * var(--gut)); height: calc(100% - 30px); pointer-events: none; }
.floop-svg path { fill: none; stroke: var(--line-2); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.floop-svg circle { fill: var(--gold); }
.frow { position: relative; display: grid; gap: 30px; }
.frow.top { grid-template-columns: 1.4fr repeat(3, 1fr); padding: 30px 0 30px clamp(20px, 14%, 170px); }
.frow.bot { grid-template-columns: 1fr auto; align-items: center; padding: 26px 0 10px clamp(20px, 14%, 170px); }
.fbrand { display: flex; gap: 14px; align-items: flex-start; }
.fbrand b { font: 800 22px var(--fd); color: var(--foam); letter-spacing: .14em; }
.fbrand p { color: var(--mute); margin: 4px 0 0; }
.fcol h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--gold); font-family: var(--fm); }
.fcol a { display: block; color: var(--text); padding: 4px 0; }
.fcol a:hover { color: var(--teal); }
.fnote { color: var(--mute); font-size: 13.5px; max-width: 70ch; margin: 0; }
.fstatus { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; padding: 16px var(--gut) calc(16px + env(safe-area-inset-bottom)); font-size: 11.5px; color: var(--mute); border-top: 1px solid var(--line); padding-right: 100px; }
.fstatus .demo { color: var(--warn); }

/* page heads */
.phead { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-top: clamp(44px, 7vw, 90px); padding-bottom: 30px; flex-wrap: wrap; }
.phead h1 { font-size: clamp(36px, 5vw, 64px); max-width: 16em; }
.sub { font-size: clamp(22px, 2.2vw, 28px); margin: 48px 0 16px; }

/* tables, kv */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: rgba(11,31,46,.6); overscroll-behavior-x: contain; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font: 600 11.5px var(--fm); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: rgba(43,196,182,.04); }
.tbl .r { text-align: right; font-family: var(--fm); }
.tbl.sm td, .tbl.sm th { padding: 8px 10px; font-size: 13px; }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv > span { color: var(--mute); flex: none; }
.kv > b { font-weight: 500; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.facts { margin: 0; display: grid; gap: 0; }
.facts div { padding: 11px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 140px 1fr; gap: 14px; }
.facts dt { color: var(--mute); font-size: 13.5px; }
.facts dd { margin: 0; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.kpis.sm { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.kpi { background: rgba(16,41,61,.6); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.kpi small { display: block; color: var(--mute); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.kpi b { font: 600 17px var(--fm); color: var(--foam); overflow-wrap: anywhere; }
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }

/* forms */
input, select, textarea { font: 400 15px var(--fb); color: var(--foam); background: rgba(7,26,41,.8); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; min-height: 44px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-dim); }
select { width: auto; }
label { display: block; font-size: 13.5px; color: var(--mute); }
label input, label textarea, label select { margin-top: 6px; }
label small { display: block; margin-top: 4px; font-size: 12px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.fgrid.three { grid-template-columns: repeat(3, 1fr); }
.toolbar input { max-width: 320px; }

/* claim */
.who { font-size: 13px; color: var(--mute); margin-bottom: 12px; }
.mine { display: grid; gap: 12px; margin-bottom: 18px; }
.mcard { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 18px; background: rgba(16,41,61,.6); border: 1px solid var(--line); color: var(--text); }
.mcard:hover { border-color: var(--teal); color: var(--text); }
.mcard b { font: 800 19px var(--fd); color: var(--foam); display: block; }
.mcard small { color: var(--mute); }
.mcard .r { text-align: right; }
.mcard .r b { font-family: var(--fm); }
.onchain { margin-top: 10px; color: var(--teal); font-size: 13px; overflow-wrap: anywhere; }
.lookup { margin: 26px 0 0; max-width: 620px; }
.lookup .row { gap: 10px; margin-top: 6px; }
.claimwrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.claimtop { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 26px; border-radius: 22px; background: linear-gradient(135deg, rgba(43,196,182,.16), rgba(245,196,81,.08)); border: 1px solid rgba(43,196,182,.3); margin-bottom: 18px; }
.claimtop small { display: block; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.claimtop .big { display: block; font: 800 clamp(34px, 5vw, 52px)/1.1 var(--fd); margin: 4px 0 6px; }
.claimtop .mono { font-size: 12px; color: var(--mute); }
.eplist { display: grid; gap: 10px; }
.eprow { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.3fr auto; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; background: rgba(16,41,61,.5); border: 1px solid var(--line); }
.eprow small { display: block; color: var(--mute); font-size: 11.5px; }
.ep-a b { font-family: var(--fd); color: var(--foam); }
.ep-n span { font-family: var(--fm); font-size: 14px; }
.ep-s { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ep-x { display: flex; gap: 10px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.cside { position: sticky; top: calc(var(--strip) + 20px); }

/* ledger */
.txfeed { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.txi { display: grid; grid-template-columns: 110px 1.4fr auto auto 120px 140px auto; gap: 14px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; background: rgba(11,31,46,.6); }
.txi:last-child { border-bottom: 0; }
.txi b { font-weight: 600; color: var(--foam); font-family: var(--fm); font-size: 13px; }
.rep .kpis { margin-bottom: 20px; }
.rgrid2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; }
.rcout { margin-top: 14px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 10px 12px 10px 34px; border-radius: 10px; margin-bottom: 6px; position: relative; font-size: 14px; background: rgba(7,26,41,.6); }
.checks li code { display: block; margin-top: 4px; }
.checks li::before { content: ''; position: absolute; left: 12px; top: 15px; width: 10px; height: 10px; border-radius: 50%; }
.checks li.ok::before { background: var(--teal); } .checks li.bad::before { background: var(--bad); }
.file { margin: 10px 0 14px; }
.file input { padding: 9px; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 14px; }

/* console */
.teambar { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; margin-bottom: 22px; }
.teambar small { display: block; color: var(--mute); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.teambar b { font-family: var(--fd); color: var(--foam); }
.teambar .clock { margin-left: auto; }
.pblock { margin-bottom: 22px; }
.pblock header { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pblock h2 { font-size: 26px; margin-bottom: 4px; }
.pblock .mono.muted { font-size: 12.5px; }
.pb-k { display: flex; gap: 22px; flex-wrap: wrap; }
.pb-k small { display: block; color: var(--mute); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.pb-k b { font-family: var(--fm); font-weight: 600; color: var(--foam); }
.pb-meta { font-size: 12.5px; color: var(--mute); margin: 12px 0 14px; }
.prevrow td { white-space: normal; background: rgba(7,26,41,.7); }
.preview { padding: 10px 4px; }
.pv-grid { display: grid; grid-template-columns: 320px minmax(0,1fr); gap: 22px; }
.pv-form label { margin-bottom: 12px; }
.pv-form .row { margin-top: 14px; }
.regform { margin-top: 22px; max-width: 760px; }

/* launch */
.launch { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.lform fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin: 0 0 16px; background: rgba(16,41,61,.45); }
.lform legend { font: 700 15px var(--fd); color: var(--foam); padding: 0 8px; }
.lform legend .mono { color: var(--gold); font-size: 12px; margin-right: 6px; }
.checks-list { display: grid; gap: 8px; margin-bottom: 8px; }
.ck { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; color: var(--text); }
.ck input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--teal); }
.ck span { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.ck:has(input:checked) { border-color: var(--teal); background: var(--teal-dim); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 99px; padding: 4px; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: block; padding: 9px 16px; border-radius: 99px; cursor: pointer; color: var(--text); font-weight: 600; font-size: 14px; }
.seg input:checked + span { background: var(--teal); color: var(--deep); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); }
.nets { display: grid; gap: 10px; }
.net { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; color: var(--text); }
.net input { width: 18px; height: 18px; min-height: 0; margin: 3px 0 0; accent-color: var(--teal); }
.net b { display: block; color: var(--foam); }
.net.locked { opacity: .7; cursor: not-allowed; }
.errs ul { color: var(--bad); margin: 0 0 16px; padding: 14px 14px 14px 32px; border: 1px solid rgba(240,113,103,.35); border-radius: 12px; background: rgba(240,113,103,.06); }
.sticky { position: sticky; top: calc(var(--strip) + 20px); }
.success { max-width: 760px; }

/* pulse */
.pgrid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pcell { background: rgba(16,41,61,.6); border: 1px solid var(--line); border-radius: 16px; padding: 18px; min-width: 0; }
.pcell small { color: var(--mute); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.pcell b { display: block; font: 600 22px var(--fm); color: var(--foam); margin: 6px 0; overflow-wrap: anywhere; }
.pcell b small { font-size: 12px; text-transform: none; letter-spacing: 0; }
.pcell i { font-style: normal; font-size: 11px; color: var(--mute); overflow-wrap: anywhere; display: block; }
.pul2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
.worth { margin-top: 18px; }
.split { display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: center; }
.split p { grid-column: 1 / -1; color: var(--mute); font-size: 14px; margin: 0; }
.donut circle { fill: none; stroke-width: 14; }
.donut .d0 { stroke: #2A4A63; } .donut .d1 { stroke: var(--gold); } .donut .d2 { stroke: var(--teal); }
.donut text { fill: var(--foam); font: 800 18px var(--fd); text-anchor: middle; }
.donut text.sm { font: 500 10px var(--fm); fill: var(--mute); }
.legend { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.legend li { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.legend i { width: 12px; height: 12px; border-radius: 3px; }
.legend i.d0 { background: #2A4A63; } .legend i.d1 { background: var(--gold); } .legend i.d2 { background: var(--teal); }

/* docs */
.dsearch { min-width: min(100%, 320px); }
.dsearch.sm { min-width: 220px; }
.dres ul { list-style: none; padding: 0; margin: 0 0 24px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.dres li a { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(16,41,61,.8); color: var(--text); }
.dres li a:hover { background: var(--shelf-2); }
.dres b { color: var(--foam); display: block; }
.dres small { color: var(--mute); overflow-wrap: anywhere; }
.chap { margin-bottom: 40px; }
.chap-h { display: flex; gap: 14px; align-items: baseline; }
.chap-h .mono { color: var(--gold); font-size: 13px; }
.chap-h h2 { font-size: 28px; }
.track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))) 18px; scroll-padding: 0 max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); overscroll-behavior-x: contain; }
.dcard { flex: 0 0 min(300px, 78vw); scroll-snap-align: start; min-height: 210px; padding: 22px; border-radius: 20px; background: rgba(16,41,61,.65); border: 1px solid var(--line); color: var(--text); display: flex; flex-direction: column; transition: border-color .2s, transform .3s; }
.dcard:hover { border-color: var(--teal); color: var(--text); transform: translateY(-4px); }
.dcard .mono { font-size: 11px; color: var(--gold); letter-spacing: .1em; }
.dcard h3 { margin: 18px 0 8px; font-size: 21px; }
.dcard p { color: var(--mute); flex: 1; font-size: 14.5px; }
.dcard i { color: var(--teal); }
.reader { padding-bottom: 100px; }
.rhead { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; flex-wrap: wrap; }
.crumb { font-size: 12.5px; color: var(--mute); }
.rbody { max-width: 820px; padding-top: 30px; }
.rbody h1 { font-size: clamp(34px, 4.6vw, 56px); }
.prose { margin-top: 26px; }
.prose h2 { font-size: 24px; margin: 36px 0 12px; }
.prose p, .prose li { color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose .tbl-wrap { margin: 18px 0; }
.prose .tbl td { white-space: normal; min-width: 120px; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding: 12px 0 12px 48px; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 13px; font: 600 13px var(--fm); color: var(--gold); }
.code { background: #051521; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 16px 0; font: 13px/1.65 var(--fm); color: #BFE9E3; white-space: pre-wrap; overflow-x: hidden; overflow-wrap: anywhere; word-break: break-word; overscroll-behavior: contain; max-height: 460px; overflow-y: auto; }
.code code { background: none; padding: 0; color: inherit; font-size: inherit; }
.apic { margin: 20px 0; }
.apic input { flex: 1; min-width: 200px; font-family: var(--fm); font-size: 13px; }
.chips-row { margin-top: 10px; }
.chipbtn { font: 500 12px var(--fm); color: var(--teal); background: var(--teal-dim); border: 0; border-radius: 99px; padding: 7px 12px; cursor: pointer; }
.chipbtn:hover { background: var(--teal); color: var(--deep); }
.warnp { border-color: rgba(245,196,81,.35); margin-top: 18px; }
.rstrip { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: rgba(7,26,41,.9); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.rprog { height: 3px; background: var(--line); }
.rprog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--gold)); }
.rnav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); padding-right: 100px; font-size: 14px; }
.rnav a { display: inline-flex; gap: 6px; align-items: center; color: var(--foam); font-weight: 600; min-height: 40px; }
.rnav a:hover { color: var(--teal); }
.rnav .mono { color: var(--mute); font-size: 12px; white-space: nowrap; }
body[data-view="docs"] .dial { bottom: max(70px, calc(env(safe-area-inset-bottom) + 70px)); }
.tests { margin-top: 20px; }
.tlist { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tlist li { display: grid; grid-template-columns: 50px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(11,31,46,.6); }
.tlist li:last-child { border-bottom: 0; }
.tlist li > .mono { color: var(--gold); font-size: 13px; }
.tlist b { font-weight: 600; font-size: 14.5px; color: var(--foam); display: block; }
.tlist small { color: var(--mute); font-size: 12px; overflow-wrap: anywhere; }
.tsum { margin-top: 12px; color: var(--teal); }

/* modal, flow, toast */
.modal { position: fixed; inset: 0; z-index: 600; display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .25s; }
.modal.in { opacity: 1; }
.modal-back { position: absolute; inset: 0; background: rgba(3,12,20,.72); backdrop-filter: blur(6px); }
.modal-card { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; background: var(--sea); border: 1px solid var(--line-2); border-radius: 22px; padding: 22px; box-shadow: 0 40px 100px rgba(0,0,0,.6); transform: translateY(18px) scale(.98); transition: transform .3s; }
.modal-card.wide { width: min(760px, 100%); }
.modal.in .modal-card { transform: none; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.modal-head h3 { margin: 0; font-size: 21px; }
.modal-body .row { margin-top: 16px; }
.opt { display: block; width: 100%; text-align: left; background: rgba(16,41,61,.7); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 8px; color: var(--foam); cursor: pointer; font: inherit; }
.opt:hover:not(:disabled) { border-color: var(--teal); }
.opt:disabled { opacity: .5; cursor: not-allowed; }
.opt b { display: block; font-family: var(--fd); }
.opt small { color: var(--mute); overflow-wrap: anywhere; }
.label { font: 600 11.5px var(--fm); text-transform: uppercase; letter-spacing: .1em; color: var(--mute); margin: 18px 0 8px; }
.flow { list-style: none; padding: 0; margin: 0 0 18px; }
.flow li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.flow li b { font-weight: 600; color: var(--foam); font-size: 14.5px; overflow-wrap: anywhere; }
.flow li small { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--mute); margin-top: 4px; }
.flow .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); margin-top: 4px; }
.flow li.run .dot { border-color: var(--gold); border-top-color: transparent; animation: spin .8s linear infinite; }
.flow li.ok .dot { background: var(--teal); border-color: var(--teal); }
.flow li.bad .dot { background: var(--bad); border-color: var(--bad); }
@keyframes spin { to { transform: rotate(360deg); } }
.flow-foot { display: flex; gap: 10px; }
#toasts { position: fixed; left: 50%; top: calc(var(--strip) + 12px); transform: translateX(-50%); z-index: 700; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { background: var(--shelf); border: 1px solid var(--line-2); border-left: 3px solid var(--info); border-radius: 12px; padding: 12px 16px; color: var(--foam); font-size: 14px; opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s; box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.toast.in { opacity: 1; transform: none; }
.toast-ok { border-left-color: var(--teal); } .toast-bad { border-left-color: var(--bad); }
.nf { min-height: 60vh; }

/* responsive */
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .lgrid { grid-template-columns: repeat(3, 1fr); }
  .pgrid4 { grid-template-columns: repeat(2, 1fr); }
  .txi { grid-template-columns: 90px 1fr auto auto; }
  .txi > :nth-child(5), .txi > :nth-child(6) { display: none; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-r { height: 420px; order: 2; }
  .pour-in { grid-template-columns: 1fr; }
  .pour-pin { padding: 70px 0 24px; align-items: flex-start; }
  .pour-copy { min-height: 190px; }
  .pstep { top: 34px; }
  .rgrid, .vgrid, .rgrid2, .pul2 { grid-template-columns: 1fr; }
  .claimwrap, .launch { grid-template-columns: 1fr; }
  .cside, .sticky { position: static; }
  .pv-grid { grid-template-columns: 1fr; }
  .frow.top { grid-template-columns: 1fr 1fr; padding-left: 40px; }
  .frow.bot { grid-template-columns: 1fr; padding-left: 40px; }
  .fbrand { grid-column: 1 / -1; }
  .ex-steps { grid-template-columns: repeat(2, 1fr); }
  .ex-steps div { border-bottom: 1px solid var(--line); }
  .ex-steps .res { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  :root { --strip: 52px; }
  .head-chip, .strip .cta, .strip .soc { display: none; }
  .dial-now { display: none; }
  .dial-arc { position: fixed; right: 12px; left: 12px; bottom: 92px; width: auto; height: auto; display: grid; gap: 6px; padding: 10px; border-radius: 22px; background: rgba(11,31,46,.97); border: 1px solid var(--line-2); opacity: 0; transform: translateY(14px); transition: opacity .25s, transform .3s; box-shadow: 0 30px 80px rgba(0,0,0,.6); visibility: hidden; }
  .dial-arc a { position: static; opacity: 1; transform: none; border-radius: 14px; padding: 13px 14px; background: transparent; border: 0; min-height: 44px; }
  .dial.open .dial-arc { opacity: 1; transform: none; visibility: visible; }
  .dial.open .dial-arc a { transform: none; }
  .dial-arc a.cur { background: var(--teal-dim); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .hero-stats div:last-child { grid-column: 1 / -1; }
  .hero-r { height: 330px; }
  .lgrid { grid-template-columns: 1fr 1fr; }
  .lgrid .lcell:last-child { grid-column: 1 / -1; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis.sm { grid-template-columns: 1fr 1fr 1fr; }
  .pgrid4 { grid-template-columns: 1fr 1fr; }
  .fgrid, .fgrid.three { grid-template-columns: 1fr; }
  .eprow { grid-template-columns: 1fr 1fr; }
  .ep-a, .ep-s, .ep-x { grid-column: 1 / -1; }
  .ep-x { justify-content: flex-start; }
  .ep-x .btn { flex: 1; }
  .claimtop { padding: 20px; }
  .claimtop .btn { width: 100%; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .frow.top, .frow.bot { padding-left: 0; }
  .floop-svg { display: none; }
  .fstatus { padding-right: var(--gut); padding-bottom: calc(90px + env(safe-area-inset-bottom)); justify-content: flex-start; }
  .txi { grid-template-columns: 1fr auto; }
  .txi > :nth-child(1), .txi > :nth-child(4) { display: none; }
  .cl-in { padding-left: var(--gut); }
  .rnav { padding-right: 90px; font-size: 13px; }
  .rnav a { max-width: 38vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; line-height: 40px; }
  .split { grid-template-columns: 110px 1fr; }
  .teambar .clock { margin-left: 0; }
  .toolbar input { max-width: none; }
  .mcard { flex-direction: column; align-items: flex-start; }
  .mcard .r { text-align: left; }
}
@media (max-width: 400px) {
  .pgrid4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
