:root{--bg: #ffffff;--panel: #f6f8fa;--line: #d0d7de;--text: #1f2328;--muted: #6e7781;--accent: #0074a2;--produce: #0074a2;--fetch: #1a7f37;--link: #8250df;--reject: #cf222e;--amber: #bc4c00;--fence: #cf222e;--source: #57606a;--destination: #0074a2;color-scheme:light}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:13px/1.4 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}.controls{padding:10px 16px;background:var(--panel);border-bottom:1px solid var(--line)}.controls h1{margin:0;font-size:16px;font-weight:600}.playback{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px 12px;padding:6px 16px;border-bottom:1px solid var(--line)}.playback label{display:inline-flex;align-items:center;gap:6px}.playback output{min-width:3em;color:var(--muted);font-variant-numeric:tabular-nums}button,select{font:inherit;padding:4px 10px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--text);cursor:pointer}button.primary{background:var(--accent);border-color:var(--accent);color:#fff}button:disabled{opacity:.5;cursor:default}.timeline{display:flex;align-items:center;gap:12px;padding:6px 16px 8px;border-bottom:1px solid var(--line)}.timeline .track{position:relative;flex:1 1 auto;padding-top:50px}.timeline #scrub{position:relative;width:100%;margin:0}#markers{position:absolute;top:0;left:0;right:0;height:44px;background:#f6f8fa;border:1px solid var(--line);border-radius:6px}.marker{position:absolute;top:0;bottom:-16px;width:0;color:var(--muted)}.marker-line{position:absolute;left:-1px;bottom:0;width:2px;background:currentColor;opacity:.6;pointer-events:none}.marker button{position:absolute;transform:translate(-50%);padding:0 6px;font-size:10px;font-weight:600;line-height:14px;border:1.5px solid currentColor;border-radius:8px;background:#fff;color:inherit;white-space:nowrap}.marker button:hover{box-shadow:0 0 0 1.5px currentColor}.marker.start{color:var(--accent)}.marker.wait{color:var(--amber)}.marker.threshold{color:var(--fetch)}.marker.fence{color:var(--fence)}.marker.promote{color:var(--link)}.marker.switch{color:var(--destination)}.marker.done{color:var(--fetch)}main{display:flex;align-items:stretch}#scene{flex:1 1 auto;min-width:0;height:auto;display:block}aside{flex:0 0 300px;position:relative;border-left:1px solid var(--line);background:var(--panel)}.log-panel{position:absolute;inset:0;padding:0 16px 8px;overflow-y:auto}@media(max-width:900px){main{flex-direction:column}#scene{width:100%}aside{flex:0 0 180px;border-left:none;border-top:1px solid var(--line)}}aside h2{position:sticky;top:0;font-size:13px;margin:0;padding:12px 0 8px;background:var(--panel);border-bottom:1px solid var(--line)}#log{list-style:none;margin:0;padding:0;font-size:12px}#log li{padding:3px 0;border-bottom:1px solid var(--line)}#log .ok{color:var(--fetch)}#log .warn{color:var(--amber)}.box{fill:#fff;stroke:var(--line);stroke-width:1.5}.box-title{font-size:14px;font-weight:600;fill:var(--text)}.box-sub{font-size:11px;fill:var(--muted)}.label{font-size:12px;fill:var(--text)}.value{font-size:11px;fill:var(--muted);font-variant-numeric:tabular-nums}.wire{fill:none;stroke:var(--line);stroke-width:1.2}.link-box{fill:#faf7ff;stroke:var(--link)}.link-readout{fill:#fff;stroke:var(--link);stroke-width:1;opacity:.95}.wire.link{stroke:var(--link);stroke-width:1;stroke-dasharray:5 4;opacity:.8}.motion{fill:none;stroke:none}.wire.hidden{display:none}.gateway{fill:#f6fbfe;stroke:var(--accent);stroke-width:1.5}.cluster.source{stroke:var(--source)}.cluster.destination{stroke:var(--destination)}.pill{font-size:10px;font-weight:600}.pill.ACTIVE{fill:var(--link)}.pill.PENDING_STOPPED{fill:var(--amber)}.pill.STOPPED{fill:var(--fetch)}.dot{pointer-events:none}.dot.produce{fill:var(--produce)}.dot.fetch{fill:var(--fetch)}.dot.link{fill:var(--link)}.dot.reject{fill:var(--reject)}.cell{fill:#eaeef2}.cell.source{fill:var(--source)}.cell.destination{fill:var(--destination)}.cell.lag{fill:#fff1e5;stroke:var(--amber);stroke-width:1}.lag-text{font-size:11px;font-weight:600;fill:var(--amber);font-variant-numeric:tabular-nums}.lag-text.zero{fill:var(--muted);font-weight:400}.lag-text.over{fill:var(--fence)}.lag-text.met{fill:var(--fetch)}.topic-picker div{display:grid;grid-template-columns:repeat(3,1fr);gap:4px 8px}.topic-choice{display:flex;align-items:center;gap:6px;height:24px;padding:0 6px;font-size:12px;border:1px solid var(--line);border-left:4px solid var(--topic);border-radius:4px;background:#fff;cursor:pointer}.topic-choice input{margin:0;accent-color:var(--topic);cursor:pointer}.topic-choice:hover:not(.disabled){border-color:var(--accent);border-left-color:var(--topic)}.topic-choice.disabled,.topic-choice.disabled input{cursor:default}.topic-choice.disabled{color:var(--muted)}.topic-choice.moved{color:var(--destination)}.kcp-start button{width:100%;height:100%}.kcp-box{stroke:var(--text)}.kcp-divider{stroke:var(--line)}.kcp-setting{font-size:12px;fill:var(--text)}.number-box input{box-sizing:border-box;width:100%;height:100%;margin:0;padding:0 6px;font-size:12px;font-family:inherit;font-variant-numeric:tabular-nums;text-align:right;border:1px solid var(--line);border-radius:4px;background:#fff;color:var(--text)}.number-box input:focus{outline:2px solid var(--accent);outline-offset:-1px}.kcp-action{font-size:13px;font-weight:600;fill:var(--muted)}.kcp-action.fence{fill:var(--fence)}.kcp-action.switch{fill:var(--destination)}.kcp-action.promote{fill:var(--link)}.kcp-wire{fill:none;stroke:var(--line);stroke-width:1.2;stroke-dasharray:4 4}.kcp-wire.active{stroke-width:2.5;stroke-dasharray:none}.kcp-wire.active.fence{stroke:var(--fence)}.kcp-wire.active.switch{stroke:var(--destination)}.kcp-wire.active.promote{stroke:var(--link)}.kcp-wire-label{font-size:11px;fill:var(--muted)}.row-state{font-size:10.5px;font-weight:600;fill:var(--muted)}.row.migrating .row-box{stroke:var(--accent);stroke-width:2}.row.fenced .row-box{stroke:var(--fence);stroke-width:2.5}.row.fenced .row-state{fill:var(--fence)}.row.moved .row-state{fill:var(--destination)}.app-title{font-size:13px;font-weight:600;fill:var(--text)}.app-topic{font-size:11.5px;fill:var(--text)}.app-line.migrating .app-topic{font-weight:600}.app-line.fenced .app-topic{fill:var(--fence)}.app-line.moved .app-topic{fill:var(--destination)}.slider input{display:block;width:100%;height:16px;margin:0;cursor:pointer;appearance:none;-webkit-appearance:none;background:transparent}.slider input::-webkit-slider-runnable-track{height:4px;border-radius:2px;background:var(--border, #d0d7de)}.slider input::-moz-range-track{height:4px;border-radius:2px;background:var(--border, #d0d7de)}.slider input::-webkit-slider-thumb{-webkit-appearance:none;width:12px;height:12px;margin-top:-4px;border-radius:50%;border:none;background:var(--topic)}.slider input::-moz-range-thumb{width:12px;height:12px;border-radius:50%;border:none;background:var(--topic)}.route-text{font-size:11px;font-weight:600}.route-source .route-text{fill:var(--source)}.route-destination .route-text{fill:var(--destination)}.route-fenced .route-text{fill:var(--fence)}.route-fenced .route-box{stroke:var(--fence);stroke-width:2.5}.route-destination .route-box{stroke:var(--destination)}.wire.lane.in-use{stroke-width:1.4}
