/* 火花管家 · 控制台样式（无表情符号，纯几何与排版） */
:root{
  --bg:#F3F5FA;
  --surface:#FFFFFF;
  --surface-soft:#F8FAFD;
  --line:#E5E9F1;
  --line-soft:#EFF2F7;
  --text:#16223A;
  --text-2:#3D4A61;
  --muted:#7C879B;
  --primary:#4F46E5;
  --primary-dark:#3F37C9;
  --primary-soft:#EEF0FF;
  --accent:#F2712C;
  --accent-soft:#FFF2E9;
  --ok:#159A63;
  --ok-soft:#E8F7F0;
  --warn:#C77A0B;
  --warn-soft:#FFF5E4;
  --danger:#D94848;
  --danger-soft:#FDEEEE;
  --side:#0C1424;
  --side-2:#131F35;
  --radius:14px;
  --radius-sm:9px;
  --shadow:0 1px 2px rgba(16,30,54,.04),0 8px 28px rgba(16,30,54,.055);
  --shadow-lg:0 18px 50px rgba(16,30,54,.14);
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  --mono:"SFMono-Regular",Consolas,"Liberation Mono",Menlo,monospace;
}
*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%}
body{background:var(--bg);color:var(--text);font-family:var(--font);font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased}
.hidden{display:none!important}
.muted{color:var(--muted)}
.mono{font-family:var(--mono);letter-spacing:.4px}
#card-filter{width:auto;min-width:140px}
button,input,select,textarea{font-family:inherit;font-size:inherit;color:inherit}
button{cursor:pointer}
a{color:var(--primary)}
::selection{background:#DDE0FF}
::-webkit-scrollbar{width:9px;height:9px}
::-webkit-scrollbar-thumb{background:#CBD3E1;border-radius:99px;border:2px solid transparent;background-clip:padding-box}
::-webkit-scrollbar-thumb:hover{background:#AEB9CE;background-clip:padding-box}
::-webkit-scrollbar-track{background:transparent}

/* ============ 图标 ============ */
svg.ico{width:18px;height:18px;display:block;flex:none}
.logo-mark{width:44px;height:44px;border-radius:13px;background:linear-gradient(140deg,#5B53F0,#4338CA 55%,#312AA8);display:inline-flex;align-items:center;justify-content:center;color:#fff;flex:none;box-shadow:0 8px 22px rgba(67,56,202,.32)}
.logo-mark svg{width:24px;height:24px}
.logo-mark.small{width:36px;height:36px;border-radius:11px}
.logo-mark.small svg{width:20px;height:20px}
.logo-mark.warm{background:linear-gradient(140deg,#FF8A4C,#F2712C 60%,#D6571B);box-shadow:0 8px 22px rgba(242,113,44,.3)}

/* ============ 认证页 ============ */
.auth-view{min-height:100vh;display:grid;grid-template-columns:minmax(380px,46%) 1fr;background:var(--surface)}
.auth-brand{position:relative;overflow:hidden;background:radial-gradient(90% 70% at 15% 5%,#27336B 0%,transparent 60%),radial-gradient(80% 70% at 90% 100%,#5A2B57 0%,transparent 62%),linear-gradient(155deg,#101A32,#0B1122 62%,#141A38);color:#fff;display:flex;align-items:center;padding:56px clamp(36px,6vw,88px)}
.auth-brand::before{content:"";position:absolute;width:560px;height:560px;border:1px solid rgba(255,255,255,.07);border-radius:50%;top:-220px;right:-240px}
.auth-brand::after{content:"";position:absolute;width:380px;height:380px;border:1px solid rgba(255,255,255,.06);border-radius:50%;bottom:-190px;left:-140px}
.auth-brand-inner{position:relative;z-index:1;max-width:470px}
.brand-lockup{display:flex;align-items:center;gap:14px;margin-bottom:64px}
.brand-title{font-size:19px;font-weight:700;letter-spacing:.6px}
.brand-sub{font-size:10px;letter-spacing:3px;color:#8D9AC0;font-family:var(--mono);margin-top:2px}
.auth-brand h1{font-size:clamp(30px,3.3vw,45px);line-height:1.28;font-weight:700;letter-spacing:-.5px}
.brand-desc{margin-top:20px;color:#A9B4CE;font-size:14.5px;line-height:1.9;max-width:410px}
.feature-list{list-style:none;margin-top:44px;display:flex;flex-direction:column;gap:22px}
.feature-list li{display:flex;gap:14px;align-items:flex-start}
.feature-dot{width:9px;height:9px;border-radius:3px;background:linear-gradient(135deg,#FF9A5A,#F2712C);margin-top:7px;flex:none;box-shadow:0 0 0 4px rgba(242,113,44,.14)}
.feature-list b{display:block;font-size:14px;font-weight:650;color:#F2F5FF}
.feature-list span:not(.feature-dot){display:block;font-size:12.5px;color:#93A0BE;margin-top:3px}
.brand-foot{margin-top:64px;font-size:11.5px;color:#6E7C9C;border-top:1px solid rgba(255,255,255,.09);padding-top:20px}
.auth-right{display:flex;align-items:center;justify-content:center;padding:40px 24px;background:var(--bg)}
.auth-card{width:min(100%,420px);background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:34px 34px 22px;box-shadow:var(--shadow-lg)}
.auth-tabs{display:flex;background:var(--surface-soft);border:1px solid var(--line-soft);border-radius:11px;padding:4px;gap:4px;margin-bottom:28px}
.auth-tab{flex:1;border:0;background:transparent;padding:9px;border-radius:8px;font-size:13.5px;font-weight:600;color:var(--muted);transition:.18s}
.auth-tab.active{background:var(--surface);color:var(--primary);box-shadow:0 1px 4px rgba(16,30,54,.1)}
.form-head{margin-bottom:22px}
.form-head h2{font-size:22px;font-weight:700;letter-spacing:-.3px}
.form-head p{color:var(--muted);font-size:13px;margin-top:5px}
.auth-form .field{margin-bottom:16px}
.form-err{background:var(--danger-soft);color:var(--danger);font-size:12.5px;padding:9px 12px;border-radius:8px;margin-bottom:12px;border:1px solid #F6D5D5}
.form-note{font-size:11.5px;color:var(--muted);margin-top:12px;text-align:center}
.auth-bottom{margin-top:24px;padding-top:16px;border-top:1px solid var(--line-soft);display:flex;justify-content:space-between;font-size:11px;color:#9AA4B6}

/* ============ 通用表单 / 按钮 ============ */
.field{display:flex;flex-direction:column;gap:7px;font-size:12.5px;color:var(--text-2);font-weight:600}
.field.full{margin:18px 0}
.field span i{font-style:normal;font-weight:400;color:var(--muted);margin-left:4px;font-size:11px}
.field>input,.field>textarea,.field>select,input[type=text],input[type=password],input[type=time],input[type=number],select,textarea{
  width:100%;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);
  padding:10px 12px;outline:none;transition:.18s;font-weight:400;color:var(--text)
}
textarea{resize:vertical;line-height:1.7;font-family:var(--font)}
input:focus,select:focus,textarea:focus{border-color:#A9A4F5;box-shadow:0 0 0 3px rgba(79,70,229,.1)}
input::placeholder,textarea::placeholder{color:#AEB7C7}
select{cursor:pointer}
.btn{border:1px solid transparent;border-radius:var(--radius-sm);padding:10px 18px;font-size:13.5px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:.18s;white-space:nowrap;background:var(--surface);color:var(--text-2);border-color:var(--line)}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:none}
.btn:disabled{opacity:.45;cursor:not-allowed;transform:none}
.btn svg.ico{width:16px;height:16px}
.btn-primary{background:var(--primary);color:#fff;border-color:var(--primary);box-shadow:0 4px 14px rgba(79,70,229,.24)}
.btn-primary:hover{background:var(--primary-dark);border-color:var(--primary-dark);box-shadow:0 6px 18px rgba(79,70,229,.32)}
.btn-warm{background:var(--accent-soft);color:#C4551C;border-color:#FADDC8}
.btn-warm:hover{background:#FFE9DA}
.btn-outline{background:var(--surface);border-color:var(--line);color:var(--text-2)}
.btn-outline:hover{border-color:#C8CEE0;background:var(--surface-soft)}
.btn-ghost{background:transparent;border-color:transparent;color:var(--muted)}
.btn-ghost:hover{background:var(--surface-soft);color:var(--text)}
.btn-danger{background:var(--danger-soft);color:var(--danger);border-color:#F5D7D7}
.btn-danger:hover{background:#FBE2E2}
.btn-sm{padding:7px 13px;font-size:12.5px}
.btn-block{width:100%}
.btn-link{border:0;background:none;color:var(--primary);padding:4px 6px;font-size:12.5px;font-weight:600}
.btn-link:hover{text-decoration:underline}
.btn-link.danger{color:var(--danger)}
.action-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:4px}
.inline-check{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;color:var(--muted);cursor:pointer}
input[type=checkbox]{width:15px;height:15px;accent-color:var(--primary);cursor:pointer}

/* ============ 应用骨架 ============ */
.app-shell{display:grid;grid-template-columns:230px 1fr;min-height:100vh}
.sidebar{background:linear-gradient(180deg,var(--side),var(--side-2));color:#C8D2E6;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;padding:22px 14px 16px;z-index:5}
.side-brand{display:flex;align-items:center;gap:11px;padding:0 8px 26px;border-bottom:1px solid rgba(255,255,255,.07)}
.side-brand-name{font-size:15.5px;font-weight:700;color:#fff;letter-spacing:.4px}
.side-brand-sub{font-size:9px;letter-spacing:2.4px;color:#7180A3;font-family:var(--mono);margin-top:1px}
.side-nav{flex:1;overflow-y:auto;padding:18px 0;display:flex;flex-direction:column;gap:3px}
.nav-group{font-size:10px;letter-spacing:1.6px;color:#66759A;font-weight:700;padding:14px 12px 7px;text-transform:uppercase}
.nav-item{display:flex;align-items:center;gap:11px;width:100%;border:0;background:transparent;color:#A7B4CE;padding:10px 12px;border-radius:9px;font-size:13.5px;font-weight:550;text-align:left;transition:.16s;position:relative}
.nav-item svg.ico{width:17px;height:17px;opacity:.85}
.nav-item:hover{background:rgba(255,255,255,.06);color:#fff}
.nav-item.active{background:rgba(99,91,240,.2);color:#C9C5FF;font-weight:650}
.nav-item.active::before{content:"";position:absolute;left:0;top:22%;height:56%;width:3px;border-radius:99px;background:#8B83FF}
.nav-item.admin-item.active{background:rgba(242,113,44,.16);color:#FFD0AF}
.nav-item.admin-item.active::before{background:var(--accent)}
.side-foot{border-top:1px solid rgba(255,255,255,.07);padding-top:14px;display:flex;align-items:center;gap:8px}
.user-chip{display:flex;align-items:center;gap:9px;flex:1;min-width:0;padding:4px 6px}
.user-avatar{width:32px;height:32px;border-radius:9px;background:linear-gradient(135deg,#5B53F0,#8B5CF6);color:#fff;font-weight:700;font-size:13px;display:flex;align-items:center;justify-content:center;flex:none}
.user-meta{min-width:0}
.user-meta b{display:block;font-size:12.5px;color:#E6ECF8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.user-meta span{font-size:10.5px;color:#7180A3}
.side-logout{border:0;background:rgba(255,255,255,.05);color:#9AA8C4;width:32px;height:32px;border-radius:8px;display:flex;align-items:center;justify-content:center;flex:none}
.side-logout:hover{background:rgba(255,255,255,.12);color:#fff}
.side-logout svg.ico{width:16px;height:16px}

.content{min-width:0;display:flex;flex-direction:column}
.topbar{background:var(--surface);border-bottom:1px solid var(--line);padding:20px 32px;display:flex;align-items:center;justify-content:space-between;gap:16px;position:sticky;top:0;z-index:4}
.topbar-left h1{font-size:20px;font-weight:700;letter-spacing:-.2px}
.topbar-left p{font-size:12.5px;color:var(--muted);margin-top:2px}
.topbar-right{display:flex;align-items:center;gap:9px}
.status-badge{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:600;color:var(--muted);background:var(--surface-soft);border:1px solid var(--line);padding:6px 12px;border-radius:99px}
.status-badge::before{content:"";width:7px;height:7px;border-radius:50%;background:#9AA4B6}
.status-badge.ok{color:var(--ok);background:var(--ok-soft);border-color:#CDEBDC}
.status-badge.ok::before{background:var(--ok)}
.status-badge.busy{color:var(--warn);background:var(--warn-soft);border-color:#F2E0BD}
.status-badge.busy::before{background:var(--warn);animation:pulse 1.4s infinite}
.status-badge.warn{color:var(--danger);background:var(--danger-soft);border-color:#F5D7D7}
.status-badge.warn::before{background:var(--danger)}
@keyframes pulse{50%{opacity:.35}}
.page-wrap{padding:26px 32px 48px;max-width:1320px;width:100%}

/* ============ 面板 / 卡片 ============ */
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow);margin-bottom:18px}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.panel-head h3{font-size:15px;font-weight:700;display:flex;align-items:center;gap:9px}
.panel-head h3::before{content:"";width:3px;height:15px;border-radius:99px;background:var(--primary)}
.panel-hint{font-size:11.5px;color:var(--muted)}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-bottom:18px}
.stat-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;box-shadow:var(--shadow);position:relative;overflow:hidden}
.stat-card::after{content:"";position:absolute;right:-18px;top:-18px;width:70px;height:70px;border-radius:50%;background:var(--primary-soft);opacity:.6}
.stat-card.accent::after{background:var(--accent-soft)}
.stat-card .stat-label{font-size:11.5px;color:var(--muted);font-weight:600;letter-spacing:.2px;position:relative}
.stat-card .stat-value{font-size:27px;font-weight:750;letter-spacing:-.6px;margin-top:7px;position:relative;line-height:1.2}
.stat-card .stat-value.small{font-size:17px;font-weight:700;letter-spacing:0}
.stat-card .stat-foot{font-size:11px;color:var(--muted);margin-top:4px;position:relative}
.kv-list{display:flex;flex-direction:column}
.kv{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:11px 0;border-bottom:1px solid var(--line-soft);font-size:13px}
.kv:last-child{border-bottom:0}
.kv .k{color:var(--muted);flex:none}
.kv .v{font-weight:600;text-align:right;word-break:break-all}
.notice{margin-top:16px;background:var(--surface-soft);border:1px solid var(--line-soft);border-left:3px solid #B9BEF0;border-radius:8px;padding:11px 14px;font-size:12.5px;color:var(--text-2);line-height:1.75}
.steps{list-style:none;counter-reset:step;display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px}
.steps li{counter-increment:step;background:var(--surface-soft);border:1px solid var(--line-soft);border-radius:11px;padding:14px 16px 14px 46px;position:relative}
.steps li::before{content:counter(step);position:absolute;left:14px;top:14px;width:22px;height:22px;border-radius:7px;background:var(--primary-soft);color:var(--primary);font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center}
.steps b{display:block;font-size:13px;font-weight:650}
.steps span{display:block;font-size:12px;color:var(--muted);margin-top:4px;line-height:1.6}

/* ============ 标签 / 表格 ============ */
.tag{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:650;padding:3px 9px;border-radius:99px;background:var(--surface-soft);color:var(--muted);border:1px solid var(--line)}
.tag.ok{background:var(--ok-soft);color:var(--ok);border-color:#CFEBDD}
.tag.warn{background:var(--warn-soft);color:var(--warn);border-color:#F2E0BD}
.tag.danger{background:var(--danger-soft);color:var(--danger);border-color:#F5D7D7}
.tag.info{background:var(--primary-soft);color:var(--primary);border-color:#DCD9FF}
.tag.warm{background:var(--accent-soft);color:#C4551C;border-color:#FADDC8}
.table-wrap{overflow-x:auto;border:1px solid var(--line-soft);border-radius:11px}
table{width:100%;border-collapse:collapse;font-size:12.8px;min-width:640px}
th{text-align:left;padding:11px 14px;background:var(--surface-soft);color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.5px;border-bottom:1px solid var(--line);white-space:nowrap}
td{padding:11px 14px;border-bottom:1px solid var(--line-soft);vertical-align:middle}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover{background:#FAFBFE}
td .cell-sub{font-size:11px;color:var(--muted);margin-top:2px}
.table-empty{text-align:center;padding:34px;color:var(--muted);font-size:13px}
.row-actions{display:flex;gap:4px;flex-wrap:wrap}

/* ============ 扫码绑定 ============ */
.bind-state{display:flex;align-items:center;gap:16px;background:var(--surface-soft);border:1px solid var(--line-soft);border-radius:12px;padding:16px 18px;margin-bottom:18px}
.bind-icon{width:44px;height:44px;border-radius:12px;background:var(--primary-soft);color:var(--primary);display:flex;align-items:center;justify-content:center;flex:none}
.bind-icon svg.ico{width:22px;height:22px}
.bind-icon.ok{background:var(--ok-soft);color:var(--ok)}
.bind-icon.warn{background:var(--accent-soft);color:var(--accent)}
.bind-text b{display:block;font-size:14.5px;font-weight:700}
.bind-text span{display:block;font-size:12.5px;color:var(--muted);margin-top:3px}
.qr-layout{display:flex;gap:28px;align-items:flex-start;flex-wrap:wrap}
.qr-frame{width:246px;height:246px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px;display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow)}
.qr-frame img{width:100%;height:100%;object-fit:contain}
.qr-side{flex:1;min-width:220px}
.qr-status{font-size:14px;font-weight:650;margin-bottom:14px;display:flex;align-items:center;gap:9px}
.qr-status::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--primary);animation:pulse 1.6s infinite;flex:none}
.qr-status.done::before{background:var(--ok);animation:none}
.qr-status.err::before{background:var(--danger);animation:none}
.qr-steps{list-style:none;counter-reset:q;margin-bottom:18px}
.qr-steps li{counter-increment:q;font-size:12.8px;color:var(--text-2);padding:6px 0 6px 26px;position:relative}
.qr-steps li::before{content:counter(q);position:absolute;left:0;top:7px;width:18px;height:18px;border-radius:6px;background:var(--primary-soft);color:var(--primary);font-size:10px;font-weight:700;display:flex;align-items:center;justify-content:center}

/* ============ 好友列表 ============ */
.friend-list{display:flex;flex-direction:column;gap:8px;max-height:min(62vh,620px);overflow-y:auto;margin-top:16px;padding-right:4px}
.friend-row{display:flex;align-items:center;gap:13px;border:1px solid var(--line-soft);border-radius:11px;padding:10px 14px;background:var(--surface);transition:.16s;cursor:pointer}
.friend-row:hover{border-color:#D3D8E8;background:var(--surface-soft)}
.friend-row input{width:16px;height:16px;flex:none}
.friend-avatar{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:14px;flex:none}
.friend-name{font-weight:600;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.friend-days{font-size:11.5px;font-family:var(--mono);font-weight:700;padding:4px 10px;border-radius:99px;background:var(--accent-soft);color:#C4551C;border:1px solid #FADDC8;white-space:nowrap}
.friend-days.none{background:var(--surface-soft);color:var(--muted);border-color:var(--line)}

/* ============ 表单网格 / 开关 ============ */
.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.form-grid.four{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
.switch-list{display:flex;flex-direction:column;gap:10px;margin-top:18px}
.switch-row{display:flex;align-items:center;gap:11px;border:1px solid var(--line-soft);border-radius:10px;padding:12px 14px;background:var(--surface-soft);cursor:pointer;font-size:13px;font-weight:600}
.switch-row input{flex:none}
.switch-row i{font-style:normal;font-weight:400;color:var(--muted);font-size:11.5px;margin-left:auto;text-align:right}
.generated-box{margin-top:18px;border:1px solid var(--line);border-radius:11px;overflow:hidden}
.generated-head{display:flex;justify-content:space-between;align-items:center;background:var(--surface-soft);padding:10px 14px;font-size:12.5px;border-bottom:1px solid var(--line)}
.generated-codes{padding:14px;font-family:var(--mono);font-size:12.5px;line-height:1.9;color:var(--text-2);white-space:pre-wrap;max-height:180px;overflow-y:auto;background:var(--surface)}

/* ============ 日志 ============ */
.log-box{background:#101A2B;color:#B9C6DE;border-radius:11px;padding:16px 18px;font-family:var(--mono);font-size:11.8px;line-height:1.85;white-space:pre-wrap;word-break:break-all;max-height:min(62vh,620px);overflow-y:auto;margin-top:16px;border:1px solid #1E2C44}

/* ============ Toast / Modal ============ */
.toast-wrap{position:fixed;right:22px;bottom:22px;z-index:100;display:flex;flex-direction:column;gap:9px;align-items:flex-end}
.toast{background:#16223A;color:#fff;padding:11px 17px;border-radius:10px;font-size:13px;box-shadow:var(--shadow-lg);display:flex;align-items:center;gap:9px;animation:toastIn .22s ease;max-width:min(90vw,420px)}
.toast::before{content:"";width:7px;height:7px;border-radius:50%;background:#6EE7B7;flex:none}
.toast.err::before{background:#FCA5A5}
.toast.warn::before{background:#FCD34D}
@keyframes toastIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.modal{position:fixed;inset:0;background:rgba(12,20,36,.55);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;z-index:99;padding:20px}
.modal-card{background:var(--surface);border-radius:16px;padding:26px;width:min(100%,400px);box-shadow:var(--shadow-lg)}
.modal-card h3{font-size:16px;font-weight:700}
.modal-card p{font-size:13px;color:var(--text-2);margin-top:10px;line-height:1.7}
.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}

/* ============ 响应式 ============ */
@media(max-width:1080px){
  .app-shell{grid-template-columns:200px 1fr}
  .page-wrap{padding:22px 20px 40px}
  .topbar{padding:16px 20px}
  .grid-2{grid-template-columns:1fr}
  .switch-row i{display:none}
}
@media(max-width:860px){
  .auth-view{grid-template-columns:1fr}
  .auth-brand{display:none}
  .auth-right{min-height:100vh}
  .app-shell{grid-template-columns:1fr}
  .sidebar{position:static;height:auto;flex-direction:row;flex-wrap:wrap;align-items:center;padding:12px}
  .side-brand{border:0;padding:0 8px 0 0}
  .side-nav{flex-direction:row;overflow-x:auto;padding:0;gap:4px;width:100%;order:3}
  .nav-group{display:none}
  .nav-item{width:auto;white-space:nowrap;padding:8px 11px}
  .nav-item.active::before{display:none}
  .side-foot{margin-left:auto;border:0;padding:0}
  .topbar{position:static}
  .topbar-right{flex-wrap:wrap}
}
@media(max-width:560px){
  .auth-card{padding:24px 20px 18px}
  .topbar-left h1{font-size:17px}
  .panel{padding:16px}
  .stat-card .stat-value{font-size:22px}
  .qr-frame{width:210px;height:210px}
}
