:root{--bg:#f7f7f8;--surface:#fff;--surface-2:#f1f2f4;--sidebar:#fbfbfc;--border:#e3e5e8;--border-strong:#cfd3d8;--text:#17191c;--muted:#646a73;--accent:#4f46e5;--accent-hover:#4338ca;--accent-soft:#eef0ff;--accent-text:#fff;--ok:#15803d;--busy:#b45309;--off:#8a9099;--error:#c62828;--error-soft:#fdecec;--terminal-bg:#f4f5f7;--terminal-text:#1f2328;--shadow:0 1px 2px #1018280d;--radius:10px;--radius-sm:6px;--mono:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:14px;line-height:1.5}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#0c0d10;--surface:#14161a;--surface-2:#1b1e23;--sidebar:#0f1013;--border:#262a30;--border-strong:#353a42;--text:#e8eaed;--muted:#949ba5;--accent:#818cf8;--accent-hover:#a5b4fc;--accent-soft:#1e2140;--accent-text:#0c0d10;--ok:#4ade80;--busy:#fbbf24;--off:#6b7280;--error:#f87171;--error-soft:#2a1416;--terminal-bg:#08090b;--terminal-text:#d6dae0;--shadow:none;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}:root[data-theme=dark]{--bg:#0c0d10;--surface:#14161a;--surface-2:#1b1e23;--sidebar:#0f1013;--border:#262a30;--border-strong:#353a42;--text:#e8eaed;--muted:#949ba5;--accent:#818cf8;--accent-hover:#a5b4fc;--accent-soft:#1e2140;--accent-text:#0c0d10;--ok:#4ade80;--busy:#fbbf24;--off:#6b7280;--error:#f87171;--error-soft:#2a1416;--terminal-bg:#08090b;--terminal-text:#d6dae0;--shadow:none;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*,:before,:after{box-sizing:border-box}[hidden]{display:none!important}body{background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;margin:0}h1,h2,h3{letter-spacing:-.01em;margin:0;font-weight:600}h2{font-size:1.5rem}h3{font-size:1rem}p{margin:0}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}code,.mono{font-family:var(--mono);font-size:.92em}:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:var(--radius-sm)}.icon{flex:none}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.skip-link{z-index:10;background:var(--accent);color:var(--accent-text);border-radius:var(--radius-sm);padding:8px 12px;position:absolute;top:-48px;left:8px}.skip-link:focus{top:8px}.muted{color:var(--muted)}.error{color:var(--error)}.center{text-align:center;margin:64px auto 0}button,a.button{font:inherit;cursor:pointer;border:1px solid var(--accent);background:var(--accent);color:var(--accent-text);border-radius:var(--radius-sm);white-space:nowrap;justify-content:center;align-items:center;gap:6px;padding:8px 14px;font-weight:500;line-height:1.25;transition:background-color .12s,border-color .12s;display:inline-flex}button:hover:not(:disabled),a.button:hover{background:var(--accent-hover);border-color:var(--accent-hover);text-decoration:none}button:disabled{opacity:.5;cursor:not-allowed}button.small{padding:5px 10px;font-size:.9rem}button.secondary{background:var(--surface);color:var(--text);border-color:var(--border-strong)}button.secondary:hover:not(:disabled){background:var(--surface-2);border-color:var(--border-strong)}button.ghost{color:var(--accent);background:0 0;border-color:#0000;padding:4px 6px}button.ghost:hover:not(:disabled){background:var(--accent-soft);border-color:#0000}button.danger{background:var(--error);border-color:var(--error);color:#fff}button.danger:hover:not(:disabled){background:var(--error);border-color:var(--error);filter:brightness(.92)}.icon-button{color:var(--muted);background:0 0;border-color:#0000;padding:6px}.icon-button:hover:not(:disabled){background:var(--surface-2);color:var(--text);border-color:#0000}input,select{font:inherit;color:inherit;background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius-sm);width:100%;margin-top:4px;padding:7px 10px}input:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:0;border-color:var(--accent)}input[aria-invalid=true]{border-color:var(--error)}label{font-weight:500;display:block}label.checkbox{align-items:center;gap:8px;font-weight:400;display:flex}label.checkbox input{width:auto;accent-color:var(--accent);margin:0}.buttons{flex-wrap:wrap;gap:8px;display:flex}form.inline{flex-wrap:wrap;align-items:flex-end;gap:8px;display:flex}form.inline .grow{flex:12rem}.shell{grid-template-columns:240px minmax(0,1fr);min-height:100vh;display:grid}.sidebar{background:var(--sidebar);border-right:1px solid var(--border);height:100vh;padding:16px 12px;position:sticky;top:0}.brand{align-items:center;gap:10px;padding:4px 8px 20px;font-weight:600;display:flex}.brand-mark{background:var(--accent);width:28px;height:28px;color:var(--accent-text);border-radius:8px;justify-content:center;align-items:center;display:inline-flex}.nav{flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;display:flex}.nav-item{border-radius:var(--radius-sm);color:var(--muted);align-items:center;gap:10px;padding:7px 10px;font-weight:500;display:flex}a.nav-item:hover{background:var(--surface-2);color:var(--text);text-decoration:none}.nav-item.active{background:var(--accent-soft);color:var(--accent)}.nav-label{flex:1}.main-column{flex-direction:column;min-width:0;display:flex}.topbar{border-bottom:1px solid var(--border);background:var(--surface);z-index:5;justify-content:flex-end;align-items:center;gap:8px;padding:10px 32px;display:flex;position:sticky;top:0}.lang-select select{border-color:var(--border);background:0 0;width:auto;margin:0;padding:5px 8px}.user{border-left:1px solid var(--border);align-items:center;gap:8px;margin-left:8px;padding-left:12px;display:flex}.avatar{background:var(--accent-soft);width:28px;height:28px;color:var(--accent);border-radius:50%;justify-content:center;align-items:center;font-weight:600;display:inline-flex}main{width:100%;max-width:1120px;margin:0 auto;padding:32px}main:focus{outline:none}.page{flex-direction:column;gap:20px;display:flex}.page-header{justify-content:space-between;align-items:flex-end;gap:16px;display:flex}.page-header p{margin-top:4px}.back{color:var(--muted);align-self:flex-start;align-items:center;gap:6px;font-weight:500;display:inline-flex}.back:hover{color:var(--text);text-decoration:none}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px}.form{flex-direction:column;gap:16px;display:flex}.form.narrow{max-width:560px}.form-footer{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.empty{color:var(--muted);text-align:center;background:var(--surface);border:1px dashed var(--border-strong);border-radius:var(--radius);padding:40px 24px}.banner{color:var(--error);background:var(--error-soft);border:1px solid var(--error);border-radius:var(--radius-sm);margin-bottom:20px;padding:10px 14px}.notice{color:var(--muted);background:var(--surface-2);border-radius:var(--radius-sm);padding:10px 14px}.login{text-align:center;flex-direction:column;align-items:center;gap:16px;max-width:420px;margin:64px auto 0;display:flex}.status{white-space:nowrap;align-items:center;gap:6px;font-weight:500;display:inline-flex}.status-dot{background:currentColor;border-radius:50%;width:8px;height:8px}.status-ok{color:var(--ok)}.status-ok .status-dot{box-shadow:0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent)}.status-busy{color:var(--busy)}.status-off{color:var(--off)}.status-error{color:var(--error)}.address{align-items:center;gap:2px;min-width:0;display:inline-flex}.address code{overflow-wrap:anywhere}.address .icon-button{padding:4px}table.servers{border-collapse:separate;border-spacing:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);width:100%;box-shadow:var(--shadow);overflow:hidden}.servers th,.servers td{text-align:left;border-bottom:1px solid var(--border);vertical-align:middle;padding:12px 16px}.servers th{text-transform:uppercase;letter-spacing:.04em;color:var(--muted);white-space:nowrap;background:var(--surface-2);font-size:.78rem;font-weight:500}.servers tbody tr:last-child td{border-bottom:none}.servers tbody tr:hover td{background:var(--surface-2)}.server-link{color:var(--text);font-weight:600}.cell-actions{text-align:right}.server-header{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.server-heading{flex-direction:column;gap:10px;min-width:0;display:flex}.server-title{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.server-title h2{overflow-wrap:anywhere}.meta{flex-wrap:wrap;gap:6px 24px;margin:0;display:flex}.meta>div{align-items:center;gap:6px;min-width:0;display:flex}.meta dt{color:var(--muted)}.meta dd{min-width:0;margin:0}.server-actions{gap:8px;display:flex}.stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.stat{flex-direction:column;gap:8px;padding:16px;display:flex}.stat-head{color:var(--muted);align-items:center;gap:8px;font-size:.85rem;font-weight:500;display:flex}.stat-value{font-variant-numeric:tabular-nums;font-size:1.4rem;font-weight:600}.stat-max{color:var(--muted);font-size:.9rem;font-weight:500}.gauge{background:var(--surface-2);border-radius:999px;height:6px;overflow:hidden}.gauge-fill{background:var(--accent);border-radius:inherit;width:0;height:100%}.gauge-high .gauge-fill{background:var(--error)}.fill-5{width:5%}.fill-10{width:10%}.fill-15{width:15%}.fill-20{width:20%}.fill-25{width:25%}.fill-30{width:30%}.fill-35{width:35%}.fill-40{width:40%}.fill-45{width:45%}.fill-50{width:50%}.fill-55{width:55%}.fill-60{width:60%}.fill-65{width:65%}.fill-70{width:70%}.fill-75{width:75%}.fill-80{width:80%}.fill-85{width:85%}.fill-90{width:90%}.fill-95{width:95%}.fill-100{width:100%}.tabs{border-bottom:1px solid var(--border);gap:4px;margin-bottom:-4px;display:flex;overflow-x:auto}.tab{color:var(--muted);background:0 0;border:none;border-bottom:2px solid #0000;border-radius:0;margin-bottom:-1px;padding:10px 12px}.tab:hover:not(:disabled){color:var(--text);background:0 0}.tab[aria-selected=true]{color:var(--text);border-bottom-color:var(--accent)}.tab:focus-visible{outline-offset:-2px}.tabpanel:focus-visible{outline-offset:4px}.panel{flex-direction:column;gap:16px;display:flex}.panel-toolbar{justify-content:flex-end;display:flex}.terminal{background:var(--terminal-bg);min-height:160px;max-height:440px;color:var(--terminal-text);border:1px solid var(--border);border-radius:var(--radius);font-family:var(--mono);white-space:pre-wrap;overflow-wrap:anywhere;margin:0;padding:14px 16px;font-size:.82rem;line-height:1.55;overflow:auto}.log-view{flex-direction:column;gap:8px;display:flex}.log-bar{justify-content:space-between;align-items:center;gap:8px;min-height:28px;font-size:.9rem;display:flex}.terminal-wrap{position:relative}.terminal-wrap .terminal{height:440px}.terminal-wrap .jump{position:absolute;bottom:14px;right:14px}.terminal.terminal-short{min-height:0;max-height:200px}.terminal .placeholder{color:var(--muted)}.player-lists{grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:12px;display:grid}.player-list{flex-direction:column;gap:10px;display:flex}.player-list ul{margin:0;padding:0;list-style:none}.player-list li{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:8px;padding:4px 0;display:flex}.player-list li:last-child{border-bottom:none}.online-name{overflow-wrap:anywhere;align-items:center;gap:8px;min-width:0;display:inline-flex}.badge{background:var(--accent-soft);color:var(--accent);border-radius:999px;padding:1px 8px;font-size:.75rem;font-weight:500}.row-actions{flex-wrap:wrap;justify-content:flex-end;gap:6px;display:inline-flex}.player-actions{flex-direction:column;gap:12px;display:flex}.backups-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.backups-head h3{margin:0}.backups-head p{margin:4px 0 0}.notice.job-running{color:var(--busy)}.notice.job-succeeded{color:var(--ok)}.notice.job-failed{color:var(--error);background:var(--error-soft)}.owner{flex-wrap:wrap;align-items:center;gap:8px;display:inline-flex}.activity .cell-time{white-space:nowrap;color:var(--muted)}.activity .cell-detail{overflow-wrap:anywhere;flex-direction:column;gap:2px;min-width:0;display:flex}.users .cell-servers{flex-wrap:wrap;gap:4px 10px;display:flex}.actor-automated{color:var(--muted);font-style:italic}.activity-error{color:var(--muted);font-size:.85rem}.result{white-space:nowrap;border-radius:999px;padding:1px 8px;font-size:.75rem;font-weight:500;display:inline-block}.result-ok{color:var(--ok);background:color-mix(in srgb, var(--ok) 12%, transparent)}.result-denied{color:var(--busy);background:color-mix(in srgb, var(--busy) 12%, transparent)}.result-failed{color:var(--error);background:var(--error-soft)}.managers form.inline{margin-top:4px}fieldset.env,fieldset.settings{border:1px solid var(--border);border-radius:var(--radius-sm);flex-direction:column;align-items:flex-start;gap:8px;margin:0;padding:12px;display:flex}fieldset.settings{align-items:stretch;gap:16px}fieldset.env legend,fieldset.settings legend{padding:0 4px;font-weight:500}.env-row{grid-template-columns:minmax(0,1fr) minmax(0,2fr) auto;align-items:center;gap:8px;width:100%;display:grid}.env-row input{margin:0}.setting .hint{color:var(--muted);margin-top:4px;font-size:.9rem}.setting .error{margin-top:4px}.setting input[type=number]{max-width:12rem}.switch input[type=checkbox]{appearance:none;background:var(--border-strong);cursor:pointer;border:0;border-radius:999px;flex:none;width:36px;height:20px;margin:0;padding:0;transition:background-color .12s;position:relative}.switch input[type=checkbox]:after{content:"";background:var(--surface);border-radius:50%;width:16px;height:16px;transition:transform .12s;position:absolute;top:2px;left:2px}.switch input[type=checkbox]:checked{background:var(--accent)}.switch input[type=checkbox]:checked:after{transform:translate(16px)}.switch input[type=checkbox]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}details.advanced{border:1px solid var(--border);border-radius:var(--radius-sm);padding:10px 12px}details.advanced summary{cursor:pointer;font-weight:500}details.advanced[open] summary{margin-bottom:8px}details.advanced>*+*{margin-top:8px}.form-footer.end{justify-content:flex-end}.schedules{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}fieldset.schedule{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface-2);grid-template-columns:repeat(auto-fill,minmax(11rem,1fr));align-items:start;gap:12px;min-width:0;margin:0;padding:12px;display:grid}fieldset.schedule .wide,.schedule-actions{grid-column:1/-1}.schedule-actions{justify-content:flex-end;display:flex}.schedule-add{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.catalog{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;margin:0;padding:0;list-style:none;display:grid}.template{flex-direction:column;gap:12px;height:100%;display:flex}.template header{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.badges{flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none;display:flex}.badge{color:var(--accent);background:var(--accent-soft);border-radius:999px;padding:2px 10px;font-size:.8rem;font-weight:500}.settings-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));align-items:start;gap:16px;display:grid}.settings-card{flex-direction:column;gap:14px;min-width:0;display:flex}.settings-card.wide{grid-column:1/-1}.settings-admin{flex-direction:column;gap:12px;display:flex}.settings-card h4,.node-group h5{margin:0;font-size:.95rem;font-weight:600}.meta.stacked{flex-direction:column;gap:10px}.meta.stacked>div{flex-wrap:wrap;align-items:baseline}fieldset.choice{border:none;flex-wrap:wrap;gap:4px 16px;margin:0;padding:0;display:flex}fieldset.choice legend{margin-bottom:6px;padding:0;font-weight:500}.quota{flex-direction:column;gap:8px;display:flex}.quota-list,.node-groups,.node-servers{margin:0;padding:0;list-style:none}.quota-list{flex-direction:column;gap:12px;display:flex}.quota-row{flex-direction:column;gap:6px;display:flex}.quota-head{justify-content:space-between;gap:12px;font-size:.9rem;display:flex}.quota-value{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}.node-groups{grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:12px;display:grid}.node-group{border:1px solid var(--border);border-radius:var(--radius-sm);flex-direction:column;gap:8px;min-width:0;padding:12px;display:flex}.node-servers{flex-direction:column;gap:6px;display:flex}.node-servers li{overflow-wrap:anywhere;justify-content:space-between;align-items:center;gap:8px;min-width:0;display:flex}.node-server{flex-direction:column;min-width:0;display:flex}.node-server .small{font-size:.8rem}.node-name{font-family:var(--mono);font-size:.92em}.danger-zone{border-color:color-mix(in srgb, var(--error) 45%, var(--border));flex-direction:column;align-items:flex-start;gap:12px;display:flex}.files-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.breadcrumb ol{flex-wrap:wrap;align-items:center;gap:2px;margin:0;padding:0;list-style:none;display:flex}.breadcrumb li{align-items:center;gap:2px;display:flex}.breadcrumb li+li:before{content:"/";color:var(--muted);padding:0 4px}.breadcrumb [aria-current]{overflow-wrap:anywhere;padding:4px 6px;font-weight:600}.file-pick{cursor:pointer;border:1px solid var(--border-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--text);white-space:nowrap;align-items:center;gap:6px;padding:5px 10px;font-size:.9rem;font-weight:500;line-height:1.25;display:inline-flex}.file-pick:hover{background:var(--surface-2)}.file-pick:focus-within{outline:2px solid var(--accent);outline-offset:2px}.file-name{overflow-wrap:anywhere;align-items:center;gap:8px;min-width:0;display:inline-flex}button.link-button{color:var(--accent);white-space:normal;text-align:left;background:0 0;border:none;padding:0;font-weight:600}button.link-button:hover:not(:disabled){background:0 0;text-decoration:underline}.tag{color:var(--muted);border:1px solid var(--border-strong);border-radius:999px;padding:0 6px;font-size:.75rem}.row-actions,.confirm-inline{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:4px;display:inline-flex}.confirm-inline>span{color:var(--error);white-space:normal;margin-right:4px}.files td form.inline input{flex:10rem;width:auto;margin:0}.confirm{border-color:color-mix(in srgb, var(--busy) 45%, var(--border));flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;display:flex}.editor-form h3{overflow-wrap:anywhere}textarea.editor{width:100%;min-height:24rem;color:var(--terminal-text);background:var(--terminal-bg);border:1px solid var(--border-strong);border-radius:var(--radius-sm);resize:vertical;tab-size:2;margin-top:4px;padding:10px 12px;font-size:.85rem;line-height:1.5;display:block}textarea.editor:focus-visible{outline:2px solid var(--accent);outline-offset:0;border-color:var(--accent)}.mod-list{flex-direction:column;gap:10px;display:flex}.mod-list ul{margin:0;padding:0;list-style:none}.mod-list li{border-bottom:1px solid var(--border);overflow-wrap:anywhere;justify-content:space-between;align-items:center;gap:12px;padding:8px 0;display:flex}.mod-list li:last-child{border-bottom:none}.mod-hit-text{flex-direction:column;gap:2px;min-width:0;display:flex}@media (width<=860px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=720px){.shell{grid-template-rows:auto 1fr;grid-template-columns:minmax(0,1fr)}.sidebar{border-right:none;border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:8px;height:auto;padding:8px 16px;display:flex;position:static}.brand{padding:0}.brand-name{display:none}.nav{flex-direction:row}.nav-label{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;margin:-1px;position:absolute;overflow:hidden}.nav-item{padding:8px}.topbar{padding:8px 16px}.user-name{display:none}main{padding:20px 16px 48px}h2{font-size:1.3rem}.page-header{align-items:center}table.servers,.servers tbody,.servers tr,.servers td{width:100%;display:block}table.servers{box-shadow:none;background:0 0;border:none}.servers thead{display:none}.servers tbody{flex-direction:column;gap:12px;display:flex}.servers tr{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:12px 16px}.servers tbody tr:hover td{background:0 0}.servers td{border:none;justify-content:space-between;align-items:center;gap:12px;padding:4px 0;display:flex}.servers td[data-label]:before{content:attr(data-label);color:var(--muted);font-size:.85rem}.servers .cell-name{padding-bottom:8px;font-size:1.05rem}.servers .cell-actions{justify-content:flex-end;padding-top:8px}.server-header,.meta{flex-direction:column}.env-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.env-row button{grid-column:1/-1;justify-self:start}}@media (prefers-reduced-motion:reduce){*{transition:none!important}}
