:root {
  --bg: #07080c;
  --bg-2: #0d1017;
  --bg-3: #141922;
  --bg-4: #1b2130;
  --line: rgba(232, 236, 244, 0.08);
  --line-2: rgba(232, 236, 244, 0.14);
  --text: #e8edf6;
  --muted: #8b95a8;
  --faint: #5d6778;
  --up: #34d399;
  --down: #f87171;
  --good: #3ddc97;
  --bad: #ff5d73;
  --amber: #fbbf24;
  --accent: #34d399;
  --upc: #34d399;
  --dnc: #f87171;
  --r: 8px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); overflow: hidden; }
body { font: 500 13px/1.4 "gg sans", "Noto Sans", "Helvetica Neue", "Segoe UI", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.up { color: var(--good) !important; }
.down { color: var(--bad) !important; }

.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico .fill, .ico path.fill, .ico rect.fill { fill: currentColor; }
.ico .area { fill: currentColor; fill-opacity: 0.18; }
.ico .g { fill: rgba(61, 220, 151, 0.35); stroke: #3ddc97; }
.ico .r { fill: rgba(255, 93, 115, 0.35); stroke: #ff5d73; }

#app { height: 100%; display: flex; flex-direction: column; min-height: 0; }

/* ── top bar ─────────────────────────────────────────────────────────── */
#top {
  height: 46px; flex: none; display: flex; align-items: center; gap: 4px; padding: 0 10px;
  border-bottom: 1px solid var(--line); background: #0a0c11; flex-wrap: nowrap; overflow: hidden; min-width: 0;
}
#top-tools {
  display: flex; align-items: center; gap: 2px; min-width: 72px; flex: 0 1 auto; overflow-x: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
#top-tools::-webkit-scrollbar { display: none; }
.brand { display: flex; align-items: center; gap: 7px; margin-right: 6px; }
.brand-logo { width: 22px; height: 22px; object-fit: contain; border-radius: 5px; }
.mark { font-weight: 760; letter-spacing: 0.14em; font-size: 13px; }
.sub { color: var(--muted); letter-spacing: 0.18em; font-size: 10px; }
.tb-sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; flex: none; }
.top-spacer { flex: 1 1 12px; min-width: 0; }

#search-form { position: relative; width: 168px; }
#search-form .s-ico { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--faint); pointer-events: none; }
#search {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 7px 10px 7px 30px; outline: none; transition: border-color .15s, background .15s;
}
#search:focus { border-color: rgba(52, 211, 153, 0.55); background: var(--bg-3); }
#search-pop {
  position: absolute; z-index: 50; top: calc(100% + 6px); left: 0; width: 280px; max-height: 340px; overflow: auto;
  background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 10px; padding: 4px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
#search-pop button { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 6px; }
#search-pop button:hover { background: var(--bg-4); }
#search-pop .sym { font-weight: 640; }
#search-pop .meta { color: var(--muted); font-size: 11px; }

.tb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; min-width: 30px; padding: 0 7px;
  background: none; border: 1px solid transparent; border-radius: var(--r); color: var(--muted); transition: background .12s, color .12s;
}
.tb-btn:hover { background: var(--bg-3); color: var(--text); }
.tb-btn.on { color: var(--accent); }
.tb-btn.wide { padding: 0 10px; font-weight: 560; color: var(--text); }
.tb-btn span { font-size: 12.5px; }

.tfs { display: flex; gap: 2px; min-width: 0; flex: 0 1 auto; overflow-x: auto; scrollbar-width: none; }
.tfs::-webkit-scrollbar { display: none; }
.tfs button { height: 30px; padding: 0 9px; background: none; border: 1px solid transparent; border-radius: var(--r); color: var(--muted); font-weight: 560; transition: background .12s, color .12s; }
.tfs button:hover { background: var(--bg-3); color: var(--text); }
.tfs button.on { background: rgba(52, 211, 153, 0.12); color: var(--accent); border-color: rgba(52, 211, 153, 0.35); }

