:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1f2a37;
  --muted: #697586;
  --line: #d7deea;
  --brand: #2156d9;
  --success: #e8fff0;
  --error: #ffe9e9;
  --info: #eaf3ff;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--text); }
.topbar { background: #102241; color: #fff; padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topbar a { color: #d8e5ff; text-decoration: none; margin-right: 12px; }
.container { max-width: 1180px; margin: 20px auto; padding: 0 16px 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 18px; box-shadow: 0 4px 18px rgba(15,20,30,.05); }
h1, h2, h3 { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 16px; }
label { display: block; margin-bottom: 12px; font-weight: 600; }
input, select, textarea, button { width: 100%; padding: 10px 12px; border: 1px solid #c9d4e5; border-radius: 10px; font: inherit; }
button, .button { background: var(--brand); color: #fff; border: none; cursor: pointer; text-decoration: none; display: inline-block; width: auto; }
button.secondary, .button.secondary { background: #5d6b82; }
button.danger, .button.danger { background: #c33535; }
small, .muted { color: var(--muted); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.stat { font-size: 28px; font-weight: 700; }
.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; }
.alert.success { background: var(--success); }
.alert.error { background: var(--error); }
.alert.info { background: var(--info); }
.badge { display:inline-block; padding: 4px 10px; border-radius:999px; font-size:12px; background:#edf2ff; color:#2140a8; }
.inline-form { display:flex; gap:8px; flex-wrap:wrap; align-items:end; }
.inline-form > * { flex: 1 1 180px; }
.kpi { display:flex; gap:12px; flex-wrap:wrap; }
.kpi .card { flex:1 1 180px; margin:0; }
