/* Fluid operational pages: the viewport determines capacity, not a fixed canvas. */
html[data-theme] .admin-shell :is(.dashboard-main,.admin-main:has(.dw-view-tabs)){width:100%;max-width:none;min-width:0;margin-inline:0;box-sizing:border-box}
html[data-theme] .admin-shell .dw-workspace{width:100%;max-width:none;margin-inline:0;min-width:0}
html[data-theme] .admin-shell .command-dashboard .dash-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
html[data-theme] .admin-shell .command-dashboard .map-panel:not(.map-is-fullscreen){grid-template-rows:auto auto clamp(320px,46dvh,760px) auto}
html[data-theme] .admin-shell .command-dashboard .dash-bottom{grid-template-columns:minmax(0,.85fr) minmax(0,1.35fr) minmax(0,1fr)}
html[data-theme] .admin-shell .command-dashboard .activity-panel{grid-column:auto}
html[data-theme] .admin-shell .dw-layout{grid-template-columns:clamp(144px,10vw,192px) minmax(0,1fr);gap:16px}
html[data-theme] .admin-shell .dw-workspace .dw-orders{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,288px),1fr));gap:16px;align-items:start;min-width:0}
html[data-theme] .admin-shell .dw-workspace .dw-order{box-sizing:border-box;width:100%;max-width:430px;min-width:0;overflow-wrap:anywhere}
html[data-theme] .admin-shell .dw-workspace .dw-empty{grid-column:1/-1;min-width:0}
html[data-theme] .admin-shell .dw-workspace :is(.dw-work-content,.dw-tools,.dw-query,.dw-filter-options,.dw-advanced-fields,.dw-batch-bar,.dw-list-heading,.dw-pagination,.dw-group-grid,.dw-load){min-width:0;max-width:100%;box-sizing:border-box}
html[data-theme] .admin-shell .dw-workspace .dw-query{display:grid;grid-template-columns:minmax(0,2fr) repeat(2,minmax(0,1fr));gap:12px}
html[data-theme] .admin-shell .dw-workspace .dw-advanced-fields{grid-template-columns:repeat(auto-fit,minmax(min(100%,176px),1fr))}
html[data-theme] .admin-shell .dw-workspace .dw-orientation{flex-wrap:wrap;gap:12px}
html[data-theme] .admin-shell .dw-workspace .dw-orientation ol{flex-wrap:wrap;gap:12px}
html[data-theme] .admin-shell .dw-workspace :is(.dw-list-heading,.dw-pagination,.dw-batch-bar){flex-wrap:wrap;gap:12px}
html[data-theme] .admin-shell .dw-workspace .dw-batch-bar>div{min-width:0;overflow-wrap:anywhere}
html[data-theme] .admin-shell .dw-workspace .dw-group-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr))}
html[data-theme] .admin-shell .dw-workspace .dw-group-grid>article{max-width:none;min-width:0}
html[data-theme] .admin-shell .dw-workspace .dw-load>div{grid-template-columns:repeat(auto-fit,minmax(min(100%,192px),1fr))}
/* Seven stages retain reading order, wrapping instead of requiring page scrolling. */
html[data-theme] .admin-shell .flow-nodes{grid-template-columns:repeat(auto-fit,minmax(min(100%,144px),1fr));overflow:visible;gap:8px}
html[data-theme] .admin-shell .flow-nodes button{min-width:0}
html[data-theme] .admin-shell .flow-nodes button:after{display:none}
html[data-theme] .admin-shell .admin-kanban{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));overflow:visible;align-items:start;gap:12px}
html[data-theme] .admin-shell .admin-kanban-column{min-width:0;min-height:240px;box-sizing:border-box}
html[data-theme] .admin-shell .admin-kanban-column :is(header,summary,footer,p){min-width:0;overflow-wrap:anywhere}
html[data-theme] .admin-shell .admin-kanban-column footer{flex-wrap:wrap}
html[data-theme] .admin-shell .admin-main:has(.dw-view-tabs) :is(.admin-toolbar,.order-query){min-width:0;max-width:100%;box-sizing:border-box}
@media(min-width:2200px){html[data-theme] .admin-shell .command-dashboard .dash-kpis{grid-template-columns:repeat(8,minmax(0,1fr))}html[data-theme] .admin-shell .command-dashboard .dash-kpis>article:nth-child(n+5){min-height:136px}html[data-theme] .admin-shell .command-dashboard .dash-side .dash-status-list{grid-template-columns:repeat(7,minmax(0,1fr))}}
@media(max-width:1280px){html[data-theme] .admin-shell .dw-layout{grid-template-columns:minmax(0,1fr)}html[data-theme] .admin-shell .dw-queue-rail{position:static;padding:12px;min-width:0}html[data-theme] .admin-shell .dw-workspace .dw-queues{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,128px),1fr));gap:8px;overflow:visible;margin:0;padding:0}html[data-theme] .admin-shell .dw-queues>section{display:contents}html[data-theme] .admin-shell .dw-queues section h3,html[data-theme] .admin-shell .dw-queue-rail>p{display:none}html[data-theme] .admin-shell .dw-workspace .dw-queues button{width:100%;margin:0;padding:8px;white-space:normal;min-width:0}html[data-theme] .admin-shell .dw-summary{grid-template-columns:repeat(2,minmax(0,1fr))}html[data-theme] .admin-shell .command-dashboard .dash-bottom{grid-template-columns:minmax(0,.85fr) minmax(0,1.35fr)}html[data-theme] .admin-shell .command-dashboard .activity-panel{grid-column:1/-1}}
@media(max-width:1050px){html[data-theme] .admin-shell .command-dashboard .map-panel>.map-legend{grid-template-columns:repeat(4,minmax(0,1fr))}html[data-theme] .admin-shell .command-dashboard .dash-side{grid-template-columns:minmax(0,1fr)}html[data-theme] .admin-shell .command-dashboard .dash-side .dash-status-list{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){html[data-theme] .admin-shell .command-dashboard .dash-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}html[data-theme] .admin-shell .command-dashboard .dash-bottom{grid-template-columns:minmax(0,1fr)}html[data-theme] .admin-shell .command-dashboard .activity-panel{grid-column:auto}html[data-theme] .admin-shell .command-dashboard .map-panel:not(.map-is-fullscreen){grid-template-rows:auto auto 360px auto}html[data-theme] .admin-shell .dw-workspace .dw-query{grid-template-columns:repeat(2,minmax(0,1fr))}html[data-theme] .admin-shell .dw-workspace .dw-query .dw-search{grid-column:1/-1}html[data-theme] .admin-shell .dw-workspace .dw-filter-options{flex-wrap:wrap}html[data-theme] .admin-shell .dw-workspace .dw-advanced{flex-basis:100%}html[data-theme] .admin-shell .dw-workspace .dw-order{max-width:430px}html[data-theme] .admin-shell .dw-workspace .dw-batch-bar:has([data-dw-preview]:not(:disabled)){position:static}}
@media(max-width:480px){html[data-theme] .admin-shell .command-dashboard .map-panel>.map-legend{grid-template-columns:repeat(3,minmax(0,1fr))}html[data-theme] .admin-shell .command-dashboard .dash-side .dash-status-list{grid-template-columns:repeat(3,minmax(0,1fr))}html[data-theme] .admin-shell .dw-workspace .dw-orders{grid-template-columns:minmax(0,1fr)}html[data-theme] .admin-shell .dw-workspace .dw-order{max-width:none}html[data-theme] .admin-shell .dw-summary{gap:8px}html[data-theme] .admin-shell .dw-summary>button{padding:12px;min-width:0}html[data-theme] .admin-shell .dw-workspace .dw-pagination{gap:8px}html[data-theme] .admin-shell .dw-workspace .dw-pagination>span{order:3;flex-basis:100%;text-align:center}}
