:root { color-scheme: light; --ink:#17212b; --muted:#667482; --line:#dbe3e8; --surface:#fff; --canvas:#f4f7f8; --navy:#173a52; --teal:#0f8b8d; --red:#bd4a4a; --sidebar:#102c40; font-family:Inter,"Segoe UI","Microsoft YaHei",sans-serif; }
* { box-sizing:border-box; } body { margin:0; color:var(--ink); background:var(--canvas); } button,input,select { font:inherit; } button { cursor:pointer; } [hidden] { display:none!important; }
.login-layout { min-height:100vh; display:grid; grid-template-columns:minmax(0,1fr) minmax(400px,480px); background:#eef3f4; }
.login-art { position:relative; overflow:hidden; background:#102c40; }
.login-art::before,.login-art::after { content:""; position:absolute; inset:0; background-image:radial-gradient(circle,#cceff2 0 1px,transparent 1.5px); background-size:83px 71px; opacity:.5; animation:star-drift 18s linear infinite; }
.login-art::after { background-size:137px 109px; opacity:.28; animation-duration:26s; animation-direction:reverse; }
.login-art span,.login-art i,.login-art b { position:absolute; display:block; border:1px solid rgba(149,226,226,.25); border-radius:50%; transform:rotate(-24deg); animation:orbit-pulse 6s ease-in-out infinite; }
.login-art span { width:420px; height:140px; left:17%; top:31%; }.login-art i { width:560px; height:190px; left:4%; top:27%; animation-delay:1.5s; }.login-art b { width:720px; height:260px; left:-8%; top:20%; animation-delay:3s; }
@keyframes star-drift { from { transform:translateY(0); } to { transform:translateY(71px); } } @keyframes orbit-pulse { 0%,100% { opacity:.35; } 50% { opacity:.8; } }
.login-panel { display:flex; flex-direction:column; justify-content:center; padding:64px clamp(32px,5vw,72px); background:var(--surface); }.login-panel h1 { margin:0 0 38px; font-size:34px; letter-spacing:0; }
.form-stack,.settings-form { display:grid; gap:18px; } label { display:grid; gap:8px; color:#42515d; font-size:13px; font-weight:700; } input,select { min-height:44px; border:1px solid var(--line); border-radius:8px; padding:0 13px; color:var(--ink); background:#fff; outline:none; } input:focus,select:focus { border-color:var(--teal); box-shadow:0 0 0 3px rgba(15,139,141,.12); }
.primary-button,.secondary-button,.ghost-button { min-height:42px; border-radius:8px; padding:0 16px; font-weight:700; border:1px solid transparent; }.primary-button { color:#fff; background:var(--teal); }.primary-button:hover { background:#0b7779; }.secondary-button { color:var(--navy); border-color:#c8d7dc; background:#fff; }.secondary-button:hover,.ghost-button:hover { background:#eef5f5; }.ghost-button { color:#415563; background:transparent; }.form-error { margin:0; color:var(--red); font-size:13px; line-height:1.5; }
.admin-layout { min-height:100vh; }.topbar { display:none; }.admin-shell { min-height:100vh; display:grid; grid-template-columns:250px minmax(0,1fr); }.sidebar { position:sticky; top:0; height:100vh; display:flex; flex-direction:column; padding:26px 16px 20px; color:#e6f3f5; background:var(--sidebar); }.sidebar-brand { display:flex; align-items:center; gap:12px; padding:0 12px 34px; font-size:16px; }.brand-mark { display:grid; place-items:center; width:38px; height:38px; border-radius:9px; color:#fff; background:var(--teal); font-size:11px; font-weight:900; letter-spacing:1px; }.side-nav { display:grid; gap:5px; }.side-nav-item { display:flex; align-items:center; gap:12px; min-height:44px; padding:0 13px; border:0; border-radius:8px; color:#b9d0d8; background:transparent; text-align:left; font-weight:700; }.side-nav-item span { width:18px; color:#91c4c8; font-size:18px; text-align:center; }.side-nav-item:hover,.side-nav-item.is-active { color:#fff; background:#1b5161; }.side-nav-item.is-active span { color:#8ce4df; }.sidebar-logout { width:100%; margin-top:auto; min-height:42px; border:1px solid rgba(255,255,255,.15); border-radius:8px; color:#d6e6e9; background:transparent; font-weight:700; }.sidebar-logout:hover { color:#fff; background:rgba(255,255,255,.08); }
.content-shell { width:100%; max-width:1500px; margin:0 auto; padding:42px 42px 70px; }.page-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:30px; }.eyebrow { margin:0; color:var(--teal); font-size:11px; font-weight:800; letter-spacing:1.8px; }.page-heading h1 { margin:10px 0 0; font-size:32px; }.stats-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:14px; margin-bottom:26px; }.stat-card { min-height:124px; display:flex; flex-direction:column; justify-content:space-between; padding:20px; border:1px solid var(--line); border-top:4px solid var(--navy); border-radius:10px; background:var(--surface); }.stat-card span { color:var(--muted); font-size:13px; font-weight:700; }.stat-card strong { font-size:34px; }.stat-card--green { border-top-color:#3d9b71; }.stat-card--amber { border-top-color:#c38a2e; }.stat-card--blue { border-top-color:#4f83bd; }.stat-card--red { border-top-color:#bd4a4a; }
.welcome-strip { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:150px; padding:28px 30px; border:1px solid #c9e1e1; border-radius:10px; color:#eaf9f9; background:#0f7076; }.welcome-strip h2 { margin:9px 0 7px; font-size:23px; }.welcome-strip p { margin:0; color:#c9eeee; }.welcome-strip .eyebrow { color:#9de8e4; }
.panel-section { padding:26px; border:1px solid var(--line); border-radius:10px; background:var(--surface); }.filter-bar { display:flex; align-items:center; gap:10px; margin-bottom:20px; }.filter-bar input { min-width:250px; }.filter-bar select { min-width:140px; }.table-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:8px; } table { width:100%; border-collapse:collapse; font-size:13px; white-space:nowrap; } th { color:#637481; background:#f7fafb; font-size:11px; letter-spacing:.5px; text-align:left; text-transform:uppercase; } th,td { padding:13px 14px; border-bottom:1px solid #edf1f2; } tbody tr:last-child td { border-bottom:0; } tbody tr:hover { background:#fbfdfd; } td small { display:block; margin-top:4px; color:var(--muted); font-size:11px; font-weight:400; }.status-badge { display:inline-flex; align-items:center; min-height:24px; padding:0 9px; border-radius:99px; color:#416070; background:#edf3f5; font-size:11px; font-weight:800; }.status-badge--active { color:#23764e; background:#e7f5ec; }.status-badge--disabled { color:#9b4d4d; background:#faeaea; }.status-badge--locked { color:#98691e; background:#fff3d8; }.status-badge--muted { color:#667482; background:#edf0f2; }.expired-text { color:var(--red); font-weight:700; }.action-cell { display:flex; gap:8px; }.table-action { padding:5px 8px; border:0; color:var(--teal); background:transparent; font-weight:800; }.table-action:hover { text-decoration:underline; }.table-action--danger { color:var(--red); }.empty-state { padding:42px; color:var(--muted); text-align:center; }.pagination { display:flex; align-items:center; justify-content:flex-end; gap:14px; margin-top:16px; color:var(--muted); font-size:13px; }
.settings-panel { max-width:620px; }.settings-panel h2 { margin:0; font-size:21px; }.section-help { margin:8px 0 24px; color:var(--muted); font-size:13px; }.settings-form { max-width:420px; }.settings-form .primary-button { justify-self:start; }.device-field { display:grid; grid-template-columns:1fr auto; gap:8px; align-items:center; padding:13px; border:1px solid var(--line); border-radius:8px; color:#42515d; font-size:13px; }.device-field span { grid-column:1/-1; font-weight:700; }.device-field strong { color:var(--teal); }.expiry-shortcuts { display:flex; align-items:center; gap:9px; color:var(--muted); font-size:12px; }.expiry-shortcuts button { padding:5px 9px; border:1px solid #c8d7dc; border-radius:6px; color:var(--teal); background:#fff; font-size:12px; }.expiry-shortcuts button:hover { background:#eef8f8; }
.user-dialog { width:min(490px,calc(100vw - 32px)); padding:0; border:0; border-radius:12px; box-shadow:0 24px 80px rgba(14,36,48,.24); }.user-dialog::backdrop { background:rgba(14,36,48,.46); }.user-dialog form { display:grid; gap:16px; padding:26px; }.dialog-heading { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:4px; }.dialog-heading h2 { margin:8px 0 0; font-size:22px; }.icon-button { width:32px; height:32px; border:0; border-radius:7px; color:var(--muted); background:#f2f6f7; font-size:24px; line-height:1; }.icon-button:hover { background:#e8eff0; }.dialog-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:4px; }.toast { position:fixed; z-index:20; right:22px; top:22px; max-width:360px; padding:12px 16px; border:1px solid #bcdfe0; border-radius:8px; color:#145d60; background:#effafa; box-shadow:0 10px 30px rgba(15,54,62,.12); transform:translateY(-20px); opacity:0; pointer-events:none; transition:.2s ease; }.toast.is-visible { transform:translateY(0); opacity:1; }.mobile-menu-button,.mobile-brand { display:none; }
@media (max-width:1050px) { .stats-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:760px) { .topbar { height:62px; display:flex; align-items:center; justify-content:space-between; padding:0 15px; border-bottom:1px solid var(--line); background:#fff; }.mobile-menu-button,.mobile-brand { display:block; }.mobile-brand { font-size:15px; }.topbar-actions .identity-text { display:none; }.admin-shell { display:block; }.sidebar { position:fixed; z-index:10; left:0; top:62px; width:250px; height:calc(100vh - 62px); transform:translateX(-100%); transition:transform .2s ease; }.sidebar.is-open { transform:translateX(0); }.content-shell { padding:28px 16px 50px; }.stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.panel-section { padding:18px 14px; }.filter-bar { align-items:stretch; flex-direction:column; }.filter-bar input,.filter-bar select { min-width:0; width:100%; }.page-heading h1 { font-size:28px; }.welcome-strip { align-items:flex-start; flex-direction:column; }.login-layout { grid-template-columns:1fr; }.login-art { display:none; }.login-panel { min-height:100vh; padding:64px 24px; } }
