/* LATCHKEY · styles */
:root, html { color-scheme: dark !important; }
:root {
  --abyss: #000A20; --deep: #00253B; --teal: #024F5B; --glow: #01AFA8; --aqua: #5CDFDD; --mist: #C4E5DE; --cream: #FEF9EC;
  --ink: #EAF4F0; --muted: rgba(196, 229, 222, .66); --faint: rgba(196, 229, 222, .4);
  --line: rgba(196, 229, 222, .13); --line2: rgba(196, 229, 222, .22);
  --panel: rgba(3, 26, 44, .66); --panel2: rgba(5, 38, 58, .72); --solid: #031A2E;
  --high: #E26B4F; --medium: #E3A646; --review: #9AB0CC; --info: #5CDFDD; --done: #7FE3B8;
  --f-d: 'Montserrat', system-ui, sans-serif; --f-b: 'Albert Sans', system-ui, sans-serif; --f-m: 'Azeret Mono', ui-monospace, monospace;
  --r: 18px; --r-s: 10px; --gut: clamp(16px, 4vw, 56px); --max: 1280px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; scrollbar-width: thin; scrollbar-color: rgba(196, 229, 222, .22) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(196, 229, 222, .2); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--glow); background-clip: padding-box; }
::-webkit-scrollbar-button { display: none; }
html { background: var(--abyss); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--abyss); color: var(--ink); font: 400 16px/1.6 var(--f-b); overflow-x: hidden; overflow-x: clip; min-height: 100vh; -webkit-font-smoothing: antialiased; }
body.is-loading { overflow: hidden; }
html.modal-open body, html.index-open body { overflow: hidden; }
a { color: var(--aqua); text-decoration: none; }
a:hover { color: var(--cream); }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--f-d); font-weight: 700; letter-spacing: -.01em; line-height: 1.1; color: var(--cream); }
p { margin: 0 0 1em; }
.mono { font-family: var(--f-m); font-size: .92em; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.tiny { font-size: 12.5px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--cream); color: var(--abyss); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }
.noscript { padding: 40px; max-width: 760px; }
.err { color: var(--high); font-size: 14px; min-height: 1em; margin: 6px 0; }
.na { color: var(--review); font-weight: 600; margin: 4px 0; }

