@font-face { font-family: Inter; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/inter-latin.woff2) format("woff2"); }
@font-face { font-family: "Zilla Slab"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/zilla-normal-600.woff2) format("woff2"); }
@font-face { font-family: "Zilla Slab"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/zilla-italic-400.woff2) format("woff2"); }

:root {
  --ground: #0b0b0c;
  --frame: #101012;
  --panel: #151517;
  --panel-2: #1c1c1f;
  --panel-3: #232327;
  --line: rgba(255, 255, 255, .06);
  --line-2: rgba(255, 255, 255, .1);
  --text: #f3f3f4;
  --text-2: #a3a3aa;
  --text-3: #6c6c74;
  --accent: #ececee;
  --accent-2: #d4d4d8;
  --accent-ink: #0b0b0c;
  --up-ink: #03130b;
  --down-ink: #1a0507;
  --up: #3ccf8e;
  --down: #f2626e;
  --candle-down: #3c3c42;
  --serif: "Zilla Slab", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --r: 20px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--ground); color: var(--text); height: 100%; }
body { font: 400 14px/1.4 var(--sans); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
svg { flex: none; }
.num, .tab-p, .px-big, .k, td.n { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel-2); padding: 8px 12px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid rgba(255, 255, 255, .55); outline-offset: 2px; }
.up { color: var(--up); }
.down { color: var(--down); }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 12.5px; letter-spacing: -.01em; }

