.mobile-nav,.mobile-camera{display:none}
@media(max-width:900px){
:root{--mobile-bottom:calc(64px + env(safe-area-inset-bottom));font-size:16px}
html,body{width:100%;height:100%;overflow:hidden}body{overscroll-behavior:none}
header,header.header-one-row{position:fixed!important;inset:0 0 auto!important;width:100%!important;max-width:100%!important;display:flex!important;flex-wrap:wrap!important;gap:6px!important;padding:8px 10px!important;padding-top:max(8px,env(safe-area-inset-top))!important;box-sizing:border-box;z-index:40}
header .brand{min-width:0!important;flex:0 0 auto!important;font-size:13px!important}header .brand small,header .brand-symbol,header .clock-icon,header .clock-caption,#lightingState,#fleetHud{display:none!important}
header .clock-panel{min-width:0!important;flex:1!important;display:flex!important;gap:8px!important;justify-content:flex-end}header #clock{font-size:14px!important;white-space:nowrap}header #calendar,header #clockState{font-size:11px!important}header #clockToggle{min-width:44px;min-height:44px}
header .header-buttons,header .speed-control,header .panel-dock-strip,header .management-controls,header .management-area-controls{display:none!important}
body[data-mobile-view=settings] header .header-buttons{display:flex!important;flex-wrap:wrap!important;width:100%!important;gap:6px}body[data-mobile-view=settings] header .speed-control{display:flex!important;width:100%!important;min-width:160px}body[data-mobile-view=settings] header .clock-panel{flex-wrap:wrap!important}body[data-mobile-view=settings] header .control-group{display:flex;flex-wrap:wrap}
.mobile-nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;z-index:80;padding:5px 4px max(5px,env(safe-area-inset-bottom));background:#10271ff5;border-top:1px solid #6c8873;gap:3px}.mobile-nav button{min-width:0;min-height:52px;padding:4px 1px;font-size:11px;display:flex;flex-direction:column;align-items:center;gap:3px;border:1px solid transparent;background:transparent;color:#dce9df}.mobile-nav button span{font-size:20px}.mobile-nav button[aria-pressed=true]{background:#325842;border-color:#a4ca77;color:white}
body .stand-panel,body .right-panel,body .operation-panel,body .camera-controls,body .map-panel{display:none!important}
body[data-mobile-view=stand] .stand-panel,body[data-mobile-view=dispatch] .stand-panel,body[data-mobile-view=treatment] .operation-panel,body[data-mobile-view=landscape] .right-panel{display:block!important;position:fixed!important;left:8px!important;right:8px!important;top:calc(var(--header-height,76px) + 8px)!important;bottom:calc(var(--mobile-bottom) + 6px)!important;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;overflow:auto!important;transform:none!important;z-index:50!important;box-sizing:border-box;padding:14px!important;overscroll-behavior:contain}
body .stand-panel[data-panel-mode][data-workspace-view],body .stand-panel[data-panel-mode][data-prescription-open]{width:auto!important;height:auto!important;max-height:none!important}
body[data-mobile-view=landscape] .right-panel>*{max-width:100%}body[data-mobile-view=landscape] .right-panel .map-panel{display:block!important;position:static!important;width:100%!important}
.panel-drag-handle,.panel-dock-target,.panel-dock-notice{display:none!important}.workspace-navigation{top:-14px!important;margin:-14px -14px 12px!important;padding:12px!important}.workspace-tabs{display:flex!important;flex-wrap:wrap!important}.workspace-tabs button{flex:1 0 28%;min-height:44px!important;font-size:13px!important}
body:not([data-mobile-view=map]) #labelsLayer{visibility:hidden}.stand-label{font-size:13px!important;min-height:44px;max-width:150px}.stand-label small{font-size:11px!important}
button,select,input[type=range],summary{min-height:44px}input,select,textarea{font-size:16px!important}button{touch-action:manipulation}.operation-form,.tool-options,.job-footer{display:flex!important;flex-wrap:wrap!important;gap:10px}.tool-selection{width:100%}.operation-tools,.choice-strip{display:flex;flex-wrap:wrap}.job-footer>div{display:flex;flex-wrap:wrap;gap:6px}.job-footer #jobDetail{font-size:14px!important}.operation-panel.treatment-compact .tool-selection{display:block!important}.operation-panel .operation-top{flex-wrap:wrap}
dialog{box-sizing:border-box!important;width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 24px)!important;padding:18px!important;overflow:auto!important}.spatial-layout{display:flex!important;flex-direction:column}.spatial-fields{width:100%!important;min-width:0!important}canvas#planningCanvas,dialog canvas{max-width:100%!important;height:auto!important;touch-action:none}.growth-table-wrap,.inventory-table-wrap{overflow:auto!important}table{font-size:13px!important}.panel canvas{max-width:100%}
#toast{bottom:calc(var(--mobile-bottom) + 12px)!important;max-width:calc(100vw - 28px)!important;left:14px!important;right:14px!important;transform:none!important}#walkHint{bottom:var(--mobile-bottom)!important}.ground-action{max-width:calc(100vw - 24px)}
}
@media(max-width:900px) and (max-height:500px){header .brand{display:none!important}.mobile-nav{grid-template-columns:repeat(6,1fr)}.mobile-nav button{min-height:40px;flex-direction:row;justify-content:center}.mobile-nav button span{font-size:16px}:root{--mobile-bottom:50px}}

