:root{--ink:#20382d;--muted:#6e7f74;--green:#177452;--line:#dce4dc;--red:#b63b36;--blue:#467c99}*{box-sizing:border-box}body{margin:0;background:#f0f3ed;color:var(--ink);font:14px/1.5 "Segoe UI",system-ui,sans-serif}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #d69b4b;outline-offset:3px}[hidden]{display:none!important}.topbar{height:88px;background:#172c23;color:#eef6ee;display:flex;align-items:center;justify-content:space-between;padding:0 38px;border-bottom:3px solid #d0aa6e}.brand{display:flex;gap:13px;align-items:center;text-decoration:none;font-size:25px;font-weight:650;letter-spacing:-.7px}.brand small{display:block;font:9px/1.8 monospace;letter-spacing:2px;color:#a5b9ac}.brand-mark{border:1px solid #88a192;border-radius:9px;font:600 21px/40px monospace;text-align:center;padding:0 5px;color:#dfbf88}.target{display:flex;gap:12px;align-items:center;font-size:12px}.target strong,.target small{display:block}.target small{font-size:11px;color:#a5b9ac;max-width:370px}.local-tag{border:1px solid #476052;font:10px monospace;letter-spacing:1px;padding:5px 9px;border-radius:4px;margin-left:12px}.dot{height:8px;width:8px;border-radius:50%;background:#bda971}.dot.connected{background:#77c99a;box-shadow:0 0 0 4px #77c99a16}.dot.offline,.dot.stale{background:#dc8f72}.workspace{display:grid;grid-template-columns:286px minmax(0,1fr);max-width:1720px;margin:auto}.sidebar{padding:30px 24px;background:#e8ede5;border-right:1px solid #d4ddd2;min-height:calc(100vh - 88px)}.section-label{font:10px/1.5 monospace;letter-spacing:1.35px;color:#758475}h1{font-size:29px;line-height:1.13;font-weight:550;letter-spacing:-1px;margin:16px 0}h2{font-size:24px;letter-spacing:-.6px;font-weight:550;margin:5px 0}h3{font-size:15px;font-weight:600;margin:0}p{margin:8px 0}.intro{font-size:12px;line-height:1.7;color:#6e7f70;margin-bottom:26px}label{display:block;font-size:12px;font-weight:600;margin:16px 0 7px}select,input[type=search]{width:100%;padding:10px 9px;background:#f8faf5;border:1px solid #cbd5c9;color:var(--ink);border-radius:6px;font-size:12px;min-width:0}.hint{font-size:11px;color:var(--muted);line-height:1.6}.check-label{font-size:11px;font-weight:400;display:flex;align-items:center;gap:7px}.check-label input{accent-color:var(--green)}.run-spec{display:flex;gap:25px;border-top:1px solid #d1dbce;padding-top:15px;margin:22px 0 19px;font-size:10px;color:var(--muted)}.run-spec strong{display:block;font-size:12px;margin-top:3px;color:var(--ink)}.primary,.secondary,.danger{border-radius:6px;padding:10px 15px;font-weight:550;font-size:12px;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:10px;white-space:nowrap}.primary{background:var(--green);color:white;border:1px solid var(--green)}.primary:hover{background:#115d42}.secondary{color:var(--ink);background:#f8faf5;border:1px solid #cbd5ca}.secondary:hover{background:#eaf0e8}.danger{color:#a63b35;border:1px solid #dbb8af;background:#fcf4f0}.small{font-size:11px;padding:7px 12px}.full{width:100%}.history-heading{display:flex;align-items:center;justify-content:space-between;margin-top:30px}.icon-button{border:0;background:transparent;color:var(--muted);font-size:21px}.history{margin-top:12px;max-height:390px;overflow:auto}.history-item{display:block;width:100%;text-align:left;border:1px solid transparent;border-left:3px solid transparent;border-radius:5px;padding:10px;background:transparent;margin:4px 0}.history-item:hover{background:#f4f7f0}.history-item.selected{background:#f9fbf6;border-color:#cdd9ca;border-left-color:var(--green)}.history-title{font-size:11px;font-weight:550;display:flex;gap:7px;justify-content:space-between}.history-item small{display:block;font:9px/1.5 monospace;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}.history-verdict{font:9px monospace}.sidebar-foot{margin-top:24px;border-top:1px solid #d2dccf;padding-top:16px;font:10px/1.8 monospace;color:#82907f}main{padding:29px 32px;min-width:0}.main-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.tabs{display:flex;padding:4px;background:#e2e9df;border:1px solid #d7e0d4;border-radius:7px;flex-shrink:0}.tab{border:0;background:transparent;color:#72806f;padding:8px 15px;font-size:11px;border-radius:4px}.tab.active{color:var(--ink);background:#fff;box-shadow:0 1px 4px #1530200d}.notice{padding:12px 15px;background:#e6eee5;border:1px solid #cbdcc9;border-radius:6px;font-size:12px;margin:12px 0;overflow-wrap:anywhere}.notice.warning{background:#faf0df;color:#885b17;border-color:#ebd6b1}.notice.error{background:#faeae5;color:#a33430;border-color:#e9c6bf}.empty{text-align:center;padding:90px 25px;background:#f9fbf6;border:1px dashed #c9d8c6;border-radius:12px}.empty-symbol{font-size:45px;color:#b7996f}.empty p{color:var(--muted);font-size:12px}.run-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:18px}.run-heading h3{font:11px/1.8 monospace;color:#73806e;overflow-wrap:anywhere;margin-top:7px}.mode{font:10px monospace;letter-spacing:1px;border:1px solid #c8d5c4;border-radius:4px;background:#e7eee1;padding:4px 8px;color:#526c51;margin-right:10px}.mode.live{color:#15724f;background:#e0f2e7;border-color:#a0c8ac}.mode.stale{background:#faecd2;color:#97681e;border-color:#e0c497}.muted{color:var(--muted);font-size:10px}.verdict{font:12px monospace;letter-spacing:.9px;white-space:nowrap;padding:9px 14px;border-radius:6px;border:1px solid #c8d8ca}.verdict.PASS{background:#e2f1e5;color:#18764c;border-color:#b7d5bd}.verdict.FAIL{background:#fae7e1;color:#b43f36;border-color:#e5b9af}.verdict.INCONCLUSIVE{background:#faf0dc;color:#94651a;border-color:#e3cda6}.verdict.pending{background:#e9ede7;color:#72836e;border-color:#d3ddcf}.panel{background:white;border:1px solid var(--line);border-radius:9px;margin-bottom:18px;overflow:hidden}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 20px}.panel-heading .hint{margin:4px 0 0}.conveyor-panel{background:#fafcf7}.conveyor-panel .panel-heading{padding-bottom:8px}.conveyor-panel h3{font-size:17px;margin-top:4px}.state-tag{font:10px monospace;letter-spacing:.8px;border:1px solid #d1ddcf;border-radius:4px;padding:6px 9px;background:#eef3e9}.conveyor-layout{display:grid;grid-template-columns:minmax(0,1fr) 150px;padding:0 20px 15px;align-items:center}.conveyor-scene svg{width:100%;height:auto;display:block;max-height:190px}.conveyor-scene.stale{opacity:.5}.scene-caption{display:flex;justify-content:space-between;font-size:9px;color:#82917e;margin:5px 15px}.live-metrics{border-left:1px solid #dde5d7;padding-left:25px;margin-left:15px}.live-metrics>div+div{margin-top:13px}.live-metrics span{font:8px monospace;color:#7d8d78;letter-spacing:1px;display:block}.live-metrics strong{font:26px/1.3 monospace;letter-spacing:-1px}.live-metrics small{font:11px monospace;letter-spacing:0;color:#7e8c78}.run-controls{border-top:1px solid #e0e8db;padding:12px 20px;display:flex;align-items:center;justify-content:space-between;gap:15px;background:#f1f6ed}#replay-controls{display:flex;align-items:center;gap:15px;flex:1}#replay-position{accent-color:#448361;flex:1;min-width:60px}#replay-time{font:10px monospace;min-width:52px;color:#6d8169}#live-controls{display:flex;gap:8px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.metric-card{border:1px solid var(--line);border-radius:7px;background:white;padding:16px}.metric-card>span{display:block;font:9px monospace;letter-spacing:.5px;color:#768371}.metric-card strong{display:block;font:24px/1.7 monospace;letter-spacing:-.7px}.metric-card small{font-size:9px;color:#8b9585}.two-column{display:grid;grid-template-columns:1.35fr 1fr;gap:18px}.legend{font-size:8px;display:flex;align-items:center;gap:5px;color:#798877}.line{width:11px;height:2px;display:inline-block}.green{background:#288966}.blue{background:#608cac}.chart{width:100%;height:auto;display:block;padding:0 10px}.chart-hint{padding:0 20px 12px;font-size:10px}.processes{padding:0 20px 12px}.process-row{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:9px 0;border-bottom:1px solid #edf1e9;font-size:11px}.process-row:last-child{border:0}.process-row small{display:block;font:9px monospace;color:#8b9685}.process-status{font:9px monospace;color:#617d68;text-align:right}.process-status.exited{color:#84927f}.downloads{display:flex;align-items:center;gap:12px}.text-link{font-size:10px;color:#617d67}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:11px}th{text-align:left;color:#7d8977;background:#f7f9f3;font:9px monospace;letter-spacing:.5px;padding:10px 20px}td{padding:12px 20px;border-top:1px solid #e8ede2;vertical-align:top}td:last-child{font-size:10px;color:#7c8876;max-width:400px}.check-verdict{font:10px monospace;font-weight:600}.PASS{color:#1a7853}.FAIL{color:#b43d37}.INCONCLUSIVE{color:#946617}.pending{color:#88937f}.timeline{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:0 20px 15px;gap:0 30px}.timeline-item{display:grid;grid-template-columns:65px 1fr;gap:8px;padding:9px 0;border-top:1px solid #edf1e8;font-size:11px}.timeline-item time{font:10px monospace;color:#84917a}.timeline-item small{display:block;font:9px monospace;color:#91a087}.reproduce{font-size:11px;color:#71836b;padding:0 5px;margin:22px 0}.reproduce summary{cursor:pointer}.reproduce pre{padding:14px;background:#e5ecdf;overflow:auto;white-space:pre-wrap;color:#3e5b41}.compare-selects{display:flex;gap:15px;align-items:end;padding:0 20px 24px}.compare-selects label{flex:1;min-width:0}.compare-selects>span{align-self:center}.inset{margin:0 20px}.comparison-results{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:0 20px 20px}.comparison-card{border:1px solid var(--line);border-radius:7px;padding:20px;min-width:0}.comparison-card h3{font-size:18px;margin:14px 0}.comparison-card p{font:10px monospace;overflow-wrap:anywhere;color:var(--muted)}.comparison-card dl{font-size:12px;margin:15px 0}.comparison-card dt{color:var(--muted);margin-top:12px}.comparison-card dd{font:18px monospace;margin:2px 0}.checks-mini{padding-top:12px;border-top:1px solid var(--line);font-size:10px;line-height:2}footer{display:flex;justify-content:space-between;gap:15px;margin-top:28px;font-size:9px;color:#8f9b87;border-top:1px solid #dae3d3;padding-top:16px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(min-width:1450px){main{padding:32px 44px}.workspace{grid-template-columns:310px minmax(0,1fr)}.sidebar{padding:35px 30px}.conveyor-scene svg{max-height:220px}}@media(max-width:1100px){.two-column{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.target small{max-width:230px}.main-heading{align-items:start;flex-direction:column}.conveyor-layout{grid-template-columns:minmax(0,1fr) 125px}.live-metrics{padding-left:12px}}@media(max-width:760px){.topbar{height:auto;min-height:90px;align-items:start;flex-direction:column;padding:18px 20px;gap:15px}.target small{max-width:290px}.workspace{display:block}.sidebar{min-height:0;padding:24px;border:0;border-bottom:1px solid var(--line)}h1 br{display:none}.intro{margin-bottom:10px}.history{max-height:175px}.sidebar-foot{display:none}main{padding:25px 16px}.run-heading{align-items:start}.verdict{font-size:10px;padding:7px}.conveyor-layout{grid-template-columns:1fr}.live-metrics{display:flex;gap:25px;margin:16px 0 0;padding:15px 5px 0;border-left:0;border-top:1px solid var(--line)}.live-metrics>div+div{margin:0}.live-metrics strong{font-size:23px}.scene-caption{font-size:8px}.run-controls{flex-wrap:wrap}.timeline{grid-template-columns:1fr}.downloads{gap:8px}.panel-heading{flex-wrap:wrap}.compare-selects{flex-direction:column;align-items:stretch}.compare-selects>span{display:none}.comparison-results{grid-template-columns:1fr}td,th{padding:10px 12px}footer{flex-direction:column;gap:4px}}

.scene-caption{gap:12px;flex-wrap:wrap;line-height:1.5}.scene-caption span:first-child{flex:1;min-width:170px}
.journey-summary{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 24px;margin:8px 20px 16px;padding-top:14px;border-top:1px solid var(--line)}
.journey-summary strong{display:block;font:20px/1.5 monospace;color:var(--ink)}
.journey-summary p{margin:0;color:var(--muted);font-size:11px;line-height:1.7}.journey-summary p span{display:block}.journey-summary p span:first-child{color:var(--ink)}

/* Fixture-specific results keep service IPC facts distinct from conveyor motion. */
input[type=number]{width:100%;padding:10px 9px;background:#f8faf5;border:1px solid #cbd5c9;color:var(--ink);border-radius:6px;font-size:12px}
.service-panel .inset{padding:0 20px 15px;margin:0}.service-flow{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 22px 24px}.service-flow>div{padding:16px;border:1px solid #cddbcf;border-radius:7px;background:#f3f7ef;flex:1}.service-flow>div span{display:block;color:var(--muted);font:9px monospace;letter-spacing:.6px}.service-flow strong{display:block;font:12px monospace;margin-top:7px}.flow-message{text-align:center;font:10px/1.9 monospace;color:var(--muted)}.metric-card strong.compact-value{font-size:16px;line-height:1.6;letter-spacing:0}.scroll-table{max-height:420px;overflow:auto}.scroll-table thead{position:sticky;top:0;background:#f3f7ef;z-index:1}.inline-label{display:flex;align-items:center;gap:10px;margin:0;font-size:10px}.inline-label select{width:auto;max-width:210px}.fetch-bar{margin-bottom:14px}.dot.busy{background:#d0aa6e}.service-stats strong{font-size:24px}.service-case-name{display:block;font-size:10px;color:var(--muted)}
@media(max-width:760px){.service-flow{flex-direction:column;align-items:stretch;padding:12px 15px 20px}.service-flow>div{text-align:center}.inline-label{flex-wrap:wrap;gap:3px}.inline-label select{max-width:170px}.service-stats strong{font-size:20px}}

/* Recorded scenario states share the conveyor clock; no wall-clock animation. */
.scene-summary{margin:10px 20px 5px;padding:12px 15px;background:#edf5e9;border-left:4px solid #177452;border-radius:4px}
.display-hold{margin:10px 20px;padding:12px 15px;background:#fff3df;border:1px solid #deb66d;border-radius:4px;color:#795017;font-size:13px;line-height:1.6}
.scene-summary.warning{background:#fff3df;border-color:#b07327}.scene-summary.fault{background:#fae9e5;border-color:#b63d37}.scene-summary.recovered{background:#edf4f9;border-color:#467c99}
.scene-summary strong{display:block;font-size:16px}.scene-summary span{display:block;font:11px/1.7 monospace;margin-top:4px;overflow-wrap:anywhere}.scene-summary p{font-size:11px;line-height:1.6;color:#526b59;margin:7px 0 0}
#replay-controls{flex-wrap:wrap;gap:10px}#replay-rate{width:104px;padding:7px;font-size:11px}
#replay-position{flex:1 1 120px}.scenario-story{border-top:3px solid #177452}
.scenario-story.warning{border-top-color:#b07327}.scenario-story.fault{border-top-color:#b63d37}
.scenario-story.recovered{border-top-color:#467c99}.scenario-story h3{font-size:19px}
.story-explanation{margin:0 20px 16px;font-size:12px;line-height:1.65}
.ipc-diagram{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,.9fr) minmax(0,1fr);gap:16px;align-items:stretch;margin:0 20px 12px}
.ipc-node{border:1px solid #cbd9ce;border-radius:7px;background:#f2f7f0;padding:16px;min-width:0}
.ipc-node strong,.ipc-node small{display:block}.ipc-node strong{font-size:13px;line-height:1.5;margin:8px 0}
.ipc-node small{font:10px/1.7 monospace;color:#62776a;overflow-wrap:anywhere}
.ipc-node.stalled{border:2px dashed #b07327;background:#fff7e9;padding:15px}
.ipc-node.crashed{border:2px solid #b63d37;background:repeating-linear-gradient(135deg,#fcf0ed,#fcf0ed 12px,#f9e6e1 12px,#f9e6e1 13px);padding:15px}
.ipc-node.replacement{border:2px solid #467c99;background:#edf5f9;padding:15px}
.ipc-links{display:flex;flex-direction:column;justify-content:center;gap:10px;min-width:0}
.ipc-path{text-align:center;border-bottom:2px solid #cbd9ce;padding:7px 3px;font:10px/1.6 monospace;color:#62776a}
.ipc-path.blocked{border-bottom:3px dashed #b07327;color:#8a520d;background:#fff7e9;font-weight:700}
.ipc-path.ok{border-color:#177452;color:#177452}.recovery-track{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;margin:16px 20px;padding:12px 15px;border-left:3px solid #467c99;background:#f0f5f8;font-size:11px}
.recovery-original{color:#647c88;font:10px/1.6 monospace}.recovery-arrow{color:#467c99}.recovery-validation{width:100%;color:#467c99}
.cpu-workers{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin:16px 20px}
.cpu-worker{padding:12px;border:1px solid #cbd9ce;border-radius:6px;background:#f3f7ef}
.cpu-worker.active{border-color:#177452;background:#eaf5ec}.cpu-worker strong,.cpu-worker span,.cpu-worker small{display:block}
.cpu-worker strong{font-size:12px}.cpu-worker>span{font:16px/2 monospace}.cpu-worker small{font:9px/1.7 monospace;color:#6e7f74}
.cpu-progress{height:5px;background:#d8e5d8;margin-top:10px;border-radius:4px;overflow:hidden}.cpu-progress span{height:100%;background:#177452}
.cpu-note{grid-column:1/-1;margin:0}.response-stages{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:18px 20px 12px;padding:0}
.response-stages li{flex:1 1 105px;border:1px solid #e0e7dc;border-radius:5px;padding:10px;background:#fafcf7}
.response-stages strong,.response-stages span{display:block}.response-stages strong{font-size:11px}.response-stages span{font:9px/1.7 monospace;margin-top:5px}
.response-stages .observed{border-color:#c0d6c4;color:#177452;background:#f0f7ee}.response-stages .pending{color:#74816d}
.story-footnote{border-top:1px solid #e8ede2;margin:16px 0 0;padding:12px 20px;font-size:10px;color:#6e7f74}
.comparison-motion{border-top:1px solid #dce4dc;border-bottom:1px solid #dce4dc;background:#fafcf7;margin-bottom:20px;padding-bottom:18px}
.comparison-lanes{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:18px 20px}
.comparison-lane{background:#fff;border:1px solid #dce4dc;border-radius:7px;padding:16px;min-width:0}
.comparison-lane h4{font:10px/1.5 monospace;color:#647c6a;letter-spacing:.5px;margin:0 0 12px}
.comparison-stage{display:block;font-size:14px;min-height:42px}.comparison-stage.warning{color:#8a520d}.comparison-stage.fault{color:#b63d37}
.comparison-lane svg{display:block;width:100%;height:auto;margin:12px 0}.comparison-measure{font:10px/1.8 monospace;color:#4d6858}
.comparison-controls{display:flex;align-items:center;gap:16px;padding:0 20px 12px;flex-wrap:wrap}
#compare-position{accent-color:#177452;flex:1 1 130px;min-width:60px}#compare-time{font:11px monospace;min-width:90px}
@media(max-width:1100px){.ipc-diagram{gap:10px;grid-template-columns:minmax(0,1fr) 150px minmax(0,1fr)}.ipc-node{padding:12px}.ipc-node.stalled,.ipc-node.crashed,.ipc-node.replacement{padding:11px}.comparison-lanes{grid-template-columns:1fr}}
@media(max-width:760px){.ipc-diagram{grid-template-columns:1fr}.ipc-links{padding:0 15px}.ipc-path{padding:5px}.scenario-story h3{font-size:17px}.response-stages li{flex-basis:110px}.comparison-controls{gap:10px}.comparison-lane{padding:12px}#replay-position{flex-basis:100%;order:2}#replay-time{margin-left:auto}}
/* Comparison race: brake latency against each run's declared contract */
.race-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px 24px;flex-wrap:wrap;padding:8px 20px 0}
.race-clock-wrap{display:flex;flex-direction:column;gap:2px}
#race-clock{font:600 40px/1.1 Consolas,ui-monospace,monospace;color:var(--ink);font-variant-numeric:tabular-nums;min-width:7.5ch}
.race-summary{margin:0 0 4px;font-size:21px;font-weight:600;color:#4d6858;text-align:right}
.race-summary.won{color:var(--green)}.race-summary.missed{color:var(--red)}
.race{margin:0 0 12px}
.race-label{display:flex;justify-content:space-between;font:10px/1.5 monospace;color:#647c6a;letter-spacing:.5px;margin-bottom:6px}
.race-bar{position:relative;height:18px;background:#eef2ec;border-radius:9px}
.race-fill{height:100%;width:0;max-width:100%;background:#8db89b;border-radius:9px}
.race-fill.met{background:var(--green)}.race-fill.missed{background:var(--red)}
.race-limit{position:absolute;top:-4px;bottom:-4px;width:0;border-left:2px dashed var(--ink)}
.race-status{display:block;font-size:22px;line-height:1.3;margin-top:8px;font-variant-numeric:tabular-nums}
.race-status.met{color:var(--green)}.race-status.missed,.race-status.late{color:var(--red)}.race-status.waiting,.race-status.before{color:#6e7f74}
.comparison-lane{transition:border-color .2s,box-shadow .2s}
.comparison-lane.race-met{border-color:#9cc8ad;box-shadow:inset 0 4px 0 var(--green)}
.comparison-lane.race-missed,.comparison-lane.race-late{border-color:#e2a9a4;box-shadow:inset 0 4px 0 var(--red)}
@media(max-width:760px){#race-clock{font-size:30px}.race-summary{font-size:17px;text-align:left}.race-status{font-size:18px}}
@media(prefers-reduced-motion:reduce){.comparison-lane{transition:none}}
/* Conveyor scene: pulsing sensor ring for a suspended or not-yet-validated sensor */
#sensor-ring.pulse{animation:sensor-pulse 1.2s ease-out infinite;transform-box:fill-box;transform-origin:center}
@keyframes sensor-pulse{from{transform:scale(.75);opacity:1}to{transform:scale(1.9);opacity:0}}
#rollers{transition:stroke .15s}
@media(prefers-reduced-motion:reduce){#sensor-ring.pulse{animation:none}#rollers{transition:none}}
/* IPC schematic: one representative message between controller and sensor channel */
.ipc-token-label{text-align:center;font:600 12px/1.4 Consolas,ui-monospace,monospace;color:#177452;min-height:17px}
.ipc-token-label.warning{color:#8a520d}.ipc-token-label.fault{color:var(--red)}
.ipc-track{display:block;width:100%;height:auto;overflow:visible}
.ipc-track .ipc-token{fill:#177452;transform-box:view-box}
.ipc-schematic{display:block;text-align:center;font:9px/1.4 monospace;color:#8a998e}
.ipc-track.loop .ipc-token{animation:ipc-loop 1.6s ease-in-out infinite}
.ipc-track.timeout .ipc-token{animation:ipc-timeout 1.6s ease-in-out infinite}
.ipc-track.send-blocked .ipc-token{fill:#b07327;transform:translateX(232px)}
.ipc-track.reply-blocked .ipc-token{fill:#b07327;transform:translateX(268px)}
.ipc-track.lost .ipc-token{fill:var(--red)}
.ipc-track.send-blocked .ipc-token,.ipc-track.reply-blocked .ipc-token{animation:ipc-wait 1s ease-in-out infinite alternate}
@keyframes ipc-loop{0%,8%{transform:translateX(0)}45%,55%{transform:translateX(268px)}92%,100%{transform:translateX(0)}}
@keyframes ipc-timeout{0%,8%{transform:translateX(0);fill:#177452}40%,62%{transform:translateX(268px);fill:#b07327}88%,100%{transform:translateX(0);fill:#b63b36}}
@keyframes ipc-wait{from{opacity:1}to{opacity:.45}}
@media(prefers-reduced-motion:reduce){.ipc-track .ipc-token{animation:none!important}}
/* Larger verdict badge */
.verdict{font-size:14px;font-weight:700;padding:10px 18px}
/* Focus view for screen recording (header button, F key or #focus) */
.focus-toggle{background:transparent;color:#eef6ee;border:1px solid #476052;border-radius:4px;font:10px monospace;letter-spacing:1px;padding:5px 10px;margin-left:12px;cursor:pointer}
.focus-toggle:hover,.focus-toggle[aria-pressed="true"]{background:#d0aa6e;border-color:#d0aa6e;color:#172c23}
.focus-toggle:focus-visible{outline:2px solid #d0aa6e;outline-offset:2px}
body.focus .sidebar{display:none}
body.focus .workspace{grid-template-columns:minmax(0,1fr);max-width:none}
body.focus main{padding:22px 48px}
body.focus .main-heading{margin-bottom:14px}
body.focus .verdict{font-size:20px;padding:12px 22px}
body.focus .mode{font-size:13px;padding:6px 10px}
body.focus .run-heading h3{font-size:14px}
body.focus .run-heading h3.run-title{font-size:26px}
body.focus #run-id{font-size:12px}
body.focus .result-summary{font-size:16px;max-width:1150px}
body.focus .tour{display:none}
body.focus .scene-summary strong{font-size:24px}
body.focus .scene-summary span{font-size:14px}
body.focus .scene-summary p{font-size:14px}
body.focus .conveyor-scene svg{max-height:400px}
body.focus .conveyor-layout{grid-template-columns:minmax(0,1fr) 230px}
body.focus .live-metrics span{font-size:12px}
body.focus .live-metrics strong{font-size:42px}
body.focus .metric-card strong{font-size:34px}
body.focus .metric-card span{font-size:12px}
body.focus .metric-card small{font-size:12px}
body.focus .scenario-story h3{font-size:26px}
body.focus .story-explanation{font-size:15px}
body.focus .ipc-node strong{font-size:17px}
body.focus .ipc-token-label{font-size:16px}
body.focus .story-footnote{display:none}
body.focus #race-clock{font-size:60px}
body.focus .race-summary{font-size:28px}
body.focus .race-status{font-size:30px}
body.focus .comparison-lane h4{font-size:13px}
body.focus .comparison-stage{font-size:17px}
body.focus .comparison-measure{font-size:13px}
/* Fault plan inputs (conveyor form) */
.fault-plan{border:1px solid #cfd9cd;border-radius:7px;padding:10px 12px 4px;margin:14px 0 4px}
.fault-plan[hidden]{display:none}
.fault-plan legend{font:10px/1.5 monospace;letter-spacing:1px;color:#6e7f74;padding:0 4px;text-transform:uppercase}
.plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(78px,1fr));gap:8px}
.plan-grid label{font-size:11px;margin:0;color:#4d6858}
.plan-grid label[hidden]{display:none}
.plan-grid input{width:100%;margin-top:4px}
.hint.plan-error{color:var(--red)}
/* Slow-reply sensor and message token: out, held inside the sensor, back late */
.ipc-node.slow{border:2px dashed #b07327;background:#fff7e9;padding:15px}
.ipc-track.slow .ipc-token{fill:#b07327;transform:translateX(268px);animation:ipc-slow 2s ease-in-out infinite}
.ipc-track.still .ipc-token{animation-play-state:paused}
@keyframes ipc-slow{0%,6%{transform:translateX(0);fill:#177452}30%{transform:translateX(268px);fill:#177452}36%,74%{transform:translateX(268px);fill:#b07327}96%,100%{transform:translateX(0);fill:#b07327}}
.race-status.running{color:#4d6858}
/* Sensor legend: the meaning that applies right now is bold; the others are dimmed */
.legend-item{opacity:.5;transition:opacity .2s}
.legend-item.active{opacity:1}
.legend-item.active text{font-weight:700;fill:#20382d}
.legend-item.pulse .legend-ring{animation:sensor-pulse 1.2s ease-out infinite;transform-box:fill-box;transform-origin:center}
@media(prefers-reduced-motion:reduce){.legend-item{transition:none}.legend-item.pulse .legend-ring{animation:none}}
/* Advisory AI explanation: visually secondary to the measured verdict. */
.explain-panel{border-style:dashed;background:#fbfcf9}.explain-panel .panel-heading{align-items:flex-start}.explain-panel>.hint{margin-bottom:12px}
.explain-output{margin:0 20px 14px;padding:14px 16px;border-left:3px solid #c9b48a;background:#f6f4ec;border-radius:0 6px 6px 0}
.explain-summary{font-size:13px;line-height:1.6;margin-top:0}.explain-list{margin:8px 0 10px;padding-left:18px;font-size:12px;line-height:1.6}.explain-list li+li{margin-top:4px}
.explain-output h4{font:10px monospace;letter-spacing:1px;color:var(--muted);margin:12px 0 2px;text-transform:uppercase}
#explain-status:empty{display:none}
.fl-value{font:11.5px/1.4 ui-monospace,Consolas,monospace;background:#e3eee5;color:#174f37;border-radius:3px;padding:0 4px;white-space:normal;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.compare-pair-row{padding:0 20px 14px}.compare-pair-row label{margin-top:0}.compare-match-hint{margin-top:-14px;margin-bottom:16px}.compare-note-reasons{margin:6px 0 0;padding-left:18px}
/* IPC service replay: recorded facts, slowed for viewing. */
.service-scene-wrap{margin:4px 20px 0;overflow-x:auto}.service-scene{display:block;width:100%;height:auto;max-height:230px;margin:auto}
.svc-box{fill:#f3f7ef;stroke:#cddbcf;stroke-width:1.5;transition:fill .25s,stroke .25s}.svc-box.frozen{fill:#e8f0f6;stroke:#7fa6c2}.svc-box.crashed,.svc-box.killed{fill:#faeae5;stroke:#d59c92;stroke-dasharray:6 4}.svc-box.resumed{fill:#f4f1e4;stroke:#c9b48a}
.svc-kicker{font:9px monospace;letter-spacing:.8px;fill:#7a8a76}.svc-pid{font:12px monospace;fill:var(--ink)}.svc-state{font:11px "Segoe UI",system-ui,sans-serif;fill:#566b58}
.svc-channel{stroke:#c9d5c6;stroke-width:2;stroke-dasharray:4 5}.svc-clock{font:600 20px monospace;fill:var(--ink)}
.svc-door{fill:#cddbcf;transition:fill .2s}.svc-door.closed{fill:#467c99}
.svc-token{fill:#d6a36c;stroke:#9f7047}.svc-token.reply{fill:#cfe8d6;stroke:#3f8a62}.svc-token.error{fill:#f3e3bf;stroke:#a87a26}.svc-token.timeout,.svc-token.dead{fill:#f6d5cd;stroke:#b63b36}.svc-token.late{fill:#f6efe2;stroke:#b8a37a;stroke-dasharray:4 3}
.svc-token-text{font:10.5px monospace;fill:#2e3a30}
.svc-timer-track{fill:#e3e9df}.svc-timer-fill{fill:#467c99}.svc-timer-fill.expired{fill:#b63b36}.svc-timer-bound{stroke:#2e3a30;stroke-width:1.5}
.svc-replay-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:6px 20px 0}.svc-replay-bar strong{font-size:12px;font-weight:600;flex:1;min-width:180px}
#svc-caption{min-height:3.2em;margin-top:6px}
tr.replaying td{background:#f6f4ec}.replay-row{display:inline-block;margin-top:4px;border:0;background:none;padding:0;cursor:pointer;color:#617d67;font-size:10px}
/* Five-case strip */
.service-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:18px}
.strip-card{display:flex;flex-direction:column;gap:4px;text-align:left;background:white;border:1px solid var(--line);border-top:3px solid #b7d5bd;border-radius:8px;padding:12px 12px 10px;color:var(--ink)}
.strip-card:hover{background:#f9fbf6}.strip-card.FAIL{border-top-color:#d59c92}.strip-card.INCONCLUSIVE{border-top-color:#e3cda6}
.strip-title{font-size:12px;font-weight:600}.strip-outcome{font-size:10px;color:var(--muted);min-height:2.6em}.strip-ms{font:13px monospace}.strip-verdict{font:9px monospace;letter-spacing:.5px}
.strip-diagram{width:100%;height:auto;max-height:60px}.strip-life{stroke:#b9c7b6;stroke-width:1.5;stroke-dasharray:3 3}
.strip-arrow{stroke-width:1.6}.strip-arrow.request{stroke:#9f7047}.strip-arrow.reply{stroke:#3f8a62;stroke-dasharray:4 2}.strip-arrow.bad{stroke:#b63b36}.strip-arrow.late{stroke:#b8a37a;stroke-dasharray:3 2}
.strip-head.request{fill:#9f7047}.strip-head.reply{fill:#3f8a62}.strip-head.bad{fill:#b63b36}.strip-head.late{fill:#b8a37a}
.strip-door{fill:#467c99}.strip-frozen{fill:#bcd2e2}.strip-crash{font:bold 15px sans-serif;fill:#b63b36}.strip-timer{fill:none;stroke:#467c99;stroke-width:1.5}.strip-note{font:8px monospace;fill:#7a8a76}
/* Expected vs returned answers */
.answer{display:inline-block;font:11px monospace;border-radius:4px;padding:1px 6px;margin:0 6px 2px 0}.answer.match{background:#e2f1e5;color:#18764c}.answer.mismatch{background:#fae7e1;color:#b43f36;font-weight:600}
/* Every call on one time axis */
.service-dots{padding:0 10px 10px}.dot-grid{stroke:#edf1e8}.dot-tick{font:9px monospace;fill:#8a9786}.dot-lane{font:10.5px "Segoe UI",system-ui,sans-serif;fill:#4e5f50}
.dot-bound{stroke:#467c99;stroke-dasharray:5 3;stroke-width:1.5}.dot-bound-label{font:9px monospace;fill:#467c99}.dot-limit{stroke:#b63b36;stroke-dasharray:5 3;stroke-width:1.5}.dot-limit-label{font:9px monospace;fill:#b63b36}
.dot{fill-opacity:.75;stroke-width:1.2}.dot.PASS{fill:#3f8a62;stroke:#1f5f40}.dot.FAIL{fill:#b63b36;stroke:#7d2420}.dot.INCONCLUSIVE{fill:#d6a743;stroke:#94651a}
@media(max-width:1100px){.service-strip{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.service-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.service-scene-wrap{margin:4px 10px 0}.service-scene{min-width:560px}}
@media(prefers-reduced-motion:reduce){.svc-box,.svc-door{transition:none}}

/* Testbed probe: attributed checks, stall markers on the cycle chart, summary line. */
.attribution-tag{font:9px monospace;letter-spacing:.6px;font-weight:600;color:#5b3f8c;background:#f1ebfa;border:1px solid #d6c8ee;border-radius:3px;padding:1px 5px;margin-left:4px;white-space:nowrap}.testbed-stall{stroke:#7a5ea8;stroke-width:1.6;stroke-linecap:round}.testbed-band{fill:#7a5ea8;fill-opacity:.16}.violet{background:#7a5ea8}#stall-legend{display:inline-flex;align-items:center;gap:5px;margin-left:5px}.testbed-hint{color:#5f6f63;margin-top:-6px}
/* Hosted replay (data-static): explain the page and hide everything that launches or controls a run. */
.static-banner{display:none}[data-static="1"] .static-banner{display:block;margin:4px 0 22px;padding:14px 15px;background:#f9fbf6;border:1px solid #cddbc9;border-left:3px solid var(--green);border-radius:6px;font-size:12px;line-height:1.6}[data-static="1"] .static-banner p{margin:6px 0;color:#5d6f62}[data-static="1"] .static-banner a{font-weight:600;color:var(--green)}[data-static="1"] #run-form,[data-static="1"] .local-tag,[data-static="1"] #live-controls,[data-static="1"] #fetch-bar{display:none!important}
/* Run heading: a readable title, the run ID as the evidence reference, and the result in plain language. */
.run-heading{align-items:flex-start}.run-heading-text{min-width:0;flex:1}.run-kicker{display:flex;align-items:center;flex-wrap:wrap;gap:4px}
.run-heading h3.run-title{font:600 19px/1.3 "Segoe UI",system-ui,sans-serif;color:var(--ink);letter-spacing:-.3px;margin:10px 0 3px;overflow-wrap:anywhere}
.run-meta{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}#run-id{font:11px/1.8 monospace;color:#73806e;overflow-wrap:anywhere}
.copy-link{border:0;background:none;padding:0;text-decoration:underline;font-size:10px}
.result-summary{margin:10px 0 0;max-width:900px;font-size:13.5px;line-height:1.6;color:#2b463a}
/* Hosted replay: guided first steps. */
.tour{margin:-6px 0 22px}.tour-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:8px}
.tour-step{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:10px;row-gap:3px;align-items:start;text-align:left;padding:12px 14px;border:1px solid #cddbc9;border-radius:8px;background:#f9fbf6;color:var(--ink);transition:border-color .15s,background .15s}
.tour-step:hover{background:#fff;border-color:#9fbea9}.tour-step.active{background:#fff;border-color:var(--green);box-shadow:inset 0 3px 0 var(--green)}
.tour-number{grid-row:span 2;font:600 12px/24px monospace;width:24px;height:24px;border-radius:50%;text-align:center;background:#e2ede3;color:var(--green)}
.tour-step.active .tour-number{background:var(--green);color:#fff}.tour-step strong{font-size:12.5px;font-weight:600;line-height:1.35}.tour-step small{font-size:11px;line-height:1.45;color:var(--muted)}
@media(prefers-reduced-motion:reduce){.tour-step{transition:none}}
@media(max-width:1100px){.tour-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Phones: on the hosted replay the result comes first and the saved-run list follows it. */
@media(max-width:760px){[data-static="1"] .workspace{display:flex;flex-direction:column}[data-static="1"] main{order:-1}[data-static="1"] .sidebar{border-bottom:0;border-top:1px solid var(--line)}
#sensor-legend{display:none}.focus-toggle{display:none}.live-metrics strong{font-size:20px;white-space:nowrap}.tour-steps{grid-template-columns:1fr}.tour-step{padding:10px 12px}.tour-step small{display:none}
.run-heading h3.run-title{font-size:17px}.result-summary{font-size:13px}}
