:root { font-family: Inter, "Microsoft YaHei", Arial, sans-serif; color: #172033; background: #f4f6f9; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 1080px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 1px solid #d6dbe4; background: #fff; border-radius: 6px; padding: 9px 14px; color: #344054; }
button:hover { border-color: #2684ff; color: #1769cc; }
button:disabled { cursor: not-allowed; opacity: .55; }
.hidden { display: none !important; }
.primary { color: #fff; background: #1769e0; border-color: #1769e0; }
.primary:hover { color: #fff; background: #0d59c7; }
.full { width: 100%; height: 42px; }
.login-shell { min-height: 100vh; display: grid; place-items: center; background: #172033; }
.login-panel { width: 380px; padding: 34px; background: #fff; border-radius: 8px; box-shadow: 0 24px 70px #0006; }
.login-panel h1 { margin: 18px 0 4px; font-size: 24px; }
.login-panel p { color: #667085; margin: 0 0 26px; }
.login-panel label, #dialog-fields label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; margin-bottom: 17px; }
input, select, textarea { width: 100%; border: 1px solid #ccd3df; border-radius: 6px; padding: 10px 11px; outline: none; background: #fff; }
input:focus, select:focus, textarea:focus { border-color: #2684ff; box-shadow: 0 0 0 3px #2684ff1f; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; color: #fff; font-size: 23px; font-weight: 800; background: #1769e0; border-radius: 7px; }
.brand-mark.small { width: 34px; height: 34px; font-size: 17px; flex: none; }
.error { min-height: 20px; margin-top: 12px; color: #cf3030; font-size: 13px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; }
aside { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; color: #dce4f2; background: #172033; }
.brand { height: 72px; padding: 18px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid #ffffff12; }
.brand strong, .brand small { display: block; }
.brand small { margin-top: 3px; color: #8f9bb0; font-size: 10px; }
nav { padding: 18px 10px; flex: 1; }
.nav-label { padding: 4px 12px 10px; color: #8f9bb0; font-size: 12px; font-weight: 600; }
.nav-item { width: 100%; min-height: 42px; display: flex; gap: 10px; align-items: center; border: 0; color: #b9c3d3; background: transparent; text-align: left; margin-bottom: 5px; }
.nav-item:hover, .nav-item.active { color: #fff; background: #ffffff12; }
.nav-item.active { box-shadow: inset 3px 0 #4b9cff; }
.nav-item:disabled { color: #68758b; background: transparent; opacity: 1; }
.logout { margin: 14px; color: #b9c3d3; background: transparent; border-color: #ffffff20; }
main { min-width: 0; }
header { height: 82px; padding: 16px 28px; display: flex; align-items: center; justify-content: space-between; background: #fff; border-bottom: 1px solid #e3e7ed; }
header h2 { margin: 0 0 3px; font-size: 20px; }
header p { margin: 0; color: #778196; font-size: 12px; }
#current-user { color: #667085; font-size: 13px; }
.view { padding: 24px 28px; }
.toolbar { min-height: 58px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; }
.stats { display: flex; gap: 42px; }
.stats div { display: flex; align-items: baseline; gap: 8px; }
.stats b { font-size: 25px; }
.stats span { color: #778196; font-size: 12px; }
.user-stats { padding: 0 2px 18px; }
.filters { display: flex; gap: 8px; }
.filters input { width: 230px; }
.filters select { width: 150px; }
.table-wrap { overflow: hidden; background: #fff; border: 1px solid #e0e5ec; border-radius: 7px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 12px 15px; color: #667085; background: #f8f9fb; font-weight: 600; text-align: left; border-bottom: 1px solid #e4e8ee; }
td { padding: 14px 15px; border-bottom: 1px solid #edf0f4; }
tr:last-child td { border-bottom: 0; }
.code { font-family: Consolas, monospace; color: #1769e0; font-weight: 700; letter-spacing: .4px; }
.tag { display: inline-block; border-radius: 4px; padding: 3px 7px; font-size: 12px; }
.tag.ok { color: #087443; background: #e7f7ee; }
.tag.off { color: #a33a31; background: #fff0ed; }
.actions { display: flex; gap: 7px; flex-wrap: wrap; }
.actions button { padding: 5px 8px; font-size: 12px; }
.quota-select { width: 106px; padding: 6px 8px; }
.muted-text { color: #98a2b3; }
.danger { color: #b42318; }
.pagination { margin-top: 16px; display: flex; justify-content: flex-end; align-items: center; gap: 12px; color: #667085; font-size: 13px; }
dialog { width: 460px; border: 0; border-radius: 8px; padding: 0; box-shadow: 0 22px 70px #0005; }
dialog::backdrop { background: #10182899; }
#dialog-form { padding: 22px; }
.dialog-head, .dialog-actions { display: flex; align-items: center; justify-content: space-between; }
.dialog-head { margin-bottom: 20px; border-bottom: 1px solid #e5e8ed; }
.dialog-head h3 { margin: 0 0 16px; }
.icon-btn { border: 0; padding: 5px 9px; font-size: 20px; }
.dialog-actions { justify-content: flex-end; gap: 9px; padding-top: 8px; }
#toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 20; padding: 10px 16px; color: #fff; background: #172033; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .2s; }
#toast.show { opacity: 1; }
.empty { padding: 42px; color: #98a2b3; text-align: center; }
