:root{color-scheme:light;--page: #f9f9f7;--surface-1: #fcfcfb;--surface-2: #f3f2ee;--text-primary: #0b0b0b;--text-secondary: #52514e;--text-muted: #6f6d68;--border: rgba(11, 11, 11, .1);--grid: #e1e0d9;--axis: #c3c2b7;--accent: #2a78d6;--accent-ink: #ffffff;--accent-wash: rgba(42, 120, 214, .1);--danger: #d03b3b;--series-1: #2a78d6;--series-2: #eb6834;--series-3: #1baf7a;--status-good: #0ca30c;--status-warning: #fab219;--status-off: #898781;--seq-100: #cde2fb;--seq-250: #86b6ef;--seq-400: #3987e5;--seq-550: #1c5cab;--seq-700: #0d366b;--radius: 10px;--shadow: 0 1px 2px rgba(11, 11, 11, .04);font-family:system-ui,-apple-system,Segoe UI,sans-serif;font-size:14px;line-height:1.45}@media (prefers-color-scheme: dark){:root:not([data-theme=light]){color-scheme:dark;--page: #0d0d0d;--surface-1: #1a1a19;--surface-2: #232321;--text-primary: #f0efec;--text-secondary: #c3c2b7;--text-muted: #9a9890;--border: rgba(255, 255, 255, .1);--grid: #2c2c2a;--axis: #383835;--accent: #3987e5;--accent-wash: rgba(57, 135, 229, .16);--danger: #e66767;--series-1: #3987e5;--series-2: #d95926;--series-3: #199e70;--seq-100: #184f95;--seq-250: #1c5cab;--seq-400: #2a78d6;--seq-550: #5598e7;--seq-700: #9ec5f4}}*{box-sizing:border-box}body{margin:0;background:var(--page);color:var(--text-primary)}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3{margin:0;font-weight:600}h1{font-size:22px}h2{font-size:16px}h3{font-size:14px}code,.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12.5px}.shell{display:grid;grid-template-columns:220px 1fr;min-height:100vh}.sidebar{background:var(--surface-1);border-right:1px solid var(--border);padding:20px 12px;display:flex;flex-direction:column;gap:4px;position:sticky;top:0;height:100vh}.brand{font-weight:700;font-size:15px;padding:4px 10px 18px}.brand small{display:block;font-weight:400;color:var(--text-muted);font-size:12px}.nav-link{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;color:var(--text-secondary);font-weight:500}.nav-link:hover{background:var(--surface-2);text-decoration:none}.nav-link.active{background:var(--accent-wash);color:var(--accent)}.sidebar-footer{margin-top:auto;padding:12px 10px 0;border-top:1px solid var(--border);font-size:13px;color:var(--text-secondary)}.main{padding:24px 28px 48px;min-width:0}.page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}.page-header p{margin:4px 0 0;color:var(--text-secondary)}.stack{display:flex;flex-direction:column;gap:16px}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.grid-3-1{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:16px}.muted{color:var(--text-muted)}.secondary{color:var(--text-secondary)}.small{font-size:12.5px}.nowrap{white-space:nowrap}.num{font-variant-numeric:tabular-nums;text-align:right}.card{background:var(--surface-1);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);min-width:0}.card-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px 0;flex-wrap:wrap}.card-body{padding:14px 16px 16px}.card-body.flush{padding:8px 0 0}.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}.tile{background:var(--surface-1);border:1px solid var(--border);border-radius:var(--radius);padding:12px 14px}.tile-label{font-size:12.5px;color:var(--text-secondary);display:flex;align-items:center;gap:6px}.tile-value{font-size:26px;font-weight:600;margin-top:4px}.tile-hint{font-size:12px;color:var(--text-muted)}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:9px 12px;border-bottom:1px solid var(--border);vertical-align:top}th{font-size:12px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.03em;white-space:nowrap;background:var(--surface-1)}th.sortable{cursor:pointer;-webkit-user-select:none;user-select:none}th.sortable:hover{color:var(--text-primary)}tbody tr:last-child td{border-bottom:none}tr.clickable{cursor:pointer}tr.clickable:hover td,tr.selected td{background:var(--surface-2)}.command{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12.5px;white-space:pre-wrap;word-break:break-word;max-width:560px}.command.clamp{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.badge{display:inline-flex;align-items:center;gap:6px;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:500;background:var(--surface-2);color:var(--text-secondary);white-space:nowrap}.dot{width:8px;height:8px;border-radius:50%;flex:none}.dot.active{background:var(--status-good);box-shadow:0 0 0 3px #0ca30c2e}.dot.idle{background:var(--status-warning)}.dot.offline{background:var(--status-off)}.dot.never{border:1.5px dashed var(--status-off)}.source-dot{width:8px;height:8px;border-radius:2px;flex:none}input,select,button{font:inherit;color:inherit}input[type=text],input[type=password],input[type=search],input[type=date],select{background:var(--surface-1);border:1px solid var(--border);border-radius:8px;padding:7px 10px;min-height:36px}input:focus-visible,select:focus-visible,button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}.btn{border:1px solid var(--border);background:var(--surface-1);border-radius:8px;padding:7px 12px;min-height:36px;cursor:pointer;font-weight:500}.btn:hover{background:var(--surface-2)}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.btn.primary:hover{filter:brightness(1.05)}.btn:disabled{opacity:.55;cursor:default}.btn.link{border:none;background:none;color:var(--accent);padding:0;min-height:0}.segmented{display:inline-flex;border:1px solid var(--border);border-radius:8px;overflow:hidden;background:var(--surface-1)}.segmented button{border:none;background:none;padding:7px 12px;cursor:pointer;color:var(--text-secondary);font-weight:500}.segmented button+button{border-left:1px solid var(--border)}.segmented button.on{background:var(--accent-wash);color:var(--accent)}.filters{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:14px}.tabs{display:flex;gap:4px;border-bottom:1px solid var(--border);margin-bottom:16px}.tabs button{border:none;background:none;padding:8px 12px;cursor:pointer;color:var(--text-secondary);font-weight:500;border-bottom:2px solid transparent;margin-bottom:-1px}.tabs button.on{color:var(--accent);border-bottom-color:var(--accent)}.legend{display:flex;gap:14px;flex-wrap:wrap;font-size:12.5px;color:var(--text-secondary)}.legend span{display:inline-flex;align-items:center;gap:6px}.chart-tooltip{background:var(--surface-1);border:1px solid var(--border);border-radius:8px;padding:8px 10px;font-size:12.5px;box-shadow:0 4px 16px #0000001f;min-width:150px}.chart-tooltip .row{justify-content:space-between;gap:16px}.chart-tooltip strong{font-variant-numeric:tabular-nums}.feed{list-style:none;margin:0;padding:0}.feed li{display:grid;grid-template-columns:34px 1fr;gap:10px;padding:10px 16px;border-bottom:1px solid var(--border)}.feed li:last-child{border-bottom:none}.avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-weight:600;font-size:12px;background:var(--accent-wash);color:var(--accent);flex:none}.who{display:flex;align-items:center;gap:10px;min-width:0}.who-name{font-weight:600;white-space:nowrap}.who-sub{font-size:12.5px;color:var(--text-muted)}.empty,.error-box,.loading{padding:28px 16px;text-align:center;color:var(--text-muted)}.error-box{color:var(--danger)}.pager{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;border-top:1px solid var(--border);font-size:13px;color:var(--text-secondary)}.login-page{min-height:100vh;display:grid;place-items:center;padding:16px}.login-card{width:100%;max-width:380px;padding:28px}.login-card form{display:flex;flex-direction:column;gap:14px;margin-top:20px}.login-card label{display:flex;flex-direction:column;gap:6px;font-weight:500;font-size:13px}.detail-grid{display:grid;grid-template-columns:160px 1fr;gap:8px 16px}.detail-grid dt{color:var(--text-muted)}.detail-grid dd{margin:0;white-space:pre-wrap}@media (max-width: 900px){.shell{grid-template-columns:1fr}.sidebar{position:static;height:auto;flex-direction:row;flex-wrap:wrap;padding:10px 16px;border-right:none;border-bottom:1px solid var(--border)}.brand{padding:4px 10px;width:100%}.sidebar-footer{margin:0;border:none;padding:8px 10px}.main{padding:16px}.grid-2,.grid-3-1,.detail-grid{grid-template-columns:1fr}}
