/* Lot OC1: one-click orders (desk/oneclick.js). The switch « Un clic » in the ladder's head (shown with the ladder
   only), its armed state in the warm tone of the tokens (--warn: never green nor violet), the status bar's mark, the
   arming window, and a ladder row while its order is on its way. No row added: the switch sits in the plate's tabs. */
.tgrid:not([data-ladder]) #ocKey, .oc-key[hidden], .sb-oc[hidden] { display: none; }
.oc-key { gap: 6px; color: var(--mute); }
.oc-key .oc-dot { width: 6px; height: 6px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--dim); flex: none; }
.oc-key[aria-pressed="true"] { color: var(--warn); background: var(--warn-soft); box-shadow: inset 0 0 0 1px var(--warn); font-weight: 700; }
.oc-key[aria-pressed="true"] .oc-dot { background: var(--warn); box-shadow: none; }
.oc-key:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
@media (hover: hover) { .oc-key:hover { color: var(--text); } .oc-key[aria-pressed="true"]:hover { color: var(--warn); } }

/* the ladder armed: its head underlined warm, the bid and ask cells take the click */
.book[data-oc="1"] .ld-head { box-shadow: inset 0 -2px 0 var(--warn); }
.book[data-oc="1"] .ld-q { cursor: crosshair; }
.ld-row[data-act="pending"] .ld-px { animation: pstate-breathe 0.8s var(--ease) infinite alternate; }
.ld-row[data-act="done"] .ld-px { box-shadow: inset 0 0 0 1px var(--warn); }
.ld-row[data-act="refused"] .ld-px { box-shadow: inset 0 0 0 1px var(--down); }
@media (prefers-reduced-motion: reduce) { .ld-row[data-act="pending"] .ld-px { animation: none; } }

/* the status bar's mark: armed, readable at a glance */
.sb-oc { align-items: center; color: var(--warn); font-weight: 700; }
.sb-oc .dot { background: var(--warn); }

/* the arming window, once a device */
.ocbox { width: min(460px, calc(100vw - 32px)); max-height: min(560px, 84vh); margin-top: 10vh; padding: 18px 20px 16px; gap: 12px; }
.oc-t { margin: 0; font-size: 17px; font-weight: 700; color: var(--page-ink); }
.oc-l { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0 0 0 16px; color: var(--page-ink-2); font-size: 13px; line-height: 1.45; overflow-y: auto; }
.oc-l li[data-tone="warn"] { color: var(--warn); font-weight: 600; }
.oc-acts { display: flex; justify-content: flex-end; gap: 8px; flex: none; }
.ocbox .key-ghost { background: #1a1f27; color: var(--page-ink-2); box-shadow: inset 0 0 0 1px var(--page-line); }
:root[lang="ar"] .ocbox { direction: rtl; }
:root[lang="ar"] .oc-l { padding: 0 16px 0 0; }
:root[lang="ar"] .oc-l li { unicode-bidi: plaintext; }

/* the shortcuts sheet: its one-click row added, every row in sight down to Esc (no scroll inside it at 768 px) */
.keysheet { max-height: min(640px, 88vh); margin-top: 7vh; }
.ks-list dd { align-items: center; }   /* a key keeps its own height beside a label on two lines */
