.routing-section { padding: 24px 0 32px; margin-bottom: 24px; border-bottom: 2px solid var(--vu-border-strong); min-width: 0; }
.routing-section h2 { font-size: 18px; margin: 0 0 24px; color: var(--vu-accent-2); }
.routing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.routing-actions button { margin: 0; }
.queue-switches { margin: 24px 0; padding: 16px; border: 1px solid var(--vu-border); min-width: 0; }
.queue-switches label { display: grid; grid-template-columns: 22px minmax(0, 1fr) 90px; gap: 12px; align-items: center; padding: 16px 0; margin: 0; }
.queue-switches label + label { border-top: 1px solid var(--vu-border); }
.queue-switches input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--vu-ok); }
.queue-switches span { overflow-wrap: anywhere; }
.queue-switches output { font-size: 13px; text-align: right; color: var(--vu-muted); }
.routing-config { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 340px; overflow: auto; font-size: 12px; }
.routing-config:empty { display: none; }
.routing-status { display: block; min-height: 48px; padding: 12px 0; overflow-wrap: anywhere; font-weight: 600; }
.routing-status[data-verdict="pass"] { color: var(--vu-ok); }
.routing-status[data-verdict="fail"] { color: var(--vu-err); }
.routing-table { overflow-x: auto; margin-top: 20px; }
.routing-table table { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 580px; }
.routing-table th, .routing-table td { text-align: left; vertical-align: top; padding: 12px 8px; border-bottom: 1px solid var(--vu-border); overflow-wrap: anywhere; font-size: 12px; }
.routing-table tr[data-status="Closed"] td:last-child { color: var(--vu-ok); }
.routing-table tr[data-status="Failed"] td:last-child { color: var(--vu-err); }
.scenario-card { background: transparent; border: 0; box-shadow: none; padding: 24px 0; }
.scenario-intro { line-height: 1.85; margin-bottom: 24px; }
.scenario-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0 28px; }
.scenario-controls button { margin: 0; }
#scenarioSteps { display: grid; gap: 20px; }
.step { min-width: 0; padding: 20px; border: 1px solid var(--vu-border); border-left: 4px solid var(--vu-border-strong); border-radius: 6px; background: var(--vu-panel); }
.step-head { display: flex; gap: 12px; align-items: flex-start; }
.step-num { display: inline-flex; width: 30px; height: 30px; flex: 0 0 30px; align-items: center; justify-content: center; border-radius: 50%; background: var(--vu-panel-3); color: var(--vu-accent-2); font-weight: 700; }
.step-title { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; line-height: 1.7; overflow-wrap: anywhere; }
.step-status { flex: 0 0 26px; text-align: center; }
.step-desc { margin: 12px 0 16px 42px; color: var(--vu-muted); line-height: 1.8; }
.step-actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-left: 42px; }
.step-actions button { margin: 0; flex-shrink: 0; }
.step-actions code { display: block; flex: 1 1 240px; min-width: 0; padding: 8px 10px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
.step-result { display: none; margin: 16px 0 0 42px; padding: 14px; max-height: 320px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.7; background: var(--vu-bg); border: 1px solid var(--vu-border); border-radius: 4px; }
.step.running { border-left-color: var(--vu-warn); }
.step.ok { border-left-color: var(--vu-ok); }
.step.failed { border-left-color: var(--vu-err); }
.step.running .step-result, .step.ok .step-result, .step.failed .step-result { display: block; }
.scenario-summary { margin-top: 24px; padding: 16px; border: 1px solid var(--vu-border); border-radius: 6px; line-height: 1.8; overflow-wrap: anywhere; }
.scenario-summary.ok { border-color: var(--vu-ok); }
.scenario-summary.failed { border-color: var(--vu-err); }
@media (max-width: 600px) {
    .step { padding: 16px 12px; }
    .step-desc, .step-actions, .step-result { margin-left: 0; }
    .step-actions { flex-direction: column; }
    .step-actions code { flex-basis: auto; width: 100%; }
}