* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #f4f6f8; color: #14202b; font-size: 17px; line-height: 1.5; }
header { background: #0b3d2e; color: #fff; padding: 20px 16px 16px; }
header h1 { margin: 0 0 4px; font-size: 26px; line-height: 1.2; }
header p { margin: 0; opacity: .92; font-size: 16px; }
.badge { display: inline-block; background: #ffb703; color: #14202b; font-weight: 700;
  border-radius: 999px; padding: 2px 10px; font-size: 13px; margin-left: 6px; vertical-align: middle; }
.badge.live { background: #2e9e5b; color: #fff; }
main { max-width: 860px; margin: 0 auto; padding: 14px 14px 40px; }
.card { background: #fff; border: 1px solid #d9e0e6; border-radius: 12px;
  padding: 16px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
h2 { margin: 0 0 10px; font-size: 20px; }
h3 { margin: 16px 0 8px; font-size: 17px; }
label { display: block; font-weight: 600; margin: 10px 0 4px; font-size: 15px; }
input, select { width: 100%; padding: 11px 12px; font-size: 17px; border: 2px solid #8a9aa8;
  border-radius: 8px; background: #fff; color: #14202b; }
input:focus, select:focus { outline: 3px solid #0b3d2e; outline-offset: 1px; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: #0b3d2e; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; margin: 8px 0; }
.check input { width: 20px; }
button { background: #0b3d2e; color: #fff; border: none; border-radius: 8px;
  padding: 12px 18px; font-size: 17px; font-weight: 700; cursor: pointer; margin-top: 12px; }
button.secondary { background: #eef2f4; color: #0b3d2e; border: 2px solid #0b3d2e; }
button:hover { opacity: .92; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.tabs button { margin: 0; padding: 10px 14px; background: #fff; color: #0b3d2e;
  border: 2px solid #0b3d2e; font-size: 16px; }
.tabs button.active { background: #0b3d2e; color: #fff; }
.tabpage { display: none; }
.tabpage.active { display: block; }
.aqi-big { font-size: 52px; font-weight: 800; line-height: 1; }
.band { display: inline-block; font-weight: 800; font-size: 19px; padding: 4px 12px;
  border-radius: 8px; color: #14202b; margin: 8px 0; }
.muted { color: #4a5a68; font-size: 14px; }
.note { background: #fff8e1; border-left: 5px solid #ffb703; padding: 10px 12px;
  border-radius: 6px; margin: 10px 0; font-size: 15px; }
.explain { background: #e8f5e9; border-left: 5px solid #2e9e5b; padding: 10px 12px;
  border-radius: 6px; margin: 10px 0; font-size: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 8px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid #e3e8ec; vertical-align: top; }
th { background: #f0f3f5; }
.pill { display: inline-block; font-weight: 800; padding: 2px 10px; border-radius: 999px;
  font-size: 13px; color: #fff; }
.pill.GO { background: #2e9e5b; } .pill.CAUTION { background: #b77900; } .pill.NO-GO { background: #c62828; }
.chart { display: flex; align-items: flex-end; gap: 2px; height: 120px; margin: 10px 0 4px;
  border-bottom: 2px solid #8a9aa8; padding: 0 2px; }
.chart div { flex: 1; min-width: 3px; border-radius: 2px 2px 0 0; }
.chart-labels { display: flex; justify-content: space-between; font-size: 13px; color: #4a5a68; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid2 label { margin-top: 0; }
.big-number { font-size: 30px; font-weight: 800; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.chip { background: #eef2f4; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 15px; }
pre.alert { white-space: pre-wrap; background: #fff8e1; border: 1px solid #e6c65a;
  border-radius: 8px; padding: 12px; font-family: inherit; font-size: 16px; }
footer { max-width: 860px; margin: 0 auto; padding: 0 14px 30px; color: #4a5a68; font-size: 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } header h1 { font-size: 23px; } }
