:root {
  color-scheme: light;
  --page: #edf1f5;
  --surface: #fff;
  --ink: #152636;
  --muted: #506171;
  --line: #d9e2ea;
  --accent: #005b50;
  --accent-dark: #034036;
  --accent-light: #e1f2ed;
  --negative: #9e3733;
  font: 16px/1.5 system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--page);
}
* { box-sizing: border-box; }
body { margin: 0; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
button:focus-visible, [tabindex]:focus-visible { outline: 3px solid #009481; outline-offset: 3px; }
.wrap { width: min(100% - 3rem, 78rem); margin-inline: auto; }
.top { background: #102839; color: #fff; border-bottom: 4px solid #31bea4; }
.header { display: flex; align-items: center; gap: 1.5rem; min-height: 7.5rem; }
.brand { font-size: .9rem; font-weight: 850; letter-spacing: .12em; border: 1px solid #70d8c5; color: #b1f5e7; padding: .5rem .75rem; }
.title { flex: 1; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.5rem, 3.1vw, 2.25rem); line-height: 1.15; letter-spacing: -.04em; }
.reload { color: #fff; background: transparent; border-radius: .5rem; border: 1px solid #6e8799; padding: .5rem .8rem; }
.reload:hover { background: #234454; }
main { padding: 1.65rem 0 3rem; }
.status { min-height: 1.5rem; margin-bottom: 1.05rem; color: var(--muted); }
.status.error { color: var(--negative); }
.views { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.4rem; }
.views button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: .55rem; padding: .48rem .8rem; }
.views button[aria-pressed=true] { background: var(--accent); color: #fff; border-color: var(--accent); }
.views button:hover:not([aria-pressed=true]) { background: var(--accent-light); }
.panel { margin-bottom: 1.2rem; border: 1px solid var(--line); border-radius: .85rem; background: var(--surface); overflow: hidden; }
.panel-head { padding: 1.2rem 1.35rem .8rem; }
h2 { font-size: 1.45rem; line-height: 1.22; letter-spacing: -.025em; }
h3 { font-size: 1.15rem; line-height: 1.3; }
.panel-head p, .notes { margin-top: .4rem; color: var(--muted); font-size: .9rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
thead { background: #f3f7fa; }
th, td { text-align: left; border-top: 1px solid var(--line); padding: .72rem 1.35rem; }
thead th { color: var(--muted); font-size: .9rem; font-weight: 650; }
tbody th { font-weight: 650; }
td { white-space: nowrap; }
.city-link { padding: 0; background: transparent; border: 0; color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.city-link:hover { color: var(--accent-dark); }
.number { font-weight: 700; }
.dim { color: var(--muted); font-weight: 400; }
.delta { font-weight: 650; font-size: .88rem; margin-left: .45rem; }
.up { color: var(--accent); }
.down { color: var(--negative); }
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.columns .panel { min-width: 0; }
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.metric { padding: .7rem 1.35rem .9rem; border-top: 1px solid var(--line); }
.metric dt { color: var(--muted); font-size: .9rem; }
.metric dd { margin: .15rem 0 0; font-size: 1.3rem; font-weight: 730; font-variant-numeric: tabular-nums; }
.notes { padding-inline: .1rem; }
.notes p + p { margin-top: .35rem; }
.detail-title { margin-bottom: .9rem; }
.caption { margin-top: .3rem; color: var(--muted); }
@media (max-width: 56rem) {
  .wrap { width: min(100% - 2rem, 78rem); }
  .columns { gap: .8rem; }
  th, td, .panel-head, .metric { padding-left: .9rem; padding-right: .9rem; }
}
@media (max-width: 43rem) {
  .header { gap: .75rem; min-height: 6.75rem; flex-wrap: wrap; padding-block: 1rem; }
  .brand { display: none; }
  .columns { grid-template-columns: 1fr; gap: 0; }
  .panel { margin-bottom: .9rem; }
  main { padding-top: 1.1rem; }
}

[hidden] { display: none !important; }
.account { display: flex; flex-wrap: wrap; gap: .4rem; }
.signin { max-width: 27rem; margin: clamp(1rem, 6vw, 5rem) auto 0; padding: clamp(1.2rem, 5vw, 2rem); }
.signin form { display: grid; gap: .6rem; margin-top: 1.4rem; }
.signin label { font-weight: 650; }
.signin input {
  width: 100%; min-height: 2.75rem; padding: .5rem .7rem;
  border: 1px solid #8498a9; border-radius: .5rem;
  background: var(--surface); color: var(--ink); font: inherit;
}
.signin input:focus-visible { outline: 3px solid #009481; outline-offset: 2px; }
.signin button { background: var(--accent); color: #fff; border: 0; border-radius: .5rem; padding: .65rem; margin-top: .45rem; }
.signin button:hover { background: var(--accent-dark); }
.login-error { color: var(--negative); font-size: .9rem; }
.login-error:empty { display: none; }
