/* Lot G2c, a laptop's window (the chart focus of a computer under 820 px of height: fdock.js, focus-lib TIGHT_H): the
   most loaded ticket (a position, a limit order with SL and TP, its warning, the news under its key) stands whole with
   nothing to scroll. The chart's keys leave the column's head for the rail (fcol.css) between the chart and the column;
   the column widens a little (its sentences wrap on fewer lines); the account's figures compact (the same figures,
   none dropped); the position on two thin rows; every gap of the ticket gives a little. And on every chart of the
   focus, a thin top band where the pointer draws no crosshair: its price label would be cut by the window's edge.
   Tokens only; no text under 11 px. */

/* ---- the grid: the chart, the rail of keys, the column ---- */
.term[data-form="desk"][data-focus="1"][data-ftk="1"][data-ftight="1"] .tgrid { --tk-w: 296px;
  grid-template-columns: minmax(0, 1fr) var(--rail-w) var(--tk-w); grid-template-rows: minmax(0, 1fr); grid-template-areas: "chart rail side"; }
.term[data-form="desk"][data-focus="1"][data-ftk="1"][data-ftight="1"][data-stack="1"] .tgrid[data-ladder] {
  grid-template-columns: minmax(0, 1fr) var(--rail-w) max(var(--tk-w), 320px); }
.term[data-ftight="1"] .tgrid > .ctool { grid-area: rail; min-height: 0; overflow: hidden; }
.term[data-form="desk"][data-ftk="1"][data-ftight="1"] > .toasts { right: calc(var(--tk-w, 296px) + var(--rail-w) + 80px); }

/* ---- the account's figures compact: the balance and today's result beside the limit, the target and the track under
   them; then what is left today, in total, and the exposure ---- */
.term[data-form="desk"][data-focus="1"][data-ftk="1"][data-ftight="1"] .side > .gaugep { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "eq lo hi" "eq track track" "rows rows rows"; gap: 2px 10px; padding: 5px 10px 6px; }
.term[data-form="desk"][data-focus="1"][data-ftk="1"][data-ftight="1"] .gaugep .g-track { height: 12px; align-self: start; }
.term[data-form="desk"][data-focus="1"][data-ftk="1"][data-ftight="1"] .gaugep :is(.g-rail, .g-fill) { top: 5px; }
.term[data-form="desk"][data-focus="1"][data-ftk="1"][data-ftight="1"] .gaugep :is(.g-limit, .g-goalline) { top: 1px; }
.term[data-form="desk"][data-focus="1"][data-ftk="1"][data-ftight="1"] .gaugep .g-start { top: 3px; }
.term[data-form="desk"][data-focus="1"][data-ftk="1"][data-ftight="1"] .gaugep .g-mark { top: 2px; }
.term[data-form="desk"][data-focus="1"][data-ftk="1"][data-ftight="1"] .gaugep .g-eq { display: grid; gap: 0; align-content: center; }
.term[data-form="desk"][data-focus="1"][data-ftk="1"][data-ftight="1"] .gaugep .g-eqv { font-size: 15px; line-height: 18px; }
.term[data-form="desk"][data-focus="1"][data-ftk="1"][data-ftight="1"] .gaugep .g-day { font-size: 11px; line-height: 13px; }
.term[data-form="desk"][data-focus="1"][data-ftk="1"][data-ftight="1"] .gaugep .g-rows { padding-top: 3px; row-gap: 1px; }

/* the showcase framed on the site (its ticket spread over the stage's height, finish.css): at its own height in the column */
html[data-embed] body[data-show] .term[data-form="desk"][data-ftk="1"] .tk-body { flex: 0 1 auto; justify-content: flex-start; gap: 8px; }
html[data-embed] body[data-show] .term[data-form="desk"][data-ftk="1"][data-ftight="1"] .tk-body { gap: 5px; }

/* ---- the position: its figures, then its close keys, thin ---- */
.term[data-form="desk"][data-focus="1"][data-ftk="1"][data-ftight="1"] .side > .fposp { gap: 4px; padding: 5px 10px 6px; }
.term[data-ftight="1"] .fp-keys .key { min-height: 24px; }

