/* A single guidance bar, then prescription, time controls and stand actions. */
.operation-panel.treatment-compact.treatment-organized .operation-top{gap:8px;align-items:center}
.operation-panel.treatment-compact.treatment-organized .treatment-summary{flex:1 1 240px;min-width:180px}
.treatment-growth-controls,.treatment-crew-controls,.treatment-alert-actions{display:flex;align-items:center;gap:6px;min-width:0}
.treatment-growth-controls{flex:0 0 auto;flex-wrap:wrap;max-width:290px}
.treatment-growth-controls button,.treatment-crew-controls button,.operation-panel.treatment-compact.treatment-organized #nextShift{box-sizing:border-box;min-height:40px;padding:7px 10px;font-size:12px;white-space:nowrap}
.treatment-alert-actions{margin-top:5px;flex-wrap:wrap}
.treatment-alert-actions:not(:has(>:not([hidden]))){display:none}
.treatment-alert-actions button{min-height:32px;padding:5px 10px;font-size:12px;max-width:100%;white-space:normal;text-align:left}
.operation-panel.treatment-compact.treatment-organized .operation-top>#jobStatus{flex:0 0 16ch;inline-size:16ch;font-size:10px;margin-left:0;min-block-size:40px}
.operation-panel.treatment-compact.treatment-organized #nextShift{flex:0 0 140px;inline-size:140px}
.operation-panel.treatment-compact.treatment-organized .job-footer{margin-top:5px;gap:8px}
.operation-panel.treatment-compact.treatment-organized .job-footer:not(:has(>:not([hidden]))){display:none!important}
.operation-panel.treatment-compact.treatment-organized #follow,.operation-panel.treatment-compact.treatment-organized #stop{inline-size:104px;flex:0 0 104px;overflow:hidden;text-overflow:ellipsis}
@media(min-width:901px){
 .operation-panel.treatment-compact.treatment-organized>#nextStepPrompt,.operation-panel.treatment-compact.treatment-organized>#nextStepPrompt[data-timing=true]{grid-template-columns:110px minmax(250px,380px) minmax(0,1fr) 214px 120px!important;grid-template-rows:22px 26px}
 .operation-panel.treatment-compact.treatment-organized>#nextStepPrompt>#nextStepDetail{grid-column:3;grid-row:1/3}
 .operation-panel.treatment-compact.treatment-organized>#nextStepPrompt>.treatment-crew-controls{grid-column:4;grid-row:1/3;justify-content:flex-end}
 .operation-panel.treatment-compact.treatment-organized>#nextStepPrompt>#nextStepTiming{grid-column:5!important;grid-row:1/3}
}
@media(min-width:901px) and (max-width:1450px){
 .operation-panel.treatment-compact.treatment-organized .operation-top{flex-wrap:wrap}
 .operation-panel.treatment-compact.treatment-organized .treatment-summary{flex:1 1 100%}
 .operation-panel.treatment-compact.treatment-organized .operation-top>.tool-actions{margin-left:auto}
}
@media(max-width:900px){
 .operation-panel.treatment-compact.treatment-organized .operation-top{position:relative;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px!important;margin-bottom:0!important}
 .operation-panel.treatment-compact.treatment-organized .operation-top>.treatment-summary{grid-column:1/-1;grid-row:1;min-width:0;padding-right:18px}
 .operation-panel.treatment-compact.treatment-organized .operation-top>.treatment-growth-controls{grid-column:1;grid-row:2;max-width:none;gap:5px}
 .operation-panel.treatment-compact.treatment-organized .operation-top>.treatment-choice-trigger{grid-column:2;grid-row:2;width:100%;padding:6px;min-height:44px}
 .operation-panel.treatment-compact.treatment-organized .operation-top>.tool-actions{grid-column:1/-1;grid-row:3;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0;width:100%}
 .operation-panel.treatment-compact.treatment-organized .operation-top>.tool-actions button{min-height:44px;padding:6px;font-size:12px}
 .operation-panel.treatment-compact.treatment-organized .operation-top>#nextShift{grid-column:1;grid-row:4;min-width:0;width:100%;inline-size:100%;min-height:44px;padding:6px;font-size:11px}
 .operation-panel.treatment-compact.treatment-organized .operation-top>.treatment-crew-controls{grid-column:2;grid-row:4;display:grid;grid-template-columns:1fr 1fr;gap:5px}
 .operation-panel.treatment-compact.treatment-organized #follow,.operation-panel.treatment-compact.treatment-organized #stop{width:100%;inline-size:100%;min-width:0;min-height:44px;font-size:10px;white-space:normal;line-height:13px;padding:4px}
 .operation-panel.treatment-compact.treatment-organized .treatment-growth-controls button{flex:1;min-width:0;min-height:44px;padding:4px;font-size:10px;white-space:normal;line-height:13px}
 .operation-panel.treatment-compact.treatment-organized .operation-top>#jobStatus{grid-column:1/-1;grid-row:5;inline-size:100%;min-block-size:16px;justify-content:flex-start;font-size:10px;margin:0}
 .operation-panel.treatment-compact.treatment-organized .operation-top>.panel-drag-actions{position:absolute;right:0;top:0}
 .operation-panel.treatment-compact.treatment-organized .treatment-alert-actions button{min-height:36px;font-size:11px}
}
@media(min-width:901px){
 .operation-panel.treatment-compact.treatment-organized .treatment-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;align-items:center}
 .treatment-summary>:not(.treatment-alert-actions){grid-column:1}
 .treatment-summary>.treatment-alert-actions{grid-column:2;grid-row:1/4;margin-top:0;max-width:190px}
}
@media(max-width:900px){.operation-panel.treatment-compact.treatment-organized .treatment-summary{display:block}.operation-panel.treatment-compact.treatment-organized .treatment-alert-actions button{min-height:44px}}

