/* Lot G2c: the chart focus of a computer with no band on top and none below (founder 2026-11-21). The chart, or the
   charts (multi.css), run from the window's top to its foot; on their right (in Arabic too: the page keeps its
   left-to-right layout, lang.css, as in lot G2b) one column (fdock.js, panes.js): the chart's keys compacted, the account's figures, the ticket and,
   when it keeps its rows, the book. The ticket hidden (its key, T) or a visitor: a thin rail of icon keys instead, the
   chart wider, nothing over it. A phone, a phone on its side (under 500 px of height) and the framed terminal: focus.css,
   as before. Tokens only; hover only where a pointer hovers; no text under 11 px; one blue key: the ticket's own. */

.tgrid { --rail-w: 44px; }

/* ---- the grid: the chart and its right column ---- */
.term[data-form="desk"][data-focus="1"]:is([data-ftk="1"], [data-frail="1"]) .tgrid { grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: minmax(0, 1fr); grid-template-areas: "chart side"; }
.term[data-form="desk"][data-focus="1"][data-ftk="1"] .tgrid { grid-template-columns: minmax(0, 1fr) var(--tk-w); }
.term[data-form="desk"][data-focus="1"][data-ftk="1"][data-stack="1"] .tgrid[data-ladder] { grid-template-columns: minmax(0, 1fr) max(var(--tk-w), 320px); }
.term[data-form="desk"][data-focus="1"]:is([data-ftk="1"], [data-frail="1"]) .side { grid-area: side; display: flex; flex-direction: column;
  gap: 1px; min-width: 0; min-height: 0; overflow: hidden; background: var(--hair); }
.term[data-form="desk"][data-focus="1"][data-ftk="1"] .side > .ticketp { display: flex; flex: 1 1 auto; }
.term[data-form="desk"][data-focus="1"][data-ftk="1"][data-stack="1"] .side > .ticketp { flex: 0 1 auto; }
.term[data-form="desk"][data-focus="1"][data-ftk="1"][data-stack="1"] .side > .bookp { display: flex; flex: 1 1 0; min-height: 0; }
.term[data-form="desk"][data-focus="1"][data-frail="1"] :is(.gaugep, .side > .plate) { display: none; }
.term[data-focus="1"]:is([data-ftk="1"], [data-frail="1"]) .fstrip { display: none; }
/* the notes clear of the column and of the price scale */
.term[data-form="desk"][data-ftk="1"] > .toasts { right: calc(var(--tk-w, 272px) + 80px); bottom: 40px; }
.term[data-form="desk"][data-frail="1"] > .toasts { right: calc(var(--rail-w) + 80px); bottom: 40px; }
/* the market list where its key stands (fdock.js listAt): under it, or beside the rail */
.term[data-focus="1"]:is([data-ftk="1"], [data-frail="1"]) .marketsp { top: var(--ftk-top, 48px); right: auto; bottom: auto;
  left: var(--ftk-x, 12px); max-height: min(600px, calc(100% - var(--ftk-top, 48px) - 12px)); }

/* ---- the chart's keys at the head of the column: the market and the keys on one row, the timeframes on the next ---- */
.term[data-fkeys] .ctool { flex: none; flex-wrap: wrap; align-items: center; gap: 4px 3px; min-height: 0; padding: 5px 8px;
  border: 0; background: var(--surface); }
