/* The label remains the meter. Only a thin, non-interactive leading edge is added. */
#nextStepPrompt,.map-next-mini,.stand-label[data-progress=working]{--meter-edge-color:#d7fff3;--meter-edge-halo:#64eac6;--meter-edge-outline:#173f32}
#nextStepPrompt[data-meter=held],.map-next-mini[data-meter=held],.stand-label[data-held=true]{--meter-edge-color:#fff0bb;--meter-edge-halo:#f0bb55;--meter-edge-outline:#604318}
#nextStepPrompt:is([data-meter=working],[data-meter=held]) #nextStepAction::after,
.map-next-mini:is([data-meter=working],[data-meter=held])::after,
.stand-label[data-progress=working] .unit-status::after{
 content:"";position:absolute;inset:4px auto 4px clamp(2px,var(--activity-progress,0%),calc(100% - 2px));width:3px;height:auto;margin:0;transform:translateX(-50%);border:0;border-radius:3px;background:var(--meter-edge-color);background-size:auto;box-shadow:0 0 0 1px var(--meter-edge-outline),0 0 6px 2px var(--meter-edge-halo);opacity:.94;pointer-events:none;z-index:-1;animation:none;transition:left .45s linear;
}
/* Replace the old full-label shimmer with the progress edge. */
#nextStepPrompt[data-meter=working] #nextStepAction::after,.map-next-mini[data-meter=working]::after{animation:meter-edge-breathe 2s ease-in-out infinite}
#nextStepPrompt[data-meter=held] #nextStepAction::after,.map-next-mini[data-meter=held]::after{animation:none;opacity:1}
#nextStepPrompt[data-meter=ready] #nextStepAction::after,.map-next-mini[data-meter=ready]::after{content:none}
#nextStepPrompt #nextStepAction::before{border-right:0}
#nextStepPrompt.meter-complete #nextStepAction::after,.map-next-mini.meter-complete::after,
#nextStepAction:is([style*="--activity-progress: 0%;"],[style*="--activity-progress: 100%;"])::after,
.map-next-mini:is([style*="--activity-progress: 0%;"],[style*="--activity-progress: 100%;"])::after{content:none}
/* Unit badges already own both button pseudos; use the status child without disturbing its dot or reserve icon. */
.stand-label[data-progress=working]{isolation:isolate}
.stand-label[data-progress=working] .unit-status{position:static}
.stand-label[data-progress=working] .unit-status::after{left:clamp(2px,var(--work-progress,0%),calc(100% - 2px));top:5px;bottom:5px;width:2px;opacity:.8}
.stand-label[data-progress=working][data-held=true] .unit-status::after{opacity:1}
.stand-label:is([style*="--work-progress: 0%;"],[style*="--work-progress: 100%;"]) .unit-status::after{content:none}
/* Compact legacy work tracks keep their fill geometry and gain an endpoint cap. */
:is(.job-progress,.quest .progress-track)>div{position:relative}
:is(.job-progress,.quest .progress-track)>div::after{content:"";position:absolute;right:0;top:-2px;bottom:-2px;width:2px;border-radius:2px;background:#d7fff3;box-shadow:0 0 0 1px #173f32,0 0 5px #64eac6;pointer-events:none}
:is(.job-progress,.quest .progress-track)>div:is([style*="width: 0%;"],[style*="width: 100%;"])::after{content:none}
/* The accessible hidden track stays hidden; this does not reintroduce a separate bottom bar. */
@keyframes meter-edge-breathe{0%,100%{opacity:.82}50%{opacity:1}}
@media(prefers-reduced-motion:reduce){#nextStepPrompt #nextStepAction::after,.map-next-mini::after,.stand-label .unit-status::after{animation:none!important;transition:none!important;opacity:1}}
