:root{--bg:#070b14;--panel:#0e1524;--panel2:#111b2e;--line:#24304a;--text:#f5f8ff;--muted:#8f9bb3;--blue:#4a7cff;--cyan:#68d8ff;--green:#35d69f;--red:#ff6b7a;--radius:20px;color-scheme:dark}*{box-sizing:border-box}html{min-height:100%;background:var(--bg)}body{margin:0;min-height:100vh;font-family:Inter,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--text);background:radial-gradient(circle at 20% 0,#11254b 0,transparent 35%),radial-gradient(circle at 85% 25%,#24164d 0,transparent 30%),var(--bg)}a{color:#8db2ff;text-decoration:none}a:hover{color:#fff}.topbar{height:72px;padding:0 max(24px,calc((100vw - 1180px)/2));display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(6,10,19,.78);backdrop-filter:blur(18px);position:sticky;top:0;z-index:10}.brand{font-weight:800;color:#fff;letter-spacing:.02em}.topbar nav{display:flex;align-items:center;gap:20px;font-size:14px}.topbar nav form{margin:0}.link-button{border:0;background:none;color:#8db2ff;padding:0;cursor:pointer;font:inherit}.container{max-width:1180px;margin:0 auto;padding:56px 24px 80px;min-height:calc(100vh - 140px)}footer{border-top:1px solid rgba(255,255,255,.07);color:#657089;padding:28px;text-align:center;font-size:13px}.hero{min-height:520px;display:grid;grid-template-columns:1.25fr .75fr;align-items:center;gap:80px}.hero h1,.page-title h1,.card h1{font-size:clamp(34px,5vw,62px);line-height:1.08;margin:12px 0 20px}.hero p,.page-title p{font-size:17px;line-height:1.8;color:var(--muted);max-width:680px}.eyebrow{font-size:12px;font-weight:800;letter-spacing:.2em;color:#79a5ff}.hero-art{display:flex;justify-content:center}.shield{width:260px;height:300px;clip-path:polygon(50% 0,95% 18%,88% 72%,50% 100%,12% 72%,5% 18%);display:grid;place-items:center;font-size:100px;font-weight:900;color:#fff;background:linear-gradient(145deg,#4679ff,#774cff);filter:drop-shadow(0 30px 60px rgba(62,103,255,.45))}.status-pill{display:inline-flex;align-items:center;gap:9px;padding:9px 14px;border:1px solid rgba(53,214,159,.25);background:rgba(53,214,159,.08);border-radius:999px;color:#9ceccd;font-size:13px}.status-pill i{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 14px var(--green)}.card,.qr-card{background:linear-gradient(150deg,rgba(19,29,49,.96),rgba(10,16,29,.96));border:1px solid var(--line);border-radius:var(--radius);padding:30px;box-shadow:0 22px 60px rgba(0,0,0,.22)}.card h2{margin:0 0 22px;font-size:20px}.narrow{max-width:460px;margin:80px auto}.narrow-wide{max-width:720px;margin:auto}.login-grid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:28px;max-width:950px;margin:20px auto}.login-grid h1{font-size:40px}.steps{list-style:none;padding:0;margin:28px 0;display:grid;gap:18px}.steps li{display:flex;align-items:center;gap:14px;color:#cbd4e7}.steps b{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:#1c315d;color:#8fb5ff}.stack{display:grid;gap:17px}.stack label{display:grid;gap:8px;font-size:14px;color:#cdd5e6}.stack small{color:var(--muted)}input,select,textarea{width:100%;border:1px solid #2c3a58;background:#080e1b;color:#fff;border-radius:12px;padding:13px 14px;outline:none;font:inherit}input:focus,select:focus,textarea:focus{border-color:#5a87ff;box-shadow:0 0 0 3px rgba(74,124,255,.16)}textarea{resize:vertical}.primary{border:0;border-radius:12px;padding:14px 20px;background:linear-gradient(135deg,#3975ff,#7054f7);color:#fff;font-weight:800;cursor:pointer}.primary:disabled{opacity:.45;cursor:not-allowed}.secondary,.small-button{border:1px solid #38507c;border-radius:10px;padding:10px 14px;background:#14213a;color:#dce7ff;cursor:pointer;white-space:nowrap}.small-button{padding:8px 10px;font-size:12px}.danger-button{border-color:rgba(255,107,122,.4);background:rgba(255,107,122,.1);color:#ffacb5}.hint,.muted{color:var(--muted);font-size:13px;line-height:1.7}.qr-card{text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center}.qr-card strong{font-size:18px;margin-top:18px}.qr-card>span{font-size:13px;color:var(--muted);margin-top:6px}.qr-wrap{width:250px;height:250px;padding:14px;border-radius:20px;background:#fff;display:grid;place-items:center}.qr-wrap img{max-width:100%;max-height:100%;object-fit:contain}.qr-empty{color:#657089;line-height:1.6}.page-title{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:30px}.page-title h1{font-size:40px;margin-bottom:8px}.page-title p{font-size:15px;margin:0}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.stats article{padding:24px;border:1px solid var(--line);border-radius:16px;background:rgba(14,21,36,.88)}.stats span{display:block;color:var(--muted);font-size:13px}.stats strong{font-size:36px;display:block;margin-top:10px}.admin-grid{display:grid;grid-template-columns:380px minmax(0,1fr);gap:22px;align-items:start}.admin-grid .wide{min-width:0}.filter-bar{display:grid;grid-template-columns:minmax(180px,1.4fr) repeat(3,minmax(130px,1fr)) auto;gap:12px;align-items:end;margin-bottom:22px}.filter-bar label{display:grid;gap:7px;color:#9eabc2;font-size:12px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:14px}th,td{padding:14px 12px;border-bottom:1px solid rgba(255,255,255,.07);text-align:left;vertical-align:top}th{color:#7f8ca6;font-size:12px;white-space:nowrap}td code{font-size:12px;word-break:break-all;color:#a9c3ff}.check{display:flex!important;grid-template-columns:18px 1fr;align-items:center}.check input{width:16px;height:16px}.inline-action{display:grid;gap:7px;min-width:132px}.inline-action input[name=reason]{padding:8px 9px;font-size:12px}.badge{display:inline-flex;border-radius:999px;padding:5px 9px;font-size:12px}.badge.ok{background:rgba(53,214,159,.1);color:#8de6c5}.badge.danger{background:rgba(255,107,122,.1);color:#ff9aa6}.badge.muted-badge{background:rgba(143,155,179,.12);color:#aab4c9}.pagination{display:flex;justify-content:center;align-items:center;gap:18px;margin-top:22px;color:var(--muted);font-size:13px}.flash{border-radius:12px;padding:13px 16px;margin-bottom:20px;font-size:14px;word-break:break-word}.flash.success{border:1px solid rgba(53,214,159,.3);background:rgba(53,214,159,.1);color:#9ceccd}.flash.error{border:1px solid rgba(255,107,122,.3);background:rgba(255,107,122,.1);color:#ffacb5}
@media(max-width:850px){.topbar{height:auto;min-height:64px;padding:14px 18px;align-items:flex-start}.topbar nav{gap:12px;flex-wrap:wrap;justify-content:flex-end}.container{padding:34px 16px 60px}.hero{grid-template-columns:1fr;min-height:auto}.hero-art{display:none}.login-grid,.admin-grid{grid-template-columns:1fr}.filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.qr-card{order:-1}.qr-wrap{width:210px;height:210px}.stats{grid-template-columns:repeat(2,1fr)}.page-title{align-items:flex-start;gap:14px}.page-title h1{font-size:32px}.card{padding:22px}}@media(max-width:520px){.topbar:has(nav){flex-direction:column;gap:12px}.topbar nav{width:100%;overflow-x:auto;flex-wrap:nowrap;justify-content:flex-start;padding-bottom:4px}.topbar nav a,.topbar nav form{flex:0 0 auto}.filter-bar{grid-template-columns:1fr}.login-grid h1{font-size:32px}.stats{grid-template-columns:1fr 1fr}.stats article{padding:18px}.stats strong{font-size:28px}.qr-wrap{width:190px;height:190px}}
/* Embedded QR login: one column, independent of the standalone and admin themes. */
.embed-login{color-scheme:light;min-height:100vh;color:#243b30;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;background:radial-gradient(ellipse at 50% 0,rgba(218,245,230,.65),transparent 65%),#fff}
.embed-login .topbar,.embed-login footer{display:none}
.embed-login .container{width:100%;max-width:360px;min-height:0;margin:0 auto;padding:28px 36px 24px}
.embed-login .simple-login-brand{margin:0 0 18px;text-align:center;color:#294c39;font-size:16px;font-weight:600;line-height:24px;letter-spacing:.12em}
.embed-login .simple-login-qr{margin:0;text-align:center}
.embed-login .simple-qr-image{display:grid;place-items:center;width:232px;max-width:100%;aspect-ratio:1;margin:0 auto;padding:12px;border:1px solid #e5efe9;border-radius:18px;background:#fff;box-shadow:0 8px 28px rgba(36,91,59,.06)}
.embed-login .simple-qr-image img{display:block;width:100%;height:100%;min-height:0;object-fit:contain}
.embed-login .simple-login-caption{display:flex;align-items:center;justify-content:center;gap:9px;margin:20px 0 0;font-size:15px;font-weight:500;line-height:24px;letter-spacing:.04em;color:#365443}
.embed-login .simple-login-caption::before{content:"";width:7px;height:7px;flex:none;border-radius:50%;background:#18a05e;box-shadow:0 0 0 4px #eaf7ef}
.embed-login .simple-qr-empty{margin:0;font-size:13px;line-height:1.7;color:#7a8980}
.embed-login .flash{font-size:13px;line-height:1.7;padding:12px 14px;border-radius:12px}
.embed-login .flash.error{color:#a52b2b;background:#fff5f5;border-color:#f4d9d9}
.embed-login .flash.success{color:#326448;background:#edf8f1;border-color:#d9ecdf}
@media(max-width:359px){.embed-login .container{padding:28px 24px 24px}}
.embed-login .simple-qr-image img[hidden]{display:none}
.embed-login .simple-qr-image[data-unavailable] img{opacity:.16}
.embed-login .mobile-login-guide{margin:18px auto 0;text-align:center;font-size:12px;line-height:1.8;color:#708278}
.embed-login .mobile-login-guide p{margin:4px 0}
.embed-login .mobile-login-guide p:first-child{color:#355743;font-weight:500}
.embed-login .login-qr-status{margin:12px 0 0;text-align:center;font-size:12px;line-height:1.7;color:#7b6550}
.embed-login .login-qr-retry{display:block;margin:10px auto 0;padding:8px 18px;border:1px solid #d4e8dc;border-radius:999px;background:#eef8f2;color:#286444;font-family:inherit;font-size:13px;font-weight:500;line-height:1.5;cursor:pointer}
.embed-login .login-qr-retry:focus-visible{outline:2px solid #18a05e;outline-offset:3px}
.embed-login .login-qr-status[hidden],.embed-login .login-qr-retry[hidden]{display:none}
.embed-login.mobile-login .container{padding:32px 24px 24px}
.embed-login.mobile-login .simple-login-caption{font-size:14px;margin-top:16px}
.embed-login.mobile-login .simple-login-brand{margin-bottom:18px}
.embed-login.qr-feedback .simple-qr-image{width:164px}
.embed-login.mobile-login.qr-feedback .simple-qr-image{width:184px}
.embed-login .login-qr-retry:disabled{opacity:.6;cursor:wait}
.embed-login .login-qr-actions{display:flex;justify-content:center;gap:8px}
.embed-login .login-qr-actions .login-qr-retry{margin:10px 0 0;padding:7px 12px;font-size:12px}
.embed-login.qr-feedback .simple-qr-image{width:132px}
.embed-login.qr-feedback .simple-login-brand{margin-bottom:12px}
.embed-login.qr-feedback .simple-login-caption{margin-top:10px;font-size:13px}
.embed-login.mobile-login.qr-feedback .simple-qr-image{width:164px}
