/* Lot Q1, density and finish (panes.js): the account's line in the top bar, the dividers of the book and of the bottom
   panel, the bottom panel folded to its tab row, the top bar's keys giving room to the account on a smaller screen.
   Tokens only; hover only where a pointer hovers; never italic. Loaded after the sheets it refines. */

/* ---- the account's line in the top bar: each figure under its word, as the market's statistics ---- */
.term[data-dock="1"] .tbar .gaugep { container-type: normal; flex: none; flex-direction: row; align-items: center; gap: 14px; height: 30px;
  margin-inline-start: auto; padding: 0 0 0 14px; overflow: visible; background: none; border-left: 1px solid var(--hair); }
.term[data-dock="1"] .tbar-end { margin-left: 0; }
.term[data-dock="1"] .tbar .gaugep > .pstate { min-width: 160px; padding: 0; gap: 4px; justify-items: start; }
.term[data-dock="1"] .tbar .gaugep > .pstate:not([data-state="loading"]) .pstate-skel { display: none; }   /* words only: no empty bar */
.term[data-dock="1"] .tbar .g-head { display: none; }
.term[data-dock="1"] .tbar .g-eq { order: 1; flex: none; display: grid; gap: 0; }
.term[data-dock="1"] .tbar .g-eqv { font-size: var(--fs-l); font-weight: 600; line-height: 17px; }
.term[data-dock="1"] .tbar .g-day { font-size: var(--fs-xs); line-height: 14px; }
.term[data-dock="1"] .tbar .g-scale { display: contents; }
.term[data-dock="1"] .tbar .g-scale span { position: static; order: 2; flex: none; display: grid; gap: 0; transform: none; text-align: left;
  font-size: var(--fs-xs); line-height: 14px; color: var(--dim); }
.term[data-dock="1"] .tbar .g-scale span b { font-size: var(--fs-s); line-height: 16px; }
.term[data-dock="1"] .tbar .g-scale .s-m { display: none; }
.term[data-dock="1"] .tbar .g-scale .s-r { order: 4; }
/* the track thin: the limit's end red, the target's green, the account on it */
.term[data-dock="1"] .tbar .g-track { order: 3; flex: none; width: clamp(56px, 5vw, 112px); height: 14px; }
.term[data-dock="1"] .tbar :is(.g-rail, .g-fill) { top: 7px; height: 2px; }
.term[data-dock="1"] .tbar :is(.g-limit, .g-goalline) { top: 2px; width: 2px; height: 10px; }
.term[data-dock="1"] .tbar .g-goalline { box-shadow: none; }
.term[data-dock="1"] .tbar .g-start { top: 4px; height: 6px; }
.term[data-dock="1"] .tbar .g-mark { top: 3px; width: 8px; height: 8px; margin-left: -4px; box-shadow: inset 0 0 0 2px var(--text), 0 0 0 2px var(--surface); }
.term[data-dock="1"] .tbar .g-track[data-tone="up"] .g-mark { box-shadow: inset 0 0 0 2px var(--up), 0 0 0 2px var(--surface); }
.term[data-dock="1"] .tbar .g-track[data-tone="down"] .g-mark { box-shadow: inset 0 0 0 2px var(--down), 0 0 0 2px var(--surface); }
.term[data-dock="1"] .tbar .g-rows { order: 5; flex: none; display: flex; gap: 14px; margin: 0; padding: 0 0 0 14px; border-top: 0; border-left: 1px solid var(--hair); }
.term[data-dock="1"] .tbar .g-rows div { display: grid; grid-template-columns: auto; gap: 0; align-content: center; }
.term[data-dock="1"] .tbar .g-rows dt { font-size: var(--fs-xs); line-height: 14px; color: var(--dim); white-space: nowrap; }
.term[data-dock="1"] .tbar .g-rows dd { font-size: var(--fs-s); line-height: 15px; white-space: nowrap; }
.term[data-dock="1"] .tbar .g-rows .g-bar { grid-column: auto; height: 2px; margin-top: 1px; }
.term[data-dock="1"] .tbar .show-chip { order: 0; }

/* the price over its change, as the figures beside it stand under their words */
.term[data-dock="1"] .quote { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 6px; row-gap: 0; }
.term[data-dock="1"] .quote-px { grid-row: 1; grid-column: 1; font-size: 17px; line-height: 19px; min-width: 0; }
.term[data-dock="1"] .quote .px-badge { grid-row: 1; grid-column: 2; }
.term[data-dock="1"] .quote-ch { grid-row: 2; grid-column: 1 / -1; font-size: var(--fs-xs); line-height: 13px; }

