/* Shared Event-Day operator workspace. Built on QueueOS design-system primitives. */
:root { --op-bg:#07111f; --op-panel:#0e1d31; --op-panel-2:#14253b; --op-text:#f7fafc; --op-muted:#a7b4c7; --op-brand:#10b981; --op-info:#2f6df6; --op-warning:#f59e0b; --op-danger:#dc2626; }
body.operator-body { margin:0; background:var(--op-bg); color:var(--op-text); font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.operator-shell { width:min(100%,64rem); min-height:100dvh; margin:auto; padding:max(1rem,env(safe-area-inset-top)) max(1rem,env(safe-area-inset-right)) calc(2rem + env(safe-area-inset-bottom)) max(1rem,env(safe-area-inset-left)); overflow-x:clip; }
.operator-topbar { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.operator-eyebrow { margin:0 0 .2rem; color:var(--op-brand); font-size:.78rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.operator-back { display:inline-flex; align-items:center; gap:.3rem; margin-bottom:.35rem; color:var(--op-muted); font-size:.82rem; font-weight:700; text-decoration:none; letter-spacing:.02em; transition:color .15s; }
.operator-back:hover { color:var(--op-brand); }
.operator-title { margin:0; font-size:clamp(1.65rem,5vw,2.5rem); line-height:1.05; }
.operator-connection { display:inline-flex; align-items:center; gap:.45rem; min-height:2.3rem; padding:.45rem .7rem; border:1px solid #29405a; border-radius:99px; color:var(--op-muted); font-size:.85rem; font-weight:750; white-space:nowrap; }
.operator-connection::before { content:""; width:.6rem; height:.6rem; border-radius:50%; background:currentColor; }
.operator-connection[data-state="online"] { color:var(--op-brand); }.operator-connection[data-state="offline"] { color:var(--op-warning); }
.operator-context { margin-bottom:1rem; }.operator-context .event-context { background:var(--op-panel); border:1px solid #29405a; border-radius:1rem; color:var(--op-text); }.operator-context .event-context select { background:var(--op-bg); color:var(--op-text); border-color:#49617d; min-height:56px; }
.operator-context .event-context [data-message] { color:var(--op-muted); }
.operator-grid { display:grid; gap:1rem; }.operator-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); }.operator-card { background:var(--op-panel); border:1px solid #29405a; border-radius:1rem; padding:1rem; }.operator-kpi { min-width:0; }.operator-kpi span { display:block; color:var(--op-muted); font-size:.78rem; font-weight:700; }.operator-kpi strong { display:block; margin-top:.25rem; font-size:clamp(1.6rem,6vw,2.7rem); line-height:1; font-variant-numeric:tabular-nums; }
.operator-action { width:100%; min-height:76px; border:0; border-radius:1rem; padding:1rem 1.25rem; background:var(--op-brand); color:#05271f; font:800 clamp(1.1rem,4vw,1.45rem)/1.1 inherit; cursor:pointer; }.operator-action:disabled,.operator-button:disabled { cursor:not-allowed; opacity:.55; }.operator-action:focus-visible,.operator-button:focus-visible,.operator-input:focus-visible,.operator-select:focus-visible { outline:3px solid var(--op-info); outline-offset:3px; }
.operator-button { min-height:56px; border:1px solid #49617d; border-radius:.8rem; padding:.7rem 1rem; background:var(--op-panel-2); color:var(--op-text); font:750 1rem/1.2 inherit; cursor:pointer; }.operator-button[data-kind="danger"] { border-color:var(--op-danger); color:#fecaca; }.operator-button[data-kind="quiet"] { background:transparent; }
.operator-row { display:flex; gap:.75rem; align-items:center; }.operator-row > * { min-width:0; }.operator-row .operator-button { flex:1; }
.operator-input,.operator-select { width:100%; min-height:56px; box-sizing:border-box; border:1px solid #49617d; border-radius:.8rem; padding:.75rem .9rem; background:var(--op-bg); color:var(--op-text); font:inherit; }.operator-label { display:grid; gap:.4rem; color:var(--op-text); font-size:.9rem; font-weight:750; }.operator-search { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.6rem; }
.operator-scanner { position:relative; overflow:hidden; aspect-ratio:16/10; border:1px solid #29405a; border-radius:1rem; background:#02070d; }.operator-scanner video { width:100%; height:100%; object-fit:cover; }.operator-scanner::after { content:""; position:absolute; inset:18%; border:3px solid var(--op-brand); border-radius:.75rem; box-shadow:0 0 0 100vmax rgb(2 7 13/.35); pointer-events:none; }
.operator-feedback { display:flex; align-items:flex-start; gap:.65rem; margin:0; border-radius:.8rem; padding:.8rem 1rem; background:#17324a; color:#dbeafe; font-weight:700; }.operator-feedback[hidden] { display:none; }.operator-feedback::before { content:"ⓘ"; font-size:1.15rem; }.operator-feedback[data-tone="success"] { background:#0e3b2e; color:#bbf7d0; }.operator-feedback[data-tone="error"] { background:#491b25; color:#fecaca; }.operator-feedback[data-tone="warning"] { background:#49350e; color:#fef3c7; }
.operator-review-name { margin:0; font-size:clamp(1.4rem,5vw,2rem); }.operator-counts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.5rem; margin:1rem 0; }.operator-count { padding:.75rem .5rem; border-radius:.75rem; background:var(--op-panel-2); text-align:center; }.operator-count span { display:block; color:var(--op-muted); font-size:.72rem; font-weight:700; }.operator-count strong { display:block; font-size:1.55rem; font-variant-numeric:tabular-nums; }
.operator-category { display:flex; justify-content:space-between; gap:.75rem; padding:.75rem 0; border-top:1px solid #29405a; }.operator-category small { color:var(--op-muted); }.operator-qty { display:grid; grid-template-columns:56px minmax(3rem,1fr) 56px; align-items:center; gap:.5rem; margin:1rem 0; }.operator-qty output { text-align:center; font-size:2rem; font-weight:850; font-variant-numeric:tabular-nums; }.operator-list { display:grid; gap:.5rem; max-height:16rem; overflow:auto; }.operator-list button { text-align:left; }.operator-list small { display:block; margin-top:.2rem; color:var(--op-muted); }
.operator-secondary-actions { display:grid; grid-template-columns:1fr 1fr; gap:.75rem; }.operator-offline { margin-bottom:1rem; }.operator-hidden { display:none !important; }
@media (min-width:48rem) { .operator-workspace { grid-template-columns:minmax(0,1.15fr) minmax(19rem,.85fr); align-items:start; }.operator-scanner { aspect-ratio:1/1; }.operator-home-side { display:grid; gap:1rem; }.operator-action { min-height:92px; } }
@media (max-width:30rem) { .operator-topbar { align-items:flex-start; flex-direction:column; }.operator-kpis { gap:.5rem; }.operator-card { padding:.8rem; }.operator-search { grid-template-columns:1fr; }.operator-secondary-actions { grid-template-columns:1fr; } }
