:root {
  color-scheme: light;
  --ink: #1e2528;
  --muted: #637074;
  --line: #d8dedc;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --coal: #263238;
  --green: #247a4c;
  --amber: #b86612;
  --red: #a93625;
  --blue: #2f5f88;
  --shadow: 0 14px 40px rgba(38, 50, 56, .09);
  font-family: Avenir Next, Avenir, Segoe UI, system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
.topbar { display: flex; justify-content: space-between; gap: 24px; align-items: end; padding: 34px clamp(18px, 4vw, 56px); background: var(--coal); color: white; }
h1 { margin: 0; font-size: clamp(2.1rem, 5vw, 4.4rem); letter-spacing: -.06em; line-height: .9; }
h2 { margin: 0; font-size: 1.05rem; letter-spacing: -.02em; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-weight: 800; font-size: .72rem; color: #f6c36b; margin: 0 0 10px; }
.lede { max-width: 760px; margin: 12px 0 0; color: #d6dddb; font-size: 1.05rem; }
.score-card { min-width: 190px; background: #f6c36b; color: #1e2528; padding: 18px; border-radius: 18px 18px 4px 18px; box-shadow: var(--shadow); }
.score-card span, .score-card small { display: block; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; }
.score-card strong { display: block; font-size: 3rem; line-height: 1; margin: 6px 0; }
main { padding: 24px clamp(18px, 4vw, 56px) 36px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; align-items: end; }
.grid { display: grid; gap: 18px; margin-bottom: 18px; }
.grid.two { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.section-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
.section-title span { color: var(--muted); font-size: .82rem; font-weight: 700; }
.stack { display: grid; gap: 10px; }
.check-row, .temp-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fcfcfa; }
.temp-row { grid-template-columns: 1fr 92px 1.1fr; }
.station { font-weight: 800; }
.note { color: var(--muted); font-size: .86rem; }
.badge { padding: 4px 8px; border-radius: 999px; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.badge.ok { color: var(--green); background: #e9f5ee; }
.badge.warn { color: var(--amber); background: #fff2df; }
.badge.bad { color: var(--red); background: #fbe7e3; }
label { display: grid; gap: 5px; color: var(--muted); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: inherit; color: var(--ink); background: white; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--green); }
button { border: 0; background: var(--coal); color: white; border-radius: 11px; padding: 11px 14px; font-weight: 900; cursor: pointer; }
button.secondary { background: #e8ecea; color: var(--coal); }
.button-row { display: flex; gap: 8px; flex-wrap: wrap; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.gap-negative { color: var(--red); font-weight: 900; }
.gap-ok { color: var(--green); font-weight: 900; }
.table-wrap { overflow-x: auto; }
.brief-panel textarea { min-height: 260px; resize: vertical; line-height: 1.45; background: #fcfcfa; }
.status { min-height: 1.2em; color: var(--green); font-weight: 800; }
footer { display: flex; justify-content: space-between; padding: 20px clamp(18px, 4vw, 56px); color: var(--muted); font-size: .82rem; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .topbar, footer { flex-direction: column; align-items: stretch; } .controls, .grid.two { grid-template-columns: 1fr; } .temp-row { grid-template-columns: 1fr; } }
@media print { body { background: white; } .topbar, .controls, .grid, footer, .button-row, .status { display: none; } .panel { box-shadow: none; border: 0; } textarea { border: 0; min-height: 90vh; } }
