:root{--tblr-font-sans-serif:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;--tblr-primary:#066fd1}
body{margin:0;background:#f6f8fb;color:#243347;font-size:14px}
[hidden]{display:none!important}button,a,input,select,textarea{outline-offset:3px}
.brand-symbol{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#066fd1;color:white;font-weight:800;font-size:23px}
.admin-layout{min-height:100dvh;display:grid;grid-template-columns:224px minmax(0,1fr)}
.sidebar{background:#fff;border-right:1px solid #e5eaf0;padding:28px 16px;display:flex;flex-direction:column;position:sticky;top:0;height:100dvh}
.sidebar-brand{display:flex;align-items:center;gap:11px;padding:0 10px 36px;font-weight:750;font-size:20px;letter-spacing:-.5px;text-decoration:none;color:inherit}
.sidebar-brand small{display:block;font-size:11px;letter-spacing:1.6px;color:#758194;font-weight:500;margin-top:2px}
.nav-caption{font-size:11px;color:#8490a0;letter-spacing:1px;margin:0 14px 12px}
#navigation{display:grid;gap:6px}#navigation a{border-radius:7px;padding:12px 16px;color:#5e6d80;font-weight:500;text-decoration:none}
#navigation a:hover{background:#f5f8fc;color:#243347}#navigation a[aria-current=page]{background:#eaf3fd;color:#066fd1;box-shadow:inset 3px 0 #066fd1}
.sidebar-footer{margin-top:auto;padding:22px 10px 0;border-top:1px solid #edf0f4;color:#718096;font-size:11px;display:flex;align-items:center;gap:8px}
.access-indicator{width:6px;height:6px;border-radius:50%;background:#2a995f}
.workspace{min-width:0;display:flex;flex-direction:column}.topbar{height:72px;border-bottom:1px solid #e5eaf0;display:flex;align-items:center;justify-content:space-between;padding:0 38px;background:rgba(255,255,255,.9);gap:16px}
.topbar-label{font-size:12px;color:#7d8998}.account-actions{display:flex;align-items:center;gap:18px}.account-actions span{font-weight:600;font-size:13px}
main{width:100%;max-width:1560px;padding:34px 38px 40px;margin:0 auto;flex:1;min-width:0}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.page-heading h1{font-size:27px;letter-spacing:-.7px;margin:0;font-weight:700}
.page-heading p{font-size:12px}.btn{white-space:nowrap}.card{border:1px solid #e3e9f0;box-shadow:0 2px 4px #25375003;border-radius:10px}.card-header{padding:20px 24px;min-height:unset}.card-title{font-size:15px;font-weight:650}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:24px}.stat-card{padding:22px 24px}.stat-value{font-size:34px;font-weight:650;letter-spacing:-1px;line-height:1.3;margin:12px 0 7px}.stat-title{color:#65758a;font-size:12px}.stat-hint{color:#8995a5;font-size:11px}
.overview-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:24px}.info-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:15px 0;border-bottom:1px solid #edf0f5}.info-row:last-child{border:0}.info-row span:first-child{color:#718096}
.content-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin-bottom:20px}.content-toolbar label{display:block;color:#68788c;font-size:12px;margin-bottom:6px}.content-toolbar input{min-width:230px}.content-toolbar select{min-width:145px}.content-toolbar .toolbar-action{margin-left:auto}
.table{font-size:13px;margin-bottom:0}.table thead th{font-size:11px;color:#788698;font-weight:600;letter-spacing:.2px;background:#fafbfd;padding:14px 20px;border-bottom:1px solid #e8edf3}.table td{padding:17px 20px;vertical-align:middle}.table .cell-secondary{font-size:11px;color:#8491a1;margin-top:4px}.cell-name{font-weight:600;color:#33445b}.row-actions{display:flex;gap:8px;justify-content:end}.row-actions .btn{font-size:12px;padding:5px 10px}.table-responsive{border-radius:10px 10px 0 0}
.cell-secondary{font-size:12px;font-weight:400;color:#7b899b;margin-top:5px}
.pager{display:flex;gap:12px;align-items:center;justify-content:flex-end;border-top:1px solid #e8edf3;padding:16px 20px;font-size:12px;color:#788698}.pager-info{margin-right:auto}
.empty-state{padding:62px 24px;text-align:center}.empty-state h3{font-size:16px;font-weight:600}.empty-state p{margin-bottom:0;color:#7d8b9d}
.summary-list{display:flex;flex-wrap:wrap;gap:9px}.summary-chip{display:inline-flex;gap:12px;padding:8px 12px;border:1px solid #e5ebf3;border-radius:6px;font-size:12px;background:#fff}.summary-chip strong{color:#066fd1}
.notice-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.notice-card{margin-bottom:16px}.notice-card .card-body{padding:22px 24px}.notice-meta{display:flex;gap:12px;align-items:center;margin-bottom:12px}.notice-card .row-actions{margin-top:18px}
.badge{font-size:11px;font-weight:500}.section-note{font-size:12px;color:#7d8a9c;margin-bottom:20px;line-height:1.8}
.workspace-footer{padding:20px 38px;display:flex;justify-content:space-between;border-top:1px solid #e7ecf2;font-size:11px;color:#8793a3;gap:15px}
.login-layout{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px;background:radial-gradient(ellipse at 50% 20%,#eaf3ff 0,transparent 60%),#f6f8fb}
.login-brand{display:flex;align-items:center;gap:11px;font-size:23px;font-weight:750;margin-bottom:26px}.login-card{width:min(420px,100%)}.login-card .card-body{padding:32px}.login-note{font-size:11px;margin-top:24px}
dialog{padding:0;width:min(560px,calc(100vw - 32px));max-height:90dvh;border:1px solid #dfe6ef;border-radius:12px;box-shadow:0 24px 90px #0c203c30;color:#243347}
dialog::backdrop{background:#14243b55}.dialog-header{padding:20px 24px;border-bottom:1px solid #e5eaf0;display:flex;align-items:center;justify-content:space-between;gap:16px}.dialog-body{padding:24px;max-height:65dvh;overflow:auto}.dialog-footer{display:flex;justify-content:flex-end;gap:12px;padding:16px 24px;border-top:1px solid #e5eaf0}.dialog-body .form-label{margin-top:16px}.dialog-body .form-label:first-child{margin-top:0}
.skeleton{height:280px;background:linear-gradient(#f0f3f8 20px,transparent 20px) 24px 24px/75% 48px repeat-y;border:1px solid #e3e9f0;border-radius:10px;background-color:white}
.backup-card{max-width:800px}.backup-card .card-body{padding:28px}.backup-card li{margin-bottom:12px;color:#68788c}.backup-result{overflow-wrap:anywhere;font-size:12px;line-height:1.9}
.log-details{font-size:11px;max-width:500px;white-space:pre-wrap;overflow-wrap:anywhere}
.user-row{cursor:pointer}.table .user-row:hover>td{background:#f0f6fd}.user-row:focus-visible{outline:2px solid #066fd1;outline-offset:-2px}
body.user-details-open{overflow:hidden}
dialog.user-drawer{position:fixed;inset:0;margin:0 0 0 auto;width:min(560px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-left:1px solid #dfe6ef;border-radius:0;box-shadow:-12px 0 48px #0c203c20;overflow:hidden;background:#fff}
.user-drawer[open]{display:flex;flex-direction:column;animation:user-drawer-in .18s ease-out}
.user-drawer .dialog-header{flex-shrink:0;padding:24px;align-items:flex-start}
.user-drawer-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:24px}
.user-drawer-footer{flex-shrink:0;padding:16px 24px;border-top:1px solid #e5eaf0;background:#fafbfd;color:#64748b;font-size:12px;line-height:1.6}
.user-profile{padding:0 0 24px;display:flex;align-items:center;gap:16px}
.user-monogram{display:grid;place-items:center;width:52px;height:52px;flex-shrink:0;border-radius:12px;background:#eaf3fd;color:#066fd1;font-size:23px;font-weight:700}
.user-profile h3{font-size:19px;margin:0 0 6px;overflow-wrap:anywhere}.user-profile-meta{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.user-detail-section+.user-detail-section{margin-top:28px;padding-top:24px;border-top:1px solid #e8edf3}
.user-detail-section h3{font-size:13px;font-weight:650;margin:0 0 16px}
.user-detail-list{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px 16px;margin:0;font-size:13px;line-height:1.7}
.user-detail-list dt{color:#64748b;font-weight:400}.user-detail-list dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.user-detail-note{font-size:12px;line-height:1.8;color:#64748b;margin:14px 0 0}
@keyframes user-drawer-in{from{transform:translateX(100%)}to{transform:translateX(0)}}
@media(max-width:1000px){.admin-layout{grid-template-columns:185px minmax(0,1fr)}.sidebar{padding:24px 10px}.topbar{padding:0 24px}main{padding:28px 24px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-grid{grid-template-columns:1fr}}
@media(max-width:650px){.admin-layout{display:block}.sidebar{position:static;height:auto;padding:18px 14px}.sidebar-brand{padding:0 4px 16px}.nav-caption,.sidebar-footer{display:none}#navigation{display:flex;overflow:auto;gap:4px}#navigation a{white-space:nowrap;padding:9px 11px}.topbar{padding:0 18px;height:60px}.topbar-label{display:none}main{padding:24px 16px}.workspace-footer{padding:18px 16px}.stats-grid{gap:12px}.stat-card{padding:18px}.stat-value{font-size:29px}.content-toolbar input{min-width:180px}.page-heading h1{font-size:24px}.workspace-footer span:last-child{display:none}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
