:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#17253b;background:#f3f6fa;font-synthesis:none;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,.button{border:1px solid #dbe2ec;background:white;border-radius:8px;padding:10px 14px;color:#26354d;cursor:pointer;text-decoration:none;white-space:nowrap}button:hover,.button:hover{background:#f0f5fb;border-color:#bac9dc}button:disabled{opacity:.42;cursor:not-allowed}button.primary{background:#215ee8;border-color:#215ee8;color:white;font-weight:600}button.primary:hover{background:#194ecc}button.danger{color:#b3424e}button.subtle{border-color:transparent;background:transparent}.muted{color:#758399}.small{font-size:12px;line-height:1.6}.eyebrow{color:#7386a3;font-size:11px;font-weight:700;letter-spacing:.14em}h1{font-size:30px;letter-spacing:-.7px;margin:8px 0 10px}h2{font-size:16px;margin:0 0 12px}p{line-height:1.6}label{display:flex;flex-direction:column;gap:8px;font-weight:500;margin-bottom:18px}input,select,textarea{background:white;border:1px solid #d7e0ec;border-radius:8px;padding:11px 12px;color:#20304a;outline:none}input:focus,select:focus,textarea:focus{border-color:#547fee;box-shadow:0 0 0 3px #215ee810}textarea{resize:vertical;font-size:12px;line-height:1.5;word-break:break-all}.login-wrap{min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at 20% 10%,#e4edff,transparent 55%),#f4f7fc}.login-card{width:420px;background:white;padding:42px;border:1px solid #e3e9f2;border-radius:18px;box-shadow:0 20px 70px #18365910}.login-card>p{margin-bottom:24px}.login-card button{width:100%}.mark{width:44px;height:44px;border-radius:12px;background:#215ee8;color:white;display:grid;place-items:center;font-size:25px;font-weight:800;box-shadow:0 5px 14px #215ee82b}.small-mark{width:36px;height:36px;font-size:20px;border-radius:10px}.login-card .small{margin-bottom:0;font-size:11px}#login-error{color:#b3424e;font-size:13px;margin-bottom:0}.dashboard{max-width:1440px;margin:auto;padding:0 42px}.top{height:88px;border-bottom:1px solid #dfe6ef;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px}.brand strong{font-size:19px}.brand span{display:block;font-size:11px}.header-actions{display:flex;align-items:center;gap:12px}.badge{padding:5px 10px;border-radius:20px;font-size:11px;font-weight:600;white-space:nowrap;display:inline-block}.badge.neutral{background:#e8edf5;color:#758399}.badge.active{background:#e6f5ee;color:#258458}.badge.inactive{background:#edf0f5;color:#758197}.page-heading{display:flex;justify-content:space-between;align-items:center;padding:30px 0 20px}.page-heading .eyebrow{margin:0}.page-heading h1{font-size:29px}.page-heading p{margin:7px 0}.environment{min-width:200px;font-size:12px;color:#718097;margin:0}.environment select{color:#26354d;font-size:13px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:4px 0 22px}.metrics article{background:white;border:1px solid #e0e7f1;border-radius:12px;padding:21px 22px;display:flex;flex-direction:column;gap:7px}.metrics article>span:first-child{font-size:12px}.metrics strong{font-size:33px;letter-spacing:-1px;color:#223b63;font-weight:650}.metrics article:last-child strong{color:#23865b}.notice{background:#fff8e9;border:1px solid #f0e1bc;color:#8d6b25;padding:14px 18px;border-radius:9px;line-height:1.6;font-size:12px;margin-bottom:22px}.notice.ok{background:#eaf3ff;border-color:#d5e5ff;color:#38649b}.notice.compact{padding:12px;margin:14px 0}.user-panel{background:white;border:1px solid #dfe6f0;border-radius:12px;overflow:hidden;box-shadow:0 4px 16px #18365903}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px}.search{width:340px}.search input{width:100%;background:#f8fafe;font-size:12px}.toolbar-actions{display:flex;gap:10px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:12px}th{background:#f7f9fc;color:#8290a5;font-size:10px;letter-spacing:.04em;font-weight:600;text-transform:uppercase;padding:14px 20px;border-top:1px solid #edf1f6;border-bottom:1px solid #edf1f6}td{padding:18px 20px;border-bottom:1px solid #edf1f6}td strong{display:block;font-weight:600;font-size:13px;margin-bottom:4px}td>.small{display:block;font-size:10px}.protocol{font-weight:600;font-size:10px;padding:5px 8px;border-radius:5px;letter-spacing:.04em}.protocol.vless{background:#eaf0ff;color:#496fc2}.protocol.trojan{background:#f0eafb;color:#8c65b4}.row-actions{display:flex;justify-content:flex-end;gap:5px;flex-wrap:nowrap}.row-actions button{font-size:11px;padding:7px 9px;border-color:transparent;background:transparent}.row-actions button.link-action{color:#3265cc;background:#f0f5ff}.actions-heading{text-align:right}.table-footer{padding:14px 20px;display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#8391a5;background:#fcfdff}.bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:24px}.info-card{border:1px solid #e1e7ef;border-radius:11px;padding:22px;background:#ffffff85}.info-card h2{font-size:13px;color:#465a77}.info-card p{font-size:12px;color:#718099;margin:8px 0}.info-card p.small{font-size:10px}.page-footer{display:flex;justify-content:space-between;padding:22px 0 30px;font-size:10px;color:#98a4b6}.empty{text-align:center;padding:35px;color:#8492a8}dialog{border:1px solid #dce5f0;border-radius:14px;padding:28px;width:490px;box-shadow:0 22px 100px #10294825;color:#25354d}dialog::backdrop{background:#152d4d55;backdrop-filter:blur(2px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.dialog-heading h2{font-size:20px;margin:0}.icon-button{border:0;padding:0 6px;font-size:25px;background:transparent;color:#8290a5}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px}.qr-wrap{display:grid;place-items:center;margin-bottom:18px}.qr-wrap img{border:1px solid #e1e7ef;border-radius:8px;padding:8px;background:white}#toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);background:#233c62;color:white;padding:15px 23px;border-radius:10px;box-shadow:0 8px 30px #152d4d30;max-width:90vw;z-index:100}#toast.error{background:#a74752}#busy{position:fixed;inset:0;background:#f3f6faf2;z-index:200;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#3a5478}#busy p{font-size:19px;font-weight:600;margin:22px 0 7px}#busy span{font-size:12px;color:#798aa3}.spinner{width:35px;height:35px;border:3px solid #dce7f9;border-top-color:#215ee8;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.sr-only{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}[hidden]{display:none!important}@media(max-width:1000px){.dashboard{padding:0 20px}.metrics{gap:12px}.metrics article{padding:18px}.bottom-grid{grid-template-columns:1fr}.row-actions{flex-wrap:wrap;min-width:250px}td,th{padding:14px}.top .brand span{display:none}}@media(max-width:650px){.dashboard{padding:0 12px}.top{height:76px}.header-actions{gap:4px}.header-actions .badge{display:none}.header-actions button{font-size:11px;padding:8px}.page-heading{align-items:flex-start;gap:10px;flex-direction:column}.page-heading h1{font-size:25px}.environment{width:100%;margin-top:10px}.metrics{grid-template-columns:1fr 1fr}.metrics strong{font-size:28px}.toolbar{align-items:stretch;flex-direction:column;gap:12px;padding:14px}.search{width:100%}.toolbar-actions{justify-content:flex-end}.table-footer{flex-direction:column}.login-card{width:calc(100vw - 32px);padding:28px}.login-card h1{font-size:27px}dialog{width:calc(100vw - 24px);padding:22px}.bottom-grid{gap:12px}.page-footer{gap:15px}}

dialog{max-height:90vh;overflow-y:auto}#security-dialog form,#totp-dialog form{display:block}#security-error,#totp-error{color:#b3424e}label:has(input[type=checkbox]){flex-direction:row;align-items:center}input[type=checkbox]{width:auto}hr{border:0;border-top:1px solid #e1e7ef;margin:24px 0}#recovery-codes{width:100%;font-family:Consolas,monospace}
