:root{--ink:#1f2933;--muted:#6b7785;--bg:#f6f7f9;--panel:#fff;--line:#c8cfd6;--ours:#3d6e93;--ours-pale:#e9f1f8;--ots:#6b7280;--ots-fill:#fbfbfc;--world:#eef1f4;--lineage:#2c3a48;--lineage-track:#b7c2cd;--mat:#22a05a;--mat-fill:#d6f5e1;--retry:#e39a0b;--retry-fill:#fde8b5;--offline:#d93025;--k-scenario:#13777b;--k-operator:#6a4fb3;--k-presenter:#4b5563;--font:system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--mono:ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--ink);font:13px/1.35 var(--font);overflow:hidden}.mono{font-family:var(--mono)}.muted{color:var(--muted);fill:var(--muted)}.small{font-size:12px}.app{grid-template-rows:auto auto 1fr auto;height:100vh;display:grid}.bar{background:var(--panel);border-bottom:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:6px 8px;padding:6px 12px;display:flex}.brand{align-items:center;gap:8px;margin-right:6px;font-size:14px;display:flex}.brand .home{color:var(--muted);font-size:16px;text-decoration:none}.clock{min-width:74px;font-size:18px;font-weight:600}.sep{background:var(--line);width:1px;height:22px;margin:0 2px}button,select,input{font:inherit;color:inherit}button{border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:4px;padding:3px 9px}button:hover{border-color:var(--ink)}button.on{background:var(--ink);color:#fff;border-color:var(--ink)}button.on.danger{background:var(--offline);border-color:var(--offline)}button.primary{background:var(--ink);color:#fff;border-color:var(--ink)}button.hint{color:var(--muted);border-style:dashed}.seg{display:inline-flex}.seg button{border-radius:0;margin-left:-1px}.seg button:first-child{border-radius:4px 0 0 4px}.seg button:last-child{border-radius:0 4px 4px 0}input[type=text],input:not([type]){border:1px solid var(--line);border-radius:4px;padding:2px 6px}.kind-tag{letter-spacing:.06em;text-transform:uppercase;color:#fff;border-radius:3px;padding:2px 7px;font-size:11px;font-weight:700}.kind-tag.presenter{background:var(--k-presenter)}.kind-tag.scenario{background:var(--k-scenario)}.kind-tag.operator{background:var(--k-operator)}.presenter{border-top:3px solid var(--k-presenter)}.banner{background:#fffbe8;border-bottom:1px solid #eadfa6;flex-wrap:wrap;gap:4px 18px;padding:4px 12px;font-size:12px;display:flex}.banner .boundary.ok{color:var(--mat);font-weight:600}.banner .boundary.bad{color:var(--offline);font-weight:700}.stage{min-height:0;padding:4px 8px;position:relative}.diagram{width:100%;height:100%;display:block}.legend{color:var(--muted);background:#f6f7f9e6;border-radius:4px;gap:14px;padding:2px 6px;font-size:11px;display:flex;position:absolute;bottom:6px;left:14px}.legend .sw{vertical-align:-1px;border-radius:2px;width:14px;height:10px;margin-right:4px;display:inline-block}.sw.ours{background:var(--ours-pale);border:2px solid var(--ours)}.sw.ots{background:var(--ots-fill);border:1.5px dashed var(--ots)}.sw.store{border:3px double var(--ours);background:#fff}.sw.mat{background:var(--mat-fill);border:1.5px solid var(--mat)}.sw.retry{background:var(--retry-fill);border:1.5px solid var(--retry)}.sw.offline{box-shadow:0 0 0 2px var(--offline), 0 0 6px var(--offline);background:#fff}.controls{background:var(--panel);border-top:1px solid var(--line);grid-template-columns:1fr auto;gap:8px;padding:6px 12px 8px;display:grid}.panel{border-radius:6px;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:6px 10px;display:flex}.panel .who{margin-right:6px}.panel.scenario{border:1px solid #b9dcdc;border-left:4px solid var(--k-scenario);background:#eef7f7}.panel.operator{border:1px solid #d4caee;border-left:4px solid var(--k-operator);background:#f3f0fa}.panel label{align-items:center;gap:6px;display:inline-flex}.panel input[type=range]{width:90px}.inputs{flex-wrap:wrap;gap:6px 14px;display:flex}.input{align-items:center;gap:6px;display:inline-flex}.input .name{min-width:74px;font-weight:600}.app.side{grid-template-rows:auto auto 1fr;grid-template-columns:270px 1fr}.app.side>.bar,.app.side>.banner{grid-column:1/-1}.app.side>.controls{border-top:0;border-right:1px solid var(--line);grid-area:3/1;grid-template-columns:1fr;align-content:start;gap:8px;min-height:0;padding:8px;overflow:auto}.app.side>.stage{grid-area:3/2}.app.side .panel{flex-direction:column;align-items:stretch;gap:6px;padding:8px 10px}.app.side .panel .who{margin:0}.app.side .panel .kind-tag{align-self:flex-start}.app.side .inputs{flex-direction:column;gap:8px}.app.side .input{grid-template-columns:1fr auto;gap:2px 8px;display:grid}.app.side .input label{grid-column:1/-1;justify-content:space-between}.app.side .panel label{justify-content:space-between}.app.side .panel input[type=range]{width:120px}.app.side .legend{flex-wrap:wrap;gap:4px 12px}.app.side .panel .who{font-size:11px;line-height:1.25}.app.side .inputs{gap:4px}.app.side .input{row-gap:0}.app.side .panel button{padding:1px 8px}.app.side .panel label{min-height:22px}.eventlog{background:var(--panel);border:1px solid var(--line);z-index:10;border-radius:8px;flex-direction:column;width:520px;display:flex;position:fixed;top:90px;bottom:120px;right:16px;box-shadow:0 8px 30px #0000002e}.eventlog header{border-bottom:1px solid var(--line);align-items:baseline;gap:8px;padding:8px 12px;display:flex}.eventlog header button{margin-left:auto}.eventlog ol{margin:0;padding:4px 0;font-size:12px;list-style:none;overflow:auto}.eventlog li{grid-template-columns:62px 78px 1fr;gap:6px;padding:2px 12px;display:grid}.eventlog li .k{color:var(--muted)}.eventlog li.fail .k,.eventlog li.defect .k{color:var(--offline);font-weight:600}.eventlog li.retry .k{color:var(--retry);font-weight:600}.eventlog li.commit .k,.eventlog li.announce .k{color:var(--mat);font-weight:600}.diagram text{font-family:var(--font);fill:var(--ink);font-size:13px}.diagram .title{font-size:14px;font-weight:600}.diagram .small-title{font-size:13px}.diagram .title-sm{font-weight:600}.diagram .small{font-size:12px}.diagram .tiny{font-size:11px}.diagram .mono{font-family:var(--mono)}.diagram .muted{fill:var(--muted)}.diagram .tag{fill:var(--muted);font-size:11px;font-style:italic}.diagram .region{fill:var(--world);opacity:.55}.diagram .region.consumers{fill:#f1f0f6}.diagram .boundary{stroke:var(--ink);stroke-width:2px;stroke-dasharray:2 6;stroke-linecap:round;opacity:.55}.diagram .region-label{letter-spacing:.14em;fill:var(--muted);font-size:12px;font-weight:700}.diagram .frame-title{font-size:15px;font-weight:700}.box>rect{stroke-width:1.5px}.box.ours>rect{fill:var(--ours-pale);stroke:var(--ours);stroke-width:2px}.box.ots>rect{fill:var(--ots-fill);stroke:var(--ots);stroke-dasharray:6 4}.box.world>rect{fill:#fff;stroke:#9aa5b1}.box.asset>rect{fill:#fff;stroke:var(--ots);stroke-dasharray:6 4;stroke-width:2px}.box.asset.materialising>rect{fill:var(--mat-fill);stroke:var(--mat)}.diagram .asset-title{font-family:var(--mono);font-size:15px;font-weight:700}.orchestrator-frame rect{fill:#ffffff8c;stroke-width:2px}.store>rect{fill:#fff;stroke:var(--ours);stroke-width:1.5px}.store.ots>rect{stroke:var(--ots);stroke-dasharray:5 3;fill:var(--ots-fill)}.shim rect{fill:var(--ours-pale);stroke:var(--ours);stroke-width:1px}.shim .shim-label{font-size:11px;font-family:var(--mono);fill:var(--ours)}.shim.retry rect{fill:var(--retry-fill);stroke:var(--retry);stroke-width:2px}.shim.retry .shim-label,.shim .shim-retry{fill:#8a5a00;font-size:11px;font-weight:700}.module.offline>rect{stroke:var(--offline)}.diagram .offline-label{fill:var(--offline);font-weight:700}.diagram .status.alert{fill:var(--offline);font-weight:600}.bar .track{fill:#e3e7eb}.bar .fill{fill:var(--ours)}.bar.stale .fill{fill:var(--muted)}.ring .track{fill:none;stroke:#e3e7eb;stroke-width:4px}.ring .fill{fill:none;stroke:var(--ink);stroke-width:4px}.diagram .strong{font-weight:700}.residuals .axis,.diagram .axis{stroke:#b8c0c8;stroke-width:1px}.residuals .threshold{stroke:var(--muted);stroke-dasharray:3 3;stroke-width:1px}.residuals .resid{fill:#9fb3c4}.residuals .resid.over{fill:var(--ink)}.diagram .zbar{fill:#7d93a6}.diagram .axis.zero{stroke:var(--ink)}.edge{fill:none;stroke:#9aa5b1;stroke-width:1.4px}.edge.lineage{stroke:var(--lineage-track);stroke-width:7px;stroke-linejoin:round}.edge.trigger{stroke:var(--lineage);stroke-dasharray:2 4;stroke-width:1.6px}.edge.query,.edge.read{stroke:#b4bec8}.edge.call{stroke:var(--ours)}.arrowhead{fill:#8995a1}.arrowhead.heavy{fill:var(--lineage-track)}.diagram .edge-label{fill:var(--muted);font-style:italic}.diagram .loop-label{fill:var(--lineage);font-style:italic}.token{fill:var(--ink);stroke:#fff;stroke-width:1.5px}.token.lineage{fill:var(--lineage);stroke-width:2.5px}.token.retry{fill:var(--retry)}.counter rect{fill:#fff;stroke:var(--line);opacity:.92}.counter.recent rect{stroke:var(--ink)}.diagram .verdict{font-size:22px;font-weight:700}.svg-button{cursor:pointer}.svg-button rect{fill:#fff;stroke:var(--line)}.svg-button:hover rect,.svg-button:focus-visible rect{stroke:var(--ink)}.svg-button:active rect{fill:var(--world)}.svg-button:focus{outline:none}.diagram .verdict.ok{fill:var(--mat)}.diagram .verdict.bad{fill:var(--offline)}
