:root { color-scheme: light; --ink: #172033; --muted: #5c6b7a; --line: #d7dee6; --paper: #f6f8fb; --accent: #0f3d5e; --warn: #8a4b08; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.45 "Segoe UI", system-ui, sans-serif; color: var(--ink); background: var(--paper); }
a { color: var(--accent); }
header, main { width: min(1100px, calc(100% - 24px)); margin: 0 auto; }
header { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 16px 0; }
nav { display: flex; flex-wrap: wrap; gap: 10px; }
nav a, button, .button { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; text-decoration: none; color: var(--ink); }
button, .button { cursor: pointer; }
.primary { background: var(--accent); color: white; border-color: var(--accent); }
.card { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 12px 0; }
label { display: block; font-size: 14px; margin: 8px 0 4px; }
input, select, textarea { width: 100%; max-width: 520px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
input[type="checkbox"] { width: auto; }
textarea { min-height: 140px; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.error { color: #8d1d1d; }
.muted { color: var(--muted); }
.warn { color: var(--warn); }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.row > * { flex: 1 1 220px; }
@media (max-width: 720px) {
  table, thead, tbody, th, td, tr { display: block; }
  thead { display: none; }
  td { border-bottom: 0; }
  tr { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
}
