:root {
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#162033;
  background:#f6f7f8;
  font-synthesis:none;
  font-size:14px;
  --teal:#087f88;
  --teal-dark:#05666e;
  --border:#dde3e8;
  --muted:#65718a;
  --sidebar:264px;
  --header:62px;
  --shadow:0 8px 32px #16203316
}
* {
  box-sizing:border-box
}
body {
  margin:0
}
button,input,select {
  font:inherit
}
button,a,input,select {
  touch-action:manipulation
}
button {
  cursor:pointer
}
button:disabled {
  cursor:default;
  opacity:.5
}
a {
  color:var(--teal)
}
button,select,input {
  outline-offset:3px
}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,[tabindex]:focus-visible {
  outline:3px solid #0799a977
}
button svg {
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0
}
h1,h2,h3,p {
  margin:0
}
h2 {
  font-size:20px;
  letter-spacing:-.5px;
  font-weight:700
}
h3 {
  font-size:14px
}
button {
  border:0
}
button,.outline-button,.quiet-button {
  transition:background .15s,color .15s
}
button:disabled {
  transition:none
}
[hidden] {
  display:none!important
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap
}
.skip-link {
  position:fixed;
  z-index:20;
  top:-60px;
  left:16px;
  background:white;
  padding:12px;
  border:2px solid var(--teal)
}
.skip-link:focus {
  top:8px
}
.app-header {
  height:var(--header);
  position:fixed;
  inset:0 0 auto;
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 24px;
  background:#ffffffed;
  border-bottom:1px solid var(--border);
  z-index:10
}
.wordmark {
  color:#142035;
  text-decoration:none;
  font-size:25px;
  letter-spacing:-1px;
  font-weight:760
}
.header-actions {
  display:flex;
  gap:12px;
  margin-left:auto
}
.account-name {
  align-self:center;
  max-width:140px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12px;
  color:var(--muted)
}
#account-button.account-active {
  color:var(--teal);
  background:#eaf5f6
}
.quiet-button,.outline-button,.icon-button,.primary-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:38px;
  border-radius:6px;
  padding:8px 13px;
  font-size:13px;
  font-weight:500;
  white-space:nowrap
}
.quiet-button {
  background:transparent;
  color:#40516a
}
.quiet-button:hover,.icon-button:hover {
  background:#edf1f3
}
.outline-button {
  color:#34445d;
  background:white;
  border:1px solid var(--border)
}
.outline-button:hover {
  background:#f3f8f8;
  border-color:#b4c9cc
}
.primary-button {
  background:var(--teal);
  color:white;
  border:1px solid transparent
}
.primary-button:hover {
  background:var(--teal-dark)
}
.icon-button {
  background:transparent;
  padding:8px;
  min-width:38px;
  color:#40516a
}
.menu-toggle {
  display:none
}
.sidebar {
  position:fixed;
  top:var(--header);
  bottom:0;
  left:0;
  width:var(--sidebar);
  background:#f9fafb;
  border-right:1px solid var(--border);
  padding:23px 18px 18px;
  display:flex;
  flex-direction:column;
  z-index:11
}
.sidebar-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:5px;
  margin-bottom:10px
}
.sidebar-heading h2 {
  font-size:15px;
  letter-spacing:-.2px
}
.sidebar-heading .icon-button {
  margin-right:-5px;
  min-width:30px
}
.add-location {
  width:100%;
  margin-bottom:14px;
  font-weight:600;
  font-size:14px
}
.add-location span {
  font-size:21px;
  line-height:1
}
.location-list {
  overflow:auto;
  margin:0 -5px;
  padding:0 5px 10px;
  flex:1;
  scrollbar-width:thin
}
.location-entry {
  position:relative;
  margin-bottom:10px
}
.location-card {
  width:100%;
  text-align:left;
  border:1px solid var(--border);
  background:white;
  border-radius:8px;
  color:inherit;
  padding:14px 13px 15px;
  min-height:131px;
  font-variant-numeric:tabular-nums;
  position:relative
}
.location-card:hover {
  border-color:#9bbec3;
  background:#f6fbfb
}
.location-card.selected {
  background:#eaf5f6;
  border-color:#c9e5e8
}
.location-card.selected:before {
  content:"";
  position:absolute;
  inset:-1px auto -1px -5px;
  width:5px;
  background:var(--teal);
  border-radius:3px
}
.location-card .location-name {
  display:block;
  font-weight:700;
  font-size:14px;
  max-width:calc(100% - 55px);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.location-card .station-name {
  display:block;
  max-width:calc(100% - 55px);
  font-size:12px;
  color:var(--muted);
  margin-top:3px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}
.location-summary {
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  column-gap:6px;
  row-gap:9px;
  margin-top:18px;
  font-size:11px;
  line-height:1.4
}
.location-temperature {
  font-size:17px;
  font-weight:700;
  letter-spacing:-.4px
}
.location-aqi {
  display:flex;
  align-items:center;
  gap:5px;
  justify-content:flex-end;
  flex-wrap:wrap
}
.location-aqi .badge {
  padding:2px 6px;
  font-size:10px
}
.location-humidity,.location-wind {
  color:#40516a
}
.location-wind {
  text-align:right
}
.location-edit {
  position:absolute;
  right:6px;
  top:5px;
  min-width:28px;
  min-height:28px;
  padding:5px;
  opacity:0;
  color:#66778c
}
.location-entry:hover .location-edit,.location-entry:focus-within .location-edit {
  opacity:1
}
.location-edit svg {
  width:15px;
  height:15px
}
.location-reorder {
  position:absolute;
  right:34px;
  top:5px;
  min-width:28px;
  min-height:28px;
  padding:5px;
  color:#7a8b9d;
  cursor:grab;
  touch-action:none
}
.location-reorder svg {
  width:15px;
  height:15px
}
.location-reorder:disabled {
  visibility:hidden
}
.location-dragging,.location-dragging * {
  cursor:grabbing!important;
  user-select:none
}
.location-drag-placeholder {
  opacity:.3
}
.location-drag-preview {
  position:fixed;
  z-index:40;
  margin:0;
  pointer-events:none
}
.location-drag-preview .location-card {
  border-color:var(--teal);
  box-shadow:0 8px 24px #14203526
}
.sidebar-footer {
  font-size:11px;
  color:var(--muted);
  padding:10px 3px 0
}
.badge {
  font-size:11px;
  font-weight:550;
  padding:5px 8px;
  border-radius:5px;
  display:inline-block;
  line-height:1.2;
  white-space:normal
}
.good {
  background:#c8edba;
  color:#254419
}
.moderate {
  background:#ffdb86;
  color:#55400b
}
.light-pollution {
  background:#ffd0a0;
  color:#763b00
}
.pollution {
  background:#ffd0d2;
  color:#8d2025
}
.heavy-pollution {
  background:#ebc9df;
  color:#6a1f52
}
.severe-pollution {
  background:#e1bbc6;
  color:#62152d
}
.unavailable {
  background:#eef0f3;
  color:var(--muted)
}
main {
  margin-left:var(--sidebar);
  padding:calc(var(--header) + 24px) 28px 20px;
  max-width:1720px;
  min-height:100vh
}
.location-heading {
  display:flex;
  align-items:flex-start;
  gap:22px;
  margin-bottom:21px;
  min-height:55px
}
.location-title h1 {
  font-size:32px;
  letter-spacing:-1.1px;
  line-height:1.15
}
.location-title>p {
  margin-top:3px;
  font-size:15px
}
.location-title .mobile-summary {
  display:none
}
.location-heading>.outline-button {
  margin-top:1px
}
.section-links {
  display:flex;
  gap:24px;
  margin-left:auto;
  padding-top:10px;
  font-size:13px;
  white-space:nowrap
}
.section-links a {
  text-decoration:none;
  color:#52617b;
  padding-bottom:13px
}
.section-links a.active {
  color:var(--teal);
  border-bottom:2px solid var(--teal);
  font-weight:650
}
section[id] {
  scroll-margin-top:calc(var(--header) + 16px)
}
#current-conditions>h2,#historical-analysis>h2 {
  margin-bottom:9px
}
#historical-analysis {
  margin-top:20px
}
.conditions-grid {
  display:grid;
  grid-template-columns:1.17fr 1fr;
  gap:12px
}
.panel {
  background:white;
  border:1px solid var(--border);
  border-radius:9px;
  min-width:0
}
.conditions-card {
  padding:16px 18px
}
.panel-heading {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  padding-bottom:12px;
  border-bottom:1px solid #edf0f3;
  min-height:40px
}
.panel-heading h3 {
  font-size:17px;
  font-weight:700;
  letter-spacing:-.3px
}
.station-source {
  font-size:12px;
  color:#55637b
}
.text-button {
  background:none;
  padding:3px 0;
  color:var(--teal);
  text-decoration:underline;
  min-height:28px;
  font-size:12px
}
.panel-heading .text-button {
  margin-left:auto
}
.update-time {
  font-size:10px;
  color:var(--muted);
  white-space:nowrap
}
.weather-headline {
  display:flex;
  align-items:center;
  gap:30px;
  min-height:112px;
  padding:16px 9px
}
.temperature {
  font-size:54px;
  letter-spacing:-2.2px;
  font-weight:700;
  line-height:1.1;
  font-variant-numeric:tabular-nums
}
.temperature .unit {
  font-size:29px;
  letter-spacing:-1px;
  margin-left:7px;
  vertical-align:top;
  line-height:1.7
}
.temperature-change {
  border-left:1px solid #edf0f3;
  padding:4px 0 4px 22px;
  color:var(--muted);
  font-size:11px
}
.temperature-change strong {
  display:block;
  color:#314d66;
  font-size:20px;
  margin-top:5px;
  font-weight:650
}
.metrics {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0 20px;
  margin:0;
  font-variant-numeric:tabular-nums
}
.metric {
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-top:1px solid #edf0f3;
  min-height:47px;
  gap:9px
}
.metric dt {
  font-size:11px;
  color:#55637b;
  line-height:1.5
}
.metric dd {
  font-size:14px;
  font-weight:650;
  margin:0;
  text-align:right;
  white-space:nowrap
}
.metric .metric-time {
  display:block;
  color:#8993a4;
  font-size:9px;
  line-height:1.4
}
.metric .wind-direction {
  display:block;
  font-size:11px;
  font-weight:450;
  color:#5f6f83
}
.aqi-headline {
  display:flex;
  align-items:center;
  gap:18px;
  min-height:112px;
  padding:15px 8px
}
.aqi-headline .aqi-label {
  font-size:14px
}
.aqi-value {
  font-size:59px;
  font-weight:700;
  letter-spacing:-2px;
  line-height:1;
  font-variant-numeric:tabular-nums
}
.aqi-scale {
  margin:0 12px 22px
}
.scale-track {
  height:9px;
  position:relative;
  border-radius:3px;
  background:linear-gradient(to right,#46b086 0% 16.666%,#f5d34e 16.666% 33.333%,#f69b53 33.333% 50%,#e85572 50% 66.666%,#a94674 66.666% 83.333%,#80334c 83.333% 100%)
}
.scale-track.no-aqi {
  background:#e5e9ee
}
.scale-marker {
  position:absolute;
  top:-4px;
  height:17px;
  width:3px;
  background:#182636;
  transform:translateX(-50%);
  border:1px solid white;
  border-radius:2px
}
.scale-ticks {
  display:flex;
  justify-content:space-between;
  color:#748099;
  font-size:9px;
  margin-top:8px
}
.pollutants {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  margin:0;
  gap:18px 0
}
.pollutant {
  text-align:center;
  border-left:1px solid #edf0f3;
  padding:0 5px
}
.pollutant:nth-child(3n+1) {
  border-left:0
}
.pollutant dt {
  font-size:12px;
  color:#617089;
  margin-bottom:5px
}
.pollutant dd {
  margin:0;
  font-size:18px;
  font-weight:650;
  font-variant-numeric:tabular-nums
}
.pollutant .unit {
  font-size:11px;
  font-weight:400;
  margin-left:3px
}
.data-note {
  font-size:11px;
  color:var(--muted);
  margin-top:13px;
  line-height:1.5
}
.card-error {
  color:#9e3e32;
  font-size:11px;
  line-height:1.5;
  margin-top:13px
}
.current-empty {
  display:flex;
  min-height:233px;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  gap:12px;
  padding:15px 4px
}
.current-empty h4 {
  font-size:15px;
  margin:0
}
.current-empty p {
  color:var(--muted);
  line-height:1.6;
  max-width:300px
}
.loading-label {
  color:var(--muted)
}
.history-panel {
  padding:12px 16px 16px
}
.history-controls {
  display:flex;
  flex-direction:column;
  gap:12px
}
.segmented {
  display:inline-flex;
  align-items:center;
  background:#f6f8fa;
  border:1px solid #e6ebef;
  border-radius:6px;
  overflow:hidden;
  width:max-content;
  padding:2px
}
.segmented button {
  background:transparent;
  color:#40516a;
  border-radius:4px;
  min-height:32px;
  padding:6px 15px;
  font-size:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px
}
.segmented button.selected {
  color:white;
  background:var(--teal);
  box-shadow:0 1px 3px #1420350e
}
.range-switch button.selected {
  background:#e7f4f5;
  color:var(--teal);
  box-shadow:inset 0 0 0 1px #bbe0e4;
  font-weight:650
}
.filter-line {
  display:flex;
  align-items:center;
  gap:13px;
  flex-wrap:wrap
}
.variable-label select {
  width:182px;
  min-height:37px
}
.field input,.field select,.variable-label select,.date-label input {
  background:white;
  border:1px solid #d3dce4;
  border-radius:6px;
  color:#24334a;
  padding:9px 11px;
  max-width:100%
}
.timezone-note {
  font-size:12px;
  color:var(--muted)
}
.history-caption {
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:11px;
  color:#65718a;
  margin-left:auto;
  text-align:right;
  min-width:160px;
  line-height:1.4
}
.history-caption span:first-child {
  color:#40516a
}
.chart-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 110px;
  gap:16px;
  align-items:center;
  margin-top:14px
}
.chart-container {
  width:100%;
  min-width:0;
  min-height:222px;
  position:relative;
  overflow:visible
}
.chart-container svg {
  width:100%;
  display:block;
  overflow:visible
}
.chart-summary {
  border-left:1px solid #edf0f3;
  margin:0;
  padding:4px 0 4px 16px;
  display:flex;
  flex-direction:column;
  gap:16px
}
.chart-summary dt {
  font-size:11px;
  color:var(--muted);
  margin-bottom:4px
}
.chart-summary dd {
  margin:0;
  font-size:15px;
  font-weight:650;
  font-variant-numeric:tabular-nums
}
.chart-summary .unit {
  font-size:11px;
  font-weight:450;
  margin-left:4px
}
.chart-summary small {
  font-size:10px;
  color:var(--muted);
  font-weight:400;
  display:block;
  margin-top:3px
}
.chart-empty {
  min-height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:8px;
  color:var(--muted);
  text-align:center;
  padding:24px;
  font-size:13px
}
.chart-empty strong {
  font-weight:500;
  color:#41516a
}
.chart-tooltip {
  position:absolute;
  pointer-events:none;
  background:white;
  border:1px solid #dae2e8;
  border-radius:5px;
  padding:7px 9px;
  box-shadow:0 3px 12px #1620330d;
  z-index:2;
  font-size:11px;
  min-width:120px;
  color:#65718a;
  max-width:240px
}
.chart-tooltip strong {
  display:block;
  color:#162033;
  font-size:13px;
  margin-top:3px
}
.wind-tooltip {
  display:flex;
  align-items:center;
  gap:9px;
}
.chart-container .wind-tooltip svg {
  width:44px;
  height:44px;
  flex-shrink:0;
}
.wind-tooltip-bearing {
  display:block;
  color:#40516a;
  font-size:10px;
  margin-top:4px;
}
.chart-note {
  font-size:11px;
  color:var(--muted);
  margin:4px 0 12px;
  line-height:1.5
}
.observations-panel {
  border:1px solid var(--border);
  border-radius:7px;
  overflow:hidden
}
.table-heading {
  display:flex;
  align-items:center;
  gap:16px;
  padding:11px 13px;
  background:#fcfdfd;
  border-bottom:1px solid var(--border);
  flex-wrap:wrap
}
.table-heading h3 {
  font-size:13px
}
.record-count {
  font-size:11px;
  color:#60708a
}
.download-button {
  margin-left:auto;
  min-height:29px;
  padding:4px 8px;
  font-size:11px
}
.download-button svg {
  width:14px;
  height:14px
}
.table-hint {
  font-size:10px;
  color:var(--muted);
  text-align:right;
  padding:6px 12px;
  background:#fafbfc
}
.table-scroll {
  max-height:310px;
  overflow:auto;
  scrollbar-width:thin;
  min-height:94px
}
.data-table {
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  font-size:11px;
  white-space:nowrap;
  font-variant-numeric:tabular-nums
}
.data-table th {
  position:sticky;
  top:0;
  z-index:2;
  background:#f5f7f9;
  font-weight:500;
  border-bottom:1px solid var(--border);
  padding:10px 12px;
  text-align:right;
  min-width:86px;
  color:#40516a
}
.data-table th .unit {
  display:block;
  color:#748099;
  font-size:10px;
  font-weight:400;
  margin-top:2px
}
.data-table td {
  padding:10px 12px;
  text-align:right;
  border-bottom:1px solid #e9edf1;
  border-right:1px solid #edf0f3;
  background:white
}
.data-table th:first-child,.data-table td:first-child {
  position:sticky;
  left:0;
  text-align:left;
  box-shadow:1px 0 0 #dce4e9;
  min-width:138px
}
.data-table th:first-child {
  z-index:3
}
.data-table td:first-child {
  z-index:1
}
.data-table tr:nth-child(even) td {
  background:#f8fafb
}
.data-table tr.missing td {
  color:#8590a3
}
.data-table .badge {
  font-size:10px;
  min-width:32px;
  text-align:center;
  padding:3px 5px
}
.table-no-data {
  text-align:center;
  color:var(--muted);
  padding:35px 12px;
  line-height:1.6;
  font-size:12px
}
.table-footer {
  font-size:10px;
  color:#6c7990;
  display:flex;
  gap:14px;
  justify-content:space-between;
  padding:9px 12px;
  background:#fcfdfd;
  border-top:1px solid var(--border)
}
.main-footer {
  text-align:right;
  color:#8993a4;
  font-size:10px;
  margin-top:15px
}
.inline-error {
  color:#993b30;
  background:#fff6f3;
  border:1px solid #f0d6ce;
  border-radius:6px;
  padding:11px 13px;
  font-size:12px;
  line-height:1.5;
  margin:12px 0
}
.inline-error button {
  padding:0;
  margin-left:10px;
  background:transparent;
  color:var(--teal);
  text-decoration:underline
}
.empty-state {
  padding:45px 20px;
  text-align:center;
  line-height:1.7
}
.empty-state h1 {
  font-size:28px;
  letter-spacing:-.5px
}
.empty-state h3 {
  font-size:18px
}
.empty-state p {
  color:var(--muted);
  margin:9px 0 20px
}
.empty-state .primary-button {
  margin:auto
}
body.sidebar-collapsed .sidebar {
  display:none
}
body.sidebar-collapsed main {
  margin-left:0;
  max-width:1456px;
  margin-right:auto;
  margin-left:auto
}
body.sidebar-collapsed .menu-toggle {
  display:flex
}
dialog {
  border:1px solid var(--border);
  border-radius:13px;
  padding:0;
  color:#162033;
  box-shadow:var(--shadow);
  max-height:calc(100dvh - 40px);
  width:min(590px,calc(100vw - 30px));
  background:white
}
dialog::backdrop {
  background:#14203566;
  backdrop-filter:blur(2px)
}
.dialog-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--border);
  padding:17px 22px
}
.dialog-heading h2 {
  font-size:20px
}
.dialog-body {
  padding:22px;
  display:flex;
  flex-direction:column;
  gap:20px
}
.field {
  display:flex;
  flex-direction:column;
  gap:7px;
  font-size:12px;
  font-weight:600;
  min-width:0
}
.field input,.field select {
  width:100%;
  min-height:41px;
  font-size:13px;
  font-weight:400
}
.field-hint {
  font-size:11px;
  color:var(--muted);
  font-weight:400;
  line-height:1.6
}
.station-search {
  border-top:1px solid #edf0f3;
  border-bottom:1px solid #edf0f3;
  padding:17px 0;
  display:flex;
  flex-direction:column;
  gap:10px
}
.station-search h3 {
  font-size:14px
}
.station-fields {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px
}
.required-note,.optional-note {
  color:var(--muted);
  font-size:10px;
  font-weight:400
}
.city-results {
  display:flex;
  flex-direction:column;
  max-height:165px;
  overflow:auto;
  border-radius:5px
}
.city-results:empty {
  display:none
}
.city-results button {
  text-align:left;
  min-height:36px;
  background:#f4f8f9;
  border-bottom:1px solid white;
  color:#253b50;
  padding:8px 11px;
  font-size:12px
}
.city-results button:hover,.city-results button:focus-visible {
  background:#def0f2
}
.city-results button span {
  color:var(--muted);
  margin-left:8px
}
#station-choices {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px
}
.dialog-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  background:#fafbfc;
  padding:15px 22px;
  border-top:1px solid var(--border);
  border-radius:0 0 13px 13px
}
.danger-button {
  margin-right:auto;
  color:#aa3f35;
  background:transparent;
  font-size:12px;
  min-height:38px;
  padding:6px 0
}
.danger-button:hover {
  color:#7f2119
}
.checkbox-field {
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:13px;
  line-height:1.7
}
.checkbox-field input {
  accent-color:var(--teal);
  width:17px;
  height:17px;
  margin-top:3px
}
.settings-dialog,.login-dialog {
  width:min(460px,calc(100vw - 30px))
}
.toast {
  position:fixed;
  bottom:24px;
  left:50%;
  transform:translateX(-50%);
  z-index:30;
  background:#20334a;
  color:white;
  border-radius:8px;
  box-shadow:var(--shadow);
  padding:13px 15px;
  display:flex;
  align-items:center;
  gap:15px;
  max-width:calc(100vw - 30px);
  font-size:12px;
  line-height:1.5
}
.toast button {
  color:#b3eced;
  background:transparent;
  font-size:12px;
  padding:3px
}
.toast #toast-close {
  color:white;
  font-size:20px
}
.refreshing svg {
  animation:spin 1s linear infinite
}
@keyframes spin {
  to {
    transform:rotate(360deg)
  }
}
@media(min-width:1600px) {
  main {
    padding-left:35px;
    padding-right:35px
  }
  .conditions-card {
    padding:18px 22px
  }
  .panel-heading .update-time {
    font-size:11px
  }
  .metrics .metric dd {
    font-size:15px
  }
  .location-summary {
    font-size:12px
  }
  .data-table {
    font-size:12px
  }
}
@media(max-width:1200px) {
  .section-links {
    gap:15px;
    font-size:12px
  }
  .location-heading {
    gap:15px
  }
  .conditions-grid {
    grid-template-columns:1fr 1fr
  }
  .conditions-card {
    padding:14px
  }
  .panel-heading {
    gap:8px
  }
  .panel-heading .update-time {
    width:100%;
    margin-top:-7px
  }
  .weather-headline {
    gap:18px;
    padding:15px 0
  }
  .temperature {
    font-size:48px
  }
  .temperature .unit {
    font-size:24px
  }
  .temperature-change {
    padding-left:16px
  }
  .metrics {
    gap:0 13px
  }
  .metric {
    flex-wrap:wrap;
    align-content:center;
    gap:2px;
    min-height:59px
  }
  .metric dt {
    width:100%
  }
  .metric dd {
    text-align:left
  }
  .metric .metric-time {
    display:none
  }
  .pollutant dd {
    font-size:16px
  }
  .filter-line {
    gap:10px
  }
  .variable-label select {
    width:165px
  }
  .history-caption {
    width:100%;
    flex-direction:row;
    justify-content:space-between;
    text-align:left
  }
  .chart-layout {
    grid-template-columns:minmax(0,1fr) 95px;
    gap:10px
  }
  .chart-summary {
    padding-left:12px
  }
  .chart-summary dd {
    font-size:13px
  }
}
@media(max-width:960px) {
  :root {
    --sidebar:235px
  }
  .sidebar {
    padding:18px 12px
  }
  .sidebar-heading h2 {
    font-size:14px
  }
  .location-summary {
    font-size:10px
  }
  .location-temperature {
    font-size:16px
  }
  main {
    padding-left:20px;
    padding-right:20px
  }
  .section-links {
    width:100%;
    margin-left:0;
    padding-top:0
  }
  .location-heading {
    flex-wrap:wrap;
    gap:13px
  }
  .section-links a {
    padding-bottom:8px
  }
  .location-heading .outline-button {
    margin-left:auto
  }
  .conditions-grid {
    grid-template-columns:1fr
  }
  .panel-heading .update-time {
    width:auto;
    margin-top:0
  }
  .weather-headline {
    min-height:105px;
    padding:16px 10px
  }
  .metrics .metric {
    flex-wrap:nowrap;
    min-height:42px
  }
  .metrics .metric dt {
    width:auto
  }
  .metrics .metric dd {
    text-align:right
  }
  .metrics .metric-time {
    display:block
  }
  .aqi-headline {
    min-height:100px
  }
  .conditions-card {
    padding:16px 18px
  }
  .pollutants {
    padding-bottom:8px
  }
  .variable-label select {
    width:155px
  }
}
@media(max-width:760px) {
  :root {
    --header:58px
  }
  .app-header {
    padding:0 14px;
    gap:10px
  }
  .wordmark {
    font-size:21px;
    letter-spacing:-.8px
  }
  .menu-toggle {
    display:flex;
    margin-left:-4px
  }
  .header-actions {
    gap:1px
  }
  .header-actions .quiet-button {
    padding:8px;
    min-width:38px
  }
  .header-actions .quiet-button span {
    display:none
  }
  .account-name {
    display:none
  }
  .sidebar {
    display:flex!important;
    width:min(340px,89vw);
    padding:24px 18px 18px;
    top:0;
    z-index:21;
    transform:translateX(-105%);
    transition:transform .2s ease;
    border-radius:0 14px 14px 0
  }
  .sidebar-heading {
    margin-bottom:17px
  }
  .sidebar-heading h2 {
    font-size:21px
  }
  .sidebar-heading .icon-button {
    min-width:40px
  }
  .sidebar-heading svg {
    width:21px;
    height:21px
  }
  .add-location {
    min-height:44px
  }
  .drawer-open .sidebar {
    transform:translateX(0)
  }
  .drawer-open {
    overflow:hidden
  }
  .drawer-backdrop {
    position:fixed;
    inset:0;
    background:#14203577;
    z-index:20
  }
  .sidebar-footer {
    border-top:1px solid var(--border);
    margin-top:16px;
    padding-top:15px
  }
  .location-card {
    padding:16px 15px;
    min-height:137px
  }
  .location-card .location-name {
    font-size:16px;
    max-width:calc(100% - 80px)
  }
  .location-card .station-name {
    font-size:12px;
    max-width:calc(100% - 80px)
  }
  .location-summary {
    font-size:12px;
    row-gap:11px;
    margin-top:20px
  }
  .location-temperature {
    font-size:20px
  }
  .location-aqi .badge {
    font-size:10px
  }
  .location-edit {
    opacity:1;
    top:5px;
    right:6px;
    min-width:40px;
    min-height:40px
  }
  .location-reorder {
    top:5px;
    right:46px;
    min-width:40px;
    min-height:40px
  }
  .location-card.selected:before {
    display:none
  }
  .location-card.selected {
    border-color:var(--teal)
  }
  main,body.sidebar-collapsed main {
    margin-left:0;
    padding:calc(var(--header) + 14px) 14px 20px
  }
  .location-heading {
    position:relative;
    margin-bottom:15px;
    gap:13px;
    padding:12px 12px 0;
    background:#eef2f3;
    border-radius:9px
  }
  .location-title h1 {
    font-size:19px;
    letter-spacing:-.3px;
    display:flex;
    gap:7px;
    align-items:center
  }
  .location-title>p {
    display:none
  }
  .location-title .mobile-summary {
    display:block;
    font-size:12px;
    margin-top:4px;
    line-height:1.4
  }
  .location-heading>.outline-button {
    border:0;
    background:transparent;
    margin-top:-2px;
    padding:8px;
    min-width:36px;
    min-height:38px
  }
  .location-heading>.outline-button span {
    display:none
  }
  .section-links {
    width:calc(100% + 24px);
    margin:0 -12px;
    gap:0;
    display:flex;
    padding:0
  }
  .section-links a {
    flex:1;
    text-align:center;
    font-size:12px;
    padding:13px 4px 12px
  }
  .section-links a.active {
    border-bottom:3px solid var(--teal)
  }
  #current-conditions>h2,#historical-analysis>h2 {
    font-size:18px;
    margin-bottom:10px
  }
  #current-conditions>h2 {
    display:none
  }
  .conditions-grid {
    gap:12px
  }
  .conditions-card {
    padding:16px
  }
  .panel-heading {
    gap:8px
  }
  .panel-heading h3 {
    font-size:17px
  }
  .panel-heading .station-source {
    font-size:12px;
    flex:1;
    min-width:110px
  }
  .panel-heading .update-time {
    width:100%;
    font-size:10px;
    margin-top:0
  }
  .weather-headline {
    min-height:108px;
    padding:18px 0 17px;
    gap:26px
  }
  .temperature {
    font-size:49px
  }
  .temperature .unit {
    font-size:26px
  }
  .temperature-change {
    font-size:10px;
    max-width:100px;
    padding-left:16px;
    line-height:1.5
  }
  .temperature-change strong {
    font-size:18px
  }
  .metrics {
    gap:0 16px
  }
  .metrics .metric {
    display:block;
    min-height:68px;
    padding:9px 0
  }
  .metrics .metric dt {
    font-size:11px
  }
  .metrics .metric dd {
    text-align:left;
    font-size:15px;
    margin-top:4px
  }
  .metrics .metric-time {
    display:none
  }
  .metric .wind-direction {
    display:inline;
    font-size:10px;
    font-weight:400;
    margin-left:5px
  }
  .aqi-headline {
    min-height:100px;
    padding:16px 0;
    gap:14px
  }
  .aqi-value {
    font-size:54px
  }
  .aqi-scale {
    margin:0 4px 19px
  }
  .pollutants {
    grid-template-columns:repeat(2,1fr);
    gap:16px 0;
    padding-bottom:0
  }
  .pollutant:nth-child(n) {
    border-left:1px solid #edf0f3;
    text-align:left;
    padding-left:18px
  }
  .pollutant:nth-child(2n+1) {
    border-left:0;
    padding-left:0
  }
  .pollutant dt {
    font-size:11px
  }
  .pollutant dd {
    font-size:17px
  }
  .pollutant .unit {
    font-size:11px
  }
  .history-panel {
    padding:12px
  }
  .history-controls {
    gap:10px
  }
  .source-switch {
    width:100%
  }
  .source-switch button {
    flex:1;
    min-height:38px;
    font-size:13px
  }
  .filter-line {
    gap:9px
  }
  .variable-label {
    flex:1;
    min-width:110px
  }
  .variable-label select {
    width:100%;
    font-size:12px;
    min-height:40px
  }
  .range-switch {
    flex:1;
    min-width:195px
  }
  .range-switch button {
    flex:1;
    padding:7px 9px;
    min-height:36px;
    font-size:11px;
    gap:5px
  }
  .range-switch button svg {
    width:14px;
    height:14px
  }
  .date-label {
    width:100%
  }
  .date-label input {
    width:100%;
    min-height:40px
  }
  .history-caption {
    font-size:10px;
    flex-direction:column;
    gap:3px;
    padding-top:3px;
    width:calc(100% - 45px);
    min-width:0
  }
  .timezone-note {
    font-size:10px;
    align-self:flex-start;
    margin-top:3px;
    order:4;
    margin-left:auto
  }
  .history-caption {
    order:3
  }
  .chart-layout {
    grid-template-columns:1fr;
    gap:0;
    margin-top:12px
  }
  .chart-container {
    min-height:222px
  }
  .chart-summary {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    border-left:0;
    border-top:1px solid #edf0f3;
    padding:12px 0;
    margin-bottom:10px;
    gap:7px
  }
  .chart-summary>div {
    border-left:1px solid #edf0f3;
    padding-left:12px
  }
  .chart-summary>div:first-child {
    border-left:0;
    padding-left:0
  }
  .chart-summary dt {
    font-size:10px
  }
  .chart-summary dd {
    font-size:14px
  }
  .chart-summary .unit {
    font-size:10px;
    margin-left:2px
  }
  .chart-summary small {
    font-size:9px
  }
  .table-heading {
    padding:11px 10px;
    gap:7px
  }
  .table-heading h3 {
    font-size:12px;
    flex:1
  }
  .record-count {
    order:3;
    width:100%;
    font-size:10px
  }
  .download-button {
    font-size:10px;
    padding:5px 6px;
    min-height:32px
  }
  .download-button svg {
    width:13px;
    height:13px
  }
  .table-hint {
    padding:6px 9px;
    font-size:9px
  }
  .data-table th,.data-table td {
    padding:10px 11px;
    min-width:80px
  }
  .data-table th:first-child,.data-table td:first-child {
    min-width:116px
  }
  .table-footer {
    font-size:9px;
    padding:9px;
    gap:8px
  }
  .table-footer span:last-child {
    display:none
  }
  .main-footer {
    text-align:center;
    font-size:9px;
    line-height:1.6
  }
  .dialog-heading {
    padding:14px 17px
  }
  .dialog-body {
    padding:17px;
    gap:18px
  }
  .dialog-actions {
    padding:13px 17px;
    gap:6px
  }
  .dialog-actions .cancel-button {
    display:none
  }
  .station-fields {
    gap:12px
  }
  .field input,.field select {
    min-height:44px
  }
  .field-hint {
    font-size:10px
  }
  .toast {
    bottom:12px;
    width:calc(100% - 24px);
    max-width:none
  }
  .current-empty {
    min-height:170px
  }
  .section-links a {
    scroll-margin-top:70px
  }
}
@media(max-width:760px) {
  .filter-line {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:10px 12px
  }
  .variable-label {
    grid-column:1;
    grid-row:1;
    min-width:0
  }
  .variable-label select {
    min-height:44px
  }
  .timezone-note {
    grid-column:2;
    grid-row:1;
    order:0;
    align-self:center;
    margin:0
  }
  .range-switch {
    grid-column:1/-1;
    grid-row:2;
    width:100%;
    min-width:0
  }
  .range-switch button {
    min-height:44px;
    white-space:nowrap
  }
  .date-label {
    grid-column:1/-1;
    grid-row:3
  }
  .history-caption {
    grid-column:1/-1;
    grid-row:auto;
    width:100%;
    order:0
  }
}
@media(max-width:380px) {
  .app-header {
    gap:6px;
    padding:0 10px
  }
  .wordmark {
    font-size:18px;
    letter-spacing:-.7px
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
}
