/* mindenops house style for the MES (2026-10-22). Loaded LAST on every page, so the views keep their own layout and
   logic and only take the look of the rest of mindenops.com: white page (Bloom in dark), soft layered shadows instead
   of borders, 18 px radii, light Montserrat headings, neutral chips, The Beam only as an accent.
   Same tokens as minden-shell (public/labour). */
:root{
  --mono:'Montserrat',system-ui,sans-serif;      /* the house uses mono almost nowhere; codes read fine in Montserrat */
  --radius:18px;
  --bg:#FFFFFF;--surface:#FFFFFF;--surface2:#FFFFFF;--surface3:#f0f2f3;
  --border:rgba(0,0,0,.08);--border-strong:rgba(0,0,0,.12);
  --text:#333F48;--text-sec:#515c64;--text-muted:#6b7780;
  --success:#1f8a5b;--success-bg:rgba(31,138,91,.10);--success-border:rgba(31,138,91,.22);
  --warning:#a86a00;--warning-bg:rgba(214,145,0,.12);--warning-border:rgba(214,145,0,.24);
  --danger:#b4373a;--danger-bg:rgba(180,55,58,.09);--danger-border:rgba(180,55,58,.22);
  --card-shadow:0 1px 2px rgba(0,0,0,.04),0 8px 24px rgba(0,0,0,.06);
}
:root[data-theme="dark"]{
  --bg:#07080c;--surface:#0f121b;--surface2:#0f121b;--surface3:#161a24;
  --border:rgba(255,255,255,.10);--border-strong:rgba(255,255,255,.14);
  --text:#FFFFFF;--text-sec:#D9D9D6;--text-muted:#8f999f;
  --success:#5fd19d;--success-bg:rgba(95,209,157,.12);--warning:#f0b44c;--warning-bg:rgba(240,180,76,.12);
  --danger:#f08a8c;--danger-bg:rgba(240,138,140,.12);
  --card-shadow:0 1px 2px rgba(0,0,0,.3),0 8px 32px rgba(0,0,0,.4);
}
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]){
  --bg:#07080c;--surface:#0f121b;--surface2:#0f121b;--surface3:#161a24;
  --border:rgba(255,255,255,.10);--border-strong:rgba(255,255,255,.14);
  --text:#FFFFFF;--text-sec:#D9D9D6;--text-muted:#8f999f;
  --success:#5fd19d;--success-bg:rgba(95,209,157,.12);--warning:#f0b44c;--warning-bg:rgba(240,180,76,.12);
  --danger:#f08a8c;--danger-bg:rgba(240,138,140,.12);
  --card-shadow:0 1px 2px rgba(0,0,0,.3),0 8px 32px rgba(0,0,0,.4);
}}
body{background:var(--mo-page,var(--bg));font-size:15px;-webkit-font-smoothing:antialiased}

/* Header strips: no bands, no rules, more air */
.topbar,.station-bar,.proto-note{background:transparent;border-bottom:0}
.topbar{padding:18px 24px 6px}
.station-bar{padding:6px 24px 10px;flex-wrap:wrap;gap:10px}
.proto-note{padding:0 24px 4px;color:var(--text-muted)}
.logo{font-size:22px;font-weight:300;letter-spacing:-.01em}
.proto-badge{border:0;background:var(--surface3);color:var(--text-sec);font-weight:600;padding:3px 10px}
.station-name{font-size:26px;font-weight:300;letter-spacing:-.02em}
.station-badge,.dept-badge,.fam-tag,.job-badge{background:var(--surface3);color:var(--text-sec);font-weight:600}
.station-meta,.clock{color:var(--muted,var(--text-muted))}
select,.dept-select,input,.cfg-input{font-family:var(--sans);border:1px solid var(--border)!important;border-radius:10px!important;background:var(--surface)}

/* Columns: separated by space, not lines */
.main{gap:18px;padding:8px 24px 24px}
.left-col{border-right:0;padding:0}
.right-col{background:transparent;padding:0}

/* Cards */
.card,.next-card,.station-card,.cfg-card,.action-prompt-box{border:0!important;border-radius:18px!important;box-shadow:var(--card-shadow);background:var(--surface)}
.card{padding:20px 22px}
.card-label,.next-label,.section-label,.col-lbl{letter-spacing:.12em;font-weight:600;color:var(--text-muted)}
.pdesc{font-size:clamp(30px,3.4vw,40px);font-weight:300;letter-spacing:-.02em}
.qty-value{font-weight:300}
.meta-value{font-weight:500}
.color-chip,.color-pill,.c-chip{border:0!important;background:var(--surface3);border-radius:999px}
.notch-badge,.lt-badge,.overdue-badge{border:0!important;border-radius:999px;font-weight:600}

/* Queue */
.queue-item{border:0!important;border-radius:14px!important;background:var(--surface);box-shadow:0 1px 2px rgba(0,0,0,.04)}
.queue-num{color:var(--text-muted)}

/* Action buttons: big for the floor, soft like the rest */
.action-btn{border-radius:18px!important;border:0!important;box-shadow:var(--card-shadow)}

/* Leader view */
.tabs{gap:6px;padding:8px 24px;border:0;background:transparent}
.tab{border:1px solid var(--border)!important;border-radius:999px!important;background:var(--surface);font-weight:600;padding:7px 14px}
.tab.active{background:var(--text)!important;color:var(--bg)!important;border-color:var(--text)!important}
.station-card{padding:16px 18px}
.queue-hdr{background:transparent;border:0;padding:14px 24px}
.queue-table .q-row{background:transparent!important;border-bottom:1px solid var(--border)}
.queue-table .q-row.q-hdr{border-bottom:1px solid var(--border-strong)}
.pipe-btn,.pipe-step-m{border-radius:999px!important}

/* Color in the leader queue: a soft rounded tag, not a pill (the text runs to several lines) */
.queue-table .color-pill,.queue-table .color-sel,.queue-table .c-chip{border-radius:10px!important;text-align:left;line-height:1.3}
.queue-table .color-pill{max-width:100%;font-size:12px}
.fam-tag{border-radius:10px!important;line-height:1.3}
.queue-title{font-size:17px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--text)}

/* Config */
.cfg-shell{gap:18px}
.cfg-card{padding:18px 20px}

@media (max-width:860px){
  .topbar,.station-bar,.proto-note,.tabs,.queue-hdr{padding-left:16px;padding-right:16px}
  .topbar{flex-wrap:wrap;gap:8px}
  /* Operator View: one column on a phone; the queue goes under the current task, full width */
  .main{grid-template-columns:minmax(0,1fr)!important;padding:8px 16px 24px}
  .left-col,.right-col{overflow:visible}
  .top-section{flex-wrap:wrap}
  .pdesc{font-size:30px}
  .meta-grid{grid-template-columns:minmax(0,1fr)!important}
  .actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .station-bar select,.dept-select{max-width:100%}
  /* Leader: the queue table scrolls inside itself, never the page */
  .queue-table{overflow-x:auto}
}
