:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --line:#e5e7eb;
  --primary:#2563eb;
  --danger:#dc2626;
  --shadow:0 8px 24px rgba(17,24,39,.08);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,"PingFang SC","Microsoft YaHei",sans-serif;
  background:var(--bg);
  color:var(--text);
}
.layout{display:flex; min-height:100vh}
.sidebar{
  width:220px;
  background:var(--card);
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
}
.brand{
  padding:18px 16px;
  font-weight:700;
  border-bottom:1px solid var(--line);
}
.menu{padding:10px}
.menu-item{
  display:block;
  padding:10px 12px;
  margin:6px 0;
  border-radius:10px;
  color:var(--text);
  text-decoration:none;
}
.menu-item:hover{background:#f3f4f6}
.menu-item.active{background:#eef2ff; color:#1d4ed8}
.sidebar-footer{margin-top:auto; padding:14px 16px; border-top:1px solid var(--line)}
.link{color:var(--muted); text-decoration:none}
.link:hover{color:var(--text)}
.main{flex:1; padding:18px}
.topbar{display:flex; justify-content:space-between; align-items:center; margin-bottom:12px}
.topbar-title{font-weight:700}
.card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:var(--shadow);
  overflow:hidden;
}
.filters{
  display:flex;
  gap:12px;
  padding:14px;
  border-bottom:1px solid var(--line);
  align-items:flex-end;
}
.field{flex:1}
.field.actions{flex:0 0 auto; display:flex; gap:10px}
.label{font-size:12px; color:var(--muted); margin-bottom:6px}
.input,.select{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:10px;
  outline:none;
  background:#fff;
}
.input:focus,.select:focus{border-color:#c7d2fe; box-shadow:0 0 0 3px rgba(99,102,241,.15)}
.btn{
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--line);
  background:#fff;
  cursor:pointer;
}
.btn:hover{background:#f9fafb}
.btn-primary{background:var(--primary); border-color:var(--primary); color:#fff}
.btn-primary:hover{filter:brightness(.95)}
.btn-danger{background:var(--danger); border-color:var(--danger); color:#fff}
.btn-danger:hover{filter:brightness(.95)}
.table-wrap{overflow:auto}
.table{width:100%; border-collapse:separate; border-spacing:0}
.table th,.table td{padding:12px 14px; border-bottom:1px solid var(--line); font-size:13px; vertical-align:top}
.table th{background:#fafafa; text-align:left; color:#374151; font-weight:600}
.table tr:hover td{background:#fcfcff}
.pager{display:flex; align-items:center; justify-content:center; gap:14px; padding:14px}
.pager-info{color:var(--muted)}
.footer{margin-top:12px; color:var(--muted); font-size:12px}
.auth-wrap{min-height:100vh; display:flex; align-items:center; justify-content:center; padding:24px}
.auth-card{width:380px; background:var(--card); border:1px solid var(--line); border-radius:16px; box-shadow:var(--shadow); padding:18px}
.auth-title{font-size:18px; font-weight:800; margin-bottom:12px}
.auth-form{display:flex; flex-direction:column; gap:10px}
.alert{padding:10px 12px; border-radius:10px; font-size:13px}
.alert-danger{background:#fef2f2; border:1px solid #fee2e2; color:#991b1b}
.auth-hint{margin-top:12px; color:var(--muted); font-size:12px}
.op{display:flex; gap:8px}
.small{color:var(--muted); font-size:12px; margin-top:4px}
