/* Stage 2c of the v5 screen: the command palette's key, an account that stopped (read only), the visitor's keys when the
   terminal is framed on the site's home, the embedded page's chrome. Tokens only; hover only where a pointer hovers;
   never italic. Loaded last. */

/* ---- a field shows its focus on its box (focus-within): never a second ring on the input inside it ---- */
.term .field input:focus-visible, .pal .field input:focus-visible { outline: none; }

/* ---- the palette's key and the shortcuts' key in the top bar ---- */
.pal-btn { gap: 8px; color: var(--mute); }
.pal-btn .pal-kbd { margin-left: 2px; }
.pal { color: var(--text); }
.pal-i { font: inherit; font-size: 13px; }
.pal-i span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-i .pal-sym { display: inline-flex; align-items: center; gap: 8px; }
.pal-i:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.term[data-form="phone"] .pal-btn { display: none; }     /* a phone has no keyboard: its markets tab searches */
.term[data-form="phone"] .term-lang .sp-lang-btn { width: 44px; height: 44px; }

/* ---- an account that stopped: no order key, the reason where the ticket was ---- */
.tk-stopped, .stopbar { display: none; }
body[data-stopped] .ticketp > .tk-live, body[data-stopped] .ticketp > .pstate { display: none !important; }
body[data-stopped] .tk-stopped { display: grid; gap: 10px; align-content: start; }
.tk-stopped p { margin: 0; }
.tk-stopped-t { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 15px; font-weight: 700; }
.tk-stopped-t .i { color: var(--warn); }
.tk-stopped-x { color: var(--mute); font-size: 12.5px; line-height: 1.5; }
.tk-stopped-n { padding: 8px 10px; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hair); color: var(--mute); font-size: 12px; line-height: 1.45; }
body[data-stopped] .pkeys { display: none !important; }
body[data-stopped] .term[data-form="phone"] .stopbar { grid-area: pkeys; display: flex; align-items: center; gap: 10px; min-height: 62px; padding: 8px 10px 8px 14px; border-top: 1px solid var(--hair); background: var(--surface); }
.stopbar-t { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; margin: 0; color: var(--text); font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.stopbar-t .i { flex: none; color: var(--warn); }
.stopbar .key { flex: none; min-height: 44px; }
body[data-stopped] .menu-acct { color: var(--warn); }
body[data-stopped] .tab-acts { display: none !important; }        /* read only: no Close all, no Cancel all */

/* ---- the visitor's keys in the frame of the site's home: Sell at the bid, Buy at the ask, LOCKED (lead nowhere) ---- */
.emb-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.emb-key { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 52px; padding: 6px 10px; text-decoration: none; font: inherit; }
.emb-key small { font-size: 11.5px; font-weight: 600; opacity: 0.92; }
.emb-key-t { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.emb-key-t .i { width: 13px; height: 13px; }
.emb-key[aria-disabled="true"] { cursor: not-allowed; opacity: 0.6; filter: saturate(0.45); box-shadow: inset 0 0 0 1px var(--hair-2); transform: none; }
.term[data-form="phone"] > .emb-keys { grid-area: pkeys; padding: 8px 10px; border-top: 1px solid var(--hair); background: var(--surface); }
.term[data-form="desk"] .emb-keys { margin-top: 4px; }

/* ---- framed: no sign-in, no account menu (no real user), no back key; the language menu (the frame's own language)
   and the shortcuts key stay, as a trader sees them (2026-11-17). The notice of frozen markets: banners.js builds none ---- */
html[data-embed] .visit-keys, html[data-embed] .visit-have, html[data-embed] .visitbar, html[data-embed] #menuBtn,
html[data-embed] .userbar, html[data-embed] .visit-cta, html[data-embed] .app-back { display: none !important; }
html[data-embed] body:not([data-show]) .gaugep, html[data-embed] body:not([data-show]) .ptab[data-tab="account"] { display: none !important; }   /* no showcase: no account, no tab to it */

/* ---- the showcase (show.js): the account's panels on the example account, the ticket's key replaced by the locked
   keys, an « Example » chip on each view that shows it (computer: the account band, the bottom panel; phone: the account
   strip, above every tab) ---- */
html[data-embed] body[data-show] .ticketp .visit,
html[data-embed] body[data-show] .bot-body > .pstate[data-only="visit"] { display: none !important; }   /* its words were the sign-in's */
html[data-embed] body[data-show] .ticketp > .emb-keys { order: 5; flex: none; }
html[data-embed] body[data-show] .tk-check[data-state="rest"] { display: none; }   /* nothing typed: the showcase's ticket says nothing */
html[data-embed] body[data-show] .term[data-form="desk"] .ticketp > .emb-keys { display: none; }   /* a computer: the ticket's own key, locked */
html[data-embed] body[data-show] .tk-go { cursor: not-allowed; }
html[data-embed] body[data-show] .tk-go:active { transform: none; }
@media (hover: hover) { html[data-embed] body[data-show] .tk-go:hover { filter: none; } }
/* its lock, drawn in the key's own colour: the body, and the shackle as the upper half of a ring */
html[data-embed] body[data-show] .tk-go::before { content: ""; flex: none; width: 10px; height: 12px;
  background: linear-gradient(currentColor, currentColor) bottom / 10px 7px no-repeat,
    radial-gradient(circle at 50% 100%, transparent 2px, currentColor 2.2px 3.6px, transparent 3.8px) top / 10px 6px no-repeat; }
.show-chip { flex: none; align-self: center; justify-self: start; padding: 2px 8px; border-radius: 999px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--hair-2);
  color: var(--mute); font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.5; white-space: nowrap; }
.show-chip[data-at="hud"] { order: 0; }
.term[data-form="desk"] .show-chip[data-at="bot"] { margin-inline: 6px; }
.term[data-form="phone"] .show-chip[data-at="hud"], .term[data-form="phone"] .show-chip[data-at="bot"] { display: none; }
html[data-embed] body[data-show] .term[data-form="phone"] .strip { grid-template-columns: auto auto minmax(24px, 1fr) auto; gap: 8px; }
html[data-embed] body[data-show] .term[data-form="phone"] .strip .st-day { display: none; }   /* a finished account's day: the chip's place */
@media (max-width: 340px) {
  html[data-embed] body[data-show] .term[data-form="phone"] .strip { grid-template-columns: auto auto minmax(0, 1fr); }
  html[data-embed] body[data-show] .term[data-form="phone"] .strip .st-track { display: none; }
  html[data-embed] body[data-show] .term[data-form="phone"] .strip .st-goal { justify-self: end; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
/* ---- the showcase's example order on a computer (show.js writeOrder, 2026-11-19: « pas de vide »): no empty area in the
   1280 x 720 desk the site frames. Since Q2 (v126) the check holds one sentence and one row (the order's figures moved to
   the summary over the key), so a check stretched down to the key showed an empty frame under its sentence (founder
   2026-11-21). The check now holds its words only, its « Example » chip on its first row, and the column's spare height
   goes to the order's own rows, spread from the order type down to the exposure ---- */
html[data-embed] body[data-show] .term[data-form="desk"] .tk-body { flex: 1 1 auto; justify-content: space-between; gap: 11px; }
html[data-embed] body[data-show] .term[data-form="desk"] .ticketp .field { min-height: 36px; }
html[data-embed] body[data-show] .term[data-form="desk"] .ticketp .field input { height: 34px; }
html[data-embed] body[data-show] .term[data-form="desk"] .tk-sides .key { min-height: 36px; }
html[data-embed] body[data-show] .term[data-form="desk"] .tk-live > .tk-verdict:has(> .tk-check:not([data-state="rest"])) { flex: none; display: flex; flex-direction: column; }
html[data-embed] body[data-show] .term[data-form="desk"] .tk-verdict > .tk-check:not([data-state="rest"]) { flex: none; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; }
html[data-embed] body[data-show] .term[data-form="desk"] .tk-check .tk-ic > b { flex: 1 1 auto; font-size: 14px; line-height: 1.3; }
html[data-embed] body[data-show] .term[data-form="desk"] .tk-check > span { font-size: 12.5px; }
html[data-embed] body[data-show] .term[data-form="desk"] .tk-check .tk-what { gap: 0; font-size: 12px; }
html[data-embed] body[data-show] .term[data-form="desk"] .tk-check .tk-what > div { padding: 8px 0; box-shadow: inset 0 1px 0 var(--hair); }
.show-chip[data-at="ticket"] { margin-inline-start: auto; }
/* the terminal framed on the site's home, on a phone (audit 2026-11-20): no word under 12 px (the tabs, the example chip,
   the goal, the timeframes, the indicators' count, the change, the two keys' prices) */
@media (max-width: 759px) {
  html[data-embed] :is(.ptab, .show-chip, .st-goal, .tf-seg .seg-b, .tf-more-t, #indN, .emb-key small, .quote-ch) { font-size: 12px; }
}
