:root{--bg: #121211;--panel: #1a1a19;--raised: #232321;--line: #302f2c;--text: #ecebe6;--muted: #a09f95;--ok: #3fb97f;--warn: #e0a22a;--error: #f06a67;--accent: #5aa0f0;--danger-line: #7a3232;--c0: #3987e5;--c1: #d95926;--c2: #199e70;--c3: #c98500;--c4: #d55181;--c5: #9085e9;color-scheme:dark;font:14px/1.45 system-ui,Segoe UI,sans-serif}@media (prefers-color-scheme: light){:root:not([data-theme=dark]){--bg: #f1f1ee;--panel: #fcfcfb;--raised: #ecebe7;--line: #d9d8d2;--text: #1b1b1a;--muted: #5d5c55;--ok: #12794f;--warn: #8f6200;--error: #c22d2a;--accent: #1f64bd;--danger-line: #d9a3a1;--c0: #2a78d6;--c1: #eb6834;--c2: #1baf7a;--c3: #eda100;--c4: #e87ba4;--c5: #4a3aa7;color-scheme:light}}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.shell{display:grid;grid-template-columns:200px 1fr;min-height:100vh}nav{display:flex;flex-direction:column;gap:2px;padding:16px 12px;border-right:1px solid var(--line);background:var(--panel);position:sticky;top:0;height:100vh;overflow-y:auto}nav a{color:var(--text);text-decoration:none;padding:6px 10px;border-radius:6px;display:flex;justify-content:space-between}nav a:hover{background:var(--raised)}nav a[aria-current=page]{background:var(--line)}nav .count{background:var(--error);color:#fff;border-radius:9px;padding:0 7px;font-size:12px}.brand{padding:4px 10px 12px}.link-state{margin-top:auto;padding:6px 10px;font-size:12px}main{padding:20px;display:flex;flex-direction:column;gap:16px;min-width:0}.card{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:14px 16px;min-width:0}.card header{display:flex;justify-content:space-between;align-items:center;gap:8px}.card h2{font-size:15px;margin:0 0 10px}.offline{opacity:.6;filter:grayscale(1)}.node{display:flex;flex-direction:column;gap:16px;min-width:0}.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}.stat{background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:10px 14px;display:flex;flex-direction:column;min-width:0}.stat strong{font-size:22px;font-variant-numeric:tabular-nums}.stat .label,.stat .hint,.muted{color:var(--muted);font-size:12px}.stat.warn strong,.warn{color:var(--warn)}.stat.error strong,.error{color:var(--error)}.ok{color:var(--ok)}.charts{display:grid;grid-template-columns:repeat(auto-fill,minmax(420px,1fr));gap:12px}.columns{display:grid;grid-template-columns:repeat(auto-fill,minmax(380px,1fr));gap:12px}.chart{margin:0;background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:10px 12px;min-width:0}.chart figcaption{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:13px;margin-bottom:4px}.chart svg{width:100%;height:auto;display:block}.chart .grid{stroke:var(--line)}.chart .axis{fill:var(--muted);font-size:11px}.chart .cursor{stroke:var(--muted);stroke-dasharray:3 3}.chart .line{fill:none;stroke-width:2;stroke-linejoin:round;vector-effect:non-scaling-stroke}.legend{display:flex;gap:10px;flex-wrap:wrap;font-variant-numeric:tabular-nums;color:var(--text)}.swatch:before{content:"";display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:5px;background:currentColor}.swatch{color:var(--text)}.swatch.c0:before{background:var(--c0)}.swatch.c1:before{background:var(--c1)}.swatch.c2:before{background:var(--c2)}.swatch.c3:before{background:var(--c3)}.swatch.c4:before{background:var(--c4)}.swatch.c5:before{background:var(--c5)}.line.c0{stroke:var(--c0)}.line.c1{stroke:var(--c1)}.line.c2{stroke:var(--c2)}.line.c3{stroke:var(--c3)}.line.c4{stroke:var(--c4)}.line.c5{stroke:var(--c5)}.table input[type=search]{margin-bottom:8px}.scroll{overflow:auto;max-height:520px}table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums}th,td{text-align:left;padding:5px 8px;border-bottom:1px solid var(--line);white-space:nowrap}th button{all:unset;cursor:pointer;color:var(--muted);font-size:12px}th button:focus-visible{outline:2px solid var(--accent)}tbody tr:hover,tbody tr.picked{background:var(--raised)}tr.picked{outline:1px solid var(--accent)}tbody tr[data-pick]{cursor:pointer}input,select,button{font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--line);border-radius:6px;padding:5px 10px}button{cursor:pointer}button:hover:not(:disabled){border-color:var(--accent)}button:disabled{opacity:.5;cursor:default}button.danger{border-color:var(--danger-line)}button.ghost{border:0;background:none;color:var(--muted)}.actions,.filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:8px}.action{display:inline-flex;gap:6px;align-items:center}.action [role=status]{font-size:12px}.segmented{display:inline-flex;align-self:flex-start}.segmented button{border-radius:0}.segmented button:first-child{border-radius:6px 0 0 6px}.segmented button:last-child{border-radius:0 6px 6px 0}.segmented button[aria-pressed=true]{background:var(--line)}.badge{font-size:12px;padding:1px 8px;border-radius:9px;border:1px solid currentColor}.badge.ok{color:var(--ok)}.badge.warn{color:var(--warn)}.badge.error{color:var(--error)}.badge.idle{color:var(--muted)}.alerts,.events,.log{list-style:none;padding:0;margin:0}.alerts li,.events li{padding:4px 0;border-bottom:1px solid var(--line)}.log{font:12px/1.5 ui-monospace,Consolas,monospace;max-height:70vh;overflow:auto}.log li{white-space:pre-wrap;word-break:break-word}.log li.warn .text{color:var(--warn)}.log li.error .text{color:var(--error)}.facts{display:grid;grid-template-columns:max-content 1fr;gap:4px 12px;margin:0}.facts dt{color:var(--muted)}.login{max-width:320px;margin:18vh auto;display:flex;flex-direction:column;gap:12px;padding:0 16px}.login label{display:flex;flex-direction:column;gap:4px}.picker{display:flex;gap:8px;align-items:center}@media (max-width: 760px){.shell{grid-template-columns:1fr}nav{position:static;height:auto;flex-direction:row;flex-wrap:wrap;border-right:0;border-bottom:1px solid var(--line)}.brand,.link-state{width:100%}main{padding:12px 16px}.charts,.columns{grid-template-columns:1fr}}.world{width:100%;height:auto;image-rendering:pixelated;cursor:crosshair;border-radius:6px}h3{font-size:13px;color:var(--muted);margin:14px 0 6px}
