/* ICT Terminal - graphite desk, one brass accent (time). IBM Plex Sans, tabular figures for every price. */
@font-face { font-family: "Plex"; src: url(/vendor/fonts/plex-sans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url(/vendor/fonts/plex-sans-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url(/vendor/fonts/plex-sans-600.woff2) format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/vendor/fonts/plex-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #0D1015; --panel: #141821; --raise: #1A1F2A; --line: #232A36; --line2: #2E3644;
  --text: #CDD3DD; --muted: #7E8796; --dim: #5D6573; --white: #F2F4F7;
  --brass: #D6A24A; --brass2: #E8BC6A; --brassBg: rgba(214,162,74,.12);
  --up: #26B39A; --upText: #3CCBB0; --down: #E5534B; --downText: #F07167; --warn: #E8A33D;
  --kz: #8FB98B; --sb: #6FA8DC; --macro: #D6A24A; --lunch: #6B7280;
  --sans: "Plex", "Segoe UI", system-ui, sans-serif;
  --mono: "Plex Mono", Consolas, monospace;
  --r: 6px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 13px/1.4 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--brass2); } a:hover { color: var(--white); }
button, input, select { font: inherit; color: inherit; }
button:focus-visible, select:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.num, .mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 11px; }
.grow { flex: 1 1 auto; }
.up { color: var(--upText); } .dn { color: var(--downText); }

.app { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }

/* ---------------------------------------------------------------- top bar: one row */
.topbar { display: flex; align-items: center; gap: 4px; height: 46px; padding: 0 8px 0 10px; border-bottom: 1px solid var(--line); background: var(--bg); }
.brand { display: flex; align-items: center; gap: 7px; color: var(--brass); margin-right: 8px; }
.brand b { color: var(--white); font-weight: 600; font-size: 14px; letter-spacing: .04em; }
.brand span { color: var(--muted); font-weight: 400; }
.symbox { display: flex; align-items: center; gap: 8px; }
.symbol { height: 32px; padding: 0 26px 0 10px; background: var(--panel); color: var(--white); border: 1px solid var(--line); border-radius: var(--r); font-weight: 600; font-size: 13px;
  appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 13px) 14px, calc(100% - 9px) 14px; background-size: 4px 4px; background-repeat: no-repeat; }
