:root{color-scheme:dark;--bg: #0e0e0c;--surface-1: #141310;--surface-2: #1a1814;--surface-3: #232019;--border: #2e2a21;--border-soft: #24211a;--text-1: #efe9dc;--text-2: #aaa38b;--text-3: #8a8270;--accent: #e8a33d;--accent-diep: #c7832a;--accent-soft: rgba(232, 163, 61, .14);--accent-lijn: rgba(232, 163, 61, .34);--faction-1: #4a86d4;--faction-2: #cc4a33;--faction-3: #5d9142;--faction-4: #c7832a;--faction-5: #a06fd0;--serie-1: #4a86d4;--serie-2: #c7832a;--serie-3: #a06fd0;--serie-4: #13a89a;--seq-1: #5a3c10;--seq-2: #8a5c19;--seq-3: #b57c24;--seq-4: #dba43c;--seq-5: #f4c877;--good: #78b159;--warn: #d98324;--crit: #d4503a;--grid: rgba(239, 233, 220, .07);--radius: 12px;--radius-sm: 8px;--shadow: 0 1px 2px rgba(0,0,0,.5), 0 10px 30px rgba(0,0,0,.35);--mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, system-ui, sans-serif}*{box-sizing:border-box}html,body{height:100%}body{margin:0;background:var(--bg);color:var(--text-1);font:14px/1.5 var(--sans);-webkit-font-smoothing:antialiased}h1,h2,h3,h4{margin:0;font-weight:600;letter-spacing:-.01em}button,input,select,textarea{font:inherit;color:inherit}a{color:var(--accent)}.app{display:grid;grid-template-columns:224px 1fr;min-height:100vh}.sidebar{background:linear-gradient(180deg,#17150f 0%,var(--surface-1) 38%,#100f0c 100%);border-right:1px solid var(--border);display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{padding:18px 18px 14px;border-bottom:1px solid var(--border-soft)}.brand h1{font-size:15px;display:flex;align-items:center;gap:8px}.brand .sub{color:var(--text-3);font-size:11.5px;margin-top:4px;font-family:var(--mono)}.nav{padding:10px;display:flex;flex-direction:column;gap:2px;overflow-y:auto;flex:1}.nav button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:9px 11px;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--text-2);cursor:pointer;font-size:13.5px}.nav button:hover{background:var(--surface-2);color:var(--text-1)}.nav button[aria-current=true]{background:var(--accent-soft);color:var(--text-1);font-weight:550;box-shadow:inset 2px 0 0 var(--accent)}.nav .ico{width:16px;text-align:center;opacity:.9}.nav .badge{margin-left:auto;font-family:var(--mono);font-size:11px;color:var(--text-3)}.sidebar-foot{padding:12px 14px;border-top:1px solid var(--border-soft);font-size:11.5px;color:var(--text-3)}.topbar .wie{display:flex;align-items:center;gap:6px;min-width:0;color:var(--text-2);font-size:12px}.topbar .wie img{border-radius:50%;flex:none}.topbar .wie span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:140px}.main{min-width:0;display:flex;flex-direction:column;min-height:100vh}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:16px;padding:12px 22px;background:#0e0e0ce0;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid var(--border)}.topbar .title{font-size:15px;font-weight:600}.topbar .spacer{flex:1}.conn{display:flex;align-items:center;gap:7px;font-size:12.5px;color:var(--text-2)}.dot{width:8px;height:8px;border-radius:50%;background:var(--text-3);flex:none}.dot.live{background:var(--good);box-shadow:0 0 0 3px #2ea36a2e}.dot.stale{background:var(--warn);box-shadow:0 0 0 3px #c985002e}.dot.down{background:var(--crit);box-shadow:0 0 0 3px #e052522e}.view{padding:22px;display:none;flex:1}.view.active{display:block}.view>header{margin-bottom:18px}.view>header p{margin:6px 0 0;color:var(--text-2);max-width:70ch}.card{background:linear-gradient(180deg,#17150f,var(--surface-1) 60%);border:1px solid var(--border);border-radius:var(--radius);padding:16px 18px;box-shadow:var(--shadow);min-width:0}.card>h3{font-size:13px;color:var(--text-2);font-weight:600;letter-spacing:.01em}.card>h3+.hint{margin:3px 0 12px;color:var(--text-3);font-size:11.5px}.card-head{display:flex;align-items:center;gap:12px;margin-bottom:12px}.card-head h3{font-size:13px;color:var(--text-2);font-weight:600}.card-head .spacer{flex:1}.grid{display:grid;gap:14px}.grid>*{min-width:0}.grid.kpi{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.grid.two{grid-template-columns:repeat(auto-fit,minmax(380px,1fr))}.grid.wide{grid-template-columns:1fr}.stack{display:flex;flex-direction:column;gap:14px}.tile{background:linear-gradient(180deg,#17150f,var(--surface-1) 60%);border:1px solid var(--border);border-radius:var(--radius);padding:14px 16px;min-width:0;transition:border-color .14s}.tile:hover{border-color:#3a3428}.tile .label{font-size:11.5px;color:var(--text-3);text-transform:uppercase;letter-spacing:.05em}.tile .value{font-size:27px;font-weight:640;letter-spacing:-.02em;margin-top:5px;font-variant-numeric:tabular-nums}.tile .value small{font-size:14px;font-weight:500;color:var(--text-3);margin-left:3px}.tile .foot{font-size:12px;color:var(--text-2);margin-top:4px}.tile.hero .value{font-size:46px;line-height:1.05;color:var(--accent)}.tile .label{color:var(--text-3)}table{width:100%;border-collapse:collapse;font-size:13px}th{text-align:left;font-weight:600;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--text-3);padding:7px 10px;border-bottom:1px solid var(--border);position:sticky;top:0;background:var(--surface-1)}td{padding:8px 10px;border-bottom:1px solid var(--border-soft);vertical-align:middle}tbody tr:hover{background:var(--surface-2)}tbody tr:last-child td{border-bottom:0}td.num,th.num{text-align:right;font-variant-numeric:tabular-nums;font-family:var(--mono);font-size:12px}.table-wrap{overflow:auto;max-height:560px;border-radius:var(--radius-sm)}.pname{display:flex;align-items:center;gap:9px;min-width:0}.pname img,.pname .ph{width:24px;height:24px;border-radius:5px;flex:none;background:var(--surface-3);display:grid;place-items:center;font-size:10px;color:var(--text-3);object-fit:cover}.pname .n{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pname .n b{font-weight:550}.pname .n small{display:block;color:var(--text-3);font-family:var(--mono);font-size:10.5px}.chip{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;font-size:11.5px;background:var(--surface-3);color:var(--text-2);white-space:nowrap}.chip .swatch{width:8px;height:8px;border-radius:2px;flex:none}.chip.good{background:#2ea36a26;color:#7ad4a5}.chip.warn{background:#c9850026;color:#e8b551}.chip.crit{background:#e0525226;color:#f0908f}.tag{font-family:var(--mono);font-size:11px;color:var(--text-3)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:7px 13px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface-2);color:var(--text-1);cursor:pointer;font-size:13px;transition:background .12s,border-color .12s}.btn:hover:not(:disabled){background:var(--surface-3);border-color:#3d3729}.btn:disabled{opacity:.45;cursor:not-allowed}.btn.primary{background:linear-gradient(180deg,var(--accent),var(--accent-diep));border-color:var(--accent-diep);color:#17130a;font-weight:600}.btn.primary:hover:not(:disabled){background:linear-gradient(180deg,#f4bb5c,var(--accent));border-color:var(--accent)}.btn.danger{background:#d4503a24;border-color:#d4503a6b;color:#f0907c}.btn.danger:hover:not(:disabled){background:#d4503a3d}.btn.sm{padding:4px 9px;font-size:12px}.btn.ghost{background:transparent}.seg{display:inline-flex;background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:2px;gap:2px}.seg button{border:0;background:transparent;color:var(--text-3);padding:4px 10px;border-radius:6px;cursor:pointer;font-size:12px}.seg button[aria-pressed=true]{background:var(--surface-3);color:var(--text-1)}input[type=text],input[type=number],input[type=password],input[type=search],select,textarea{background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm);padding:7px 10px;color:var(--text-1);width:100%}input:focus,select:focus,textarea:focus{outline:2px solid var(--accent-soft);border-color:var(--accent)}label.field{display:block;margin-bottom:12px}label.field>span{display:block;font-size:12px;color:var(--text-2);margin-bottom:5px}label.field>.note{font-size:11.5px;color:var(--text-3);margin-top:4px}.row{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap}.row>*{min-width:0}.notice{display:flex;gap:10px;padding:11px 13px;border-radius:var(--radius-sm);font-size:12.5px;border:1px solid;align-items:flex-start;line-height:1.45}.notice .ico{flex:none;font-weight:700}.notice.warn{background:#c985001a;border-color:#c9850059;color:#e8c77e}.notice.crit{background:#e052521a;border-color:#e0525259;color:#f0a3a2}.notice.info{background:var(--accent-soft);border-color:#3987e559;color:#a8cbf5}.notice.good{background:#2ea36a1a;border-color:#2ea36a59;color:#8fdcb2}.empty{color:var(--text-3);text-align:center;padding:34px 16px;font-size:13px}app-chart{display:block;min-width:0}.chart{width:100%;max-width:100%;display:block;overflow:visible}.chart text{font-family:var(--sans);fill:var(--text-3);font-size:10.5px}.chart .axis-line{stroke:var(--border);stroke-width:1}.chart .grid-line{stroke:var(--grid);stroke-width:1}.chart .hit{fill:transparent;cursor:crosshair}.chart .crosshair{stroke:var(--text-3);stroke-width:1;stroke-dasharray:3 3;opacity:0}.chart .marker{opacity:0}.legend{display:flex;flex-wrap:wrap;gap:14px;margin-top:10px;font-size:12px;color:var(--text-2)}.legend .item{display:flex;align-items:center;gap:6px}.legend .swatch{width:10px;height:10px;border-radius:3px;flex:none}.tooltip{position:fixed;z-index:90;pointer-events:none;background:var(--surface-3);border:1px solid var(--border);border-radius:var(--radius-sm);padding:8px 10px;font-size:12px;box-shadow:var(--shadow);opacity:0;transition:opacity .08s;max-width:260px}.tooltip .t{font-weight:600;margin-bottom:5px;font-size:11.5px;color:var(--text-2)}.tooltip .r{display:flex;align-items:center;gap:7px;justify-content:space-between}.tooltip .r .k{display:flex;align-items:center;gap:6px;color:var(--text-2)}.tooltip .r .v{font-family:var(--mono);font-variant-numeric:tabular-nums}.tooltip .sw{width:9px;height:9px;border-radius:2px;flex:none}.heat{display:grid;grid-template-columns:34px repeat(24,1fr);gap:2px;font-size:10px}.heat .h{color:var(--text-3);text-align:center;font-size:9.5px;line-height:16px}.heat .d{color:var(--text-3);line-height:18px}.heat .c{height:18px;border-radius:3px;background:var(--surface-2);cursor:default}#view-chat.active{display:flex;flex-direction:column;flex:1;min-height:0}.chat-wrap{display:grid;grid-template-rows:1fr auto;flex:1;min-height:0}.chat-log{overflow-y:auto;min-height:0;padding:22px;display:flex;flex-direction:column;gap:14px}.msg{max-width:760px;display:flex;gap:11px}.msg .av{width:26px;height:26px;border-radius:7px;flex:none;display:grid;place-items:center;font-size:12px;background:var(--surface-3)}.msg.user{margin-left:auto;flex-direction:row-reverse}.msg.user .av{background:var(--accent);color:#fff}.msg .bubble{background:var(--surface-1);border:1px solid var(--border);border-radius:var(--radius);padding:11px 14px;white-space:pre-wrap;word-break:break-word}.msg.user .bubble{background:var(--accent-soft);border-color:#3987e54d}.msg .bubble p:first-child{margin-top:0}.msg .bubble{white-space:normal}.msg .bubble p{margin:0 0 9px;white-space:pre-wrap}.msg .bubble p:last-child{margin-bottom:0}.msg .bubble h4{font-size:13px;color:var(--text-2);margin:12px 0 6px}.msg .bubble h4:first-child{margin-top:0}.msg .bubble ul,.msg .bubble ol{margin:0 0 9px;padding-left:20px}.msg .bubble li{margin-bottom:3px}.msg .bubble code{font-family:var(--mono);font-size:12px;background:var(--surface-3);padding:1px 5px;border-radius:4px}.msg .bubble pre{background:var(--surface-2);border:1px solid var(--border-soft);border-radius:var(--radius-sm);padding:10px 12px;overflow-x:auto;margin:0 0 9px}.msg .bubble pre code{background:none;padding:0}.msg .bubble table{margin:4px 0 10px;font-size:12.5px}.msg:has(table){max-width:min(1180px,100%)}.msg:has(table) .bubble{overflow-x:auto}.msg .bubble th{background:var(--surface-2);position:static;padding:6px 9px;white-space:nowrap}.msg .bubble td{padding:6px 9px}.msg .bubble tbody tr:hover{background:var(--surface-2)}.tool-line{display:flex;align-items:center;gap:9px;font-size:12.5px;color:var(--text-2);background:var(--surface-1);border:1px solid var(--border-soft);border-radius:var(--radius-sm);padding:7px 11px;max-width:760px}.tool-line .st{font-family:var(--mono);font-size:11px}.tool-line.err{border-color:#e0525259;color:#f0a3a2}.confirm-box{max-width:760px;border:1px solid rgba(201,133,0,.4);background:#c9850014;border-radius:var(--radius);padding:14px 16px}.confirm-box h4{font-size:13px;color:#e8c77e;margin-bottom:6px}.confirm-box p{margin:0 0 12px;color:var(--text-1)}.confirm-box .acts{display:flex;gap:9px}.composer{border-top:1px solid var(--border);padding:14px 22px 18px;background:var(--surface-1)}.composer .box{display:flex;gap:10px;align-items:flex-end;max-width:860px}.composer textarea{resize:none;min-height:44px;max-height:180px}.composer .opts{display:flex;align-items:center;gap:14px;margin-top:9px;font-size:12px;color:var(--text-3);max-width:860px}.composer label.sw{display:flex;align-items:center;gap:6px;cursor:pointer}.suggest{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px}.suggest button{font-size:12px;padding:5px 11px;border-radius:999px;border:1px solid var(--border);background:var(--surface-1);color:var(--text-2);cursor:pointer}.suggest button:hover{background:var(--surface-3);color:var(--text-1)}.modal-bg{position:fixed;inset:0;background:#0009;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);z-index:100;display:grid;place-items:center;padding:20px}.modal{background:var(--surface-1);border:1px solid var(--border);border-radius:var(--radius);max-width:640px;width:100%;max-height:86vh;overflow:auto;box-shadow:var(--shadow)}.modal header{padding:16px 20px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:12px}.modal header h3{font-size:15px}.modal .body{padding:18px 20px}.modal footer{padding:14px 20px;border-top:1px solid var(--border);display:flex;gap:9px;justify-content:flex-end}.toast-wrap{position:fixed;right:18px;bottom:18px;z-index:200;display:flex;flex-direction:column;gap:9px}.toast{background:var(--surface-3);border:1px solid var(--border);border-radius:var(--radius-sm);padding:11px 14px;font-size:13px;max-width:380px;box-shadow:var(--shadow);animation:slide .2s ease}.toast.good{border-color:#2ea36a73}.toast.crit{border-color:#e0525273}@keyframes slide{0%{transform:translate(14px);opacity:0}}.skeleton{background:linear-gradient(90deg,var(--surface-2) 25%,var(--surface-3) 50%,var(--surface-2) 75%);background-size:200% 100%;animation:sk 1.3s infinite;border-radius:6px;height:12px}@keyframes sk{to{background-position:-200% 0}}@media(max-width:900px){.app{grid-template-columns:minmax(0,1fr)}.sidebar{position:static;height:auto;flex-direction:column;min-width:0}.brand{padding:12px 16px 10px}.brand h1{font-size:14px}.brand .sub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.nav{flex:0 0 auto;align-items:center;min-width:0;flex-direction:row;padding:0 10px 10px;gap:6px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch}.nav::-webkit-scrollbar{display:none}.nav button{white-space:nowrap;width:auto;flex:none;padding:8px 12px}.nav .badge{margin-left:6px}.sidebar-foot,.topbar .wie span{display:none}.main{min-height:0}.view{padding:16px}.topbar{padding:10px 16px}.grid.two,.grid.kpi{grid-template-columns:minmax(0,1fr)}.modal{max-height:92vh}}
