/* v6.56: calmer, task-first interface. Advanced controls remain reversible. */
.dl-quickbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 18px;background:linear-gradient(115deg,#12272e,#142d33);border-bottom:1px solid #456a6a55;color:#d9f4ed;font:inherit}
.dl-quickbar p{margin:0;flex:1;min-width:190px;font-size:13px;color:#b9cfca;line-height:1.4}
.dl-quickbar strong{color:#e1f8d0}
.dl-quickbar button,.dl-header-button,.dl-menu-button,.dl-home button{font:inherit;cursor:pointer}
.dl-quickbar button{border:1px solid #6e9c8655;border-radius:10px;padding:10px 14px;background:#d8faad;color:#17261c;font-weight:700}
.dl-quickbar button.dl-quiet{background:#233941;color:#dcebe6}
.dl-header-button{background:#dbf7ab;color:#192b21;padding:9px 12px;border:0;border-radius:10px;font-weight:750}
.dl-simple .secondary-stat{display:none}
.dl-simple .workflow-nav{display:none}
.dl-simple .cinema-toolbar{opacity:.35;transition:opacity .2s}.dl-simple .cinema-toolbar:hover,.dl-simple .cinema-toolbar:focus-within{opacity:1}
.dl-simple .tabs button[data-tab="workers"],.dl-simple .tabs button[data-tab="automation"],.dl-simple .tabs button[data-tab="tasks"],.dl-simple .tabs button[data-tab="contracts"]{display:none}
.dl-simple .world-tabs button:is(#worldTabFactory,#worldTabCompetition,#worldTabEnterprise,#worldTabStatements,#worldTabEquity,#worldTabMaintenance){display:none}
.dl-simple #constructionPane:not(.dl-manual-open){display:none}
.dl-simple .maphead .hint,.dl-simple #flowStats{display:none}
.dl-simple #jumpTasks{display:none}
.dl-simple #run{background:#c8f29c}
.dl-simple #dlModeQuick{white-space:nowrap}
.dl-command-overlay[hidden]{display:none!important}
.dl-command-overlay{position:fixed;inset:0;z-index:6000;display:flex;align-items:center;justify-content:center;background:#051017df;padding:22px;box-sizing:border-box}
.dl-center-open{overflow:hidden}
.dl-home{box-sizing:border-box;width:min(1130px,100%);height:min(860px,96vh);background:#0d1d25;border:1px solid #385b60;border-radius:18px;box-shadow:0 30px 80px #000b;color:#eff8f3;display:flex;flex-direction:column;overflow:hidden;font:14px/1.5 system-ui,-apple-system,Segoe UI,sans-serif}
.dl-home *{box-sizing:border-box}
.dl-home-head{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:15px 20px;border-bottom:1px solid #2b424a;background:#12262d}
.dl-home-head strong{font-size:19px;letter-spacing:-.02em}
.dl-home-head small{display:block;color:#b9ccca}
.dl-home-head button{border:1px solid #476469;border-radius:9px;background:#1b343c;color:#e7f8f2;padding:8px 12px;font-weight:600}
.dl-home-head button:hover,.dl-home button:hover{filter:brightness(1.15)}
.dl-home-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 20px;background:#0e232b;flex-wrap:wrap}
.dl-kpis{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.dl-kpi{display:flex;gap:5px;align-items:baseline;flex-direction:column;border-right:1px solid #2f4950;padding-right:16px}.dl-kpi span{font-size:11px;text-transform:uppercase;letter-spacing:.09em;color:#b9ccc6}.dl-kpi strong{font-size:19px;font-variant-numeric:tabular-nums}
.dl-view-tabs{display:flex;gap:8px}.dl-view-tabs button{padding:9px 13px;border-radius:10px;border:1px solid #36505a;background:#19313a;color:#d6e9e3;font-weight:600}.dl-view-tabs button[aria-pressed="true"]{background:#bdeaa2;color:#11231a;border-color:#bdeaa2}
.dl-scroll{overflow:auto;flex:1;min-height:0;padding:18px 20px 30px;overscroll-behavior:contain}
.dl-home-hero{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:19px;border-radius:14px;background:linear-gradient(110deg,#294c42,#1b3941);margin-bottom:18px}
.dl-eyebrow{font-size:10px;letter-spacing:.14em;color:#c5e4ae;font-weight:750}
.dl-home h2{margin:4px 0 6px;font-size:23px}.dl-home h3{font-size:16px;margin:6px 0 13px}.dl-home p{margin:4px 0 0;color:#c5d5d0;line-height:1.5}
.dl-action{background:#caf3aa;color:#173222;border:0;border-radius:9px;padding:10px 13px;font-weight:750;white-space:nowrap}
.dl-action.dl-quiet{background:#223d43;color:#d9f2e4;border:1px solid #467568}
.dl-home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:24px}
.dl-step{min-height:110px;border:1px solid #304e55;background:#142c35;border-radius:12px;padding:14px;display:flex;align-items:flex-start;gap:10px}
.dl-step>div{flex:1}.dl-step strong{font-size:14px;color:#e4f2e9}.dl-step p{font-size:12px;margin-top:5px}.dl-step .dl-action{font-size:12px;padding:9px}
.dl-number{font-size:13px;color:#bdeb9d;font-weight:800}
.dl-area-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.dl-area{border:1px solid #34535a;border-radius:11px;background:#172d36;text-align:left;padding:13px;color:#e8f6ed;display:flex;flex-direction:column;gap:4px;min-height:110px}
.dl-area-icon{font-size:21px;color:#c9eaa5}.dl-area strong{font-size:13px}.dl-area>span:not(.dl-area-icon){color:#b8e4aa;font-weight:600;font-size:12px}.dl-area small{color:#c0d2cf;font-size:11px}
.dl-alert{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px;border:1px solid #37545d;background:#172c35;border-radius:12px;margin:10px 0}.dl-alert p{font-size:13px}.dl-alert small{color:#a6bcbd}.dl-alert.dl-critical{border-left:4px solid #f4a385}.dl-alert.dl-warning{border-left:4px solid #f2d082}.dl-alert.dl-ok{border-left:4px solid #b9e69a}
.dl-filter{display:block;margin:0 0 15px}.dl-filter select{margin-left:8px;border-radius:8px;background:#16313b;color:#e9f6f2;padding:8px}
.dl-site-row{display:flex;align-items:center;gap:15px;justify-content:space-between;padding:12px 4px;border-bottom:1px solid #3b5156}.dl-site-row span{font-size:12px;color:#bbd1cd}
.dl-home-footer{padding:10px 20px;border-top:1px solid #304750;background:#12252c;display:flex;justify-content:space-between;align-items:center;gap:14px;font-size:12px;color:#a8c1bf}.dl-home-footer button{padding:9px 13px;background:#213943;border:1px solid #54736c;border-radius:8px;color:#edfaf4;font-weight:600}
@media(max-width:800px){.dl-home{height:100%;border-radius:0}.dl-command-overlay{padding:0}.dl-home-head{padding:12px}.dl-home-top{padding:10px 12px}.dl-scroll{padding:13px}.dl-home-grid{grid-template-columns:1fr}.dl-area-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dl-kpis{gap:8px}.dl-kpi{padding-right:10px}.dl-kpi strong{font-size:16px}.dl-view-tabs button{padding:7px 9px}.dl-home-hero{padding:13px}.dl-home-hero h2{font-size:18px}.dl-step{min-height:auto}.dl-quickbar{padding:8px 10px}.dl-quickbar p{font-size:12px}.dl-quickbar button{padding:8px}.dl-home-footer{padding:10px 12px}}
@media(max-width:430px){.dl-area-grid{grid-template-columns:1fr 1fr}.dl-area{min-height:96px;padding:10px}.dl-home-top{align-items:flex-start}.dl-view-tabs{width:100%}.dl-view-tabs button{flex:1}.dl-home-head strong{font-size:16px}.dl-step .dl-action{white-space:normal}.dl-kpi{gap:2px}}

/* Simple Mode dedicates its width to the playable warehouse and only overlays construction when requested. */
@media(min-width:1161px){body.dl-simple .layout{grid-template-columns:minmax(0,1fr) minmax(360px,415px)}body.dl-simple .mapcol{grid-column:1}body.dl-simple .right{grid-column:2}body.dl-simple #constructionPane.dl-manual-open{display:block;position:fixed;z-index:300;left:0;top:0;bottom:0;width:min(360px,95vw);overflow:auto;box-shadow:20px 0 70px #000b}}
@media(min-width:831px) and (max-width:1160px){body.dl-simple .layout{grid-template-columns:minmax(0,1fr) minmax(340px,400px)}body.dl-simple #constructionPane.dl-manual-open{display:block;position:fixed;z-index:300;left:0;top:0;bottom:0;width:min(360px,95vw);overflow:auto;box-shadow:20px 0 70px #000b}}
.dl-strategy{border:1px solid #3a5954;padding:14px;border-radius:12px;background:#112c2e;margin:0 0 20px}.dl-strategy h3{margin:0 0 4px}.dl-strategy>p{font-size:12px}.dl-strategy>small{display:block;margin-top:9px;color:#b4ccc3}.dl-strategy-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:13px}.dl-strategy-choice{background:#19373b;border:1px solid #41636a;color:#dfeee8;border-radius:10px;padding:11px;text-align:left;display:flex;flex-direction:column;gap:4px;min-height:91px}.dl-strategy-choice[aria-pressed="true"]{border-color:#b6e995;box-shadow:inset 0 0 0 1px #b6e995}.dl-strategy-choice strong{color:#d5f5b0}.dl-strategy-choice span{font-size:11px;line-height:1.4;color:#c1d5ce}
@media(max-width:650px){.dl-strategy-options{grid-template-columns:1fr}.dl-strategy-choice{min-height:auto}}

@media(max-width:430px){.dl-home-hero{flex-direction:column;align-items:stretch}.dl-home-hero .dl-action{align-self:flex-start}.dl-kpis{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.dl-kpi{padding-right:5px}.dl-kpi strong{font-size:14px}.dl-kpi span{font-size:9px}}


/* v1.8.7: four actionable warehouse tasks, compact on desktop and phone. */
.dlb-board{background:#0c1b23;border-bottom:1px solid #3b5557;padding:14px 18px;color:#e9f5ed;font:13px/1.5 system-ui,-apple-system,Segoe UI,sans-serif}
body.dl-advanced .dlb-board{display:none}
.dlb-board *{box-sizing:border-box}
.dlb-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.dlb-heading strong{font-size:18px;letter-spacing:-.02em}
.dlb-heading strong span{font-size:11px;color:#9ab5b8;padding-left:7px;letter-spacing:0}
.dlb-heading p{margin:3px 0 0;color:#bed1cb}
.dlb-topcontrols{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.dlb-topcontrols small{color:#9bb5b6}
.dlb-live{font-size:12px;color:#c5f7af;font-weight:800;white-space:nowrap}
.dlb-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.dlb-card{min-width:0;display:flex;flex-direction:column;gap:6px;border:1px solid #36545a;background:#142b35;border-radius:12px;padding:13px}
.dlb-card header{display:flex;align-items:center;gap:8px}
.dlb-card h3{margin:0;font-size:14px;color:#f4f9ee}
.dlb-count{display:inline-flex;align-items:center;justify-content:center;flex:0 0 25px;height:25px;border-radius:7px;background:#315043;color:#c9f6b8;font-size:11px;font-weight:800}
.dlb-card p{margin:0;flex:1;color:#bcd1ce;font-size:12px;min-height:36px}
.dlb-status{color:#d6f2d7;font-size:11px;font-weight:650;overflow-wrap:anywhere}
.dlb-buttons{margin-top:5px}
.dlb-board button{border:0;border-radius:8px;padding:9px 12px;font-weight:750;cursor:pointer;font:inherit;line-height:1.35}
.dlb-board .dlb-primary{background:#c9f4aa;color:#162f20;font-weight:750}
.dlb-board .dlb-secondary{background:#25404b;color:#e6f4ed;border:1px solid #52786c}
.dlb-board button:hover:not(:disabled){filter:brightness(1.08)}
.dlb-board button:focus-visible{outline:3px solid #ffffff;outline-offset:3px}
.dlb-board button:disabled{opacity:.45;cursor:not-allowed}
.dlb-upgrade{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:10px 13px;margin-top:10px;border:1px dashed #3d685e;border-radius:10px;background:#10292b}
.dlb-upgrade b{font-size:13px}.dlb-upgrade p{margin:3px 0 0;font-size:12px;color:#c9dcd2}.dlb-upgrade small{color:#a8bfba;padding-left:6px}
.dlb-upgrade button{flex-shrink:0}
.dlb-notice{margin:10px 0 0;border-left:3px solid #b9e39a;padding:8px 11px;background:#17352f;color:#d3f3de;font-size:12px}
.dlb-notice.error{border-color:#efb08b;background:#392b2a;color:#ffe0d1}
@media(max-width:1250px){.dlb-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dlb-card p{min-height:auto}}
@media(max-width:700px){.dlb-board{padding:11px 10px}.dlb-heading{align-items:flex-start;flex-direction:column;gap:8px}.dlb-grid{gap:7px}.dlb-card{padding:10px}.dlb-card h3{font-size:12px}.dlb-card button{width:100%;font-size:11px;padding:8px 5px}.dlb-status{font-size:10px}.dlb-upgrade{align-items:flex-start;flex-direction:column}.dlb-upgrade button{width:100%}.dlb-heading strong{font-size:16px}}
@media(max-width:390px){.dlb-grid{grid-template-columns:1fr}.dlb-card{gap:4px}}

.dl-home-hero-actions{display:flex;flex-direction:column;gap:7px;align-items:stretch}
.dl-home-hero-actions .dl-action{white-space:normal}
@media(max-width:700px){.dl-home-hero-actions{width:100%}}

/* v1.8.8 — guided first shift; no modal or mandatory interruption. */
.dlt-wrap{background:linear-gradient(105deg,#133333,#102330 80%);color:#e8f4ed;padding:12px 18px;border-bottom:1px solid #416d67;font:13px/1.45 system-ui,-apple-system,Segoe UI,sans-serif}
body.dl-advanced .dlt-wrap{display:none}
.dlt-wrap *{box-sizing:border-box}
.dlt-brief{display:flex;align-items:center;gap:14px;max-width:1600px;margin:0 auto}
.dlt-icon{width:45px;height:45px;display:grid;place-items:center;font-size:24px;border:1px solid #4d8470;border-radius:13px;background:#214a42;flex-shrink:0}
.dlt-brief-copy{flex:1;min-width:0}.dlt-brief-copy strong{font-size:17px;color:#f1f9e7}.dlt-brief-copy strong small{font-size:11px;color:#a7cfc2}.dlt-brief-copy p{margin:3px 0 0;color:#bbd6cb}
.dlt-wrap button{font:inherit;cursor:pointer;padding:10px 14px;border-radius:9px;font-weight:750;border:1px solid transparent;white-space:normal}
.dlt-wrap button:focus-visible{outline:3px solid #fff;outline-offset:3px}
.dlt-wrap .dlt-primary{background:#c7f5a5;color:#143624;border-color:#c7f5a5}
.dlt-wrap .dlt-quiet{background:#244b4e;color:#f1f9e7;border-color:#528280}
.dlt-wrap .dlt-link{background:transparent;border:1px solid #587a77;color:#bfd6d3;padding:6px 9px;font-size:11px}
.dlt-wrap button:hover{filter:brightness(1.10)}
.dlt-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.dlt-heading{display:flex;gap:12px;align-items:flex-start;min-width:0}.dlt-eyebrow{display:inline-block;font-size:10px;font-weight:800;letter-spacing:.07em;text-transform:uppercase;color:#bdf0bf}
.dlt-heading h2{font-size:18px;line-height:1.2;margin:2px 0 5px;color:#f4fff2}.dlt-heading p{color:#bed7d0;margin:0;max-width:650px}
.dlt-header-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:end}.dlt-xp{font-size:12px;color:#f6e2a6;font-weight:800;white-space:nowrap}
.dlt-progress{height:6px;border-radius:10px;background:#2c4b50;overflow:hidden;margin:12px 0 7px}.dlt-progress span{display:block;background:linear-gradient(90deg,#b8e99e,#d9f5af);height:100%;transition:width .2s}
.dlt-missions{display:flex;gap:5px;margin-bottom:12px}.dlt-pill{flex:1;display:grid;place-items:center;border:1px solid #426268;border-radius:5px;font-size:11px;height:24px;color:#a9c6c7;background:#162f39;font-weight:800}.dlt-pill.dlt-current{border-color:#c9f4aa;color:#d4fbb9;background:#365642}.dlt-pill.dlt-done{background:#315a4a;color:#cff0b3;border-color:#79b98e}
.dlt-objective{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border-radius:11px;background:#182f35;border:1px solid #41615a}.dlt-objective strong{color:#eaf3ec;font-size:12px}.dlt-objective p{margin:4px 0 5px;color:#d7e6db}.dlt-objective small{color:#e8d6a0;font-size:11px}
.dlt-action-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.dlt-foot{color:#9fc8bf;margin:9px 2px 0;font-size:11px}.dlt-success{border:1px solid #6aa476;border-radius:10px;padding:14px;margin:12px 0;background:#224a39}.dlt-success strong{font-size:17px;color:#e7ffce}.dlt-success p{margin:5px 0 0;color:#d0e9d7}
@media(max-width:750px){.dlt-wrap{padding:12px 10px}.dlt-brief,.dlt-header,.dlt-objective{flex-direction:column;align-items:stretch}.dlt-brief{gap:8px}.dlt-brief .dlt-icon{display:none}.dlt-heading .dlt-icon{width:37px;height:37px;font-size:20px}.dlt-heading h2{font-size:16px}.dlt-header-tools{justify-content:space-between}.dlt-action-row{width:100%}.dlt-action-row button{flex:1}.dlt-objective{gap:10px}}
