:root{--bg:#0b0720;--surface:#150e33;--surface-2:#1e1545;--border:#6a5fc0;--text:#f3f0ff;--text-muted:#a9a3cc;--accent:#8b7cf6;--accent-text:#0b0720;--focus:#b4a9ff;--danger:#ff6b70;--ok:#3fb950;--violet:#8b7cf6;--blue:#5b76ff;--muted:var(--text-muted);--grad:linear-gradient(135deg, var(--violet), var(--blue));--mono:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--space-6:32px;--radius-1:4px;--radius-2:8px;--radius-3:12px;--font-base:system-ui, -apple-system, "Segoe UI", Roboto, sans-serif}:root[data-theme=light]{--bg:#f6f4ff;--surface:#fff;--surface-2:#efecff;--border:#7d73b8;--text:#1a1438;--text-muted:#5b5680;--accent:#5b4cc8;--accent-text:#fff;--focus:#4a3bb8;--danger:#c62828;--ok:#1a7f37;--violet:#5b4cc8;--blue:#3d57e0}@media (prefers-color-scheme:light){:root:not([data-theme]){--bg:#f6f4ff;--surface:#fff;--surface-2:#efecff;--border:#7d73b8;--text:#1a1438;--text-muted:#5b5680;--accent:#5b4cc8;--accent-text:#fff;--focus:#4a3bb8;--danger:#c62828;--ok:#1a7f37;--violet:#5b4cc8;--blue:#3d57e0}}@media (prefers-contrast:more){:root{--border:#a89fe8}:root[data-theme=light]{--border:#4a4180}}@media (prefers-contrast:more) and (prefers-color-scheme:light){:root:not([data-theme]){--border:#4a4180}}*{box-sizing:border-box}html{scroll-padding-bottom:6rem}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}body{background:var(--bg);color:var(--text);margin:0;font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif}h1{margin:0 0 .5rem;font-size:1.5rem}.page{padding:24px 16px}.narrow{max-width:640px;margin:0 auto}.wide{max-width:1040px;margin:0 auto}.header-row{flex-wrap:wrap;margin:8px 0}.server-grid{gap:var(--space-3);grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}.server-name{overflow-wrap:anywhere;flex:1;min-width:0}.muted{color:var(--text-muted)}.list{gap:8px;margin:16px 0 0;padding:0;list-style:none;display:grid}.row{align-items:center;gap:12px;display:flex}.grow{text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.avatar{background:var(--surface-2);border-radius:8px;place-items:center;width:40px;height:40px;display:grid}.row img{border-radius:8px}.card{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:12px}.btn{border:1px solid var(--border);background:var(--surface-2);min-height:44px;color:var(--text);font:inherit;cursor:pointer;border-radius:8px;justify-content:center;align-items:center;padding:0 16px;text-decoration:none;display:inline-flex}.theme-toggle{border:0;gap:4px;min-width:0;margin:0;padding:0;display:inline-flex}.theme-btn[aria-pressed=true]{box-shadow:inset 0 0 0 2px var(--text);font-weight:700}.btn-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text);font-weight:600}.input,.field input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]):not([type=button]):not([type=submit]),.field select,.field textarea{border-radius:var(--radius-2);border:1px solid var(--border);background:var(--surface);min-height:44px;color:var(--text);font:inherit;padding:0 12px}.field textarea{padding:8px 12px}.input:focus-visible,.field input:focus-visible,.field select:focus-visible,.field textarea:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.section{margin:0 0 var(--space-5)}.section h2{margin:0 0 var(--space-1);font-size:1.25rem}.toggle-grid,.stat-grid{gap:var(--space-3);grid-template-columns:1fr;display:grid}@media (width>=720px){.toggle-grid,.stat-grid{grid-template-columns:repeat(3,1fr)}}.stat-grid,.toggle-grid{border:0;min-width:0;margin:0;padding:0}.toggle-list{grid-column:1/-1;grid-template-columns:inherit;gap:var(--space-3);margin:0}.module-name{overflow-wrap:anywhere;flex:1;min-width:0}.module-state{color:var(--text-muted);align-items:center;gap:4px;display:inline-flex}.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-3);padding:var(--space-3)}.stat-card dt{color:var(--text-muted)}.stat-card dd{margin:0;font-size:1.5rem;font-weight:700}.banner{border:1px solid var(--border);background:var(--surface);border-radius:8px;margin:12px 0;padding:12px}.banner-error{border-color:var(--danger)}.skeleton{background:var(--surface-2);border-radius:10px;height:64px;margin-top:8px;animation:1.2s ease-in-out infinite pulse}@keyframes pulse{50%{opacity:.5}}@media (prefers-reduced-motion:reduce){.skeleton{animation:none}}:focus-visible{outline:2px solid var(--blue);outline-offset:2px}.switch{border:1px solid var(--border);background:var(--surface-2);cursor:pointer;border-radius:12px;flex:none;width:44px;height:24px;position:relative}.switch:after{content:"";background:var(--text);border-radius:50%;width:18px;height:18px;position:absolute;top:2px;left:2px}.switch:before{content:"";position:absolute;inset:-10px 0}@media (prefers-reduced-motion:no-preference){.switch:after{transition:transform .15s}}.switch[aria-checked=true]{background:var(--accent);border-color:var(--accent)}.switch[aria-checked=true]:after{background:var(--accent-text);transform:translate(20px)}.switch:disabled{opacity:.5;cursor:not-allowed}.stats{grid-template-columns:max-content 1fr;gap:8px 24px;display:grid}.stats dd{margin:0}.save-bar{background:var(--surface,Canvas);border-top:1px solid;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.5rem;padding:.75rem 1rem;display:flex;position:sticky;bottom:0}.save-bar-error{margin-right:auto}.field{gap:.25rem;margin-bottom:1rem;display:grid}fieldset.field{border:0;min-width:0;padding:0}fieldset.field legend{padding:0;font-weight:600}.check{align-items:center;gap:.5rem;min-height:44px;display:flex}.multi-select .check{gap:.5rem;display:flex}.chips{flex-wrap:wrap;gap:.25rem;display:flex}.template-preview{white-space:pre-wrap}fieldset:disabled{opacity:.5}@media (forced-colors:active){.theme-btn[aria-pressed=true]{border:3px solid highlight;padding:0 14px}.switch{border:1px solid canvastext}.switch[aria-checked=true]{border-color:highlight}.switch:after{forced-color-adjust:none;background:canvastext}.switch[aria-checked=true]:after{background:highlight}}.rail{background:var(--surface);border-right:1px solid var(--border);width:64px;padding:var(--space-2);overflow-y:auto}.rail ul,.sidenav ul{margin:0;padding:0;list-style:none}.rail ul{gap:var(--space-2);flex-direction:column;display:flex}.rail-item{border-radius:var(--radius-3);background:var(--surface-2);width:48px;min-height:48px;color:var(--text);border:2px solid #0000;place-items:center;font-weight:700;text-decoration:none;display:grid;position:relative}.rail-item img{border-radius:inherit;display:block}.rail-item[aria-current]{border-color:var(--accent);border-radius:var(--radius-2)}.rail-tip{z-index:1000;max-width:240px;padding:var(--space-1) var(--space-2);background:var(--surface-2);color:var(--text);border:1px solid var(--border);border-radius:var(--radius-2);white-space:nowrap;text-overflow:ellipsis;pointer-events:none;position:fixed;overflow:hidden;transform:translateY(-50%)}.sidenav{background:var(--surface);border-right:1px solid var(--border);width:260px;overflow-y:auto}.sidenav-head{background:var(--grad);position:relative;overflow:hidden}.sidenav-backdrop{filter:blur(16px);background-position:50%;background-size:cover;position:absolute;inset:-16px}.sidenav-scrim{align-items:center;gap:var(--space-3);padding:var(--space-4);background:color-mix(in srgb, var(--bg) 80%, transparent);color:var(--text);display:flex;position:relative}.sidenav-scrim img,.sidenav-letter{border-radius:var(--radius-3);flex:none;width:48px;height:48px}.sidenav-letter{background:var(--surface-2);place-items:center;font-weight:700;display:grid}.sidenav-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.sidenav-heading{width:100%;min-height:44px;padding:0 var(--space-4);color:var(--text-muted);text-align:left;font:inherit;cursor:pointer;background:0 0;border:0;font-weight:600;display:block}.sidenav-link{align-items:center;gap:var(--space-3);min-height:44px;padding:0 var(--space-4);color:var(--text);text-decoration:none;transition:background-color .15s;display:flex;position:relative}.sidenav-link span{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.sidenav-link:hover{background:var(--surface-2)}.sidenav-link[aria-current=page]{background:var(--surface-2);font-weight:700}.sidenav-link[aria-current=page]:before{content:"";border-radius:0 var(--radius-1) var(--radius-1) 0;background:var(--accent);width:4px;position:absolute;top:6px;bottom:6px;left:0}.topbar{align-items:center;gap:var(--space-3);padding:var(--space-2) var(--space-4);background:var(--surface);border-bottom:1px solid var(--border);display:flex}.topbar h1{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;margin:0;font-size:1.25rem;overflow:hidden}.topbar-actions{align-items:center;gap:var(--space-3);display:flex}.topbar-menu{min-width:44px;min-height:44px;display:none}@media (width<=719px){.topbar-menu{justify-content:center;align-items:center;display:inline-flex}.topbar{flex-wrap:wrap}.topbar h1{min-width:6rem}.topbar-actions{flex-wrap:wrap;flex:100%}}@media (prefers-reduced-motion:no-preference){.rail-tip{animation:.15s rail-tip-in}@keyframes rail-tip-in{0%{opacity:0}}}@media (prefers-reduced-motion:reduce){.sidenav-link{transition:none}}.skip-link{left:var(--space-2);top:var(--space-2);z-index:2000;padding:var(--space-2) var(--space-3);background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:var(--radius-2);position:absolute;transform:translateY(-200%)}.skip-link:focus{transform:none}.shell-layout{grid-template-columns:auto 1fr;min-height:100vh;display:grid}.drawer{min-height:0;display:flex}.shell-content{min-width:0}.drawer-backdrop{display:none}@media (width<=719px){.shell-layout{grid-template-columns:1fr}.drawer{z-index:900;visibility:hidden;max-width:100vw;position:fixed;inset:0 auto 0 0;transform:translate(-100%)}.drawer[data-open=true]{visibility:visible;transform:none}.drawer-backdrop{z-index:800;background:color-mix(in srgb, var(--bg) 60%, transparent);opacity:0;pointer-events:none;border:0;display:block;position:fixed;inset:0}.drawer-backdrop[data-open=true]{opacity:1;pointer-events:auto}}@media (width<=719px) and (prefers-reduced-motion:no-preference){.drawer{transition:transform .18s,visibility 0s linear .18s}.drawer[data-open=true]{transition:transform .18s}.drawer-backdrop{transition:opacity .18s}}@media (forced-colors:active){.sidenav-link[aria-current=page]{border-left:4px solid highlight}.rail-item[aria-current]{outline-offset:2px;outline:2px solid canvastext}.rail-item:focus-visible{outline:3px solid highlight}}
