:root{--bg:#f4f6f5;--paper:#fff;--ink:#183333;--muted:#82908d;--line:#e5ece8;--green:#24645a;--mint:#dff1df;--dark:#122b2d;--danger:#bc5251;--radius:18px;--shadow:0 6px 26px #133b3c05;font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--ink);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);font-size:14px;line-height:1.6}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible{outline:3px solid #72bfa5;outline-offset:3px}input:focus,textarea:focus,select:focus{outline:none;border-color:#73a89a;box-shadow:0 0 0 3px #2a6e5a12}svg{width:20px;height:20px;vertical-align:middle;flex-shrink:0;stroke-width:1.7}h1,h2,h3,p{margin:0}h1{font-size:28px;letter-spacing:-1px;line-height:1.3}h2{font-size:17px;letter-spacing:-.4px}h3{font-size:15px}button{border:0}input,select,textarea{width:100%;border:1px solid #dce5df;border-radius:10px;padding:11px 13px;color:var(--ink);background:#fff;min-width:0}textarea{resize:vertical;min-height:96px}label{display:block;font-size:12px;font-weight:600;color:#5d716b;margin-bottom:6px}.field{margin-bottom:18px}.hint{color:var(--muted);font-size:12px;line-height:1.8}.muted{color:var(--muted)}.mono{font-family:Consolas,monospace;font-size:12px}.app{display:flex;min-height:100vh}.sidebar{width:244px;flex-shrink:0;background:var(--dark);color:#b0c2bd;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;padding:29px 19px 17px;z-index:20}.brand{display:flex;align-items:center;gap:11px;padding:0 12px 29px;color:#fff}.brand img{width:40px;height:40px}.brand strong{font-size:19px;letter-spacing:1px}.brand small{display:block;color:#809e97;letter-spacing:2.5px;font-size:9px}.nav-label{font-size:10px;letter-spacing:2px;color:#688984;padding:15px 14px 10px}.nav{display:flex;flex-direction:column;gap:5px}.nav button{background:none;color:#9eb7b0;display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:10px;text-align:left;font-size:13px;transition:background .18s,color .18s}.nav button:hover{background:#ffffff08;color:#e9f4ef}.nav button.active{background:#d6eed8;color:#193d35;font-weight:650}.nav button .count{margin-left:auto;font-size:10px;padding:1px 6px;background:#ffffff18;border-radius:5px}.nav button.active .count{background:#bddac1}.sidebar-bottom{margin-top:auto}.side-note{border:1px solid #35534d;border-radius:13px;padding:15px;margin:27px 8px 21px;background:linear-gradient(135deg,#29463c,#1a3435)}.side-note p{font-size:12px;color:#c7d9cd;margin:8px 0 5px}.side-note small{font-size:10px;color:#86a69b}.side-note svg{color:#b9d7a9}.profile-button{display:flex;align-items:center;gap:10px;background:none;color:#d3e2dc;width:100%;padding:13px 8px;border-top:1px solid #284642;text-align:left}.profile-button strong{font-size:12px;display:block}.profile-button small{font-size:10px;color:#87a29a}.profile-button>svg{margin-left:auto}.avatar{display:flex;align-items:center;justify-content:center;background:#ecf3ee;color:#496b59;border-radius:50%;font-size:17px;font-weight:600;width:43px;height:43px;flex-shrink:0;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}.profile-button .avatar{width:35px;height:35px;background:#3a5b4e;color:#d5e8d6;font-size:13px}.shell{margin-left:244px;width:calc(100% - 244px);min-width:0}.topbar{height:78px;padding:0 37px;background:#ffffffb5;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px}.breadcrumb{font-size:12px;color:#a0ada6;display:flex;align-items:center;gap:11px}.breadcrumb strong{font-weight:500;color:#4a645a}.top-actions{display:flex;align-items:center;gap:15px;font-size:11px;color:#7a8e83}.service-dot{width:6px;height:6px;display:inline-block;border-radius:50%;background:#55a87a;margin-right:7px}.icon-btn{width:35px;height:35px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:9px;color:#738c7b;background:#fff}.mobile-toggle{display:none}.content{padding:34px 37px 42px;max-width:1600px;margin:auto}.page-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:26px}.eyebrow{font-size:10px;text-transform:uppercase;color:#8b9e91;letter-spacing:2px;margin-bottom:7px}.subtitle{color:#8a9b91;font-size:12px;margin-top:9px}.buttons{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.btn{display:inline-flex;gap:8px;align-items:center;justify-content:center;background:#fff;border:1px solid #dce6df;color:#536e60;border-radius:9px;font-size:12px;padding:10px 15px;font-weight:600;transition:transform .15s,background .15s;white-space:nowrap}.btn:hover{background:#f1f7f2}.btn:active{transform:translateY(1px)}.btn svg{width:16px;height:16px}.btn.primary{background:#255e50;color:#fff;border-color:#255e50;box-shadow:0 4px 10px #255e5010}.btn.primary:hover{background:#174b3e}.btn.danger{color:#b55251;background:#fff5f3;border-color:#f4e1dc}.btn.small{font-size:11px;padding:6px 10px}.btn.text{border:0;background:none;padding:5px 8px}.welcome{display:grid;grid-template-columns:1.7fr 1fr;gap:20px;margin-bottom:23px}.hero{background:#e5eee3;min-height:172px;border:1px solid #dbe6d9;border-radius:var(--radius);padding:29px 28px;position:relative;overflow:hidden;display:flex;align-items:center}.hero-copy{position:relative;z-index:1;max-width:78%}.hero .pill{font-size:10px;background:#ffffff8c;color:#53794e;border-radius:20px;padding:4px 9px;display:inline-flex;gap:6px;align-items:center;margin-bottom:10px}.hero h2{font-size:24px;line-height:1.6;letter-spacing:-.8px}.hero p{color:#74906d;font-size:12px;margin-top:7px}.moon-art{position:absolute;right:8px;top:5px;width:185px;height:175px;opacity:.7}.moon-art svg{width:100%;height:100%;stroke-width:1}.summary{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;position:relative;display:flex;align-items:center;gap:24px}.ring{width:89px;height:89px;border-radius:50%;background:conic-gradient(#61966d calc(var(--percent)*1%),#eff4ed 0);display:flex;align-items:center;justify-content:center;flex-shrink:0}.ring>div{width:73px;height:73px;background:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column}.ring strong{font-size:22px;line-height:1.3}.ring small{font-size:9px;color:#9aa993}.summary h3{font-size:13px;margin-bottom:5px}.summary .legend{font-size:10px;color:#9aaa99;margin-top:13px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:27px}.stat{border:1px solid var(--line);border-radius:14px;padding:20px 21px;background:#fff;position:relative}.stat-label{display:flex;justify-content:space-between;align-items:center;color:#8a9b91;font-size:11px}.stat-label svg{color:#809a89;width:17px;height:17px}.stat strong{font-size:30px;font-weight:650;letter-spacing:-1px;display:block;margin:7px 0 4px;line-height:1.3;font-variant-numeric:tabular-nums}.stat small{color:#a1afa5;font-size:10px}.stat small .good{color:#538763}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}.card-head{padding:21px 24px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #edf1eb}.card-head h2{font-size:15px}.card-body{padding:23px 24px}.toolbar{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:18px 24px;border-bottom:1px solid #edf1eb;flex-wrap:wrap}.filters{display:flex;gap:5px;flex-wrap:wrap}.filter-btn{background:none;color:#8b9b90;border-radius:7px;font-size:11px;padding:7px 12px}.filter-btn.active{background:#edf5eb;color:#527852;font-weight:600}.search{position:relative;width:250px;max-width:100%}.search svg{position:absolute;left:12px;top:11px;width:15px;height:15px;color:#91a591}.search input{font-size:11px;padding:10px 12px 10px 35px;background:#fafcf9;border-color:#e9eee6;border-radius:8px}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:12px}.table th{font-size:10px;font-weight:500;letter-spacing:.2px;color:#96a58f;background:#fafcf9;padding:13px 24px;text-align:left;border-bottom:1px solid #edf1eb}.table td{padding:18px 24px;border-bottom:1px solid #eff3ed;color:#69806a}.table tr:last-child td{border-bottom:0}.table tbody tr:hover{background:#fbfdfa}.account-cell{display:flex;align-items:center;gap:11px}.account-cell strong{font-size:12px;color:#324d3e;display:block}.account-cell small{font-size:10px;color:#97a890;display:block;margin-top:2px}.badge{font-size:10px;padding:4px 9px;border-radius:5px;display:inline-flex;align-items:center;gap:6px;background:#f0f3ed;color:#8a9e83}.badge i{width:5px;height:5px;border-radius:50%;background:currentColor}.badge.valid{background:#eef6eb;color:#628650}.badge.expired{background:#fff1ed;color:#bd7f6c}.badge.unknown{background:#f6f2e8;color:#aa9367}.badge.admin{background:#edf2f6;color:#6a87a2}.table-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #edf1eb;padding:14px 24px;color:#a1ad9a;font-size:10px;gap:10px}.pager{display:flex;gap:6px;align-items:center}.pager button{border:1px solid #e9eee5;background:#fff;color:#738b6d;border-radius:6px;min-width:27px;height:27px;font-size:10px}.pager button.active{background:#eef4e9}.empty{padding:55px 20px;text-align:center;color:#96a48d}.empty svg{width:38px;height:38px;color:#b4c2a9;margin-bottom:15px}.empty h3{font-size:14px;color:#67835e;margin-bottom:6px}.empty p{font-size:11px;margin-bottom:17px}.dashboard-bottom{display:grid;grid-template-columns:1.5fr 1fr;gap:21px;margin-top:22px}.activity-list{display:flex;flex-direction:column}.activity{padding:14px 0;display:flex;align-items:center;gap:12px;border-bottom:1px solid #edf1eb}.activity:last-child{border:0}.activity-symbol{width:32px;height:32px;border-radius:9px;display:flex;align-items:center;justify-content:center;background:#f1f6ec;color:#7c9b69;flex-shrink:0}.activity-symbol svg{width:15px;height:15px}.activity strong{font-weight:500;font-size:11px;display:block}.activity small{font-size:10px;color:#a3b097;display:block}.activity time{margin-left:auto;font-size:10px;color:#a4b09a;white-space:nowrap}.quick-link{display:flex;align-items:center;gap:12px;padding:12px 0;width:100%;border-bottom:1px solid #edf1eb;background:none;text-align:left;color:#526d48}.quick-link:last-child{border:0}.quick-link>svg:last-child{margin-left:auto;width:15px;color:#b2bda7}.quick-link strong{display:block;font-size:12px;font-weight:500}.quick-link small{display:block;font-size:10px;color:#a4b095;margin-top:2px}.quick-icon{height:36px;width:36px;border-radius:10px;background:#f0f5eb;display:flex;align-items:center;justify-content:center;color:#779b65}.quick-icon svg{width:18px;height:18px}.footer{padding:24px 2px 0;color:#b2bdaa;font-size:9px;letter-spacing:1px;display:flex;justify-content:space-between;gap:15px}.announcement{margin-bottom:18px;border:1px solid #dce8d8;background:#eff7ec;color:#6f8d60;border-radius:10px;padding:12px 15px;font-size:12px;display:flex;gap:10px;align-items:flex-start}.room-layout{display:grid;grid-template-columns:310px 1fr;gap:21px}.room-options{display:grid;gap:17px}.room-options .buttons .btn{flex:1}.seats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.seat{border:1px solid #e3eadf;border-radius:13px;padding:16px 8px;text-align:center;background:#fbfdfa}.seat .avatar{margin:7px auto 10px}.seat strong{font-size:11px;display:block}.seat small{font-size:10px;color:#97a78b}.seat .buttons{justify-content:center;margin-top:12px}.room-result{font-size:11px;white-space:pre-wrap;padding:14px;border-radius:10px;background:#f3f6f0;color:#749264;max-height:210px;overflow:auto;margin-top:15px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.form-grid .field{margin:0}.form-grid .full{grid-column:1/-1}.form-actions{padding-top:23px;border-top:1px solid var(--line);margin-top:22px;display:flex;justify-content:flex-end;gap:9px}.split{display:grid;grid-template-columns:1fr 1fr;gap:22px}.checkbox{display:flex;align-items:center;gap:9px;font-size:11px;color:#78906c;font-weight:400}.checkbox input{width:15px;height:15px;box-shadow:none;accent-color:#507b4b}.auth-layout{display:grid;grid-template-columns:1fr 420px;gap:40px;max-width:1000px;margin:58px auto;align-items:center}.auth-intro{padding:35px 0}.auth-intro h1{font-size:43px;line-height:1.5;letter-spacing:-2px;margin:17px 0}.auth-intro p{color:#859a7f;font-size:12px;max-width:330px;line-height:2}.auth-intro .moon-art{position:relative;width:180px;height:120px;right:auto;top:auto;margin-top:26px}.auth-card{padding:32px}.auth-card h2{font-size:21px}.auth-card .subtitle{margin-bottom:24px}.auth-card .btn{width:100%;padding:12px}.auth-switch{display:flex;border-bottom:1px solid var(--line);gap:25px;margin-bottom:24px}.auth-switch button{padding:0 0 12px;background:none;color:#9aaa90;font-size:12px;border-bottom:2px solid transparent}.auth-switch button.active{border-color:#537747;color:#425c38}.error-text{font-size:12px;color:#b76756;margin-top:14px;min-height:18px}.loading{padding:90px 20px;text-align:center;color:#9aaa90}.spinner{display:inline-block;width:18px;height:18px;border:2px solid #d8e5d0;border-top-color:#69915d;border-radius:50%;animation:spin .75s linear infinite;vertical-align:middle;margin-right:9px}@keyframes spin{to{transform:rotate(360deg)}}dialog{border:0;border-radius:20px;padding:0;max-width:620px;width:calc(100% - 36px);max-height:90vh;box-shadow:0 30px 100px #17352133;color:var(--ink)}dialog::backdrop{background:#142e2bbb;backdrop-filter:blur(4px)}.modal-head{padding:21px 25px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff;z-index:2}.modal-body{padding:24px 25px}.modal-tabs{display:flex;background:#f4f7f0;padding:4px;border-radius:9px;gap:3px;margin-bottom:23px}.modal-tabs button{flex:1;background:none;color:#99a78d;font-size:11px;padding:9px;border-radius:7px}.modal-tabs button.active{background:#fff;box-shadow:0 1px 5px #2645220c;color:#5d7b4b}.kv{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:20px}.kv>div{padding:13px;background:#f6f9f2;border-radius:9px;min-width:0;overflow-wrap:anywhere}.kv small{display:block;color:#97a98b;font-size:10px}.kv strong{font-size:12px;font-weight:500}.toast-region{position:fixed;bottom:25px;right:25px;z-index:90;display:flex;flex-direction:column;gap:9px;max-width:calc(100% - 40px)}.toast{padding:13px 18px;background:#fff;border:1px solid #dae5d2;border-left:3px solid #7d9d65;box-shadow:0 9px 30px #25451c12;border-radius:10px;font-size:12px;animation:appear .2s}.toast.error{border-left-color:#c88470}.toast.success{border-left-color:#6aa47b}@keyframes appear{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}.notice{font-size:11px;color:#859b75;border-radius:10px;padding:14px;background:#f4f8ee;border:1px solid #e2ebd9;margin-bottom:20px}.inline-form{display:flex;gap:10px;align-items:end}.inline-form .field{flex:1;margin:0}.inline-form .btn{height:43px}.table .row-actions{display:flex;gap:3px;align-items:center}.row-actions .btn{font-weight:500}.grid-view{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;padding:22px}.account-card{border:1px solid var(--line);border-radius:13px;padding:20px}.account-card .account-cell{margin-bottom:20px}.account-card .meta{display:flex;justify-content:space-between;color:#99a68d;font-size:10px;margin:14px 0}.account-card .buttons{border-top:1px solid var(--line);padding-top:15px;flex-wrap:wrap}.account-card p{font-size:11px;min-height:18px;color:#869976}.view-toggle{display:flex;gap:2px}.view-toggle button.active{background:#eef5e9;color:#507244}.auth-footer{display:flex;justify-content:space-between;margin-top:23px;color:#93a488;font-size:10px}.auth-footer a:hover{color:#355d34}.auth-card form{margin:0}.status-message{color:#8da17e;font-size:11px;margin-top:15px}.hide{display:none!important}
@media(min-width:1600px){.content{padding-top:45px}.hero{min-height:190px}}@media(max-width:1200px){.sidebar{width:213px;padding-left:14px;padding-right:14px}.shell{margin-left:213px;width:calc(100% - 213px)}.content{padding:28px 25px}.topbar{padding:0 25px}.welcome{grid-template-columns:1.5fr 1fr}.hero-copy{max-width:85%}.moon-art{opacity:.35}.summary{gap:14px;padding:20px}.table th,.table td{padding-left:19px;padding-right:19px}.grid-view{grid-template-columns:repeat(2,1fr)}.auth-layout{grid-template-columns:1fr 380px;gap:25px}.auth-intro h1{font-size:34px}.room-layout{grid-template-columns:270px 1fr}.seats{grid-template-columns:repeat(3,1fr)}}@media(max-width:950px){.welcome{grid-template-columns:1fr}.summary{display:none}.stats{gap:10px}.stat{padding:16px}.stat strong{font-size:25px}.dashboard-bottom{grid-template-columns:1fr}.auth-layout{grid-template-columns:1fr;max-width:440px;margin:20px auto}.auth-intro{display:none}.room-layout{grid-template-columns:1fr}.split{grid-template-columns:1fr}.hero-copy{max-width:80%}.moon-art{opacity:.6}}@media(max-width:720px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:240px;box-shadow:20px 0 70px #14322522}.sidebar.open{transform:translateX(0)}.shell{margin-left:0;width:100%}.topbar{height:63px;padding:0 18px}.mobile-toggle{display:flex}.top-actions .today{display:none}.breadcrumb{gap:8px;font-size:10px}.content{padding:23px 18px}.page-head{align-items:flex-start;gap:10px}.page-head h1{font-size:24px}.page-head .buttons .btn{font-size:10px;padding:8px 10px}.page-head .subtitle{max-width:230px}.stats{grid-template-columns:repeat(2,1fr);gap:12px}.stat strong{font-size:27px}.hero{min-height:150px;padding:22px}.hero h2{font-size:21px}.hero p{max-width:210px;line-height:1.9}.moon-art{width:140px;height:145px;opacity:.4;right:0;top:5px}.card-head{padding:18px}.card-body{padding:19px}.toolbar{padding:15px;gap:12px}.search{width:100%}.toolbar .filters{width:100%}.filter-btn{padding:6px 9px}.table-footer{padding:14px 16px}.grid-view{grid-template-columns:1fr;padding:15px}.table th,.table td{padding-left:17px;padding-right:17px}.auth-card{padding:27px 23px}.auth-layout{margin:15px auto}.seats{grid-template-columns:repeat(3,1fr)}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.inline-form{flex-wrap:wrap}.inline-form .field{min-width:120px}.footer span:last-child{display:none}.buttons{gap:7px}.modal-body{padding:22px}.modal-head{padding:18px 22px}.kv{gap:9px}.toast-region{bottom:16px;right:16px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.brand>div{min-width:0}.brand strong{display:block;max-width:160px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ===== 房间监控 / 运行日志 (2026-10-11) ===== */
.chat-stream{display:flex;flex-direction:column;gap:6px;max-height:520px;overflow-y:auto;padding-right:6px}
.chat-row{display:grid;grid-template-columns:58px 1fr;gap:10px;align-items:baseline;padding:7px 10px;border-radius:10px;background:#f7faf8}
.chat-row.sys{background:#f1f5f2}
.chat-row time{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.chat-row strong{color:var(--green);margin-right:7px;font-size:12.5px}
.chat-row span{color:var(--ink);font-size:13px;word-break:break-word}
.chat-row.sys strong{color:#a1866a}
.rank{display:flex;flex-direction:column;gap:9px}
.rank-row{display:grid;grid-template-columns:22px 92px 1fr 34px;gap:9px;align-items:center}
.rank-no{width:22px;height:22px;border-radius:50%;background:var(--mint);color:var(--green);display:grid;place-items:center;font-size:11px;font-weight:600}
.rank-row strong{font-size:12.5px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rank-bar{height:7px;border-radius:4px;background:#eef3f0;overflow:hidden}
.rank-bar i{display:block;height:100%;background:linear-gradient(90deg,#8ec5a8,#24645a);border-radius:4px}
.rank-count{text-align:right;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.log-stream{display:flex;flex-direction:column;gap:1px;max-height:560px;overflow-y:auto;font-family:"Cascadia Code","Consolas",monospace}
.log-row{display:grid;grid-template-columns:132px 48px 1fr;gap:10px;padding:5px 9px;border-radius:7px;font-size:12px;line-height:1.5;align-items:baseline}
.log-row:nth-child(odd){background:#f8fbf9}
.log-row.error{background:#fdf1f0}
.log-row.warn{background:#fdf8ee}
.log-row time{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.log-tag{text-align:center;border-radius:5px;font-size:10.5px;padding:1px 0;background:#eef3f0;color:var(--muted)}
.log-tag.success{background:var(--mint);color:var(--green)}
.log-tag.error{background:#f7dedd;color:var(--danger)}
.log-tag.warn{background:#f7ecd6;color:#a1866a}
.log-text{color:var(--ink);word-break:break-word;white-space:pre-wrap}
.seat .badge + .avatar{margin-top:8px}

/* ===== QQ 扫码登录 (添加账号弹窗) ===== */
.qq-scan{text-align:center}
.qq-box{width:200px;height:200px;margin:0 auto;border:1px solid #e6ebf4;border-radius:12px;
        display:flex;align-items:center;justify-content:center;background:#fff;overflow:hidden}
.qq-box img{width:100%;height:100%;display:block}
.qq-box .ph{color:#b3bece;font-size:13px}
.qq-cd{font-size:12px;color:#a8b3c5;margin-top:10px;min-height:16px}
.qq-cd b{color:#4a6cf7;font-weight:600}
.qq-st{font-size:13px;color:#4a6cf7;margin-top:8px;min-height:20px;font-weight:500}
.qq-st.err{color:#d92c2c}
.qq-st .dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#4a6cf7;
            margin-right:6px;animation:qqp 1.2s infinite}
@keyframes qqp{0%,100%{opacity:.25}50%{opacity:1}}

/* 房间工作台: 非主持提示 */
.host-notice{background:#fff8e6;color:#a1866a;border:1px solid #f0e4c8;border-radius:10px;
             padding:10px 14px;font-size:12.5px;margin-bottom:14px;text-align:center}

/* 卡密到期标红 */
.badge.badge-red{background:#f7dedd;color:#d92c2c;font-weight:600}

/* 我的卡密 列表项 */
.card-item{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px dashed #eef2f9}
.card-item:last-child{border-bottom:none}
.card-item code{font-family:ui-monospace,Consolas,monospace;font-size:13px;color:#1a2233;background:#f4f7fd;padding:3px 8px;border-radius:6px}
.card-item .hint{flex:1;font-size:12px}

/* 管理端: 账号按用户分组 */
.owner-group{margin-bottom:20px}
.owner-group:last-child{margin-bottom:6px}
.owner-head{display:flex;align-items:center;gap:10px;padding:4px 2px 10px}
.owner-head strong{font-size:14px;color:#1a2233}
.owner-head .badge{background:#eef4ff;color:#3b6cd4;font-weight:600}
.owner-group .table-wrap{border:1px solid #eef2f9;border-radius:10px;overflow:hidden}

/* 钻石表: 代理行金色高亮 */
.diamond-table .agent-row{background:linear-gradient(90deg,#fff8e8,#fffdf5)}
.diamond-table .agent-row td{border-top:1px solid #f2d9a0;border-bottom:1px solid #f2d9a0}
.diamond-table .agent-row strong{color:#b07d10;font-weight:700}
.diamond-table .agent-row small{color:#b08c3a}
.diamond-table .agent-row b{color:#b07d10}

/* ===== 未登录: 独立登录页(隐藏工作台框架) ===== */
.sidebar-close{display:none}
@media(max-width:720px){.sidebar{padding-top:42px;overflow-y:auto}.sidebar-close{display:inline-flex;position:absolute;top:8px;right:10px;width:28px;height:28px}.sidebar-close svg{width:16px;height:16px}}
body.auth-mode .sidebar{display:none}
body.auth-mode .topbar{display:none}
body.auth-mode .shell{margin-left:0;width:100%}
body.auth-mode .content{padding:0 26px 20px}
body.auth-mode .auth-layout{min-height:100vh;margin:0 auto;padding:40px 0 26px;align-content:center}

/* 登录页双入口: 用户端(正常) / 管理端(小字) */
.auth-links{display:inline-flex;align-items:baseline;gap:14px}
.auth-links a{transition:color .15s,opacity .15s}
.auth-links a:hover{color:#355d34}
.auth-links a.cur{color:#537747;font-weight:650}
.auth-links .auth-link-tiny{font-size:9px;opacity:.55}
.auth-links .auth-link-tiny.cur{font-weight:600;opacity:.85}

/* ===== 管理端页: 非管理员访问时隐藏导航框架(只留权限提示) ===== */
body.no-admin-mode .sidebar{display:none}
body.no-admin-mode .topbar{display:none}
body.no-admin-mode .shell{margin-left:0;width:100%}
body.no-admin-mode .content{max-width:860px}

/* ===== 侧边栏: 退出登录按钮 ===== */
.profile-row{display:flex;align-items:center;border-top:1px solid #284642}
.profile-row .profile-button{flex:1;min-width:0;border-top:0}
.logout-btn{width:36px;height:36px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;background:#ffffff10;color:#9eb7b0;border-radius:9px;margin-right:6px;transition:background .15s,color .15s}
.logout-btn:hover{background:#e05c5c2e;color:#ffb0b0}
.logout-btn svg{width:16px;height:16px}

/* ===== 卡密批量操作: 选择框 ===== */
.table input[type=checkbox]{width:15px;height:15px;accent-color:#507b4b;cursor:pointer;padding:0;border-radius:4px}
.table input[type=checkbox]:disabled{cursor:not-allowed;opacity:.4}

/* 管理端代理导入 */
.proxy-import-modal{width:min(860px,calc(100vw - 32px));max-height:90vh}
.proxy-import-modal .modal-body{overflow:auto}
#proxy-import-text{font-family:Consolas,"Microsoft YaHei",monospace;min-height:170px;resize:vertical}
.proxy-sub{display:block;font-size:11px;color:var(--muted);margin-top:4px;white-space:normal}
.proxy-table td{vertical-align:top}
.proxy-preview{max-height:230px;overflow:auto;margin-top:12px}
.proxy-job{margin-bottom:0}
.proxy-job-rows{max-height:210px;overflow:auto;margin-top:10px;font-size:12px}
.finance-filters{display:flex;gap:14px;align-items:flex-end;flex-wrap:wrap}
.finance-filters .field{flex:1;min-width:160px;margin-bottom:0}
.finance-filters .buttons{padding-bottom:1px}
.finance-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:21px;margin-top:21px}
svg.finance-chart{display:block;width:100%;height:260px;max-width:none;stroke-width:0}
.chart-empty{margin:0;text-align:center}
.finance-section{margin-top:21px}
.finance-batch{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:18px}
.finance-search{width:min(320px,100%)}
.finance-search input{width:100%}
.finance-table input[type=checkbox]{width:16px;height:16px;accent-color:#285c4c}
.finance-table td{vertical-align:middle}
.finance-note{max-width:280px;white-space:normal;overflow-wrap:anywhere}
.finance-uid{display:block;color:var(--muted);font-size:11px;margin-top:4px}
.finance-pagination{display:flex;align-items:center;gap:10px;margin-top:18px}
.finance-pagination .hint{margin-right:auto}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.account-identity{min-width:210px;max-width:360px;white-space:normal;overflow-wrap:anywhere}
.account-name-line{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 9px}
.account-name-line>strong{font-size:13px;color:#183e38}
.account-note{display:inline-block;background:#edf5ed;color:#355e45;border:1px solid #d9e7d8;border-radius:6px;padding:3px 7px;font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.account-note b{font-weight:600}.account-note.is-empty{background:#f6f7f5;color:#839182;border-color:#e8ede6}
.account-identity>small{display:block;margin-top:5px;color:#7e8d83;font-size:10px}
.account-expiry{margin-top:6px;font-size:11px;line-height:1.6;color:#446655;font-weight:500}
.account-expiry.is-urgent{color:#b94d3b;font-weight:600}
.account-card .account-identity{min-width:0;max-width:100%}.account-card .account-cell{align-items:flex-start}
.account-card .meta{flex-wrap:wrap;gap:8px}
@media(max-width:600px){.account-identity{min-width:210px;max-width:250px}.account-name-line{gap:6px}.account-note{max-width:100%}.account-card .account-identity{min-width:0}.account-name-line>strong{font-size:14px}}
@media(max-width:1000px){.finance-charts{grid-template-columns:1fr}.finance-section .card-head{flex-wrap:wrap;gap:14px}.finance-filters .field{min-width:140px}.finance-batch{gap:8px}}

/* ===== AI对话收费开关 ===== */
.ai-switch{display:inline-flex;align-items:center;gap:7px;border:1px solid #dce6df;background:#fff;
  color:#8a9b90;border-radius:999px;font-size:11px;padding:5px 11px 5px 6px;font-weight:600;white-space:nowrap;transition:all .15s}
.ai-switch i{width:26px;height:15px;border-radius:999px;background:#d8e2dc;position:relative;transition:background .15s;flex-shrink:0}
.ai-switch i:after{content:"";position:absolute;left:2px;top:2px;width:11px;height:11px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #14352a22;transition:transform .15s}
.ai-switch.on{background:#eaf5ec;border-color:#bfdcc4;color:#2f6b45}
.ai-switch.on i{background:#4f9a6a}
.ai-switch.on i:after{transform:translateX(11px)}
.ai-switch:hover{filter:brightness(.97)}
