:root,html[data-ui-theme=light]{--shell-bg:#f6f3ed;--shell-surface:#fff;--shell-card:#fbf9f4;--shell-ink:#292720;--shell-muted:#6d675b;--shell-line:#d7cbb7;--shell-accent:#89672c;--shell-nav:#eee7db;--shell-nav-ink:#332b20;--shell-nav-active:#dfcfaf;--shell-gold:#c7a86b;color-scheme:light}html[data-ui-theme=dark]{--shell-bg:#111110;--shell-surface:#1c1b18;--shell-card:#24221d;--shell-ink:#f1e9da;--shell-muted:#bfb5a2;--shell-line:#575044;--shell-accent:#dfbf7d;--shell-nav:#171612;--shell-nav-ink:#eee4d1;--shell-nav-active:#3a3020;--shell-gold:#c7a86b;color-scheme:dark}
html body{background:var(--shell-bg)!important;color:var(--shell-ink)!important;font-family:Arial,system-ui,sans-serif}html body section,html body .panel,html body .metric,html body .network-panel,html body .network-card,html body .results,html body .result,html body #treeviewport,html body .quickgrid button,html body .node{background:var(--shell-surface)!important;color:var(--shell-ink)!important;border-color:var(--shell-line)!important}html body input,html body select,html body textarea{background:var(--shell-card)!important;color:var(--shell-ink)!important;border-color:var(--shell-line)!important}html body th,html body .notice,html body .tag{background:var(--shell-card)!important;color:var(--shell-ink)!important;border-color:var(--shell-line)!important}html body td,html body th{border-color:var(--shell-line)!important}html body h1,html body h2,html body h3,html body .metric b{color:var(--shell-ink)!important}html body a{color:var(--shell-accent)!important}html body .muted,html body small,html body .node small,html body .legend{color:var(--shell-muted)!important}html body button{background:var(--shell-gold)!important;color:#171612!important;border-color:var(--shell-line)!important}html body button:disabled{opacity:.5}
html body.unified-admin{box-sizing:border-box;margin:0!important;max-width:none!important;min-height:100vh;padding:98px 28px 32px 280px!important;direction:ltr!important}body.unified-admin #sidebar,body.unified-admin #ui-preferences,body.unified-admin .mobilemenu{display:none!important}body.unified-admin main{margin:0!important;padding:0!important;max-width:none!important}body.unified-admin main>.top{display:none!important}body.unified-admin>h1{font-size:25px;margin:0 0 20px}body.unified-admin>p:has(a[href='/intake-admin']),body.unified-admin>p:has(a[href='/review']){display:none!important}body.unified-admin .notice{font-size:13px;line-height:1.65;padding:12px;border:1px solid var(--shell-line);border-radius:10px}body.unified-admin section{border:1px solid var(--shell-line)!important;border-radius:12px!important;padding:20px!important;box-shadow:none!important}#kings-admin-sidebar{position:fixed;left:0;top:0;bottom:0;width:244px;box-sizing:border-box;overflow-y:auto;padding:22px 14px;background:var(--shell-nav);border-right:1px solid var(--shell-line);z-index:30}#kings-admin-sidebar .shell-brand{font-weight:800;font-size:25px;color:var(--shell-gold);padding:0 12px 22px}#kings-admin-sidebar .shell-brand span{display:block;font-size:12px;letter-spacing:3px;margin-top:6px}#kings-admin-sidebar a{display:block;text-decoration:none;color:var(--shell-nav-ink)!important;padding:11px 12px;border-radius:8px;margin:4px 0;font-size:14px;line-height:1.4}#kings-admin-sidebar a:hover,#kings-admin-sidebar a.selected,#kings-admin-sidebar a[aria-current=page]{background:var(--shell-nav-active);color:var(--shell-nav-ink)!important}#kings-admin-sidebar .nav-group{color:#b6a78c;padding:20px 12px 7px;font-size:11px;letter-spacing:1px;text-transform:uppercase}#kings-admin-top{position:fixed;top:0;left:244px;right:0;min-height:72px;box-sizing:border-box;display:flex;align-items:center;gap:18px;padding:14px 28px;background:var(--shell-surface);border-bottom:1px solid var(--shell-line);z-index:25;color:var(--shell-ink)}#kings-admin-top strong{margin-right:auto;font-size:18px}#kings-admin-top label{font-size:13px;color:var(--shell-muted);display:flex;align-items:center;gap:8px}#kings-admin-top select{font-size:14px;padding:8px;border:1px solid var(--shell-line);border-radius:7px}#kings-admin-top button{padding:9px 13px;font-size:14px;border-radius:7px}#admin-menu-toggle{display:none}body.unified-admin .metricgrid,body.unified-admin .quickgrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}body.unified-admin .scroll{max-width:100%;overflow:auto}body.unified-admin #change-password{max-width:680px}body.unified-admin #forgot,body.unified-admin #manage,body.unified-admin #reset,body.unified-admin #admin-send{max-width:680px}
@media(max-width:800px){html body.unified-admin{padding:92px 14px 22px!important}#kings-admin-sidebar{transform:translateX(-100%);transition:transform .18s}body.admin-menu-open #kings-admin-sidebar{transform:translateX(0);top:72px;width:244px}#kings-admin-top{left:0;padding:12px;gap:8px}#kings-admin-top strong{font-size:15px}#kings-admin-top label{font-size:0}#kings-admin-top select{font-size:13px}#kings-admin-top button{padding:8px;font-size:12px}#admin-menu-toggle{display:block}body.unified-admin .metricgrid,body.unified-admin .quickgrid{grid-template-columns:repeat(2,minmax(0,1fr))}body.unified-admin section{padding:14px!important}}
