/* One condition remains attached to the entire trajectory, including restored runs. */
#treatment-condition{margin-bottom:20px}
.cond-panel{border:1px solid #d8e3df;border-radius:10px;background:#fcfdfb;overflow:hidden;color:#34594d}
.cond-card{display:flex;gap:14px;padding:17px 19px;background:linear-gradient(110deg,#f0f5ed,#f9fbf6)}
.cond-treatment-icon{display:grid;place-items:center;width:39px;height:39px;flex:0 0 39px;border:1px solid #b9d0c0;border-radius:11px;background:#e1ede2;color:#377554}
.cond-panel svg{display:block;width:23px;height:23px}
.cond-content{min-width:0;flex:1}.cond-heading{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap}.cond-heading h3{margin:0;font-size:13px;font-weight:600;color:#2e5f49}.cond-source{font-size:10px;color:#718477}
.cond-treatment{margin:7px 0 10px;font-size:12px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;color:#365a48}
.cond-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:10px;color:#698071}.cond-meta>span{border:1px solid #dde6dc;padding:3px 7px;border-radius:4px;background:#fff9}.cond-meta>.cond-unknown{background:#fff8ec;border-color:#ebdfc7;color:#927448}
.cond-assumptions{margin-top:9px;font-size:11px;line-height:1.8}.cond-assumptions summary{cursor:pointer;color:#708070}.cond-assumptions p{font-size:11px;margin:7px 0 0;color:#6b7d72;white-space:pre-wrap;overflow-wrap:anywhere}
.cond-bridge{display:flex;align-items:center;justify-content:center;gap:10px;padding:10px 18px 0;color:#879c8d}.cond-bridge span{height:1px;flex:1;max-width:70px;background:#d7e2d9}.cond-bridge small{font-size:10px;line-height:1.5}
.cond-flow{display:flex;align-items:center;padding:9px 19px 6px;gap:12px}.cond-phase{display:flex;align-items:center;gap:9px;flex:1;min-width:0;padding:9px 12px;border:1px solid #e1e9e1;border-radius:6px;background:white;font-size:12px;color:#6a8276}.cond-phase-icon{display:grid;place-items:center;flex:0 0 27px;height:27px;color:#6f9583}.cond-phase-icon svg{width:23px;height:23px}.cond-phase small{margin-left:auto;white-space:nowrap;font-size:9px;color:#728b7b}.cond-phase[data-status="idle"] small{display:none}
.cond-flow-arrow{color:#a5b7a9;flex:0 0 18px}.cond-flow-arrow svg{width:18px;height:18px}.cond-phase[data-status="active"]{background:#e8f3eb;border-color:#83b093;color:#235f41;box-shadow:0 0 0 2px #e8f3eb}.cond-phase[data-status="active"] .cond-phase-icon{animation:cond-pulse 1.7s ease-in-out infinite;color:#2a7a50}.cond-phase[data-status="active"] small{color:#287248}.cond-phase[data-status="completed"]{border-color:#c1d8c8;color:#49715c}.cond-phase[data-status="failed"]{border-color:#e0c9a7;background:#fffaf2;color:#927042}
.cond-note{margin:0;padding:3px 19px 11px;text-align:center;font-size:9px;line-height:1.7;color:#8a9b8f}
#treatment-title{display:flex;align-items:center;gap:7px}#treatment-title svg{width:16px;height:16px}.treatment-scope{font-size:9px;color:#88998d}
@keyframes cond-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.88)}}
@media(max-width:1100px){.cond-flow{gap:7px}.cond-phase{padding:8px;gap:5px}.cond-phase small{display:none}.cond-source{font-size:9px}}
@media(max-width:600px){.cond-card{padding:14px 13px;gap:10px}.cond-treatment-icon{width:32px;height:32px;flex-basis:32px;border-radius:8px}.cond-treatment-icon svg{width:21px;height:21px}.cond-heading{gap:4px}.cond-heading h3{font-size:12px}.cond-treatment{font-size:11px}.cond-meta{font-size:9px}.cond-flow{gap:5px;padding:9px 11px 5px}.cond-phase{flex-direction:column;text-align:center;font-size:10px;padding:8px 3px;gap:4px}.cond-phase small{margin:0;display:block}.cond-phase-icon{flex-basis:24px;height:24px}.cond-flow-arrow{flex-basis:13px}.cond-flow-arrow svg{width:13px}.cond-note{padding:5px 12px 10px}.cond-bridge small{font-size:9px}}
@media(prefers-reduced-motion:reduce){.cond-phase-icon{animation:none!important}}