/* ------------------------------------------------------------------ frame */
.t { display: grid; grid-template-columns: 76px minmax(0, 1fr); grid-template-rows: 68px 1fr; min-height: 100vh; }
.rail { grid-row: 1 / 3; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0 18px; position: sticky; top: 0; height: 100vh; }
.rail-mark { width: 46px; height: 46px; border-radius: 50%; background: transparent; display: grid; place-items: center; font: 600 15px/1 var(--serif); letter-spacing: .01em; margin-bottom: 18px; transition: transform .5s var(--spring); }
.rail-mark:hover { transform: scale(1.06); }
.rail-mark img { width: 24px; height: auto; display: block; }
.rail-nav, .rail-foot { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.rail-nav { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rail-foot { margin-top: auto; }
.rail .rail-x svg { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.rail a:not(.rail-mark) { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--text-3); transition: color .25s, background .25s var(--out), box-shadow .25s; }
.rail a:not(.rail-mark):hover { color: var(--text); background: var(--panel); }
.rail a.on { color: var(--text); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2), 0 6px 16px rgba(0, 0, 0, .35); }
.rail svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.bar { display: flex; align-items: center; gap: 18px; padding: 0 20px 0 6px; min-width: 0; }
.bar-word { font: 600 21px/1 var(--serif); letter-spacing: .005em; padding-bottom: 4px; border-bottom: 1.5px dotted rgba(243, 243, 244, .5); white-space: nowrap; }
.search { position: relative; flex: 1; max-width: 460px; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px 0 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); transition: border-color .25s, background .25s; }
.search:focus-within { border-color: var(--line-2); background: var(--panel-2); }
.search svg { width: 17px; height: 17px; fill: none; stroke: var(--text-3); stroke-width: 1.6; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 14px; }
.search input::placeholder { color: var(--text-3); }
.search kbd { font: 500 11px var(--sans); color: var(--text-3); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; }
.search-pop { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 16px; padding: 6px; z-index: 30; box-shadow: 0 20px 50px rgba(0, 0, 0, .55); max-height: 380px; overflow: auto; }
.search-pop button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; text-align: left; }
.search-pop button:hover, .search-pop button.on { background: var(--panel-3); }
.search-pop .sp-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-pop .sp-empty { padding: 12px; color: var(--text-2); font-size: 13px; }
.bar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pill { height: 42px; display: inline-flex; align-items: center; gap: 9px; padding: 0 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); font-weight: 500; white-space: nowrap; transition: background .25s, border-color .25s; }
.pill:hover { background: var(--panel-2); border-color: var(--line-2); }
.pill svg { width: 18px; height: 18px; fill: none; stroke: var(--text-2); stroke-width: 1.5; stroke-linecap: round; }
.pill-key.ok svg { stroke: var(--up); }
.btn { height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border-radius: 14px; font-weight: 600; white-space: nowrap; transition: background .25s, transform .3s var(--spring), opacity .2s; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover:not([disabled]) { background: #fff; }
.btn-buy { background: var(--up); color: var(--up-ink); }
.btn-buy:hover:not([disabled]) { background: #52dc9e; }
.btn-sell { background: var(--down); color: var(--down-ink); }
.btn-sell:hover:not([disabled]) { background: #f6767f; }
.btn-block[disabled] { background: var(--panel-3); color: var(--text-3); opacity: 1; }
.btn-dark { background: var(--panel-2); border: 1px solid var(--line-2); }
.btn-dark:hover:not([disabled]) { background: var(--panel-3); }
.btn-light { background: var(--text); color: #0b0b0c; }
.btn-light:hover:not([disabled]) { background: #fff; }
.btn-wallet { background: var(--panel); border: 1px solid var(--line); font-weight: 500; }
.btn-wallet i { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px rgba(60, 207, 142, .15); }
.btn-block { width: 100%; height: 50px; font-size: 15px; border-radius: 14px; }

.view { grid-column: 2; min-width: 0; padding: 0 16px 16px 0; outline: 0; }
.view > * { animation: rise .5s var(--out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* ------------------------------------------------------------------ cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.card-h h2, .card-h h3 { font-size: 15px; font-weight: 600; }
.lab { font-size: 12px; color: var(--text-2); }

/* ------------------------------------------------------------------ pair tabs */
.tabs { display: flex; gap: 10px; overflow-x: auto; padding: 2px 0 14px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 12px 0 10px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; transition: background .25s, border-color .25s, transform .35s var(--spring); }
.tab:hover { background: var(--panel-2); }
.tab.on { background: var(--panel-2); border-color: var(--line-2); }
.tab-t { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.tab-n { font-size: 15px; font-weight: 500; white-space: nowrap; }
.tab-p { font-size: 12px; color: var(--text-3); }
.tab-x { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--text-3); margin-left: 8px; }
.tab-x:hover { color: var(--text); background: var(--panel-3); }
.tab-x svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 1.6; }
.tab-add { width: 56px; justify-content: center; padding: 0; color: var(--text-3); }
.tab-add svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.6; fill: none; }

.ico { width: 36px; height: 36px; border-radius: 11px; background: var(--panel-3); overflow: hidden; display: grid; place-items: center; font-weight: 600; font-size: 13px; color: var(--text-2); flex: none; }
.ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ico.sm { width: 28px; height: 28px; border-radius: 9px; font-size: 11px; }
.ico.lg { width: 50px; height: 50px; border-radius: 14px; font-size: 16px; }

/* ------------------------------------------------------------------ trade grid */
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start; }
.col-main { display: grid; gap: 14px; min-width: 0; }
.col-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; position: sticky; top: 12px; min-width: 0; }

.px-head { display: flex; align-items: center; gap: 18px; padding: 20px 22px 14px; flex-wrap: wrap; }
.px-id { display: flex; align-items: center; gap: 14px; padding-right: 18px; border-right: 1px solid var(--line-2); }
.px-big { font-size: 38px; font-weight: 300; letter-spacing: -.02em; line-height: 1; }
.px-big sub { font-size: .5em; vertical-align: -.15em; }
.px-sym { font-size: 12px; color: var(--text-2); margin-top: 6px; display: flex; gap: 8px; align-items: center; }
.px-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.px-stat { display: flex; flex-direction: column; gap: 5px; padding-right: 18px; border-right: 1px solid var(--line-2); }
.px-stat:last-child { border-right: 0; }
.px-stat .lab { font-size: 12px; }
.px-stat .k { font-size: 16px; font-weight: 500; }
.curve-bar { width: 96px; height: 5px; border-radius: 3px; background: var(--panel-3); overflow: hidden; margin-top: 2px; }
.curve-bar i { display: block; height: 100%; background: var(--up); border-radius: 3px; transition: width .8s var(--out); }

.chart-tools { display: flex; align-items: center; gap: 10px; padding: 0 22px 8px; flex-wrap: wrap; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.seg button { height: 30px; padding: 0 12px; border-radius: 9px; font-size: 12.5px; font-weight: 500; color: var(--text-2); transition: background .25s var(--out), color .2s; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--panel-3); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.seg.lg { width: 100%; padding: 4px; border-radius: 14px; }
.seg.lg button { flex: 1; height: 40px; border-radius: 11px; font-size: 14px; }
.seg.lg button.on.buy { background: var(--up); color: var(--up-ink); }
.seg.lg button.on.sell { background: var(--down); color: var(--down-ink); }
.chart-tools .spacer { flex: 1; }
.chart-src { font-size: 11.5px; color: var(--text-3); }
.chart-box { position: relative; height: 440px; margin: 0 10px 10px; }
.chart-box canvas { width: 100%; height: 100%; display: block; cursor: crosshair; }
.chart-tip { position: absolute; pointer-events: none; background: rgba(36, 36, 40, .92); border: 1px solid var(--line-2); backdrop-filter: blur(8px); border-radius: 14px; padding: 12px 14px; min-width: 170px; font-size: 12.5px; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .2s var(--out); }
.chart-tip.in { opacity: 1; transform: none; }
.chart-tip b { display: block; font-weight: 500; font-size: 13px; margin-bottom: 8px; }
.chart-tip dl { display: grid; grid-template-columns: auto auto; gap: 4px 18px; }
.chart-tip dt { color: var(--text-2); }
.chart-tip dd { text-align: right; font-variant-numeric: tabular-nums; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); font-size: 13px; }

/* lower card: holdings, activity, coins */
.lower .card-h { padding-bottom: 6px; }
.rows { padding: 6px 10px 10px; }
.row { display: grid; grid-template-columns: minmax(150px, 1.4fr) repeat(4, minmax(70px, 1fr)) 84px; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; transition: background .2s; }
.row:hover { background: var(--panel-2); }
.row.head { color: var(--text-3); font-size: 12px; padding-top: 6px; padding-bottom: 6px; }
.row.head:hover { background: none; }
.row .who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.row .who b { font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .who small { color: var(--text-3); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .n { text-align: right; }
.row .go { justify-self: end; height: 32px; padding: 0 12px; border-radius: 10px; font-size: 12.5px; font-weight: 500; background: var(--panel-3); }
.row .go:hover { background: #2c2c31; }
.empty { padding: 26px 22px 30px; color: var(--text-2); }
.empty p + p { margin-top: 8px; }
.empty .btn { margin-top: 16px; }

/* ------------------------------------------------------------------ ticket */
.ticket { padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.field { background: var(--panel-2); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; transition: border-color .25s; }
.field:focus-within { border-color: rgba(255, 255, 255, .22); }
.field-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--text-2); margin-bottom: 8px; gap: 10px; }
.field-top button { color: var(--text-2); font-size: 12px; }
.field-top button:hover { color: var(--text); }
.field-in { display: flex; align-items: center; gap: 10px; }
.field-in input { flex: 1; min-width: 0; width: 100%; background: none; border: 0; outline: 0; font-size: 24px; font-weight: 400; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.field-in input::placeholder { color: var(--text-3); }
.unit { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px 0 6px; border-radius: 10px; background: var(--panel-3); font-weight: 500; font-size: 13px; }
.unit .ico { width: 20px; height: 20px; border-radius: 6px; font-size: 9px; }
.chips { display: flex; gap: 6px; margin-top: 10px; }
.chips button { flex: 1; min-width: 0; height: 30px; border-radius: 9px; background: var(--panel-3); font-size: 12.5px; font-weight: 500; color: var(--text-2); transition: background .2s, color .2s; }
.chips button:hover, .chips button.on { color: var(--text); background: #2c2c31; }
.slip { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--text-2); padding: 0 4px; }
.slip .seg button { height: 26px; padding: 0 10px; font-size: 12px; }
.review { display: grid; gap: 9px; padding: 14px 4px 2px; border-top: 1px solid var(--line); font-size: 13px; }
.review div { display: flex; justify-content: space-between; gap: 12px; }
.review dt { color: var(--text-2); }
.review dd { text-align: right; font-variant-numeric: tabular-nums; }
.review .strong dd { font-weight: 600; }
.auth-note { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.45; color: var(--text-2); padding: 2px 4px; }
.auth-note svg { width: 16px; height: 16px; margin-top: 1px; fill: none; stroke: var(--text-2); stroke-width: 1.6; }
.warn { font-size: 12.5px; line-height: 1.45; color: #f3c27a; background: rgba(243, 194, 122, .07); border: 1px solid rgba(243, 194, 122, .18); border-radius: 12px; padding: 10px 12px; }

.vaultbox { padding: 18px; display: grid; gap: 14px; }
.vb-h { display: flex; justify-content: space-between; align-items: center; }
.vb-h h3 { font-size: 15px; font-weight: 600; }
.vb-h a { font-size: 12.5px; color: var(--text-2); }
.vb-h a:hover { color: var(--text); }
.vb-rows { display: grid; gap: 9px; font-size: 13px; }
.vb-rows div { display: flex; justify-content: space-between; }
.vb-rows dt { color: var(--text-2); }
.vb-rows dd { font-variant-numeric: tabular-nums; }
.vb-act { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ------------------------------------------------------------------ vault dashboard (two-panel, like a finance dashboard) */
.vd { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0; background: var(--frame); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.vd-main { padding: 26px 28px 28px; border-right: 1px solid var(--line); min-width: 0; }
.vd-side { padding: 26px 24px; display: grid; gap: 26px; align-content: start; }
.vd-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.vd-top h1 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.vd-top .acts { display: flex; gap: 8px; }
.vd-top .btn { height: 38px; border-radius: 11px; font-size: 13px; font-weight: 500; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.kpi { padding: 4px 18px 22px; border-right: 1px solid var(--line); }
.kpi:first-child { padding-left: 0; }
.kpi:last-child { border-right: 0; }
.kpi .lab { margin-bottom: 10px; display: block; }
.kpi .k { font-size: 28px; font-weight: 500; letter-spacing: -.02em; }
.kpi small { display: block; margin-top: 8px; font-size: 12px; color: var(--text-3); }
.vd-section { padding-top: 24px; }
.vd-section + .vd-section { border-top: 1px solid var(--line); margin-top: 24px; }
.vd-section h2 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.vd-split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.insight { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.3; color: var(--text-2); }
.insight b { font-style: normal; font-weight: 600; color: var(--text); font-family: var(--sans); font-size: 22px; letter-spacing: -.01em; }
.budget .k { font-size: 26px; font-weight: 500; margin: 4px 0 18px; }
.budget-bar { display: flex; gap: 4px; height: 12px; }
.budget-bar i { border-radius: 6px; background: var(--panel-3); }
.budget-bar i.used { background: #6a6a72; }
.budget-bar i.left { background: var(--accent); }
.legend { display: flex; gap: 16px; margin-top: 14px; font-size: 12px; color: var(--text-2); }
.legend span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.legend .l-used::before { background: #6a6a72; }
.legend .l-left::before { background: var(--accent); }

.gauge { display: grid; place-items: center; position: relative; }
.gauge svg { width: 220px; height: 220px; }
.gauge-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; }
.gauge-c .lab { font-size: 12px; }
.gauge-c .k { font-size: 26px; font-weight: 500; letter-spacing: -.02em; }
.gauge-c small { font-size: 11.5px; color: var(--text-3); }
.facts { display: grid; gap: 14px; font-size: 13px; }
.facts div { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.facts dt { color: var(--text-2); white-space: nowrap; }
.facts dd { text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facts dd a:hover { text-decoration: underline; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--panel-3); }
.tag.ok { background: rgba(60, 207, 142, .12); color: var(--up); }
.tag.warn { background: rgba(243, 194, 122, .12); color: #f3c27a; }
.side-acts { display: grid; gap: 8px; }

/* key onboarding */
.onb { max-width: 760px; margin: 18px auto 0; padding: 40px 44px 44px; }
.onb h1 { font: 600 30px/1.15 var(--serif); margin-bottom: 12px; }
.onb h1 em { font-weight: 400; }
.onb > p { color: var(--text-2); font-size: 15px; line-height: 1.55; max-width: 560px; }
.onb-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0; }
.onb-steps div { background: var(--panel-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px; font-size: 13px; color: var(--text-2); line-height: 1.45; }
.onb-steps b { display: block; color: var(--text); font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.onb-acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ sheet (dialogs) */
.sheet { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(5, 5, 6, .66); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s var(--out); }
.sheet[hidden] { display: none; }
.sheet.in { opacity: 1; }
.dlg { width: min(460px, 100%); background: var(--panel); border: 1px solid var(--line-2); border-radius: 22px; padding: 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); transform: translateY(10px) scale(.98); transition: transform .45s var(--spring); max-height: calc(100vh - 40px); overflow: auto; }
.sheet.in .dlg { transform: none; }
.dlg h2 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.dlg > p { color: var(--text-2); font-size: 13.5px; line-height: 1.5; margin-bottom: 16px; }
.dlg form { display: grid; gap: 12px; }
.dlg label { display: grid; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.dlg input[type="password"], .dlg input[type="text"] { height: 46px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-2); padding: 0 14px; font-size: 15px; outline: 0; color: var(--text); }
.dlg input:focus { border-color: rgba(255, 255, 255, .28); }
.dlg .row-btns { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }
.dlg .err { color: var(--down); font-size: 12.5px; min-height: 1em; }
.progress { height: 6px; border-radius: 3px; background: var(--panel-3); overflow: hidden; margin: 14px 0 6px; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s var(--out); }
.steps-run { display: grid; gap: 10px; margin: 6px 0 16px; }
.steps-run div { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-3); }
.steps-run div.on { color: var(--text); }
.steps-run div.done { color: var(--text-2); }
.steps-run i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; flex: none; }
.steps-run div.done i { background: var(--up); border-color: var(--up); }
.steps-run div.done i::after { content: ""; width: 7px; height: 4px; border-left: 1.6px solid var(--up-ink); border-bottom: 1.6px solid var(--up-ink); transform: rotate(-45deg) translate(1px, -1px); }
.steps-run div.on i { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* toasts */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: grid; gap: 8px; max-width: min(380px, calc(100vw - 36px)); }
.toast { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.45; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(8px); transition: opacity .3s var(--out), transform .4s var(--spring); }
.toast.in { opacity: 1; transform: none; }
.toast.bad { border-color: rgba(242, 98, 110, .35); }
.toast.good { border-color: rgba(60, 207, 142, .35); }
.toast a { text-decoration: underline; }

/* skeletons */
.sk { background: linear-gradient(90deg, var(--panel-2), var(--panel-3), var(--panel-2)); background-size: 200% 100%; animation: sk 1.4s ease-in-out infinite; border-radius: 8px; color: transparent !important; }
@keyframes sk { to { background-position: -200% 0; } }

/* ------------------------------------------------------------------ smaller screens */
@media (max-width: 1180px) {
  .grid { grid-template-columns: minmax(0, 1fr) 320px; }
  .px-stat.hide-m { display: none; }
}
@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr; }
  .col-side { position: static; }
  .vd { grid-template-columns: 1fr; }
  .vd-main { border-right: 0; border-bottom: 1px solid var(--line); }
  .row { grid-template-columns: minmax(130px, 1.4fr) repeat(2, minmax(70px, 1fr)) 72px; }
  .row .opt { display: none; }
}
@media (max-width: 720px) {
  .t { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding-bottom: 72px; }
  .rail { position: fixed; inset: auto 0 0 0; height: 66px; flex-direction: row; justify-content: space-around; padding: 0 8px env(safe-area-inset-bottom); background: rgba(11, 11, 12, .94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); z-index: 20; }
  .rail-mark { display: none; }
  .rail-nav, .rail-foot { flex-direction: row; border: 0; padding: 0; margin: 0; }
  .rail-foot a:last-child, .rail-foot .rail-x { display: none; }
  .bar { grid-column: 1; flex-wrap: wrap; padding: 12px 12px 10px; gap: 10px; }
  .bar-word { font-size: 19px; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .pill-vault, .pill-key span { display: none; }
  .pill-key { padding: 0 12px; }
  .view { grid-column: 1; padding: 0 10px 12px; }
  .px-head { gap: 14px; padding: 16px; }
  .px-id { border: 0; padding: 0; width: 100%; }
  .px-big { font-size: 30px; }
  .px-stat { border: 0; padding: 0; }
  .chart-box { height: 320px; }
  .kpis { grid-template-columns: 1fr; }
  .kpi { border-right: 0; padding: 0 0 18px; }
  .vd-split, .onb-steps { grid-template-columns: 1fr; }
  .vd-main, .vd-side, .onb { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ------------------------------------------------------------------ pulse */
.pulse-top { display: flex; align-items: center; gap: 14px; padding: 4px 4px 14px; flex-wrap: wrap; }
.pulse-top h1 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.pulse-live { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(60, 207, 142, .1); color: var(--up); font-size: 12px; font-weight: 600; }
.pulse-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--up); animation: blip 1.6s ease-in-out infinite; }
@keyframes blip { 50% { opacity: .3; transform: scale(.7); } }
.pulse-note { color: var(--text-3); font-size: 12.5px; }
.pulse-tabs { display: none; margin-left: auto; }
.pulse { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; height: calc(100vh - 68px - 60px - 16px); min-height: 520px; }
.pcol { display: flex; flex-direction: column; min-height: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .25s; }
.pcol.held { border-color: var(--line-2); }
.pcol-h { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px 18px; border-bottom: 1px solid var(--line); }
.pcol-h > div { flex: 1; min-width: 0; }
.pcol-h h2 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.pcol-h small { display: block; color: var(--text-3); font-size: 11.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcol-n { font-size: 11.5px; font-weight: 500; color: var(--text-2); background: var(--panel-3); border-radius: 999px; padding: 1px 8px; }
.pcol-n:empty { display: none; }
.pcol-hold { font-size: 11px; font-weight: 600; color: #f3c27a; opacity: 0; transition: opacity .2s; }
.pcol.held .pcol-hold { opacity: 1; }
.pcol-f { display: flex; align-items: center; gap: 7px; height: 32px; width: 130px; padding: 0 10px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.pcol-f svg { width: 14px; height: 14px; fill: none; stroke: var(--text-3); stroke-width: 1.6; }
.pcol-f input { width: 100%; min-width: 0; background: none; border: 0; outline: 0; font-size: 12.5px; }
.pcol-list { flex: 1; overflow-y: auto; padding: 6px; scrollbar-width: thin; scrollbar-color: var(--panel-3) transparent; }
.pcol-empty { padding: 40px 16px; text-align: center; color: var(--text-3); font-size: 13px; }
.pr { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; padding: 10px; border-radius: 14px; cursor: pointer; border-bottom: 1px solid var(--line); transition: background .2s; }
.pr:last-child { border-bottom: 0; }
.pr:hover { background: var(--panel-2); }
.pr.new { animation: prIn .7s var(--out) both; }
@keyframes prIn { from { opacity: 0; transform: translateY(-8px); background: rgba(255, 255, 255, .07); } 60% { background: rgba(255, 255, 255, .035); } to { background: transparent; } }
.pr-img { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.pr-ico { width: 64px; height: 64px; border-radius: 14px; font-size: 16px; box-shadow: inset 0 0 0 1px var(--line-2); }
.pr-ca { font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.pr-mid { min-width: 0; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.pr-l1 { display: flex; align-items: center; gap: 7px; min-width: 0; }
.pr-l1 b { font-size: 15px; font-weight: 600; white-space: nowrap; }
.pr-name { color: var(--text-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pr-copy { color: var(--text-3); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; flex: none; }
.pr-copy:hover { color: var(--text); background: var(--panel-3); }
.pr-copy svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.pr-l2 { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.pr-l2 span { display: inline-flex; align-items: center; gap: 4px; }
.pr-l2 svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.pr-age { color: var(--text-2); font-weight: 600; }
.pr-l3 { display: flex; align-items: center; gap: 8px; min-height: 16px; }
.pr-bar { flex: 1; max-width: 150px; height: 4px; border-radius: 2px; background: var(--panel-3); overflow: hidden; }
.pr-bar i { display: block; height: 100%; border-radius: 2px; background: var(--up); }
.pr-pct { font-size: 11.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.pr-grad { height: 20px; font-size: 11px; background: rgba(60, 207, 142, .12); color: var(--up); }
.pr-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 6px; font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr-mc b { font-weight: 600; color: var(--text); font-size: 14px; }
.pr-v { color: var(--text-2); }
.pr-buy { height: 28px; padding: 0 12px; border-radius: 9px; font-size: 12px; font-weight: 600; background: var(--panel-3); color: var(--text); transition: background .2s; }
.pr-buy:hover { background: var(--up); color: var(--up-ink); }
@media (max-width: 1180px) { .pcol-h small { display: none; } .pcol-f { width: 104px; } }
@media (max-width: 980px) {
  .pulse-tabs { display: inline-flex; }
  .pulse-note { display: none; }
  .pulse { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .pcol { display: none; max-height: none; }
  .pulse[data-mcol=newPairs] .pcol[data-col=newPairs], .pulse[data-mcol=finalStretch] .pcol[data-col=finalStretch], .pulse[data-mcol=migrated] .pcol[data-col=migrated] { display: flex; }
  .pcol-list { overflow: visible; }
}

/* ------------------------------------------------------------------ what a coin links to */
.px-soc, .pr-soc { display: inline-flex; align-items: center; gap: 1px; flex: none; }
.px-soc:empty, .pr-soc:empty { display: none; }
.soc { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; color: var(--text-3); transition: color .2s, background .2s; }
.soc:hover { color: var(--text); background: var(--panel-3); }
.soc svg { width: 13px; height: 13px; }
.ic-x { fill: currentColor; }
.ic-s { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.about { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 20px 22px; align-items: start; }
.about.has-tw { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); }
.about-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.about-h h3 { font-size: 15px; font-weight: 600; }
.about-h .dim { font-size: 12px; color: var(--text-3); }
.about-d { color: var(--text-2); font-size: 13.5px; line-height: 1.55; margin-bottom: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.about-links { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 32px; max-width: 100%; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 500; transition: background .2s; }
.chip:hover { background: var(--panel-3); }
.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip svg { width: 14px; height: 14px; flex: none; }

/* the X post a coin points to */
.tw { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 16px; padding: 14px 16px; font-size: 13.5px; line-height: 1.5; color: var(--text); }
.tw-nested { background: transparent; margin-top: 10px; padding: 10px 12px; border-radius: 12px; font-size: 13px; }
.tw-h { display: flex; align-items: center; gap: 10px; }
.tw-av { width: 38px; height: 38px; border-radius: 50%; background: var(--panel-3); flex: none; object-fit: cover; }
.tw-nested .tw-av { width: 22px; height: 22px; }
.tw-who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.tw-nested .tw-who { flex-direction: row; gap: 6px; align-items: baseline; }
.tw-who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw-who span { color: var(--text-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-who:hover b { text-decoration: underline; text-underline-offset: 2px; }
.tw-logo { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--text-2); flex: none; }
.tw-logo:hover { color: var(--text); background: var(--panel-3); }
.tw-logo svg { width: 15px; height: 15px; }
.tw-t { margin-top: 10px; overflow-wrap: anywhere; }
.tw-t a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 2px; }
.tw-t a:hover { text-decoration-color: currentColor; }
.tw-m { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; border-radius: 12px; overflow: hidden; }
.tw-m.n1 { grid-template-columns: 1fr; }
.tw-m.n3 .tw-mi:first-child { grid-row: span 2; }
.tw-mi { position: relative; display: block; background: var(--panel-3); min-height: 90px; }
.tw-mi img { display: block; width: 100%; height: 100%; max-height: 180px; object-fit: cover; }
.tw-m.n1 .tw-mi img { max-height: 320px; }
.tw-mi.vid::after { content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(0, 0, 0, .62) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l10.5-6.5z' fill='%23fff'/%3E%3C/svg%3E") center / 20px no-repeat; }
.tw-f { display: flex; align-items: center; gap: 16px; margin-top: 12px; color: var(--text-3); font-size: 12.5px; }
.tw-f span { display: inline-flex; align-items: center; gap: 5px; }
.tw-f svg { width: 15px; height: 15px; }
.tw-f a { margin-left: auto; color: var(--text-2); font-weight: 500; }
.tw-f a:hover { color: var(--text); }
.tw-gone { color: var(--text-3); font-size: 13px; }
.tw-loading { display: grid; gap: 9px; }
.tw-loading i { display: block; height: 11px; border-radius: 6px; background: var(--panel-3); animation: twShim 1.3s ease-in-out infinite; }
.tw-loading i:nth-child(1) { width: 38%; }
.tw-loading i:nth-child(2) { width: 92%; animation-delay: .12s; }
.tw-loading i:nth-child(3) { width: 68%; animation-delay: .24s; }
@keyframes twShim { 50% { opacity: .45; } }

.tw-pop { position: fixed; z-index: 60; border-radius: 16px; box-shadow: 0 24px 70px rgba(0, 0, 0, .65); opacity: 0; transform: translateY(4px) scale(.985); transition: opacity .18s var(--out), transform .3s var(--out); }
.tw-pop.in { opacity: 1; transform: none; }
.tw-pop > .tw, .tw-pop > .tw-gone { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 16px; padding: 14px 16px; }
.tw-pop .tw-m.n1 .tw-mi img { max-height: 220px; }
@media (max-width: 1100px) { .about.has-tw { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .tw-pop { transition: none; } .tw-loading i { animation: none; } }
