:root {
  color-scheme: dark;
  --canvas: #090f18;
  --panel: #0e1622;
  --panel-raised: #111c2b;
  --inset: #0a111b;
  --line: #243247;
  --line-soft: #1c293b;
  --text: #e3e9f3;
  --muted: #a0afc3;
  --dim: #8595aa;
  --gold: #e7c682;
  --jade: #37d8a2;
  --red: #ff8993;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --display: Georgia, 'Times New Roman', serif;
  font-family: 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  background: var(--canvas);
  color: var(--text);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; min-width: 0; outline: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { color: var(--canvas); background: var(--gold); }
.skip-link { position: absolute; z-index: 20; top: -100px; left: 12px; padding: 12px; background: var(--gold); color: var(--canvas); }
.skip-link:focus { top: 12px; }

.masthead {
  min-height: 75px; display: flex; align-items: center; gap: clamp(22px, 4vw, 58px);
  padding: 0 clamp(16px, 2.4vw, 38px); border-top: 1px solid #6b5331; border-bottom: 1px solid #342c23;
  background: #0c141f;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; color: var(--gold); }
.brand-mark { display: block; width: 43px; height: 43px; }
.brand strong { display: block; font: 700 28px/.95 var(--display); letter-spacing: .16em; }
.brand small { display: block; margin-top: 7px; font: 650 8px/1 var(--mono); letter-spacing: .14em; color: #c2a573; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { border: 1px solid transparent; padding: 9px 13px; border-radius: 6px; color: var(--muted); font-size: 13px; font-weight: 650; white-space: nowrap; }
.main-nav a:hover { color: var(--text); background: var(--panel-raised); }
.main-nav a.active { color: var(--gold); border-color: #5b4831; background: #261f1c; }
.masthead-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.mode-switch { display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 7px; background: var(--inset); white-space: nowrap; }
.mode-switch a { padding: 6px 10px; border-radius: 4px; color: var(--muted); font: 650 10px/1.3 var(--mono); }
.mode-switch a:hover { color: var(--text); }
.mode-switch a.active { background: #2c231b; color: var(--gold); }
.outline, .small-btn, .secondary {
  border: 1px solid #33465f; border-radius: 6px; background: var(--panel-raised); color: var(--text);
  padding: 8px 11px; font-size: 12px; font-weight: 650; white-space: nowrap;
}
.outline:hover:not(:disabled), .small-btn:hover:not(:disabled), .secondary:hover:not(:disabled) { border-color: #9a7a46; color: var(--gold); }
#connect-wallet { border-color: #78603a; color: var(--gold); }
.deck-strip { display: flex; align-items: center; gap: 13px; min-height: 33px; padding: 5px clamp(16px, 2.4vw, 38px); border-bottom: 1px solid var(--line-soft); color: var(--dim); font: 10px/1.4 var(--mono); background: var(--inset); }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 750; white-space: nowrap; letter-spacing: .08em; }
.status i, footer i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 9px #37d8a27a; }
.status.disconnected i { background: #b89454; box-shadow: none; }
.deck-number { margin-left: auto; white-space: nowrap; }
.deck-number span, footer > span:nth-child(2) { color: #aa8953; }
.mobile-nav, .mobile-deck-tabs { display: none; }

.ticker {
  display: flex; align-items: center; gap: clamp(19px, 3.5vw, 58px); min-height: 106px;
  padding: 18px clamp(18px, 2.4vw, 38px); border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(112deg, #121b2b, #0b131f 73%);
}
.market-pair, .market-name { display: flex; align-items: center; gap: 13px; margin-right: auto; min-width: 0; }
.market-pair:hover h1 { color: var(--gold); }
.market-pair h1, .market-name h1 { margin: 4px 0 1px; font-size: clamp(25px, 3vw, 33px); line-height: 1.05; letter-spacing: -.045em; }
.market-pair h1 span { color: var(--gold); font-size: .6em; }
.market-pair p, .market-name p { margin: 5px 0 0; font-size: 12px; color: var(--muted); }
.ticker-stat { min-width: 72px; white-space: nowrap; }
.ticker-stat small, .metrics small { display: block; color: var(--muted); font: 600 10px/1.3 var(--mono); letter-spacing: .055em; }
.ticker-stat b, .ticker-stat strong { display: block; margin-top: 7px; font: 650 14px/1.2 var(--mono); }
.ticker-stat strong { font-size: clamp(15px, 1.7vw, 22px); }
.section-label { color: #d2ad6c; font: 700 9px/1.35 var(--mono); letter-spacing: .14em; }
.positive { color: var(--jade) !important; }
.negative { color: var(--red) !important; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.deck {
  display: grid; grid-template-columns: minmax(185px, 228px) minmax(0, 1fr) minmax(260px, 322px); align-items: start;
  gap: 13px; max-width: 1720px; margin: 0 auto; padding: 15px clamp(14px, 2.4vw, 38px) 27px;
}
.center { display: grid; gap: 13px; min-width: 0; }
.aside-title { padding: 14px 15px 11px; }
.aside-title h2, .panel-heading h2, .ticket-head h2 { margin: 4px 0 0; font-weight: 720; font-size: 21px; letter-spacing: -.04em; }
.panel-heading h2 em { font: 600 12px var(--mono); color: var(--dim); }
.market-browser { min-width: 0; }
.search { display: flex; align-items: center; gap: 6px; min-height: 39px; margin: 0 12px 10px; padding: 0 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--inset); }
.search:focus-within { border-color: #987644; }
.search span { font-size: 23px; line-height: 1; color: var(--gold); }
.search input { flex: 1; min-width: 0; padding: 7px 0; border: 0; outline: 0; background: transparent; font-size: 12px; }
.search input::placeholder { color: var(--dim); }
.market-filters { display: flex; gap: 6px; padding: 0 12px 12px; }
.market-filters button, .chart-controls button, .quick-sizes button { border: 1px solid transparent; border-radius: 5px; background: var(--inset); color: var(--muted); padding: 5px 8px; font: 600 10px/1.25 var(--mono); }
.market-filters button.active, .chart-controls button.active { color: var(--gold); border-color: #614c2e; background: #282219; }
.aside-label { display: flex; justify-content: space-between; padding: 0 13px 8px; color: var(--dim); font: 600 8px/1.2 var(--mono); letter-spacing: .07em; }
.market-entry { display: flex; border-top: 1px solid var(--line-soft); min-width: 0; }
.market-entry.selected { box-shadow: inset 2px 0 var(--gold); background: #172333; }
.market-entry:hover { background: #152030; }
.market-row { display: flex; align-items: center; gap: 7px; min-width: 0; flex: 1; padding: 10px 0 10px 10px; border: 0; background: transparent; text-align: left; }
.market-row strong, .market-row b { white-space: nowrap; font: 680 10px/1.35 var(--mono); }
.market-row b { margin-left: auto; color: #c8d4e7; }
.market-row small { display: block; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); font-size: 10px; }
.market-row > span:nth-child(2) { min-width: 0; }
.market-icon, .round-icon {
  display: inline-grid; place-items: center; width: 31px; height: 31px; flex: none;
  border: 1px solid #586098; border-radius: 50%; background: #202847; color: #b7c5ff;
  font: 670 17px/1 var(--mono);
}
.market-pair .market-icon, .market-name .market-icon, .market-name .round-icon { width: 50px; height: 50px; font-size: 24px; }
.token-wave { border-color: #356d83; background: #133040; color: #7bdef3; }
.token-chip, .token-eth { border-color: #536580; background: #202e43; color: #c2d7f8; }
.token-pear, .token-frog { border-color: #385e4a; background: #1b352a; color: #a7dfb0; }
.token-btc { border-color: #80623b; background: #3e2b1b; color: #ffce82; }
.favorite-toggle { flex: none; padding: 0 7px; min-width: 28px; border: 0; background: transparent; color: #acb9cd; font-size: 15px; }
.favorite-toggle:hover, .favorite-toggle.saved, .market-arrow { color: var(--gold); }
.all-markets { display: flex; justify-content: space-between; padding: 12px 14px; border-top: 1px solid var(--line-soft); color: var(--gold); font-size: 12px; }
.all-markets:hover { background: var(--panel-raised); }

.panel-heading { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.badge { display: inline-flex; align-items: center; width: fit-content; border: 1px solid #5b4c35; border-radius: 5px; padding: 4px 7px; color: var(--gold); background: #251f1b; font: 680 9px/1.25 var(--mono); letter-spacing: .05em; white-space: nowrap; }
.badge.long { color: var(--jade); border-color: #245946; background: #102923; }
.badge.short { color: var(--red); border-color: #72414a; background: #311f2a; }
.chart-controls { display: flex; gap: 6px; align-items: center; min-height: 40px; padding: 6px 15px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.chart-controls .trend-toggle { margin-left: auto; }
.chart { background: #0a121e; min-width: 0; padding: 13px 11px 6px 14px; }
.chart-body { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: 8px; height: clamp(215px, 30vw, 320px); }
.price-chart { display: block; width: 100%; height: 100%; min-width: 0; overflow: visible; }
.plot-grid line { stroke: #233348; stroke-width: 1; stroke-dasharray: 2 5; vector-effect: non-scaling-stroke; }
.bar-up { color: #32cc9b; }
.bar-down { color: #ed7886; }
.bar-up line, .bar-down line { stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.bar-up rect, .bar-down rect { fill: currentColor; }
.last-mark { stroke: #58dfad; stroke-dasharray: 4 5; opacity: .54; stroke-width: 1; vector-effect: non-scaling-stroke; }
.trend-line { fill: none; stroke: #dfb76e; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.price-scale { display: flex; flex-direction: column; justify-content: space-between; padding: 3px 0 4px; text-align: right; color: var(--dim); font: 9px/1 var(--mono); }
.time-scale { display: flex; justify-content: space-between; padding: 10px 55px 5px 3px; color: var(--dim); font: 9px/1 var(--mono); }
.chart-empty { min-height: 245px; display: grid; align-content: center; justify-items: center; gap: 8px; padding: 16px; color: var(--muted); text-align: center; }
.chart-empty span { color: var(--gold); font-size: 27px; }
.chart-empty strong { color: var(--text); font-size: 14px; }
.chart-empty small { color: var(--dim); font-size: 12px; }
.price-form { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px; padding: 12px 15px; border-top: 1px solid var(--line-soft); }
.price-form label { color: var(--muted); font-size: 12px; }
.price-form label small { margin-left: 5px; color: var(--dim); font: 9px var(--mono); }
.price-form > div { display: flex; align-items: center; gap: 7px; }
.price-form input { width: 131px; padding: 7px 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--inset); font: 12px var(--mono); }
.oracle-caption { padding: 10px 15px; margin: 0; border-top: 1px solid var(--line-soft); color: var(--dim); font: 10px/1.5 var(--mono); }

.ticket { padding: 15px; background: linear-gradient(154deg, #131e2d, var(--panel) 55%); }
.ticket-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 15px; }
.side-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.side-switch button { min-height: 44px; border: 1px solid #33465f; border-radius: 6px; background: #172338; color: #c2d0e4; font-weight: 740; font-size: 14px; }
.side-switch button:hover { border-color: var(--gold); }
.side-switch .selected.long, .primary.long { border-color: #43dba6; background: #42d6a2; color: #051b16; }
.side-switch .selected.short, .primary.short { border-color: #ff8792; background: #fb8993; color: #2b1018; }
.order-type { display: flex; align-items: center; gap: 15px; margin-top: 12px; border-bottom: 1px solid var(--line); }
.order-type button { min-height: 36px; padding: 5px 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 12px; font-weight: 690; }
.order-type button.active { color: var(--gold); border-bottom-color: var(--gold); }
.order-type small { margin-left: auto; color: var(--dim); font: 9px var(--mono); }
.balance, .input-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.balance { margin: 14px 0; color: var(--muted); font-size: 12px; }
.balance strong { color: var(--text); font: 700 12px var(--mono); }
.input-label { margin: 12px 0 6px; color: #c6d1e1; font-size: 12px; font-weight: 650; }
.input-label span { color: var(--gold); font: 650 9px var(--mono); }
.big-input { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #33465f; border-radius: 6px; background: var(--inset); font: 650 14px var(--mono); }
.big-input:focus { border-color: var(--gold); }
.quick-sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 7px; }
.quick-sizes button { min-height: 29px; border-color: var(--line); }
.quick-sizes button:hover { color: var(--gold); border-color: #806338; }
.ticket-math { display: grid; gap: 9px; margin: 15px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.ticket-math div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font: 11px/1.35 var(--mono); }
.ticket-math dt, .ticket-math span { color: var(--muted); }
.ticket-math dd { margin: 0; font-weight: 700; text-align: right; }
.primary, .secondary { display: block; width: 100%; min-height: 43px; margin-top: 12px; padding: 10px; border-radius: 6px; font-size: 12px; font-weight: 780; letter-spacing: .055em; }
.primary { border: 1px solid #d9b875; background: #e6c582; color: #1a140c; }
.primary:hover:not(:disabled) { filter: brightness(1.12); }
.fine, .wallet-note { color: var(--muted); font-size: 11px; line-height: 1.55; }
.fine { margin: 8px 0 0; text-align: center; }
.inline-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.ticket .inline-controls { margin-top: 12px; }

.tabs { display: flex; align-items: center; min-height: 46px; gap: 17px; padding: 0 15px; border-bottom: 1px solid var(--line-soft); overflow-x: auto; }
.tabs button { align-self: stretch; border: 0; border-bottom: 2px solid transparent; padding: 8px 0; background: transparent; color: var(--muted); white-space: nowrap; font-size: 12px; font-weight: 680; }
.tabs button.active { color: var(--gold); border-bottom-color: var(--gold); }
.tabs button span { display: inline-grid; place-items: center; min-width: 17px; height: 17px; border-radius: 9px; margin-left: 3px; padding: 0 4px; background: #292319; color: #e3c486; font: 10px var(--mono); }
.table-wrap { width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; font: 11px/1.4 var(--mono); }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); }
th { color: var(--dim); font-weight: 650; font-size: 10px; letter-spacing: .025em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #152030; }
.empty { display: flex; flex-direction: column; gap: 5px; padding: 20px 15px; color: var(--muted); font-size: 12px; line-height: 1.4; margin: 0; }
.empty b { color: #d6dfef; }
.risk-form { padding: 14px 15px; border-top: 1px solid var(--line); }
.risk-form .wallet-note { margin: 4px 0 12px; }
.risk-fields { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.risk-fields label { display: grid; gap: 5px; width: min(150px, 46%); color: var(--muted); font-size: 12px; }
.risk-fields .big-input { min-height: 36px; }

.page-shell { width: min(100%, 1210px); margin: 0 auto; padding: 25px 25px 37px; }
.page-title { padding: 17px 0 25px; }
.page-title h1, .chain-setup h1 { margin: 8px 0; color: var(--gold); font: 500 clamp(35px, 5vw, 54px)/1.05 var(--display); letter-spacing: -.035em; }
.page-title p { margin: 9px 0 0; color: var(--muted); font-size: 14px; }
.market-directory { max-width: 820px; padding-top: 15px; }
.directory-browser .search, .directory-browser .market-filters { margin-left: 17px; margin-right: 17px; }
.directory-browser .market-filters { padding-left: 0; }
.directory-browser .aside-label { padding-left: 18px; padding-right: 74px; }
.directory-browser .market-row { gap: 12px; padding: 12px 0 12px 17px; }
.directory-browser .market-row strong, .directory-browser .market-row b { font-size: 12px; }
.directory-browser .market-row small { max-width: 160px; font-size: 11px; }
.directory-browser .favorite-toggle { min-width: 40px; }
.vault-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, 305px); gap: 15px; align-items: start; }
.vault-intro { display: flex; align-items: center; gap: 16px; padding: 18px; background: radial-gradient(ellipse at left, #253044, var(--panel) 70%); }
.vault-glyph { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border: 1px solid #806539; border-radius: 50%; background: #272219; color: var(--gold); font-size: 24px; }
.vault-intro h2, .vault-ticket h2, .log-section h2 { margin: 5px 0; color: var(--text); font-size: 22px; letter-spacing: -.035em; }
.vault-intro p, .vault-ticket p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.vault-ticket { padding: 17px; }
.vault-ticket p strong { color: var(--text); }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(142px, 1fr)); gap: 8px; margin: 12px 0; }
.metrics > div { padding: 14px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); min-width: 0; }
.metrics strong { display: block; margin: 8px 0; color: var(--text); font: 740 clamp(16px, 2.25vw, 24px)/1.15 var(--mono); overflow-wrap: anywhere; }
.metrics span { color: var(--dim); font-size: 11px; }
.notice, .chain-alert, .tx-state { padding: 10px 13px; border: 1px solid #534330; border-left: 2px solid #b58e52; border-radius: 5px; background: #211c19; color: #e7c99a; font-size: 12px; line-height: 1.55; }
.chain-alert, .tx-state { margin: 9px clamp(14px, 2.4vw, 38px) 0; }
.tx-state { background: #122921; border-color: #2b5c49; color: #aceace; }
.log-section { margin-top: 12px; }
.log-section h2 { padding: 12px 14px; margin: 0; border-bottom: 1px solid var(--line-soft); }
.chain-setup { width: min(100% - 30px, 625px); margin: clamp(28px, 8vh, 92px) auto; padding: clamp(19px, 4vw, 38px); border: 1px solid var(--line); border-radius: 10px; background: radial-gradient(ellipse at top left, #202c3e, var(--panel) 70%); }
.chain-setup p, .chain-setup li { color: var(--muted); font-size: 14px; line-height: 1.55; }
.chain-setup .primary { width: fit-content; padding-inline: 24px; }
.chain-setup code { color: var(--gold); }
.execution-panel { padding: 12px 15px; }
.execution-panel h3 { margin: 4px 0 7px; font-size: 15px; }
.execution-panel .metrics { margin-bottom: 0; }
.execution-panel .metrics > div { background: var(--inset); }

footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 9px clamp(16px, 2.4vw, 38px); border-top: 1px solid var(--line-soft); color: var(--dim); background: var(--inset); font: 10px/1.4 var(--mono); }
footer i { margin-right: 5px; }
#toast { position: fixed; right: 16px; bottom: 17px; z-index: 11; max-width: min(440px, calc(100vw - 32px)); display: none; padding: 11px 14px; border: 1px solid #348c6c; border-radius: 7px; background: #15372d; box-shadow: 0 8px 24px #0008; color: #c3f4e0; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
#toast.show { display: block; }
#toast.error { border-color: #9b525d; background: #381f28; color: #ffe0e4; }

@media (max-width: 1160px) {
  .deck { grid-template-columns: minmax(166px, 192px) minmax(0, 1fr) minmax(240px, 272px); gap: 9px; }
  .center { gap: 9px; }
  .market-row .perp-suffix { display: none; }
  .directory-browser .perp-suffix { display: inline; }
  .market-row .market-icon { width: 26px; height: 26px; font-size: 14px; }
  .chart-body { height: clamp(205px, 28vw, 290px); }
}
@media (max-width: 900px) {
  .masthead { gap: 16px; }
  .main-nav a { padding: 7px 8px; }
  .deck { grid-template-columns: minmax(0, 1fr) minmax(220px, 265px); }
  .deck > .markets { display: none; }
  .ticker-stat b { font-size: 12px; }
  .ticker { gap: 18px; }
}
@media (max-width: 680px) {
  body { padding-bottom: calc(59px + env(safe-area-inset-bottom)); }
  .masthead { min-height: 63px; padding: 8px 12px; gap: 8px; }
  .brand { gap: 7px; }
  .brand-mark { width: 35px; height: 35px; }
  .brand strong { font-size: 22px; }
  .brand small { font-size: 6px; letter-spacing: .06em; margin-top: 5px; }
  .masthead-actions { gap: 5px; }
  .mode-switch a { padding: 5px 6px; font-size: 9px; }
  .outline { padding: 6px; font-size: 10px; }
  #connect-wallet { max-width: 96px; white-space: normal; text-align: center; }
  .main-nav, .deck-number { display: none; }
  .deck-strip { padding: 5px 12px; min-height: 29px; gap: 9px; font-size: 8px; }
  .ticker { min-height: 84px; gap: 8px 12px; padding: 12px; flex-wrap: wrap; }
  .market-pair, .market-name { gap: 8px; }
  .market-pair .market-icon, .market-name .market-icon, .market-name .round-icon { width: 38px; height: 38px; font-size: 19px; }
  .market-pair h1, .market-name h1 { font-size: 24px; }
  .market-pair p, .market-name p { font-size: 10px; }
  .ticker-stat small { font-size: 8px; }
  .ticker-stat strong { font-size: 14px; }
  .ticker-stat b { font-size: 11px; }
  .ticker-stat:nth-last-child(-n+2):not(:nth-child(2)) { display: none; }
  .mobile-deck-tabs { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; gap: 4px; margin: 10px 12px 0; border: 1px solid var(--line); border-radius: 7px; background: var(--inset); }
  .mobile-deck-tabs button { min-height: 34px; padding: 5px 3px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 720; }
  .mobile-deck-tabs button.active { border-color: #624e32; background: #292219; color: var(--gold); }
  .deck { display: block; padding: 9px 12px 18px; }
  .center { display: contents; }
  .deck[data-mobile-view] [data-mobile-panel] { display: none; }
  .deck[data-mobile-view='chart'] [data-mobile-panel='chart'], .deck[data-mobile-view='ticket'] [data-mobile-panel='ticket'], .deck[data-mobile-view='positions'] [data-mobile-panel='positions'] { display: block; }
  .panel-heading { min-height: 56px; padding: 10px 12px; }
  .chart-controls { padding-inline: 11px; }
  .chart { padding-left: 8px; }
  .chart-body { height: clamp(188px, 55vw, 260px); gap: 5px; }
  .price-scale, .time-scale { font-size: 8px; }
  .price-form { padding: 9px 10px; }
  .price-form input { width: 116px; }
  .ticket { padding: 13px; }
  .page-shell { padding: 14px 12px 25px; }
  .page-title { padding: 11px 0 19px; }
  .vault-grid { grid-template-columns: 1fr; }
  .mobile-nav { position: fixed; z-index: 10; inset: auto 0 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 9px env(safe-area-inset-bottom); border-top: 1px solid #3b3326; background: #0b131ff5; }
  .mobile-nav a { min-height: 57px; display: grid; justify-items: center; align-content: center; gap: 3px; border-top: 2px solid transparent; color: var(--muted); font-size: 10px; font-weight: 650; }
  .mobile-nav a.active { color: var(--gold); border-color: var(--gold); }
  .mobile-nav svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  footer { font-size: 9px; }
  footer > span:nth-child(2) { display: none; }
  #toast { bottom: calc(67px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
