:root{font-family:Inter,system-ui,sans-serif;color:#19243a;background:#f7f8fc;line-height:1.5;--muted:#65728a;--border:#e3e7f0;--purple:#5c44d7}
*{box-sizing:border-box}body{margin:0}button,select,input{font:inherit}button{cursor:pointer}button:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--purple);outline-offset:3px}
.shell{display:grid;grid-template-columns:222px minmax(0,1fr);min-height:100vh}.sidebar{background:#11182b;color:#d8def1;display:flex;flex-direction:column;padding:24px 15px;gap:28px}.brand{display:flex;align-items:center;gap:11px;color:white;font-weight:750;font-size:19px;padding-left:8px}.mark,.avatar{display:grid;place-items:center;border-radius:9px;background:#704ef8;color:white;width:34px;height:34px}.mark{font-size:29px}.workspace{display:flex;gap:9px;align-items:center;background:#1b2439;border:1px solid #303a53;padding:10px;border-radius:9px;font-size:12px}.avatar{width:29px;height:29px;background:#3d306b;color:#e1d7ff}.workspace small{display:block;color:#a9b4cb}.nav-label{font-size:10px;letter-spacing:.12em;color:#a5afc5;padding:0 10px 8px}.nav{display:flex;gap:12px;align-items:center;width:100%;background:none;border:0;color:#c6cde1;text-align:left;padding:9px 11px;border-radius:8px;margin:3px 0;font-size:14px}.nav.active,.nav:hover{background:#292649;color:#e4daff}.sidebar-foot{margin-top:auto;font-size:12px;color:#acb7ce;padding:10px}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#51d4a6;margin-right:7px}
.top{min-height:66px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:12px 30px;font-size:13px;color:var(--muted);gap:12px}.top b{padding:0 8px;color:#a8b0c0}.top strong{color:#19243a}.button,select,input{border:1px solid var(--border);border-radius:8px;padding:8px 11px;background:#fff;color:#29364f;font-size:13px}.primary{background:var(--purple);color:white;border-color:var(--purple);font-weight:650}.content{max-width:1450px;margin:auto;padding:28px 30px}.heading,.panel-head,.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px}h1,h2,p{margin:0}h1{font-size:32px;letter-spacing:-.045em}h2{font-size:16px;letter-spacing:-.015em}p{color:var(--muted);font-size:13px;margin-top:3px}.heading{margin-bottom:22px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:16px}.metric,.panel{background:#fff;border:1px solid var(--border);border-radius:12px}.metric{padding:16px 18px}.metric span{font-size:13px;color:var(--muted)}.metric strong{display:block;margin-top:4px;font-size:26px;letter-spacing:-.045em;font-variant-numeric:tabular-nums}.panel{margin-bottom:16px;overflow:hidden}.panel-head{padding:16px 18px}.legend{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);white-space:nowrap}.legend i{width:8px;height:8px;background:#7e64ee;border-radius:2px}.legend i:nth-of-type(2){background:#ef8495;margin-left:8px}
.graph{display:flex;height:160px;margin:4px 20px 19px;gap:10px}.axis{display:flex;flex-direction:column;justify-content:space-between;padding-bottom:24px;color:var(--muted);font-size:10px;text-align:right;min-width:22px}.bars{flex:1;display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:3px;background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),#edf0f6 calc(25% - 1px),#edf0f6 25%) 0 0/100% calc(100% - 24px) no-repeat}.day{min-width:0;display:grid;grid-template-rows:minmax(0,1fr) 24px;text-align:center;color:var(--muted);font-size:10px}.stack{display:flex;flex-direction:column;justify-content:end;align-items:center}.stack i{width:55%;max-width:35px;background:#7e64ee}.stack i:first-child{background:#ef8495}.day span{padding-top:5px;white-space:nowrap}
.filters{display:flex;flex-wrap:wrap;gap:8px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px;white-space:nowrap}th{font-weight:550;background:#f9f9fd;color:var(--muted)}td,th{padding:10px 15px;border-top:1px solid #edf0f6}tbody tr:hover{background:#faf9ff}.trace{border:0;background:none;padding:0;color:var(--purple);text-align:left;font-weight:650}.pill{display:inline-block;background:#e8f8ef;color:#176747;border-radius:5px;padding:2px 7px;font-size:11px}.pill.error{background:#ffedf0;color:#a72b43}.empty{text-align:center;color:var(--muted);padding:30px}.sr{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
dialog{border:1px solid var(--border);border-radius:14px;padding:22px;width:min(640px,calc(100% - 24px));max-height:85vh;color:inherit}dialog::backdrop{background:#11182b88}.modal-head{margin-bottom:12px}pre{background:#f5f4fa;padding:12px;border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}details{padding:8px 0;border-bottom:1px solid var(--border)}summary{cursor:pointer}.modal-section{margin-top:14px}
@media(max-width:850px){.shell{grid-template-columns:165px minmax(0,1fr)}.content,.top{padding-left:16px;padding-right:16px}.metrics{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.shell{display:block}.sidebar{padding:10px 16px;gap:6px}.sidebar nav{display:flex}.sidebar .workspace,.nav-label,.sidebar-foot{display:none}.nav{width:auto}.content{padding-top:18px}.heading,.table-panel .panel-head{align-items:flex-start;flex-wrap:wrap}.day:nth-child(even) span{visibility:hidden}}
.nav-label.group{margin-top:16px}.module-heading{margin-bottom:22px}.module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.module-panel{padding:18px;margin:0}.module-form{display:grid;gap:12px;margin-top:14px}.module-form label{display:grid;gap:5px;font-size:13px;font-weight:600}.module-form textarea{font:inherit;font-weight:400;min-height:88px;resize:vertical;border:1px solid var(--border);border-radius:8px;padding:9px 11px;color:inherit}.module-form button,.module-result.button{justify-self:start}.module-result.button{margin-top:12px}.module-form button:disabled{opacity:.65}.module-form [role=status]:empty{display:none}
@media(max-width:850px){.module-grid{grid-template-columns:1fr}}
@media(max-width:620px){.sidebar nav{flex-wrap:wrap}.nav{padding:5px 8px;font-size:12px}}

.module-panel.wide{grid-column:1/-1}

[hidden]{display:none!important}.header-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.key-scopes{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px 14px}.key-scopes label{display:flex;align-items:center;gap:5px}.model-actions{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.module-form .button{max-width:100%}dialog .module-panel{margin:10px 0}