/* Stack-style actions retain their live text for screen readers and tooltips. */
.operation-panel.treatment-compact.treatment-organized :is(#plan,#reviewPlan,#start,#nextShift,#follow,#stop){position:relative;display:inline-flex!important;flex-direction:column;align-items:center;justify-content:center;gap:3px;flex:0 0 60px!important;width:60px!important;inline-size:60px!important;min-width:60px;max-width:60px;height:60px;min-height:60px!important;padding:5px!important;font-size:0!important;line-height:1;border-radius:7px}
.operation-panel.treatment-compact.treatment-organized :is(#plan,#reviewPlan,#start,#nextShift,#follow,#stop)::before{content:'';display:block;width:23px;height:23px;background:currentColor;mask:var(--action-icon) center/contain no-repeat}
.operation-panel.treatment-compact.treatment-organized :is(#plan,#reviewPlan,#start,#nextShift,#follow,#stop)::after{content:var(--action-label);font-size:10px;font-weight:650;line-height:13px;white-space:nowrap}
#reviewPlan{--action-label:"Review";--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%203h9l4%204v14H6zM14%203v5h5M9%2012h7M9%2016l2%202%205-5%22/%3E%3C/svg%3E")}
#start{--action-label:"Dispatch";--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m5%203%2016%209-16%209z%22/%3E%3C/svg%3E")}
#nextShift{--action-label:"Next shift";--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22/%3E%3Cpath%20d%3D%22M12%206v6l4%202M18%203l3%203-3%203%22/%3E%3C/svg%3E")}
@media(max-width:900px){.operation-panel.treatment-compact.treatment-organized .operation-top>.tool-actions{grid-template-columns:minmax(0,1fr) 60px 60px}.operation-panel.treatment-compact.treatment-organized .operation-top>#nextShift{justify-self:start}.operation-panel.treatment-compact.treatment-organized .operation-top>.treatment-crew-controls{align-self:center}}
.operation-panel.treatment-compact.treatment-organized :is(#plan,#reviewPlan,#start,#nextShift,#follow,#stop)>*{display:none!important}
/* Reserve layout space as statuses and alert actions appear/disappear. */
@media(min-width:901px){
 .operation-panel.treatment-compact.treatment-organized{box-sizing:border-box;height:232px!important;min-height:232px!important;max-height:232px!important;display:flex;flex-direction:column;overflow:auto}
 .operation-panel.treatment-compact.treatment-organized>#nextStepPrompt{flex:0 0 65px;box-sizing:border-box}
 .operation-panel.treatment-compact.treatment-organized .operation-top{flex:0 0 70px;min-height:70px;margin-bottom:0}
 .operation-panel.treatment-compact.treatment-organized .treatment-summary{height:64px;min-height:64px;overflow:auto}
 .operation-panel.treatment-compact.treatment-organized .job-footer{flex:1 0 36px;min-height:36px;overflow:auto}
 .operation-panel.treatment-compact.treatment-organized .job-footer:not(:has(>:not([hidden]))){display:flex!important;visibility:hidden}
}
@media(min-width:901px) and (max-width:1450px){
 .operation-panel.treatment-compact.treatment-organized{height:306px!important;min-height:306px!important;max-height:306px!important}
 .operation-panel.treatment-compact.treatment-organized .operation-top{flex-basis:144px;min-height:144px;align-content:center}
}
@media(max-width:900px){
 .operation-panel.treatment-compact.treatment-organized{box-sizing:border-box;height:min(560px,calc(100dvh - 290px))!important;min-height:0!important;max-height:min(560px,calc(100dvh - 290px))!important;overflow:auto;overscroll-behavior:contain}
 .operation-panel.treatment-compact.treatment-organized .treatment-summary{box-sizing:border-box;height:132px;min-height:132px;overflow:auto}
}

#plan{--action-label:"Targets";--action-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Cpath d='M12 2v4m0 12v4M2 12h4m12 0h4'/%3E%3C/svg%3E")}
@media(max-width:900px){.operation-panel.treatment-compact.treatment-organized .operation-top>.tool-actions{grid-template-columns:repeat(3,60px);justify-content:end}}

.operation-panel.treatment-compact.treatment-organized .treatment-alert-actions{width:190px;max-height:64px;overflow:auto;flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:3px}
.operation-panel.treatment-compact.treatment-organized .treatment-alert-actions #activitySignal{box-sizing:border-box;min-width:0;width:100%;min-height:32px;max-height:60px;margin:0;padding:6px 8px;font-size:12px;line-height:16px;overflow:auto}
@media(max-width:900px){.operation-panel.treatment-compact.treatment-organized .treatment-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,44%);column-gap:6px;align-content:center}.operation-panel.treatment-compact.treatment-organized .treatment-summary>.treatment-alert-actions{width:100%;max-width:none;grid-column:2;grid-row:1/4;margin-top:0;max-height:120px}}

/* Keep the final stand guidance with its prescription; no trailing status row. */
.operation-panel.treatment-compact.treatment-organized .job-footer{display:none!important}
.operation-panel.treatment-compact.treatment-organized .treatment-summary>#jobDetail{grid-column:1;min-width:0;margin:0;font-size:11px;line-height:15px;overflow:auto;max-height:30px}
@media(min-width:901px){
 .operation-panel.treatment-compact.treatment-organized{height:166px!important;min-height:166px!important;max-height:166px!important}
 .operation-panel.treatment-compact.treatment-organized .treatment-summary>.treatment-alert-actions{grid-row:1/5}
 .operation-panel.treatment-compact.treatment-organized .treatment-summary{grid-template-rows:10px 17px 17px 18px;row-gap:0}
 .operation-panel.treatment-compact.treatment-organized .treatment-summary>#jobDetail{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
}
@media(min-width:901px) and (max-width:1450px){.operation-panel.treatment-compact.treatment-organized{height:240px!important;min-height:240px!important;max-height:240px!important}}
@media(max-width:900px){
 .operation-panel.treatment-compact.treatment-organized{height:min(410px,calc(100dvh - 290px))!important;max-height:min(410px,calc(100dvh - 290px))!important}
 .operation-panel.treatment-compact.treatment-organized .treatment-summary>.treatment-alert-actions{grid-row:1/5}
}
.operation-panel.treatment-compact.treatment-organized .job-footer:not(:has(>:not([hidden]))){display:none!important}
@media(min-width:901px){
 .operation-panel.treatment-compact.treatment-organized{height:184px!important;min-height:184px!important;max-height:184px!important}
 .operation-panel.treatment-compact.treatment-organized .treatment-summary{overflow:visible}
 .operation-panel.treatment-compact.treatment-organized .treatment-alert-actions #activitySignal{flex:0 0 auto;height:36px;min-height:36px;max-height:36px}
}
@media(min-width:901px) and (max-width:1450px){.operation-panel.treatment-compact.treatment-organized{height:258px!important;min-height:258px!important;max-height:258px!important}}

@media(min-width:901px){
 .operation-panel.treatment-compact.treatment-organized .operation-top>.treatment-alert-actions{flex:0 0 150px;width:150px;max-height:64px;margin:0}
 .operation-panel.treatment-compact.treatment-organized .treatment-summary{grid-template-columns:minmax(0,1fr);min-width:150px}
}
@media(min-width:901px) and (max-width:1450px){.operation-panel.treatment-compact.treatment-organized .treatment-summary{flex:1 1 calc(100% - 170px)}}
@media(max-width:900px){
 .operation-panel.treatment-compact.treatment-organized .operation-top>.treatment-alert-actions{grid-column:1;grid-row:1;width:100%;max-height:120px;margin:0}
 .operation-panel.treatment-compact.treatment-organized .operation-top>.treatment-summary{grid-column:2;display:block;min-width:0;padding-right:12px}
 .operation-panel.treatment-compact.treatment-organized .operation-top:not(:has(>.treatment-alert-actions>:not([hidden])))>.treatment-summary{grid-column:1/-1}
}
@media(max-width:900px){
 .operation-panel.treatment-compact.treatment-organized .operation-top>.treatment-alert-actions{position:absolute;left:0;top:34px;width:100px;z-index:1}
 .operation-panel.treatment-compact.treatment-organized .operation-top>.treatment-summary{grid-column:1/-1;padding-left:108px;overflow:hidden}
 .operation-panel.treatment-compact.treatment-organized .operation-top:not(:has(>.treatment-alert-actions>:not([hidden])))>.treatment-summary{padding-left:0}
 .operation-panel.treatment-compact.treatment-organized .treatment-summary>#jobDetail{display:block;max-height:45px;line-height:15px}
}
@media(max-width:900px){
 .operation-panel.treatment-compact.treatment-organized .operation-top>.treatment-alert-actions{left:auto;right:20px;top:0;width:100px;max-height:70px}
 .operation-panel.treatment-compact.treatment-organized .operation-top>.treatment-summary{padding-left:0;padding-right:0;height:132px;min-height:132px}
 .operation-panel.treatment-compact.treatment-organized .treatment-summary>:is(.eyebrow,strong){display:block;max-width:calc(100% - 126px)}
 .operation-panel.treatment-compact.treatment-organized .treatment-summary>#jobDetail{font-size:12px;line-height:16px;max-height:48px;margin-top:5px}
 .operation-panel.treatment-compact.treatment-organized .operation-top>.tool-actions{justify-content:start}
}
@media(max-width:900px){
 .operation-panel.treatment-compact.treatment-organized .operation-top>.tool-actions{grid-column:1/-1;grid-row:3;display:flex!important;gap:6px;justify-content:flex-start}
 .operation-panel.treatment-compact.treatment-organized .operation-top>.treatment-crew-controls{grid-column:1/-1;grid-row:4;grid-template-columns:repeat(2,minmax(0,1fr));justify-self:end;width:min(100%,220px)}
}

/* Anchor zoom to the treatment edge rather than the section-button stack. */
@media(min-width:901px){.viewport-zoom{top:auto!important;bottom:var(--treatment-zoom-bottom,206px)!important;right:16px!important}}
@media(max-width:900px){.mobile-camera,.mobile-camera[data-expanded]{top:auto!important;bottom:var(--treatment-zoom-bottom,90px)!important;right:8px!important}}

#follow{--action-label:"Follow";--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%226%22%20width%3D%2218%22%20height%3D%2213%22%20rx%3D%222%22/%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212.5%22%20r%3D%224%22/%3E%3Cpath%20d%3D%22M8%206l1-3h6l1%203%22/%3E%3C/svg%3E")}

#stop{--action-label:"Suspend";--action-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M8%205v14M16%205v14%22/%3E%3C/svg%3E")}

.operation-panel.treatment-compact.treatment-organized :is(#follow,#stop){box-sizing:border-box;transform:none!important;translate:none!important;scale:none!important;border-width:1px!important;transition:background-color .18s,color .18s,box-shadow .18s,border-color .18s}
.operation-panel.treatment-compact.treatment-organized :is(#follow,#stop)::before{margin:0;border-radius:0;box-shadow:none}
.operation-panel.treatment-compact.treatment-organized #stop::after{content:attr(data-action-label)}
.operation-panel.treatment-compact.treatment-organized #stop[data-action-label=Resume]{--action-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='m7 4 13 8-13 8z'/%3E%3C/svg%3E")}
.operation-panel.treatment-compact.treatment-organized #follow[aria-pressed=true]::after{content:"Following"}
@media(min-width:901px){
 .operation-panel.treatment-compact.treatment-organized{padding:8px 16px!important}
 .operation-panel.treatment-compact.treatment-organized>#nextStepPrompt,.operation-panel.treatment-compact.treatment-organized>#nextStepPrompt[data-timing=true]{grid-template-columns:110px minmax(250px,380px) minmax(0,1fr) 126px 120px!important;grid-template-rows:28px 32px;flex-basis:76px;height:76px;margin:0 0 4px;padding:6px}
 .operation-panel.treatment-compact.treatment-organized .treatment-crew-controls{gap:6px}
}
@media(max-width:900px){.operation-panel.treatment-compact.treatment-organized .operation-top>.treatment-crew-controls{grid-template-columns:60px 60px;width:126px;gap:6px}}

@media(min-width:901px){
 .operation-panel.treatment-compact.treatment-organized .operation-top>.tool-actions{display:flex;align-items:center;flex-wrap:nowrap;gap:6px}
 .operation-panel.treatment-compact.treatment-organized .tool-actions>.treatment-crew-controls{display:flex;gap:6px;flex:0 0 126px}
 .operation-panel.treatment-compact.treatment-organized>#nextStepPrompt,.operation-panel.treatment-compact.treatment-organized>#nextStepPrompt[data-timing=true]{grid-template-columns:110px minmax(250px,380px) minmax(0,1fr) 120px!important}
 .operation-panel.treatment-compact.treatment-organized>#nextStepPrompt>#nextStepTiming{grid-column:4!important}
}

@media(max-width:900px){
 .operation-panel.treatment-compact.treatment-organized .operation-top>.tool-actions{display:grid!important;grid-template-columns:repeat(6,minmax(44px,1fr));gap:4px;width:100%;justify-content:stretch}
 .operation-panel.treatment-compact.treatment-organized .tool-actions>.treatment-crew-controls{display:contents}
 .operation-panel.treatment-compact.treatment-organized .tool-actions :is(#plan,#reviewPlan,#start,#nextShift,#follow,#stop){width:100%!important;inline-size:100%!important;min-width:44px;max-width:none;height:auto;min-height:44px!important;aspect-ratio:1;gap:2px;padding:3px!important}
 .operation-panel.treatment-compact.treatment-organized .tool-actions :is(#plan,#reviewPlan,#start,#nextShift,#follow,#stop)::before{width:20px;height:20px}
 .operation-panel.treatment-compact.treatment-organized .tool-actions :is(#plan,#reviewPlan,#start,#nextShift,#follow,#stop)::after{font-size:9px;line-height:12px}
 .operation-panel.treatment-compact.treatment-organized .operation-top>#jobStatus{grid-row:4}
}
@media(max-width:340px){.operation-panel.treatment-compact.treatment-organized .operation-top>.tool-actions{gap:2px}}
@media(max-width:900px){.operation-panel.treatment-compact.treatment-organized .tool-actions :is(#plan,#reviewPlan,#start,#nextShift,#follow,#stop){align-self:stretch!important;height:100%!important;block-size:100%!important}}
/* Legacy ready-state dots must not style the icon-button text label. */
.operation-panel.treatment-compact.treatment-organized :is(#plan,#reviewPlan,#start,#nextShift,#follow,#stop){border-width:1px!important;box-sizing:border-box;transform:none!important;translate:none!important;scale:none!important}
.operation-panel.treatment-compact.treatment-organized :is(#plan,#reviewPlan,#start,#nextShift,#follow,#stop)::after{display:block;flex:0 0 auto;width:auto;height:auto;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;vertical-align:baseline;letter-spacing:normal;text-indent:0;overflow:visible;transform:none}

.operation-panel.treatment-compact.treatment-organized :is(#plan,#reviewPlan,#start,#nextShift,#follow,#stop)>.action-ready-dot{display:block!important;position:absolute;right:5px;top:5px;width:5px;height:5px;border-radius:50%;background:#ffe59a;box-shadow:0 0 4px #ffe59a,0 0 9px #ffe59a99;pointer-events:none;visibility:visible;animation:action-corner-glow 1.8s ease-in-out infinite}
.operation-panel.treatment-compact.treatment-organized :is(#plan,#reviewPlan,#start,#nextShift,#follow,#stop):disabled>.action-ready-dot{visibility:hidden}
.operation-panel.treatment-compact.treatment-organized #follow[aria-pressed=true]>.action-ready-dot{background:#a1e8b3;box-shadow:0 0 6px #a1e8b3}
@keyframes action-corner-glow{50%{opacity:.6;box-shadow:0 0 3px #ffe59a,0 0 6px #ffe59a66}}
@media(prefers-reduced-motion:reduce){.operation-panel.treatment-compact.treatment-organized .action-ready-dot{animation:none!important}}
/* Attention markers follow workflow priority, not simple availability. */
.operation-panel.treatment-compact.treatment-organized :is(#plan,#reviewPlan,#start,#nextShift,#follow,#stop)>.action-ready-dot{visibility:hidden}
.operation-panel.treatment-compact.treatment-organized :is(#plan,#reviewPlan,#start,#nextShift,#follow,#stop).next-step-needed:not(:disabled)>.action-ready-dot,
.operation-panel.treatment-compact.treatment-organized #nextShift.shift-ended:not(:disabled)>.action-ready-dot{visibility:visible}

.viewport-zoom [data-camera=fit]{display:flex;align-items:center;justify-content:center}
@media(max-width:900px){
 .mobile-camera,.mobile-camera[data-expanded]{width:200px!important;height:56px!important;grid-template-columns:repeat(4,44px)!important;grid-template-rows:44px!important;gap:4px!important;padding:5px!important;border:1px solid var(--ui-line,#809d83);border-radius:10px;background:var(--ui-panel,#173b2e);box-shadow:0 4px 16px #0005}
 .mobile-camera[data-expanded]>.mobile-camera-toggle{grid-column:4!important;grid-row:1!important}
 .mobile-camera[data-expanded]>[data-camera=fit]{display:flex!important;grid-column:3!important;grid-row:1!important}
 .mobile-camera>button{width:44px!important;height:44px!important;min-height:44px!important;display:flex;align-items:center;justify-content:center;border-radius:6px}
 .mobile-camera>.mobile-camera-toggle[aria-expanded=true]{background:var(--ui-accent,#d9e9b0);color:var(--ui-accent-ink,#17342a);box-shadow:inset 0 0 0 1px currentColor}
 .mobile-camera .mobile-camera-menu{left:auto!important;right:70px!important;max-width:calc(100vw - 96px)}
}

@media(max-width:900px){.mobile-camera[data-expanded=true] .mobile-camera-menu [data-camera=up]{grid-row:1!important}.mobile-camera[data-expanded=true] .mobile-camera-menu [data-camera=left],.mobile-camera[data-expanded=true] .mobile-camera-menu [data-camera=down],.mobile-camera[data-expanded=true] .mobile-camera-menu [data-camera=right]{grid-row:2!important}.mobile-camera[data-expanded=true] .mobile-camera-menu .camera-flight-tools{grid-row:3!important}.mobile-camera .mobile-camera-menu .camera-gesture-hint{grid-row:4!important}}

@media(max-width:900px){#toast,#toast[popover]{inset:auto 80px var(--mobile-toast-bottom,150px) 8px!important;max-width:calc(100vw - 88px)!important;width:auto!important;max-height:84px!important;font-size:12px!important;line-height:1.4!important}}

.camera-mode-picker{position:fixed;z-index:1500;box-sizing:border-box;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;padding:5px;border:1px solid var(--ui-line,#809d83);border-radius:9px;background:var(--ui-panel,#173b2e);color:var(--ui-ink,#edfffb);box-shadow:0 6px 24px #0007;display:grid;gap:2px}.camera-mode-picker[hidden]{display:none!important}.camera-mode-picker button{width:100%;min-height:34px;text-align:left;padding:6px 10px;font-size:14px;line-height:1.2;border:0;border-radius:5px;background:transparent;color:inherit}.camera-mode-picker [aria-selected=true]{color:var(--ui-accent-ink,#17342a);background:var(--ui-accent,#d9e9b0)}.camera-mode-picker button:focus-visible{outline:2px solid var(--ui-accent,#d9e9b0);outline-offset:-2px}
@media(max-width:900px){.mobile-camera .camera-flight-tools>label{display:none!important}.mobile-camera .camera-flight-tools .camera-mode-trigger{order:-1;width:92px;max-width:92px;min-height:38px;height:38px;font-size:12px;padding:3px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}}

body[data-camera-flight=rc][data-drone-tool=objects] #labelsLayer,body[data-camera-flight=rc][data-drone-tool=objects] .label-leaders,body[data-camera-flight=rc][data-drone-tool=box] #labelsLayer,body[data-camera-flight=rc][data-drone-tool=box] .label-leaders{visibility:visible}

[data-focus-docked=true]{position:fixed!important;left:var(--stand-dock-left,12px)!important;top:var(--stand-dock-top)!important;bottom:auto!important;transform:none!important;translate:none!important;z-index:28;box-shadow:0 4px 18px #0007,0 0 0 1px var(--ui-accent,#d9e9b0)}
.rc-preset-section{display:grid;gap:5px}.rc-view-presets,.rc-sensor-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.rc-preset-section button{min-height:36px;font-size:11px;padding:5px!important}.rc-preset-section small{font-size:10px;line-height:1.4;color:inherit}.drone-imaging-overlay{position:fixed;inset:0;width:100vw;height:100dvh;z-index:10;pointer-events:none}.drone-imaging-overlay[hidden],.drone-sensor-legend[hidden]{display:none}.drone-sensor-legend{position:fixed;top:calc(var(--header-height,104px) + 10px);left:12px;max-width:calc(100vw - 246px);z-index:62;padding:5px 8px;border:1px solid #a4c9c0;border-radius:5px;background:#102c30ed;color:#f4f4df;font-size:10px;line-height:1.4;pointer-events:none}@media(min-width:901px){.drone-sensor-legend{max-width:430px}}

/* One control family; mobile presents all nine actions in three stable rows. */
.operation-panel.treatment-compact.treatment-organized :is(#year,#fiveYears,#treatmentChoice){box-sizing:border-box;position:relative;display:inline-flex!important;flex:0 0 60px;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:60px!important;inline-size:60px!important;min-width:60px;max-width:60px;height:60px;min-height:60px!important;padding:5px!important;font-size:0!important;line-height:1;border:1px solid var(--ui-line,#809d83);border-radius:7px;transform:none!important;white-space:nowrap}
.operation-panel.treatment-compact.treatment-organized :is(#year,#fiveYears,#treatmentChoice)::before{content:'';display:block;width:23px;height:23px;background:currentColor;mask:var(--action-icon) center/contain no-repeat}
.operation-panel.treatment-compact.treatment-organized :is(#year,#fiveYears,#treatmentChoice)::after{content:var(--action-label);display:block;font-size:10px;font-weight:650;line-height:13px;white-space:nowrap;background:none;box-shadow:none;border:0;border-radius:0;width:auto;height:auto;position:static;transform:none}
#year,#fiveYears{--action-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M7 3v4m10-4v4M12 13v5m-2.5-2.5h5'/%3E%3C/svg%3E")}
#year{--action-label:"+1 year"}#fiveYears{--action-label:"+5 years"}
#treatmentChoice{--action-label:"Treatment";--action-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 2-6 7h3l-5 7h7v6h2v-6h7l-5-7h3z'/%3E%3C/svg%3E")}
@media(max-width:900px){
 .operation-panel.treatment-compact.treatment-organized .operation-top>.treatment-growth-controls{display:none!important}
 .operation-panel.treatment-compact.treatment-organized .operation-top>.tool-actions{grid-row:2!important;grid-column:1/-1;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,52px);gap:5px!important}
 .operation-panel.treatment-compact.treatment-organized .tool-actions :is(#year,#fiveYears,#treatmentChoice,#plan,#reviewPlan,#start,#nextShift,#follow,#stop){grid-column:auto!important;grid-row:auto!important;width:100%!important;inline-size:100%!important;min-width:0;max-width:none;min-height:52px!important;height:52px!important;block-size:52px!important;aspect-ratio:auto;align-self:stretch;padding:3px!important;gap:2px}
 .operation-panel.treatment-compact.treatment-organized .tool-actions :is(#year,#fiveYears,#treatmentChoice,#plan,#reviewPlan,#start,#nextShift,#follow,#stop)::before{width:21px;height:21px}
 .operation-panel.treatment-compact.treatment-organized .tool-actions :is(#year,#fiveYears,#treatmentChoice,#plan,#reviewPlan,#start,#nextShift,#follow,#stop)::after{font-size:10px;line-height:13px}
 .operation-panel.treatment-compact.treatment-organized .operation-top>#jobStatus{grid-row:3!important}
}

[data-focus-docked=true]{visibility:visible!important;pointer-events:auto;max-width:calc(100vw - 24px);box-sizing:border-box}
/* Leave a finger-width gap between the expanded tools and twin sticks. */
@media(max-width:900px){.rc-tools-menu{max-height:max(160px,calc(100dvh - var(--header-height,104px) - 300px))!important;overflow:auto;overscroll-behavior:contain}}
.custom-layer-badge{position:fixed;z-index:22;display:grid;gap:3px;box-sizing:border-box;width:162px;max-width:180px;min-height:48px;padding:7px 9px;border:1px solid var(--layer-badge-color,#b3ca65);border-left:4px solid var(--layer-badge-color,#b3ca65);border-radius:7px;background:var(--ui-panel,#173b2e);color:var(--ui-ink,#eff8e7);box-shadow:0 3px 10px #0007;transform:translate(-50%,-110%);text-align:left;pointer-events:auto;touch-action:manipulation}.custom-layer-badge[hidden]{display:none!important}.custom-layer-badge strong{font-size:12px;line-height:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.custom-layer-badge small{font-size:10px;line-height:13px;white-space:normal;opacity:.95}.custom-layer-badge:focus-visible{outline:3px solid var(--ui-accent,#f1de98);outline-offset:2px}
.contract-review-pager{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;padding:9px;margin:8px 0 14px;border:1px solid var(--ui-line,#8eaf9e);border-radius:8px;background:var(--ui-panel,#193a2e);color:var(--ui-ink,#eff8e7)}.contract-review-pager:not(:has(button:not([hidden]))){grid-template-columns:minmax(0,1fr)}.contract-review-pager>button{min-width:44px;min-height:44px;padding:4px;font-size:24px}.contract-review-pager strong,.contract-review-pager small{display:block;color:inherit;line-height:1.4}.contract-review-pager strong{font-size:14px}.contract-review-pager small{font-size:11px;margin-top:3px;opacity:.85}
.contract-review-pager button[hidden]{display:none!important}

/* Mobile status lives in its own grid cell, never above prescription text. */
@media(max-width:900px){
 .operation-panel.treatment-compact.treatment-organized .operation-top{grid-template-columns:minmax(0,1fr) 120px!important}
 .operation-panel.treatment-compact.treatment-organized .operation-top>.treatment-summary{grid-column:1;grid-row:1;padding:0;min-width:0}
 .operation-panel.treatment-compact.treatment-organized .treatment-summary>:is(.eyebrow,strong){max-width:100%;overflow-wrap:anywhere}
 .operation-panel.treatment-compact.treatment-organized .operation-top>.treatment-alert-actions{position:static;grid-column:2;grid-row:1;align-self:start;box-sizing:border-box;width:120px;max-width:100%;max-height:132px;margin:0;overflow:auto}
 .operation-panel.treatment-compact.treatment-organized .treatment-alert-actions #activitySignal{white-space:normal;overflow-wrap:anywhere;max-height:none;height:auto;min-height:36px;font-size:12px;line-height:16px;gap:6px;padding:6px}
 .operation-panel.treatment-compact.treatment-organized .treatment-alert-actions #activitySignal::before{width:8px;height:8px;box-shadow:0 0 4px var(--signal-color)}
}

@media(max-width:900px){.damage-review-dialog .dialog-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px}.damage-review-dialog .dialog-actions>button{box-sizing:border-box;width:100%;min-width:0;min-height:44px;white-space:normal;line-height:1.3}.damage-review-dialog [data-damage-confirm]{order:1}.damage-review-dialog [data-review-all-disturbances]{order:2}.damage-review-dialog [data-damage-back]{order:3}}

/* Let mobile copy wrap naturally; scroll the sheet, not tiny text boxes. */
@media(max-width:900px){
 .operation-panel.treatment-compact.treatment-organized .operation-top>.treatment-summary{height:auto;min-height:132px;max-height:none;overflow:visible}
 .operation-panel.treatment-compact.treatment-organized .treatment-summary>:is(#operationTitle,#activityCost,#jobDetail){box-sizing:border-box;width:100%;max-width:100%;height:auto;max-height:none;overflow:visible;white-space:normal;text-overflow:clip;overflow-wrap:anywhere;line-clamp:none;-webkit-line-clamp:unset}
 .operation-panel.treatment-compact.treatment-organized .treatment-summary>#operationTitle{display:block;line-height:1.35}
 .operation-panel.treatment-compact.treatment-organized .treatment-summary>#activityCost{display:block;line-height:1.45}
 .operation-panel.treatment-compact.treatment-organized .treatment-summary>#jobDetail{display:block;line-height:1.4;padding-bottom:6px}
}

/* Desktop alerts are one stable action row, never a miniature scroll pane. */
@media(min-width:901px){
 .operation-panel.treatment-compact.treatment-organized .operation-top>.treatment-alert-actions{box-sizing:border-box;flex:0 0 216px;width:216px;height:40px;max-height:none;margin:0;overflow:visible;flex-direction:row;align-items:stretch;gap:6px}
 .operation-panel.treatment-compact.treatment-organized .treatment-alert-actions:has(>button:not([hidden]))>#activitySignal{display:none!important}
 .operation-panel.treatment-compact.treatment-organized .treatment-alert-actions>[hidden]{display:none!important}
 .operation-panel.treatment-compact.treatment-organized .treatment-alert-actions>#activitySignal{flex:1 1 0;min-width:0;height:40px;min-height:40px;max-height:40px;overflow:hidden;white-space:nowrap}
 .operation-panel.treatment-compact.treatment-organized .treatment-alert-actions>button:not([hidden]){box-sizing:border-box;flex:1 1 0;min-width:0;width:auto;height:40px;min-height:40px;max-height:40px;padding:4px 8px;overflow:hidden;white-space:normal;line-height:14px}
}
@media(min-width:901px) and (max-width:1450px){.operation-panel.treatment-compact.treatment-organized .treatment-summary{flex-basis:calc(100% - 236px)}}
