/* Shared live components (status word, WhatsApp thread, live list, form sheets, undo
   toast) and the confirmer's screens. Tokens come from ops.css; no new colours.
   Rules: full borders or tints, never side stripes; one family; 150–250 ms motion. */

:root { --abar-h: 76px; --cbar-h: 56px; }

/* ------------------------------------------------------------ form sheet -- */
.o-sheet-x { margin-left: -8px; }
.o-sheet-head .o-btn.primary { min-height: 40px; }
@media (max-width: 759px) {
  .o-sheet-body.o-sheet-full { top: 0; max-height: none; height: 100dvh; border-radius: 0; animation: sheet-full-in 200ms var(--ease); }
  .o-sheet-full .o-sheet-head { position: sticky; top: 0; background: var(--surface); padding-top: calc(10px + env(safe-area-inset-top)); }
  @keyframes sheet-full-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
.o-mt { margin-top: 12px; }
.o-btn.o-btn-wrap { white-space: normal; text-align: center; line-height: 1.3; padding-top: 10px; padding-bottom: 10px; min-height: 56px; }

/* ----------------------------------------------------------- choices ------ */
.o-choices { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.o-choice { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; border: 0; border-top: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background-color 150ms var(--ease); }
.o-choice:first-child { border-top: 0; }
.o-choice:hover { background: var(--surface-2); }
.o-choice > svg { width: 20px; height: 20px; color: var(--ink-3); flex: 0 0 auto; }
.o-choice > svg:first-child { color: var(--ink-2); }
.o-choice.danger, .o-choice.danger > svg:first-child { color: var(--bad); }
.o-choice[disabled] { opacity: 0.55; cursor: not-allowed; }
.o-choice-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.o-choice-title { font-weight: 600; }
.o-choice-sub { font-size: 0.8125rem; color: var(--ink-3); }

.o-chips-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.o-pick { min-height: 44px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-weight: 560; font-size: 0.9rem; cursor: pointer; }
.o-pick[aria-checked='true'] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.o-consequence { margin: 0; font-size: 0.9rem; color: var(--ink-2); }
.o-quote { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.875rem; white-space: pre-wrap; }
.o-btn.danger-fill { background: var(--bad); border-color: var(--bad); color: #fff; }
.o-btn.danger-fill:hover { background: color-mix(in oklch, var(--bad) 88%, black); }
.o-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 0; border-top: 1px solid var(--line); margin-top: 8px; font-weight: 600; }
.o-switch-row input { width: 22px; height: 22px; accent-color: var(--ink); }

/* -------------------------------------------------------------- undo ------ */
.o-undo { position: fixed; z-index: var(--z-toast); left: 12px; right: 12px; bottom: calc(var(--abar-h) + env(safe-area-inset-bottom) + 10px); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-pop); font-size: 0.9rem; font-weight: 560; animation: toast-in 200ms var(--ease); max-width: 520px; margin: 0 auto; }
.o-undo-text { flex: 1; min-width: 0; }
.o-undo-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border-radius: 9px; border: 0; background: var(--lime); color: var(--lime-ink); font: inherit; font-weight: 700; cursor: pointer; }
.o-undo-left { font-variant-numeric: tabular-nums; min-width: 1ch; opacity: 0.75; }
@media (min-width: 900px) { .o-undo { left: auto; right: 20px; bottom: 20px; width: 420px; } }