/* ---- the ticket: every gap gives a little ---- */
.term[data-form="desk"][data-ftight="1"] .ticketp { padding: 6px 10px 7px; gap: 5px; }
.term[data-form="desk"][data-ftight="1"] .tk-body { gap: 5px; }
.term[data-form="desk"][data-ftight="1"] .tk-group { gap: 3px; }
.term[data-form="desk"][data-ftight="1"] .tk-two > div { gap: 3px; }
.term[data-form="desk"][data-ftight="1"] .ticketp .seg-b { min-height: 22px; }
.term[data-form="desk"][data-ftight="1"] .tk-lev { min-height: 24px; }
.term[data-form="desk"][data-ftight="1"] .tk-sides .key { min-height: 28px; }
.term[data-form="desk"][data-ftight="1"] .ticketp .field { min-height: 28px; }
.term[data-form="desk"][data-ftight="1"] .ticketp .field input { height: 26px; }
.term[data-form="desk"][data-ftight="1"] .chips .chip { min-height: 20px; }
.term[data-form="desk"][data-ftight="1"] .chip.tk-tog { min-height: 16px; }
.term[data-form="desk"][data-ftight="1"] .tk-check { gap: 2px; padding: 5px 9px; line-height: 1.3; }
.term[data-form="desk"][data-ftight="1"] .tk-go { min-height: 34px; }

/* ---- a laptop's window with its browser (1366 x 660 and under: 1366 x 657, 1280 x 650, 1100 x 620, 1024 x 600, measured):
   the column a little wider, every gap a little less ---- */
@media (max-height: 660px) {
  .term[data-form="desk"][data-focus="1"][data-ftk="1"][data-ftight="1"] .tgrid { --tk-w: 312px; }
  .term[data-form="desk"][data-focus="1"][data-ftk="1"][data-ftight="1"] .side > :is(.gaugep, .fposp) { padding-block: 4px 5px; }
  .term[data-form="desk"][data-ftight="1"] .ticketp { padding: 5px 10px 6px; gap: 4px; }
  .term[data-form="desk"][data-ftight="1"] .tk-body { gap: 4px; }
  .term[data-form="desk"][data-ftight="1"] .tk-group { gap: 2px; }
  .term[data-form="desk"][data-ftight="1"] .ticketp .seg-b { min-height: 20px; }
  .term[data-form="desk"][data-ftight="1"] .tk-sides .key { min-height: 26px; }
  .term[data-form="desk"][data-ftight="1"] .ticketp .field { min-height: 26px; }
  .term[data-form="desk"][data-ftight="1"] .ticketp .field input { height: 24px; }
  .term[data-form="desk"][data-ftight="1"] .chips .chip { min-height: 18px; }
  .term[data-form="desk"][data-ftight="1"] .tk-check { padding: 4px 8px; }
  .term[data-form="desk"][data-ftight="1"] .tk-go { min-height: 30px; }
  .term[data-ftight="1"] .fp-keys .key { min-height: 22px; }
  /* lot SRV2: the most loaded ticket with a position's note over its check stands whole at 1280 x 650 (15 px more) */
  .term[data-form="desk"][data-ftight="1"] .ticketp { padding: 4px 10px; gap: 2px; }
  .term[data-form="desk"][data-ftight="1"] .tk-body { gap: 2px; }
  .term[data-form="desk"][data-ftight="1"] .tk-sides .key { min-height: 24px; }
  .term[data-form="desk"][data-ftight="1"] .tk-check { line-height: 1.25; }
  .term[data-form="desk"][data-ftight="1"] .tk-msg { margin-top: 2px; }
}

/* ---- the top edge of every chart of the focus: no crosshair in its first 10 px (its price label would be cut) ---- */
.term[data-form="desk"][data-focus="1"]:is([data-ftk="1"], [data-frail="1"]) :is(.chartwrap, .mc-wrap)::before { content: ""; position: absolute;
  top: 0; left: 0; right: 0; z-index: 2; height: 10px; }
