:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1b2430;
  --muted: #5b6573;
  --border: #d7deea;
  --blue: #1f5fbf;
  --blue-dark: #163d78;
  --red: #ffd4d4;
  --orange: #ffd59e;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-header { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; padding:18px 24px; background: linear-gradient(90deg, var(--blue-dark), var(--blue)); color:#fff; }
.site-header h1 { margin:0 0 4px; }
.site-header nav { display:flex; flex-wrap:wrap; gap:12px; }
.site-header nav a { color:#fff; font-weight:bold; }
.container { max-width: 1280px; margin: 20px auto; padding: 0 16px 24px; }
.card { background:var(--card); border:1px solid var(--border); border-radius:16px; padding:18px; box-shadow:0 2px 10px rgba(0,0,0,.04); margin-bottom:18px; }
.card.narrow { max-width: 760px; }
.grid { display:grid; gap:16px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit,minmax(320px,1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); }
.big { font-size: 2rem; font-weight: bold; }
.button { display:inline-block; padding:10px 14px; background:var(--blue); color:#fff; border:none; border-radius:10px; cursor:pointer; font-weight:bold; }
.button.secondary { background:#e8eef9; color:var(--blue-dark); }
.stack { display:grid; gap:12px; }
label { display:grid; gap:6px; font-weight:bold; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=datetime-local], select, textarea { width:100%; padding:10px; border:1px solid var(--border); border-radius:10px; font:inherit; }
textarea { resize: vertical; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; }
th, td { border-bottom:1px solid var(--border); padding:10px; text-align:left; vertical-align:top; }
th { background:#eef3fb; position:sticky; top:0; }
.inline-form { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.inline-form.compact input, .inline-form.compact select { width:auto; min-width:120px; }
.flex-between { display:flex; justify-content:space-between; gap:12px; align-items:center; flex-wrap:wrap; }
.alert { padding:12px 14px; border-radius:10px; margin-bottom:14px; }
.alert.success { background:#e1f6e7; }
.alert.error { background:#ffe1e1; }
.muted { color:var(--muted); }
.loss { background: var(--red); }
.duplicate { background: var(--orange); }
.pill { display:inline-block; margin-left:8px; padding:2px 8px; border-radius:999px; font-size:.75rem; font-weight:bold; background:rgba(0,0,0,.08); }
.top-gap { margin-top:8px; }
.prose { line-height:1.55; }
ul { margin-top: 8px; }
@media (max-width: 840px) {
  .site-header { flex-direction:column; }
}
