#productionOverview { padding: clamp(14px,2vw,28px); }
.po-heading, .po-tools, .po-order { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.po-heading { margin-bottom:18px; }
.po-heading h2, .po-confirm h2 { margin:0; }
.po-heading label { display:grid; gap:4px; }
.po-tools { justify-content:flex-start; margin:12px 0; }
.po-stages { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(155px,100%),1fr)); gap:8px; }
.po-stage, .po-day, .po-order { background:var(--control); color:var(--ink); border:1px solid var(--line); border-radius:8px; padding:12px; text-align:left; cursor:pointer; }
.po-stage { display:grid; align-content:space-between; gap:8px; }
.po-stage i { display:block; border-radius:4px; height:4px; background:#51472a; }
.po-stage b { display:block; height:100%; background:#ffd239; border-radius:4px; }
.po-stage[aria-pressed=true], .po-day[aria-pressed=true] { border-color:#ffd239; box-shadow:inset 0 0 0 1px #ffd239; }
.po-stage span, .po-order small, .po-day small { display:block; font-size:.82rem; }
.po-order { width:100%; margin-bottom:6px; }
.po-order span { overflow-wrap:anywhere; }
.po-order span:last-child { text-align:right; }
.po-calendar { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:5px; }
.po-calendar > span { text-align:center; font-weight:bold; }
.po-day { min-width:0; min-height:74px; }
.po-day[aria-current=date] strong { text-decoration:underline; text-underline-offset:3px; }
.po-confirm { width:min(560px,92vw); max-height:85vh; padding:24px; color:var(--ink); background:var(--panel,#252627); }
.po-confirm::backdrop { background:#000a; }
.po-preview { max-height:44vh; overflow:auto; }
.po-preview p { padding:8px 0; margin:0; border-top:1px solid #555; }
#productionViewTabs { max-width:100%; flex-wrap:wrap; }
@media(max-width:700px){
  .po-stage { padding:10px; }
  .po-calendar { grid-template-columns:1fr; }
  .po-calendar > span { display:none; }
  .po-day { display:flex; align-items:center; gap:8px; min-height:42px; }
  .po-day::before { content:attr(data-weekday); min-width:2em; }
  .po-day strong { margin-right:auto; }
  #productionViewTabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  #productionViewTabs.hidden { display:none; }
}