@media(max-width:900px){header .header-control-row{display:none!important}body[data-mobile-view=settings] header .header-control-row{display:flex!important;flex-wrap:wrap!important;width:100%!important}header .management-picker{max-width:100%!important;flex-wrap:wrap}.mobile-camera{display:none;position:fixed;right:8px;top:calc(var(--header-height,76px) + 10px);z-index:35;grid-template-columns:repeat(3,44px);gap:4px;padding:5px;background:#10271fe8;border-radius:12px}body[data-mobile-view=map] .mobile-camera{display:grid}.mobile-camera button{min-height:44px;font-size:20px;touch-action:none;padding:3px}.mobile-camera button[data-camera=fit]{font-size:13px}.viewport-zoom{display:none!important}body[data-mobile-view=settings] header{max-height:calc(100dvh - var(--mobile-bottom));overflow:auto}body[data-mobile-view=landscape] .right-panel .camera-controls{display:none!important}}
@media(max-width:900px){.stand-panel p,.right-panel p,.operation-panel p{font-size:14px!important;line-height:1.5}.stand-panel small,.right-panel small{font-size:12px!important;line-height:1.4}.operation-panel.treatment-compact .operation-top{display:flex!important;margin-bottom:12px}.operation-top strong{font-size:16px!important}.stand-panel .eyebrow,.operation-panel .eyebrow{font-size:11px!important}.inventory-table{display:block;overflow-x:auto}.mobile-camera button[data-camera=up]{grid-column:2}.mobile-camera button[data-camera=left]{grid-column:1}.mobile-camera button[data-camera=down]{grid-column:2}.mobile-camera button[data-camera=right]{grid-column:3;grid-row:3}}
@media(max-width:900px){body[data-mobile-view=settings] header .clock-panel{display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;width:100%!important;flex-basis:100%!important;order:1;box-sizing:border-box}body[data-mobile-view=settings] header .clock-panel>div:first-of-type{min-width:0}body[data-mobile-view=settings] header .speed-control{grid-column:1 / -1;display:grid!important;grid-template-columns:1fr!important;width:100%!important;max-width:100%!important;box-sizing:border-box}body[data-mobile-view=settings] header .speed-control input[type=range]{width:100%!important;min-width:0!important}body[data-mobile-view=settings] header .speed-control .speed-limits{display:flex!important;justify-content:space-between}body[data-mobile-view=settings] header .auto-shift-control{display:flex!important;justify-content:space-between;align-items:center;font-size:14px!important;min-height:44px}body[data-mobile-view=settings] header .header-control-row{order:2}body[data-mobile-view=settings] header .header-buttons{order:3}body[data-mobile-view=settings] header .control-group button{font-size:13px!important}#planningWelcome{bottom:calc(var(--mobile-bottom) + 8px)!important;max-width:calc(100vw - 28px)!important}}
@media(max-width:900px){dialog.spatial-dialog[open]{display:block!important}.spatial-dialog>.spatial-layout{display:block!important;overflow:visible!important;flex:none!important}.spatial-layout>div:first-child{display:block!important}.spatial-dialog #planningCanvas{display:block!important;width:100%!important;height:auto!important;aspect-ratio:760 / 600;flex:none!important;min-height:180px!important}.spatial-dialog .spatial-fields{overflow:visible!important;padding:12px 0!important}.spatial-dialog .dialog-actions{position:static!important;display:flex!important;gap:6px!important}.spatial-dialog .dialog-actions button{font-size:13px!important}header #panels{display:none!important}}
@media(max-width:900px){#treatmentViewToggle,.operation-panel .panel-reset{display:none!important}}
/* Small operation captions remain legible without shrinking touch targets. */
@media(max-width:900px){.operation-tools button,.choice-strip button{min-height:44px!important;box-sizing:border-box}.operation-tools button span,.operation-tools button small,.choice-strip button span,.choice-strip button small{font-size:12px!important;line-height:1.3!important}.operation-tools button{min-width:64px}.choice-strip button{padding:8px!important}}
/* Three readable operation columns fit even narrow phone workspaces. */
@media(max-width:900px){.operation-tools{display:grid!important;grid-template-columns:repeat(3,minmax(84px,1fr));overflow-x:visible!important;gap:6px!important}.icon-operation-form .operation-tools .operation-choice{width:100%;min-width:0!important;min-height:76px!important;padding:8px 4px!important;white-space:normal!important}.operation-tools .operation-choice span{max-width:100%;white-space:normal!important;overflow-wrap:anywhere;text-align:center}}
/* More is a single-column settings sheet, not a wrapped desktop header. */
@media(max-width:900px){body[data-mobile-view=settings]>header{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:12px!important;padding:14px!important;bottom:var(--mobile-bottom)!important;max-height:none!important;overflow-y:auto!important;background:#132c23fa}body[data-mobile-view=settings]>header .brand{width:100%!important;flex:none!important;margin-bottom:0}body[data-mobile-view=settings]>header .clock-panel{flex:none!important;margin:0!important;width:100%!important;padding:12px!important}body[data-mobile-view=settings]>header .header-control-row{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important;width:100%!important;margin:0!important;padding:0!important}body[data-mobile-view=settings]>header .management-picker{width:100%!important;max-width:none!important;display:flex!important;align-items:center!important;gap:8px!important}body[data-mobile-view=settings]>header .management-picker>label{display:none!important}body[data-mobile-view=settings]>header .header-buttons{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;width:100%!important;max-width:none!important;justify-content:stretch!important;margin:0!important}body[data-mobile-view=settings]>header .header-buttons .control-group{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%!important;gap:8px!important}body[data-mobile-view=settings]>header .header-action-menu{width:100%!important}body[data-mobile-view=settings]>header .header-action-menu>summary{justify-content:space-between;font-size:14px!important;min-height:46px!important;padding:10px 12px!important}body[data-mobile-view=settings]>header .header-menu-items{position:static!important;display:grid;width:100%!important;padding:6px!important;gap:6px!important}body[data-mobile-view=settings]>header .header-action-menu:not([open]) .header-menu-items{display:none!important}body[data-mobile-view=settings]>header .header-menu-items button{font-size:14px!important;min-height:46px!important}body[data-mobile-view=settings]>header .header-control-row .header-buttons{flex:none!important}body[data-mobile-view=settings]>header #soundToggle{width:100%;min-height:46px!important;text-align:left;padding:10px!important}body[data-mobile-view=settings]>header #soundToggle::after{font-size:14px!important}}
@media(max-width:900px){.mobile-camera[data-expanded]{grid-template-columns:44px 44px 64px!important;gap:4px!important;padding:5px!important;right:8px;max-width:calc(100vw - 16px);box-sizing:border-box}.mobile-camera .mobile-camera-toggle{font-size:11px!important;min-height:44px;padding:2px!important;white-space:nowrap}.mobile-camera[data-expanded=false] [data-camera]:not([data-camera="zoom-in"]):not([data-camera="zoom-out"]):not([data-camera="fit"]),.mobile-camera[data-expanded=false] .camera-flight-tools{display:none!important}.mobile-camera[data-expanded=false] [data-camera="zoom-in"]{grid-column:1!important;grid-row:1!important}.mobile-camera[data-expanded=false] [data-camera="zoom-out"]{grid-column:2!important;grid-row:1!important}.mobile-camera[data-expanded=false] .mobile-camera-toggle{grid-column:3!important;grid-row:1!important}.mobile-camera[data-expanded=true]{grid-template-columns:repeat(3,44px)!important}.mobile-camera[data-expanded=true] .mobile-camera-toggle{grid-column:1/-1;grid-row:1}.mobile-camera[data-expanded=true] [data-camera="zoom-in"]{grid-column:1!important;grid-row:2!important}.mobile-camera[data-expanded=true] [data-camera="zoom-out"]{grid-column:2!important;grid-row:2!important}.mobile-camera[data-expanded=true] [data-camera="fit"]{grid-column:3!important;grid-row:2!important}.mobile-camera[data-expanded=true] [data-camera="up"]{grid-column:2!important;grid-row:3!important}.mobile-camera[data-expanded=true] [data-camera="left"]{grid-column:1!important;grid-row:4!important}.mobile-camera[data-expanded=true] [data-camera="down"]{grid-column:2!important;grid-row:4!important}.mobile-camera[data-expanded=true] [data-camera="right"]{grid-column:3!important;grid-row:4!important}.mobile-camera[data-expanded=true] .camera-flight-tools{grid-column:1/-1;grid-row:5}}
@media(max-width:900px){body[data-mobile-view=settings]>header{justify-content:flex-start!important}}
@media(max-width:900px){header .clock-panel>div:first-of-type{min-width:0}header #clockState,header #fleetHud{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
@media(max-width:900px){#nextShift{min-height:44px;height:44px}}
@media(max-width:900px){body:not([data-mobile-view=settings])>header{height:104px!important;min-height:104px!important;max-height:104px!important;align-content:center}body[data-mobile-view=settings]>header{height:auto!important;min-height:0!important;max-height:none!important}}
@media(max-width:900px){dialog.management-dialog:has(#areaForm){width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;padding:16px!important;overflow-x:hidden!important}#areaForm .area-fields{grid-template-columns:minmax(0,1fr)!important}#areaForm label{min-width:0}#areaForm input,#areaForm select{box-sizing:border-box;max-width:100%}#areaForm .setup-stands{width:100%;max-width:100%;overflow-x:auto}#areaForm .setup-stands table{min-width:650px}}
/* Reserve the full shift-button width; the former44px settings column clipped its label. */
@media(max-width:900px){body[data-mobile-view=settings] header .clock-panel{grid-template-columns:minmax(0,1fr) 80px!important}header #clockToggle{box-sizing:border-box;flex:0 0 72px;width:72px;min-width:72px;max-width:80px;min-height:44px;padding:6px!important;font-size:12px!important;line-height:1.2;white-space:normal}body[data-mobile-view=settings] header #clockToggle{width:80px;max-width:80px}#nextShift{height:44px!important;min-height:44px!important;min-width:140px;font-size:13px!important;line-height:1.2}}
@media(max-width:900px){body[data-mobile-next=on]:not([data-mobile-view=map]):not([data-mobile-view=settings]) #nextStepPrompt{display:grid;grid-template-columns:minmax(0,1fr);gap:3px;position:fixed;left:8px;right:8px;top:calc(var(--header-height,104px) + 5px);height:94px;box-sizing:border-box;padding:7px 10px;background:#173b2dfa;border:2px solid #e7c66d;border-radius:8px;z-index:65;color:#f3f1d9}#nextStepPrompt>small{font-size:10px;letter-spacing:.6px;color:inherit}#nextStepPrompt>button{min-height:36px;height:36px;padding:5px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;font-weight:700;color:#263b29;background:#e8d18d;text-align:left}#nextStepPrompt>p{margin:0;font-size:11px;line-height:1.2;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:inherit}body[data-mobile-next=on]:not([data-mobile-view=map]):not([data-mobile-view=settings]) :is(.stand-panel,.right-panel,.operation-panel){top:calc(var(--header-height,104px) + 106px)!important}}
@media(max-width:900px){body[data-mobile-next=on]:not([data-mobile-view=map]):not([data-mobile-view=settings]) #nextStepPrompt{height:102px}#nextStepPrompt>button{height:44px;min-height:44px}#nextStepPrompt>small{font-size:11px;line-height:13px}#nextStepPrompt>p{font-size:12px;line-height:14px}body[data-mobile-next=on]:not([data-mobile-view=map]):not([data-mobile-view=settings]) :is(.stand-panel,.right-panel,.operation-panel){top:calc(var(--header-height,104px) + 114px)!important}}

@media(max-width:900px){
/* Phase changes retain the same footprint; counters no longer reflow with prose. */
#dispatchAssignments{overflow-anchor:none}
#dispatchAssignments .dispatch-activity{margin:8px 0;font-size:14px;line-height:1.5}
#dispatchAssignments .dispatch-phase{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;height:3em;min-height:3em;max-height:3em;overflow-wrap:anywhere}
#dispatchAssignments .dispatch-counts{display:flex;justify-content:space-between;gap:8px;font-size:12px;line-height:1.5;font-variant-numeric:tabular-nums;white-space:nowrap}
#dispatchAssignments .dispatch-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
#dispatchAssignments .dispatch-actions button{min-width:0;height:44px;min-height:44px;padding:4px;font-size:12px;line-height:1.2}
}
@media(max-width:900px){.stand-label>small{display:inline!important;white-space:nowrap;margin-left:4px;font-variant-numeric:tabular-nums}}

/* Keep the real review actions outside the scrollable overview on phones. */
@media(max-width:900px){
 dialog.mobile-action-dialog[open]{display:flex!important;flex-direction:column!important;width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;padding:0!important;overflow:hidden!important}
 .mobile-action-dialog>.mobile-review-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px;scroll-padding-block:16px}
 dialog.mobile-action-dialog>:is(.dialog-actions,.growth-actions){position:static!important;flex:0 0 auto;display:flex!important;flex-wrap:wrap;gap:8px;margin:0!important;padding:12px 16px max(12px,env(safe-area-inset-bottom))!important;border-top:1px solid #91a896;background:#f1f4ee!important}
 .mobile-action-dialog>:is(.dialog-actions,.growth-actions)>button{flex:1 1 130px;min-height:44px!important;white-space:normal!important;font-size:14px!important;line-height:1.3}
 #freeGrowDialog .dialog-actions #recordFreeGrow{flex-basis:100%}
 #nextStepPrompt{scroll-margin-top:8px}
 :is(.stand-panel,.right-panel,.operation-panel){scroll-padding-top:12px;scroll-padding-bottom:24px}
 :is(.stand-panel,.right-panel,.operation-panel) :is(button,input,select,[role=status]){scroll-margin-block:14px}
}

@media(max-width:900px){.mobile-action-dialog .growth-actions #growthAckWrap{flex:0 0 100%;margin:0!important;font-size:13px!important;line-height:1.4!important;padding:0!important}.mobile-action-dialog .growth-actions #growthAckWrap[hidden]{display:none!important}}

@media(max-width:900px){.mobile-action-dialog>.dialog-actions>[role=status]{flex-basis:100%;margin:0;font-size:13px!important;line-height:1.4}.mobile-action-dialog>.dialog-actions>[role=status]:empty{display:none}}

@media(max-width:900px){body[data-mobile-view=settings]>header{overflow-x:hidden!important}body[data-mobile-view=settings]>header :is(.header-action-menu,.header-menu-items,.header-buttons,.control-group){min-width:0!important;max-width:100%!important;box-sizing:border-box}body[data-mobile-view=settings]>header .header-menu-items{inset:auto!important;transform:none!important;margin-left:0!important;margin-right:0!important}}
/* A height-constrained column must scroll, never wrap into an offscreen column. */
@media(max-width:900px){body[data-mobile-view=settings]>header{flex-wrap:nowrap!important;align-content:stretch!important}body[data-mobile-view=settings]>header .header-control-row{flex:0 0 auto!important;flex-wrap:nowrap!important}body[data-mobile-view=settings]>header>*{flex-shrink:0}}

@media(max-width:900px){.mobile-camera .camera-gesture-hint{grid-column:1/-1;grid-row:6;max-width:140px;white-space:normal;font-size:11px;line-height:1.4;color:inherit;padding:4px}.mobile-camera[data-expanded=false] .camera-gesture-hint{display:none}}

@media(max-width:900px){body[data-mobile-view=settings]>header .mobile-theme-settings{display:block!important;order:2;flex:none;width:100%;padding:12px;border:1px solid #92a58b66;border-radius:8px;background:var(--ui-panel,#1b352a);color:var(--ui-ink,#edf2df)}body[data-mobile-view=settings]>header .mobile-theme-settings h2{font-size:17px;margin:0 0 5px;color:inherit}body[data-mobile-view=settings]>header .mobile-theme-settings p{font-size:13px;margin:0 0 10px;color:inherit}body[data-mobile-view=settings]>header .mobile-theme-settings>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.mobile-theme-settings button{min-height:48px;padding:9px!important;font-size:13px!important;line-height:1.3;white-space:normal;color:var(--ui-ink,#edf2df);background:var(--ui-control,#294936);border:1px solid var(--ui-line,#7b9978)}.mobile-theme-settings button[aria-pressed=true]{outline:2px solid var(--ui-accent,#e9ce82);outline-offset:1px;font-weight:750}.mobile-theme-settings button[aria-pressed=true]::before{content:'✓ ';}body[data-mobile-view=settings]>header .header-control-row{order:3}body[data-mobile-view=settings]>header .theme-picker{display:none!important}}

@media(max-width:900px){body:not([data-mobile-view=settings]) header .clock-panel{position:static!important}body:not([data-mobile-view=settings]) header .brand{align-self:flex-start!important;margin-top:4px}body:not([data-mobile-view=settings]) #fundHud{position:absolute;left:10px;bottom:9px;width:110px;height:43px;padding:3px 5px;gap:2px}header #fundHud small{display:block;font-size:8px!important;letter-spacing:.3px}header #fundHud strong{font-size:15px!important}body[data-mobile-view=settings] #fundHud{position:relative;width:120px;height:60px;flex:0 0 120px}}

@media(max-width:900px){.panel{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}dialog::backdrop{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}}

/* Keep the familiar two-column header, with aligned cards and a smaller clock control. */
@media(max-width:900px){
 body:not([data-mobile-view=settings])>header,body:not([data-mobile-view=settings])>header.header-one-row{--fund-column:clamp(108px,32vw,132px);display:grid!important;grid-template-columns:var(--fund-column) minmax(0,1fr)!important;grid-template-rows:22px 60px!important;column-gap:8px!important;row-gap:6px!important;padding:8px 10px!important;align-content:center!important}
 body:not([data-mobile-view=settings])>header>.header-control-row{display:none!important}
 body:not([data-mobile-view=settings]) header .brand{grid-column:1!important;grid-row:1!important;align-self:center!important;margin:0!important;font-size:12px!important;letter-spacing:1px;line-height:20px}
 body:not([data-mobile-view=settings]) header .clock-panel{grid-column:2!important;grid-row:1 / 3!important;display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;align-items:center;gap:6px!important;height:88px!important;min-height:88px!important;max-height:88px!important;width:100%!important;box-sizing:border-box;padding:8px!important;margin:0!important}
 body:not([data-mobile-view=settings]) header .clock-panel>div:first-of-type{display:grid;gap:1px;min-width:0;width:100%;align-content:center}
 body:not([data-mobile-view=settings]) #fundHud{left:10px;bottom:8px;width:var(--fund-column);height:58px;padding:7px 8px;gap:4px;border-radius:7px}
 body:not([data-mobile-view=settings]) #fundHud small{font-size:9px!important;line-height:12px;letter-spacing:.35px;white-space:nowrap}
 body:not([data-mobile-view=settings]) #fundHud strong{font-size:16px!important;line-height:20px;letter-spacing:0}
 body:not([data-mobile-view=settings]) header #clock{min-width:0;width:100%;font-size:17px!important;line-height:21px;letter-spacing:.6px}
 body:not([data-mobile-view=settings]) header #calendar{font-size:10.5px!important;line-height:12px;white-space:normal;margin:0!important}
 body:not([data-mobile-view=settings]) header #clockState{font-size:10.5px!important;line-height:13px;min-height:13px;margin:0!important;padding:0!important;border:0;background:transparent;letter-spacing:.1px}
 body:not([data-mobile-view=settings]) header #saveStatus{font-size:9px!important;line-height:11px;margin:0!important;letter-spacing:0}
 body:not([data-mobile-view=settings]) header #clockToggle{width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;padding:4px!important;border-radius:8px;font-size:16px!important;align-self:center}
}
@media(max-width:350px){body:not([data-mobile-view=settings]) #fundHud strong{font-size:15px!important}}
@media(max-width:900px){body[data-mobile-view=settings] header .clock-panel>div:first-of-type{grid-column:1;grid-row:1}body[data-mobile-view=settings] header #clockToggle{grid-column:2;grid-row:1}body[data-mobile-view=settings] header #fundHud{grid-column:1 / -1;grid-row:2;width:100%;height:54px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:10px}body[data-mobile-view=settings] header .speed-control{grid-row:3}}

@media(max-width:900px){input:not([type=checkbox]):not([type=range]):not([type=color]),textarea,select{font-size:16px!important}input,textarea,select{-webkit-user-select:text;user-select:text}}

/* Keep the pressure fill inside its button when More uses normal-flow layout. */
@media(max-width:900px){body[data-mobile-view=settings] header #fundHud{position:relative!important;isolation:isolate;overflow:hidden;contain:paint;flex:0 0 auto;min-height:54px;max-height:54px}}
/* Reserve the shipment action row so it never spills into the workspace. */
/* Settings: an area name gets its own row, never spills over New area. */
@media(max-width:900px){
 body[data-mobile-view=settings]>header .management-picker{display:grid!important;grid-template-columns:minmax(0,1fr) 44px minmax(90px,auto)!important;align-items:stretch!important;gap:8px!important}
 body[data-mobile-view=settings]>header .management-identity{grid-column:1/-1!important;width:100%!important;min-width:0!important;flex:none!important}
 body[data-mobile-view=settings]>header .management-combo{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box;min-height:46px}
 body[data-mobile-view=settings]>header .management-combo #managementName{font-size:14px!important;min-height:44px!important}
 body[data-mobile-view=settings]>header .management-caret{width:44px}
 body[data-mobile-view=settings]>header .management-combo #managementArea{width:44px!important;margin:0!important;max-width:none!important}
 body[data-mobile-view=settings]>header #newManagement{grid-column:1;grid-row:2;min-width:0!important;min-height:44px;font-size:13px}
 body[data-mobile-view=settings]>header .management-picker>[aria-label="Manage saved areas"]{grid-column:2;grid-row:2;width:44px!important;min-width:44px!important;min-height:44px}
 body[data-mobile-view=settings]>header .management-picker>.mandate-launch{grid-column:3;grid-row:2;min-width:0!important;min-height:44px;font-size:13px;white-space:normal}
 .free-grow-recap .free-grow-emblem{width:50px;height:50px;font-size:32px;margin:4px auto 8px}
 .free-grow-recap .free-grow-card{padding:10px;margin:8px 0;gap:10px}
 .free-grow-recap #freeGrowMessage{font-size:12px;line-height:1.4}
}

/* Allow panel scrolling without allowing a pinch to scale the whole game.
   Canvas/stick touch-action:none rules still own their camera gestures. */
html,body{touch-action:pan-x pan-y}
@media(max-width:900px){.mobile-nav .mobile-nav-icon{display:block;flex:0 0 24px;width:24px;height:24px;filter:none}.mobile-nav button{justify-content:center;font-weight:650;line-height:14px;gap:4px}.mobile-nav button[aria-pressed=true] .mobile-nav-icon{stroke-width:2.1}}
@media(max-width:900px) and (max-height:500px){.mobile-nav .mobile-nav-icon{width:20px;height:20px;flex-basis:20px}}

.graphics-recovery details{flex-basis:100%;width:100%;min-width:0;color:inherit}.graphics-recovery summary{cursor:pointer;padding:8px 0;color:inherit}.graphics-recovery pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto;font:11px/1.4 monospace;user-select:text;color:inherit}

/* Business actions remain reachable while construction updates. */
.business-body{flex:1 1 auto;overflow-anchor:none}.facility-card-heading{display:flex;align-items:center;gap:10px}.facility-card-heading h4{margin:2px 0!important}.facility-card-icon{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--business-line);border-radius:8px;font-size:27px}.facility-level{margin-left:auto;font:700 20px monospace}.facility-levels{display:flex;gap:5px;margin:10px 0}.facility-levels span{height:6px;flex:1;border-radius:3px;background:var(--business-line);opacity:.3}.facility-levels .earned{background:var(--business-accent);opacity:1}.facility-card .business-asset-next{padding-top:12px;margin-top:12px}.facility-card .business-asset-next h5{font-size:17px;margin:4px 0}.facility-card button{width:100%;margin:6px 0}.facility-card details{margin:8px 0}.facility-card summary{font-size:12px;min-height:32px}.facility-card .facility-benefit{font-size:13px;line-height:1.4}.facility-card details p{font-size:12px}
@media(max-width:900px){dialog.business-dialog[open]{display:flex!important;flex-direction:column!important;height:calc(100dvh - 20px)!important;max-height:calc(100dvh - 20px)!important;padding:0!important;overflow:hidden!important}.business-dialog .business-heading{padding:12px 14px}.business-dialog .business-heading h2{font-size:20px}.business-dialog .business-body{padding:12px;min-height:0;overflow-y:auto;touch-action:pan-y}.business-dialog .business-upgrade{padding:12px}.business-dialog .business-footer{padding:8px 12px}.business-dialog .business-footer button{min-height:42px}.business-dialog .business-capacity>p{font-size:12px;line-height:1.4}}

#workspace-roads .road-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:10px 0}#workspace-roads .road-actions button{min-width:0;min-height:44px;padding:7px;font-size:12px;line-height:1.25}#workspace-roads .road-design-details{margin-top:12px}#workspace-roads .road-design-details>summary{padding:8px 0;font-size:13px}#workspace-roads #roadProgress:empty{display:none}#workspace-roads #roadIssues{font-size:13px;line-height:1.4}

.inventory-analysis{margin-top:12px}.inventory-analysis>summary{padding:10px;font-size:13px;font-weight:700;border:1px solid var(--ui-line,#829b78);border-radius:6px}
@media(max-width:900px){#workspace-inventory>.inventory-table{display:block;overflow:visible;min-width:0;width:100%}#workspace-inventory>.inventory-table thead{display:none}#workspace-inventory>.inventory-table tbody{display:grid;gap:10px}#workspace-inventory>.inventory-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:10px;background:var(--ui-control,#294c3b);border:1px solid var(--ui-line,#829b78);border-radius:8px}#workspace-inventory>.inventory-table td{display:block;min-width:0;max-width:none;text-align:left;padding:3px;border:0;white-space:normal;font-size:13px}#workspace-inventory>.inventory-table td:first-child{grid-column:1/-1;font-weight:800;font-size:15px}#workspace-inventory>.inventory-table td::before{display:block;font-size:10px;opacity:.8;font-weight:500}#workspace-inventory>.inventory-table td:nth-child(2)::before{content:'AGE'}#workspace-inventory>.inventory-table td:nth-child(3)::before{content:'ACRES'}#workspace-inventory>.inventory-table td:nth-child(4)::before{content:'SPECIES'}#workspace-inventory>.inventory-table td:nth-child(5)::before{content:'STOCKING'}#workspace-inventory>.inventory-table td:nth-child(6)::before{content:'BASAL AREA'}#workspace-inventory>.inventory-table td:nth-child(7)::before{content:'STANDING VOLUME'}#workspace-inventory>.inventory-table td:last-child{grid-column:1/-1}#workspace-roads #roadProgress{font-size:11px;line-height:1.35}#workspace-roads .road-actions{margin-top:6px}#workspace-roads h3{margin:8px 0 4px}}

.spatial-dialog .spatial-footer{position:sticky;bottom:-18px;z-index:5;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;background:var(--ui-panel,#19382c);padding:10px;margin:12px -8px -18px;border-top:1px solid var(--ui-line,#829b78)}.spatial-footer button{min-height:44px;min-width:0;margin:0!important}.spatial-dialog.stand-edit-mode #standSettings>p:not(#standInventoryNote){display:none}.spatial-dialog #standSettings label.checkbox{display:flex;align-items:center;gap:8px;text-align:left;letter-spacing:0;font-size:13px}.spatial-dialog #standSettings label.checkbox input{margin:0;width:20px;height:20px;flex:none}.spatial-dialog #standInventoryNote{font-size:12px;line-height:1.4}

.spatial-draw-toolbar{display:flex;gap:5px;margin-top:8px}.spatial-draw-toolbar button{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:48px;padding:4px}.spatial-draw-toolbar button>span{font-size:22px;line-height:1}.spatial-draw-toolbar small{font-size:10px}.spatial-settings-drawer{min-width:0}.spatial-settings-drawer>summary{padding:12px;border:1px solid var(--ui-line,#829b78);border-radius:6px;font-size:13px;cursor:pointer}.spatial-settings-drawer[open]>.spatial-fields{padding-top:8px}.spatial-map-options>.dialog-actions{display:flex;flex-wrap:wrap}.spatial-map-options summary{font-size:13px;padding:8px 0}
@media(max-width:900px){dialog.spatial-dialog[open]{display:flex!important;flex-direction:column!important;gap:6px;height:calc(100dvh - 12px)!important;max-height:calc(100dvh - 12px)!important;padding:10px!important;overflow:hidden!important}.spatial-dialog>h2{flex:none;font-size:18px;line-height:1.2;margin:0 0 2px}.spatial-dialog>.spatial-view-picker{flex:none;margin:0;display:flex;gap:5px}.spatial-dialog>.spatial-view-picker button{min-height:44px;padding:5px 10px;font-size:12px}.spatial-dialog>#gradeNotice{flex:none;font-size:12px;line-height:1.3;margin:0;padding:7px 9px}.spatial-dialog>#spatialNotice{display:none}.spatial-dialog>#draftAccessResult{flex:none;font-size:12px;line-height:1.3;margin:0;max-height:52px;overflow:auto}.spatial-dialog>#draftAccessResult:empty{display:none}.spatial-dialog>.spatial-layout{flex:1;min-height:0;overflow:auto;gap:6px}.spatial-dialog .spatial-map-workspace{min-width:0}.spatial-dialog #planningCanvas{display:block;width:100%!important;height:auto!important;aspect-ratio:760/600;border-radius:6px}.spatial-dialog .spatial-draw-toolbar{margin:6px 0 0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}.spatial-dialog .spatial-footer{position:static;flex:none;margin:0 -10px -10px;padding:8px 10px;grid-template-columns:minmax(0,1fr) 92px}.spatial-dialog .spatial-footer button{font-size:13px;padding:7px}.spatial-dialog .spatial-settings-drawer>summary{min-height:44px;padding:12px}.spatial-dialog.spatial-settings-open .spatial-map-workspace{display:none}.spatial-dialog .spatial-fields{padding:0!important}.spatial-dialog .spatial-fields label{font-size:13px;letter-spacing:0}.spatial-dialog .spatial-fields fieldset{margin:8px 0;padding:10px}.spatial-dialog .spatial-map-options>.dialog-actions{position:static!important}.spatial-dialog .spatial-map-options .planning-guide{font-size:12px}.spatial-dialog #standInventoryNote{margin:7px 0}}

@media(max-width:900px){.spatial-dialog>h2{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:23px}.spatial-dialog>#gradeNotice{max-height:48px;overflow:auto}.spatial-dialog>.spatial-layout{flex:1 1 0!important;max-height:calc(100dvh - 190px);min-height:0!important;overflow:auto!important}.spatial-dialog .spatial-settings-drawer:not([open])>summary{display:none}.spatial-dialog .spatial-footer{min-height:60px;flex:0 0 60px!important;align-items:center}.spatial-dialog .spatial-footer button{width:100%;height:44px}.spatial-dialog .spatial-settings-drawer[open]>summary{position:sticky;top:0;background:var(--ui-panel,#19382c);z-index:2}}

.planning-instructions{flex:none;border:1px solid var(--ui-line,#829b78);border-radius:6px;background:var(--ui-control,#294c3b);overflow:auto;max-height:160px}.planning-instructions>summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;min-height:44px;padding:6px 9px}.planning-instructions>summary::-webkit-details-marker{display:none}.planning-instructions #gradeNotice{flex:1;min-width:0;background:none;border:0;padding:0;margin:0;font-size:12px;line-height:1.35;color:inherit}.planning-more{flex:none;font-size:12px;font-weight:750}.planning-instructions>p{font-size:12px!important;line-height:1.5;margin:0;padding:0 10px 10px;color:inherit!important}.spatial-dialog .spatial-footer{display:grid!important;flex-wrap:nowrap!important}.spatial-dialog .spatial-footer button{width:auto!important}.spatial-dialog .spatial-footer #closeSpatial{display:block!important}

.spatial-dialog>#spatialStatus{flex:none;font-size:12px;line-height:1.35;max-height:72px;overflow:auto;margin:0;padding:7px 9px;border:1px solid var(--ui-accent,#e5cb7d);border-radius:5px;color:var(--ui-ink,#eef3df)}.spatial-dialog>#spatialStatus:empty{display:none}

@media(max-width:900px){.spatial-dialog:has(.spatial-settings-drawer[open]) .spatial-map-workspace{display:none!important}}

.planning-instructions:not([open])>summary{height:76px;min-height:76px;box-sizing:border-box}.planning-instructions:not([open]) #gradeNotice{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}

.road-preview-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin:9px 0}.road-preview-overview[hidden]{display:none}.road-preview-overview>div{min-width:0;padding:6px 8px;border:1px solid var(--ui-line,#829b78);border-radius:6px;background:var(--ui-control,#294c3b)}.road-preview-overview small{font-size:10px;display:block!important;color:inherit!important;opacity:.85}.road-preview-overview strong{display:block;font-size:15px;line-height:1.4;color:inherit;font-variant-numeric:tabular-nums}

.stand-auto-size{display:grid;gap:5px;margin:10px 0;font-size:13px;letter-spacing:0;color:var(--ui-ink,#eaf2df)}.stand-auto-size select{width:100%;min-height:44px;font-size:14px}
