:root{--bg:#f3f5fa;--ink:#182238;--muted:#65718a;--green:#245ae8;--line:#dfe4ef;--white:#fff;--red:#ce3445;--surface:#fff;--soft:#edf1f8;--accent:#245ae8;color-scheme:light}
:root[data-admin-theme=night]{--bg:#101729;--ink:#edf2ff;--muted:#a6b5d0;--green:#325fda;--line:#33415c;--white:#19243a;--surface:#19243a;--soft:#23314a;--red:#ff8991;--accent:#8db4ff;color-scheme:dark}
:root[data-admin-theme=black]{--bg:#08090b;--ink:#f4f4f6;--muted:#afb3bf;--green:#315ce0;--line:#35363f;--white:#17181d;--surface:#17181d;--soft:#24252d;--red:#ff8991;--accent:#9fbaff;color-scheme:dark}
body{background:var(--bg);color:var(--ink)}.sidebar{background:#10131c;color:#f6f7ff}.sidebar .nav button.active{background:#2d55dc;color:white}.sidebar .nav button:hover{background:#252f4a}.sidebar-bottom{gap:16px}.theme-picker{display:grid;gap:8px;color:#dce4ff;font-size:12px;width:100%}.theme-picker select{background:#242b3a;color:#fff;border:1px solid #56617a;border-radius:10px;padding:10px;width:100%;min-height:44px}.admin-main{max-width:1800px;width:100%;min-width:0}.dashboard-jumps{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 24px}.dashboard-jumps a{padding:10px 16px;border:1px solid var(--line);border-radius:100px;background:var(--surface);font-weight:600;font-size:13px}.dashboard-jumps a:nth-child(1){border-color:#4679ff;color:var(--accent)}.dashboard-jumps a:nth-child(2){border-color:#ee8c26;color:var(--ink)}.dashboard-jumps a:nth-child(3){border-color:#dbb520;color:var(--ink)}.dashboard-section{scroll-margin-top:24px;margin-top:34px}.dashboard-kicker{font-size:11px;letter-spacing:1.5px;font-weight:700;color:var(--accent)}.dashboard-section h2{font-size:26px;margin:5px 0 8px;letter-spacing:-.6px}.stats .stat{border:0;border-radius:18px;padding:22px;background:#245ae8;color:white;box-shadow:0 8px 22px #14224910}.stats .stat p,.stats .stat .muted{color:inherit;opacity:.9}.stats .stat:nth-child(2){background:#ff8b30;color:#281506}.stats .stat:nth-child(3){background:#f4ce42;color:#29220a}.stats .stat:nth-child(4){background:#c83449;color:#fff}.stats .stat strong{font-weight:700}.server-card{border-top:4px solid #3975fa}.server-card:nth-child(3n+2){border-top-color:#ff923c}.server-card:nth-child(3n){border-top-color:#e3bc26}.primary{background:var(--green);color:#fff}.primary:hover{background:#214ac4}.secondary{background:var(--surface);color:var(--ink);border-color:var(--line)}.panel,.server-card,.code-card,.login-card,.stat,.gw-card,.gw-management,.gw-manage-card,.gw-stats>div,dialog{background:var(--surface);color:var(--ink);border-color:var(--line)}input,select,textarea{background:var(--surface);color:var(--ink);border-color:var(--line)}.gw-summary{background:var(--soft);color:var(--ink);border-color:var(--line);border-left:5px solid #3975fa}.gw-summary.gw-warning{border-left-color:#ef5262}.gw-stats>div{border-top:3px solid #3975fa}.gw-stats>div:nth-child(2){border-top-color:#ff923c}.gw-stats>div:nth-child(3){border-top-color:#e3bc26}.gw-stats>div:nth-child(4){border-top-color:#ef5262}
[data-admin-theme=night] :is(.notice,.gw-alert,.gw-mail,.gw-mail-card,.gw-selector,.gw-node,.server-public-status,.public-status,.bulk-location-option,.dialog-note,.country-option,.code-location-option,.gw-empty,.gw-control-card),[data-admin-theme=black] :is(.notice,.gw-alert,.gw-mail,.gw-mail-card,.gw-selector,.gw-node,.server-public-status,.public-status,.bulk-location-option,.dialog-note,.country-option,.code-location-option,.gw-empty,.gw-control-card){background:var(--soft);color:var(--ink);border-color:var(--line)}
[data-admin-theme=night] :is(.muted,.small,.gw-eyebrow,.gw-axis,.gw-chart-title,.gw-foot,dt),[data-admin-theme=black] :is(.muted,.small,.gw-eyebrow,.gw-axis,.gw-chart-title,.gw-foot,dt){color:var(--muted)}
[data-admin-theme=night] .badge,[data-admin-theme=black] .badge{background:var(--soft);color:var(--ink);border-color:var(--line)}
[data-admin-theme=night] .gw-state,[data-admin-theme=black] .gw-state{background:var(--soft);color:var(--ink)}
[data-admin-theme=night] .gw-down,[data-admin-theme=black] .gw-down{color:#ff9ba3}
@media(max-width:700px){.dashboard-jumps{gap:8px}.dashboard-jumps a{padding:10px 12px}.dashboard-section{margin-top:24px}.stats .stat{padding:16px}.dashboard-section h2{font-size:23px}.theme-picker{max-width:240px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.admin-top{flex-wrap:wrap;gap:16px}.admin-top .theme-picker{display:flex;align-items:center;gap:10px;width:auto;color:var(--muted);order:3}.admin-top .theme-picker select{width:auto;min-width:140px;background:var(--surface);color:var(--ink);border-color:var(--line)}
[data-admin-theme=night] :is(.gw-input-card,.gw-next-step,.server-status-panel),[data-admin-theme=black] :is(.gw-input-card,.gw-next-step,.server-status-panel){background:var(--soft);color:var(--ink);border-color:var(--line)}
[data-admin-theme=night] :is(.gw-input-heading label,.gw-card-label,.gw-input-card select),[data-admin-theme=black] :is(.gw-input-heading label,.gw-card-label,.gw-input-card select){color:var(--ink);background:var(--surface)}