/* -------------------------------------------------------------- thread ---- */
.o-thread { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.o-thread-empty { display: flex; gap: 10px; align-items: center; padding: 12px 14px; color: var(--ink-3); font-size: 0.875rem; }
.o-thread-empty svg { width: 18px; height: 18px; }
.o-thread-head { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 10px 14px; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; border-radius: var(--radius); }
.o-thread-head:hover { background: var(--surface-2); }
.o-thread-head > svg { width: 18px; height: 18px; color: var(--ink-3); flex: 0 0 auto; }
.o-thread-sum { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.o-thread-count { font-weight: 600; font-size: 0.9rem; }
.o-thread-last { color: var(--ink-3); font-size: 0.8125rem; white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.o-thread-last q { quotes: '«\00a0' '\00a0»'; }
.o-new { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 99px; background: var(--info-bg); color: var(--info); font-size: 0.72rem; font-weight: 700; vertical-align: 1px; }
.o-thread-box { max-height: 45vh; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); }
.o-msg { max-width: 85%; padding: 7px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.o-msg-us { align-self: flex-end; background: color-mix(in oklch, var(--info-bg) 70%, var(--surface)); border-color: transparent; }
.o-msg-event { align-self: center; max-width: 100%; background: transparent; border: 0; padding: 2px 6px; color: var(--ink-3); font-size: 0.8125rem; text-align: center; }
.o-msg-meta { font-size: 0.72rem; color: var(--ink-3); }
.o-msg-text { font-size: 0.9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.o-thread-hide { margin: 4px 8px 8px; }

/* ---------------------------------------------------------- live list ----- */
.o-live-pill-wrap { position: sticky; top: calc(var(--cbar-h) + 6px); z-index: 2; display: flex; justify-content: center; height: 0; overflow: visible; }
.o-live-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 16px; border-radius: 99px; border: 0; background: var(--ink); color: var(--bg); font: inherit; font-size: 0.875rem; font-weight: 560; cursor: pointer; box-shadow: 0 4px 8px oklch(0.2 0.02 320 / 0.18); animation: toast-in 200ms var(--ease); }
.o-live-pill.urgent { background: var(--bad); color: #fff; }
.o-flash { animation: row-flash 1s var(--ease); }
@keyframes row-flash { from { background: var(--warn-bg); } to { background: transparent; } }

/* -------------------------------------------------------------- confirm --- */
.o-content-confirm { padding: 0; max-width: none; }
.o-staff-confirm .o-main { padding-bottom: 0; }
.o-staff-sync { padding: 6px 16px; border-bottom: 1px solid var(--line); }
.o-confirm { min-height: 100dvh; background: var(--bg); }
.o-confirm:not(.standalone) { min-height: 0; margin: -16px; }
@media (min-width: 900px) { .o-confirm:not(.standalone) { margin: -24px -28px; } }

.o-cbar { display: flex; align-items: center; gap: 6px; min-height: var(--cbar-h); padding: 4px 8px 4px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.o-cbar.sticky { position: sticky; top: 0; z-index: var(--z-sticky); padding-top: calc(4px + env(safe-area-inset-top)); }
.o-cbar-title { flex: 1; min-width: 0; margin: 0; font-size: 1.125rem; font-weight: 680; letter-spacing: -0.01em; white-space: normal; overflow-wrap: anywhere; }
.o-cbar-count { color: var(--ink-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.o-cbar-icon { min-width: 44px; min-height: 44px; padding: 0; }
.o-cbar-icon svg { width: 22px; height: 22px; }
.o-cbar .o-word { margin-right: 8px; }

.o-cline { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 16px; font-size: 0.8125rem; font-weight: 560; color: var(--ink-2); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.o-cline.warn { background: var(--warn-bg); color: var(--ink); }
.o-cline.warn svg { color: var(--warn); }
.o-cline.bad { background: var(--bad-bg); color: var(--ink); }
.o-cline.bad svg { color: var(--bad); }

/* Queue rows: 80 px, the whole row is the target. */
.o-q { position: relative; }
.o-q-list { display: flex; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); }
.o-q-row { display: flex; flex-direction: column; justify-content: center; gap: 3px; width: 100%; min-height: 80px; padding: 10px 16px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background-color 150ms var(--ease); }
.o-q-list > div:first-child .o-q-row, .o-q-list > .o-q-row:first-child { border-top: 0; }
.o-q-row:hover { background: var(--surface-2); }
.o-q-row.sel { background: color-mix(in oklch, var(--info-bg) 75%, var(--surface)); }
.o-q-l1, .o-q-l2, .o-q-l3 { display: flex; align-items: center; gap: 8px; min-width: 0; width: 100%; }
.o-q-reason { flex: 1; min-width: 0; color: var(--ink-2); font-size: 0.875rem; white-space: normal; overflow-wrap: anywhere; }
.o-q-age { flex: 0 0 auto; margin-left: auto; color: var(--ink-3); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.o-q-l2 { gap: 6px; font-size: 0.9375rem; }
.o-q-name { font-weight: 620; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.o-q-dot { color: var(--ink-3); }
.o-q-city { color: var(--ink-2); min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.o-q-no { margin-left: auto; flex: 0 0 auto; color: var(--ink-3); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.o-q-l3 { font-size: 0.8125rem; color: var(--ink-3); }
.o-q-l3:empty { display: none; }
.o-q-msg { min-width: 0; white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-2); quotes: '«\00a0' '\00a0»'; }
.o-q-flags { white-space: normal; overflow-wrap: anywhere; }
.o-q-l3 .o-chip { font-size: 0.75rem; }
.o-q-ghost { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 16px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.8125rem; background: var(--bg); }
.o-q-ghost svg { color: var(--ok); }
.o-q-ghost-why { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.o-q-skel { gap: 8px; cursor: default; }
.o-q-empty { padding: 36px 24px; text-align: center; color: var(--ink-3); }
.o-q-empty svg { color: var(--ok); }
.o-q-empty h3 { margin: 8px 0 4px; font-size: 1rem; color: var(--ink); }
.o-q-empty p { margin: 0 auto; max-width: 40ch; font-size: 0.875rem; }

.o-q-folds { padding: 12px 16px 24px; display: flex; flex-direction: column; gap: 8px; }
.o-q-fold { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.o-q-fold-head { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; width: 100%; min-height: 52px; padding: 8px 14px; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.o-q-fold-head[disabled] { cursor: default; }
.o-q-fold-head > svg { width: 18px; height: 18px; color: var(--ink-3); }
.o-q-fold-head > svg:last-child { margin-left: auto; }
.o-q-fold-title { font-weight: 600; }
.o-q-fold-n { font-weight: 650; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.o-q-fold-sub { flex: 1 1 9rem; min-width: 0; color: var(--ink-3); font-size: 0.8125rem; white-space: normal; overflow-wrap: anywhere; }
.o-q-fold-body { border-top: 1px solid var(--line); }
.o-q-mini { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 14px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: inherit; font-size: 0.875rem; text-align: left; cursor: pointer; }
.o-q-mini:first-child { border-top: 0; }
.o-q-mini:hover { background: var(--surface-2); }
.o-q-mini-main { flex: 1; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.o-q-mini-right { flex: 0 0 auto; font-size: 0.8125rem; color: var(--ink-2); }

/* Search */
.o-sr-input { padding: 12px 16px; background: var(--bg); }
.o-sr-input svg { left: 27px; }
.o-sr-hint { padding: 4px 16px; }
.o-sr-row { min-height: 68px; }

/* Order screen */
.o-cpane { min-width: 0; }
.o-cpad { padding: 16px; }
.o-co { padding: 0 0 calc(var(--abar-h) + env(safe-area-inset-bottom) + 8px); }
.o-co-col { display: flex; flex-direction: column; gap: 14px; padding: 14px 16px 0; min-width: 0; }
.o-h { margin: 0 0 6px; font-size: 0.875rem; font-weight: 650; color: var(--ink-2); }

.o-reason { padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); }
.o-reason.warn { background: var(--warn-bg); border-color: color-mix(in oklch, var(--warn) 30%, transparent); }
.o-reason.bad { background: var(--bad-bg); border-color: color-mix(in oklch, var(--bad) 30%, transparent); }
.o-reason.info { background: var(--info-bg); border-color: color-mix(in oklch, var(--info) 25%, transparent); }
.o-reason-text { margin: 0; font-size: 0.9875rem; font-weight: 560; color: var(--ink); max-width: 65ch; }
.o-reason-sub { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 0.875rem; color: var(--ink-2); }
.o-reason-quote { margin: 8px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--surface); font-size: 0.9rem; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.o-reason-quote::before { content: '« '; color: var(--ink-3); }
.o-reason-quote::after { content: ' »'; color: var(--ink-3); }

.o-cust-name { font-size: 1.25rem; font-weight: 680; letter-spacing: -0.01em; line-height: 1.25; }
.o-cust-city { color: var(--ink-2); }
.o-cust-phone { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.o-cust-num { font-size: 1.375rem; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.o-cust-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 10px; }
.o-btn-big { min-height: 56px; font-size: 1rem; }
.o-btn-big svg { width: 20px; height: 20px; }
.o-cust .o-small { margin: 8px 0 0; display: flex; align-items: center; gap: 6px; }

.o-rb { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.o-rb-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.o-rb-lines li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 0.9875rem; font-weight: 560; }
.o-rb-lines li.unknown { color: var(--bad); }
.o-rb-lines em { font-style: normal; color: var(--ok); font-weight: 600; }
.o-av-word { font-size: 0.78rem; font-weight: 600; color: var(--warn); }
.o-av-word.no { color: var(--bad); }
.o-rb-collect { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 1.0625rem; font-weight: 680; font-variant-numeric: tabular-nums; }
.o-rb-addr { margin: 8px 0 0; color: var(--ink); }
.o-rb-note { margin: 6px 0 0; color: var(--ink-2); font-size: 0.875rem; }

.o-fold { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.o-fold-line { padding: 4px 2px; font-size: 0.875rem; }
.o-fold-head { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; width: 100%; min-height: 52px; padding: 8px 14px; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; border-radius: var(--radius); }
.o-fold-head > svg { width: 18px; height: 18px; color: var(--ink-3); flex: 0 0 auto; }
.o-fold-title { font-weight: 600; flex: 0 0 auto; }
.o-fold-sub { flex: 1 1 9rem; min-width: 0; color: var(--ink-3); font-size: 0.8125rem; white-space: normal; overflow-wrap: anywhere; }
.o-att { list-style: none; margin: 0; padding: 4px 14px 12px; border-top: 1px solid var(--line); font-size: 0.875rem; }
.o-att li { display: flex; gap: 12px; padding: 5px 0; }
.o-att-at { flex: 0 0 7.5em; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.o-reply textarea, .o-prepnote .o-input { resize: vertical; }
.o-reply-why { margin: 0 0 6px; }
.o-reply-foot { display: flex; justify-content: flex-end; margin-top: 8px; }
.o-prepnote-item { margin: 0 0 6px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); font-size: 0.875rem; }
.o-prepnote-row { display: flex; gap: 8px; }
.o-prepnote-row .o-input { flex: 1; }

/* Sticky action bar in the thumb zone. */
.o-abar { position: fixed; z-index: var(--z-sticky); left: 0; right: 0; bottom: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.o-abar-btns { display: flex; gap: 8px; }
.o-abar-btns .o-btn { min-height: 56px; font-size: 0.9875rem; }
.o-abar-main { flex: 1.4; }
.o-abar-sec { flex: 1; }
.o-abar-more { flex: 0 0 56px; padding: 0; }
.o-abar-why { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 0.8125rem; color: var(--ink-2); }
.o-abar-done { display: flex; flex-direction: column; gap: 8px; }
.o-abar-done-text { display: flex; align-items: center; gap: 8px; font-weight: 620; color: var(--ink); }
.o-abar-done-text svg { width: 20px; height: 20px; color: var(--ok); }
.o-abar-done .o-btn { min-height: 56px; justify-content: space-between; }
.o-btn svg[data-spin], .o-btn[aria-busy='true'] svg { animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Edit sheet */
.o-ed { display: flex; flex-direction: column; gap: 12px; }
.o-ed-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.o-ed-row:hover { background: var(--surface-2); }
.o-ed-row-title { font-weight: 620; flex: 0 0 auto; }
.o-ed-row-sum { flex: 1; min-width: 0; color: var(--ink-3); font-size: 0.875rem; white-space: normal; overflow-wrap: anywhere; }
.o-ed-row > svg { width: 18px; height: 18px; color: var(--ink-3); }
.o-ed-sec { padding: 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); display: flex; flex-direction: column; gap: 4px; }
.o-ed-sec h3, .o-ed-review h3 { margin: 0 0 6px; font-size: 0.9375rem; font-weight: 650; }
.o-field-label { font-size: 0.8125rem; font-weight: 580; color: var(--ink-2); }
.o-help { font-size: 0.8125rem; color: var(--ink-3); margin: 4px 0 0; }
.o-ed-lines { display: flex; flex-direction: column; gap: 10px; }
.o-ed-line { display: flex; flex-direction: column; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.o-ed-line:last-child { border-bottom: 0; padding-bottom: 0; }
.o-ed-single { display: flex; gap: 8px; align-items: stretch; }
.o-ed-pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.o-ed-pick-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.o-ed-pick-name { font-weight: 580; white-space: normal; overflow-wrap: anywhere; }
.o-ed-pick > svg { width: 18px; height: 18px; color: var(--ink-3); margin-left: auto; }
.o-ed-mix { display: flex; flex-direction: column; gap: 6px; }
.o-ed-mix-head { font-weight: 620; font-size: 0.9rem; }
.o-ed-ratio { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.o-ed-ratio .o-seg button { min-height: 40px; padding: 8px 10px; }
.o-stepper { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.o-stepper .o-btn { min-width: 48px; min-height: 52px; padding: 0; }
.o-stepper-n { min-width: 2ch; text-align: center; font-weight: 680; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.o-ed-review { padding: 12px; border-radius: var(--radius); background: var(--surface-2); }
.o-ed-diff { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.o-ed-diff li { display: flex; flex-direction: column; font-size: 0.875rem; }
.o-ed-diff s { color: var(--ink-3); }
.o-ed-price { margin: 10px 0 0; font-weight: 650; font-variant-numeric: tabular-nums; }

.o-picker { display: flex; flex-direction: column; gap: 10px; }
.o-picker-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.o-picker-row { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 12px; border: 0; border-top: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.o-picker-row:first-child { border-top: 0; }
.o-picker-row:hover { background: var(--surface-2); }
.o-picker-row[aria-selected='true'] { background: color-mix(in oklch, var(--info-bg) 75%, var(--surface)); }
.o-picker-row[disabled] { cursor: not-allowed; color: var(--ink-3); }
.o-picker-name { flex: 1; min-width: 0; font-weight: 560; }
.o-picker-av { flex: 0 0 auto; font-size: 0.8125rem; font-weight: 600; color: var(--ok); }
.o-picker-row.av-soon .o-picker-av { color: var(--warn); }
.o-picker-row.av-no .o-picker-av { color: var(--ink-3); }

/* Doublon */
.o-dup-pair { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.o-dup-pair.side { flex-direction: row; }
.o-dup-pair.side > * { flex: 1; min-width: 0; }
.o-dup-card { padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.o-dup-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.o-dup-lines { margin: 0; padding-left: 18px; font-size: 0.875rem; }
.differs { background: var(--warn-bg); border-radius: 6px; padding: 2px 6px; }
.o-dup-notdup { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.o-dup-notdup p { margin: 6px 0 0; text-align: center; }

/* Laptop: queue 380 px | order. */
@media (min-width: 900px) {
  .o-confirm-laptop { display: grid; grid-template-columns: 380px minmax(0, 1fr); align-items: start; }
  .o-confirm-left { position: sticky; top: 0; height: 100dvh; overflow-y: auto; border-right: 1px solid var(--line); background: var(--bg); }
  .o-confirm-laptop:not(.standalone) .o-confirm-left { top: 57px; height: calc(100dvh - 57px); }
  .o-confirm-left .o-cbar { position: sticky; top: 0; z-index: 3; }
  .o-confirm-right { min-width: 0; }
  .o-cpick { display: grid; place-items: center; gap: 8px; min-height: 60dvh; color: var(--ink-3); text-align: center; }
  .o-cpane-head { display: flex; align-items: center; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 3; }
  .o-confirm-laptop:not(.standalone) .o-cpane-head { top: 57px; }
  .o-cpane-head h2 { margin: 0; font-size: 1.125rem; font-weight: 680; display: flex; gap: 10px; min-width: 0; }
  .o-co { padding: 0 0 32px; }
  .o-co-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; padding: 16px 24px 0; align-items: start; }
  .o-co-cols .o-co-col { padding: 0; }
  .o-co-laptop .o-abar { position: static; padding: 12px 0 0; border: 0; background: none; }
  .o-co-laptop .o-abar-btns .o-btn { min-height: 48px; }
  .o-co-laptop .o-thread-box { max-height: 45vh; }
}

@media (prefers-reduced-motion: reduce) {
  .o-flash { animation: none; background: var(--warn-bg); }
}

/* The owner covering from Postes on a phone: his tab bar stays, the action bar sits above it. */
@media (max-width: 899px) {
  .o-confirm:not(.standalone) .o-abar { bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
  .o-confirm:not(.standalone) .o-co { padding-bottom: calc(var(--abar-h) + 8px); }
}
