:root { font-family: Inter, "Microsoft YaHei", sans-serif; color: #172033; background: #f3f6fb; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button { border: 0; cursor: pointer; border-radius: 8px; background: #3159d7; color: #fff; padding: 10px 15px; font-weight: 650; }
button.secondary { background: #e8edf8; color: #263657; }
button.danger { background: #c53441; }
button:disabled { opacity: .55; cursor: default; }
input, select { width: 100%; border: 1px solid #d4dcea; border-radius: 8px; padding: 10px 11px; background: #fff; color: #172033; }
label { display: grid; gap: 6px; color: #526078; font-size: 13px; font-weight: 650; }
.hidden { display: none !important; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 15% 20%, #ced9ff 0, transparent 35%), #f6f8fd; }
.login-card { width: min(400px, calc(100vw - 32px)); display: grid; gap: 16px; padding: 36px; border-radius: 18px; background: #fff; box-shadow: 0 18px 55px #29416c22; }
.login-card h1 { margin: 0; font-size: 28px; }
.login-card p { margin: -6px 0 10px; color: #71809a; }
.eyebrow { color: #3159d7; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.error { color: #bf2634; min-height: 18px; font-size: 13px; }
.app { min-height: 100vh; display: grid; grid-template-columns: 230px 1fr; }
aside { background: #17233f; color: #dce5fb; padding: 26px 16px; display: flex; flex-direction: column; gap: 35px; }
.brand { display: grid; grid-template-columns: 42px 1fr; align-items: center; column-gap: 10px; }
.brand span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #5274ee; color: white; font-weight: 800; }
.brand b { font-size: 16px; }
.brand small { grid-column: 2; margin-top: -5px; color: #94a4c7; }
nav { display: grid; gap: 7px; }
.nav, .logout { background: transparent; color: #b7c3df; text-align: left; }
.nav.active, .nav:hover { background: #2a3c65; color: #fff; }
.logout { margin-top: auto; }
.content { padding: 30px 36px; overflow-x: auto; }
.content > header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.content > header h1 { margin: 0; font-size: 24px; }
.content > header p { margin: 4px 0 0; color: #71809a; font-size: 13px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat { background: #fff; border-radius: 14px; padding: 22px 20px; box-shadow: 0 3px 14px #1b284713; }
.stat b { font-size: 32px; color: #3159d7; display: block; }
.stat span { color: #71809a; margin-top: 6px; }
.guide { background: #fff; border-radius: 14px; padding: 24px; box-shadow: 0 3px 14px #1b284713; }
.guide h2 { margin: 0 0 14px; }
.guide ol { margin: 0; padding-left: 20px; color: #526078; line-height: 2; }
.toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar input, .toolbar select { width: auto; min-width: 200px; }
.table-wrap { background: #fff; border-radius: 14px; box-shadow: 0 3px 14px #1b284713; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #eef2f8; font-size: 14px; }
th { background: #f8fafd; color: #526078; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.actions button { padding: 5px 10px; font-size: 12px; }
.badge { padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 650; }
.badge.active { background: #def1e0; color: #1a6e2a; }
.badge.disabled { background: #ffe7e9; color: #a12535; }
dialog { border: 0; border-radius: 16px; padding: 0; box-shadow: 0 14px 48px #1b284738; width: min(480px, calc(100vw - 32px)); }
dialog::backdrop { background: #0006; }
.modal { display: grid; gap: 16px; padding: 28px; }
.modal header { display: flex; justify-content: space-between; align-items: center; }
.modal header h2 { margin: 0; }
.modal footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.icon { background: transparent; color: #71809a; font-size: 22px; padding: 0 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { color: #8d9ab4; font-size: 12px; margin: 0; }
.checkbox { display: flex; align-items: center; gap: 8px; }
.checkbox input { width: auto; }
code { background: #eef2f8; padding: 2px 8px; border-radius: 5px; font-size: 13px; }
.role-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.guide + .guide { margin-top: 16px; }
.info-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; color: #526078; }
.info-list small { display: block; color: #71809a; font-size: 12px; margin-bottom: 4px; }
.info-list b { color: #172033; }
