:root { font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; color: #172033; background: #f4f6fa; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 960px; min-height: 100vh; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.login-view { display: grid; min-height: 100vh; place-items: center; padding: 32px; background: radial-gradient(circle at 20% 15%, rgba(91,114,255,.24), transparent 28%), radial-gradient(circle at 85% 80%, rgba(41,200,176,.18), transparent 30%), #eff2f8; }
.login-card { width: 430px; padding: 44px; border: 1px solid rgba(255,255,255,.9); border-radius: 28px; background: rgba(255,255,255,.93); box-shadow: 0 28px 80px rgba(30,42,78,.16); backdrop-filter: blur(16px); }
.logo-mark { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 17px; color: #fff; background: linear-gradient(145deg,#5d6cff,#3048e8); box-shadow: 0 12px 26px rgba(63,78,229,.3); font-size: 25px; font-weight: 800; }
.logo-mark.small { width: 38px; height: 38px; border-radius: 12px; font-size: 18px; }
.login-heading { margin: 28px 0 30px; }
.login-heading span, .eyebrow, .dialog-head span { color: #5267f8; font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.login-heading h1 { margin: 8px 0; font-size: 28px; }
.login-heading p, header p { margin: 0; color: #8790a5; font-size: 13px; }
label { display: grid; gap: 8px; color: #5d6679; font-size: 12px; font-weight: 700; }
.login-card form { display: grid; gap: 17px; }
input, select { width: 100%; height: 44px; padding: 0 13px; border: 1px solid #d9deea; border-radius: 11px; outline: none; color: #172033; background: #fbfcfe; transition: .15s; }
input:focus, select:focus { border-color: #5367f4; background: #fff; box-shadow: 0 0 0 4px rgba(83,103,244,.1); }
.login-card button, .primary { height: 44px; border: 0; border-radius: 11px; color: #fff; background: linear-gradient(135deg,#5d6cff,#334be8); box-shadow: 0 10px 22px rgba(61,79,231,.22); font-weight: 700; }
.login-card button { margin-top: 5px; }
button:disabled { cursor: wait; opacity: .6; }
.form-error { min-height: 18px; color: #dc3648; font-size: 12px; }
.admin-view { display: grid; grid-template-columns: 224px 1fr; min-height: 100vh; }
aside { position: fixed; inset: 0 auto 0 0; display: flex; width: 224px; flex-direction: column; padding: 24px 16px; color: #fff; background: #151a2d; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 7px 30px; }
.brand > div:last-child { display: grid; gap: 2px; }
.brand strong { font-size: 13px; letter-spacing: .08em; }
.brand span { color: #8f98b3; font-size: 11px; }
nav button { width: 100%; height: 44px; padding: 0 15px; border: 0; border-radius: 11px; color: #aab2c9; text-align: left; background: transparent; }
nav button.active { color: #fff; background: #5365ef; box-shadow: 0 10px 26px rgba(33,49,174,.35); }
.aside-footer { display: grid; gap: 10px; margin-top: auto; padding: 18px 8px 0; border-top: 1px solid rgba(255,255,255,.09); }
.aside-footer span { overflow: hidden; color: #c9cede; font-size: 12px; text-overflow: ellipsis; }
.aside-footer button { padding: 0; border: 0; color: #8f98b3; text-align: left; background: none; font-size: 11px; }
.admin-view main { grid-column: 2; padding: 46px 54px 60px; }
header { display: flex; align-items: flex-end; justify-content: space-between; }
header h1 { margin: 7px 0 6px; font-size: 30px; }
header .primary { min-width: 112px; padding: 0 20px; }
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin: 32px 0 20px; }
.stats article { display: grid; gap: 10px; padding: 20px 22px; border: 1px solid #e6e9f1; border-radius: 16px; background: #fff; box-shadow: 0 8px 28px rgba(35,47,78,.05); }
.stats span { color: #8a93a8; font-size: 12px; }
.stats strong { font-size: 26px; }
.table-card { overflow: hidden; border: 1px solid #e5e8f0; border-radius: 18px; background: #fff; box-shadow: 0 12px 34px rgba(35,47,78,.06); }
.toolbar { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid #edf0f5; }
.toolbar h2 { margin: 0 0 4px; font-size: 16px; }
.toolbar span { color: #929bae; font-size: 11px; }
.search input { width: 240px; height: 38px; padding-left: 15px; }
table { width: 100%; border-collapse: collapse; }
th { padding: 12px 20px; color: #8f98aa; text-align: left; background: #fafbfc; font-size: 10px; letter-spacing: .04em; }
td { padding: 17px 20px; border-top: 1px solid #f0f2f6; color: #4d5669; font-size: 12px; }
.user-cell { display: grid; gap: 3px; }
.user-cell strong { color: #20283a; font-size: 13px; }
.user-cell span { color: #939bad; font-size: 10px; }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; background: #eef1ff; color: #4d5fe3; font-size: 10px; font-weight: 700; }
.badge.active { background: #e9f8f2; color: #16865d; }
.badge.disabled { background: #fff0f1; color: #d33b4c; }
.edit-button { padding: 7px 10px; border: 0; border-radius: 8px; color: #5365ef; background: #eef1ff; font-size: 11px; font-weight: 700; }
.empty { padding: 50px; color: #929bae; text-align: center; }
dialog { width: 600px; padding: 0; border: 0; border-radius: 20px; box-shadow: 0 28px 90px rgba(20,28,53,.28); }
dialog::backdrop { background: rgba(18,24,43,.55); backdrop-filter: blur(3px); }
#userForm { padding: 28px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; }
.dialog-head h2 { margin: 6px 0 0; font-size: 22px; }
.icon-button { width: 34px; height: 34px; border: 0; border-radius: 9px; color: #737d91; background: #f1f3f7; font-size: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label small { color: #9aa2b2; font-size: 10px; font-weight: 400; }
.dialog-actions { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.dialog-actions span { flex: 1; }
.dialog-actions button { min-width: 100px; height: 40px; padding: 0 15px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.secondary { border: 1px solid #dfe3eb; color: #657086; background: #fff; }
.danger { border: 1px solid #ffd4d8; color: #d6384a; background: #fff4f5; }
.toast { position: fixed; z-index: 10; right: 28px; bottom: 28px; padding: 13px 18px; border-radius: 11px; color: #fff; background: #20283b; box-shadow: 0 12px 36px rgba(23,31,50,.25); font-size: 12px; }
@media (max-width: 1180px) { .admin-view main { padding: 38px 30px; } .stats { gap: 10px; } th, td { padding-right: 13px; padding-left: 13px; } }
