/* Desktop floor operations and the two TV surfaces; existing form controls keep their IDs. */
@media screen {
  :root {
    --ops-paper:#f6f2ec; --ops-ink:#302824; --ops-muted:#6e615c;
    --ops-stroke:#e2d8ce; --ops-wine:#6d2843; --ops-rose:#a7355a;
    --ops-blush:#f8eaf0; --ops-mist:#faf8f5;
  }
  body[data-design94="production_v2"] .workspace { max-width:1540px; margin-inline:auto; padding:clamp(18px,2.1vw,34px); }
  body[data-design94="production_v2"].live-embedded > .main { margin-inline-start:0; }
  body[data-design94="production_v2"] .pagehead { padding:0 0 16px; margin-bottom:18px; border-bottom:1px solid var(--ops-stroke); }
  body[data-design94="production_v2"] .pagehead h1, body[data-design94="production_follow78"] h1,
  body[data-design94="warehouse80"] #content h1 { color:var(--ops-ink); font-size:clamp(24px,2.3vw,34px); font-weight:800; line-height:1.2; margin-block:0 6px; }
  body[data-design94="production_v2"] .production-intro94 {
    background:var(--ops-wine); color:#fff; padding:20px 23px; border-radius:13px; border:0;
    display:flex; justify-content:space-between; align-items:center; gap:16px; margin:0;
  }
  body[data-design94="production_v2"] .production-intro94 h2 { color:white; font-size:23px; margin:0 0 4px; }
  body[data-design94="production_v2"] .production-intro94 p { color:#f1dfe7; margin:0; line-height:1.5; }
  body[data-design94="production_v2"] #content .production-intro94 .actions > button { background:transparent; color:white; border:1px solid #dbaaba; }
  body[data-design94="production_v2"] #content .production-intro94 .actions > button.primary { background:#fff; color:#792f4d; border-color:#fff; }
  body[data-design94="production_v2"] .production-intro94 button:hover { background:#f9e9f0; color:#66233e; }
  body[data-design94="production_v2"] #content :is(.tabs,.tabbar) {
    display:flex; align-items:center; flex-wrap:wrap; column-gap:6px; padding:6px; border-radius:9px;
    background:#efe9e1; width:fit-content; max-width:100%;
  }
  body[data-design94="production_v2"] #content :is(.tabs,.tabbar) button { border-radius:6px; min-height:34px; }
  body[data-design94="production_v2"] #content :is(.tabs,.tabbar) :is(.active,[aria-selected="true"]) { background:white; color:var(--ops-wine); box-shadow:0 1px 3px #60453420; }
  body[data-design94="production_v2"] #content .querybar { border:1px solid var(--ops-stroke); border-left:3px solid #ba7e8e; background:var(--ops-mist); border-radius:9px; }
  body[data-design94="production_v2"] form.querybar.report-query34 > button {
    min-height:38px; height:auto; padding:8px 16px; border:1px solid;
    border-radius:8px; font-size:14px; line-height:1.4; font-weight:650; white-space:nowrap;
  }
  body[data-design94="production_v2"] form.querybar.report-query34 > button[type="submit"] {
    background:var(--desk-rose); border-color:var(--desk-rose); color:#fff;
  }
  body[data-design94="production_v2"] form.querybar.report-query34 > button[type="submit"]:hover:not(:disabled) {
    background:var(--desk-rose-dark); border-color:var(--desk-rose-dark);
  }
  body[data-design94="production_v2"] form.querybar.report-query34 > button:is([data-act="resetQuery"],[data-act="reportReset34"]) {
    background:#fff; border-color:#ad7989; color:var(--desk-rose-dark);
  }
  body[data-design94="production_v2"] form.querybar.report-query34 > button:is([data-act="resetQuery"],[data-act="reportReset34"]):hover:not(:disabled) {
    background:var(--desk-blush); border-color:var(--desk-rose-dark);
  }
  body[data-design94="production_v2"] form.report-query34 .query-more94[open] { flex-basis:100%; min-width:0; grid-column:1 / -1; }
  body[data-design94="production_v2"] form.report-query34 .query-more94[open] > div {
    position:static; width:100%; box-sizing:border-box; box-shadow:none;
    grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));
  }
  body[data-design94="production_v2"] form.report-query34 .query-more94 :is(label,input,select) { min-width:0; max-width:100%; }
  body[data-design94="production_v2"] #content .card-title { align-items:center; padding-block:5px 12px; margin-bottom:8px; border-bottom:1px solid var(--ops-stroke); }
  body[data-design94="production_v2"] #content :is(.card,.style-card,.table-wrap) { min-width:0; }
  body[data-design94="production_v2"] #content .table-wrap { max-width:100%; overflow:auto; }
  body[data-design94="production_v2"] #content thead th,
  body[data-design94="production_follow78"] .order-table thead th,
  body[data-design94="warehouse80"] #content thead th { color:#60554d; background:#f4eee7; border-block:1px solid #e1d6cc; font-weight:700; }
  body[data-design94="production_v2"] #content :is(th,td),body[data-design94="warehouse80"] #content :is(th,td) { padding-block:10px; font-variant-numeric:tabular-nums; }
  body[data-design94="production_v2"] .quickgrid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
  body[data-design94="production_v2"] .quickgrid button { display:flex; justify-content:flex-start; align-items:center; padding:8px 11px; gap:8px; min-width:0; }
  body[data-design94="production_v2"] .quickgrid svg { color:var(--ops-rose); flex:none; }
  body[data-design94="production_v2"] #sidebar .nav button {gap:8px; padding-inline:9px;}
  body[data-design94="production_v2"] #sidebar .nav button span {white-space:nowrap;}
  body[data-design94="production_v2"] #sidebar .nav button .icon {flex:none;}
  body[data-design94="production_v2"] #sidebar .nav button.active {box-shadow:inset 3px 0 var(--ops-rose);}
  body[data-design94="production_v2"] #sidebar .nav button.active::after {display:none;}
  body[data-design94="production_v2"] #content .metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; background:white; border:1px solid var(--ops-stroke); border-radius:12px; overflow:hidden; }
  body[data-design94="production_v2"] #content .metrics > * { min-width:0; padding:15px; border:0; border-radius:0; box-shadow:none; }
  body[data-design94="production_v2"] #content .metrics > * + * {border-inline-start:1px solid var(--ops-stroke);}
  body[data-design94="production_v2"] .animate-in:has(>.production-intro94) { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(260px,1fr); align-items:start; gap:15px; }
  body[data-design94="production_v2"] .animate-in:has(>.production-intro94) > * { margin:0; min-width:0; }
  body[data-design94="production_v2"] .animate-in:has(>.production-intro94) > :is(.production-intro94,.metrics,.grid2) { grid-column:1/-1; }
  body[data-design94="production_v2"] .animate-in:has(>#pd44-overview) > .production-intro94 {grid-column:1;grid-row:1;align-self:stretch;}
  body[data-design94="production_v2"] .animate-in:has(>.production-intro94) > #pd44-overview {grid-column:2;grid-row:1;align-self:stretch;}
  body[data-design94="production_v2"] .animate-in:has(>.production-intro94) > .metrics {grid-row:2;}
  body[data-design94="production_v2"] .animate-in:has(>.production-intro94) > .grid2 {grid-row:3; display:grid; gap:15px; grid-template-columns:inherit;}
  body[data-design94="production_v2"] .animate-in:has(>.production-intro94) > .card:has(.quickgrid) {grid-column:2;grid-row:4}
  body[data-design94="production_v2"] .animate-in:has(>.production-intro94) > .card:last-child {grid-column:1;grid-row:4}

  body[data-design94="production_follow78"] .main { width:auto; max-width:1480px; margin:0 auto; padding:26px clamp(16px,3vw,48px); }
  body[data-design94="production_follow78"] .topbar { position:relative; inset:auto; max-width:none; }
  body[data-design94="production_follow78"] .heading { margin:0 0 12px; }
  body[data-design94="production_follow78"] .identity-note { width:fit-content; padding:5px 10px; margin:0 0 15px; border-radius:5px; background:#ede8e1; }
  body[data-design94="production_follow78"] .metrics { grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; padding:0; margin:0 0 16px; background:white; border:1px solid var(--ops-stroke); border-radius:12px; overflow:hidden; }
  body[data-design94="production_follow78"] .metrics > div { padding:13px 18px; box-shadow:none; border:0; border-radius:0; }
  body[data-design94="production_follow78"] .metrics > div + div { border-inline-start:1px solid var(--ops-stroke); }
  body[data-design94="production_follow78"] .metrics .metric-warning { background:#fff5e4; color:#80541e; }
  body[data-design94="production_follow78"] .panel-heading { padding:16px 19px; border-bottom:1px solid var(--ops-stroke); }
  body[data-design94="production_follow78"] .work-grid {grid-template-columns:minmax(0,1.8fr) minmax(290px,1fr);gap:16px}
  body[data-design94="production_follow78"] .side-column .panel {border-top:3px solid var(--ops-wine);}

  body[data-design94="warehouse80"] > main {max-width:1460px; margin:0 auto; padding:24px clamp(17px,3vw,42px);}
  body[data-design94="warehouse80"] #content > h1 {margin-top:4px;}
  body[data-design94="warehouse80"] #content > h1 + p {color:var(--ops-muted);font-size:14px;margin:0 0 19px;}
  body[data-design94="warehouse80"] #content > .cards {
    display:grid; grid-template-columns:repeat(auto-fit,minmax(min(235px,100%),1fr)); gap:11px; border-top:1px solid var(--ops-stroke); padding-top:18px;
  }
  body[data-design94="warehouse80"] #content .cards > a.card {display:grid; align-content:center; align-items:start; min-height:115px; gap:6px; padding:17px 20px; background:#fff; border:1px solid var(--ops-stroke); border-radius:10px; box-shadow:none;}
  body[data-design94="warehouse80"] #content .cards > a.card h2 {font-size:18px;line-height:1.25;}
  body[data-design94="warehouse80"] #content .cards > a.card span {font-size:13px;line-height:1.5;}
  body[data-design94="warehouse80"] #content .cards > a[href="#picking"] {background:var(--ops-wine);color:#fff;border-color:var(--ops-wine);}
  body[data-design94="warehouse80"] #content .cards > a[href="#picking"] h2 {color:#fff}
  body[data-design94="warehouse80"] #content .cards > a[href="#picking"] span {color:#f4dbe6}
  body[data-design94="warehouse80"] #content .cards > a:hover {border-color:var(--ops-rose);box-shadow:0 2px 6px #65443919;}
  body[data-design94="warehouse80"] #content > .toolbar {display:flex; align-items:end; flex-wrap:wrap; gap:12px; padding:15px 18px; background:#fff; border:1px solid var(--ops-stroke); border-left:3px solid #b8798c; border-radius:9px;}
  body[data-design94="warehouse80"] #content .toolbar label:has(#history-toggle) {display:inline-flex;align-items:center;gap:7px;white-space:nowrap;}
  body[data-design94="warehouse80"] #content .toolbar #history-toggle {width:16px;height:16px;min-width:16px;flex:0 0 16px;margin:0;}
  body[data-design94="warehouse80"] #content .count-head89 {border:0; background:var(--ops-wine);color:#fff;border-radius:12px; padding:19px 23px;}
  body[data-design94="warehouse80"] #content .count-head89 h1 {color:white;}
  body[data-design94="warehouse80"] #content .count-head89 :is(small,p) {color:#f3e5eb;}
  body[data-design94="warehouse80"] #content .count-flow89 {color:#66243b;background:#fff2f6;}
  body[data-design94="warehouse80"] #content .count-guide89 {margin:13px 0; display:flex;flex-wrap:wrap;gap:15px; padding:9px 14px;border:1px solid #e8dcc8;background:#fcf7ed;border-radius:6px;color:#725738;}
  body[data-design94="warehouse80"] #content .count-guide89 span {background:none;border:0;}
  body[data-design94="warehouse80"] #content #rows :is(article,details).card {border:1px solid var(--ops-stroke); border-radius:9px; background:white;}
  body[data-design94="warehouse80"] #content details.card[open] {border-color:#bc8c9c;}
  body[data-design94="warehouse80"] #content details.card[open]>summary {padding-bottom:12px; border-bottom:1px solid var(--ops-stroke);}
  body[data-design94="warehouse80"] .card.login { max-width:410px; margin:5vh auto; padding:24px; border-top:4px solid var(--ops-wine);}

  /* Original order maintenance: filters stay visible when moving among the nine views. */
  body:has(.maintenance-tools) .wrap {max-width:1500px;}
  body:has(.maintenance-tools) main {background:transparent;}
  body:has(.maintenance-tools) .maintenance-tools {display:flex;flex-wrap:wrap; gap:14px; align-items:end; padding:13px 16px; border:1px solid var(--ops-stroke);border-inline-start:3px solid var(--ops-wine); border-radius:8px; background:white;}
  body:has(.maintenance-tools) #views {margin:12px 0 18px; padding:4px; display:flex; flex-wrap:wrap; gap:4px; background:#ece7e1; border-radius:8px;}
  body:has(.maintenance-tools) #views .tab {border:0; background:transparent; color:var(--ops-muted); border-radius:5px; min-height:34px;}
  body:has(.maintenance-tools) #views .tab.active {background:white;color:var(--ops-wine);box-shadow:0 1px 2px #62483d25;}
  body:has(.maintenance-tools) #content {min-width:0;}
  body:has(#incident-list) .order-header {background:#fcf7f9;border-inline-start:4px solid var(--ops-wine);}
  body:has(#incident-list) .workbench {grid-template-columns:minmax(250px,.82fr) minmax(0,1.65fr);gap:14px;}
  body:has(#incident-list) .list-panel .section-title {padding-bottom:12px;border-bottom:1px solid var(--ops-stroke);}
  body:has(#incident-list) .history {background:var(--ops-mist);border-radius:8px;padding:12px 15px;}

  .ops-launch {margin:0;padding:clamp(20px,3.2vw,48px);background:var(--ops-paper);color:var(--ops-ink);}
  .ops-launch main {display:grid;grid-template-columns:minmax(235px,.55fr) minmax(0,1.8fr);max-width:1550px;margin:auto;gap:24px;align-items:start;}
  .ops-launch .launch-controls {padding:19px 20px;border-radius:12px;border:1px solid var(--ops-stroke);background:white;}
  .ops-launch h1 {font-size:24px;margin:0 0 12px;}
  .ops-launch p {font-size:14px;color:var(--ops-muted);line-height:1.7;}
  .ops-launch :is(button,a) {margin:3px 5px 3px 0;padding:8px 12px;font-size:14px;line-height:1.4;}
  .ops-launch button {background:var(--ops-rose);color:white;border-color:var(--ops-rose);}
  .ops-launch #display {margin:0;width:100%;height:auto;aspect-ratio:16/9;box-shadow:0 2px 12px #49332621;}
  .ops-launch #display:fullscreen {width:100vw;height:100vh;}

  .ops-promo #stage {background:#f7f1e8;outline:1px solid #e4d7c8;}
  .ops-promo #stage .tv-layout {padding:1.35cqw 1.7cqw 1.05cqw;gap:.8cqw;grid-template-rows:6.9cqw minmax(0,1fr) 2.95cqw;}
  .ops-promo #stage .tv-top {grid-template-columns:1.05fr 1.28fr 1.2fr .8fr;gap:1.4cqw;border-bottom:.1cqw solid #dacbbc;padding-bottom:.48cqw;}
  .ops-promo #stage .section-heading {border-left:0;padding:0;}
  .ops-promo #stage .style-inspiration {max-height:6.1cqw;}
  .ops-promo #stage .top-message {border-color:#d8c9b8;padding-left:1cqw;}
  .ops-promo #stage .tv-content {gap:1.05cqw;grid-template-columns:minmax(0,3.18fr) minmax(0,1fr);}
  .ops-promo #stage .catalog-page:not(.market-page):not(.brand-film-page) {gap:.73cqw;}
  .ops-promo #stage .product-card {border-radius:.48cqw;border-color:#d9cbbb;}
  .ops-promo #stage .product-copy {padding:.52cqw .73cqw;min-height:4.05cqw;border-top:.08cqw solid #e4d9cc;}
  .ops-promo #stage .product-price {font-variant-numeric:tabular-nums;font-weight:720;font-size:2.28cqw;}
  .ops-promo #stage .product-price.long-price {font-size:1.68cqw;}
  .ops-promo #stage #qr-rail {padding-left:.75cqw;border-left:.12cqw solid #d6c5b8;gap:.65cqw;}
  .ops-promo #stage .qr-card {padding:.55cqw; gap:.55cqw; border-radius:.52cqw;}
  .ops-promo #stage .qr-card:first-child {background:#fff9fa;box-shadow:inset 0 .19cqw 0 #a7355a;}
  .ops-promo #stage .qr-copy h3 {font-size:1.26cqw;white-space:normal;line-height:1.25;}
  .ops-promo #stage .qr-copy p {font-size:.86cqw;}
  .ops-promo #stage .qr-copy small {font-size:.79cqw;}
  .ops-promo #stage .market62-page {border-color:#dfd3c7;background:#fffaf5;}
  .ops-promo #stage .market62-page .market-head {border-bottom:1px solid #e2d6cc;}
  .ops-promo #stage .tv-bottom {border-top:.1cqw solid #d8c9bc;}
  .ops-tv-admin .workspace {max-width:1520px;}
  .ops-tv-admin .page-heading {padding:18px 21px;background:var(--ops-wine);color:white;border-radius:12px;}
  .ops-tv-admin .page-heading :is(h1,p,.eyebrow) {color:white;}
  .ops-tv-admin .page-heading .secondary {color:var(--ops-wine);background:#fff;}
  .ops-tv-admin .section-tabs {gap:6px;background:#ede6de;padding:5px;width:fit-content;max-width:100%;border:0;border-radius:8px;}
  .ops-tv-admin .section-tabs button {padding:8px 15px;border:0;min-height:36px;}
  .ops-tv-admin .section-tabs button.selected {color:var(--ops-wine);background:white;border-radius:5px;}
  .ops-tv-admin .catalog-toolbar {border-bottom:1px solid var(--ops-stroke);padding-bottom:10px;}
  body:has(>video#film) nav {padding:4px;background:#39283399;border-radius:9px;}
  body:has(>video#film) nav button {border-radius:6px;}
}
@media screen and (min-width:1001px) {
  body[data-design94="production_v2"]:not(.live-embedded) #sidebar {width:218px;}
  body[data-design94="production_v2"]:not(.live-embedded) > .main,
  body[data-design94="production_v2"]:not(.live-embedded) #sidebar ~ .main {margin-inline-start:218px;}
}
@media screen and (max-width:1000px) {
  body[data-design94="production_v2"] .animate-in:has(>.production-intro94) {display:flex;flex-direction:column;align-items:stretch;}
  body[data-design94="production_v2"] .animate-in:has(>.production-intro94) > .grid2 {grid-template-columns:minmax(0,1fr);}
  body[data-design94="production_v2"] .quickgrid {grid-template-columns:repeat(auto-fit,minmax(120px,1fr));}
  body[data-design94="production_follow78"] .work-grid {grid-template-columns:minmax(0,1fr);}
  .ops-launch main {grid-template-columns:1fr;}
}
@media screen and (max-width:650px) {
  body[data-design94="production_v2"] #content .metrics,body[data-design94="production_follow78"] .metrics {grid-template-columns:repeat(2,minmax(0,1fr));}
  body[data-design94="production_v2"] .production-intro94 {align-items:start;flex-direction:column;}
  body[data-design94="production_follow78"] .identity-note {display:block;}
  body:has(#incident-list) .workbench {grid-template-columns:1fr;}
  .ops-tv-admin .page-heading {align-items:start;flex-direction:column;}
}
