/* Stockely design system. One variable family (Archivo): expanded widths for headings, condensed for tickers and prices,
   normal for text. Cobalt on cool paper, a navy ink, green and coral only for market direction.
   Every color is a token: light on :root, dark under prefers-color-scheme and [data-theme=dark]. */
@font-face { font-family: 'Archivo'; src: url(fonts/archivo.woff2) format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --bg: #EDF0F6; --surface: #FFFFFF; --surface2: #F5F7FC; --sunk: #E6EAF3;
  --ink: #0E1A3A; --ink2: #45516F; --ink3: #7B87A4; --line: #DCE2EE; --line2: #C9D1E3;
  --accent: #2447F5; --accent-ink: #FFFFFF; --accent-soft: #E3E9FF; --accent-line: #B7C4FF;
  --up: #0A9A68; --up-soft: #DDF6EC; --down: #DE3B55; --down-soft: #FDE4E8;
  --shadow: 0 1px 2px rgba(14, 26, 58, .06), 0 12px 32px -12px rgba(14, 26, 58, .18);
  --gut-l: max(16px, env(safe-area-inset-left, 0px)); --gut-r: max(16px, env(safe-area-inset-right, 0px));
  --side: 240px; --r: 14px; --r2: 10px;
  --stretch-wide: 114%; --stretch-cond: 74%;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0A1022; --surface: #111A34; --surface2: #172243; --sunk: #0D1530;
    --ink: #EAF0FF; --ink2: #AAB6D8; --ink3: #6F7DA6; --line: #222F57; --line2: #2E3D6C;
    --accent: #7391FF; --accent-ink: #081028; --accent-soft: #1B2A66; --accent-line: #3A52B8;
    --up: #36D39A; --up-soft: #0F3A31; --down: #FF6F88; --down-soft: #46202B;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 36px -14px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0A1022; --surface: #111A34; --surface2: #172243; --sunk: #0D1530;
  --ink: #EAF0FF; --ink2: #AAB6D8; --ink3: #6F7DA6; --line: #222F57; --line2: #2E3D6C;
  --accent: #7391FF; --accent-ink: #081028; --accent-soft: #1B2A66; --accent-line: #3A52B8;
  --up: #36D39A; --up-soft: #0F3A31; --down: #FF6F88; --down-soft: #46202B;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 36px -14px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 450 15px/1.55 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif; font-stretch: 100%; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-stretch: var(--stretch-wide); font-weight: 720; letter-spacing: -.012em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.2vw, 60px); font-weight: 760; }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 19px; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-soft); }
.mut { color: var(--ink2); } .dim { color: var(--ink3); }
.up { color: var(--up); } .down { color: var(--down); }
.num { font-stretch: var(--stretch-cond); font-weight: 680; letter-spacing: .005em; font-variant-numeric: tabular-nums lining-nums; }
.wide { font-stretch: var(--stretch-wide); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.row { display: flex; align-items: center; gap: 10px; } .col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; min-width: 0; } .wrap { flex-wrap: wrap; } .gap6 { gap: 6px; } .gap16 { gap: 16px; } .gap24 { gap: 24px; }
.tr { text-align: right; } .ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
sub { font-size: .7em; vertical-align: baseline; position: relative; top: .25em; }

/* ---------------------------------------------------------------- shell */
.app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 20px; padding: 22px 14px 18px; background: var(--surface); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.brand b { font-stretch: var(--stretch-wide); font-weight: 780; font-size: 20px; letter-spacing: -.02em; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--ink2); font-weight: 560; transition: background .15s, color .15s; }
.nav a svg { flex: none; opacity: .85; }
.nav a:hover { background: var(--surface2); color: var(--ink); }
.nav a.on { background: var(--accent-soft); color: var(--accent); }
.nav a.on svg { opacity: 1; }
.mkt { display: flex; flex-direction: column; min-height: 0; }
.mkt h4 { font-size: 13px; font-stretch: 100%; font-weight: 640; color: var(--ink3); padding: 0 12px 6px; letter-spacing: 0; }
.mkt a { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 9px; font-size: 13.5px; }
.mkt a:hover { background: var(--surface2); }
.mkt img { width: 22px; height: 22px; border-radius: 50%; }
.mkt .s { font-weight: 640; } .mkt .p { text-align: right; line-height: 1.15; }
.mkt .p small { display: block; font-size: 11.5px; }
.sidefoot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 0 6px; }
.hypechip { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink2); padding: 7px 10px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--line); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); display: inline-block; box-shadow: 0 0 0 3px var(--up-soft); }
.dot.off { background: var(--ink3); box-shadow: none; }
.ib { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink2); transition: border-color .15s, color .15s; }
.ib:hover { color: var(--ink); border-color: var(--line2); }