.symbol:hover { border-color: var(--line2); }
.symbol option { background: var(--panel); }
.symdesc { max-width: 300px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
@media (max-width: 1700px) { .symdesc { display: none; } }
.quote { display: flex; align-items: center; gap: 8px; padding: 0 12px 0 10px; margin-right: 4px; border-right: 1px solid var(--line); height: 28px; }
.qlast { color: var(--white); font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.qchg { font-size: 12px; }
.tfs { display: flex; gap: 0; padding: 2px; border-radius: var(--r); }
.tf { height: 30px; min-width: 36px; padding: 0 8px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12.5px; font-weight: 500; }
.tf:hover:not(:disabled) { color: var(--white); background: var(--raise); }
.tf.on { color: var(--brass2); background: var(--brassBg); }
.tf:disabled { color: var(--dim); cursor: not-allowed; }
.btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; background: transparent; border: 1px solid transparent; border-radius: var(--r); color: var(--text); cursor: pointer; font-size: 12.5px; }
.btn:hover:not(:disabled) { background: var(--raise); color: var(--white); }
.btn:disabled { color: var(--dim); cursor: not-allowed; }
.btn.icon { width: 32px; padding: 0; justify-content: center; }
.btn[aria-expanded=true] { background: var(--raise); }
.btn.tz { font-size: 11.5px; font-weight: 600; color: var(--muted); border-color: var(--line); }
.jarvisbtn { color: var(--brass2); }
.jarvisbtn[aria-pressed=true] { background: var(--brassBg); border-color: rgba(214,162,74,.35); }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; background: var(--brass); border: 0; border-radius: var(--r); color: #17130A; font-weight: 600; cursor: pointer; }
.btn-primary:hover { background: var(--brass2); }
.clock { color: var(--muted); font-size: 12px; margin-right: 6px; white-space: nowrap; }
.clock b { color: var(--text); font-weight: 500; }
.feed { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border-radius: var(--r); font-size: 12px; color: var(--muted); white-space: nowrap; }
.feed .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.feed.live { color: var(--text); }
.feed.live .dot { background: var(--up); box-shadow: 0 0 0 3px rgba(38,179,154,.18); }
.feed.closed .dot { background: var(--muted); }
.feed.stale { color: #F3C47A; background: rgba(232,163,61,.10); }
.feed.stale .dot { background: var(--warn); }
.logout { margin: 0; }
@media (prefers-reduced-motion: no-preference) { .feed.live .dot { animation: beat 2.4s ease-in-out infinite; } }
@keyframes beat { 50% { box-shadow: 0 0 0 5px rgba(38,179,154,0); } }

/* ---------------------------------------------------------------- session ribbon (the CME day, 18:00 -> 17:00 New York) */
.ribbonbar { display: flex; align-items: stretch; height: 34px; border-bottom: 1px solid var(--line); background: var(--bg); }
.chip { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; min-width: 210px; padding: 0 12px; font-size: 11.5px; color: var(--muted); white-space: nowrap; border-right: 1px solid var(--line); }
.chip b { font-weight: 600; color: var(--text); }
.chip.on b { color: var(--white); }
.chip i { width: 8px; height: 8px; border-radius: 2px; background: var(--dim); }
.chip.kz i { background: var(--kz); } .chip.sb i { background: var(--sb); } .chip.macro i { background: var(--macro); } .chip.lunch i { background: var(--lunch); }
.ribbon { position: relative; flex: 1 1 auto; margin: 0 14px; overflow: hidden; }
.ribbon .seg { position: absolute; top: 5px; height: 14px; border-radius: 2px; }
.ribbon .seg.asia { background: rgba(126,135,150,.16); }
.ribbon .seg.kz { background: rgba(143,185,139,.30); }
.ribbon .seg.sb { top: 15px; height: 4px; background: rgba(111,168,220,.55); }
.ribbon .seg.lunch { background: repeating-linear-gradient(135deg, rgba(107,114,128,.30) 0 3px, transparent 3px 6px); }
.ribbon .seg.macro { top: 3px; height: 18px; width: 2px; background: var(--macro); opacity: .55; border-radius: 1px; }
.ribbon .seg.past { opacity: .45; }
.ribbon .seg.macro.past { opacity: .25; }
.ribbon .lab { position: absolute; top: 5px; font-size: 10px; line-height: 14px; color: var(--text); white-space: nowrap; padding-left: 4px; pointer-events: none; }
.ribbon .tick { position: absolute; bottom: 0; line-height: 13px; font-size: 9.5px; color: var(--dim); transform: translateX(-50%); }
.ribbon .now { position: absolute; top: 1px; bottom: 1px; width: 2px; margin-left: -1px; background: var(--brass2); border-radius: 1px; box-shadow: 0 0 0 2px rgba(232,188,106,.18); }

/* ---------------------------------------------------------------- body */
.body { display: flex; flex-wrap: wrap; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.tools { flex: 0 0 44px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-right: 1px solid var(--line); }
.tool { width: 34px; height: 34px; border: 0; border-radius: var(--r); background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.tool:hover:not(:disabled) { background: var(--raise); color: var(--white); }
.tool.on { background: var(--brassBg); color: var(--brass2); }
.tool:disabled { color: #3A414E; cursor: not-allowed; }

.chartcol { flex: 999 1 560px; min-width: 0; min-height: 0; height: 100%; display: flex; flex-direction: column; }
.chartwrap { position: relative; flex: 1 1 auto; min-height: 160px; border-bottom: 1px solid var(--line); }
.chart { position: absolute; inset: 0; }
.legend { position: absolute; left: 10px; top: 8px; z-index: 3; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 2px; font-size: 12px;
  pointer-events: none; max-width: calc(100% - 100px); font-variant-numeric: tabular-nums; padding: 3px 8px; margin: -3px 0 0 -8px;
  background: rgba(13,16,21,.82); border-radius: var(--r); }
.legend:empty { display: none; }
.legend .name { color: var(--white); font-weight: 600; font-size: 13px; }
.legend .src { color: var(--dim); }
.legend .k { color: var(--muted); margin-right: 3px; }
.legend .v { color: var(--text); }
.legend .cd { color: var(--brass2); }
.stale, .loading { position: absolute; right: 80px; top: 8px; z-index: 3; padding: 6px 10px; border-radius: var(--r); font-size: 12px; }
.stale { background: rgba(232,163,61,.12); border: 1px solid rgba(232,163,61,.5); color: #F3C47A; }
.loading { background: var(--panel); border: 1px solid var(--line2); color: var(--muted); right: auto; left: 50%; }

.bottom { flex: 0 0 180px; min-height: 110px; display: flex; flex-direction: column; overflow: auto; background: var(--bg); }
.bottom .tabs { position: sticky; top: 0; background: var(--bg); z-index: 1; }
.tabs { display: flex; gap: 2px; padding: 0 8px; border-bottom: 1px solid var(--line); }
.tab { height: 34px; padding: 0 12px; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--muted); cursor: pointer; font-size: 12.5px; }
.tab:hover { color: var(--white); }
.tab.on { color: var(--white); font-weight: 500; border-bottom-color: var(--brass); }
.tabpanel { padding: 4px 8px 12px; }
.tablewrap { overflow-x: auto; }
table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
th { text-align: left; color: var(--muted); font-weight: 500; padding: 7px 8px; border-bottom: 1px solid var(--line); }
td { padding: 7px 8px; border-top: 1px solid rgba(35,42,54,.6); }
tbody tr:hover td { background: rgba(255,255,255,.02); }
td.t { color: var(--muted); }
.ok { color: var(--upText); } .warn { color: var(--warn); }
.sys { white-space: pre-wrap; font: 12px/1.6 var(--mono); padding: 8px; color: var(--text); }

.side { flex: 0 0 340px; height: 100%; display: flex; flex-direction: column; border-left: 1px solid var(--line); min-width: 0; overflow-y: auto; background: var(--bg);
  contain: paint; }   /* with the DOM the column is taller than the window: keep its overflow from growing the page */

/* movable layout: dividers, floating panels, side panel left/right */
.splitter { background: transparent; transition: background .15s; touch-action: none; }
.splitter:hover, .splitter:focus-visible, .splitter.dragging { background: var(--brass); outline: none; }
.splitter.v { flex: 0 0 5px; cursor: col-resize; margin: 0 -2px; z-index: 5; }
.splitter.h { flex: 0 0 5px; cursor: row-resize; margin: -2px 0; z-index: 5; }
.body.side-left .tools { order: 0; }
.body.side-left .side { order: 1; border-left: 0; border-right: 1px solid var(--line); }
.body.side-left #splitSide { order: 2; }
.body.side-left .chartcol { order: 3; }
.phead { display: flex; align-items: center; gap: 8px; }
.pbtns { margin-left: auto; display: flex; gap: 2px; }
.pbtn { width: 28px; height: 28px; border: 0; border-radius: var(--r); background: transparent; color: var(--dim); cursor: pointer; font-size: 14px; }
.pbtn:hover { background: var(--raise); color: var(--white); }
.tabs.phead { padding-right: 4px; }
.tablist { display: flex; gap: 2px; }
.floatlayer { position: fixed; inset: 0; pointer-events: none; z-index: 30; }
.panel[hidden], .splitter[hidden] { display: none !important; }
.panel.floating { position: fixed; pointer-events: auto; display: flex; flex-direction: column; min-width: 260px; min-height: 150px;
  max-width: 96vw; max-height: 90vh; background: var(--panel); border: 1px solid var(--line2); border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,.55); resize: both; overflow: auto; margin: 0; }
.panel.floating .phead { cursor: move; user-select: none; background: var(--raise); border-bottom: 1px solid var(--line); padding-left: 10px; }
.panel.floating.active { z-index: 2; border-color: rgba(214,162,74,.6); }
.dlghead { cursor: move; user-select: none; }
.dlg.moved { margin: 0; }
.side[hidden] { display: none; }

.sidehead { padding: 8px 6px 6px 12px; font-size: 12px; color: var(--white); font-weight: 600; border-bottom: 1px solid var(--line); }
.whead { display: grid; grid-template-columns: 78px 56px 56px; gap: 6px; margin-left: auto; color: var(--dim); font-weight: 400; font-size: 11px; text-align: right; }
.whead + .pbtns { margin-left: 4px; }
.phead > .pbtns { flex-shrink: 0; }                       /* pop-out / dock buttons are never pushed out of a panel */
.phead > .whead { flex-shrink: 1; min-width: 0; overflow: hidden; }
.panel.floating .phead { position: sticky; top: 0; z-index: 1; }
.watch { display: flex; flex-direction: column; padding: 2px 0 6px; }
.wrow { display: grid; grid-template-columns: 1fr 78px 56px 56px; gap: 6px; align-items: center; width: 100%; min-height: 40px; padding: 4px 34px 4px 12px;
  border: 0; border-left: 2px solid transparent; background: transparent; color: var(--text); text-align: left; cursor: pointer; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.wrow:hover { background: var(--raise); }
.wrow.on { background: var(--panel); border-left-color: var(--brass); }
.wrow .n { color: var(--white); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.wrow .n small { display: block; color: var(--dim); font-size: 10.5px; font-weight: 400; }
.wrow .p, .wrow .a, .wrow .c { text-align: right; }
.wrow .p { color: var(--white); border-radius: 3px; padding: 1px 3px; margin: -1px -3px; transition: background .6s; }
.wrow .p.fu { background: rgba(38,179,154,.28); transition: none; }
.wrow .p.fd { background: rgba(229,83,75,.28); transition: none; }

.jarvis { flex: 1 1 auto; display: flex; flex-direction: column; border-top: 1px solid var(--line); min-height: 260px; }
.jarvishead { display: flex; align-items: center; gap: 8px; padding: 9px 6px 9px 12px; border-bottom: 1px solid var(--line); }
.jarvishead b { color: var(--white); font-weight: 600; font-size: 12px; }
.jarvishead .jstar { color: var(--brass); }
.jarvisbody { flex: 1 1 auto; padding: 12px; line-height: 1.55; }
.jarvisask { padding: 10px 12px; border-top: 1px solid var(--line); }
.jarvisask input { width: 100%; height: 38px; padding: 0 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); color: var(--text); }

/* ---------------------------------------------------------------- dialogs and menus */
.dlg { width: min(440px, calc(100vw - 32px)); padding: 0; background: var(--panel); color: var(--text); border: 1px solid var(--line2); border-radius: 10px; box-shadow: 0 20px 50px rgba(0,0,0,.6); }
.dlg::backdrop { background: rgba(5,7,10,.6); }
.dlgform { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 16px; }
.dlghead { display: flex; align-items: center; justify-content: space-between; }
.dlghead h2 { margin: 0; font-size: 14px; font-weight: 600; color: var(--white); }
.dlg fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px 12px; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; }
.dlg legend { color: var(--brass2); font-size: 11.5px; font-weight: 500; padding: 0 4px; }
.dlg select { height: 32px; padding: 0 8px; background: var(--bg); color: var(--text); border: 1px solid var(--line2); border-radius: var(--r); }
.dlg input[type=color] { width: 44px; height: 30px; padding: 0; border: 1px solid var(--line2); border-radius: var(--r); background: var(--bg); }
.dlg input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--brass); }
.dlg fieldset select, .dlg fieldset input { justify-self: end; }
.dlg .btn { border-color: var(--line2); }
.dlgfoot { display: flex; justify-content: space-between; gap: 8px; }
.menuwrap { position: relative; }
.menu { position: absolute; top: 38px; left: 0; z-index: 20; width: 330px; padding: 6px 12px 10px; background: var(--panel); border: 1px solid var(--line2); border-radius: 8px; box-shadow: 0 14px 34px rgba(0,0,0,.5); display: flex; flex-direction: column; gap: 0; }
.menu[hidden] { display: none; }
.menu .mhead { margin: 8px 0 2px; color: var(--brass2); font-size: 11.5px; font-weight: 500; }
.menu label { display: flex; align-items: center; gap: 8px; min-height: 30px; cursor: pointer; font-size: 12.5px; }
.menu label:hover { color: var(--white); }
.menu input { width: 15px; height: 15px; accent-color: var(--brass); }
.menu p { margin: 0; }
.menu .small { margin-top: 6px; }
.sw { width: 10px; height: 10px; border-radius: 2px; flex: 0 0 auto; }
.sw.kz { background: var(--kz); } .sw.sb { background: var(--sb); } .sw.macro { background: var(--macro); } .sw.lunch { background: var(--lunch); }
.menusep { border: 0; border-top: 1px solid var(--line); margin: 2px 0; width: 100%; }
.study { font-size: 12px; display: flex; flex-direction: column; gap: 10px; }
.study h3 { margin: 4px 0 0; font-size: 13px; color: var(--white); font-weight: 600; }
.study p { margin: 0; color: var(--text); max-width: 110ch; }
.study .verdict { padding: 8px 10px; border-left: 2px solid var(--brass); background: var(--panel); border-radius: 0 var(--r) var(--r) 0; }
.study table { min-width: 560px; }

.statusbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; min-height: 24px; padding: 2px 12px; border-top: 1px solid var(--line); font-size: 11px; color: var(--dim); }
.statusbar a { color: var(--muted); }

/* ---------------------------------------------------------------- sign in */
.login-body { display: grid; place-items: center; padding: 16px;
  background: radial-gradient(1200px 500px at 50% -10%, rgba(214,162,74,.07), transparent 60%), var(--bg); }
.login-card { width: 100%; max-width: 360px; background: var(--panel); border: 1px solid var(--line2); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.login-card .brand b { font-size: 16px; }
.login-card form { display: flex; flex-direction: column; gap: 8px; }
.login-card label { color: var(--muted); font-size: 12px; margin-top: 6px; }
.login-card input { height: 42px; padding: 0 12px; background: var(--bg); border: 1px solid var(--line2); border-radius: var(--r); color: var(--white); }
.login-card .btn-primary { justify-content: center; margin-top: 10px; height: 42px; }
.login-err { min-height: 18px; margin: 4px 0 0; color: var(--downText); font-size: 12px; }
.login-note { margin: 0; color: var(--dim); font-size: 11px; }

/* ---------------------------------------------------------------- order flow panes under the price chart */
.flowpanes { flex: 0 0 auto; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.flowpanes[hidden], .fpane[hidden], .flownote[hidden] { display: none; }
.fpane { position: relative; height: 96px; border-top: 1px solid var(--line); }
.fpane.axis { height: 122px; }                       /* the lowest pane also carries the time axis */
.fchart { position: absolute; inset: 0; }
.flegend { top: 5px; font-size: 11.5px; }
.flegend .name { font-size: 12px; }
.flownote { margin: 0; padding: 6px 12px; font-size: 11.5px; color: var(--muted); border-bottom: 1px solid var(--line); }
.sw.up { background: var(--up); } .sw.cvd { background: #CDD3DD; }

.ofmenu { width: 360px; max-height: calc(100vh - 64px); overflow-y: auto; }
.menu .mhead.first { margin-top: 2px; }
.sw.vwap { background: #C792EA; } .sw.rvwap { background: #F48FB1; }
.menu .mbtn { margin-top: 8px; justify-content: center; border-color: var(--line2); }
.tab[hidden] { display: none; }

/* ---------------------------------------------------------------- footprint controls */
#fpBtn.on { color: var(--brass2); background: var(--brassBg); }
.menu .fpmain { font-weight: 500; color: var(--white); }
.segbtns { display: flex; gap: 0; border: 1px solid var(--line2); border-radius: var(--r); overflow: hidden; margin: 4px 0 2px; }
.segbtns button { flex: 1 1 0; height: 30px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; }
.segbtns button + button { border-left: 1px solid var(--line2); }
.segbtns button[aria-pressed=true] { background: var(--brassBg); color: var(--brass2); }
.segbtns button:hover { color: var(--white); }
.msel { margin-left: auto; height: 28px; padding: 0 6px; background: var(--bg); color: var(--text); border: 1px solid var(--line2); border-radius: var(--r); font-size: 12px; }
.fpcell { top: 30px; font-size: 11.5px; }
.fpcell[hidden] { display: none; }

/* ---------------------------------------------------------------- big trades */
.bigtip { position: absolute; z-index: 6; min-width: 170px; padding: 6px 9px; background: rgba(20,24,33,.96); border: 1px solid var(--line2); border-radius: var(--r);
  font-size: 11.5px; line-height: 1.5; pointer-events: none; box-shadow: 0 8px 20px rgba(0,0,0,.45); font-variant-numeric: tabular-nums; }
.bigtip[hidden] { display: none; }
.bigtip .big1 { font-weight: 600; font-size: 12.5px; }
.bigtip .k { color: var(--muted); }
table.tape { min-width: 560px; }
table.tape td.sz { font-weight: 600; color: var(--white); }
table.tape tr.fresh td { animation: fresh 1.6s ease-out; }
@keyframes fresh { from { background: rgba(214,162,74,.22); } to { background: transparent; } }
.tapehead { margin: 4px 0 6px; }

/* ---------------------------------------------------------------- DOM ladder */
.dompanel { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.domhead, .domrow { display: grid; grid-template-columns: 1fr 1.25fr 1.35fr 1.25fr 1fr 1.1fr; align-items: center; font-variant-numeric: tabular-nums; }
.domhead { padding: 4px 8px; font-size: 10.5px; color: var(--dim); border-bottom: 1px solid var(--line); text-align: center; }
.dombody { height: 420px; overflow-y: auto; padding: 0 8px 4px; font-size: 11.5px; scrollbar-width: thin; }
.panel.floating .dombody { flex: 1 1 auto; height: auto; }
.domrow { height: 17px; border-bottom: 1px solid rgba(35,42,54,.45); }
.domrow .dc { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.domrow .px { color: var(--muted); }
.domrow .bid, .domrow .ask { color: var(--text); }
.domrow .bid::before, .domrow .ask::before, .domrow .vol::before { content: ''; position: absolute; top: 2px; bottom: 2px; width: var(--w, 0%); z-index: -1; }
.domrow .dc { z-index: 0; }
.domrow .bid::before { right: 0; background: rgba(111,168,220,0.32); }
.domrow .ask::before { left: 0; background: rgba(229,83,75,0.30); }
.domrow .vol::before { left: 0; background: rgba(126,135,150,0.35); }
.domrow.poc .vol::before { background: rgba(232,188,106,0.65); }
.domrow .sold { color: var(--downText); justify-content: flex-end; }
.domrow .bought { color: var(--upText); justify-content: flex-start; }
.domrow.bb .bid, .domrow.ba .ask { font-weight: 600; color: var(--white); }
.domrow.bb { background: rgba(111,168,220,0.08); } .domrow.ba { background: rgba(229,83,75,0.08); }
.domrow.bigb .bid, .domrow.biga .ask { color: #F3C47A; font-weight: 600; }
.domrow.last .px { color: #17130A; background: var(--brass); border-radius: 3px; font-weight: 600; }
.domfoot { padding: 4px 10px 6px; border-top: 1px solid var(--line); }
#domCenter.on { color: var(--brass2); }
.domfoot.stale { color: #F3C47A; background: rgba(232,163,61,.10); }

/* ---------------------------------------------------------------- my horizontal lines: select, drag, delete */
.chart.online canvas { cursor: ns-resize !important; }
.linedel { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px;
  background: var(--panel); border: 1px solid rgba(232,188,106,.6); border-radius: var(--r); color: var(--brass2); font-size: 12px; cursor: pointer; }
.linedel[hidden] { display: none; }
.linedel:hover { background: rgba(229,83,75,.16); border-color: var(--down); color: #FFB4AE; }

/* ---------------------------------------------------------------- full chart: only the header, the ribbon and the chart */
#fullBtn .ico-out, .fullexit { display: none; }
body.fullchart #fullBtn .ico-in { display: none; }
body.fullchart #fullBtn .ico-out { display: block; }
body.fullchart #fullBtn { background: var(--brassBg); color: var(--brass2); }
body.fullchart .tools, body.fullchart .side, body.fullchart .splitter, body.fullchart #pBottom,
body.fullchart .statusbar, body.fullchart .floatlayer { display: none !important; }
body.fullchart .chartwrap { border-bottom: 0; }
body.fullchart .fullexit { display: block; position: absolute; right: 84px; bottom: 36px; z-index: 4; height: 30px; padding: 0 12px;
  background: rgba(20,24,33,.88); border: 1px solid var(--line2); border-radius: var(--r); color: var(--muted); font-size: 12px; cursor: pointer;
  opacity: 0; transition: opacity .2s; }
body.fullchart .chartwrap:hover .fullexit, body.fullchart .fullexit:focus-visible { opacity: 1; }
.fullexit:hover { color: var(--white); border-color: var(--brass); }

/* ---------------------------------------------------------------- narrower screens */
/* the header never pushes its buttons off screen: buttons keep their size, less important parts fold away as the width drops */
.topbar > * { flex-shrink: 0; }
.topbar > .grow { flex-shrink: 1; min-width: 0; }
.topbar > .symbox { flex-shrink: 1; min-width: 0; }
.symbol { max-width: 200px; min-width: 150px; text-overflow: ellipsis; }
@media (max-width: 1500px) { .clock { display: none; } }
@media (max-width: 1180px) { #feedText { display: none; } .feed { padding: 0 6px; } }
@media (max-width: 1100px) { .quote .qchg { display: none; } .chip { min-width: 0; } }
@media (max-width: 1000px) { .btn .lbl, .brand b { display: none; } #ictBtn, #jarvisBtn { width: 32px; padding: 0; justify-content: center; } .quote { padding: 0 8px; } }
@media (max-width: 860px) { .quote { display: none; } .tf { min-width: 30px; padding: 0 5px; } }
@media (max-width: 720px) {
  .symdesc, .clock, .quote, .ribbonbar { display: none; }
  .topbar { flex-wrap: wrap; height: auto; padding: 6px 8px; row-gap: 6px; }
  .tf, .btn, .symbol { min-height: 40px; }
  .btn.icon { width: 40px; }
  .app { height: auto; overflow: visible; }
  .body, .chartcol, .side { overflow: visible; height: auto; }
  .chartwrap { flex: none; height: 55vh; }
  .bottom { flex: none !important; overflow: visible; }
  .tools { flex-direction: row; flex-basis: 100%; border-right: 0; border-bottom: 1px solid var(--line); padding: 4px 8px; }
  .tool { width: 40px; height: 40px; }
  .splitter, .pbtn { display: none; }
  .side { flex-basis: 100% !important; }
  .wrow { min-height: 44px; padding-right: 12px; }
  #feedText, .legend .src { display: none; }
  .feed { padding: 0 6px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* chart right-click menu (Reset chart view / Reload chart) */
.ctxmenu { position: fixed; z-index: 60; min-width: 220px; padding: 4px; background: var(--panel); border: 1px solid var(--line2); border-radius: 6px; box-shadow: 0 14px 34px rgba(0,0,0,.5); display: flex; flex-direction: column; }
.ctxmenu[hidden] { display: none; }
.ctxmenu button { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 30px; padding: 0 10px; background: none; border: 0; border-radius: 4px; color: var(--text); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.ctxmenu button:hover, .ctxmenu button:focus-visible { background: var(--raise); color: var(--white); }
.ctxmenu button span { color: var(--muted); font-size: 11.5px; }
