:root { color-scheme: light; font-family: Inter, "Microsoft YaHei", system-ui, sans-serif; color: #172033; background: #f3f7fc; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 10% 0%, #dfeeff, transparent 28rem), #f4f7fb; }
a { color: #1677ff; text-decoration: none; }
button, input { font: inherit; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 68px; padding: 0 28px; color: #fff; background: #101828; box-shadow: 0 4px 20px #10182825; }
.brand { font-size: 20px; font-weight: 800; letter-spacing: .04em; }
.container { width: min(1480px, calc(100% - 40px)); margin: 28px auto 56px; }
.grid { display: grid; gap: 20px; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat, .card { background: #fff; border: 1px solid #e5eaf1; border-radius: 16px; box-shadow: 0 10px 35px #263d5d0d; }
.stat { padding: 22px; }
.stat strong { display: block; margin-top: 6px; font-size: 30px; }
.card { margin-top: 20px; overflow: hidden; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid #edf0f4; }
.card-header h2 { margin: 0; font-size: 18px; }
.card-body { padding: 20px 22px; }
.form-row { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr) auto; gap: 12px; align-items: end; }
.feature-fieldset { grid-column: 1 / -2; border: 1px solid #dbe4f0; border-radius: 10px; padding: 10px 12px; margin: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(90px, 1fr)); gap: 8px 14px; }
.feature-grid.compact { grid-template-columns: repeat(2, minmax(100px, 1fr)); margin: 10px 0; }
.check { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.check input { width: 16px; min-height: 0; padding: 0; }
.license-config { margin-top: 10px; min-width: 280px; }
.license-config summary { color: #1668dc; cursor: pointer; margin-bottom: 8px; }
.license-config form { display: grid; gap: 8px; }
label { display: grid; gap: 6px; color: #536075; font-size: 13px; }
input { width: 100%; min-height: 40px; padding: 8px 11px; border: 1px solid #d7dee8; border-radius: 8px; outline: none; }
input:focus { border-color: #1677ff; box-shadow: 0 0 0 3px #1677ff1c; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 15px; border: 1px solid #d7dee8; border-radius: 8px; color: #172033; background: #fff; cursor: pointer; }
.btn-primary { color: #fff; border-color: #1677ff; background: #1677ff; }
.btn-danger { color: #b42318; border-color: #fecdca; background: #fff5f4; }
.btn-warning { color: #93370d; border-color: #fedf89; background: #fffaeb; }
.inline { display: inline-flex; align-items: center; gap: 8px; }
.notice { margin: 0 0 18px; padding: 14px 16px; border-radius: 10px; background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }
.code { margin-top: 12px; padding: 15px; border: 1px dashed #1677ff; border-radius: 10px; font: 700 20px ui-monospace, monospace; color: #0958d9; background: #eef6ff; user-select: all; }
.error { margin-bottom: 12px; color: #b42318; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 12px 10px; text-align: left; border-bottom: 1px solid #edf0f4; vertical-align: top; }
th { color: #536075; background: #f8fafc; font-weight: 650; }
.badge { display: inline-flex; padding: 3px 8px; border-radius: 999px; font-size: 12px; color: #067647; background: #ecfdf3; }
.badge.off { color: #b42318; background: #fef3f2; }
.muted { color: #778399; }
.device { margin-top: 8px; padding: 9px; border-radius: 8px; background: #f8fafc; }
.login-shell { display: grid; min-height: 100vh; place-items: center; padding: 30px; }
.login-card { width: min(440px, 100%); padding: 34px; background: #fff; border: 1px solid #e5eaf1; border-radius: 20px; box-shadow: 0 24px 70px #1b355526; }
.login-card h1 { margin: 0 0 8px; }
.login-card form { display: grid; gap: 16px; margin-top: 28px; }
.login-card .btn { width: 100%; }
.pagination { padding: 18px 22px; }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(2, 1fr); } .form-row { grid-template-columns: repeat(2, 1fr); } .table-wrap { overflow-x: auto; } }
