/* Chart types (lot C1: ctype.js, cseries.js). The type key of each chart: in the desk's bar, the focus's column head
   and its 44 px rail (no row added: an icon key among the others), each multi-chart head; its menu (a sheet on a phone,
   44 px keys there); the words over computed bodies (the legend, a chart beside the active one). Tokens only; hover
   only where a pointer hovers; never italic; no text under 11 px; no blue but the focus ring. */

/* ---- the key ---- */
.ct-tk .i { width: 16px; height: 16px; }
/* the focus's column head: at the end of the timeframes' row (the first row keeps the market's name whole); the rail:
   under the timeframes */
.term[data-fkeys]:not([data-fkeys="rail"]) .ctool #tfs { flex: 1 1 calc(100% - 33px); }
.term[data-fkeys]:not([data-fkeys="rail"]) .ctool #ctypeBtn { order: 11; }
.term[data-fkeys="rail"] .ctool #ctypeBtn { order: 3; }
.mh-ct { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; padding: 0; border: 0;
  border-radius: var(--r-sm); background: none; color: var(--mute); cursor: pointer; }
.mh-ct .i { width: 14px; height: 14px; }
.mh-ct:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.mh-ct:active, .mh-ct[aria-expanded="true"] { background: var(--surface-3); color: var(--text); }

/* ---- the menu ---- */
.cpop[data-kind="ctype"] { width: min(272px, calc(100% - 16px)); padding: 6px; gap: 2px; }
.cpop[data-kind="ctype"] .cpop-h { margin: 4px 10px 2px; }
.cpop[data-kind="ctype"] .cpop-sep { margin: 4px 0; }
.ct-type .i { color: var(--dim); }
.ct-type[aria-pressed="true"] .i { color: var(--text); }
.ct-box-atr { justify-content: space-between; }
.ct-box-v { color: var(--dim); font-weight: 500; }
.ct-box-fix { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 6px 0 10px; border-radius: var(--r-sm); }
.ct-box-fix[data-on="1"] { background: var(--surface-4); }
.ct-box-fix label { flex: none; color: var(--mute); font-size: 12.5px; font-weight: 600; }
.ct-box-fix input { flex: 1 1 auto; width: 0; min-width: 0; height: 26px; padding: 0 8px; border: 1px solid var(--hair-2); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text); font-size: 12px; }
.ct-box-fix input:focus-visible { outline: 2px solid var(--focus); outline-offset: -1px; }
.ct-box-fix .key { flex: none; }
.ct-box-err { margin: 2px 10px 4px; font-size: 11.5px; line-height: 1.4; }
.ct-note { margin: 2px 10px; color: var(--dim); font-size: 11.5px; line-height: 1.4; }
.ct-note:last-child { margin-bottom: 4px; }

/* ---- a phone: the sheet's keys and field a finger's size, a field iOS does not zoom ---- */
.cpop[data-sheet="1"][data-kind="ctype"] { gap: 0; }
.cpop[data-sheet="1"] .ct-box-fix { min-height: 52px; }
.cpop[data-sheet="1"] .ct-box-fix input { height: 44px; font-size: 16px; }
.cpop[data-sheet="1"] .ct-box-fix .key { min-height: 44px; min-width: 64px; }
.cpop[data-sheet="1"] .ct-note { font-size: 12px; }

/* ---- over computed bodies: the type, « computed », the real last price ---- */
.lg-calc { flex: 0 1 auto; min-width: 0; overflow: hidden; color: var(--mute); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.lg-calc .ct-calc-px { color: var(--text); font-weight: 600; }
.lg-ohlc[data-calc="renko"] :is(.lg-o, .lg-chg) { display: none; }
.lg-pane[data-narrow="1"] .lg-calc .ct-calc-l { display: none; }
.lg-noind { margin: 0; padding-inline-start: 6px; color: var(--dim); font-size: 11px; }
.mc-calc { position: absolute; top: 6px; left: 8px; z-index: 3; max-width: calc(100% - var(--axis, 64px) - 16px); margin: 0; padding: 1px 6px;
  overflow: hidden; border-radius: var(--r-sm); background: color-mix(in srgb, var(--chart-bg) 82%, transparent); color: var(--mute); font-size: 11px;
  line-height: 16px; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.mc-calc[hidden] { display: none; }
.mc-calc .ct-calc-px { color: var(--text); font-weight: 600; }

@media (hover: hover) {
  .mh-ct:hover { background: var(--surface-3); color: var(--text); }
  .ct-type:hover .i { color: var(--text); }
}
