
:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #6b7280;
  --brand: #1f4b99;
  --line: #d7dce5;
  --good: #047857;
  --bad: #b91c1c;
  --warn: #b45309;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--ink); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar { background: linear-gradient(135deg, #102a57, #1f4b99); color: white; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar h1 { margin: 0; font-size: 22px; }
.topbar nav a { color: white; margin-right: 16px; font-weight: 600; }
.container { max-width: 1400px; margin: 0 auto; padding: 24px; }
.grid { display: grid; gap: 16px; }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.two-col { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); }
.card h2, .card h3 { margin-top: 0; }
.stat { font-size: 34px; font-weight: 800; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eef2ff; color: #4338ca; }
.pill.good { background: #dcfce7; color: var(--good); }
.pill.bad { background: #fee2e2; color: var(--bad); }
.pill.warn { background: #fef3c7; color: var(--warn); }
form { display: grid; gap: 12px; }
input, select, textarea { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); font: inherit; background: white; }
textarea { min-height: 110px; }
button, .button { display: inline-block; border: 0; border-radius: 10px; padding: 10px 14px; font-weight: 700; background: var(--brand); color: white; cursor: pointer; }
button.secondary, .button.secondary { background: #e5e7eb; color: #111827; }
button.danger { background: #b91c1c; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.flash { margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; background: #eff6ff; border: 1px solid #bfdbfe; }
.flash.error { background: #fef2f2; border-color: #fecaca; }
.flash.ok { background: #ecfdf5; border-color: #a7f3d0; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(440px, 100%); }
.file-list li { margin-bottom: 10px; }
.nowrap { white-space: nowrap; }
pre { white-space: pre-wrap; margin: 0; }
code { background: #f3f4f6; padding: 2px 6px; border-radius: 6px; }
@media (max-width: 1000px) { .grid.cols-4, .two-col { grid-template-columns: 1fr; } }