/* background layers */
#aurora { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; background: radial-gradient(120% 80% at 20% 80%, rgba(1, 175, 168, .25), transparent 60%), linear-gradient(160deg, var(--deep), var(--abyss)); }
.grain { position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .07; 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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E"); }
main, .view, .foot { position: relative; z-index: 2; }
.view { min-height: 100vh; }
.view.leaving { position: fixed; left: 0; right: 0; z-index: 1; pointer-events: none; transform-origin: 50% 30vh; }
.view.incoming { z-index: 3; background: linear-gradient(180deg, #041d33, #021426 40%, #01101f); border-radius: 26px 26px 0 0; box-shadow: 0 -30px 80px rgba(0, 0, 0, .55), 0 -1px 0 var(--line2); }
.stack-tag { position: absolute; top: -1px; left: var(--gut); transform: translateY(-100%); display: flex; gap: 10px; align-items: center; padding: 10px 18px 10px 14px; background: #041d33; border: 1px solid var(--line2); border-bottom: 0; border-radius: 14px 14px 0 0; font-family: var(--f-d); }
.stack-tag span { color: var(--aqua); font-size: 12px; }
.stack-tag b { color: var(--cream); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }

/* cursor */
#cursor { position: fixed; left: -14px; top: -14px; width: 28px; height: 28px; border: 1.5px solid var(--aqua); border-radius: 50%; z-index: 200; pointer-events: none; opacity: 0; transition: opacity .3s, width .25s var(--ease), height .25s var(--ease), left .25s var(--ease), top .25s var(--ease), background .25s; mix-blend-mode: screen; }
#cursor.on { opacity: .7; }
#cursor.hover { width: 54px; height: 54px; left: -27px; top: -27px; background: rgba(92, 223, 221, .12); }

/* loader */
#loader { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; }
.ld-top, .ld-bot { position: absolute; left: 0; right: 0; height: 50.5%; background: #010d22; }
.ld-top { top: 0; border-bottom: 1px solid rgba(92, 223, 221, .12); }
.ld-bot { bottom: 0; }
.ld-stage { position: relative; display: grid; justify-items: center; gap: 18px; perspective: 800px; }
.ld-key { width: min(440px, 76vw); height: auto; overflow: visible; filter: drop-shadow(0 0 18px rgba(92, 223, 221, .45)); transform-style: preserve-3d; }
.ld-plate { position: absolute; right: calc(50% - min(220px, 38vw) - 34px); top: calc(min(440px, 76vw) * .30 - 34px); width: 16px; height: 68px; border-radius: 6px; background: rgba(196, 229, 222, .14); border: 1px solid rgba(196, 229, 222, .3); }
.ld-bolt { position: absolute; left: 3px; top: 26px; width: 26px; height: 14px; border-radius: 4px; background: var(--aqua); box-shadow: 0 0 14px var(--aqua); }
.ld-meta { display: flex; gap: 18px; align-items: baseline; font-family: var(--f-d); }
.ld-name { letter-spacing: .32em; font-weight: 800; color: var(--cream); font-size: 15px; }
.ld-lbl { color: var(--muted); font-size: 12px; }
.ld-pct { color: var(--aqua); font-size: 22px; min-width: 2.2ch; }

/* corner shell */
.corner { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 16px var(--gut); pointer-events: none; }
.corner > * { pointer-events: auto; }
.corner::before { content: ''; position: absolute; inset: 0 0 -24px; z-index: -1; background: linear-gradient(180deg, rgba(0, 10, 32, .9), rgba(0, 10, 32, .55) 60%, transparent); pointer-events: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); font-family: var(--f-d); font-weight: 800; letter-spacing: .2em; font-size: 15px; }
.brand img { width: 30px; height: auto; filter: drop-shadow(0 0 10px rgba(92, 223, 221, .4)); }
.corner-r { display: flex; gap: 8px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(2, 22, 40, .6); border: 1px solid var(--line2); color: var(--ink); font-size: 14px; cursor: pointer; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: border-color .2s, background .2s; white-space: nowrap; }
.pill:hover { border-color: var(--aqua); color: var(--cream); }
.pill svg { width: 16px; height: 16px; }
.latch { display: inline-flex; align-items: center; gap: 10px; padding: 7px 8px 7px 16px; border-radius: 999px; background: var(--cream); color: var(--abyss); border: 0; cursor: pointer; font-family: var(--f-d); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.latch-ico { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--abyss); display: grid; place-items: center; }
.latch-ico i { position: absolute; width: 12px; height: 2px; background: var(--aqua); border-radius: 2px; transition: transform .4s var(--ease); }
.latch-ico i:first-child { transform: translateY(-3px); } .latch-ico i:last-child { transform: translateY(3px) translateX(3px); width: 7px; }
.index-open .latch-ico i:first-child { transform: rotate(45deg); } .index-open .latch-ico i:last-child { transform: rotate(-45deg); width: 12px; }
.soc { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line2); color: var(--mist); }
.soc svg { width: 16px; height: 16px; } .soc:hover { border-color: var(--aqua); color: var(--cream); }
.soc-row { display: inline-flex; gap: 6px; }

/* full-screen index */
.index { position: fixed; inset: 0; z-index: 45; background: rgba(0, 8, 24, .94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); clip-path: circle(0% at calc(100% - 60px) 36px); transition: clip-path .8s cubic-bezier(.7, 0, .2, 1); overflow-y: auto; overscroll-behavior: contain; }
.index-open .index { clip-path: circle(150% at calc(100% - 60px) 36px); }
.ix-in { max-width: var(--max); margin: 0 auto; padding: 110px var(--gut) 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.ix-nav a { display: grid; grid-template-columns: 46px 1fr; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.ix-n { color: var(--aqua); font-size: 12px; }
.ix-t { font-family: var(--f-d); font-weight: 800; font-size: clamp(30px, 4.6vw, 58px); line-height: 1; letter-spacing: -.02em; color: var(--cream); transition: color .25s, transform .4s var(--ease); display: inline-block; }
.ix-d { grid-column: 2; color: var(--muted); font-size: 14px; margin-top: 4px; }
.ix-nav a:hover .ix-t, .ix-nav a.on .ix-t { color: var(--aqua); transform: translateX(10px); }
.ix-side { display: grid; gap: 18px; align-content: start; }
.ix-cover { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3/1; }
.ix-cover img { width: 100%; height: 100%; object-fit: cover; }
.ix-check label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.ix-status { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ix-soc { display: flex; gap: 8px; }

/* status dots */
.sdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.sdot-ok { background: var(--done); box-shadow: 0 0 10px var(--done); }
.sdot-warn { background: var(--medium); } .sdot-bad { background: var(--high); }
.sdot-wait { background: var(--review); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .3; } }

/* buttons, inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(4, 34, 54, .7); color: var(--cream); font-weight: 600; font-size: 15px; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn:hover { border-color: var(--aqua); color: var(--cream); }
.btn svg { width: 17px; height: 17px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.btn-primary { background: linear-gradient(135deg, var(--aqua), var(--glow)); color: #00141f; border-color: transparent; box-shadow: 0 8px 30px -8px rgba(1, 175, 168, .7); }
.btn-primary:hover { color: #00141f; filter: brightness(1.08); }
.btn-ghost { background: transparent; }
.btn-revoke { background: rgba(226, 107, 79, .12); border-color: rgba(226, 107, 79, .45); color: #FFD9CF; }
.btn-revoke:hover { background: var(--high); border-color: var(--high); color: #1b0700; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line2); background: transparent; cursor: pointer; color: var(--mist); }
.icon-btn svg { width: 18px; height: 18px; } .icon-btn:hover { border-color: var(--aqua); color: var(--cream); } .icon-btn:disabled { opacity: .35; cursor: default; }
.input { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(0, 12, 28, .6); color: var(--cream); font: 15px var(--f-b); outline: none; transition: border-color .2s, box-shadow .2s; }
.input.mono { font-family: var(--f-m); font-size: 14px; }
.input:focus { border-color: var(--aqua); box-shadow: 0 0 0 4px rgba(92, 223, 221, .12); }
.input::placeholder { color: var(--faint); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mist) 50%), linear-gradient(135deg, var(--mist) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
select.input option { background: var(--solid); }
textarea.input { resize: vertical; overflow-x: hidden; overflow-wrap: anywhere; }
.inrow { display: flex; gap: 8px; }
.inrow .input { flex: 1; min-width: 0; }
.row-actions { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
.row-actions.wrap { flex-wrap: wrap; }
.ext { display: inline-flex; gap: 5px; align-items: center; font-size: 14px; }
.ext svg { width: 14px; height: 14px; }
.addr { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0, 12, 28, .4); color: var(--mist); cursor: pointer; font-size: 13px; overflow-wrap: anywhere; text-align: left; }
.addr:hover { border-color: var(--aqua); color: var(--cream); }
.addr-i svg { width: 13px; height: 13px; display: block; }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--line2); color: var(--mist); background: rgba(0, 12, 28, .35); white-space: nowrap; line-height: 1.6; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip svg { width: 13px; height: 13px; }
.chip-high { color: #FFB8A6; border-color: rgba(226, 107, 79, .55); background: rgba(226, 107, 79, .14); }
.chip-medium { color: #F6CF85; border-color: rgba(227, 166, 70, .5); background: rgba(227, 166, 70, .12); }
.chip-review { color: #C8D6EA; border-color: rgba(154, 176, 204, .5); background: rgba(154, 176, 204, .12); }
.chip-info { color: var(--aqua); border-color: rgba(92, 223, 221, .4); background: rgba(92, 223, 221, .08); }
.chip-done { color: var(--done); border-color: rgba(127, 227, 184, .45); background: rgba(127, 227, 184, .1); }
.chip-pending { color: var(--cream); border-color: rgba(254, 249, 236, .4); background: rgba(254, 249, 236, .08); }
.chip-pending::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--cream); animation: blink 1s infinite; }
.code-chip { font-size: 11.5px; padding: 2px 7px; border-radius: 6px; background: rgba(0, 12, 28, .55); border: 1px solid var(--line); color: var(--mist); }

/* layout */
.page { max-width: var(--max); margin: 0 auto; padding: 120px var(--gut) 80px; }
.page.narrow { max-width: 760px; min-height: 70vh; }
.narrowish { max-width: 1120px; }
.sec { max-width: var(--max); margin: 0 auto; padding: clamp(70px, 10vw, 140px) var(--gut); }
.sec-tight { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.sec-h { max-width: 760px; margin-bottom: 36px; }
.kicker { color: var(--aqua); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.h-hero { font-size: clamp(40px, 5.4vw, 78px); font-weight: 800; letter-spacing: -.035em; line-height: .98; margin-bottom: 24px; }
.h-hero em { font-style: normal; color: var(--aqua); }
.h-hero em .wi { background: linear-gradient(100deg, var(--mist), var(--aqua) 70%, var(--glow)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-xl { font-size: clamp(34px, 5vw, 64px); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; }
.h-lg { font-size: clamp(28px, 3.6vw, 46px); font-weight: 800; letter-spacing: -.025em; }
.h-md { font-size: clamp(22px, 2.4vw, 30px); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wi { display: inline-block; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--mist); max-width: 560px; }
.more { display: inline-flex; gap: 6px; align-items: center; margin-top: 18px; font-weight: 600; }
.more svg { width: 16px; height: 16px; }

/* hero */
.hero { position: relative; overflow-x: clip; min-height: 100vh; max-width: var(--max); margin: 0 auto; padding: 120px var(--gut) 80px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; gap: 10px; align-items: center; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(0, 12, 28, .45); font-size: 13px; color: var(--mist); margin-bottom: 26px; }
.hero-f { display: flex; gap: 8px; max-width: 560px; margin-top: 8px; }
.hero-f .input { flex: 1; min-width: 0; min-height: 54px; border-radius: 14px; }
.hero-f .btn { min-height: 54px; border-radius: 14px; }
.hero-ex { display: inline-flex; gap: 8px; align-items: center; margin-top: 14px; font-size: 14px; }
.hero-ex svg { width: 15px; height: 15px; }
.proof { display: flex; gap: clamp(18px, 3vw, 40px); margin-top: 40px; flex-wrap: wrap; }
.proof div { display: flex; gap: 12px; align-items: center; }
.proof b { font-family: var(--f-d); font-size: 40px; font-weight: 800; color: var(--cream); line-height: 1; }
.proof span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.fan-stage { position: relative; height: min(620px, 74vh); perspective: 1400px; display: grid; place-items: center; }
.fan-ring { position: absolute; width: 58%; left: 50%; top: 52%; transform: translate(-50%, -50%); opacity: .16; filter: blur(1px); }
.fan { position: relative; width: 270px; height: 360px; transform-style: preserve-3d; margin-top: -60px; }
.fcard { position: absolute; inset: 0; border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(160deg, rgba(7, 48, 68, .96), rgba(2, 20, 38, .97)); border: 1px solid rgba(196, 229, 222, .2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .06); transform-origin: 50% 135%; backface-visibility: hidden; }
.fcard::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(120deg, transparent 40%, rgba(196, 229, 222, .07) 50%, transparent 60%); }
.fcard.lvl-high { border-color: rgba(226, 107, 79, .45); }
.fcard.lvl-medium { border-color: rgba(227, 166, 70, .4); }
.fc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.fc-k { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(92, 223, 221, .1); border: 1px solid rgba(92, 223, 221, .3); color: var(--aqua); font-family: var(--f-d); font-weight: 800; }
.fc-k svg { width: 20px; height: 20px; }
.fcard b { font-family: var(--f-d); font-size: 17px; color: var(--cream); line-height: 1.2; }
.fc-s { color: var(--muted); font-size: 12px; }
.fc-a { margin-top: auto; font-family: var(--f-d); font-weight: 800; font-size: 30px; color: var(--cream); letter-spacing: -.02em; }
.fc-m { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line2); padding-top: 10px; }
.fc-m .mono { font-size: 10.5px; color: var(--mist); }
.fc-stamp { position: absolute; right: 14px; top: 64px; display: flex; gap: 6px; align-items: center; padding: 6px 12px; border: 2px solid var(--done); color: var(--done); border-radius: 10px; font-family: var(--f-d); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; transform: rotate(-10deg) scale(1.4); opacity: 0; background: rgba(0, 20, 20, .6); }
.fc-stamp svg { width: 15px; height: 15px; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.scroll-cue::after { content: ''; display: block; width: 1px; height: 30px; margin: 8px auto 0; background: linear-gradient(var(--aqua), transparent); animation: cue 1.8s infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* demo */
.demo { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.demo-copy { position: sticky; top: 110px; }
.demo-stats { display: flex; gap: 10px; margin: 24px 0 6px; flex-wrap: wrap; }
.demo-stats div { flex: 1; min-width: 100px; padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.demo-stats b { display: block; font-family: var(--f-d); font-size: 30px; color: var(--cream); font-weight: 800; }
#dHigh { color: #FFB8A6; }
.demo-list { display: grid; gap: 8px; padding: 14px; border-radius: 22px; background: rgba(1, 16, 32, .7); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.drow { display: grid; grid-template-columns: 112px 1fr auto 40px; gap: 12px; align-items: center; padding: 10px 10px 10px 12px; border-radius: 12px; background: rgba(5, 36, 56, .55); border: 1px solid var(--line); transition: opacity .4s, background .4s; }
.drow.off { opacity: .45; background: transparent; }
.drow.off .dr-t { text-decoration: line-through; text-decoration-color: var(--faint); }
.dr-t { font-weight: 600; font-size: 14.5px; color: var(--cream); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-a { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.dr-b { width: 36px; height: 36px; }

/* live strip */
.strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.strip-i { padding: 20px 22px; background: rgba(1, 16, 32, .82); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.strip-i b { font-size: 18px; color: var(--cream); font-weight: 500; overflow-wrap: anywhere; }

/* portal */
.portal { position: relative; }
.portal-pin { position: relative; height: 100vh; overflow: hidden; display: grid; place-items: center; }
.portal-intro { position: absolute; top: 14vh; left: 0; right: 0; text-align: center; padding: 0 var(--gut); z-index: 2; }
.portal-mark { position: absolute; left: 50%; top: 50%; width: min(52vh, 70vw); margin-left: calc(min(52vh, 70vw) / -2); margin-top: calc(min(52vh, 70vw) * -0.61); transform-origin: 54% 41%; filter: drop-shadow(0 0 40px rgba(92, 223, 221, .45)); will-change: transform; z-index: 1; }
.portal-in { position: absolute; inset: 0; display: grid; place-items: center; padding: 90px var(--gut) 40px; z-index: 3; }
.portal.static .portal-pin { height: auto; padding: 80px 0; }
.portal.static .portal-mark { display: none; }
.portal.static .portal-intro, .portal.static .portal-in { position: relative; top: auto; }
.keys3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: var(--max); width: 100%; }
.key3 { position: relative; padding: 28px; border-radius: 22px; background: linear-gradient(170deg, rgba(6, 44, 64, .92), rgba(1, 16, 32, .92)); border: 1px solid var(--line2); display: flex; flex-direction: column; overflow: hidden; }
.k3-i { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(92, 223, 221, .1); color: var(--aqua); margin-bottom: 18px; border: 1px solid rgba(92, 223, 221, .3); }
.k3-i svg { width: 26px; height: 26px; }
.key3 p { color: var(--muted); font-size: 15px; }
.key3 dl { margin: 6px 0 18px; display: grid; gap: 10px; }
.key3 dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.key3 dd { margin: 0; font-size: 14px; color: var(--mist); }
.key3 > a { margin-top: auto; display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.key3 > a svg { width: 15px; height: 15px; }

/* glare */
.glare { position: relative; }
.glare::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, -20%), rgba(92, 223, 221, .12), transparent 45%); opacity: 0; transition: opacity .3s; z-index: 0; }
.glare:hover::before { opacity: 1; }
.glare > * { position: relative; z-index: 1; }

/* tables */
.tbl-wrap { overflow-x: auto; overscroll-behavior-x: contain; border-radius: 16px; border: 1px solid var(--line); background: rgba(1, 16, 32, .72); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.tbl th, .tbl td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { font-family: var(--f-d); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--aqua); background: rgba(5, 36, 56, .6); }
.tbl tbody th { color: var(--cream); font-weight: 600; white-space: nowrap; }
.tbl td { color: var(--mist); }
.tbl tr:last-child td, .tbl tr:last-child th { border-bottom: 0; }

/* roadmap rail */
.rail { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.rail::before { content: ''; position: absolute; left: 0; right: 0; top: 22px; height: 6px; border-radius: 4px; background: linear-gradient(90deg, var(--aqua), var(--glow) 20%, var(--line2) 20%); }
.rail li { position: relative; padding: 48px 18px 0 0; }
.rail .tooth { position: absolute; left: 0; top: 16px; width: 18px; height: 22px; border-radius: 3px; background: var(--teal); border: 1px solid var(--line2); }
.rail li.now .tooth { background: var(--aqua); box-shadow: 0 0 16px var(--aqua); height: 32px; }
.rail-k { color: var(--aqua); font-size: 12px; }
.rail b { display: block; font-family: var(--f-d); font-size: 20px; color: var(--cream); margin: 4px 0 6px; }
.rail p { color: var(--muted); font-size: 14px; }
.vline { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.vline > div { padding: 16px 18px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--mist); font-size: 14.5px; display: flex; gap: 12px; align-items: flex-start; }

/* faq */
.faq-list { display: grid; gap: 10px; max-width: 900px; }
.faq { border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; position: relative; font-weight: 600; color: var(--cream); font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.fq-i { position: absolute; right: 20px; top: 50%; width: 14px; height: 14px; margin-top: -7px; }
.fq-i::before, .fq-i::after { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--aqua); transition: transform .3s; }
.fq-i::after { transform: rotate(90deg); }
.faq[open] .fq-i::after { transform: rotate(0); }
.faq p { padding: 0 20px 18px; color: var(--muted); margin: 0; }
.community { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.soc-big { display: flex; gap: 12px; }
.soc-big .soc { width: 64px; height: 64px; } .soc-big .soc svg { width: 24px; height: 24px; }

/* closing */
.closing-in { position: relative; border-radius: 30px; overflow: hidden; border: 1px solid var(--line2); min-height: 420px; display: grid; align-items: end; }
.closing-art { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; opacity: .55; }
.closing-in::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 10, 32, .95) 10%, rgba(0, 10, 32, .3)); }
.closing-c { position: relative; z-index: 2; padding: clamp(24px, 5vw, 60px); }

/* footer: key-ring tags */
.foot { max-width: var(--max); margin: 0 auto; padding: 40px var(--gut) 30px; transition: opacity .4s; }
.ring-wrap { position: relative; padding-top: 26px; }
.ring-line { position: absolute; left: 0; right: 0; top: 26px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--aqua), rgba(92, 223, 221, .15)); }
.ring-o { position: absolute; left: -6px; top: -16px; width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--aqua); box-shadow: 0 0 14px rgba(92, 223, 221, .5); }
.tags { display: flex; flex-wrap: wrap; gap: 14px 10px; padding: 0 0 0 40px; }
.tag { position: relative; display: inline-flex; gap: 6px; align-items: center; margin-top: 18px; padding: 10px 14px 9px; border-radius: 6px 6px 12px 12px; background: rgba(4, 34, 54, .85); border: 1px solid var(--line2); color: var(--mist); font-size: 14px; transform-origin: 50% -18px; transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), border-color .2s, color .2s; }
.tag i { position: absolute; left: 50%; top: -19px; width: 1.5px; height: 19px; background: var(--line2); }
.tag i::after { content: ''; position: absolute; left: -3px; bottom: -3px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--line2); background: var(--abyss); }
.tag svg { width: 14px; height: 14px; }
.tag:hover { transform: rotate(-7deg); color: var(--cream); border-color: var(--aqua); }
.tag:nth-child(even):hover { transform: rotate(7deg); }
.foot-main { display: flex; gap: 30px; align-items: flex-start; justify-content: space-between; margin: 46px 0 24px; flex-wrap: wrap; }
.foot-main p { max-width: 560px; font-size: 14px; margin: 0; }
.statusline { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.demo-note { color: var(--medium); }
.demo-note::before { content: '● '; }

/* modal + toast */
.modal-wrap { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .25s; }
.modal-wrap.in { opacity: 1; }
.modal-back { position: absolute; inset: 0; background: rgba(0, 6, 18, .74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal { position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; border-radius: 22px; background: linear-gradient(170deg, #062b44, #021426); border: 1px solid var(--line2); box-shadow: 0 40px 100px rgba(0, 0, 0, .6); transform: translateY(20px) scale(.98); transition: transform .35s var(--ease); }
.modal-wrap.in .modal { transform: none; }
.modal-wide { width: min(620px, 100%); }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 6px; }
.modal-h h3 { margin: 0; font-size: 19px; }
.modal-b { padding: 8px 20px 22px; }
.wl-opt { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 14px; margin-top: 10px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(0, 12, 28, .45); cursor: pointer; }
.wl-opt:hover { border-color: var(--aqua); }
.wl-opt svg { width: 24px; height: 24px; color: var(--aqua); flex: none; }
.wl-opt b { display: block; color: var(--cream); }
.wl-opt small { color: var(--muted); }
.wl-sep { margin: 18px 0 0; text-transform: uppercase; letter-spacing: .08em; }
.wl-cur { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 10px; }
.big-addr { font-size: 13px; overflow-wrap: anywhere; color: var(--cream); }
#toasts { position: fixed; right: 16px; bottom: 16px; z-index: 150; display: grid; gap: 8px; max-width: calc(100vw - 32px); }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: #062b44; border: 1px solid var(--line2); box-shadow: 0 16px 40px rgba(0, 0, 0, .4); font-size: 14px; transform: translateY(20px); opacity: 0; transition: all .35s var(--ease); max-width: 420px; overflow-wrap: anywhere; }
.toast.in { transform: none; opacity: 1; }
.toast-i svg { width: 18px; height: 18px; color: var(--done); display: block; }
.toast-error .toast-i svg { color: var(--high); }

/* revoke flow */
.flow .plain { font-size: 17px; color: var(--cream); }
.kvs { border-radius: 14px; border: 1px solid var(--line); overflow: hidden; margin-bottom: 12px; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.kvs .kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { color: var(--cream); font-weight: 500; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.raw summary { cursor: pointer; color: var(--aqua); font-size: 14px; margin: 6px 0; }
.code { margin: 8px 0 14px; padding: 14px 16px; border-radius: 12px; background: rgba(0, 8, 20, .75); border: 1px solid var(--line); font: 12.5px/1.6 var(--f-m); color: var(--mist); white-space: pre-wrap; overflow-x: hidden; overflow-wrap: anywhere; word-break: break-word; overscroll-behavior: contain; max-height: 420px; overflow-y: auto; }
.verify { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.note { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(92, 223, 221, .06); border: 1px solid rgba(92, 223, 221, .22); font-size: 14.5px; color: var(--mist); margin: 14px 0; }
.note > svg { width: 22px; height: 22px; flex: none; color: var(--aqua); margin-top: 2px; }
.note.warn { background: rgba(227, 166, 70, .08); border-color: rgba(227, 166, 70, .35); }
.note.warn > svg { color: var(--medium); }
.note b { color: var(--cream); }
.flow-step { display: flex; gap: 10px; align-items: center; padding: 12px 0; color: var(--mist); flex-wrap: wrap; }
.flow-step.done { color: var(--done); }
.flow-step svg { width: 18px; height: 18px; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--aqua); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.flow-result { text-align: center; }
.flow-result .kv { text-align: left; }
.big-i { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(92, 223, 221, .1); color: var(--aqua); margin: 6px auto 12px; }
.big-i svg { width: 30px; height: 30px; }
.big-i.ok { background: rgba(127, 227, 184, .12); color: var(--done); }
.flow-result .row-actions { justify-content: center; }
.flow-result .note { text-align: left; }

/* app pages */
.app-page { padding-top: 96px; }
.subj-wrap { position: sticky; top: 76px; z-index: 20; margin-bottom: 26px; }
.subj { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 18px; background: rgba(1, 14, 30, .86); border: 1px solid var(--line2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); flex-wrap: wrap; }
.subj-f { position: relative; display: flex; gap: 6px; flex: 1 1 360px; min-width: 0; }
.subj-f .input { padding-left: 40px; min-height: 42px; }
.subj-i { position: absolute; left: 13px; top: 11px; color: var(--faint); }
.subj-i svg { width: 18px; height: 18px; }
.subj-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(0, 8, 20, .6); overflow-x: auto; }
.subj-tabs a { display: inline-flex; gap: 6px; align-items: center; padding: 8px 12px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.subj-tabs a span { font-size: 11px; padding: 1px 6px; border-radius: 6px; background: rgba(196, 229, 222, .1); }
.subj-tabs a.on { background: var(--cream); color: var(--abyss); }
.subj-tabs a.on span { background: rgba(0, 10, 32, .12); }
.subj-c { display: flex; gap: 10px; align-items: center; padding-right: 8px; }
.riskbar { display: flex; width: 120px; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; background: rgba(196, 229, 222, .08); }
.riskbar i { display: block; height: 100%; }
.rb-high { background: var(--high); } .rb-medium { background: var(--medium); } .rb-review { background: var(--review); } .rb-info { background: var(--info); opacity: .6; }
.p-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 26px; }
.p-head > div:first-child { min-width: 0; max-width: 760px; }
.h-addr { font-size: clamp(28px, 4vw, 46px); font-family: var(--f-d); margin-bottom: 4px; }
.h-addr .h-full { display: block; font-family: var(--f-m); font-size: 12.5px; color: var(--faint); font-weight: 400; margin-top: 6px; overflow-wrap: anywhere; letter-spacing: 0; }
.dstat { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 13.5px; }
.dstat > span { display: inline-flex; gap: 7px; align-items: center; }
.dstat + .note { flex-basis: 100%; }
.loading-rows { display: grid; gap: 10px; }
.sk { height: 64px; border-radius: 14px; background: linear-gradient(90deg, rgba(196, 229, 222, .05), rgba(196, 229, 222, .1), rgba(196, 229, 222, .05)); background-size: 200% 100%; animation: sk 1.4s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty-subj { text-align: center; max-width: 620px; margin: 40px auto; }
.es-mark { width: 110px; margin: 0 auto 20px; filter: drop-shadow(0 0 30px rgba(92, 223, 221, .4)); }
.es-f { margin: 20px 0 14px; }
.es-ex { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.tile { padding: 18px 20px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; }
.tile b { font-family: var(--f-d); font-size: 44px; font-weight: 800; line-height: 1.05; color: var(--cream); }
.tile-l { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.t-high { border-color: rgba(226, 107, 79, .4); } .t-high .tile-l, .t-high b { color: #FFB8A6; }
.t-medium .tile-l { color: var(--medium); } .t-review .tile-l { color: var(--review); } .t-info .tile-l { color: var(--info); }
.ov-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: start; }
.ov-side { display: grid; gap: 12px; }
.panel { padding: 20px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.panel-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.panel-h h2, .panel-h h3 { margin: 0; font-size: 18px; }
.panel-h h2 { font-size: 21px; }
.big-n { font-family: var(--f-d); font-weight: 800; font-size: 34px; color: var(--cream); line-height: 1.1; }
.big-n span { font-family: var(--f-b); font-weight: 400; font-size: 14px; color: var(--muted); }
.mini-bars { display: grid; gap: 6px; margin-top: 12px; }
.mini-bars div { display: grid; grid-template-columns: 56px 1fr 24px; gap: 10px; align-items: center; font-size: 13px; }
.mini-bars i { height: 6px; border-radius: 3px; background: rgba(196, 229, 222, .08); position: relative; overflow: hidden; }
.mini-bars i::after { content: ''; position: absolute; inset: 0; width: var(--w); background: var(--aqua); border-radius: 3px; }
.txl, .evl, .wlist, .clist, .log { list-style: none; padding: 0; margin: 0; }
.txl li { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.evl li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--mist); display: grid; gap: 2px; }
.txl li:last-child, .evl li:last-child { border-bottom: 0; }

/* permission rows */
.perm-head { display: grid; grid-template-columns: 120px minmax(220px, 1.6fr) 1fr 1fr 1fr 118px; gap: 14px; padding: 0 16px 8px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.perms { display: grid; gap: 8px; }
.perms.dim { opacity: .65; }
.perm { display: grid; grid-template-columns: 120px minmax(220px, 1.6fr) 3fr 118px; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--line2); }
.perm.lvl-high { border-left-color: var(--high); } .perm.lvl-medium { border-left-color: var(--medium); } .perm.lvl-review { border-left-color: var(--review); } .perm.lvl-info { border-left-color: rgba(92, 223, 221, .45); } .perm.lvl-done { border-left-color: var(--done); opacity: .7; }
.perm-m { display: flex; gap: 12px; align-items: center; min-width: 0; }
.p-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: rgba(92, 223, 221, .08); border: 1px solid var(--line2); color: var(--aqua); font-family: var(--f-d); font-weight: 800; }
.p-ico svg { width: 20px; height: 20px; }
.p-t { display: block; color: var(--cream); font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.p-t a { color: var(--cream); border-bottom: 1px dashed var(--line2); } .p-t a:hover { color: var(--aqua); }
.unknown { color: #C8D6EA; }
.p-s { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.perm-c { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; }
.perm-c dt { display: none; font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.perm-c dd { margin: 0; font-size: 14px; color: var(--mist); overflow-wrap: anywhere; }
.perm-r { display: flex; justify-content: flex-end; }
.perm-codes { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.rv-na { font-size: 12px; }
.sub-h { margin: 28px 0 12px; font-size: 16px; color: var(--muted); }
.foot-note { margin-top: 18px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: rgba(0, 8, 20, .6); border: 1px solid var(--line); overflow-x: auto; max-width: 100%; }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 9px; color: var(--muted); cursor: pointer; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.seg button.on { background: rgba(92, 223, 221, .14); color: var(--cream); }
.srch { position: relative; display: block; flex: 1 1 200px; min-width: 0; }
.srch svg { position: absolute; left: 13px; top: 50%; width: 17px; height: 17px; margin-top: -8.5px; color: var(--faint); }
.srch .input { padding-left: 40px; min-height: 42px; }
.srch.big { flex: 0 1 380px; } .srch.big .input { min-height: 50px; }
.tog { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); cursor: pointer; }
.tog input { position: absolute; opacity: 0; }
.tog span { width: 38px; height: 22px; border-radius: 11px; background: rgba(196, 229, 222, .15); position: relative; transition: background .2s; }
.tog span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--mist); transition: transform .25s var(--ease); }
.tog input:checked + span { background: var(--glow); } .tog input:checked + span::after { transform: translateX(16px); }
.tog input:focus-visible + span { outline: 2px solid var(--aqua); outline-offset: 2px; }

/* bindings gate */
.gate { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center; padding: clamp(22px, 4vw, 40px); border-radius: 24px; background: linear-gradient(150deg, rgba(6, 44, 64, .85), rgba(1, 16, 32, .9)); border: 1px solid var(--line2); margin-bottom: 18px; overflow: hidden; }
.gate-art { position: relative; }
.gate-art img { width: 180px; opacity: .85; filter: drop-shadow(0 0 30px rgba(92, 223, 221, .35)); }
.gate-bolt { position: absolute; right: 6px; top: 46%; width: 70px; height: 18px; border-radius: 6px; background: repeating-linear-gradient(90deg, var(--review) 0 8px, transparent 8px 14px); opacity: .55; }
.gate h2 { margin: 14px 0 10px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; }
.two h4 { font-size: 16px; }

/* alerts */
.al-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; align-items: start; }
.steps { display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 20px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.step.done { border-color: rgba(127, 227, 184, .35); }
.step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line2); color: var(--aqua); }
.step.done .step-n { background: rgba(127, 227, 184, .14); color: var(--done); border-color: transparent; }
.step-n svg { width: 18px; height: 18px; }
.step-b h3 { font-size: 18px; margin-top: 6px; }
.step-b { min-width: 0; }
.types { display: grid; gap: 8px; }
.ck { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; }
.ck input { position: absolute; opacity: 0; }
.ck-b { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line2); margin-top: 2px; position: relative; transition: all .2s; }
.ck input:checked + .ck-b { background: var(--aqua); border-color: var(--aqua); }
.ck input:checked + .ck-b::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #00141f; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ck input:focus-visible + .ck-b { outline: 2px solid var(--aqua); outline-offset: 2px; }
.ck b { display: block; color: var(--cream); font-size: 15px; }
.ck small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.ck.gated { opacity: .7; cursor: default; }
.tgcode { display: flex; gap: 10px; align-items: center; padding: 10px 12px 10px 16px; border-radius: 12px; background: rgba(0, 8, 20, .7); border: 1px dashed var(--line2); justify-content: space-between; }
.tgcode b { color: var(--aqua); font-size: 16px; overflow-wrap: anywhere; }
.wlist li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.wlist li:last-child { border-bottom: 0; }
.wlist li > div:first-child { display: grid; gap: 4px; min-width: 0; }
.wlist .row-actions { margin-top: 0; }
.wl-types { display: flex; flex-wrap: wrap; gap: 4px; }

/* registry */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.app-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); transition: border-color .25s, transform .4s var(--ease); }
.app-card:hover { border-color: var(--aqua); color: var(--ink); transform: translateY(-3px); }
.app-card p { font-size: 14px; margin: 0; }
.ac-h { display: flex; gap: 12px; align-items: center; }
.ac-h > div { flex: 1; min-width: 0; display: grid; }
.ac-h b { color: var(--cream); font-family: var(--f-d); font-size: 17px; }
.ac-mono { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, var(--teal), var(--deep)); border: 1px solid var(--line2); font-family: var(--f-d); font-weight: 800; color: var(--aqua); flex: none; }
.ac-mono.xl { width: 88px; height: 88px; border-radius: 24px; font-size: 30px; }
.ac-f { margin-top: auto; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; color: var(--muted); }
.reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.log li { display: grid; grid-template-columns: 92px 1fr; gap: 2px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.log li > :nth-child(n+2) { grid-column: 2; }
.log li > :first-child { grid-row: span 3; color: var(--aqua); }
.log b { color: var(--cream); font-weight: 600; }
.log li:last-child { border-bottom: 0; }
.form { display: grid; gap: 14px; }
.fld label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--mist); }
.fld small { font-weight: 400; color: var(--faint); }
.form .two { margin-top: 0; gap: 14px; }
.crumbs { margin-bottom: 18px; color: var(--muted); }
.app-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; padding: clamp(20px, 4vw, 34px); border-radius: 24px; background: var(--panel2); border: 1px solid var(--line2); margin-bottom: 18px; }
.app-hero p { max-width: 620px; }
.facts { margin: 0; display: grid; gap: 12px; }
.facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.facts dd { margin: 0; color: var(--cream); }
.clist li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.clist li > div { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
.clist .row-actions { margin: 0; }
.clist li:last-child { border-bottom: 0; }

/* status */
.scards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.scard { padding: 18px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.sc-h { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.sc-h > div { display: grid; min-width: 0; }
.sc-h b { color: var(--cream); }
.sc-h .tiny { overflow-wrap: anywhere; }
.scard .kv { padding: 7px 0; }
.sc-spark { margin-top: 10px; color: var(--aqua); display: grid; gap: 4px; }
.spark { width: 100%; height: 34px; }

/* docs */
.docs-land { padding-top: 130px; }
.dl-head { max-width: 860px; margin: 0 auto 40px; text-align: center; }
.dsearch { position: relative; display: block; margin: 26px auto 16px; }
.dsearch > svg { position: absolute; left: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px; color: var(--aqua); }
.dsearch .input { min-height: 68px; padding: 0 70px 0 56px; border-radius: 20px; font-size: 18px; background: rgba(0, 10, 26, .8); }
.dsearch kbd { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); padding: 3px 8px; border-radius: 7px; border: 1px solid var(--line2); color: var(--muted); font-size: 12px; }
.dsearch.sm { margin: 0; width: min(320px, 100%); }
.dsearch.sm .input { min-height: 44px; font-size: 15px; padding-left: 44px; border-radius: 12px; }
.dsearch.sm > svg { left: 14px; width: 18px; height: 18px; margin-top: -9px; }
.dsearch.sm kbd { right: 10px; }
.dl-quick { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.dres { max-width: 860px; margin: 0 auto; display: grid; gap: 28px; }
.rg-h { font-size: 12px; color: var(--aqua); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.res { display: grid; grid-template-columns: 1fr 22px; gap: 2px 14px; padding: 16px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 8px; color: var(--ink); transition: border-color .2s, transform .3s var(--ease); }
.res:hover { border-color: var(--aqua); color: var(--ink); transform: translateX(4px); }
.res b { color: var(--cream); font-family: var(--f-d); font-size: 17px; }
.res > span { grid-column: 1; font-size: 14px; overflow-wrap: anywhere; }
.res > svg { grid-row: 1 / span 2; grid-column: 2; align-self: center; width: 18px; height: 18px; color: var(--aqua); }
mark { background: rgba(92, 223, 221, .25); color: var(--cream); border-radius: 3px; padding: 0 2px; }
.reader { max-width: 900px; padding-top: 100px; }
.rd-bar { position: sticky; top: 74px; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 12px 10px 16px; border-radius: 16px; background: rgba(1, 14, 30, .85); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); margin-bottom: 34px; flex-wrap: wrap; }
.rd-bar .crumbs { margin: 0; }
.doc { min-width: 0; }
.onpage { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 30px; }
.onpage .pill { font-size: 13px; padding: 6px 12px; }
.doc-b { font-size: 16.5px; color: var(--mist); }
.doc-b h2 { font-size: 25px; margin-top: 40px; scroll-margin-top: 150px; }
.doc-b h3 { font-size: 19px; margin-top: 28px; }
.doc-b ul, .doc-b ol { padding-left: 22px; }
.doc-b li { margin-bottom: 8px; }
.doc-b .tbl-wrap { margin: 16px 0 22px; }
.doc-b b { color: var(--cream); }
.steps-doc li { padding-left: 4px; }
.refs li { display: flex; gap: 10px; flex-wrap: wrap; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 50px; }
.pager a { display: grid; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); color: var(--cream); }
.pager a:hover { border-color: var(--aqua); }
.pager .nx { text-align: right; }
.api-con { display: grid; gap: 8px; margin-top: 12px; }
.tests { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 6px; }
.tests li { display: grid; grid-template-columns: 26px 84px 1fr; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 14.5px; }
.tests .ti svg { width: 18px; height: 18px; display: block; }
.tests .ok .ti { color: var(--done); } .tests .bad .ti { color: var(--high); } .tests .bad { border-color: rgba(226, 107, 79, .45); }

/* permission rows adapt to their container (overview panel, phones) */
.perms { container-type: inline-size; }
@container (max-width: 1000px) {
  .perm { grid-template-columns: 1fr 112px; grid-template-areas: 'l r' 'm r' 'c r' 'k k'; gap: 10px 14px; }
  .perm-l { grid-area: l; } .perm-m { grid-area: m; } .perm-c { grid-area: c; } .perm-r { grid-area: r; align-self: stretch; align-items: center; border-left: 1px solid var(--line); padding-left: 12px; } .perm-codes { grid-area: k; }
  .perm-c dt { display: block; }
}
@container (max-width: 560px) {
  .perm { grid-template-columns: 1fr 70px; padding: 12px; }
  .perm-r .btn span { display: none; } .perm-r .btn { width: 54px; padding: 0; min-height: 54px; }
  .perm-c { grid-template-columns: 1fr 1fr; gap: 8px; }
}

/* responsive */
@media (max-width: 1100px) {
  .perm-head { display: none; }
  .scards, .apps { grid-template-columns: 1fr 1fr; }
  .strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; min-height: auto; gap: 10px; }
  .fan-stage { height: 420px; order: -1; margin: 0; overflow: hidden; }
  .fan { width: 220px; height: 300px; margin-top: 0; }
  .fc-a { font-size: 24px; }
  .scroll-cue { display: none; }
  .demo { grid-template-columns: 1fr; }
  .demo-copy { position: static; }
  .keys3 { grid-template-columns: 1fr; gap: 10px; }
  .key3 { padding: 18px; } .key3 p { font-size: 14px; margin-bottom: 6px; } .key3 dl { display: none; } .k3-i { width: 40px; height: 40px; margin-bottom: 10px; }
  .rail { grid-template-columns: 1fr; }
  .rail::before { left: 8px; right: auto; top: 0; bottom: 0; width: 4px; height: auto; background: linear-gradient(180deg, var(--aqua), var(--glow) 18%, var(--line2) 18%); }
  .rail li { padding: 0 0 22px 40px; } .rail .tooth { left: 0; top: 4px; width: 20px; height: 14px; } .rail li.now .tooth { height: 14px; width: 28px; }
  .vline, .ov-grid, .al-grid, .reg-grid, .two { grid-template-columns: 1fr; }
  .ix-in { grid-template-columns: 1fr; padding-top: 90px; gap: 26px; }
  .ix-cover { display: none; }
  .gate { grid-template-columns: 1fr; } .gate-art { display: none; }
  .app-hero { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .hide-sm { display: none !important; }
  .corner { padding: 12px 16px; }
  .brand span { font-size: 13px; letter-spacing: .14em; }
  .latch-l { display: none; } .latch { padding: 4px; }
  .pill { padding: 7px 11px; font-size: 13px; }
  .page { padding: 96px 16px 60px; }
  .sec { padding: 64px 16px; }
  .sec-tight { padding: 0 16px; }
  .hero { padding: 92px 16px 40px; }
  .hero-f { flex-direction: column; } .hero-f .btn { width: 100%; }
  .proof b { font-size: 30px; }
  .fan-stage { height: 300px; } .fan { width: 180px; height: 240px; margin-top: -50px; } .fcard { padding: 14px; } .fcard b { font-size: 15px; } .fc-top { margin-bottom: 8px; }
  .strip { grid-template-columns: 1fr 1fr; } .strip-i:last-child { grid-column: span 2; }
  .drow { grid-template-columns: 1fr 40px; grid-template-areas: 'c b' 't b' 'a b'; gap: 4px 10px; }
  .drow .chip { grid-area: c; justify-self: start; } .dr-t { grid-area: t; white-space: normal; } .dr-a { grid-area: a; } .dr-b { grid-area: b; }
  .scards, .apps, .tiles { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile b { font-size: 34px; }
  .subj-wrap { top: 64px; }
  .subj-f { flex-basis: 100%; }
  .subj-c { display: none; }
  .subj-tabs { width: 100%; }
  .toolbar .seg { width: 100%; }
  .dsearch .input { min-height: 58px; font-size: 16px; }
  .dsearch kbd { display: none; }
  .rd-bar { top: 64px; }
  .pager { grid-template-columns: 1fr; }
  .tests li { grid-template-columns: 22px 1fr; } .tests li > :nth-child(3) { grid-column: 1 / -1; }
  .log li { grid-template-columns: 1fr; } .log li > :nth-child(n) { grid-column: 1; } .log li > :first-child { grid-row: auto; }
  .stack-tag { display: none; }
  .ld-plate { display: none; }
  .tags { padding-left: 34px; }
  .h-addr { font-size: 30px; }
  .kv { flex-direction: column; gap: 2px; } .kv b { text-align: left; }
  .flow-result .kv { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .fc-stamp { opacity: 0; }
}
