* { box-sizing: border-box; }
body { margin: 0; font-family: "Microsoft YaHei", "Segoe UI", sans-serif; color: #172033; background: #f5f7fb; }
a { color: #0d6efd; text-decoration: none; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 220px; background: #101828; color: white; padding: 20px 14px; }
.brand { font-size: 18px; font-weight: 700; margin: 8px 8px 28px; }
.sidebar nav { display: grid; gap: 8px; }
.sidebar a { color: #d6e2ff; padding: 10px 12px; border-radius: 6px; }
.sidebar a:hover { background: #1d2a44; }
.main { margin-left: 220px; min-height: 100vh; }
.topbar { height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; background: white; border-bottom: 1px solid #e5eaf2; font-weight: 700; }
.panel { margin: 20px 24px; padding: 20px; background: white; border: 1px solid #e7ebf2; border-radius: 8px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 24px; }
.card { background: white; border: 1px solid #e7ebf2; border-radius: 8px; padding: 20px; display: grid; gap: 6px; }
.card strong { font-size: 30px; }
h1, h2, h3 { margin-top: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid #edf1f6; padding: 10px; text-align: left; vertical-align: top; }
input, select, textarea { width: 100%; min-height: 34px; border: 1px solid #cfd7e3; border-radius: 6px; padding: 6px 8px; font: inherit; }
textarea { min-height: 120px; }
button { min-height: 34px; border: 0; border-radius: 6px; background: #0d6efd; color: white; padding: 6px 14px; cursor: pointer; }
.grid-form { display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)) auto; gap: 10px; align-items: end; }
.stack-form { display: grid; gap: 10px; max-width: 760px; }
.inline { display: inline-block; margin-right: 6px; }
.role-box { border: 1px solid #edf1f6; border-radius: 8px; padding: 14px; margin-bottom: 14px; }
.check { display: inline-flex; gap: 8px; align-items: center; min-width: 240px; margin: 6px 14px 6px 0; }
.check input { width: auto; min-height: auto; }
.check small { color: #667085; }
.notice { color: #0d6efd; }
.error { color: #b42318; margin: 10px 0; }
.login-body { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #e9f2ff, #f7fbff); }
.login-card { width: 360px; padding: 28px; background: white; border: 1px solid #e7ebf2; border-radius: 10px; box-shadow: 0 20px 60px #1d293914; display: grid; gap: 10px; }
.login-card h1 { font-size: 22px; margin-bottom: 10px; }