/* ---- a smaller screen: the top bar's keys give room to the account's figures (all of them stay) ---- */
@media (max-width: 1679px) { .term[data-dock="1"] .brand-name { display: none; } }
@media (max-width: 1599px) {
  .term[data-dock="1"] .pal-btn > :not(svg) { display: none; }
  .term[data-dock="1"] .pal-btn { width: 30px; padding: 0; }
  .term[data-dock="1"] :is(.menu-name, .mkt-fam) { display: none; }
}
@media (max-width: 1365px) { .term[data-dock="1"] .menu-acct { display: none; } }   /* the account's name stays in its menu */

/* ---- the book's tab row in its narrower column; the ticket's exposure on one line ---- */
.term[data-form="desk"] #bookTabs { padding: 0 6px; }
.term[data-form="desk"] #bookTabs .tab { padding: 0 8px; }
.term[data-form="desk"] #bookTabs .tab[aria-selected="true"]::after { left: 8px; right: 8px; }
.term[data-form="desk"] #bookTabs .key-sm { min-height: 24px; padding: 0 7px; font-size: var(--fs-xs); }
.tk-expo { grid-template-columns: auto minmax(24px, 1fr) auto; gap: 8px; }
.tk-expo-v { white-space: nowrap; color: var(--mute); }
/* figures in the number face, words in the letters' face: the leverage's word, the sentences built with ui.mixed */
.tk-lev-w { font-family: var(--font-ui); font-stretch: var(--stretch); letter-spacing: 0; }

/* ---- the book under the ticket (panes.js stack): one right column, the ticket at its own height on top, the book under
   it down to the foot (while the trader types it gives the ticket the room a fuller order takes); the chart takes the
   book's former width and the bottom panel runs under the chart. A window that leaves the book less than eight rows
   keeps the book's own column (plates.css) ---- */
.term[data-stack="1"] .tgrid { grid-template-columns: minmax(0, 1fr) var(--tk-w); grid-template-rows: minmax(0, 1fr) var(--bot);
  grid-template-areas: "chart side" "bottom side"; }
.term[data-stack="1"] .tgrid[data-ladder] { grid-template-columns: minmax(0, 1fr) max(var(--tk-w), 320px); }   /* the ladder's six columns */
.term[data-stack="1"] .side { grid-area: side; display: flex; flex-direction: column; gap: 1px; min-height: 0; min-width: 0; background: var(--hair); }
.term[data-stack="1"] .side > .ticketp { flex: 0 1 auto; }
.term[data-stack="1"] .side > .bookp { flex: 1 1 0; min-height: 0; }
.term[data-stack="1"] .split[data-split="book"] { display: none; }   /* no column of its own: its width (kept) is the separate column's */

/* ---- the dividers: on the book's left edge and on the bottom panel's top edge, a hairline that shows when held ---- */
.split { position: absolute; z-index: 6; touch-action: none; outline: none; }
.split[data-split="book"] { top: 0; bottom: 0; left: 0; width: 5px; cursor: col-resize; }
.split[data-split="bot"] { top: 0; left: 0; right: 0; height: 5px; cursor: row-resize; }
.split::after { content: ""; position: absolute; background: var(--tick); opacity: 0; transition: opacity var(--t-fast) var(--ease); }
.split[data-split="book"]::after { top: 0; bottom: 0; left: 0; width: 2px; }
.split[data-split="bot"]::after { top: 0; left: 0; right: 0; height: 2px; }
.split:focus-visible::after, .split:active::after { opacity: 1; }
.split:focus-visible::after { background: var(--focus); }
.term[data-resizing] { user-select: none; }
.term[data-resizing="book"] { cursor: col-resize; }
.term[data-resizing="bot"] { cursor: row-resize; }
.term[data-resizing] #chart { pointer-events: none; }
.term[data-form="phone"] .split, .term[data-focus="1"] .split, .botp[data-fold="1"] .split { display: none; }
@media (hover: hover) { .split:hover::after { opacity: 0.7; } }

/* ---- the bottom panel folded to its tab row: its words of an empty list beside the tabs, no key with nothing to do ---- */
.bot-note { display: none; }
.botp[data-fold="1"] > .ptabs-in { border-bottom: 0; }
.botp[data-fold="1"] > .bot-body, .botp[data-fold="1"] .tab-acts { display: none; }
.botp[data-fold="1"] .bot-note { display: block; flex: 0 1 auto; min-width: 0; padding: 0 6px 0 12px; color: var(--dim); font-size: var(--fs-s);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
