:root{--bg:#f3f6fb;--surface:#fff;--ink:#15233a;--muted:#5b6b82;--line:#d5e0ef;--brand:#2563eb;--brand-dark:#1d4ed8;--brand-soft:#eff6ff;--danger:#b42318;--ok:#18794e;--focus:#2563eb;--radius:14px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0;min-height:100vh;color:var(--ink);background:var(--bg);font-size:14px;letter-spacing:0}button,input,select{font:inherit;letter-spacing:0}.auth-layout{min-height:100vh;display:grid;grid-template-columns:minmax(320px,480px) 1fr}.auth-panel{display:flex;align-items:center;justify-content:center;padding:40px;background:var(--surface);border-right:1px solid var(--line)}.auth-main{width:min(360px,100%)}.brand{display:flex;align-items:center;gap:12px;margin-bottom:42px}.brand-mark{width:38px;height:38px;border-radius:var(--radius);display:grid;place-items:center;background:var(--brand);color:white;font-weight:800;font-size:17px}.brand-name{font-size:16px;font-weight:750}.brand-meta{color:var(--muted);font-size:12px;margin-top:2px}.auth-main h1{font-size:26px;margin:0 0 8px}.lead{color:var(--muted);line-height:1.6;margin:0 0 28px}.field{display:grid;gap:7px;margin-bottom:16px}.field label{font-weight:650;color:var(--ink)}.input{width:100%;height:42px;border:1px solid var(--line);border-radius:var(--radius);padding:0 12px;color:var(--ink);background:white;outline:none}.input:focus{border-color:var(--focus);box-shadow:0 0 0 3px rgba(37,99,235,.13)}.input:disabled{background:var(--brand-soft);color:var(--muted)}.password-wrap{position:relative}.password-wrap .input{padding-right:46px}.reveal{position:absolute;right:4px;top:4px;width:34px;height:34px;border:0;background:transparent;color:var(--muted);cursor:pointer}.btn{height:42px;border:1px solid transparent;border-radius:var(--radius);padding:0 14px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:680;cursor:pointer;text-decoration:none}.btn.primary{width:100%;background:var(--brand);color:white}.btn.primary:hover{background:var(--brand-dark);box-shadow:0 6px 16px rgba(37,99,235,.28)}.btn.secondary{background:white;color:var(--ink);border-color:var(--line)}.btn.danger{background:var(--brand-soft);color:var(--brand-dark);border-color:#bfdbfe}.btn.danger:hover{background:#dbeafe;border-color:var(--brand)}.btn:disabled{opacity:.55;cursor:not-allowed}.form-error{min-height:20px;color:var(--danger);font-size:13px;margin:4px 0 8px}.auth-foot{margin-top:20px;color:var(--muted);text-align:center}.auth-foot a{color:var(--brand);font-weight:650;text-decoration:none}.auth-context{display:flex;align-items:flex-end;padding:56px;background:linear-gradient(160deg,#0b2a4a,#163a68 55%,#1e4f8a);color:white}.context-inner{max-width:620px}.context-kicker{font-size:12px;text-transform:uppercase;color:#9ec0e6;font-weight:750}.auth-context h2{font-size:30px;line-height:1.25;margin:12px 0}.auth-context p{color:#d5e6f7;max-width:560px;line-height:1.7}.shell-header{height:64px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 24px;gap:28px;position:sticky;top:0;z-index:3}.shell-header .brand{margin:0}.nav{display:flex;gap:4px;flex:1}.nav a{padding:8px 10px;border-radius:10px;color:var(--muted);text-decoration:none}.nav a:hover,.nav a[aria-current=true]{background:#e8f0fb;color:var(--ink)}.user-actions{display:flex;align-items:center;gap:8px}.page{max-width:1120px;margin:0 auto;padding:28px 24px 56px}.page-title{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}.page-title h1{font-size:24px;margin:0 0 5px}.page-title p{color:var(--muted);margin:0}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.card{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:0 8px 24px rgba(37,99,235,.06);transition:border-color 160ms ease,box-shadow 160ms ease}.card:hover{border-color:#bfdbfe;box-shadow:0 10px 28px rgba(37,99,235,.09)}.card h2{font-size:16px;margin:0 0 6px;color:var(--ink)}.card>.description{color:var(--muted);margin:0 0 20px;line-height:1.55}.card .btn{margin-top:4px}.notice{border:1px solid var(--line);background:#f8fafb;border-radius:var(--radius);padding:11px 12px;color:var(--muted);margin-bottom:16px}.notice.ok{border-color:#b8decf;background:#f0faf6;color:var(--ok)}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:var(--radius)}table{width:100%;border-collapse:collapse;min-width:800px}th,td{padding:12px;text-align:left;border-bottom:1px solid var(--line);vertical-align:middle}th{font-size:12px;color:var(--muted);background:#f8fafb}tr:last-child td{border-bottom:0}.badge{display:inline-flex;padding:3px 7px;border-radius:999px;background:#eef1f4;color:var(--muted);font-size:12px}.badge.ok{background:#eaf7f1;color:var(--ok)}.row-actions{display:flex;gap:6px}.row-actions .btn{height:34px;padding:0 9px}.session-list{display:grid;gap:10px}.session{border:1px solid var(--line);border-radius:var(--radius);padding:12px;display:flex;justify-content:space-between;gap:14px;background:#fff;transition:border-color 160ms ease,box-shadow 160ms ease}.session:hover{border-color:#bfdbfe;box-shadow:0 6px 16px rgba(37,99,235,.08)}.session strong{display:block;margin-bottom:4px}.session small{color:var(--muted)}@media(max-width:760px){.auth-layout{grid-template-columns:1fr}.auth-panel{border:0;padding:28px 22px}.auth-context{display:none}.brand{margin-bottom:32px}.shell-header{height:auto;min-height:64px;flex-wrap:wrap;padding:12px 16px;gap:10px}.nav{order:3;width:100%;overflow:auto}.page{padding:22px 16px}.grid{grid-template-columns:1fr}.page-title{align-items:flex-start;flex-direction:column}.user-actions .user-label{display:none}}

html[data-theme="dark"]{color-scheme:dark;--bg:#0f172a;--surface:#1e293b;--ink:#e8eef7;--muted:#94a3b8;--line:#334155;--brand-soft:#1e3a5f;--danger:#f87171;--ok:#4ade80}
html[data-theme="dark"] body{background:var(--bg);color:var(--ink)}
html[data-theme="dark"] .auth-panel,.auth-layout html[data-theme="dark"] .auth-panel{background:var(--surface)}
html[data-theme="dark"] .input{background:var(--bg);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .input:disabled{background:#162033;color:var(--muted)}
html[data-theme="dark"] .btn.secondary{background:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .btn.danger{background:#1e3a5f;color:#93c5fd;border-color:#1d4ed8}
html[data-theme="dark"] .btn.danger:hover{background:#1e4a8a}
html[data-theme="dark"] .card{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .notice{background:#162033;border-color:var(--line);color:var(--muted)}
html[data-theme="dark"] .notice.ok{border-color:#14532d;background:#13261c;color:var(--ok)}
html[data-theme="dark"] .shell-header{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .nav a:hover,html[data-theme="dark"] .nav a[aria-current=true]{background:#1e3a5f;color:var(--ink)}
html[data-theme="dark"] .session{background:var(--surface);border-color:var(--line)}
html[data-theme="dark"] .table-wrap{border-color:var(--line)}
html[data-theme="dark"] th{background:#162033;color:var(--muted)}
html[data-theme="dark"] .badge{background:#1e3a5f;color:#93c5fd}
.auth-theme{position:fixed;top:18px;right:18px;z-index:5;width:36px;height:36px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--ink);font-weight:750;cursor:pointer}
.auth-theme:hover{border-color:var(--brand);color:var(--brand)}