.main { min-width: 0; }
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 12px var(--gut-r) 12px var(--gut-l); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.bar .brand { display: none; }
.find { position: relative; flex: 1; max-width: 460px; }
.find svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink3); pointer-events: none; }
.find input { width: 100%; height: 40px; padding: 0 44px 0 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); outline: none; }
.find input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.find kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 600 11px 'Archivo'; color: var(--ink3); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.bar .sp { flex: 1; }
.netchip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 13px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 560; color: var(--ink2); }
.page { padding: 10px var(--gut-r) 100px var(--gut-l); max-width: 1260px; margin: 0 auto; }
.page > .in { animation: rise .35s ease backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.foot { padding: 28px var(--gut-r) 120px var(--gut-l); max-width: 1260px; margin: 0 auto; color: var(--ink3); font-size: 13px; display: flex; flex-direction: column; gap: 10px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 560; color: var(--ink2); }
.foot nav a:hover { color: var(--accent); }
.tabs { display: none; }

/* ---------------------------------------------------------------- controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line2); background: var(--surface); font-weight: 620; white-space: nowrap; transition: transform .12s, background .15s, border-color .15s, box-shadow .15s; }
.btn:hover { border-color: var(--ink3); }
.btn:active { transform: translateY(1px); }
.btn.pri { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.pri:hover { box-shadow: 0 8px 22px -8px var(--accent); }
.btn.soft { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink2); }
.btn.ghost:hover { background: var(--surface2); color: var(--ink); }
.btn.up { background: var(--up); border-color: var(--up); color: #fff; }
.btn.down { background: var(--down); border-color: var(--down); color: #fff; }
.btn.lg { height: 50px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--sunk); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { border: 0; background: transparent; height: 32px; padding: 0 14px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--ink2); white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(14, 26, 58, .14); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--line); font-size: 13px; font-weight: 580; color: var(--ink2); }
.chip img { width: 16px; height: 16px; border-radius: 50%; }
.chip.soft { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.chip.up { background: var(--up-soft); border-color: transparent; color: var(--up); }
.chip.down { background: var(--down-soft); border-color: transparent; color: var(--down); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .lbl { font-size: 13.5px; font-weight: 620; color: var(--ink2); }
.hint { font-size: 12.5px; color: var(--ink3); }
.inp { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.inp:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.inp input, .inp textarea, .inp select { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; height: 42px; }
.inp textarea { height: auto; min-height: 84px; padding: 10px 0; resize: vertical; line-height: 1.45; }
.inp .u { color: var(--ink3); font-weight: 620; font-size: 14px; }
.inp.bad { border-color: var(--down); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--accent) var(--p, 50%), var(--sunk) var(--p, 50%)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 99px; background: var(--sunk); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--accent); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 2px 8px rgba(14, 26, 58, .25); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.empty { text-align: center; padding: 56px 16px; color: var(--ink2); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.skel { border-radius: var(--r); min-height: 120px; background: linear-gradient(100deg, var(--sunk) 30%, var(--surface2) 50%, var(--sunk) 70%) 0 0 / 220% 100%; animation: sh 1.3s infinite linear; }
@keyframes sh { to { background-position: -120% 0; } }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 24px); opacity: 0; pointer-events: none; z-index: 90; max-width: min(92vw, 460px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 560; font-size: 14px; border: 1px solid transparent; transition: .25s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(8, 14, 32, .55); backdrop-filter: blur(4px); }
.modal[hidden] { display: none; }
.mbox { width: min(480px, 100%); max-height: 88vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; animation: pop .2s ease both; }
@keyframes pop { from { opacity: 0; transform: scale(.97) translateY(6px); } to { opacity: 1; transform: none; } }
.wl { display: flex; flex-direction: column; gap: 8px; }
.wl button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface2); font-weight: 600; text-align: left; }
.wl button:hover { border-color: var(--accent); }
.av { width: 18px; height: 18px; border-radius: 50%; display: inline-block; vertical-align: -3px; margin-right: 6px; }
.star { border: 0; background: transparent; color: var(--ink3); font-size: 18px; padding: 4px; line-height: 1; }
.star.on { color: #E0A400; }
.slogo { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.cimg { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; flex: none; background: var(--sunk); }

/* ---------------------------------------------------------------- certificate */
.cert-wrap { perspective: 1100px; }
.cert { --c: #2447F5; position: relative; aspect-ratio: 1.62; width: 100%; max-width: 560px; border-radius: 18px; color: #0E1A3A; background: #FBFCFF; border: 1px solid #C9D1E3; box-shadow: 0 30px 60px -28px rgba(14, 26, 58, .5), 0 2px 0 #fff inset; overflow: hidden; transform-style: preserve-3d; transition: transform .25s ease-out; will-change: transform; isolation: isolate; }
.cert::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 10% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 60%); z-index: -1; }
.cert .guil { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--c); opacity: .55; z-index: -1; }
.cert .frame { position: absolute; inset: 10px; border: 1.5px solid color-mix(in srgb, var(--c) 55%, #fff); border-radius: 11px; pointer-events: none; }
.cert .frame::after { content: ""; position: absolute; inset: 4px; border: 1px solid color-mix(in srgb, var(--c) 30%, #fff); border-radius: 8px; }
.cert .body { position: absolute; inset: 0; padding: 26px 32% 24px 28px; display: flex; flex-direction: column; justify-content: space-between; }
.cert .top { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; color: #45516F; }
.cert .top img { width: 22px; height: 22px; border-radius: 6px; }
.cert .name { font-stretch: var(--stretch-wide); font-weight: 760; font-size: clamp(18px, 3.2vw, 26px); letter-spacing: -.015em; line-height: 1.08; margin-top: 8px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.cert .tick { font-stretch: var(--stretch-cond); font-weight: 800; font-size: clamp(34px, 7vw, 58px); line-height: .95; letter-spacing: .005em; color: var(--c); filter: saturate(1.1) brightness(.78); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cert .meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: #45516F; font-weight: 560; }
.cert .meta b { color: #0E1A3A; font-weight: 700; }
.cert .stub { position: absolute; top: 0; right: 0; bottom: 0; width: 28%; border-left: 2px dashed color-mix(in srgb, var(--c) 45%, #fff); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px; text-align: center; background: color-mix(in srgb, var(--c) 7%, transparent); }
.cert .stub::before, .cert .stub::after { content: ""; position: absolute; left: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 1px solid #C9D1E3; }
.cert .stub::before { top: -11px; } .cert .stub::after { bottom: -11px; }
.cert .stub img { width: clamp(44px, 9vw, 72px); height: clamp(44px, 9vw, 72px); border-radius: 50%; box-shadow: 0 8px 18px -8px rgba(14, 26, 58, .5); object-fit: cover; background: #fff; }
.cert .stub small { font-size: 11px; color: #45516F; font-weight: 600; line-height: 1.25; }
.cert .stub strong { font-stretch: var(--stretch-cond); font-weight: 760; font-size: 20px; color: #0E1A3A; line-height: 1; }
.cert .sheen { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(var(--sx, -120%)); pointer-events: none; mix-blend-mode: soft-light; }
.cert.sm { max-width: 340px; border-radius: 14px; }
.cert.sm .body { padding: 18px 32% 16px 20px; } .cert.sm .meta { font-size: 11px; } .cert.sm .top { font-size: 11.5px; }

/* ---------------------------------------------------------------- home */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 28px 0 24px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: 18px; color: var(--ink2); max-width: 540px; margin-top: 18px; }
.hero .cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero .nums { display: flex; gap: 34px; margin-top: 34px; flex-wrap: wrap; }
.hero .nums .num { font-size: 36px; line-height: 1; display: block; }
.hero .nums span.l { font-size: 13px; color: var(--ink3); font-weight: 560; }
.picker { display: flex; gap: 8px; margin-top: 18px; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
.picker::-webkit-scrollbar { display: none; }
.picker button { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 6px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-weight: 640; font-size: 13.5px; scroll-snap-align: center; transition: border-color .15s, background .15s; }
.picker button img { width: 26px; height: 26px; border-radius: 50%; }
.picker button.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.sec { margin-top: 64px; }
.sec > .hd { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.sec > .hd p { color: var(--ink2); margin-top: 6px; max-width: 560px; }
.stkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.stk { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.stk:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.stk img { width: 40px; height: 40px; border-radius: 50%; }
.stk b { display: block; font-weight: 680; line-height: 1.2; }
.stk .px { font-size: 13px; color: var(--ink2); }
.stk .ct { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink3); display: flex; justify-content: space-between; border-top: 1px dashed var(--line); padding-top: 8px; }
.split2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.feed { display: flex; flex-direction: column; }
.feed a { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); animation: rise .3s ease both; }
.feed a:hover { background: var(--surface2); }
.feed .t { font-size: 13px; color: var(--ink3); }
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.flow { display: flex; height: 44px; border-radius: 12px; overflow: hidden; gap: 2px; background: var(--bg); }
.flow > div { display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; color: #fff; transition: flex-grow .35s ease; min-width: 0; overflow: hidden; white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.steps > div { padding: 22px 22px 0 0; }
.steps .n { font-stretch: var(--stretch-cond); font-weight: 800; font-size: 44px; color: var(--accent); line-height: 1; }
.steps h3 { margin: 10px 0 6px; font-size: 18px; }
.steps p { color: var(--ink2); font-size: 14.5px; }

/* ---------------------------------------------------------------- explore */
.head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0 20px; }
.head p { color: var(--ink2); margin-top: 6px; }
.filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.themes { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: thin; }
.themes button { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px 0 5px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-weight: 620; font-size: 13.5px; color: var(--ink2); }
.themes button img { width: 24px; height: 24px; border-radius: 50%; }
.themes button.all { padding-left: 14px; }
.themes button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.lt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.lt .h, .lt a.r { display: grid; grid-template-columns: 34px minmax(190px, 2.3fr) minmax(90px, 1fr) minmax(80px, .8fr) minmax(90px, 1fr) minmax(90px, 1fr) minmax(130px, 1.1fr); gap: 14px; align-items: center; padding: 12px 18px; }
.lt .h { font-size: 12.5px; font-weight: 620; color: var(--ink3); border-bottom: 1px solid var(--line); background: var(--surface2); }
.lt a.r { border-bottom: 1px solid var(--line); transition: background .12s; }
.lt a.r:last-child { border-bottom: 0; }
.lt a.r:hover { background: var(--surface2); }
.lt .rk { color: var(--ink3); font-weight: 600; font-size: 13px; }
.lt .who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lt .who b { display: block; font-weight: 680; line-height: 1.2; }
.lt .who small { color: var(--ink3); font-size: 13px; }
.lt .who .th { margin-left: 4px; vertical-align: -3px; width: 15px; height: 15px; border-radius: 50%; }
.lt .v { font-size: 17px; line-height: 1; }
.lt .shr { display: flex; flex-direction: column; gap: 6px; }
.lt .shr small { color: var(--ink3); font-size: 12px; line-height: 1; }
.mini { display: flex; height: 6px; border-radius: 99px; overflow: hidden; background: var(--sunk); gap: 1px; }
.mini i { display: block; height: 100%; }
.gridv { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
.tile:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.tile .top { display: flex; gap: 12px; align-items: center; }
.tile .kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile .kv span { display: block; font-size: 12px; color: var(--ink3); }
.more { display: flex; justify-content: center; padding: 22px 0 0; }

/* ---------------------------------------------------------------- coin */
.chead { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 0 6px; }
.chead .cimg { width: 56px; height: 56px; border-radius: 16px; }
.chead h1 { font-size: clamp(24px, 3vw, 34px); }
.chead .tk { font-stretch: var(--stretch-cond); font-weight: 760; font-size: 22px; color: var(--ink3); }
.crumb { font-size: 13.5px; color: var(--ink3); display: flex; gap: 8px; padding-top: 6px; }
.crumb a:hover { color: var(--accent); }
.pricebox { margin-left: auto; text-align: right; }
.pricebox .num { font-size: 40px; line-height: 1; display: block; }
.strip { display: flex; flex-wrap: wrap; gap: 0; margin: 16px 0 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip > div { flex: 1 1 130px; padding: 12px 18px 12px 0; }
.strip > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.strip span { display: block; font-size: 12.5px; color: var(--ink3); font-weight: 560; }
.strip b { font-size: 21px; line-height: 1.25; }
.cgrid { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 28px; align-items: start; }
.chartbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 12px 6px; }
.chartbox .tb { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 2px 4px 10px; flex-wrap: wrap; }
.chart { height: 360px; position: relative; }
.chart canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.ctabs { margin: 26px 0 14px; }
.ticket { position: sticky; top: 76px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.ticket .sd { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--sunk); border-radius: 13px; }
.ticket .sd button { height: 40px; border: 0; border-radius: 10px; background: transparent; font-weight: 700; color: var(--ink2); }
.ticket .sd button.on.b { background: var(--up); color: #fff; } .ticket .sd button.on.s { background: var(--down); color: #fff; }
.ticket .quick { display: flex; gap: 6px; } .ticket .quick button { flex: 1; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface2); font-size: 13px; font-weight: 620; color: var(--ink2); }
.ticket .quick button:hover { border-color: var(--accent); color: var(--accent); }
.ticket .out { display: flex; justify-content: space-between; font-size: 14px; }
.ticket .perf { border: 0; border-top: 2px dashed var(--line2); margin: 2px -18px; }
.kv2 { display: flex; flex-direction: column; }
.kv2 > div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.kv2 > div:last-child { border-bottom: 0; }
.kv2 span { color: var(--ink2); }
.tt { width: 100%; border-collapse: collapse; font-size: 14px; }
.tt th { text-align: left; font-size: 12.5px; font-weight: 620; color: var(--ink3); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tt td { padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tt .tr { text-align: right; }
.scroll { overflow-x: auto; }
.stack { display: flex; height: 18px; border-radius: 9px; overflow: hidden; gap: 2px; background: var(--bg); }
.stack i { display: block; height: 100%; transition: filter .15s; }
.stack i:hover { filter: brightness(1.15); }
.parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 22px; margin-top: 14px; }
.parts div { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.parts i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.parts .grow span { display: block; font-size: 12.5px; color: var(--ink3); }
.theme-box { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface2); }
.theme-box img { width: 48px; height: 48px; border-radius: 50%; }
.sheetbar { display: none; }

/* ---------------------------------------------------------------- launch */
.lgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 460px); gap: 44px; align-items: start; }
.prog { display: flex; gap: 0; margin: 4px 0 26px; }
.prog button { flex: 1; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 0 0 12px; border-bottom: 3px solid var(--line); text-align: left; font-weight: 640; color: var(--ink3); margin-right: 10px; }
.prog button .n { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }
.prog button.on { border-color: var(--accent); color: var(--ink); } .prog button.on .n { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.prog button.done { border-color: var(--accent-line); color: var(--ink2); } .prog button.done .n { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.step { display: flex; flex-direction: column; gap: 18px; animation: rise .3s ease both; }
.step h2 { font-size: 28px; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tbtn { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--surface); text-align: left; transition: border-color .15s, background .15s, transform .15s; }
.tbtn:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.tbtn img { width: 38px; height: 38px; border-radius: 50%; }
.tbtn b { font-weight: 700; line-height: 1.1; }
.tbtn small { color: var(--ink3); font-size: 12.5px; line-height: 1.2; }
.tbtn.on { border-color: var(--accent); background: var(--accent-soft); }
.logo-pick { display: flex; align-items: center; gap: 14px; }
.logo-pick img { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; background: var(--sunk); }
.nav2 { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; }
.prev { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 18px; }
.sumrow { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.sumrow span:first-child { color: var(--ink2); }
.pairpill { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface2); border: 1px dashed var(--line2); }
.pairpill .hy { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #0E1A3A, #2447F5); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 11px; flex: none; }
.presets { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- docs */
.dgrid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 52px; align-items: start; padding-top: 18px; }
.toc { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--line); }
.toc a { padding: 7px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink2); font-weight: 560; font-size: 14.5px; }
.toc a:hover { color: var(--ink); } .toc a.on { color: var(--accent); border-color: var(--accent); }
.doc { max-width: 760px; display: flex; flex-direction: column; gap: 56px; }
.doc section { scroll-margin-top: 84px; display: flex; flex-direction: column; gap: 14px; }
.doc h2 { font-size: 30px; }
.doc h3 { font-size: 18px; margin-top: 8px; }
.doc p, .doc li { color: var(--ink2); font-size: 16px; line-height: 1.65; }
.doc ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.doc code, .code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .86em; background: var(--sunk); padding: 2px 6px; border-radius: 6px; color: var(--ink); word-break: break-all; }
.addr { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.addr span.k { width: 150px; font-weight: 620; font-size: 14.5px; }
.addr .code { flex: 1; min-width: 0; }
details.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--ink3); transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin-top: 10px; }
.callout { padding: 16px 18px; border-radius: var(--r); background: var(--accent-soft); color: var(--ink); font-size: 15px; border: 1px solid var(--accent-line); }

/* ---------------------------------------------------------------- portfolio */
.ptop { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; margin: 10px 0 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ptop > div { padding: 16px 18px 16px 0; } .ptop > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.ptop span { display: block; font-size: 12.5px; color: var(--ink3); font-weight: 560; }
.ptop b { font-size: 30px; line-height: 1.2; }
.prow { display: grid; grid-template-columns: minmax(180px, 2fr) 1fr 1fr 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.prow:last-child { border-bottom: 0; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .cgrid { grid-template-columns: minmax(0, 1fr); }
  .ticket { position: static; }
  .lgrid { grid-template-columns: minmax(0, 1fr); } .prev { position: static; order: -1; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .lt .h, .lt a.r { grid-template-columns: 30px minmax(170px, 2fr) minmax(80px, 1fr) minmax(70px, .7fr) minmax(90px, 1fr) minmax(120px, 1fr); }
  .lt .c-vol { display: none; }
}
@media (max-width: 880px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .bar .brand { display: flex; padding: 0; } .bar .brand b { font-size: 18px; }
  .find { display: none; } .netchip { display: none; }
  .bar .sp { flex: 1; }
  .tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 11.5px; font-weight: 600; color: var(--ink3); border-radius: 10px; }
  .tabs a.on { color: var(--accent); }
  .page { padding-bottom: 110px; }
  .split2 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps { grid-template-columns: minmax(0, 1fr); } .steps > div { padding: 18px 0 6px; border-bottom: 1px solid var(--line); }
  .dgrid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 2px solid var(--line); gap: 0; scrollbar-width: none; }
  .toc a { border-left: 0; border-bottom: 2px solid transparent; margin: 0 0 -2px; white-space: nowrap; }
  .toc a.on { border-bottom-color: var(--accent); }
  .sec { margin-top: 48px; }
  .lt .h { display: none; }
  .lt a.r { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px 16px; }
  .lt .rk, .lt .c-vol, .lt .c-hold, .lt .c-share { display: none; }
  .lt .c-mc { grid-column: 2; grid-row: 1; text-align: right; } .lt .c-px { grid-column: 1; grid-row: 2; } .lt .c-ch { grid-column: 2; grid-row: 2; text-align: right; }
  .sheetbar { display: flex; position: fixed; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom, 0px)); z-index: 35; padding: 10px max(14px, env(safe-area-inset-right, 0px)) 10px max(14px, env(safe-area-inset-left, 0px)); gap: 10px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .sheetbar .btn { flex: 1; }
  .ticket.sheet { position: fixed; top: auto; left: 0; right: 0; bottom: 0; z-index: 60; border-radius: 22px 22px 0 0; max-height: 86vh; overflow: auto; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateY(110%); visibility: hidden; transition: transform .28s ease, visibility 0s .28s; }
  .ticket.sheet.open { transform: none; visibility: visible; transition: transform .28s ease; }
  .scrim { position: fixed; inset: 0; z-index: 55; background: rgba(8, 14, 32, .5); }
  .scrim[hidden] { display: none; }
  .prow { grid-template-columns: minmax(0, 1fr) auto; } .prow .x { display: none; }
  .strip > div { flex: 1 1 45%; } .strip > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .pricebox { margin-left: 0; text-align: left; width: 100%; }
  .chart { height: 290px; }
  .cert .body { padding: 20px 31% 18px 20px; }
}
@media (min-width: 881px) { .scrim { display: none; } .ticket.sheet { transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.demo { background: var(--ink); color: var(--bg); font-size: 12.5px; text-align: center; padding: 7px var(--gut-r) 7px var(--gut-l); font-weight: 560; }

/* wizard on narrow screens: keep the certificate, drop the summary, shorten the step labels */
@media (max-width: 1100px) { .prev .box { display: none; } .prev .cert { max-width: 420px; } }
@media (max-width: 880px) {
  .prog button { min-width: 0; margin-right: 6px; gap: 6px; }
  .prog button:not(.on) .ell { display: none; }
  .prog button.on { flex: 2; }
  .lgrid > *, .cgrid > *, .hero > * { min-width: 0; }
}
