*{box-sizing:border-box} :root{font-family:Inter,"Microsoft YaHei","PingFang SC",system-ui,sans-serif;color:#202d45;background:#f5f7fb;font-synthesis:none;font-size:16px;--blue:#3563f0;--muted:#778297;--line:#e7ecf3;--nav:#111d35}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button{cursor:pointer}button:disabled{opacity:.48;cursor:wait}button,a{touch-action:manipulation}button{border:1px solid var(--line);background:white;border-radius:9px;padding:10px 15px;color:inherit;font-size:.875rem;font-weight:600;transition:background .15s,transform .15s}button:hover{background:#f0f4ff}button:active{transform:translateY(1px)}a{color:var(--blue);text-decoration:none}button.primary,.primary{background:var(--blue);border-color:var(--blue);color:white}button.primary:hover{background:#2451d8}button.danger{color:#ca4055;background:#fff5f6;border-color:#ffd7de}.ghost{background:transparent;border:0}.muted{color:var(--muted)}.small{font-size:.875rem}.mono{font-family:ui-monospace,Consolas,monospace;font-size:.875rem}.initial{padding:60px;color:var(--muted)}.brand{display:flex;gap:12px;align-items:center;font-weight:700;font-size:1.25rem;letter-spacing:1px}.brand img{width:38px;height:38px}.brand small{display:block;font-size:.75rem;font-weight:400;color:#8f9eb8;letter-spacing:1.5px;margin-top:4px}.sidebar{position:fixed;inset:0 auto 0 0;width:224px;background:var(--nav);color:#c7d1e3;padding:32px 20px;display:flex;flex-direction:column;z-index:5}.sidebar .brand{color:#fff;margin:0 8px 42px}.nav-label{font-size:.75rem;color:#6f819f;margin:0 14px 12px;letter-spacing:2px}.nav{display:grid;gap:8px}.nav button{display:flex;align-items:center;gap:13px;text-align:left;padding:14px;background:none;border:0;color:#a7b5ce;font-weight:500}.nav button.active{background:#263c6e;color:#fff;box-shadow:inset 3px 0 var(--blue)}.nav button:hover{background:#1b2c4b;color:#fff}.icon{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.sidebar-bottom{margin-top:auto;padding:24px 8px 0;border-top:1px solid #28334c;display:flex;align-items:center;gap:10px}.avatar{width:36px;height:36px;border-radius:11px;background:#edf1ff;display:inline-flex;align-items:center;justify-content:center;color:#4566ba;flex-shrink:0;font-weight:700}.sidebar-bottom .avatar{background:#2c3d5c;color:#d7e0f2}.sidebar-bottom .ghost{color:#90a1bf;margin-left:auto;padding:6px}.workspace{margin-left:224px}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px;font-size:.875rem}.crumb{display:flex;align-items:center;gap:12px;color:var(--muted)}.crumb strong{color:#33415a;font-weight:500}.topmeta{display:flex;gap:18px;align-items:center;color:var(--muted)}.connection{display:flex;align-items:center;gap:7px}.dot{width:7px;height:7px;background:#21a17b;border-radius:50%}.dot.off{background:#d4a044}.main{max-width:1650px;margin:0 auto;padding:32px 36px 48px}.title-row{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.eyebrow{font-size:.75rem;letter-spacing:2px;color:#7a8bad;margin:0 0 7px}.title-row h1{font-size:1.7rem;letter-spacing:-.5px;margin:0 0 7px;color:#14213c}.title-row p{margin:0;color:var(--muted);font-size:.875rem}.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.actions button{display:inline-flex;align-items:center;gap:7px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:26px}.stat{background:white;border:1px solid var(--line);border-radius:13px;padding:20px 22px;position:relative;overflow:hidden}.stat .label{font-size:.875rem;color:#76839a;display:flex;align-items:center;justify-content:space-between}.stat .label .icon{color:#9aa8c1}.stat .number{font-size:2.1rem;font-weight:650;letter-spacing:-1px;margin:12px 0 7px;line-height:1.2}.stat .foot{font-size:.75rem;color:#93a0b3}.stat.attention .number{color:#d88a20}.stat.expired .number{color:#d15a64}.panel{border:1px solid var(--line);background:white;border-radius:13px;overflow:hidden}.panel-head{padding:20px 22px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px}.panel h2{font-size:1rem;margin:0;display:flex;align-items:center;gap:9px}.panel-head .count{background:#edf2ff;border-radius:6px;color:#5575cb;padding:3px 8px;font-size:.75rem;font-weight:500}.filters{padding:18px 22px;display:flex;gap:10px;flex-wrap:wrap}.search{position:relative;flex:1;min-width:200px}.search .icon{position:absolute;left:12px;top:12px;color:#8d9ab0}.search input{padding-left:40px;width:100%}input,select,textarea{border:1px solid #dce3ed;border-radius:8px;padding:11px 12px;background:#fff;color:#24324b;font-size:.875rem;min-width:0}input:focus,select:focus,textarea:focus{border-color:#678af7;outline:3px solid #ebf0ff}textarea{resize:vertical;line-height:1.65}input::placeholder,textarea::placeholder{color:#9ba6b8}select{cursor:pointer;min-height:42px}.segments{display:flex;gap:7px;padding:0 22px 17px;overflow:auto}.segments button{padding:7px 13px;border:0;white-space:nowrap;color:#7f8ba1;font-weight:500;background:#f6f8fb}.segments button.active{background:#eaf0ff;color:#365dd0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:.875rem}thead{background:#f8fafc;color:#8a95a8}th{font-weight:500;padding:13px 17px;white-space:nowrap;border-block:1px solid var(--line)}td{padding:18px 17px;border-bottom:1px solid #eef1f6;vertical-align:middle}th:first-child,td:first-child{padding-left:23px}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfcff}.person{display:flex;gap:11px;align-items:center}.person .avatar{width:34px;height:34px;border-radius:9px;background:#eef3fb;font-size:.875rem}.person-name{font-weight:600;white-space:nowrap;max-width:170px;overflow:hidden;text-overflow:ellipsis}.person small,.stack small{display:block;color:#8c99ad;font-size:.75rem;margin-top:5px}.stack{white-space:nowrap}.account{max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#75839a;margin-top:6px;font-size:.8125rem}.tag{display:inline-flex;padding:4px 8px;border-radius:6px;font-size:.75rem;line-height:1.4;white-space:nowrap;background:#eef2f8;color:#6e7d95}.tag.blue{color:#5574d2;background:#edf2ff}.tag.amber{color:#b77b20;background:#fff5e5}.tag.red{color:#cc5965;background:#fff0f2}.tag.green{color:#2c9576;background:#eaf8f2}.table-actions{display:flex;gap:5px;white-space:nowrap}.table-actions button{padding:6px 9px;color:#426bdd;background:#f0f4ff;border:0;font-size:.8125rem}.table-actions button.secondary{color:#8190a7;background:none}.table-footer{padding:14px 23px;background:#fff;border-top:1px solid var(--line);display:flex;justify-content:space-between;color:#93a0b3;font-size:.75rem}.empty{padding:62px 24px;text-align:center;color:var(--muted)}.empty .empty-icon{margin:0 auto 18px;background:#eef3ff;color:#7092e9;border-radius:20px;width:66px;height:66px;display:grid;place-items:center}.empty .icon{width:30px;height:30px}.empty h3{color:#334460;font-size:1.05rem;margin:0 0 10px}.empty p{font-size:.875rem;line-height:1.8;margin:0 auto 20px;max-width:400px}.notice{border:1px solid #dfe8fc;background:#f0f5ff;color:#5f77a9;border-radius:10px;padding:14px 17px;font-size:.875rem;line-height:1.7;margin-top:20px;display:flex;gap:10px}.notice.warn{background:#fff8eb;border-color:#f3e4c6;color:#ac8035}.notice .icon{margin-top:2px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.customer-card{padding:22px;border:1px solid var(--line);background:#fff;border-radius:12px}.customer-card .person{margin-bottom:22px}.customer-card p{font-size:.875rem;color:#73819a;line-height:1.7;overflow-wrap:anywhere}.customer-card .actions{margin-top:18px;justify-content:space-between}.settings-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:22px}.settings-card{background:white;border:1px solid var(--line);border-radius:13px;padding:25px;margin-bottom:22px}.settings-card h2{font-size:1rem;margin:0 0 6px}.settings-card>p{font-size:.875rem;color:var(--muted);line-height:1.8;margin:0 0 23px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field{display:flex;flex-direction:column;gap:8px;min-width:0}.field label{font-size:.875rem;font-weight:500;color:#586780}.field small{font-size:.75rem;color:#8c99ad;line-height:1.6}.full{grid-column:1/-1}.check{display:flex;align-items:center;gap:9px;font-size:.875rem;margin:18px 0;color:#53647f}.check input{width:17px;height:17px;accent-color:var(--blue)}.divider{height:1px;background:var(--line);margin:22px 0}.backup-actions{display:grid;gap:12px}.backup-actions a{display:block;text-align:center;background:#f3f6fc;padding:11px;border-radius:8px;font-size:.875rem;font-weight:600}.auth-screen{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr;background:#fff}.auth-brand{background:#111d35;color:#fff;display:flex;flex-direction:column;justify-content:center;padding:12%;position:relative}.auth-brand .brand{margin-bottom:72px}.auth-brand h1{font-size:2.5rem;line-height:1.4;margin:0 0 20px;letter-spacing:-1px}.auth-brand p{color:#9cacc8;line-height:1.9;max-width:340px}.auth-brand .auth-meta{margin-top:50px;color:#6784bc;letter-spacing:2px;font-size:.75rem}.auth-form-wrap{display:flex;align-items:center;justify-content:center;padding:40px}.auth-form{width:100%;max-width:360px}.auth-form h2{font-size:1.65rem;margin:0 0 12px}.auth-form>p{color:var(--muted);font-size:.875rem;line-height:1.8;margin-bottom:30px}.auth-form .field{margin-bottom:20px}.auth-form button{width:100%;margin-top:7px;padding:13px}.auth-foot{font-size:.75rem;color:#a4adbd;line-height:1.8;margin-top:30px}.form-error{color:#cc5060;background:#fff1f3;padding:12px;border-radius:8px;margin-bottom:15px;font-size:.875rem}.form-error:empty{display:none}dialog{border:0;border-radius:16px;padding:0;width:min(740px,calc(100% - 32px));max-height:90dvh;box-shadow:0 30px 100px #0d1a3a3a;color:#24334d}dialog::backdrop{background:#101b3980;backdrop-filter:blur(3px)}.modal-head{padding:23px 26px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;background:white;position:sticky;top:0;z-index:2}.modal-head h2{margin:0;font-size:1.15rem}.modal-head p{font-size:.8125rem;color:var(--muted);margin:7px 0 0}.modal-head .ghost{font-size:1.4rem;padding:3px 10px;color:#8290a5}.modal-body{padding:24px 26px}.modal-foot{padding:18px 26px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px;background:#fafbfd;position:sticky;bottom:0;z-index:2}.paste-box{padding:16px;background:#f6f8fd;border:1px solid #e6ecf7;border-radius:10px;margin-bottom:22px}.paste-box summary{font-size:.875rem;font-weight:600;cursor:pointer;color:#5272c6}.paste-box textarea{width:100%;margin:13px 0 8px;background:white;font-size:.8125rem}.paste-box .actions{justify-content:space-between}.paste-box small{color:var(--muted);font-size:.75rem}.renew-summary{background:#eff4ff;border-radius:12px;display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:20px;margin-top:20px}.renew-summary small{display:block;color:#7a8cb0;font-size:.75rem;margin-bottom:9px}.renew-summary strong{font-size:1.05rem;font-weight:600}.renew-summary .new{color:var(--blue)}.detail-top{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:23px}.detail-top h3{font-size:1.25rem;margin:0 0 8px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;background:#f8fafd;border-radius:10px;padding:20px}.detail-grid small{display:block;color:#8896ac;font-size:.75rem;margin-bottom:7px}.detail-grid span{font-size:.875rem;overflow-wrap:anywhere}.history{list-style:none;padding:0;margin:20px 0 0}.history li{border-left:2px solid #e6ecf7;padding:0 0 23px 17px;font-size:.875rem}.history li small{display:block;color:#94a0b3;margin-top:6px;font-size:.75rem}.history li p{font-size:.8125rem;color:#7788a1;line-height:1.7;margin:7px 0 0}.preview-table{max-height:260px;overflow:auto;margin-top:18px;border:1px solid var(--line);border-radius:8px}.preview-table td,.preview-table th{padding:10px;font-size:.8125rem}.toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,20px);background:#1c2e4d;color:white;border-radius:10px;padding:13px 22px;box-shadow:0 8px 30px #1d2b4d26;z-index:100;opacity:0;pointer-events:none;transition:.2s;max-width:90vw;font-size:.875rem}.toast.show{opacity:1;transform:translate(-50%,0)}.toast.error{background:#a9394d}.link-button{color:var(--blue);padding:0;border:0;background:none;font-weight:500}.pagination{display:flex;gap:8px;align-items:center}.pagination button{padding:4px 9px;font-size:.75rem}.wrap{white-space:normal;overflow-wrap:anywhere}.danger-note{font-size:.875rem;line-height:1.8;color:#ac4c59}.mobile-brand{display:none}.inline{display:flex;gap:8px}.inline>*{flex:1;min-width:0}
.modal-body>.actions{margin-top:18px}
.recharge-box{padding:17px 18px;border:1px solid #dbe5fc;border-radius:11px;background:#f6f9ff;gap:8px}.recharge-box .check{margin:0;font-weight:600;color:#2f4c83;flex-direction:row}.recharge-box>p{font-size:.8125rem;line-height:1.7;color:#7888a3;margin:0}.recharge-box [hidden]{display:none}.recharge-box .field{margin-top:14px}.recharge-box input[type="datetime-local"]{width:100%;max-width:340px}.recharge-caption{font-size:.8125rem;font-weight:600;color:#526d9d;margin-top:17px}.recharge-schedule{list-style:none;padding:0;margin:8px 0 12px;border:1px solid #e1e8f5;border-radius:8px;background:#fff;max-height:255px;overflow:auto}.recharge-schedule li{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px 12px;padding:10px 12px;border-bottom:1px solid #eef2f9;font-size:.8125rem;line-height:1.5}.recharge-schedule li:last-child{border-bottom:0}.recharge-schedule time{font-variant-numeric:tabular-nums}.recharge-schedule span{color:#4f71c1}.recharge-schedule .expiry span{color:#bf7934}.recharge-box #recharge-preview>p{font-size:.75rem;line-height:1.75;margin:10px 0 0}.stack small.recharge-next{color:#5678bf;font-size:.75rem;margin-top:7px;white-space:normal}
.flat-choice{border:0;padding:0;margin:0;display:block;min-inline-size:0}.flat-choice legend{font-size:.875rem;font-weight:500;color:#586780;padding:0;margin-bottom:11px}.choice-options{display:flex;flex-wrap:wrap;gap:10px}.field .choice-chip{position:relative;display:inline-flex;cursor:pointer;max-width:100%;font-weight:500}.choice-chip input{position:absolute;opacity:0;width:1px;height:1px;margin:0;padding:0;border:0;min-height:0;min-width:0}.choice-chip span{display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 17px;background:#fff;border:1px solid #dce3ed;border-radius:9px;color:#5b6a84;font-size:.875rem;line-height:1.5;overflow-wrap:anywhere;transition:background .15s,border-color .15s,color .15s}.choice-chip:hover span{border-color:#91a9f5;background:#f7f9ff}.choice-chip input:checked+span{color:#2e58d5;background:#edf2ff;border-color:#5e82f2;box-shadow:inset 0 0 0 1px #5e82f2;font-weight:600}.choice-chip input:focus-visible+span{outline:3px solid #c6d5ff;outline-offset:3px}
@media(min-width:1600px){.sidebar{width:250px}.workspace{margin-left:250px}.main{padding:40px 44px}.topbar{padding:0 44px}}
@media(max-width:1150px){.sidebar{width:190px;padding:27px 14px}.workspace{margin-left:190px}.main{padding:27px 22px}.topbar{padding:0 22px}.stats{gap:12px}.stat{padding:18px}.cards{grid-template-columns:repeat(2,1fr)}.settings-grid{grid-template-columns:1fr}.topmeta .date-label{display:none}}
@media(max-width:760px){.sidebar{inset:auto 0 0;width:auto;height:72px;padding:6px 10px;background:#fff;border-top:1px solid var(--line)}.sidebar .brand,.nav-label,.sidebar-bottom{display:none}.nav{display:flex;gap:0;height:100%}.nav button{flex:1;flex-direction:column;gap:5px;justify-content:center;padding:5px 2px;font-size:.75rem;color:#8290a6;border-radius:7px}.nav button.active{background:#eef3ff;color:var(--blue);box-shadow:none}.nav button:hover{background:#f2f5fc;color:var(--blue)}.workspace{margin-left:0;padding-bottom:72px}.topbar{height:61px;padding:0 18px}.crumb{gap:6px}.topmeta{font-size:.75rem;gap:8px}.main{padding:22px 16px}.title-row{align-items:flex-start;flex-direction:column;gap:18px}.title-row h1{font-size:1.5rem}.title-row .actions{width:100%;justify-content:flex-end}.stats{grid-template-columns:repeat(2,1fr);gap:11px;margin-bottom:20px}.stat{padding:16px}.stat .number{font-size:1.85rem;margin:8px 0}.stat .foot{font-size:.75rem}.panel-head{padding:17px}.filters{padding:14px;gap:8px}.filters .search{flex-basis:100%}.filters select{flex:1;max-width:50%}.segments{padding:0 14px 14px}.cards{grid-template-columns:1fr}.fields{gap:15px}.settings-card{padding:20px}.auth-screen{grid-template-columns:1fr}.auth-brand{padding:27px}.auth-brand .brand{margin:0}.auth-brand h1,.auth-brand p,.auth-meta{display:none}.auth-form-wrap{padding:30px 24px 60px;align-items:flex-start}.auth-screen{display:flex;flex-direction:column}.modal-body{padding:20px}.modal-head{padding:18px 20px}.modal-foot{padding:16px 20px}.fields .field{grid-column:1/-1}.renew-summary{grid-template-columns:1fr;gap:19px}.detail-grid{grid-template-columns:1fr}.detail-top{align-items:flex-start;flex-direction:column}.notice{font-size:.8125rem}.table-footer{padding:13px;font-size:.75rem;gap:10px}.toast{bottom:85px}.panel-head .actions{gap:4px}.panel-head button{padding:7px 9px}}
@media(max-width:760px){.member-table,.member-table tbody{display:block}.member-table thead{display:none}.member-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 10px;padding:20px 17px;border-top:1px solid var(--line)}.member-table td{display:block;border:0;padding:0!important;min-width:0;white-space:normal}.member-table td:nth-child(2),.member-table td:nth-child(5){text-align:right}.member-table td:nth-child(3){grid-column:1/-1}.member-table td:nth-child(4):before{content:'到期时间';display:block;color:#8492a7;font-size:.75rem;margin-bottom:6px}.member-table td:nth-child(5){align-self:center}.member-table td:nth-child(6){align-self:center}.member-table .table-actions{justify-content:flex-end}.member-table .table-actions button{font-size:.875rem;padding:9px 14px}.member-table .account{max-width:100%;font-size:.875rem}.member-table .tag{font-size:.8125rem}.member-table .person-name{max-width:200px}.table-footer{flex-direction:column;align-items:center;gap:13px}.topbar{padding:0 12px}.topmeta{gap:3px}.topmeta .ghost{padding:6px}}
