:root {
  --bg: #0e1116;
  --panel: #171c24;
  --fg: #e6edf3;
  --muted: #8b949e;
  --accent: #58a6ff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font: 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: rgba(23, 28, 36, 0.97);
  border-bottom: 1px solid #21262d;
  flex-wrap: wrap;
}

.brand { font-weight: 600; color: var(--accent); }
#bar label { color: var(--muted); display: inline-flex; gap: 5px; align-items: center; }

input[type="text"], input[type="date"], #airport {
  background: var(--panel);
  color: var(--fg);
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 13px;
}
#airport { text-transform: uppercase; }
#airport:focus, input:focus { outline: none; border-color: var(--accent); }

.muted { color: var(--muted); font-size: 12px; }
#src { padding: 10px 14px 40px; }
#src a { color: var(--accent); }

#legend { display: inline-flex; gap: 10px; flex-wrap: wrap; font-size: 11px; color: var(--muted); align-items: center; }
#legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 3px; vertical-align: middle; }

#wx { }
.wx-row {
  display: grid;
  grid-template-columns: 54px 58px 128px 116px 116px 1fr;
  align-items: center;
  border-bottom: 1px solid #161b22;
}
.wx-row .cell { padding: 3px 8px; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wx-head {
  position: sticky; top: 41px; z-index: 3;
  background: #0d1117; color: var(--muted); font-weight: 600;
  border-bottom: 1px solid #30363d;
}
.wx-day {
  position: sticky; top: 64px; z-index: 2;
  background: #1b2230; color: var(--accent); font-weight: 700;
  padding: 4px 10px; border-top: 1px solid #30363d;
}
.cell.cat { text-align: center; font-weight: 700; border-radius: 3px; margin: 1px 3px; }
.cell.dash { color: #484f58; }
.warrow { display: inline-block; font-weight: 800; margin-right: 5px; font-size: 14px; }
.wtxt { color: var(--fg); }
.bar { display: inline-block; width: 44px; height: 6px; background: #21262d; border-radius: 3px; overflow: hidden; vertical-align: middle; margin-left: 6px; }
.bar i { display: block; height: 100%; }
.glyph { font-size: 14px; margin-right: 4px; }