.term[data-fkeys] .ctool > * { margin-inline-start: 0; }
.term[data-fkeys] .ctool .ct-bar { display: none; }
.term[data-fkeys] .ctool #drawBtn { display: inline-flex; }
/* their words become their tips (title, aria-label): the icons and the counts stay */
.term[data-fkeys] .ctool :is(#indBtn, #drawBtn, #mcBtn) > span, .term[data-fkeys] .ctool .ct-ftk-w { display: none; }
.term[data-fkeys] .ctool :is(.ct-open, .ct-ftk, .ct-focus) { justify-content: center; gap: 3px; min-width: 30px; min-height: 28px; padding: 0 4px; }
.term[data-fkeys] .ctool .ct-focus[aria-pressed="true"] { color: var(--mute); }     /* the blue stays the ticket's key's */
.term[data-fkeys] .ctool .ctool-n { min-width: 14px; padding: 0 3px; font-size: 11px; line-height: 15px; }
.term[data-fkeys] .ctool #ftkSym { order: 1; flex: 1 1 0; justify-content: flex-start; gap: 4px; min-width: 0; min-height: 28px; padding: 0 4px; }
.term[data-fkeys] .ctool #ftkSym b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term[data-fkeys] .ctool #ftkSym > .i { display: none; }
.term[data-fkeys] .ctool #indBtn { order: 2; }
.term[data-fkeys] .ctool #drawBtn { order: 3; }
.term[data-fkeys] .ctool #mcBtn { order: 4; }
.term[data-fkeys] .ctool #ftkBtn { order: 5; }
.term[data-fkeys] .ctool #focusBtn { order: 6; }
/* the timeframes: one click away, the row shared out evenly, More last */
.term[data-fkeys] .ctool #tfs { order: 10; flex: 1 0 100%; display: flex; min-width: 0; }
.term[data-fkeys] .ctool #tfs > .seg-b { flex: 1 1 0; min-width: 0; min-height: 26px; padding: 0 2px; }
.term[data-fkeys] .ctool #tfs .tf-more-t { min-height: 26px; padding: 0 18px 0 6px; }

/* ---- the rail: the ticket hidden (or a visitor): the same keys, one under the other, the exit at its foot ---- */
.term[data-fkeys="rail"] .ctool { flex: 1 1 auto; flex-direction: column; flex-wrap: nowrap; align-items: stretch;
  width: var(--rail-w); gap: 4px; padding: 6px 4px; }
.term[data-fkeys="rail"] .ctool > :not([hidden]):not(.ct-bar) { width: 100%; }
.term[data-fkeys="rail"] .ctool #ftkBtn { order: 0; }
.term[data-fkeys="rail"] .ctool #ftkSym { order: 1; flex: none; flex-direction: column; justify-content: center; gap: 2px; padding: 4px 0; }
.term[data-fkeys="rail"] .ctool #ftkSym b { max-width: 100%; font-size: 11px; line-height: 13px; }
.term[data-fkeys="rail"] .ctool #tfs { order: 2; flex: none; flex-direction: column; gap: 1px; }
.term[data-fkeys="rail"] .ctool #tfs > .seg-b { flex: none; width: 100%; }
.term[data-fkeys="rail"] .ctool #tfs .tf-more-w { width: 100%; }
.term[data-fkeys="rail"] .ctool #tfs .tf-more-t { justify-content: center; width: 100%; padding: 0 2px; font-size: 11px; }
.term[data-fkeys="rail"] .ctool #tfs .tf-more-w .i { display: none; }
.term[data-fkeys="rail"] .ctool #indBtn { order: 3; }
.term[data-fkeys="rail"] .ctool #drawBtn { order: 4; }
.term[data-fkeys="rail"] .ctool #mcBtn { order: 5; }
.term[data-fkeys="rail"] .ctool #focusBtn { order: 6; margin-block-start: auto; }
.term[data-fkeys="rail"] .ctool :is(#indBtn, #mcBtn) { flex-direction: column; gap: 1px; padding: 3px 0; }

/* ---- the account's figures, compacted under the keys: the balance and today's result, the limit, the track and the
   target, what is left today and in total, the exposure (the same figures as the line they replace, none merged) ---- */
.term[data-form="desk"][data-focus="1"][data-ftk="1"] .side > .gaugep { container-type: normal; flex: none; display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "eq eq eq" "lo track hi" "rows rows rows"; align-items: center;
  gap: 4px 8px; padding: 6px 10px 7px; }
.term[data-form="desk"][data-focus="1"][data-ftk="1"] .gaugep > .pstate { grid-column: 1 / -1; }
.term[data-form="desk"][data-focus="1"][data-ftk="1"] .gaugep .show-chip { grid-column: 1 / -1; justify-self: start; }
.term[data-form="desk"][data-focus="1"][data-ftk="1"] .gaugep .g-eq { grid-area: eq; display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px; min-width: 0; }
.term[data-form="desk"][data-focus="1"][data-ftk="1"] .gaugep .g-eqv { font-size: 16px; line-height: 20px; white-space: nowrap; }
.term[data-form="desk"][data-focus="1"][data-ftk="1"] .gaugep .g-day { font-size: 11.5px; white-space: nowrap; }
.term[data-form="desk"][data-focus="1"][data-ftk="1"] .gaugep .g-scale span { position: static; display: grid; gap: 0; transform: none;
  font-size: 11px; line-height: 13px; color: var(--dim); white-space: nowrap; }
.term[data-form="desk"][data-focus="1"][data-ftk="1"] .gaugep .g-scale span:first-child { grid-area: lo; text-align: start; }
.term[data-form="desk"][data-focus="1"][data-ftk="1"] .gaugep .g-scale .s-r { grid-area: hi; text-align: end; }
.term[data-form="desk"][data-focus="1"][data-ftk="1"] .gaugep .g-scale .s-m { display: none; }      /* the start: on the track */
.term[data-form="desk"][data-focus="1"][data-ftk="1"] .gaugep .g-scale span b { font-size: 12px; line-height: 15px; }
.term[data-form="desk"][data-focus="1"][data-ftk="1"] .gaugep .g-track { grid-area: track; width: auto; min-width: 48px; height: 14px; }
.term[data-form="desk"][data-focus="1"][data-ftk="1"] .gaugep :is(.g-rail, .g-fill) { top: 7px; height: 2px; }
.term[data-form="desk"][data-focus="1"][data-ftk="1"] .gaugep :is(.g-limit, .g-goalline) { top: 2px; width: 2px; height: 10px; }
.term[data-form="desk"][data-focus="1"][data-ftk="1"] .gaugep .g-goalline { box-shadow: none; }
.term[data-form="desk"][data-focus="1"][data-ftk="1"] .gaugep .g-start { top: 4px; height: 6px; }
.term[data-form="desk"][data-focus="1"][data-ftk="1"] .gaugep .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-form="desk"][data-focus="1"][data-ftk="1"] .gaugep .g-track[data-tone="up"] .g-mark { box-shadow: inset 0 0 0 2px var(--up), 0 0 0 2px var(--surface); }
.term[data-form="desk"][data-focus="1"][data-ftk="1"] .gaugep .g-track[data-tone="down"] .g-mark { box-shadow: inset 0 0 0 2px var(--down), 0 0 0 2px var(--surface); }
/* what is left and the exposure: three columns as wide as their words, a long word on two lines, the figures aligned */
.term[data-form="desk"][data-focus="1"][data-ftk="1"] .gaugep .g-rows { grid-area: rows; display: grid; grid-auto-flow: column; grid-auto-columns: auto;
  grid-template-rows: auto auto auto; justify-content: space-between; gap: 2px 8px; margin: 0; padding: 5px 0 0; border-top: 1px solid var(--hair);
  border-left: 0; }
.term[data-form="desk"][data-focus="1"][data-ftk="1"] .gaugep .g-rows div { display: grid; grid-row: span 3; grid-template-rows: subgrid;
  grid-template-columns: auto; gap: 2px; align-content: start; min-width: 0; }
.term[data-form="desk"][data-focus="1"][data-ftk="1"] .gaugep .g-rows dt { font-size: 11px; line-height: 13px; color: var(--dim); white-space: normal; }
.term[data-form="desk"][data-focus="1"][data-ftk="1"] .gaugep .g-rows dd { font-size: 12.5px; line-height: 15px; white-space: nowrap; }
.term[data-form="desk"][data-focus="1"][data-ftk="1"] .gaugep .g-rows .g-bar { grid-column: auto; align-self: start; height: 3px; }

/* ---- the position of the ticket's market (fpos.js), under the ticket: its figures, the row's close keys; the rail's
   key closing it all. Nothing on the chart. ---- */
.fposp, .ct-fpc { display: none; }
.term[data-form="desk"][data-focus="1"][data-ftk="1"] .side > .fposp { display: grid; flex: none; gap: 6px; padding: 7px 10px 8px; }
.fp-line { display: flex; align-items: baseline; gap: 6px; min-width: 0; font-size: 12px; line-height: 16px; white-space: nowrap; }
.fp-side { flex: none; font-weight: 700; }
.fp-side[data-side="l"] { color: var(--up); }
.fp-side[data-side="s"] { color: var(--down); }
.fp-qty { flex: none; color: var(--text); }
.fp-entry { display: inline-flex; gap: 4px; min-width: 0; overflow: hidden; color: var(--dim); }
.fp-entry b { font-weight: 500; color: var(--mute); }
.fp-pnl { flex: none; margin-inline-start: auto; font-weight: 600; }
.fp-keys { display: flex; flex-wrap: wrap; gap: 4px; }
.fp-keys .key { flex: 1 1 0; min-width: 0; min-height: 26px; padding: 0 4px; }
.fp-keys .fp-flat { flex: 1 0 100%; }
.term[data-focus="1"][data-frail="1"] .ctool .ct-fpc { display: inline-flex; order: 0; justify-content: center; min-height: 28px; padding: 0; }

@media (hover: hover) {
  .term[data-fkeys] .ctool .ct-focus[aria-pressed="true"]:hover { color: var(--text); }
}
