.evidence-progress-trigger[hidden],.evidence-progress-panel [hidden]{display:none!important}
.evidence-progress-trigger:not(.is-loading)>.loading-indicator{gap:3px;min-width:0;height:auto;color:var(--muted)}
.evidence-progress-trigger:not(.is-loading)>.loading-indicator>span{width:4px;height:4px}
.evidence-progress-trigger.active{background:var(--surface-muted);border-color:var(--ink)}
[data-progress-page],.evidence-progress-panel{flex:1;min-height:0;min-width:0;display:flex;flex-direction:column}
.evidence-progress-panel{background:var(--white);color:var(--ink);font-size:14px}
.ep-header{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;padding:16px 24px;border-bottom:1px solid var(--line)}
.ep-overview{display:flex;align-items:center;gap:12px;flex:1 1 220px}
.ep-overview progress{width:clamp(40px,10vw,150px);height:6px;accent-color:var(--accent)}
.ep-overview span,.ep-direction small,.ep-item small,.ep-note small{color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.ep-history{width:auto;max-width:100%;margin:0}
.ep-controls{display:flex;gap:8px;margin-left:auto}
.ep-list{overflow:auto;flex:1;min-height:0;overscroll-behavior:contain;padding:0 24px 16px}
.ep-direction,.ep-item-line{display:flex;align-items:center;gap:10px;min-height:44px}
.ep-direction{border-bottom:1px solid var(--line);padding:6px 0}
.ep-item{margin-left:24px;border-bottom:1px solid var(--line)}
.ep-disclosure{align-self:stretch;flex:1;min-width:0;display:flex;align-items:center;gap:8px;padding:6px 0;background:transparent;border:0;text-align:start;color:inherit;font:inherit;cursor:pointer}
.ep-disclosure:disabled{cursor:default;opacity:1}
.ep-disclosure:disabled .icon{visibility:hidden}
.ep-disclosure strong,.ep-disclosure span{overflow-wrap:anywhere}
.ep-disclosure .icon{width:15px;height:15px;flex:none;color:var(--muted)}
.ep-disclosure:enabled:hover{background:var(--surface-muted)}
.ep-direction small{white-space:nowrap}
.ep-state,.ep-state-wrap{flex:none}
.ep-state{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;font-size:12px}
.evidence-progress-panel button.ep-state{min-height:30px;padding:3px 9px;background:var(--white);border:1px solid var(--line);color:var(--ink)}
.ep-state .control-chevron{margin:0}
.ep-readonly{padding:0 9px;color:var(--muted)}
.ep-state-dot{width:7px;height:7px;border-radius:50%;background:var(--muted)}
.ep-state-dot.pending{background:transparent;border:1px solid var(--muted)}
.ep-state-dot.running{background:var(--accent)}
.ep-state-dot.completed{background:#168145}
.ep-state-dot.blocked,.ep-state-dot.paused,.ep-state-dot.suspended{background:#a56c16}
.ep-state-options{padding:4px}
.ep-state-options button{display:block;width:100%;padding:8px 10px;border:0;border-radius:5px;background:transparent;text-align:start;color:var(--ink);font:inherit;cursor:pointer}
.ep-state-options button:is(:hover,:focus-visible){background:var(--surface-muted)}
.ep-detail{padding:0 12px 12px 32px}
.ep-detail dl{margin:0}
.ep-detail dt{margin:12px 0 2px;font-weight:600}
.ep-detail dd,.ep-outcome{margin:0;white-space:pre-line;overflow-wrap:anywhere}
.ep-outcome{padding:16px 0}
.ep-preparing{min-height:100%;box-sizing:border-box;display:grid;place-content:center;justify-items:center;gap:16px;padding:20px 0;text-align:center}
.ep-preparing strong{font-size:15px;font-weight:550}
.ep-search-art{position:relative;width:112px;height:84px;color:var(--accent)}
.ep-search-art::before{content:"";position:absolute;inset:10px 4px 0;border-radius:50%;background:var(--accent-soft)}
.ep-paper{position:absolute;left:25px;top:6px;width:48px;height:62px;box-sizing:border-box;border:2px solid currentColor;border-radius:6px;background:var(--white);box-shadow:-4px 4px 0 #bedbd7;transform:rotate(-8deg)}
.ep-paper::before,.ep-paper::after,.ep-lens::after{content:"";position:absolute}
.ep-paper::before{top:15px;left:11px;width:4px;height:6px;border-radius:3px;background:currentColor;box-shadow:15px 0 currentColor}
.ep-paper::after{top:34px;left:10px;width:20px;height:2px;border-radius:2px;background:#a7c9c4;box-shadow:0 6px #c4dbd7}
.ep-lens{position:absolute;left:53px;top:32px;width:27px;height:27px;box-sizing:border-box;border:3px solid currentColor;border-radius:50%;background:rgb(210 239 235 / 75%);animation:ep-inspect 2.8s ease-in-out infinite}
.ep-lens::after{left:20px;top:19px;width:5px;height:15px;border-radius:3px;background:currentColor;transform-origin:top center;transform:rotate(-42deg)}
@keyframes ep-inspect{0%,100%{transform:translate(3px,2px)}50%{transform:translate(-8px,-3px)}}
@media(prefers-reduced-motion:reduce){.ep-lens{animation:none}}
.ep-detail .btn{margin-top:10px}
.evidence-progress-panel footer{padding:10px 24px;border-top:1px solid var(--line)}
.ep-form{display:flex;gap:8px}
.ep-form input{flex:1;min-width:0}
.ep-notes{max-height:72px;overflow:auto}
.ep-note{padding:4px 0;overflow-wrap:anywhere}
.ep-logins:empty,.ep-controls:empty{display:none}
.btn.is-loading:disabled:is([data-task-busy],[data-evidence-progress],[data-command],[data-state],[data-action=rule-stage-start],[data-action=run-evidence-search],[form=basis-extract-form],[data-br-confirm-template]),.ep-form .is-loading:disabled{background:var(--surface-muted);color:var(--muted);border-color:var(--line);opacity:1}
.btn.is-loading:disabled:is([data-task-busy],[data-evidence-progress],[data-command],[data-state],[data-action=rule-stage-start],[data-action=run-evidence-search],[form=basis-extract-form],[data-br-confirm-template]) .loading-indicator,.ep-form .is-loading .loading-indicator{color:inherit}
@container(max-width:580px){
  .ep-header,.evidence-progress-panel footer{padding:8px 12px}
  .ep-list{padding-inline:12px}
  .ep-overview{flex:1 1 auto}
  .ep-item{margin-left:12px}
  .ep-history{order:1;width:100%}
}
@media(pointer:coarse){.evidence-progress-panel button.ep-state{min-height:40px}}