.top-meta { display: flex; align-items: center; gap: 10px; }
.px { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; transition: color .18s; }
.px.tick-up { color: var(--good); }
.px.tick-down { color: var(--bad); }
.chg { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.chip { padding: 3px 9px; border-radius: 999px; font-size: 11px; border: 1px solid var(--line); color: var(--muted); }

/* ── body layout ─────────────────────────────────────────────────────── */
#body { flex: 1; min-height: 0; display: flex; position: relative; }
#rail {
  width: 48px; flex: none; border-right: 1px solid var(--line); background: #0a0c11; padding: 6px 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px; overflow: visible; z-index: 5;
}
.rail-g { position: relative; display: flex; align-items: center; }
.rail-b {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid transparent; border-radius: var(--r); color: var(--muted); transition: background .12s, color .12s;
}
.rail-b:hover { background: var(--bg-3); color: var(--text); }
.rail-b.on { background: rgba(52, 211, 153, 0.14); color: var(--accent); }
.rail-b .ico { width: 20px; height: 20px; }
.rail-c {
  position: absolute; right: -6px; top: 50%; transform: translateY(-50%); width: 14px; height: 28px; padding: 0; opacity: 1; z-index: 2;
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 4px; color: var(--muted); display: flex; align-items: center; justify-content: center;
}
.rail-c:hover { color: var(--text); border-color: var(--accent, #34d399); }
.rail-c .ico { width: 10px; height: 10px; }
.rail-tip {
  position: absolute; left: calc(100% + 14px); top: 50%; transform: translateY(-50%);
  padding: 4px 8px; border-radius: 6px; background: #161b26; color: var(--text); border: 1px solid var(--line-2);
  font-size: 12px; font-weight: 650; white-space: nowrap; pointer-events: none; opacity: 0; z-index: 40;
}
.rail-b:hover .rail-tip, .rail-c:hover .rail-tip { opacity: 1; }
.rail-sep { width: 26px; height: 1px; background: var(--line); margin: 6px 0; }

#stage { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#chart-frame { position: relative; flex: 1; min-height: 0; }
#chart { position: absolute; inset: 0; }
#veil { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(7, 8, 12, 0.72); color: var(--muted); backdrop-filter: blur(2px); z-index: 4; pointer-events: none; }
#veil[hidden] { display: none; }
#veil.bad { color: var(--bad); }
.draw-text { position: absolute; z-index: 6; background: var(--bg-3); border: 1px solid var(--amber); border-radius: 6px; padding: 5px 8px; outline: none; min-width: 120px; }
#tool-chip {
  position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 5; pointer-events: none;
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: 12px; white-space: nowrap;
  background: rgba(7, 8, 12, .88); border: 1px solid rgba(52, 211, 153, .55); color: var(--text); box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
}
#tool-chip[hidden] { display: none; }
#tool-chip b { color: var(--accent); font-weight: 750; }
#tool-chip span { color: var(--muted); }
#tool-chip em { font-style: normal; font-size: 10.5px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }

/* ── legend ──────────────────────────────────────────────────────────── */
#legend { position: absolute; left: 10px; top: 8px; z-index: 3; pointer-events: none; display: flex; flex-direction: column; gap: 1px; max-width: calc(100% - 100px); }
#legend .lg-sym { font-size: 14px; font-weight: 640; text-shadow: 0 1px 6px #000; }
#legend .lg-dim { color: var(--muted); font-weight: 460; font-size: 12.5px; }
#legend .lg-ohlc { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; margin-bottom: 3px; text-shadow: 0 1px 6px #000; }
#legend .lg-ohlc b { font-weight: 600; }
.lg-row { pointer-events: auto; display: flex; align-items: center; gap: 8px; height: 22px; padding: 0 6px 0 2px; border-radius: 6px; font-size: 12px; width: fit-content; max-width: 100%; transition: background .12s; }
.lg-row:hover { background: rgba(20, 25, 34, 0.86); }
.lg-row.is-hot { background: rgba(255, 255, 255, 0.1); }
.lg-row.is-hot .lg-name { color: #fff; }
.lg-row.off .lg-name, .lg-row.off .lg-vals { opacity: 0.42; }
.lg-name { color: var(--text); white-space: nowrap; font-weight: 520; text-shadow: 0 1px 6px #000; }
.lg-vals { display: flex; gap: 8px; font-variant-numeric: tabular-nums; font-weight: 560; text-shadow: 0 1px 6px #000; }
.lg-err { color: var(--bad); }
.lg-acts { display: none; gap: 1px; margin-left: 2px; }
.lg-row:hover .lg-acts { display: inline-flex; }
.lg-acts button { width: 22px; height: 20px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; border-radius: 5px; color: var(--muted); padding: 0; }
.lg-acts button:hover { background: var(--bg-4); color: var(--text); }
.lg-count { font-size: 9.5px; font-weight: 800; letter-spacing: .03em; color: #c084fc !important; }
.lg-acts .ico { width: 15px; height: 15px; }
.lg-vol .lg-name { color: var(--muted); }
#pane-legends { position: absolute; left: 10px; top: 0; z-index: 3; pointer-events: none; }
#pane-legends .lg-row { position: absolute; left: 0; top: -100px; }

/* ── overlays on the chart ───────────────────────────────────────────── */
#stage-tools { position: absolute; right: 90px; bottom: 34px; z-index: 3; }
#scale-tools { position: absolute; right: 4px; bottom: 3px; z-index: 3; display: flex; gap: 1px; padding: 0; }
.pill { height: 22px; padding: 0 8px; border-radius: 6px; border: 0; background: none; color: var(--muted); font-size: 11.5px; font-weight: 600; }
#scale-tools .pill { width: 22px; padding: 0; text-align: center; font-size: 11px; }
.pill:hover { color: var(--text); background: var(--bg-3); }
.pill.on { color: var(--accent); background: rgba(52, 211, 153, 0.12); }
#stage-tools .pill { background: var(--bg-3); border: 1px solid var(--line-2); color: var(--text); height: 28px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }

#draw-bar {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 6px;
  background: rgba(20, 25, 34, 0.96); border: 1px solid var(--line-2); border-radius: 12px; padding: 5px 8px; box-shadow: 0 14px 40px rgba(0, 0, 0, .55);
  backdrop-filter: blur(8px);
}
#draw-bar[hidden] { display: none; }
.db-name { color: var(--muted); font-size: 11.5px; padding: 0 6px 0 2px; white-space: nowrap; }
#draw-bar select { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 4px 4px; font-size: 12px; }
.db-chk { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
#draw-bar input[type=range] { width: 70px; accent-color: var(--amber); }
.db-scn { width: 92px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; font-size: 12px; color: var(--text, #e8edf6); }
.db-scn::placeholder { color: var(--muted); opacity: .7; }
.db-tfs { display: inline-flex; align-items: center; gap: 1px; padding: 0 5px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.db-tf { background: transparent; border: 0; border-radius: 5px; padding: 3px 5px; font-size: 11px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.db-tf:hover { background: var(--bg-3); color: var(--text); }
.db-tf.on { color: var(--accent); font-weight: 640; }
.swatch { width: 24px; height: 24px; border-radius: 6px; border: 2px solid rgba(255, 255, 255, 0.28); padding: 0; }

/* ── right desk ──────────────────────────────────────────────────────── */
#desk { width: 268px; flex: none; border-left: 1px solid var(--line); background: #0a0c11; overflow: auto; transition: width .2s ease; }
#desk-pull {
  display: none; position: absolute; right: 0; top: 0; bottom: 0; width: 26px; z-index: 6;
  align-items: center; justify-content: center; writing-mode: vertical-rl; transform: rotate(180deg);
  background: #0a0c11; border: 0; border-left: 1px solid var(--line); color: var(--muted);
  font-size: 11px; font-weight: 720; letter-spacing: .14em; text-transform: uppercase;
}
#desk-pull:hover { color: var(--text); background: var(--bg-3); }
@media (min-width: 1101px) {
  body.no-desk #desk { width: 0; min-width: 0; border-left-width: 0; overflow: hidden; }
  body.no-desk #desk-pull { display: flex; }
  body.no-desk #stage { margin-right: 26px; }
}
.aside-h { padding: 12px 14px 6px; color: var(--faint); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; position: sticky; top: 0; background: #0a0c11; z-index: 1; }
#watch-list { overflow: visible; }
.sym-btn { display: grid; grid-template-columns: 1fr auto 62px; gap: 6px; align-items: center; width: 100%; padding: 6px 14px; background: none; border: 0; border-left: 2px solid transparent; text-align: left; }
.sym-btn:hover { background: var(--bg-3); }
.sym-btn.on { background: rgba(52, 211, 153, 0.08); border-left-color: var(--accent); }
.sym-btn .q { color: var(--muted); font-variant-numeric: tabular-nums; }
.sym-btn .c { text-align: right; font-variant-numeric: tabular-nums; font-size: 12px; color: var(--muted); }
.lvl { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 14px; color: var(--muted); }
.lvl b { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 560; }
.ldist { font-style: normal; font-size: 10.5px; font-variant-numeric: tabular-nums; margin-left: 6px; }
.ldist.up { color: var(--good); }
.ldist.down { color: var(--bad); }
#stack-card { padding: 4px 0 6px; }
.stack-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 14px; }
.stack-top b { font-size: 15px; }
.stack-top .score { background: var(--bg-3); border: 1px solid var(--line-2); padding: 1px 9px; border-radius: 999px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stack-note { padding: 2px 14px 6px; color: var(--muted); font-size: 12px; }

/* ── menus, modals, toast ────────────────────────────────────────────── */
.menu {
  position: fixed; z-index: 200; min-width: 200px; max-height: 70vh; overflow: auto; padding: 5px;
  background: rgba(20, 25, 34, 0.98); border: 1px solid var(--line-2); border-radius: 11px; box-shadow: 0 20px 56px rgba(0, 0, 0, 0.6);
  animation: pop .12s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.menu-i { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 9px; background: none; border: 0; border-radius: 7px; text-align: left; }
.menu-i:hover { background: var(--bg-4); }
.menu-i.dis { opacity: .45; cursor: default; }
.mi-ico { width: 18px; color: var(--muted); display: inline-flex; }
.mi-l { flex: 1; }
.mi-h { color: var(--faint); font-size: 11.5px; }
.mi-c { color: var(--amber); }
.menu-sep { height: 1px; background: var(--line); margin: 4px 2px; }
.menu-h { padding: 6px 9px 3px; color: var(--faint); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.menu.picker { padding: 10px; }
.sw-grid { display: grid; grid-template-columns: repeat(10, 20px); gap: 5px; }
.sw { width: 20px; height: 20px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, .2); padding: 0; }
.sw.on { outline: 2px solid var(--amber); outline-offset: 1px; }
.sw-custom { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: 12px; }
.sw-custom input { width: 44px; height: 24px; background: none; border: 0; padding: 0; }

.modal-wrap { position: fixed; inset: 0; z-index: 150; display: flex; align-items: flex-start; justify-content: center; padding-top: 9vh; background: rgba(3, 4, 7, 0.55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .12s; }
.modal-wrap.in { opacity: 1; }
.modal-wrap.out { opacity: 0; }
.modal { width: 460px; max-width: 94vw; max-height: 82vh; display: flex; flex-direction: column; background: #10141c; border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7); transform: translateY(-8px); transition: transform .14s ease-out; }
.modal-wrap.in .modal { transform: none; }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 10px 18px; border-bottom: 1px solid var(--line); }
.modal-t { font-size: 15px; font-weight: 650; }
.modal-b { padding: 14px 18px; overflow: auto; flex: 1; min-height: 0; }
.modal-f { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-top: 1px solid var(--line); }
.grow { flex: 1; }
.btn { height: 32px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-3); font-weight: 580; }
.btn:hover { background: var(--bg-4); }
.btn.primary { background: var(--amber); border-color: var(--amber); color: #1a1403; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: none; }

.ind-modal .modal-b { padding: 0; display: flex; flex-direction: column; }
.ind-modal .modal { max-height: 78vh; height: 78vh; }
.ind-search { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.ind-search input { flex: 1; background: none; border: 0; outline: none; font-size: 15px; }
.ind-search .s-ico { color: var(--faint); }
.ind-cols { flex: 1; min-height: 0; display: flex; }
.ind-cats { width: 168px; border-right: 1px solid var(--line); padding: 8px; overflow: auto; }
.cat { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 8px 10px; background: none; border: 0; border-radius: 8px; color: var(--muted); text-align: left; }
.cat:hover { background: var(--bg-3); color: var(--text); }
.cat.on { background: rgba(52, 211, 153, 0.12); color: var(--accent); }
.cat i { font-style: normal; font-size: 11px; opacity: .7; }
.ind-list { flex: 1; overflow: auto; padding: 6px 8px 12px; }
.ind-sub { padding: 12px 10px 4px; color: var(--faint); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.ind-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; cursor: pointer; }
.ind-row:hover, .ind-row:focus { background: var(--bg-3); outline: none; }
.ind-name { flex: 1; min-width: 0; }
.ind-name b { font-weight: 580; }
.ind-name small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ind-tag { font-size: 10.5px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.ind-tag.pane { color: #a78bfa; border-color: rgba(167, 139, 250, .4); }
.ind-tag.overlay { color: #4cc9f0; border-color: rgba(76, 201, 240, .35); }
.ind-on { font-size: 11px; color: var(--good); }
.ind-add { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--bg-3); opacity: 0; font-size: 12px; }
.ind-row:hover .ind-add, .ind-row:focus .ind-add { opacity: 1; }
.ind-add .ico { width: 13px; height: 13px; }
.ind-add:hover { background: var(--amber); color: #1a1403; border-color: var(--amber); }
.star { width: 26px; height: 26px; background: none; border: 0; color: var(--faint); padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; }
.star:hover { color: var(--amber); background: var(--bg-4); }
.star.on { color: var(--amber); }
.ind-empty, .set-empty { padding: 30px 12px; color: var(--muted); text-align: center; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: -6px 0 12px; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px; color: var(--muted); font-weight: 560; }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; }
.set-row > span { color: var(--muted); }
.set-row input[type=number], .set-row select { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 7px; padding: 6px 8px; min-width: 110px; outline: none; }
.set-row input[type=number]:focus, .set-row select:focus { border-color: var(--amber); }
.set-row input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--amber); }
.set-row.style { display: grid; grid-template-columns: 1fr 32px 70px 84px; gap: 8px; }
.set-row.style select { min-width: 0; }
.chk { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }

.snap-prev { width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; margin-bottom: 12px; }
.snap-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.snap-rooms { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.snap-room { height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--muted); font-size: 12px; }
.snap-room.on { color: #1a1403; background: var(--amber); border-color: var(--amber); }
.snap-opts { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.snap-opts label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; cursor: pointer; }
.snap-opts input { accent-color: var(--accent); width: 15px; height: 15px; }
.snap-card { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.snap-cardFields { display: inline-flex; gap: 6px; flex: 1; min-width: 220px; }
.snap-cardFields[hidden] { display: none; }
.snap-cardFields input { flex: 1; min-width: 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); padding: 7px 9px; outline: none; font-variant-numeric: tabular-nums; }
.snap-cardFields input:focus { border-color: rgba(52, 211, 153, 0.55); }
.snap-hist { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; scrollbar-width: none; }
.snap-hist::-webkit-scrollbar { display: none; }
.snap-hist img { height: 44px; border-radius: 6px; border: 1px solid var(--line); cursor: pointer; opacity: .75; transition: opacity .12s, border-color .12s; }
.snap-hist img:hover { opacity: 1; border-color: var(--accent); }

/* the crosshair data window: floating table under the legend */
#datawin {
  position: absolute; top: 58px; left: 8px; z-index: 24; max-width: 320px; max-height: calc(100% - 120px); overflow-y: auto;
  background: rgba(10, 12, 17, .93); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px;
  font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; scrollbar-width: none;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
#datawin::-webkit-scrollbar { display: none; }
#datawin .dw-h { display: flex; align-items: baseline; gap: 6px; color: var(--text); font-size: 12px; font-weight: 680; margin-bottom: 6px; }
#datawin .dw-h span { margin-left: auto; color: var(--faint); font-weight: 500; font-size: 10.5px; }
#datawin .dw-r { display: flex; gap: 5px; align-items: baseline; margin-bottom: 3px; white-space: nowrap; }
#datawin .dw-r span { color: var(--faint); font-weight: 640; }
#datawin .dw-r b { font-weight: 680; margin-right: 8px; }
#datawin .dw-i { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 5px; padding-top: 5px; }
#datawin .dw-i span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#datawin .dw-i em { font-style: normal; display: inline-flex; gap: 8px; white-space: nowrap; }
@media (max-width: 720px) { #datawin { display: none !important; } }
.set-row input[type=text], .set-row input:not([type]) { flex: 1; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 7px; padding: 6px 8px; outline: none; }
.set-row input[type=text]:focus, .set-row input:not([type]):focus { border-color: var(--amber); }

#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 300; background: var(--bg-4); border: 1px solid var(--line-2); padding: 9px 16px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* narrow screens: rail collapses to icons, desk hides */
@media (max-width: 1360px) { #replay-btn span, #type-btn span, .tb-btn.wide span { display: none; } .top-meta #session { display: none; } }
@media (max-width: 1100px) { .brand .sub { display: none; } #search-form { width: 130px; } .tb-btn.wide span { display: none; } }
/* ── phone: dialogs ── */
@media (max-width: 720px) {
  .modal { width: 96vw !important; }
  .ind-modal .modal { height: 92dvh; }
  .ind-cols { flex-direction: column; }
  .ind-cats { width: auto; display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 6px; gap: 4px; flex: none; }
  .cat { width: auto; flex: none; gap: 6px; white-space: nowrap; }
  .ind-add { opacity: 1; }
  .ind-tag, .ind-on { display: none; }
  .lg-row { font-size: 11px; height: 22px; }
  .lg-acts button { width: 24px; height: 22px; }
  .lg-vol { display: none; }
}
@media (hover: none) { .rail-c { opacity: 1; } .ind-add { opacity: 1; } }


/* ── chart settings dialog + legend switches ─────────────────────────── */
.cs-modal .modal-b { padding-top: 6px; }
.cs-tabs { margin: 0 0 6px; position: sticky; top: -6px; background: #10141c; z-index: 2; }
.cs-body { min-height: 360px; }
.cs-h { margin: 14px 0 4px; color: var(--faint); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.cs-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.cs-ctl { display: inline-flex; align-items: center; gap: 8px; }
.cs-body .swatch { width: 26px; height: 22px; }
.cs-body input[type=range] { width: 150px; accent-color: var(--accent, #fbbf24); }
.cs-body input[type=text] { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 7px; padding: 6px 8px; width: 150px; outline: none; }
.rv { font-style: normal; color: var(--muted); min-width: 38px; text-align: right; font-variant-numeric: tabular-nums; font-size: 12px; }
#legend.no-ohlc .lg-ohlc, #legend.no-volume .lg-vol { display: none; }
#legend.no-values .lg-vals, #pane-legends.no-values .lg-vals { display: none; }

/* ── watchlist edit, replay bar, alerts, help ────────────────────────── */
.aside-h { display: flex; align-items: center; justify-content: space-between; }
.wl-add { background: none; border: 1px solid var(--line-2); color: var(--muted); border-radius: 6px; width: 22px; height: 20px; line-height: 1; font-size: 13px; padding: 0; }
.wl-pair { width: auto; padding: 0 6px; margin-right: 4px; font-size: 11px; letter-spacing: .02em; }
.wl-add:hover { color: var(--text); background: var(--bg-3); }
.sym-btn { position: relative; }
.sym-btn .wl-x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: none; width: 18px; height: 18px; border-radius: 5px; border: 0; background: var(--bg-4); color: var(--muted); padding: 0; line-height: 1; }
.sym-btn:hover .wl-x { display: block; }
.sym-btn:hover .c { visibility: hidden; }
#replay-bar { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 4px; padding: 5px 8px; background: rgba(20,25,34,.96); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.55); backdrop-filter: blur(8px); }
#replay-bar[hidden] { display: none; }
#replay-bar .rp-time { color: var(--muted); font-size: 12px; padding: 0 8px; min-width: 130px; font-variant-numeric: tabular-nums; }
#replay-bar select { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 4px; font-size: 12px; }
#replay-bar .tb-btn.on { color: var(--good); }
#stage.picking #chart canvas { cursor: cell !important; }
#alert-n { position: absolute; top: 2px; right: 1px; font-style: normal; font-size: 9.5px; background: var(--amber); color: #1a1403; border-radius: 999px; min-width: 14px; height: 14px; line-height: 14px; text-align: center; font-weight: 700; padding: 0 3px; }
#alert-btn { position: relative; }
.kbd-grid { display: grid; grid-template-columns: 1fr auto; gap: 2px 18px; }
.kbd-grid b { font-weight: 560; }
.kbd-grid kbd { justify-self: end; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 7px; font: 600 11.5px ui-monospace, Menlo, monospace; color: var(--muted); }
.kbd-grid .cs-h { grid-column: 1 / -1; }
.add-sym-row { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 8px 10px; background: none; border: 0; border-radius: 8px; text-align: left; }
.add-sym-row:hover { background: var(--bg-3); }
.add-sym-row.in { opacity: .5; }
.add-sym-row small { color: var(--muted); }
@media (max-width: 720px) { #replay-btn span { display: none; } #replay-bar { bottom: 36px; max-width: calc(100% - 12px); overflow-x: auto; } }

.ind-row.locked .ind-name b { opacity: .75; }
.ind-tag.paid { color: var(--amber); border-color: rgba(251,191,36,.45); }
.ind-row.locked .ind-add { opacity: 1; color: var(--amber); border-color: rgba(251,191,36,.45); }

/* ── stock tokens ── */
#legend .lg-stock { font-size: 11.5px; color: var(--muted); margin: 1px 0 2px; text-shadow: 0 1px 6px #000; }
#legend .lg-stock b.up { color: var(--good); } #legend .lg-stock b.down { color: var(--bad); }
.lg-pill { display: inline-block; padding: 0 7px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 10px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.lg-pill.on { color: var(--good); border-color: rgba(61,220,151,.5); }
.lg-dot { opacity: .5; }

.lg-fold {
  pointer-events: auto; align-self: flex-start; height: 20px; margin: 1px 0 2px;
  padding: 0 7px; border-radius: 6px; border: 1px solid transparent; background: transparent;
  color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .04em;
}
.lg-fold:hover { background: rgba(20, 25, 34, 0.86); color: var(--text); }
#legend.is-min .lg-row { display: none; }
#legend.is-min .lg-fold {
  color: var(--text); background: rgba(20, 25, 34, 0.9);
  border-color: var(--line-2); height: 24px; padding: 0 10px;
}
#chart canvas { touch-action: none; }

/* ── right panel: watchlist / signals / trending ── */
.m-only { display: none; }
.chip.venue { cursor: pointer; background: none; color: var(--text); font-weight: 650; }
.chip.venue:hover { border-color: var(--line-2); background: var(--bg-3); }
.chip.venue::after { content: "▾"; margin-left: 5px; font-size: 9px; color: var(--muted); }
#desk { display: flex; flex-direction: column; overflow: hidden; }
#desk-tabs { display: flex; gap: 2px; padding: 6px 8px; border-bottom: 1px solid var(--line); flex: none; }
#desk-tabs button { flex: 1; height: 30px; border: 0; background: none; color: var(--muted); border-radius: 8px; font-weight: 620; font-size: 12px; }
#desk-tabs button:hover { color: var(--text); background: var(--bg-3); }
#desk-tabs button.on { background: rgba(52, 211, 153, 0.12); color: var(--accent); }
#desk-tabs #desk-x { display: inline-flex; flex: none; width: 34px; align-items: center; justify-content: center; }
.dpane { flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.dpane[hidden] { display: none; }
.aside-h small { letter-spacing: 0; text-transform: none; color: var(--muted); }
.aside-h.seg { gap: 4px; justify-content: flex-start; padding: 10px 10px 6px; }
.aside-h.seg button { height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.aside-h.seg button.on { color: var(--accent); border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.1); }
.sym-btn .wl-stack { justify-self: end; height: 22px; padding: 0 7px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--muted); font-size: 10px; font-weight: 720; letter-spacing: .04em; }
.sym-btn .wl-stack.on { color: var(--accent); border-color: rgba(52, 211, 153, .5); background: rgba(52, 211, 153, .12); }
.dom-row { display: flex; gap: 6px; padding: 4px 14px 10px; }
.dom-row button { flex: 1; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--muted); font-size: 11.5px; font-weight: 680; }
.dom-row button.on { color: var(--accent); border-color: rgba(52, 211, 153, .45); background: rgba(52, 211, 153, .1); }
.sym-btn b i { font-style: normal; color: var(--faint); font-weight: 560; font-size: 10.5px; margin-left: 5px; letter-spacing: .03em; }
.sig-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 14px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); }
.sig-row:hover { background: var(--bg-3); }
.sig-row .s1 { font-weight: 650; display: flex; align-items: center; gap: 7px; }
.sig-row .s2 { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; grid-column: 1; }
.sig-row .pnl { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 650; font-variant-numeric: tabular-nums; }
.side-tag { font-size: 10px; font-weight: 760; letter-spacing: .06em; padding: 1px 6px; border-radius: 4px; }
.side-tag.long { background: rgba(61, 220, 151, .16); color: var(--good); }
.side-tag.short { background: rgba(255, 93, 115, .16); color: var(--bad); }
.dempty { padding: 16px 14px; color: var(--muted); font-size: 12.5px; }
#desk-scrim { display: none; }
#search-pop .vn { display: inline-flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
#search-pop .vchip { font-size: 10px; padding: 1px 6px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
#search-pop .vchip:hover, #search-pop .vchip.on { color: var(--accent); border-color: rgba(52, 211, 153, .5); }
#search-pop .row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
#search-pop .row:hover { background: var(--bg-4); }

/* Tablet and phone: the panel is a drawer from the right edge */
@media (max-width: 1100px) {
  #desk {
    display: flex !important; position: fixed; z-index: 60; top: 0; right: 0; bottom: 0; width: min(88vw, 380px);
    padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
    transform: translateX(104%); visibility: hidden;
    transition: transform .24s cubic-bezier(.2, .8, .2, 1), visibility 0s .24s;
    box-shadow: -24px 0 60px rgba(0, 0, 0, .6); border-left: 1px solid var(--line-2);
  }
  body.desk-open #desk { transform: none; visibility: visible; transition: transform .24s cubic-bezier(.2, .8, .2, 1); }
  #desk-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.desk-open #desk-scrim { opacity: 1; pointer-events: auto; }
  #desk-tabs #desk-x { display: inline-flex; }
  /* The drawer is a swipe, not a tab sitting on the chart. */
  #panel-btn, #desk-pull { display: none !important; }
}

/* ── phone: a full-screen chart app ── */
#chart canvas { touch-action: none; }
#m-dock { display: none; }
@media (max-width: 720px) {
  html, body { position: fixed; top: var(--phone-top, 0px); left: 0; right: 0; width: 100%; height: var(--phone-h, 100svh); overscroll-behavior: none; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
  input, textarea { user-select: text; -webkit-user-select: text; }
  #app { height: var(--phone-h, 100svh); padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
  body.m-draw #app { padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
  #m-dock { display: none !important; }
  .m-only { display: inline-flex; }

  #top {
    height: auto; flex-wrap: wrap; align-items: center; gap: 0 2px; overflow: visible;
    padding: calc(6px + env(safe-area-inset-top, 0px)) calc(8px + env(safe-area-inset-right, 0px)) 2px calc(10px + env(safe-area-inset-left, 0px));
  }
  #top > * { display: none !important; }
  #top > #search-form, #top > .top-meta { display: flex !important; }
  #search-form { order: 1; flex: 1 1 0; min-width: 0; width: auto; }
  #search { border: 0; background: transparent; padding: 0 0 0 20px; font-size: 18px; font-weight: 760; height: 34px; letter-spacing: -.01em; text-transform: uppercase; }
  #search::placeholder { color: var(--text); opacity: 1; }
  #search:focus { background: transparent; }
  #search-form .s-ico { left: 0; }
  #top > .tb-btn { order: 2; width: 40px; height: 40px; min-width: 40px; padding: 0; border-radius: 12px; }
  #ind-btn span { display: none; }
  #top > .tb-btn .ico { width: 21px; height: 21px; }
  #m-draw.on { color: var(--accent); background: rgba(52, 211, 153, .14); }
  .top-meta { order: 5; flex: 1 0 100%; gap: 9px; align-items: baseline; padding: 0 0 4px 2px; }
  .px { font-size: 21px; font-weight: 780; letter-spacing: -.02em; }
  .chg { font-size: 13px; }
  .top-meta .chip.quiet { display: none; }
  .chip.venue { margin-left: auto; padding: 3px 9px; font-size: 11px; }

  /* timeframe wheel sits on the dock; the dock itself paints through the home indicator */
  #m-dock {
    display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    background: #07080c; border-top: 1px solid var(--line); align-items: stretch;
  }
  #m-dock button {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    border: 0; background: transparent; color: var(--muted); font-size: 10px; font-weight: 680; letter-spacing: .01em; padding: 0;
  }
  #m-dock button .ico { width: 20px; height: 20px; }
  #m-dock button.on { color: var(--accent); }
  #tfs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(40px + env(safe-area-inset-bottom, 0px));
    padding: 0 0 env(safe-area-inset-bottom, 0px); display: flex !important; align-items: center; gap: 2px;
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    background: #0a0c11; border-top: 1px solid var(--line);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  }
  #tfs::-webkit-scrollbar { display: none; }
  #tfs::before, #tfs::after { content: ""; flex: 0 0 42vw; }
  #tfs button { flex: none; scroll-snap-align: center; height: 34px; min-width: 46px; padding: 0 12px; font-size: 14px; border-radius: 17px; touch-action: pan-x; }
  #tfs button.on { font-weight: 760; }
  #tf-more { display: none !important; }

  /* drawing tools: a strip above the wheel, only while the pencil is on */
  #rail { display: none; }
  body.m-draw #rail {
    display: flex; flex-direction: row; align-items: center; position: fixed; left: 0; right: 0; width: auto; height: 50px; z-index: 39;
    bottom: calc(40px + env(safe-area-inset-bottom, 0px)); overflow-x: auto; overflow-y: hidden; border-right: 0; border-top: 1px solid var(--line);
    padding: 0 8px; gap: 2px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  body.m-draw .rail-g { flex: none; }
  body.m-draw .rail-b { width: 40px; height: 40px; }
  body.m-draw .rail-c { position: static; transform: none; opacity: 1; width: 18px; height: 28px; }
  body.m-draw .rail-sep { width: 1px; height: 22px; margin: 0 4px; flex: none; }

  #search-pop { position: fixed; left: 8px; right: 8px; top: calc(52px + env(safe-area-inset-top, 0px)); width: auto; max-height: 62dvh; }
  #search-pop .row { padding: 11px 10px; }
  #legend .lg-sym, #legend .lg-ohlc, #legend .lg-stock { display: none; }
  #legend { top: 6px; left: 8px; max-width: calc(100% - 64px); }
  .lg-acts { display: inline-flex; }
  #stage-tools { right: 8px; bottom: 8px; }
  #scale-tools { bottom: 6px; }
  #replay-bar { bottom: 8px; }
  #draw-bar { top: auto; bottom: 34px; height: auto; max-width: calc(100% - 16px); overflow-x: auto; scrollbar-width: none; }
  .modal-wrap { padding-top: 4vh; align-items: flex-end; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  .modal { border-radius: 16px 16px 12px 12px; max-height: 88dvh; }
  .sym-btn { padding: 11px 14px; }
  .sym-btn .wl-x { display: block; }
  .sym-btn:hover .c { visibility: visible; }
  #desk-tabs button { height: 38px; font-size: 13px; }
}

/* phone on its side: one thin row so the chart gets the screen */
@media (max-width: 950px) and (max-height: 480px) and (orientation: landscape) {
  #app { padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px)); }
  #m-dock { height: calc(48px + env(safe-area-inset-bottom, 0px)); }
  #m-dock button { font-size: 9px; }
  #m-dock button .ico { width: 16px; height: 16px; }
  #top { flex-wrap: nowrap; padding-top: calc(3px + env(safe-area-inset-top, 0px)); }
  #search { height: 30px; font-size: 16px; }
  .top-meta { order: 1; flex: 0 0 auto; padding: 0 8px; }
  #top > .tb-btn { order: 3; width: 34px; height: 34px; min-width: 34px; }
  #search-form { flex: 0 1 130px; }
  .chip.venue { margin-left: 0; }
  #tfs { bottom: 0; height: calc(36px + env(safe-area-inset-bottom, 0px)); }
  #tfs button { height: 30px; }
  body.m-draw #rail { bottom: calc(36px + env(safe-area-inset-bottom, 0px)); }
}

/* ── multi-chart: 1 to 4 charts, each one this app in a frame ── */
#multi { display: none; }
body.multi #chart-frame { display: none; }
body.multi #multi { display: grid; flex: 1; min-height: 0; gap: 3px; background: var(--line); grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
#multi[data-layout="2h"] { grid-template-rows: 1fr; }
#multi[data-layout="2v"] { grid-template-columns: 1fr; }
#multi[data-layout="3"] .mcell:first-child { grid-row: 1 / 3; }
.mcell { position: relative; min-width: 0; min-height: 0; background: var(--bg); }
.mcell iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.mcell::after { content: ""; position: absolute; inset: 0; pointer-events: none; border: 1px solid transparent; z-index: 2; }
.mcell.on::after { border-color: var(--accent); }
@media (max-width: 720px) {
  body.multi #multi { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 1fr; }
  #multi[data-layout="3"] .mcell:first-child { grid-row: auto; }
}
/* inside a frame: just the chart, its symbol, interval and indicators */
body.embed .brand, body.embed #desk, body.embed #desk-scrim, body.embed #panel-btn, body.embed #full-btn,
body.embed #help-btn, body.embed #multi-btn, body.embed #m-back, body.embed #session, body.embed #venue { display: none !important; }
body.multi #rail { display: none; }

@media (max-width: 1620px) { #replay-btn span { display: none; } }

/* opened from the dashboard's CHART button: the dashboard is hidden around the chart, so the chart carries the way back */
body.parent-full:not(.embed) .brand .mark, body.parent-full:not(.embed) .brand .sub { display: none; }
body.parent-full:not(.embed) #m-back {
  display: inline-flex !important; position: fixed; left: 10px; top: 8px; z-index: 70; width: 34px; height: 32px;
  color: var(--text); background: rgba(20, 25, 34, .95); border: 1px solid var(--line-2); border-radius: 9px;
}
body.parent-full:not(.embed) #m-back:hover { background: var(--bg-4); }
body.parent-full:not(.embed) .brand { visibility: hidden; width: 38px; }

/* watchlists (up to 3) and categories */
#wl-tabs { display: flex; gap: 4px; padding: 8px 10px 2px; flex-wrap: wrap; }
.wl-tab { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; height: 24px; padding: 0 10px; border: 1px solid var(--line); background: none; color: var(--muted); border-radius: 999px; font-size: 11.5px; font-weight: 640; }
.wl-tab:hover { color: var(--text); background: var(--bg-3); }
.wl-tab.on { color: var(--accent); border-color: rgba(52, 211, 153, .45); background: rgba(52, 211, 153, .12); }
.wl-tab.add, .wl-tab.more { padding: 0 8px; }
.wl-cat { display: flex; align-items: center; gap: 6px; padding: 9px 14px 4px; color: var(--muted); font-size: 10.5px; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; user-select: none; }
.wl-cat:hover { color: var(--text); }
.wl-cat b { flex: 1; font-weight: 720; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-cat .wl-chev { width: 10px; font-size: 10px; }
.wl-cat-acts { display: none; gap: 2px; }
.wl-cat:hover .wl-cat-acts { display: inline-flex; }
.wl-cat-acts button { background: none; border: 0; color: var(--muted); font-size: 12px; padding: 0 4px; line-height: 1; }
.wl-cat-acts button:hover { color: var(--text); }
.sym-btn.wl-over, .wl-cat.wl-over { box-shadow: inset 0 2px 0 var(--accent); }
.sym-btn.dragging { opacity: .45; }

.sym-btn { touch-action: pan-y; }
.sym-btn.wl-over-after { box-shadow: inset 0 -2px 0 var(--accent); }
.sym-btn.wl-ghost { position: fixed; z-index: 9999; pointer-events: none; opacity: .92; background: var(--bg-3); border-radius: 8px; box-shadow: 0 10px 28px rgba(0, 0, 0, .55); border-left-color: transparent; }
body.wl-dragging, .sym-btn { -webkit-user-select: none; user-select: none; }

/* ── phone: the chart owns the screen; one slim bar at the bottom ─────────────────────────────────────────── */
#m-bar { display: none; }
@media (max-width: 720px) {
  #app { padding-bottom: calc(54px + env(safe-area-inset-bottom, 0px)); }
  body.m-immersive #top { display: none !important; }
  #m-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; align-items: center; gap: 6px;
    height: calc(54px + env(safe-area-inset-bottom, 0px)); padding: 0 calc(8px + env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) calc(8px + env(safe-area-inset-left, 0px));
    background: #0a0c11; border-top: 1px solid var(--line);
  }
  #m-bar .mb { flex: none; width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
  #m-bar .mb .ico { width: 21px; height: 21px; }
  #m-bar .mb.on, #m-bar .mb:active { color: var(--accent); background: rgba(52, 211, 153, .14); }
  /* the two wheels: one value in a fitted frame, swipe up / down to change it */
  #sym-wheel, #tfs {
    height: 40px; overflow-y: auto; overflow-x: hidden; scroll-snap-type: y mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    background: var(--bg-3); border-radius: 12px; overscroll-behavior: contain; touch-action: pan-y;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%);
  }
  #sym-wheel::-webkit-scrollbar, #tfs::-webkit-scrollbar { display: none; }
  #sym-wheel { flex: 1 1 0; min-width: 0; }
  #sym-wheel::before, #sym-wheel::after { content: none; }
  #sym-wheel button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 40px; padding: 0 12px; border: 0; background: none; color: var(--text); scroll-snap-align: center; scroll-snap-stop: always; }
  #sym-wheel button b { font-size: 14px; font-weight: 760; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #sym-wheel button span { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
  #sym-wheel button i { font-style: normal; font-size: 11.5px; font-variant-numeric: tabular-nums; }
  #sym-wheel button i.up { color: #34d399; } #sym-wheel button i.down { color: #fb7185; }
  #tf-slot { flex: none; width: 66px; }
  #tf-slot #tfs { position: static; display: block !important; width: 100%; padding: 0; gap: 0; border-top: 0; }
  #tf-slot #tfs::before, #tf-slot #tfs::after { content: none; }
  #tf-slot #tfs button { display: block; width: 100%; height: 40px; min-width: 0; padding: 0; border-radius: 0; font-size: 15px; scroll-snap-align: center; scroll-snap-stop: always; touch-action: pan-y; background: none; }
  #tf-slot #tfs button.on { color: var(--accent); }
  body.m-draw #rail { bottom: calc(54px + env(safe-area-inset-bottom, 0px)); }
  #toast { bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  /* the crosshair data pill: floats just above the control bar while a finger drives the crosshair */
  #m-xpill {
    position: absolute; left: 8px; right: 8px; bottom: calc(60px + env(safe-area-inset-bottom, 0px)); z-index: 30;
    display: flex; align-items: center; gap: 12px; padding: 8px 12px; overflow-x: auto; scrollbar-width: none;
    background: rgba(13, 16, 23, .94); border: 1px solid var(--line-2); border-radius: 12px;
    font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  }
  #m-xpill::-webkit-scrollbar { display: none; }
  #m-xpill .xp-t { color: var(--faint); font-weight: 640; }
  #m-xpill .xp-v b { color: var(--text); font-weight: 680; }
  #m-xpill .xp-c { margin-left: auto; font-weight: 760; }
}
@media (max-width: 950px) and (max-height: 480px) and (orientation: landscape) {
  #app { padding-bottom: calc(46px + env(safe-area-inset-bottom, 0px)); }
  #m-bar { height: calc(46px + env(safe-area-inset-bottom, 0px)); }
  #sym-wheel, #tfs, #m-bar .mb, #sym-wheel button, #tf-slot #tfs button { height: 34px; }
  body.m-draw #rail { bottom: calc(46px + env(safe-area-inset-bottom, 0px)); }
}

/* Canvas → Buttons → Navigation */
body[data-nav="hover"] #stage-tools, body[data-nav="hover"] #scale-tools { opacity: 0; transition: opacity .15s; }
body[data-nav="hover"] #chart-frame:hover #stage-tools, body[data-nav="hover"] #chart-frame:hover #scale-tools { opacity: 1; }
body[data-nav="never"] #stage-tools, body[data-nav="never"] #scale-tools { display: none; }

/* ── Market Maker desk: its own look (deep teal / amber), not the white-violet chart ── */
body.desk-mode[data-desk="mm"] { --accent: #2dd4bf; --bg: #05100f; }
body.desk-mode[data-desk="mm"] #chart-frame { background: #04100f; }
#mm-panel { display: none; }
body.desk-mode #mm-panel {
  display: block; position: absolute; top: 10px; right: 76px; width: 292px; max-height: calc(100% - 60px); overflow: auto; z-index: 6;
  background: rgba(5, 22, 20, .92); border: 1px solid rgba(45, 212, 191, .22); border-radius: 14px; padding: 12px; font-size: 12px; color: #cfe9e5;
}
.mm-h { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #5eead4; font-weight: 720; margin-bottom: 8px; }
.mm-verdict { display: flex; align-items: baseline; justify-content: space-between; padding: 8px 10px; border-radius: 10px; margin-bottom: 8px; background: rgba(255,255,255,.04); }
.mm-verdict b { font-size: 20px; letter-spacing: .02em; } .mm-verdict span { color: #8fb7b1; font-size: 11px; }
.mm-verdict.up b, .mm-card.up .mm-tag { color: #5eead4; } .mm-verdict.dn b, .mm-card.dn .mm-tag { color: #fb923c; } .mm-verdict.mid b, .mm-card.mid .mm-tag { color: #fcd34d; }
.mm-card { padding: 9px 10px; border-radius: 10px; margin-bottom: 7px; background: rgba(255,255,255,.035); }
.mm-row { display: flex; justify-content: space-between; align-items: center; } .mm-tag { font-weight: 760; font-size: 11.5px; }
.mm-bar { height: 4px; border-radius: 3px; background: rgba(255,255,255,.08); margin: 7px 0 5px; overflow: hidden; }
.mm-bar i { display: block; height: 100%; border-radius: 3px; background: currentColor; }
.mm-card.up .mm-bar i { background: #2dd4bf; } .mm-card.dn .mm-bar i { background: #fb923c; } .mm-card.mid .mm-bar i { background: #fcd34d; }
.mm-meta { display: flex; gap: 10px; color: #8fb7b1; font-size: 10.5px; margin-bottom: 4px; }
.mm-line { margin-top: 3px; line-height: 1.35; } .mm-line.dim { color: #7fa39e; font-size: 11px; }
.mm-note { margin-top: 8px; color: #6d8f8a; font-size: 10.5px; line-height: 1.4; }
@media (max-width: 720px) { body.desk-mode #mm-panel { display: none; } }

/* GPS desk: gold on deep navy, a ladder instead of a legend */
body.desk-mode[data-desk="gps"] { --accent: #fbbf24; }
#gps-panel { display: none; }
body.desk-mode #gps-panel { display: block; position: absolute; top: 10px; right: 76px; width: 300px; max-height: calc(100% - 60px); overflow: auto; z-index: 6; background: rgba(12, 14, 26, .93); border: 1px solid rgba(251, 191, 36, .25); border-radius: 14px; padding: 12px; font-size: 12px; color: #e7e2cf; }
#gps-panel .mm-h { color: #fbbf24; }
.gp-story { background: rgba(251,191,36,.07); border-radius: 10px; padding: 8px 10px; line-height: 1.45; margin-bottom: 8px; color: #f3ecd2; }
.gp-px { text-align: center; color: #fbbf24; font-weight: 760; padding: 3px 0; border-top: 1px dashed rgba(251,191,36,.45); border-bottom: 1px dashed rgba(251,191,36,.45); margin: 5px 0; }
.gp-rung { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 7px 8px; border-radius: 9px; cursor: pointer; }
.gp-rung:hover { background: rgba(255,255,255,.05); } .gp-rung b { color: #fbbf24; } .gp-rung span { font-variant-numeric: tabular-nums; } .gp-rung i { font-style: normal; color: #9aa3b8; font-variant-numeric: tabular-nums; }
.gp-rung.near { background: rgba(251,191,36,.12); animation: gpPulse 1.6s ease-in-out infinite; } .gp-rung.in { background: rgba(251,191,36,.22); }
@keyframes gpPulse { 50% { box-shadow: 0 0 0 2px rgba(251,191,36,.35) inset; } }
.gp-act { grid-column: 1 / -1; display: none; gap: 6px; margin-top: 6px; } .gp-rung:hover .gp-act, .gp-rung.in .gp-act { display: flex; }
.gp-act button { flex: 1; height: 26px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: #e7e2cf; border-radius: 7px; font-size: 11px; font-weight: 680; }
.gp-act button[data-a="long"]:hover { background: rgba(34,197,94,.25); } .gp-act button[data-a="short"]:hover { background: rgba(168,85,247,.3); }
@media (max-width: 720px) { body.desk-mode #gps-panel { display: none; } }

/* Piv X desk: violet / magenta, same ladder component as GPS */
body.desk-mode[data-desk="piv"] { --accent: #c084fc; }
#pivx-panel { display: none; }
body.desk-mode #pivx-panel { display: block; position: absolute; top: 10px; right: 76px; width: 310px; max-height: calc(100% - 60px); overflow: auto; z-index: 6; background: rgba(14, 9, 28, .94); border: 1px solid rgba(192, 132, 252, .3); border-radius: 14px; padding: 12px; font-size: 12px; color: #ece4f7; }
#pivx-panel .mm-h { color: #d8b4fe; } #pivx-panel .gp-rung b { color: #c084fc; } #pivx-panel .gp-px { color: #e879f9; border-color: rgba(232,121,249,.5); }
#pivx-panel .gp-story { background: rgba(192,132,252,.09); color: #efe6fa; } #pivx-panel .gp-rung span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) { body.desk-mode #pivx-panel { display: none; } }

body.desk-mode[data-desk="btd"] { --accent: #34d399; }
#btd-panel { display: none; }
body.desk-mode #btd-panel { display: block; position: absolute; top: 10px; right: 76px; width: 310px; max-height: calc(100% - 60px); overflow: auto; z-index: 6; background: rgba(6, 18, 16, .94); border: 1px solid rgba(52, 211, 153, .28); border-radius: 14px; padding: 12px; font-size: 12px; color: #dff5ec; }
#btd-panel .mm-h { color: #6ee7b7; } #btd-panel .gp-rung b { color: #34d399; } #btd-panel .gp-px { color: #34d399; border-color: rgba(52,211,153,.5); } #btd-panel .gp-story { background: rgba(52,211,153,.08); color: #e6f8f0; }
#btd-panel .gp-rung span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) { body.desk-mode #btd-panel { display: none; } }

/* Moon desk: indigo / silver. 13 desk: warm gold. */
body.desk-mode[data-desk="moon"] { --accent: #a5b4fc; }
body.desk-mode[data-desk="thirteen"] { --accent: #e6c36a; }
#moon-panel, #t13-panel { display: none; }
body.desk-mode #moon-panel, body.desk-mode #t13-panel { display: block; position: absolute; top: 10px; right: 76px; width: 310px; max-height: calc(100% - 60px); overflow: auto; z-index: 6; border-radius: 14px; padding: 12px; font-size: 12px; }
body.desk-mode #moon-panel { background: rgba(14, 14, 36, .94); border: 1px solid rgba(165, 180, 252, .3); color: #e4e7ff; }
body.desk-mode #t13-panel { background: rgba(26, 20, 10, .94); border: 1px solid rgba(230, 195, 106, .3); color: #f6ecd2; }
#moon-panel .mm-h { color: #c7d2fe; } #moon-panel .gp-rung b { color: #a5b4fc; } #moon-panel .gp-px { color: #a5b4fc; border-color: rgba(165,180,252,.5); } #moon-panel .gp-story { background: rgba(165,180,252,.08); color: #eceeff; }
#t13-panel .mm-h { color: #f0d994; } #t13-panel .gp-rung b { color: #e6c36a; } #t13-panel .gp-px { color: #e6c36a; border-color: rgba(230,195,106,.5); } #t13-panel .gp-story { background: rgba(230,195,106,.08); color: #fbf3dc; }
#moon-panel .gp-rung span, #t13-panel .gp-rung span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) { body.desk-mode #moon-panel, body.desk-mode #t13-panel { display: none; } }
/* Wave desk: fuchsia, for the Elliott crowd. */
body.desk-mode[data-desk="wave"] { --accent: #e879f9; }
#wave-panel { display: none; }
body.desk-mode #wave-panel { display: block; position: absolute; top: 10px; right: 76px; width: 330px; max-height: calc(100% - 60px); overflow: auto; z-index: 6; border-radius: 14px; padding: 12px; font-size: 12px; background: rgba(28, 12, 32, .94); border: 1px solid rgba(232, 121, 249, .3); color: #fbe8ff; }
#wave-panel .mm-h { color: #f5d0fe; } #wave-panel .gp-rung b { color: #e879f9; min-width: 26px; } #wave-panel .gp-px { color: #e879f9; border-color: rgba(232,121,249,.5); } #wave-panel .gp-story { background: rgba(232,121,249,.08); color: #fdf2ff; }
#wave-panel .gp-rung span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#wave-panel .wv-top { margin: 6px 0 4px; } #wave-panel .wv-top button { width: 100%; }
@media (max-width: 720px) { body.desk-mode #wave-panel { display: none; } }
/* Bot desks: one chart per bot. */
body.desk-mode[data-desk="bot_sniperbot"] { --accent: #38bdf8; }
body.desk-mode[data-desk="bot_altbot"] { --accent: #fb923c; }
#bot-panel { display: none; --bc: #38bdf8; }
body.desk-mode #bot-panel { display: block; position: absolute; top: 10px; right: 76px; width: 320px; max-height: calc(100% - 60px); overflow: auto; z-index: 6; border-radius: 14px; padding: 12px; font-size: 12px; background: rgba(10, 16, 24, .95); border: 1px solid color-mix(in srgb, var(--bc) 35%, transparent); color: #e6eef8; }
#bot-panel .mm-h { color: var(--bc); } #bot-panel .gp-rung b { color: var(--bc); } #bot-panel .gp-rung b.up { color: #3ddc97; } #bot-panel .gp-rung b.dn { color: #ff5d73; } #bot-panel .gp-story { background: color-mix(in srgb, var(--bc) 9%, transparent); }
#bot-panel .bt-h { margin: 10px 0 4px; color: var(--muted); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
#bot-panel .wv-top { display: block !important; opacity: 1 !important; position: static !important; margin-top: 8px; } #bot-panel .wv-top button { width: 100%; }
@media (max-width: 720px) { body.desk-mode #bot-panel { display: none; } }
.bot-card { display: flex; flex-direction: column; gap: 3px; width: calc(100% - 24px); margin: 8px 12px 0; padding: 11px 12px; text-align: left; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; color: var(--text); cursor: pointer; --bc: #38bdf8; }
.bot-card:hover { border-color: color-mix(in srgb, var(--bc) 55%, transparent); background: var(--bg-3); } .bot-card.on { border-color: var(--bc); }
.bot-card .bc-h { display: flex; justify-content: space-between; align-items: baseline; } .bot-card b { font-size: 13px; color: var(--bc); } .bot-card i { font-style: normal; font-size: 11px; color: var(--muted); }
.bot-card .bc-s { font-size: 11.5px; color: var(--muted); } .bot-card .bc-go { font-size: 11.5px; font-weight: 600; color: var(--bc); margin-top: 3px; } .bot-card.back { color: var(--muted); font-size: 12px; align-items: center; }
/* minimised read panel: a small icon in the corner (double-click the panel to shrink it, click the icon to open it) */
body.desk-mode #mm-panel.shut, body.desk-mode #gps-panel.shut, body.desk-mode #pivx-panel.shut, body.desk-mode #btd-panel.shut, body.desk-mode #bot-panel.shut, body.desk-mode #wave-panel.shut, body.desk-mode #moon-panel.shut, body.desk-mode #t13-panel.shut {
  width: 38px; height: 38px; max-height: 38px; padding: 0; overflow: hidden; border-radius: 12px; cursor: pointer; opacity: .85;
}
body.desk-mode #mm-panel.shut > *, body.desk-mode #gps-panel.shut > *, body.desk-mode #pivx-panel.shut > *, body.desk-mode #bot-panel.shut > *, body.desk-mode #wave-panel.shut > *, body.desk-mode #moon-panel.shut > *, body.desk-mode #t13-panel.shut > *, body.desk-mode #btd-panel.shut > * { display: none; }
body.desk-mode #mm-panel.shut::before, body.desk-mode #gps-panel.shut::before, body.desk-mode #pivx-panel.shut::before, body.desk-mode #bot-panel.shut::before, body.desk-mode #wave-panel.shut::before, body.desk-mode #moon-panel.shut::before, body.desk-mode #t13-panel.shut::before, body.desk-mode #btd-panel.shut::before {
  content: "◧"; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 18px; color: var(--accent);
}
body.desk-mode #mm-panel.shut:hover, body.desk-mode #gps-panel.shut:hover, body.desk-mode #pivx-panel.shut:hover, body.desk-mode #bot-panel.shut:hover, body.desk-mode #wave-panel.shut:hover, body.desk-mode #moon-panel.shut:hover, body.desk-mode #t13-panel.shut:hover, body.desk-mode #btd-panel.shut:hover { opacity: 1; }

.dragging { cursor: grabbing !important; user-select: none; box-shadow: 0 14px 40px rgba(0,0,0,.55) !important; }
#mm-panel, #gps-panel, #pivx-panel, #btd-panel, #moon-panel, #t13-panel, #wave-panel, #bot-panel, #draw-bar { cursor: grab; }
#mm-panel button, #gps-panel button, #pivx-panel button, #draw-bar button, #draw-bar input, #draw-bar select, .gp-rung { cursor: pointer; }

.lv-st { font-size: 10px; letter-spacing: .06em; padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.08); color: var(--muted, #9aa); }
#wave-panel .wv-top { display: block !important; opacity: 1 !important; position: static !important; }

/* ── creator preview (?desk=creator): the chart as a free sneak peek inside a creator's page — no desk chrome ── */
body.desk-mode[data-desk="creator"] .brand,
body.desk-mode[data-desk="creator"] #multi-btn,
body.desk-mode[data-desk="creator"] #tpl-dd,
body.desk-mode[data-desk="creator"] #wl-add-btn,
body.desk-mode[data-desk="creator"] #outpost-btn,
body.desk-mode[data-desk="creator"] #lounge-btn,
body.desk-mode[data-desk="creator"] #replay-btn,
body.desk-mode[data-desk="creator"] #alert-btn,
body.desk-mode[data-desk="creator"] #venue,
body.desk-mode[data-desk="creator"] #session,
body.desk-mode[data-desk="creator"] #panel-btn,
body.desk-mode[data-desk="creator"] #m-back,
body.desk-mode[data-desk="creator"] #desk,
body.desk-mode[data-desk="creator"] #desk-pull,
body.desk-mode[data-desk="creator"] #desk-scrim,
body.desk-mode[data-desk="creator"] #help-btn { display: none !important; }

body.desk-mode[data-desk="creator"] { --accent: #ff9a3d; --bg: #070b12; }

/* footer links along the bottom, spread across the full width (standalone chart only; see foot.js) */
#sc-foot { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 22px; height: 28px; background: #0a0c11; border-top: 1px solid var(--line); color: var(--faint); font-size: 11.5px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
#sc-foot::-webkit-scrollbar { display: none; }
#sc-foot a, #sc-foot button { text-decoration: none; color: var(--muted); background: none; border: 0; font: inherit; cursor: pointer; padding: 0; } #sc-foot a:hover, #sc-foot button:hover { color: var(--text); }
#sc-foot .ft-credit a { color: #c4b5fd; } #sc-foot .ft-powered b { color: var(--muted); } #sc-foot #ft-tip { color: #fbbf24; }
@media (max-width: 720px) { #sc-foot { display: none; } }

/* ── lite creator chart (?desk=creator&lite=1): a quiet 5-minute preview, nothing to draw or configure ── */
body.lite #rail, body.lite #tf-more, body.lite #ind-btn, body.lite #type-dd, body.lite #undo-btn, body.lite #set-btn,
body.lite #snap-btn, body.lite #search-form, body.lite #m-draw, body.lite #m-menu, body.lite #draw-bar, body.lite #scale-tools,
body.lite #tf-slot, body.lite #m-bar .mb, body.lite #sym-wheel, body.lite #pane-legends .lg-acts, body.lite #legend .lg-acts,
body.lite #legend .lg-fold { display: none !important; }
body.lite #tfs button:not([data-tf="5m"]) { display: none !important; }
body.lite #tfs button { pointer-events: none; }
body.lite #chart canvas { cursor: default !important; }
body.lite #app { padding-bottom: 0 !important; }
@media (max-width: 720px) { body.lite #m-bar { display: none !important; } body.lite #app { height: 100% !important; padding-bottom: 0 !important; } }
body.lite #m-xpill { display: none !important; }
