.decision-workspace{--dw-last:#53489B;background:var(--surface);border-bottom:1px solid var(--border);padding:18px 16px;color:var(--text);min-width:0}
.decision-workspace[hidden],.decision-workspace [hidden]{display:none!important}
.dw-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.dw-heading h2{font-family:var(--serif,Georgia,serif);font-size:1.2rem;font-weight:600;margin:0;line-height:1.3}
.dw-heading p{font-size:.76rem;line-height:1.5;color:var(--text-dim);margin:5px 0 12px;max-width:58ch}
.dw-mode{font-size:.67rem;font-weight:650;white-space:nowrap;background:var(--surface2);border:1px solid var(--border);padding:4px 8px;border-radius:5px}
.decision-workspace button{font-family:inherit;cursor:pointer}
.decision-workspace button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.decision-workspace button:disabled{opacity:.5;cursor:default}
.dw-toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:.7rem;color:var(--text-dim);padding-bottom:10px}
.dw-toolbar button,.dw-older,.dw-retry{border:1px solid var(--border);border-radius:5px;padding:6px 9px;background:var(--surface);color:var(--text);font-size:.7rem;white-space:nowrap}
.dw-toolbar button:hover,.dw-older:hover,.dw-retry:hover{background:var(--surface2)}
.dw-toolbar button[aria-pressed=true]{color:var(--green);background:var(--green-bg);border-color:var(--green)}
.dw-history{max-height:176px;overflow-y:auto;overscroll-behavior:contain;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.dw-run{display:grid;grid-template-columns:78px minmax(0,1fr) auto;gap:8px;align-items:center;width:100%;text-align:left;padding:9px 10px;border:0;border-bottom:1px solid var(--border);background:transparent;color:var(--text);font-size:.73rem;border-radius:0}
.dw-run:last-child{border-bottom:0}
.dw-run:hover{background:var(--surface2)}
.dw-run[aria-pressed=true]{background:var(--accent-bg);box-shadow:inset 3px 0 var(--accent)}
.dw-run-label{font-weight:650;display:flex;gap:5px;align-items:center}
.dw-run-label::before{content:'';height:6px;width:6px;border-radius:50%;flex-shrink:0;background:var(--text-dim)}
.dw-run[data-status=fired] .dw-run-label::before{background:var(--green)}
.dw-run[data-status=blocked] .dw-run-label::before{background:var(--yellow)}
.dw-run[data-status=error] .dw-run-label::before{background:var(--red)}
.dw-run-reason{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.4}
.dw-run time{color:var(--text-dim);font-variant-numeric:tabular-nums;font-size:.67rem;white-space:nowrap}
.dw-older{display:block;margin:8px auto 0}
.dw-inspector{padding-top:16px;min-width:0}
.dw-outcome{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}
.dw-outcome h3{font-family:var(--serif,Georgia,serif);font-weight:600;font-size:1.1rem;margin:0}
.dw-outcome time{font-size:.7rem;color:var(--text-dim);font-variant-numeric:tabular-nums}
.dw-reason{font-size:.8rem;line-height:1.5;margin:7px 0 12px;overflow-wrap:anywhere}
.dw-record-label{color:var(--text-dim);font-size:.68rem;line-height:1.45;margin-bottom:12px}
.dw-chart{margin:0 0 14px;min-width:0}
.dw-chart-title{font-size:.7rem;line-height:1.5;overflow-wrap:anywhere;color:var(--text-dim)}
.dw-chart-title strong{color:var(--text);font-weight:600}
.dw-chart svg{width:100%;height:172px;display:block;overflow:visible;touch-action:pan-y}
.dw-chart text{font-family:inherit;font-size:11px;fill:var(--text-dim)}
.dw-chart-grid{stroke:var(--border);stroke-width:1}
.dw-price-line{fill:none;stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round}
.dw-ask{stroke:var(--green)}
.dw-bid{stroke:var(--cyan)}
.dw-last{stroke:var(--dw-last);stroke-dasharray:3 3}
.dw-decision-line{stroke:var(--accent);stroke-width:1.5;stroke-dasharray:4 3}
.dw-chart-legend{display:flex;flex-wrap:wrap;gap:12px;font-size:.67rem;margin:3px 0}
.dw-chart-legend span{display:inline-flex;align-items:center;gap:5px}
.dw-chart-legend i{display:inline-block;width:12px;height:2px;background:var(--green)}
.dw-chart-legend .dw-key-bid{background:var(--cyan)}
.dw-chart-legend .dw-key-last{background:var(--dw-last)}
.dw-chart-note,.dw-chart-readout{font-size:.67rem;color:var(--text-dim);line-height:1.5;min-height:1.5em;margin:4px 0 0;overflow-wrap:anywhere}
.dw-chart-readout{font-variant-numeric:tabular-nums;color:var(--text-secondary)}
.dw-chart-empty{background:var(--bg);padding:14px 12px;font-size:.74rem;line-height:1.5;color:var(--text-dim);margin:12px 0}
.dw-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 16px}
.dw-facts div{min-width:0;border-top:1px solid var(--border);padding-top:8px}
.dw-facts dt{font-size:.65rem;color:var(--text-dim);line-height:1.4;margin-bottom:4px}
.dw-facts dd{margin:0;font-size:.85rem;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.dw-steps-label{font-size:.74rem;font-weight:600;margin:0 0 10px}
.dw-steps{list-style:none;margin:0;padding:0}
.dw-step{position:relative;padding:0 0 14px 27px;min-width:0}
.dw-step:not(:last-child)::after{content:'';position:absolute;left:8px;top:20px;bottom:2px;width:1px;background:var(--border)}
.dw-step-mark{position:absolute;left:0;top:0;width:17px;height:17px;border-radius:50%;background:var(--surface2);font-size:10px;display:grid;place-items:center;color:var(--text-dim);font-weight:700}
.dw-step[data-result=pass] .dw-step-mark{background:var(--green-bg);color:var(--green)}
.dw-step[data-result=stop] .dw-step-mark{background:var(--yellow-bg);color:var(--yellow)}
.dw-step[data-result=error] .dw-step-mark{background:var(--red-bg);color:var(--red)}
.dw-step-head{font-size:.75rem;font-weight:600;line-height:1.4;display:flex;gap:8px;justify-content:space-between}
.dw-step-head span:last-child{font-size:.65rem;font-weight:400;color:var(--text-dim);white-space:nowrap}
.dw-step p{margin:3px 0 0;font-size:.73rem;line-height:1.5;color:var(--text-secondary);overflow-wrap:anywhere}
.dw-step details{margin-top:5px;font-size:.68rem;color:var(--text-dim)}
.dw-step summary{cursor:pointer;width:fit-content}
.dw-step pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.67rem;padding:8px;background:var(--bg);max-height:180px;overflow:auto}
.dw-notice{font-size:.73rem;background:var(--yellow-bg);color:var(--yellow);padding:8px 10px;line-height:1.5;margin:0 0 10px}
.dw-empty{font-size:.78rem;color:var(--text-dim);padding:20px 0;line-height:1.5}
.dw-footnote{font-size:.65rem;line-height:1.5;color:var(--text-dim);margin-top:10px}
@media(max-width:700px){
  .decision-workspace{padding:14px 12px}
  .dw-heading h2{font-size:1.1rem}
  .dw-run{grid-template-columns:70px minmax(0,1fr);padding:10px 8px;row-gap:2px}
  .dw-run time{grid-column:2;font-size:.65rem}
  .dw-history{max-height:186px}
  .dw-facts{gap:8px}
  .dw-facts dd{font-size:.78rem}
  .dw-toolbar button,.dw-older,.dw-retry{min-height:36px}
}
