/* ===== Console on a phone · operator login, the operator's console and the supervisor's ===== */

/* one column down the page, every card the full width rather than the legacy 90% */
#tab-console.tab-panel { padding: 0.75rem var(--page-inset-x) 1rem; }
/* desktop lays the switch and the face side by side in a row · a phone stacks them and lets the page scroll */
#tab-console.tab-panel.active { flex-direction: column; overflow: visible; }
#tab-console .operator-wrap {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.75rem;
  height: auto;
  min-height: 0;
  overflow: visible;
  padding: 0;
}


/* ─── Top of the tab · the face switch, announcement and quick actions stack instead of floating over the cards ─── */
#tab-console .console-switch {
  position: static;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 0.75rem;
}
#tab-console .console-switch.hidden { display: none; }
.console-face { min-height: var(--touch); justify-content: center; font-size: 0.9rem; }
.op-announce-slot,
.op-top-actions,
.op-top-center { position: static; transform: none; width: auto; }
.op-top-actions { justify-content: flex-end; flex-wrap: wrap; }
.op-top-actions > button,
.op-review-alert-btn { min-height: var(--touch); padding: 0 0.9rem; }
.op-top-center:not(:has(.op-review-alert-btn:not(.hidden))) { display: none; }


/* ─── Every operator view · full-width cards, stacked ─── */
#tab-console .operator-view { flex-direction: column; align-items: stretch; gap: 0.75rem; }
#tab-console .operator-view > .operator-card,
#tab-console #op-stage-widget,
#tab-console .op-left-stats-wrap,
#tab-console .op-mid-col,
#tab-console .op-machine-status { width: 100% !important; max-width: 100% !important; min-width: 0; margin: 0; }
#tab-console .op-columns-wrap { width: 100%; padding: 0; }
#tab-console .op-spectate-bar { width: 100%; }
#tab-console .operator-card { padding: 1.25rem 1rem; }
#tab-console #op-stage-widget { max-height: none; }


/* ─── PIN and machine pick · keys and buttons for a gloved thumb ─── */
#tab-console .op-numpad { gap: 0.6rem; }
#tab-console .op-key { min-height: 60px; font-size: 1.45rem; }
#tab-console .op-pin-dots { font-size: 1.6rem; }
#tab-console .op-enter { min-height: 3.5rem; font-size: 1.05rem; }
#tab-console .op-back { min-height: var(--touch); }
#tab-console .op-select { min-height: 3.25rem; }


/* ─── Active console · the machine and its state read at arm's length ─── */
#tab-console .operator-title { font-size: 1.5rem; }
#tab-console .op-status-header { gap: 0.6rem; }
#tab-console .op-status-state { font-size: 1rem; padding: 0.3rem 0.85rem; border-radius: 14px; }
#tab-console .op-status-row { font-size: 0.95rem; padding: 0.4rem 0; }
#tab-console .op-status-val { overflow-wrap: anywhere; }
#tab-console .op-stat-toggle { min-height: var(--touch); align-items: center; }
#tab-console .tab-btn,
#tab-console .op-stats-tab { min-height: var(--touch); }
/* the spectate bar's actions share a line of thumb-sized buttons under what's being watched */
#tab-console .op-spectate-actions { margin-left: 0; width: 100%; flex-wrap: wrap; }
#tab-console .op-spectate-actions .btn-secondary { flex: 1 1 auto; min-height: var(--touch); font-size: 0.85rem; }


/* ─── Supervisor · the switch no longer floats, so the column needs no room cleared for it ─── */
#tab-console .sup-wrap { padding: 0; }
#tab-console .sup-cols { gap: 0.75rem; }
/* one row-card a machine, the full width, so its two lines never squeeze */
.sup-floor { grid-template-columns: minmax(0, 1fr); }
/* the picked machine's figures, then its chart under them, rather than squeezed side by side */
.sup-detail { flex-direction: column; flex: none; gap: 0.75rem; }
.sup-detail-chart { flex: none; min-height: 13rem; }
