:root { color-scheme: light; font-family: "Segoe UI", "Microsoft YaHei", sans-serif; color: #172033; background: #f4f7fb; }
* { box-sizing: border-box; }
body { margin: 0; }
header { height: 64px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; color: white; background: #172c55; }
header div, header span { display: flex; gap: 14px; align-items: center; }
header a { color: white; }
main { width: min(1240px, calc(100% - 40px)); margin: 28px auto; display: grid; gap: 22px; }
.panel, .login-card { background: white; border: 1px solid #dce4ef; border-radius: 14px; padding: 24px; box-shadow: 0 8px 24px rgba(23, 44, 85, .06); }
h1, h2 { margin-top: 0; }
.muted, small { color: #718096; }
small { display: block; margin-top: 4px; }
.error { color: #b42318; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid #e8edf4; vertical-align: top; }
th { color: #53627a; font-weight: 600; }
code { word-break: break-all; font-size: 12px; }
.badge { padding: 4px 9px; border-radius: 20px; background: #e8f0ff; color: #2457a6; }
.grid-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
label { display: grid; gap: 6px; font-weight: 600; }
input { width: 100%; border: 1px solid #cbd5e1; border-radius: 8px; padding: 10px 12px; font: inherit; }
button { border: 0; border-radius: 8px; padding: 10px 18px; color: white; background: #2563eb; cursor: pointer; font: inherit; }
button.secondary { background: #64748b; }
button.danger { background: #b42318; }
button.link { background: none; color: #2563eb; padding: 0; box-shadow: none; }
.wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; }
.title-row { display: flex; justify-content: space-between; gap: 20px; }
.actions { display: flex; gap: 8px; align-items: start; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.metrics article { padding: 16px; border-radius: 10px; background: #f4f7fb; }
.metrics span, .metrics strong { display: block; }
.metrics strong { margin-top: 8px; font-size: 26px; }
.login-body { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #eff5ff, #f7f3ff); }
.login-card { width: min(420px, calc(100% - 32px)); }
.pager { display: flex; gap: 12px; align-items: center; justify-content: flex-end; margin: 12px 0 0; color: #718096; }
.pager a { color: #2563eb; }
@media (max-width: 800px) { .grid-form { grid-template-columns: 1fr; } .metrics { grid-template-columns: repeat(2, 1fr); } .title-row { display: block; } table { display: block; overflow-x: auto; } }
