@font-face { font-family: BeVietnam; src: url('/fonts/be-vietnam-pro-latin-400-normal.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: BeVietnam; src: url('/fonts/be-vietnam-pro-vietnamese-400-normal.woff2') format('woff2'); font-display: swap; unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: BeVietnam; src: url('/fonts/be-vietnam-pro-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: BeVietnam; src: url('/fonts/be-vietnam-pro-vietnamese-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

/* VLabs tokens (docs/product/design-system.md): warm charcoal + ivory in dark,
   cream + brown-black in light, one blue accent. Green/red only carry price direction. */
:root {
  color-scheme: dark;
  --bg: #1a1714;
  --panel: #221e19;
  --surface: #26221d;
  --surface-2: #2e2923;
  --hover: #332d26;
  --line: #3a342c;
  --line-strong: #484137;
  --ink: #ece7de;
  --muted: #b4ab9c;
  --faint: #8a8174;
  --accent: #5b93ff;
  --accent-ink: #8fb4ff;
  --accent-tint: rgba(91, 147, 255, .14);
  --on-accent: #0b1433;
  --up: #60d895;
  --up-tint: rgba(96, 216, 149, .12);
  --down: #ff9388;
  --down-tint: rgba(255, 147, 136, .12);
  --warn: #edb966;
  --logo-word: #f4f8ff;
  --shadow: 0 18px 48px rgba(0, 0, 0, .45);
  --radius: 10px;
  --font: BeVietnam, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #faf9f5;
  --panel: #f4f1e9;
  --surface: #ffffff;
  --surface-2: #f7f4ec;
  --hover: #efebe1;
  --line: #e6e1d3;
  --line-strong: #d6cfbd;
  --ink: #292521;
  --muted: #625c52;
  --faint: #8a8276;
  --accent: #0a53d8;
  --accent-ink: #0b3f9e;
  --accent-tint: rgba(10, 83, 216, .09);
  --on-accent: #ffffff;
  --up: #217049;
  --up-tint: rgba(33, 112, 73, .1);
  --down: #b73328;
  --down-tint: rgba(183, 51, 40, .09);
  --warn: #925308;
  --logo-word: #0b1433;
  --shadow: 0 18px 48px rgba(41, 37, 33, .16);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 13px/1.4 var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
svg { flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fin-skip { position: absolute; left: 8px; top: -40px; z-index: 50; padding: 8px 12px; background: var(--accent); color: var(--on-accent); border-radius: 8px; text-decoration: none; }
.fin-skip:focus { top: 8px; }
.num { font-variant-numeric: tabular-nums; }
.up { color: var(--up); }
.down { color: var(--down); }
.muted { color: var(--muted); }

/* ── Shell ─────────────────────────────────────────────────────────────── */
.fin-app { height: 100dvh; display: grid; grid-template: "rail header" 52px "rail subbar" 48px "rail main" 1fr "status status" 30px / 52px 1fr; }
.fin-rail { grid-area: rail; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 0 10px; border-right: 1px solid var(--line); background: var(--panel); }
.fin-rail-brand { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; }
.fin-rail-nav { display: flex; flex-direction: column; gap: 4px; }
.fin-rail-nav button, .fin-rail-home { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 9px; background: none; color: var(--faint); text-decoration: none; }
.fin-rail-nav button:hover, .fin-rail-home:hover { background: var(--hover); color: var(--ink); }
.fin-rail-nav button[aria-current="page"] { background: var(--accent-tint); color: var(--accent-ink); }
.fin-rail-home { margin-top: auto; }
.fin-rail svg, .fin-icon-btn svg, .fin-search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.fin-header { grid-area: header; display: flex; align-items: center; gap: 18px; padding: 0 14px 0 18px; border-bottom: 1px solid var(--line); min-width: 0; }
.fin-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; flex: none; }
.fin-logo { height: 20px; width: auto; display: block; }
.fin-logo-word { fill: var(--logo-word); }
.fin-brand-tag { font-weight: 600; font-size: 13px; color: var(--accent-ink); padding: 2px 7px; border-radius: 6px; background: var(--accent-tint); }
.fin-chains { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.fin-chains-sub { display: none; }
.fin-chains button { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--muted); white-space: nowrap; font-weight: 600; }
.fin-chains button:hover { color: var(--ink); background: var(--hover); }
.fin-chains button[aria-pressed="true"] { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--accent); }
.chain-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 8px; font-weight: 600; color: #fff; }
.chain-dot[data-chain="solana"] { background: linear-gradient(135deg, #9945ff, #14f195); }
.chain-dot[data-chain="ethereum"] { background: #627eea; }
.chain-dot[data-chain="bsc"] { background: #f0b90b; color: #1a1714; }
.chain-dot[data-chain="base"] { background: #0052ff; }

.fin-search { position: relative; margin-left: auto; display: flex; align-items: center; gap: 8px; width: min(320px, 32vw); height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--faint); }
.fin-search:focus-within { border-color: var(--accent); }
.fin-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--ink); }
.fin-search input::placeholder { color: var(--faint); }
.fin-search input::-webkit-search-cancel-button { display: none; }
.fin-search kbd { font: 11px var(--mono); padding: 1px 6px; border: 1px solid var(--line); border-radius: 5px; color: var(--faint); }
.fin-search-results { position: absolute; top: calc(100% + 6px); right: 0; width: min(440px, 92vw); max-height: 420px; overflow: auto; z-index: 30; padding: 6px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); }
.fin-search-results button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; border-radius: 8px; background: none; text-align: left; }
.fin-search-results button:hover, .fin-search-results button.is-active { background: var(--hover); }
.fin-search-results .sr-main { flex: 1; min-width: 0; }
.fin-search-results .sr-right { text-align: right; }
.fin-search-empty { padding: 14px; color: var(--muted); }

.fin-header-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.fin-icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); }
.fin-icon-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.fin-signin { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; white-space: nowrap; }
.fin-signin:hover { filter: brightness(1.08); }

.fin-subbar { grid-area: subbar; display: flex; align-items: center; gap: 12px; padding: 0 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.fin-zones { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.fin-zones button, .fin-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-weight: 600; white-space: nowrap; }
.fin-zones button:hover, .fin-chip:hover { color: var(--ink); border-color: var(--line-strong); }
.fin-zones button[aria-pressed="true"] { color: var(--accent-ink); border-color: transparent; background: var(--accent-tint); }
.fin-zones svg, .fin-chip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fin-subbar-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.fin-frames { display: flex; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.fin-frames button { height: 24px; min-width: 38px; padding: 0 8px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-weight: 600; font-size: 12px; }
.fin-frames button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong); }
.fin-chip[aria-pressed="true"] { color: var(--warn); }

.fin-main { grid-area: main; min-height: 0; min-width: 0; overflow: hidden; outline: none; }

/* ── Meme Zone ────────────────────────────────────────────────────────── */
.mz { height: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 10px; }
.mz-tabs { display: none; }
.mz-col { display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; }
.mz-col-head { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; border-bottom: 1px solid var(--line); flex: none; }
.mz-col-head h2 { margin: 0; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.mz-col-head h2 svg { width: 15px; height: 15px; fill: none; stroke: var(--accent-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mz-count { color: var(--faint); font-weight: 400; font-size: 12px; }
.mz-filter { margin-left: auto; display: flex; align-items: center; gap: 6px; height: 28px; width: 150px; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.mz-filter input { width: 100%; border: 0; background: none; outline: none; font-size: 12px; }
.mz-filter svg { width: 13px; height: 13px; fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; }
.mz-list { flex: 1; overflow-y: auto; min-height: 0; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.mz-empty { padding: 28px 18px; color: var(--muted); text-align: center; line-height: 1.6; }

.tc { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 4px 11px; padding: 11px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.tc:hover { background: var(--hover); }
.tc.is-new { animation: fin-flash 1.6s ease-out; }
@keyframes fin-flash { from { background: var(--accent-tint); } to { background: transparent; } }
.tc-avatar { grid-row: span 2; position: relative; width: 58px; height: 58px; }
.av { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; font-weight: 600; font-size: 22px; color: var(--ink); overflow: hidden; }
.av-sm { width: 34px; height: 34px; border-radius: 9px; font-size: 14px; }
.av-dex { position: absolute; right: -4px; bottom: -4px; padding: 1px 4px; border-radius: 5px; background: var(--surface); border: 1px solid var(--line-strong); font-size: 9px; font-weight: 600; color: var(--muted); text-transform: lowercase; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-main { min-width: 0; }
.tc-title { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.tc-sym { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.tc-name { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.tc-age { color: var(--up); font-weight: 600; }
.tc-links { display: inline-flex; gap: 2px; }
.ln { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 5px; background: none; color: var(--faint); padding: 0; }
.ln:hover { color: var(--ink); background: var(--surface-2); }
.ln svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ln svg.fill { fill: currentColor; stroke: none; }
.tc-stats { text-align: right; font-size: 12px; line-height: 1.55; color: var(--muted); white-space: nowrap; }
.tc-stats b { color: var(--ink); font-weight: 600; }
.tc-stats .mc b { color: var(--accent-ink); }
.tc-foot { grid-column: 2 / 4; display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.pill { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 6px; border-radius: 6px; font-size: 11px; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.pill.up { background: var(--up-tint); color: var(--up); }
.pill.down { background: var(--down-tint); color: var(--down); }
.bs { flex: 1; max-width: 90px; height: 4px; border-radius: 4px; background: var(--down); overflow: hidden; opacity: .9; }
.bs i { display: block; height: 100%; background: var(--up); }
.buy { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 11px; border: 1px solid transparent; border-radius: 7px; background: var(--accent-tint); color: var(--accent-ink); font-weight: 600; font-size: 12px; }
.buy:hover { background: var(--accent); color: var(--on-accent); }
.buy svg { width: 12px; height: 12px; fill: currentColor; }
.star { border: 0; background: none; padding: 2px; color: var(--faint); display: inline-grid; place-items: center; }
.star svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.star[aria-pressed="true"] { color: var(--warn); }
.star[aria-pressed="true"] svg { fill: currentColor; }
.star:hover { color: var(--warn); }

/* ── Tables (Trending / New pairs / Watchlist) ─────────────────────────── */
.tbl-wrap { height: 100%; padding: 10px; }
.tbl-box { height: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
table.tbl { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 12.5px; }
.tbl th { position: sticky; top: 0; z-index: 1; height: 40px; padding: 0 12px; background: var(--panel); border-bottom: 1px solid var(--line); color: var(--faint); font-weight: 600; text-align: right; white-space: nowrap; }
.tbl th button { border: 0; background: none; padding: 0; color: inherit; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.tbl th button:hover, .tbl th[aria-sort] button { color: var(--ink); }
.tbl th:first-child, .tbl td:first-child { width: 34px; padding-right: 0; }
.tbl th.l, .tbl td.l { text-align: left; }
.tbl td { height: 58px; padding: 0 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover td { background: var(--hover); }
.pair-cell { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.pair-cell .pc-sym { font-weight: 600; font-size: 13px; }
.pair-cell .pc-quote { color: var(--faint); }
.pair-cell .pc-sub { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.cell-2 { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.cell-2 small { font-size: 11px; }
.tx-cell .bs { width: 72px; max-width: none; margin-top: 3px; }
.tbl-empty { padding: 60px 20px; text-align: center; color: var(--muted); }

/* ── Drawer ───────────────────────────────────────────────────────────── */
.fin-drawer-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(10, 8, 6, .45); }
.fin-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(560px, 100vw); display: flex; flex-direction: column; background: var(--bg); border-left: 1px solid var(--line-strong); box-shadow: var(--shadow); transform: translateX(102%); transition: transform .22s ease; outline: none; }
.fin-drawer.is-open { transform: none; }
.dr-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.dr-head .av { width: 44px; height: 44px; font-size: 18px; flex: none; }
.dr-title { min-width: 0; flex: 1; }
.dr-title h2 { margin: 0; font-size: 16px; display: flex; gap: 8px; align-items: baseline; }
.dr-title h2 span { font-size: 12.5px; font-weight: 400; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-addr { display: flex; align-items: center; gap: 6px; margin-top: 3px; color: var(--muted); font: 11.5px var(--mono); }
.dr-close { flex: none; }
.dr-body { flex: 1; overflow-y: auto; padding: 14px 16px 24px; display: flex; flex-direction: column; gap: 14px; }
.dr-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dr-price strong { font-size: 24px; font-weight: 600; }
.dr-chart { height: 340px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.dr-chart iframe { width: 100%; height: 100%; border: 0; display: block; }
.dr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dr-grid div { padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.dr-grid dt { color: var(--faint); font-size: 11px; }
.dr-grid dd { margin: 2px 0 0; font-weight: 600; font-size: 13.5px; }
.dr-changes { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.dr-changes div { padding: 8px; text-align: center; border-right: 1px solid var(--line); }
.dr-changes div:last-child { border-right: 0; }
.dr-changes small { display: block; color: var(--faint); font-size: 11px; }
.dr-changes b { font-weight: 600; }
.dr-trade { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.dr-trade-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 3px; border-radius: 9px; background: var(--surface-2); margin-bottom: 12px; }
.dr-trade-tabs button { height: 30px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-weight: 600; }
.dr-trade-tabs button[aria-pressed="true"][data-side="buy"] { background: var(--up-tint); color: var(--up); }
.dr-trade-tabs button[aria-pressed="true"][data-side="sell"] { background: var(--down-tint); color: var(--down); }
.dr-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.dr-amounts button { height: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-weight: 600; font-size: 12px; }
.dr-amounts button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-ink); }
.dr-trade-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.dr-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none; }
.btn:hover { border-color: var(--line-strong); }
.btn-primary { flex: 1; background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dr-about { color: var(--muted); line-height: 1.6; margin: 0; }

/* ── Status bar & toast ───────────────────────────────────────────────── */
.fin-status { grid-area: status; display: flex; align-items: center; gap: 14px; padding: 0 14px; border-top: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; }
.fin-status a { text-decoration: none; color: var(--muted); }
.fin-status a:hover { color: var(--ink); }
.fin-live { display: inline-flex; align-items: center; gap: 6px; }
.fin-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.fin-live[data-state="live"] i { background: var(--up); box-shadow: 0 0 0 3px var(--up-tint); }
.fin-live[data-state="error"] i { background: var(--down); }
.fin-live[data-state="paused"] i { background: var(--warn); }
.fin-natives { display: inline-flex; gap: 12px; }
.fin-natives b { color: var(--ink); font-weight: 600; }
.fin-status-spacer { flex: 1; }
.fin-disclaimer { overflow: hidden; text-overflow: ellipsis; }
.fin-toast { position: fixed; left: 50%; bottom: 46px; z-index: 60; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; padding: 9px 14px; border-radius: 9px; background: var(--ink); color: var(--bg); font-weight: 600; transition: opacity .18s, transform .18s; }
.fin-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.skeleton { height: 82px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, transparent, var(--hover), transparent) 0 0 / 200% 100%; animation: fin-shimmer 1.3s linear infinite; }
@keyframes fin-shimmer { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Narrow screens ───────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .fin-search { width: 220px; }
  .fin-disclaimer { display: none; }
}
@media (max-width: 860px) {
  .fin-app { grid-template: "header" 52px "subbar" 48px "main" 1fr "rail" 56px / 1fr; }
  .fin-status { display: none; }
  .fin-rail { flex-direction: row; justify-content: space-around; padding: 0 8px env(safe-area-inset-bottom); border-right: 0; border-top: 1px solid var(--line); }
  .fin-rail-brand, .fin-rail-home { display: none; }
  .fin-rail-nav { flex-direction: row; width: 100%; justify-content: space-around; }
  .fin-header { gap: 10px; padding: 0 12px; }
  .fin-brand-tag { display: none; }
  .fin-header > .fin-chains { display: none; }
  .fin-chains-sub { display: flex; flex: 1; }
  .fin-chains button { padding: 0 8px; height: 30px; }
  .fin-search { position: static; width: 34px; margin-left: auto; padding: 0; justify-content: center; border: 1px solid var(--line); flex: none; }
  .fin-search input, .fin-search kbd { display: none; }
  .fin-search.is-open { position: absolute; left: 12px; right: 12px; top: 9px; width: auto; z-index: 31; padding: 0 10px; justify-content: flex-start; }
  .fin-search.is-open input { display: block; }
  .fin-search-results { left: 0; right: 0; width: auto; }
  .fin-signin { padding: 0 10px; }
  .fin-subbar { padding: 0 12px; }
  .fin-zones { display: none; }
  .mz { display: flex; flex-direction: column; padding: 0; gap: 0; }
  .mz-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 8px 12px; flex: none; }
  .mz-tabs button { height: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-weight: 600; font-size: 12px; }
  .mz-tabs button[aria-pressed="true"] { color: var(--accent-ink); border-color: transparent; background: var(--accent-tint); }
  .mz-col { flex: 1; border: 0; border-radius: 0; border-top: 1px solid var(--line); }
  .mz-col:not(.is-active) { display: none; }
  .mz-col-head { display: none; }
  .tbl-wrap { padding: 0; }
  .tbl-box { border: 0; border-radius: 0; }
  .fin-drawer { width: 100vw; border-left: 0; }
  .dr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dr-chart { height: 300px; }
}
@media (max-width: 860px) {
  .fin-subbar-tools { margin-left: 0; }
  .fin-chip { padding: 0 9px; }
  .fin-chip-label { display: none; }
}
@media (max-width: 420px) {
  .fin-chains-sub .chain-label { display: none; }
  .fin-chains-sub button[aria-pressed="true"] .chain-label { display: inline; }
}
