:root{font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;color:#182230;background:#f3f5f7;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:#f3f5f7}button,input,select{font:inherit;letter-spacing:0}button{cursor:pointer}.hidden{display:none!important}.auth-layout{min-height:100vh;display:grid;place-items:center;padding:24px;background:#17233a}.auth-card{width:min(420px,100%);background:#fff;border:1px solid #d7dde5;border-radius:8px;padding:32px;box-shadow:0 18px 50px #07111f40}.brand-lockup{display:flex;align-items:center;gap:11px}.brand-lockup strong,.brand-lockup small{display:block}.brand-lockup strong{font-size:15px}.brand-lockup small{font-size:12px;color:#718096;margin-top:2px}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:7px;background:#15a087;color:#fff;font-weight:800}.auth-heading{margin:34px 0 22px}.auth-heading h1{font-size:24px;margin:0 0 7px}.auth-heading p,.section-heading p,.topbar p{color:#6b7789;margin:0;font-size:13px}.stack-form{display:grid;gap:16px}label{display:grid;gap:7px;color:#3c4858;font-size:13px;font-weight:600}input,select{width:100%;height:40px;border:1px solid #cbd3dd;border-radius:6px;background:#fff;color:#182230;padding:0 11px;outline:none}input:focus,select:focus{border-color:#168f7b;box-shadow:0 0 0 3px #15a0871f}button{border:1px solid transparent;border-radius:6px;min-height:38px;padding:0 14px;font-weight:650;color:#263242;background:#fff}.primary{background:#168f7b;border-color:#168f7b;color:#fff}.primary:hover{background:#117563}.secondary{border-color:#cbd3dd;background:#fff}.secondary:hover{background:#f4f6f8}.wide{width:100%}.text-button{display:block;margin:22px auto 0;border:0;min-height:auto;padding:2px;color:#168f7b;background:transparent}.form-message{min-height:18px;margin:0;color:#b54708;font-size:13px;font-weight:500}.workspace{min-height:100vh;display:grid;grid-template-columns:232px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;background:#17233a;color:#fff;padding:22px 14px;display:flex;flex-direction:column}.sidebar-brand{padding:0 8px 24px}.sidebar-brand small{color:#aeb9ca}.sidebar nav{display:grid;gap:5px}.nav-item{height:42px;text-align:left;border:0;background:transparent;color:#bfc9d8;padding:0 13px}.nav-item:hover{background:#22314c;color:#fff}.nav-item.active{background:#fff;color:#182230}.sidebar-foot{margin-top:auto;border-top:1px solid #31405a;padding:18px 8px 0;display:flex;gap:9px;align-items:center}.sidebar-foot strong,.sidebar-foot small{display:block;font-size:12px}.sidebar-foot small{color:#9eabbc;margin-top:3px}.health-dot{width:9px;height:9px;border-radius:50%;background:#32c6a6;box-shadow:0 0 0 4px #32c6a620}.content-shell{min-width:0}.topbar{height:78px;background:#fff;border-bottom:1px solid #dfe4ea;padding:0 28px;display:flex;align-items:center;justify-content:space-between}.topbar h1{font-size:20px;margin:0 0 5px}.top-actions{display:flex;align-items:center;gap:10px}.admin-chip{font-size:12px;background:#edf1f4;padding:7px 10px;border-radius:6px;color:#526071}main{padding:24px 28px 42px;max-width:1680px;margin:0 auto}.view{display:none}.view.active{display:block}.stats-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:18px}.stat-card{min-height:104px;background:#fff;border:1px solid #dfe4ea;border-radius:7px;padding:16px;display:flex;flex-direction:column;justify-content:space-between}.stat-card span{font-size:12px;color:#687587}.stat-card strong{font-size:27px;line-height:1;color:#182230}.stat-card.accent{border-top:3px solid #168f7b}.stat-card.warning{border-top:3px solid #e6a23c}.stat-card.danger{border-top:3px solid #d94c5c}.overview-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.8fr);gap:18px}.surface{background:#fff;border:1px solid #dfe4ea;border-radius:7px;padding:20px;margin-bottom:18px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.section-heading h2{font-size:16px;margin:0 0 5px}.form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.wide-field{grid-column:span 2}.form-submit{display:flex;align-items:center;gap:12px;grid-column:1/-1}.generated-panel{min-width:0}.button-row,.toolbar{display:flex;gap:8px;align-items:center}.key-output{height:184px;margin:0;overflow:auto;border:1px solid #dbe1e7;border-radius:6px;background:#f7f9fa;padding:13px;color:#116353;font:12px/1.8 "Cascadia Mono",Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}.key-output.empty{color:#8a96a6;display:grid;place-items:center}.toolbar{margin-bottom:14px;flex-wrap:wrap}.search-input{max-width:420px}.toolbar select{width:150px}.table-wrap{width:100%;overflow:auto;border:1px solid #e2e7ec;border-radius:6px}table{width:100%;border-collapse:collapse;min-width:760px}.wide-table{min-width:1280px}th,td{text-align:left;padding:12px 13px;border-bottom:1px solid #e7ebef;font-size:12px;vertical-align:middle}th{background:#f7f8fa;color:#647184;font-weight:700;white-space:nowrap}td{color:#344054}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafbfc}.mono{font-family:"Cascadia Mono",Consolas,monospace;font-size:11px;overflow-wrap:anywhere}.key-cell{display:flex;align-items:center;gap:6px}.key-value{font-size:12px;white-space:nowrap}.mini-button{min-height:28px;padding:0 8px;border-color:#d3dae2;background:#fff;font-size:11px}.action-row{display:flex;gap:5px;flex-wrap:wrap}.status{display:inline-flex;align-items:center;gap:6px;border-radius:99px;padding:4px 8px;font-size:11px;font-weight:700;background:#edf1f4}.status::before{content:"";width:6px;height:6px;border-radius:50%;background:#8693a4}.status.active,.status.whitelist,.status.online{background:#e6f6f1;color:#107663}.status.active::before,.status.whitelist::before,.status.online::before{background:#18a689}.status.paused{background:#fff3dc;color:#9a6500}.status.paused::before{background:#d79617}.status.revoked,.status.blacklist{background:#fdebed;color:#b52d3d}.status.revoked::before,.status.blacklist::before{background:#d94c5c}.status.normal{background:#edf1f4;color:#5a687a}.subtext{display:block;color:#8995a5;margin-top:4px}.empty-row{text-align:center;color:#8793a3;padding:30px}.inline-form{display:grid;grid-template-columns:1.1fr 160px 1.5fr auto;gap:12px;align-items:end;margin-bottom:18px}.inline-form button{height:40px}.icon-button{width:34px;height:34px;min-height:34px;padding:0;border:0;background:#f0f3f6;font-size:22px;line-height:1}dialog{width:min(680px,calc(100% - 30px));padding:0;border:0;border-radius:8px;box-shadow:0 22px 70px #0a142450}dialog::backdrop{background:#11182780}.dialog-card{padding:22px}.dialog-head{display:flex;justify-content:space-between;gap:16px;margin-bottom:20px}.dialog-head h2{font-size:18px;margin:0 0 5px}.dialog-head p{margin:0;color:#748195;font:12px "Cascadia Mono",Consolas,monospace}.check-row{display:flex;align-items:center;gap:9px;margin-top:14px;font-weight:500}.check-row input{width:16px;height:16px}.history-block{margin-top:20px;border-top:1px solid #e1e6eb;padding-top:16px}.history-block h3{font-size:13px;margin:0 0 10px}.history-list{max-height:180px;overflow:auto}.history-item{display:grid;grid-template-columns:100px 1fr auto;gap:8px;padding:9px 0;border-bottom:1px solid #edf0f3;font-size:11px}.history-item code{overflow-wrap:anywhere}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.toast{position:fixed;right:22px;bottom:22px;z-index:10;max-width:360px;background:#182230;color:#fff;border-radius:6px;padding:12px 15px;font-size:13px;opacity:0;transform:translateY(8px);pointer-events:none;transition:.18s}.toast.show{opacity:1;transform:none}.toast.error{background:#a52e3c}@media(max-width:1180px){.stats-grid{grid-template-columns:repeat(3,1fr)}.overview-grid{grid-template-columns:1fr}.generated-panel{min-height:260px}}@media(max-width:760px){.workspace{display:block}.sidebar{position:static;height:auto;padding:12px}.sidebar-brand,.sidebar-foot{display:none}.sidebar nav{display:flex;overflow:auto;gap:4px}.nav-item{flex:0 0 auto;height:38px}.topbar{height:70px;padding:0 15px}.topbar p,.admin-chip{display:none}main{padding:15px}.stats-grid{grid-template-columns:repeat(2,1fr)}.surface{padding:15px}.form-grid,.inline-form{grid-template-columns:1fr}.wide-field{grid-column:auto}.form-submit{grid-column:auto}.section-heading{align-items:flex-start}.section-heading .button-row{flex-wrap:wrap;justify-content:flex-end}.auth-card{padding:24px}.history-item{grid-template-columns:1fr}.history-item span:last-child{color:#7a8797}}@media(max-width:390px){.stats-grid{grid-template-columns:1fr}.top-actions{gap:5px}.topbar h1{font-size:17px}.surface{padding:12px}}
.profile-form-grid{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:14px;margin-bottom:14px}.profile-payload{min-height:300px;resize:vertical;font:12px/1.55 "Cascadia Mono",Consolas,monospace;padding:12px;width:100%;border:1px solid #cbd3dd;border-radius:6px}.config-form textarea{min-height:120px;resize:vertical;padding:10px 11px;border:1px solid #cbd3dd;border-radius:6px;font:inherit}.config-form textarea:focus{border-color:#168f7b;box-shadow:0 0 0 3px #15a0871f;outline:none}
@media(max-width:1180px){.profile-form-grid{grid-template-columns:repeat(3,minmax(130px,1fr))}}@media(max-width:760px){.profile-form-grid{grid-template-columns:1fr}}
.backup-warning{margin:-4px 0 18px;padding:12px 14px;border:1px solid #f1d59a;border-radius:6px;background:#fff8e8;color:#7a5700;font-size:13px;line-height:1.6}
