:root {
  --bg: #0f1218; --panel: #151a23; --panel2: #1b212c; --line: #262c38; --text: #d6dae3; --muted: #7d8494;
  --accent: #2fa3ff; --up: #26a69a; --down: #ef5350; --gold: #f5a623;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 13px; color: var(--text);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; height: 100dvh; background: var(--bg); overflow: hidden; }
button, select, input { font: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 11.5px; }
.pad { padding: 8px 10px; margin: 0; }
h4.pad { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-bottom: 2px; }
.up { color: var(--up); } .down { color: var(--down); }

.topbar { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 10px; background: var(--panel); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; white-space: nowrap; padding-right: 4px; user-select: none; }
.brand .logo { width: 22px; height: 22px; display: block; }
.brand .wm { display: flex; flex-direction: column; line-height: 1; }
.brand .wm1 { font-size: 13.5px; font-weight: 600; letter-spacing: .09em; color: #eef0f3; }
.brand .wm2 { font-size: 7.5px; font-weight: 600; letter-spacing: .5em; color: #8b93a0; margin-top: 3px; }
.spacer { flex: 1; }
.btn, select, .seg button { background: var(--panel2); border: 1px solid var(--line); border-radius: 5px; padding: 5px 9px; cursor: pointer; }
.btn:hover, .seg button:hover, select:hover { border-color: #3a4252; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.full { width: 100%; margin-top: 6px; }
.btn.active { border-color: var(--accent); color: var(--accent); }
.seg { display: flex; } .seg button { border-radius: 0; margin-left: -1px; padding: 5px 8px; }
.seg button:first-child { border-radius: 5px 0 0 5px; } .seg button:last-child { border-radius: 0 5px 5px 0; }
.seg button.active { background: var(--accent); border-color: var(--accent); color: #fff; position: relative; }
.conn { font-size: 11.5px; color: var(--muted); }
.conn::before { content: '●'; margin-right: 4px; }
.conn.live::before { color: var(--up); } .conn.poll::before { color: var(--gold); } .conn.off::before { color: var(--down); }

.search { position: relative; width: 270px; }
.search input, .input { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 6px 9px; outline: none; }
.search input:focus, .input:focus { border-color: var(--accent); }
.dropdown { position: absolute; top: 36px; left: 0; width: 420px; max-height: 70vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; z-index: 50; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.dd-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 8px; padding: 7px 10px; cursor: pointer; align-items: center; }
.dd-item:hover, .dd-item.sel { background: var(--panel2); }
.dd-item b { font-weight: 600; } .dd-item span { color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dd-head { padding: 6px 10px; font-size: 11px; color: var(--muted); text-transform: uppercase; border-top: 1px solid var(--line); }

.layout { display: grid; grid-template-columns: 50px 1fr 340px; height: calc(100% - 44px - 24px); }
.tools { background: var(--panel); border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; padding: 4px 0; gap: 2px; overflow-y: auto; }
.tools hr { width: 26px; border: 0; border-top: 1px solid var(--line); margin: 3px 0; }

.center { display: flex; flex-direction: column; min-width: 0; }
.symbar { display: flex; align-items: center; gap: 18px; padding: 6px 12px; border-bottom: 1px solid var(--line); background: var(--bg); min-height: 42px; flex-wrap: wrap; }
.symtitle #symName { font-size: 16px; font-weight: 700; margin-right: 8px; }
.symtitle #symDesc { color: var(--muted); margin-right: 8px; }
.badge { font-size: 10.5px; padding: 2px 6px; border-radius: 4px; background: var(--panel2); border: 1px solid var(--line); color: var(--muted); }
.badge.rt { color: var(--up); border-color: rgba(38,166,154,.5); }
.quote #lastPrice { font-size: 18px; font-weight: 700; margin-right: 8px; font-variant-numeric: tabular-nums; }
.quote #chg { font-variant-numeric: tabular-nums; }
.stats { display: flex; gap: 14px; color: var(--muted); font-size: 12px; } .stats b { color: var(--text); font-weight: 500; }

.chartwrap { position: relative; flex: 1; min-height: 0; }
#chart { position: absolute; inset: 0; }
.draw-layer { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.legend { position: absolute; left: 10px; top: 6px; z-index: 6; pointer-events: none; font-size: 12px; line-height: 1.6; }
.legend .l-main { font-weight: 600; }
.legend .l-ohlc span { margin-right: 8px; font-variant-numeric: tabular-nums; }
.legend .l-ind { display: flex; gap: 6px; align-items: center; }
.legend .l-ind .nm { color: var(--muted); }
.legend .l-ind .vals span { margin-right: 6px; font-variant-numeric: tabular-nums; }
.legend .l-ind button { pointer-events: auto; background: rgba(21,26,35,.85); border: 1px solid var(--line); border-radius: 3px; font-size: 10.5px; padding: 0 4px; cursor: pointer; opacity: .55; }
.legend .l-ind:hover button, .legend .l-ind button:hover { opacity: 1; }
.legend .l-ind.off { opacity: .45; }
.loading { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(15,18,24,.6); z-index: 8; font-size: 14px; }

.draw-toolbar { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 9; display: flex; gap: 4px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.draw-toolbar button, .draw-toolbar select { background: var(--panel2); border: 1px solid var(--line); border-radius: 4px; padding: 2px 7px; cursor: pointer; }
.draw-toolbar input[type=color] { width: 28px; height: 26px; border: 0; padding: 0; background: none; cursor: pointer; }

.replaybar { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 9; display: flex; gap: 5px; align-items: center; padding: 5px 8px; background: var(--panel); border: 1px solid var(--accent); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.5); white-space: nowrap; }
.replaybar button, .replaybar select { background: var(--panel2); border: 1px solid var(--line); border-radius: 4px; padding: 3px 8px; cursor: pointer; }
.replaybar input { width: 64px; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 3px 5px; }
.rb-title { font-weight: 700; color: var(--accent); font-size: 11px; letter-spacing: .08em; }
.rb-sep { width: 1px; height: 18px; background: var(--line); }
.rb-pnl, .rb-date { font-variant-numeric: tabular-nums; font-size: 12px; }
button.buy { background: var(--up) !important; border-color: var(--up) !important; color: #fff; }
button.sell { background: var(--down) !important; border-color: var(--down) !important; color: #fff; }

.side { background: var(--panel); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; padding: 9px 2px; cursor: pointer; color: var(--muted); }
.tabs button.active { color: var(--text); border-bottom-color: var(--accent); }
.tabpane { flex: 1; overflow-y: auto; min-height: 0; display: flex; flex-direction: column; }
#tab-watch { overflow: hidden; }
#tab-watch > .input { margin: 0 10px 6px; width: calc(100% - 20px); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 10px 6px; }
.chips button { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 3px 9px; cursor: pointer; font-size: 12px; }
.chips button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.wl-head, .wl-row { display: grid; grid-template-columns: 18px 1fr 96px 66px; gap: 6px; padding: 0 10px; align-items: center; }
.wl-head { grid-template-columns: 1fr 96px 66px; padding-left: 34px; font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--line); height: 24px; }
.wl-head span { cursor: pointer; } .wl-head span:not(:first-child), .wl-row .p, .wl-row .c { text-align: right; font-variant-numeric: tabular-nums; }
.wlist { flex: 1; overflow-y: auto; }
.wl-row { height: 38px; cursor: pointer; border-bottom: 1px solid rgba(38,44,56,.5); }
.wl-row:hover { background: var(--panel2); } .wl-row.cur { background: rgba(47,163,255,.12); }
.wl-row .star { color: #4a5160; cursor: pointer; font-size: 13px; } .wl-row .star.on { color: var(--gold); }
.wl-row .s { overflow: hidden; line-height: 1.2; } .wl-row .s b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-row .s span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.flash-up { animation: fu .6s; } .flash-down { animation: fd .6s; }
@keyframes fu { from { background: rgba(38,166,154,.35); } } @keyframes fd { from { background: rgba(239,83,80,.35); } }

.row2 { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 8px; margin-bottom: 6px; }
.row2 label { color: var(--muted); font-size: 12px; }
.list .item { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-bottom: 1px solid rgba(38,44,56,.6); }
.list .item .grow { flex: 1; min-width: 0; }
.list .item button { background: var(--panel2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; cursor: pointer; font-size: 11px; }
.list .empty { padding: 6px 10px; color: var(--muted); font-size: 12px; }
.account { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px; border-bottom: 1px solid var(--line); }
.account div { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; }
.account small { display: block; color: var(--muted); font-size: 10.5px; text-transform: uppercase; }
.account b { font-variant-numeric: tabular-nums; }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 8px; }
.seg2 button { border: 1px solid var(--line); border-radius: 5px; padding: 6px; cursor: pointer; opacity: .45; }
.seg2 button.active { opacity: 1; }
.calc-out { margin-top: 10px; display: grid; gap: 4px; }
.calc-out div { display: flex; justify-content: space-between; background: var(--bg); border: 1px solid var(--line); border-radius: 5px; padding: 6px 8px; }
.calc-out b { font-variant-numeric: tabular-nums; }

.book { font-variant-numeric: tabular-nums; font-size: 12px; padding: 6px 0; }
.book .bk-head, .book .bk-row { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 1px 10px; position: relative; }
.book .bk-head { color: var(--muted); font-size: 11px; padding-bottom: 4px; }
.book .bk-row span { position: relative; z-index: 1; text-align: right; } .book .bk-row span:first-child { text-align: left; }
.book .bk-row i { position: absolute; right: 0; top: 0; bottom: 0; z-index: 0; }
.book .ask i { background: rgba(239,83,80,.15); } .book .bid i { background: rgba(38,166,154,.15); }
.book .spread { text-align: center; padding: 5px; font-weight: 700; font-size: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 3px 0; }

.status { height: 24px; display: flex; align-items: center; gap: 12px; padding: 0 10px; font-size: 11px; background: var(--panel); border-top: 1px solid var(--line); white-space: nowrap; overflow: hidden; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: grid; place-items: center; z-index: 100; }
.modal-card { width: 640px; max-width: 94vw; max-height: 84vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.modal-card h3 { margin: 0 0 10px; display: flex; justify-content: space-between; }
.modal-card h3 button { background: none; border: 0; cursor: pointer; font-size: 18px; color: var(--muted); }
.ind-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 12px; }
.ind-grid button { text-align: left; background: var(--panel2); border: 1px solid var(--line); border-radius: 5px; padding: 6px 9px; cursor: pointer; }
.ind-grid button:hover { border-color: var(--accent); }
.ind-grid b { color: var(--accent); margin-right: 6px; }
.ind-active .item { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ind-active .item b { width: 70px; }
.ind-active label { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.ind-active input[type=number] { width: 62px; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 3px 5px; }
.ind-active input[type=color] { width: 26px; height: 22px; border: 0; padding: 0; background: none; }
.ind-active button { margin-left: auto; background: var(--panel2); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; padding: 2px 8px; }

.toasts { position: fixed; right: 356px; bottom: 34px; display: flex; flex-direction: column; gap: 6px; z-index: 200; }
.toast { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 6px; padding: 9px 12px; min-width: 240px; max-width: 360px; box-shadow: 0 8px 24px rgba(0,0,0,.5); animation: tin .2s; }
.toast.alert { border-left-color: var(--gold); } .toast.err { border-left-color: var(--down); } .toast.ok { border-left-color: var(--up); }
@keyframes tin { from { transform: translateY(8px); opacity: 0; } }

::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: #2a303c; border-radius: 4px; }
@media (max-width: 1100px) { .layout { grid-template-columns: 50px 1fr 290px; } .stats { display: none; } .toasts { right: 300px; } }

/* ---- drawing toolbar ---- */
.tools { font-family: "Segoe UI Symbol", "Segoe UI Emoji", system-ui, sans-serif; }
.tb-item { position: relative; width: 44px; height: 34px; display: flex; align-items: center; justify-content: center; }
.tb-main { width: 36px; height: 32px; background: none; border: 1px solid transparent; border-radius: 6px; cursor: pointer; font-size: 16px; color: var(--text); line-height: 1; }
.tb-main:hover { background: var(--panel2); }
.tb-item.active .tb-main { background: rgba(41,98,255,.18); border-color: #2962ff; color: #5b8cff; }
.tb-arrow { position: absolute; right: 0; top: 7px; width: 9px; height: 20px; padding: 0; background: none; border: 0; color: var(--muted); font-size: 12px; cursor: pointer; opacity: 0; border-radius: 3px; }
.tb-item:hover .tb-arrow { opacity: 1; } .tb-arrow:hover { background: var(--panel2); color: var(--text); }
.flyout { position: fixed; z-index: 300; width: 290px; max-height: 86vh; overflow-y: auto; background: #1e222d; border: 1px solid var(--line); border-radius: 8px; padding: 6px 0; box-shadow: 0 12px 32px rgba(0,0,0,.55); font-family: "Segoe UI Symbol", "Segoe UI Emoji", system-ui, sans-serif; }
.fl-head { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 10px 14px 4px; }
.fl-row { display: grid; grid-template-columns: 26px 1fr auto 18px; align-items: center; gap: 8px; padding: 7px 10px 7px 14px; cursor: pointer; }
.fl-row:hover { background: #2a2e39; }
.fl-ic { font-size: 16px; text-align: center; } .fl-key { color: var(--muted); font-size: 11.5px; }
.fl-star { color: #4a5160; visibility: hidden; } .fl-row:hover .fl-star, .fl-star.on { visibility: visible; } .fl-star.on { color: var(--gold); }
.fl-icons { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 4px 10px; }
.fl-icons button { background: none; border: 0; font-size: 18px; padding: 4px 0; cursor: pointer; border-radius: 4px; }
.fl-icons button:hover { background: #2a2e39; }
.favbar { position: absolute; bottom: 34px; left: 10px; z-index: 7; display: flex; gap: 2px; padding: 2px; background: rgba(30,34,45,.92); border: 1px solid var(--line); border-radius: 6px; font-family: "Segoe UI Symbol", system-ui; }
.favbar button { width: 28px; height: 26px; background: none; border: 1px solid transparent; border-radius: 4px; cursor: pointer; font-size: 14px; }
.favbar button:hover { background: var(--panel2); } .favbar button.active { border-color: #2962ff; color: #5b8cff; }
.dt-name { font-size: 11.5px; color: var(--muted); padding: 0 4px; align-self: center; white-space: nowrap; }
#chartWrap.hov-move canvas { cursor: move !important; }
#chartWrap.hov-grab canvas { cursor: grab !important; }
#chartWrap[data-cursor=dot] #chart canvas { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12'><circle cx='6' cy='6' r='3' fill='white' stroke='black'/></svg>") 6 6, crosshair !important; }
#chartWrap[data-cursor=arrowc] #chart canvas { cursor: default !important; }

/* ---- symbol button + search dialog ---- */
.symbtn { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; background: var(--panel2); border: 1px solid var(--line); border-radius: 16px; cursor: pointer; color: var(--text); min-width: 130px; }
.symbtn:hover { border-color: #3a4252; } .symbtn svg { color: var(--muted); } .symbtn b { font-weight: 700; letter-spacing: .02em; }
.smodal { position: fixed; inset: 0; z-index: 400; background: rgba(0,0,0,.5); display: flex; justify-content: center; align-items: flex-start; padding-top: 7vh; }
.sm-card { width: 880px; max-width: 94vw; height: 78vh; display: flex; flex-direction: column; background: #1e222d; border: 1px solid #2a2e39; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.6); overflow: hidden; }
.sm-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid #2a2e39; color: var(--muted); }
.sm-top input { flex: 1; background: none; border: 0; outline: none; font-size: 18px; font-weight: 600; color: var(--text); text-transform: uppercase; }
.sm-top input::placeholder { text-transform: none; font-weight: 400; color: #5d6373; }
.sm-clear { background: none; border: 0; color: var(--muted); cursor: pointer; } .sm-clear:hover { color: var(--text); }
.sm-close { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; padding: 4px 6px; border-radius: 6px; } .sm-close:hover { background: #2a2e39; color: var(--text); }
.sm-tabs { display: flex; gap: 6px; padding: 12px 18px; border-bottom: 1px solid #2a2e39; flex-wrap: wrap; }
.sm-tabs button { background: #2a2e39; border: 0; border-radius: 16px; padding: 6px 13px; cursor: pointer; color: var(--text); font-size: 13px; }
.sm-tabs button:hover { background: #363a45; } .sm-tabs button.active { background: #f0f3fa; color: #131722; font-weight: 600; }
.sm-list { flex: 1; overflow-y: auto; padding: 4px 8px; }
.sm-row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.sm-row.sel { background: #2a2e39; }
.sm-logo { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; position: relative; }
.sm-logo img { width: 32px; height: 32px; object-fit: contain; } .sm-logo img.round { border-radius: 50%; object-fit: cover; } .sm-logo img.white { background: #fff; }
.sm-logo.letter { color: #fff; font-weight: 700; font-size: 13px; }
.sm-logo.flags img { position: absolute; width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 2px solid #1e222d; }
.sm-logo.flags img:first-child { left: 0; top: 0; } .sm-logo.flags img:last-child { right: 0; bottom: 0; }
.sm-sym { font-weight: 700; font-size: 14.5px; color: #5b9cff; display: flex; align-items: center; gap: 6px; }
.sm-sym mark { background: none; color: #f0f3fa; }
.sm-rt { color: var(--up); font-size: 9px; }
.sm-desc { display: flex; align-items: center; gap: 8px; color: #b2b5be; font-size: 12.5px; margin-top: 2px; min-width: 0; }
.sm-desc > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 480px; }
.sm-badge { font-size: 9.5px; text-transform: uppercase; letter-spacing: .04em; background: #363a45; color: #b2b5be; padding: 1px 6px; border-radius: 4px; white-space: nowrap; }
.sm-ex { display: flex; align-items: center; gap: 8px; color: #d1d4dc; font-size: 13px; white-space: nowrap; }
.sm-exlogo { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 11px; }
.sm-empty { padding: 40px; text-align: center; color: var(--muted); line-height: 1.8; } .sm-empty b { color: var(--text); }
.sm-foot { padding: 8px 18px; border-top: 1px solid #2a2e39; color: #5d6373; font-size: 11.5px; }

.autobtn { position: absolute; right: 8px; bottom: 6px; z-index: 7; width: 24px; height: 20px; padding: 0; font-size: 11px; font-weight: 700; background: var(--panel2); border: 1px solid var(--line); border-radius: 4px; color: var(--muted); cursor: pointer; }
.autobtn.active { color: #5b8cff; border-color: #2962ff; }

/* ---- phone / small tablet ---- */
.mnav, .tools-toggle { display: none; }
.draw-layer { touch-action: none; }
@media (max-width: 820px) {
  .topbar { overflow-x: auto; gap: 6px; padding: 0 6px; scrollbar-width: none; }
  .topbar::-webkit-scrollbar { display: none; }
  .topbar > * { flex-shrink: 0; }
  .tools-toggle { display: block; padding: 4px 8px; }
  .brand .wm { display: none; }
  .topbar .spacer, #conn, #btnShot, #scaleMode { display: none; }
  .symbtn { min-width: 0; padding: 0 10px; }
  .seg button { padding: 5px 7px; }
  .layout { grid-template-columns: 1fr; height: calc(100% - 44px - 58px - env(safe-area-inset-bottom)); }
  .tools { position: fixed; left: 0; top: 44px; bottom: calc(58px + env(safe-area-inset-bottom)); z-index: 60; width: 52px; transform: translateX(-100%); transition: transform .18s; box-shadow: 4px 0 16px rgba(0,0,0,.4); }
  body.m-tools .tools { transform: none; }
  .side { position: fixed; left: 0; right: 0; top: 44px; bottom: calc(58px + env(safe-area-inset-bottom)); z-index: 70; display: none; border-left: 0; }
  body.m-side .side { display: flex; }
  .side .tabs { display: none; }
  .status { display: none; }
  .mnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--panel); border-top: 1px solid var(--line); z-index: 80; }
  .mnav button { flex: 1; background: none; border: 0; color: var(--muted); font-size: 10.5px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; }
  .mnav button span { font-size: 18px; filter: grayscale(1); opacity: .7; }
  .mnav button.active { color: var(--text); } .mnav button.active span { filter: none; opacity: 1; }
  .symbar { gap: 10px; padding: 4px 10px; min-height: 0; }
  .stats, #symDesc { display: none; }
  .quote #lastPrice { font-size: 16px; }
  .legend { font-size: 11px; left: 6px; } .legend .l-ind button { display: none; }
  .legend .l-ohlc span:nth-child(n+5) { display: none; }
  .toasts { right: 8px; left: 8px; bottom: calc(66px + env(safe-area-inset-bottom)); }
  .toast { max-width: none; }
  .smodal { padding-top: 0; } .sm-card { width: 100vw; max-width: 100vw; height: 100%; border-radius: 0; border: 0; }
  .sm-top input { font-size: 16px; } .sm-ex > span:first-child { display: none; } .sm-foot { display: none; }
  .sm-desc > span:first-child { max-width: 52vw; }
  .replaybar { flex-wrap: wrap; justify-content: center; max-width: 96vw; bottom: 8px; }
  .favbar { display: none; }
  .draw-toolbar { flex-wrap: wrap; max-width: 94vw; } .dt-name { display: none; }
  .flyout { width: min(290px, calc(100vw - 64px)); }
  .modal-card { width: 100vw; max-height: 90vh; }
  .ind-grid { grid-template-columns: 1fr; }
  .wl-row { height: 46px; }
}

.credit { padding-top: 0; font-size: 10.5px; } .credit a { color: inherit; text-decoration: underline; text-decoration-color: #3a4150; }
