@font-face {
  font-family: "Manrope";
  src: url("./fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("./fonts/manrope-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("./fonts/instrument-serif-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("./fonts/instrument-serif-latin-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("./fonts/instrument-serif-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #060910;
  --bg-soft: #090e19;
  --surface: rgba(14, 21, 37, 0.7);
  --surface-solid: #0d1422;
  --surface-2: rgba(255, 255, 255, 0.035);
  --surface-3: rgba(255, 255, 255, 0.06);
  --line: rgba(220, 233, 255, 0.085);
  --line-strong: rgba(220, 233, 255, 0.16);
  --text: #f4f7fc;
  --text-2: #cbd5e5;
  --muted: #909db5;
  --faint: #65718a;
  --mint: #bfe9db;
  --mint-dim: rgba(191, 233, 219, 0.16);
  --gold: #f5d293;
  --blue: #8fc3ff;
  --coral: #f09c90;
  --violet: #cbb9ff;
  --font-ui: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.38);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --max: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scrollbar-gutter: stable;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 60% at 12% -18%, rgba(48, 89, 146, 0.28), transparent 62%),
    radial-gradient(ellipse 60% 50% at 104% 18%, rgba(91, 74, 128, 0.16), transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% 104%, rgba(22, 56, 72, 0.19), transparent 62%),
    linear-gradient(180deg, #070b14 0%, #080d17 48%, #060910 100%);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.035), transparent 34%),
    linear-gradient(90deg, rgba(4, 7, 13, 0.32), transparent 18%, transparent 82%, rgba(4, 7, 13, 0.32));
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

::selection {
  background: rgba(191, 233, 219, 0.28);
  color: #fff;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

svg {
  display: block;
}

.ui-icon {
  flex: none;
  vertical-align: middle;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--mint);
  color: #07100e;
  font-weight: 700;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 14px;
}

.noscript {
  position: relative;
  z-index: 200;
  max-width: 480px;
  margin: 12vh auto 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-solid);
  text-align: center;
}

.noscript strong {
  letter-spacing: 0.3em;
  color: var(--mint);
}

.noscript p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

.modal-close:focus-visible,
.icon-button:focus-visible,
.favorite-button:focus-visible {
  outline: 1px solid rgba(191, 233, 219, 0.55);
  outline-offset: 3px;
}

.option-card:focus-visible {
  outline: 1px solid rgba(191, 233, 219, 0.6);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.13);
  border: 3px solid transparent;
  border-radius: 99px;
  background-clip: padding-box;
}

.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}

/* ------------------------------------------------------------------ */
/* Boot                                                                */
/* ------------------------------------------------------------------ */

.boot {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.boot-orbit {
  width: 120px;
  height: 120px;
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.boot-orbit span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 50%;
}

.boot-orbit span:nth-child(2) {
  inset: 18px;
  border-color: rgba(255, 255, 255, 0.08);
}

.boot-orbit span:nth-child(3) {
  inset: 36px;
  border-color: rgba(245, 158, 11, 0.22);
}

.boot-orbit i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.95);
  animation: orbit 5.5s linear infinite;
  transform-origin: 0 0;
}

.boot-shield {
  position: absolute;
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.35));
  animation: bootShieldPulse 3s ease-in-out infinite alternate;
}

@keyframes bootShieldPulse {
  0% { transform: scale(0.96); filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.25)); }
  100% { transform: scale(1.04); filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.5)); }
}

.boot-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-size: 21px;
  font-family: system-ui, -apple-system, "Manrope", sans-serif;
  letter-spacing: -0.4px;
  line-height: 1;
}

.boot-brand b {
  font-weight: 800;
  color: #f8fafc;
}

.boot-brand em {
  font-style: normal;
  font-weight: 400;
  color: #38bdf8;
}

.boot-radar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 7px 0 14px;
}

.boot-radar span:first-child {
  width: 38px;
  height: 3px;
  border-radius: 2px;
  background: #f59e0b;
}

.boot-radar span:last-child {
  width: 12px;
  height: 3px;
  border-radius: 2px;
  background: #38bdf8;
  opacity: 0.65;
}

.boot-text {
  font-family: var(--font-display);
  font-size: 27px;
  color: var(--text-2);
  letter-spacing: -0.01em;
}

.boot-line {
  width: 176px;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 20px;
}

.boot-line span {
  display: block;
  height: 100%;
  width: 42%;
  background: linear-gradient(90deg, transparent, var(--mint), transparent);
  animation: bootline 1.4s var(--ease) infinite;
}

@keyframes orbit {
  from {
    transform: rotate(0deg) translateX(57px);
  }
  to {
    transform: rotate(360deg) translateX(57px);
  }
}

@keyframes bootline {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(340%);
  }
}

/* ------------------------------------------------------------------ */
/* Top bar                                                             */
/* ------------------------------------------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 24px 10px;
  background: linear-gradient(180deg, rgba(6, 9, 16, 0.9) 0%, rgba(6, 9, 16, 0.62) 64%, transparent 100%);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

.topbar-inner {
  width: min(var(--max), 100%);
  min-height: 48px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--text);
  border-radius: 12px;
}

.brand-symbol {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  background: radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.14), transparent 70%);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.12), inset 0 0 12px rgba(56, 189, 248, 0.05);
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s;
}

.brand:hover .brand-symbol {
  transform: translateY(-1px) scale(1.05);
  border-color: rgba(56, 189, 248, 0.5);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}

.brand-name {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 1.5px;
  font-size: 18px;
  font-family: system-ui, -apple-system, "Manrope", sans-serif;
  line-height: 1;
  white-space: nowrap;
}

.brand-name b {
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.3px;
}

.brand-name em {
  font-style: normal;
  font-weight: 400;
  color: #38bdf8;
  letter-spacing: -0.3px;
}

.brand-radar {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.brand-radar span:first-child {
  width: 26px;
  height: 2.5px;
  border-radius: 1.5px;
  background: #f59e0b;
}

.brand-radar span:last-child {
  width: 8px;
  height: 2.5px;
  border-radius: 1.5px;
  background: #38bdf8;
  opacity: 0.65;
}

.brand-copy small {
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.01em;
  color: var(--faint);
  white-space: nowrap;
  margin-top: 2px;
}

.place-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 12px 7px 10px;
  border: 1px solid transparent;
  border-radius: 99px;
  color: var(--text-2);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  max-width: 260px;
}

.place-pill:hover {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--text);
}

.place-pill > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.place-pill b {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 650;
}

.place-pill small {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9.5px;
  color: var(--faint);
  letter-spacing: 0.02em;
}

.place-pill > .ui-icon:last-child {
  color: var(--faint);
  margin-left: 2px;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
}

.search-button {
  height: 38px;
  min-width: 188px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px 0 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.028);
  color: var(--muted);
  font-size: 11.5px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.search-button:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-strong);
  color: var(--text-2);
}

.search-button span {
  flex: 1;
  text-align: left;
}

.search-button kbd {
  font-family: var(--font-ui);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 5px;
  background: rgba(0, 0, 0, 0.15);
}

.unit-button,
.icon-button {
  height: 38px;
  min-width: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 650;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.unit-button:hover,
.icon-button:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
  color: var(--text);
}

.icon-button:active {
  transform: scale(0.94);
}

.refresh-button.is-spinning .ui-icon {
  animation: spin 1.15s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ------------------------------------------------------------------ */
/* Shell & shared                                                      */
/* ------------------------------------------------------------------ */

.shell {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 10px 24px 0;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 7px;
}

.card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(158deg, rgba(20, 30, 50, 0.78) 0%, rgba(10, 16, 28, 0.88) 58%, rgba(9, 14, 24, 0.92) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 24px 70px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(ellipse 65% 60% at 12% 0%, rgba(255, 255, 255, 0.035), transparent 65%);
}

.card > * {
  position: relative;
  z-index: 1;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.card-head h2 {
  margin-top: 4px;
  font-size: 25px;
  line-height: 1.08;
  font-weight: 560;
  letter-spacing: -0.035em;
  color: var(--text);
}

.subtle-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--mint);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.text-button:hover {
  color: #e0fff7;
  border-color: rgba(191, 233, 219, 0.4);
}

.text-button--small {
  font-size: 10px;
  color: var(--muted);
}

.text-button--small:hover {
  color: var(--mint);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 650;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.button:active {
  transform: scale(0.97);
}

.button--primary {
  color: #07100d;
  background: linear-gradient(135deg, #d9f4ea, #a8ddcc);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 8px 26px rgba(191, 233, 219, 0.13);
}

.button--primary:hover {
  background: linear-gradient(135deg, #effff9, #b7e8d9);
}

.button--ghost {
  color: var(--text-2);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
}

.button--small {
  height: 34px;
  font-size: 10.5px;
  padding: 0 12px;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.02);
  gap: 2px;
}

.segmented button {
  height: 27px;
  padding: 0 10px;
  border-radius: 99px;
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--faint);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.segmented button:hover {
  color: var(--text-2);
}

.segmented button.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.085);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 548px;
  border: 1px solid rgba(220, 233, 255, 0.11);
  border-radius: var(--radius-xl);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 45% 80% at 84% 38%, var(--hero-glow, rgba(116, 149, 208, 0.28)), transparent 68%),
    linear-gradient(138deg, var(--hero-a, #091529) 0%, var(--hero-b, #0c1b34) 50%, var(--hero-c, #172744) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 40px 100px rgba(0, 0, 0, 0.32);
}

.hero--clear {
  --hero-a: #081225;
  --hero-b: #102343;
  --hero-c: #1c3159;
  --hero-glow: rgba(113, 154, 219, 0.34);
}

.hero--clear.is-day {
  --hero-a: #15243a;
  --hero-b: #243d5b;
  --hero-c: #6b7186;
  --hero-glow: rgba(245, 207, 141, 0.28);
}

.hero--partly {
  --hero-a: #081324;
  --hero-b: #10233e;
  --hero-c: #233c5d;
  --hero-glow: rgba(170, 196, 236, 0.24);
}

.hero--partly.is-day {
  --hero-a: #152437;
  --hero-b: #2b4160;
  --hero-c: #5f6c84;
  --hero-glow: rgba(238, 205, 151, 0.22);
}

.hero--cloudy {
  --hero-a: #0b111d;
  --hero-b: #172133;
  --hero-c: #2c384d;
  --hero-glow: rgba(174, 193, 222, 0.16);
}

.hero--rain {
  --hero-a: #07111d;
  --hero-b: #0c2033;
  --hero-c: #1b3a4d;
  --hero-glow: rgba(114, 182, 220, 0.2);
}

.hero--snow {
  --hero-a: #0b1624;
  --hero-b: #182b42;
  --hero-c: #344d66;
  --hero-glow: rgba(196, 225, 247, 0.22);
}

.hero--thunder {
  --hero-a: #0b0d1d;
  --hero-b: #18162f;
  --hero-c: #342744;
  --hero-glow: rgba(170, 135, 219, 0.22);
}

.hero--fog {
  --hero-a: #0b121d;
  --hero-b: #1a2634;
  --hero-c: #384553;
  --hero-glow: rgba(194, 208, 221, 0.14);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 8, 15, 0.3) 0%, transparent 38%, transparent 76%, rgba(4, 8, 15, 0.2) 100%),
    linear-gradient(180deg, rgba(4, 8, 15, 0.1) 0%, transparent 45%, rgba(4, 8, 15, 0.32) 100%);
}

.hero-aurora {
  position: absolute;
  width: 60%;
  height: 80%;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: auroraDrift 20s ease-in-out infinite alternate;
}

.hero-aurora--one {
  top: -32%;
  left: 26%;
  background: radial-gradient(ellipse, rgba(65, 150, 165, 0.26), transparent 66%);
}

.hero-aurora--two {
  right: -22%;
  bottom: -30%;
  background: radial-gradient(ellipse, rgba(90, 82, 166, 0.2), transparent 65%);
  animation-delay: -7s;
  animation-duration: 26s;
}

.hero--rain .hero-aurora--one {
  background: radial-gradient(ellipse, rgba(69, 131, 169, 0.25), transparent 66%);
}

.hero--clear.is-day .hero-aurora--one {
  background: radial-gradient(ellipse, rgba(238, 193, 123, 0.22), transparent 66%);
  left: 56%;
  top: -22%;
}

.hero-glow {
  position: absolute;
  right: 4%;
  top: 12%;
  width: min(610px, 58vw);
  height: min(610px, 58vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.09), transparent 62%);
  filter: blur(10px);
}

.hero--rain .hero-glow {
  background: radial-gradient(circle, rgba(139, 191, 229, 0.12), transparent 64%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.hero-stars {
  position: absolute;
  inset: 0;
  transition: opacity 1s;
}

.hero.is-day .hero-stars {
  opacity: 0.38;
}

.hero--cloudy .hero-stars,
.hero--rain .hero-stars,
.hero--thunder .hero-stars {
  opacity: 0.27;
}

.hero--fog .hero-stars {
  opacity: 0.12;
}

.star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: #ecf3ff;
  opacity: var(--o);
  box-shadow: 0 0 6px rgba(214, 230, 255, 0.45);
  animation: twinkle var(--d) ease-in-out var(--delay) infinite alternate;
}

.star--bright {
  box-shadow: 0 0 14px rgba(237, 247, 255, 0.9), 0 0 40px rgba(176, 207, 255, 0.35);
}

.shooting-star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 110px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  transform: rotate(23deg);
  opacity: 0;
  animation: shooting 12s ease-in 5s infinite;
}

.rain-layer,
.snow-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.38;
}

.rain-layer i {
  position: absolute;
  left: var(--x);
  top: -18%;
  width: 1px;
  height: var(--len);
  border-radius: 99px;
  background: linear-gradient(180deg, transparent, rgba(171, 214, 249, 0.7), transparent);
  transform: rotate(13deg);
  animation: rainFall var(--dur) linear var(--delay) infinite;
}

.snow-layer i {
  position: absolute;
  left: var(--x);
  top: -10%;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: rgba(226, 240, 255, 0.65);
  filter: blur(0.3px);
  animation: snowFall var(--dur) linear var(--delay) infinite;
}

.fog-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.28;
}

.fog-layer i {
  position: absolute;
  left: -20%;
  width: 140%;
  height: 28%;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(198, 213, 228, 0.2), transparent);
  filter: blur(26px);
  animation: fogDrift 18s ease-in-out infinite alternate;
}

.fog-layer i:nth-child(1) {
  top: 44%;
}

.fog-layer i:nth-child(2) {
  top: 58%;
  animation-delay: -6s;
  opacity: 0.65;
}

.fog-layer i:nth-child(3) {
  top: 70%;
  animation-delay: -12s;
  opacity: 0.4;
}

@keyframes twinkle {
  from {
    opacity: calc(var(--o) * 0.42);
    transform: scale(0.85);
  }
  to {
    opacity: var(--o);
    transform: scale(1.15);
  }
}

@keyframes shooting {
  0%,
  87%,
  100% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(23deg);
  }
  89% {
    opacity: 0.75;
  }
  94% {
    opacity: 0;
    transform: translate3d(-260px, 110px, 0) rotate(23deg);
  }
}

@keyframes auroraDrift {
  from {
    transform: translate3d(-3%, -2%, 0) scale(0.95);
  }
  to {
    transform: translate3d(5%, 4%, 0) scale(1.08);
  }
}

@keyframes rainFall {
  from {
    transform: translate3d(0, -10%, 0) rotate(13deg);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  to {
    transform: translate3d(-90px, 700px, 0) rotate(13deg);
    opacity: 0;
  }
}

@keyframes snowFall {
  from {
    transform: translate3d(0, -10%, 0);
    opacity: 0;
  }
  15% {
    opacity: 0.85;
  }
  to {
    transform: translate3d(-70px, 720px, 0);
    opacity: 0;
  }
}

@keyframes fogDrift {
  from {
    transform: translateX(-5%);
  }
  to {
    transform: translateX(7%);
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 548px;
  padding: 38px 42px 30px;
}

.hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.hero-eyebrow {
  color: rgba(214, 227, 245, 0.6);
  margin-bottom: 14px;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(191, 233, 219, 0.08), 0 0 12px rgba(191, 233, 219, 0.65);
  animation: statusPulse 2.4s ease-in-out infinite;
}

.status-dot--cached {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(245, 210, 147, 0.08), 0 0 12px rgba(245, 210, 147, 0.5);
}

@keyframes statusPulse {
  50% {
    opacity: 0.55;
    box-shadow: 0 0 0 7px rgba(191, 233, 219, 0.03);
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(54px, 6.8vw, 88px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: #f8fafc;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
  max-width: 780px;
}

.hero-sub {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.025em;
  color: rgba(209, 223, 242, 0.54);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dot-sep {
  opacity: 0.38;
}

.favorite-button {
  flex: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(241, 247, 255, 0.78);
  background: rgba(6, 12, 22, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.favorite-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.favorite-button.is-favorite {
  color: var(--gold);
  border-color: rgba(245, 210, 147, 0.28);
  background: rgba(245, 210, 147, 0.08);
}

.favorite-button.is-favorite .ui-icon {
  fill: currentColor;
}

.hero-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 0 6px;
}

.hero-temp-block {
  min-width: 0;
  padding-top: 6px;
}

.temp-display {
  display: flex;
  align-items: flex-start;
  line-height: 0.76;
  margin-left: -0.055em;
}

.temp-number {
  font-size: clamp(116px, 13.2vw, 184px);
  font-weight: 210;
  letter-spacing: -0.085em;
  color: #f7faff;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff 20%, #d9e5f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.temp-degree {
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 220;
  color: rgba(234, 243, 255, 0.72);
  margin-top: 0.08em;
  margin-left: 0.02em;
  letter-spacing: -0.02em;
}

.condition-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: 480;
  letter-spacing: -0.015em;
  color: #eaf2fc;
}

.condition-glow {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(245, 210, 147, 0.8);
}

.hero--rain .condition-glow {
  background: var(--blue);
  box-shadow: 0 0 14px rgba(143, 195, 255, 0.8);
}

.hero--snow .condition-glow {
  background: #d8ecff;
}

.hero-feels {
  margin-top: 9px;
  font-size: 12.5px;
  color: rgba(210, 224, 243, 0.55);
  letter-spacing: 0.01em;
}

.hero-visual {
  position: relative;
  flex: 0 0 40%;
  min-height: 290px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.075);
  box-shadow:
    inset 0 0 80px rgba(255, 255, 255, 0.025),
    0 0 0 32px rgba(255, 255, 255, 0.018),
    0 0 0 70px rgba(255, 255, 255, 0.012);
  pointer-events: none;
}

.hero-glyph {
  position: relative;
  z-index: 1;
  animation: glyphFloat 8s ease-in-out infinite;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.35));
}

.hero-orbit-dots {
  --r: clamp(108px, 10.2vw, 157px);
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  z-index: 3;
  pointer-events: none;
}

.orbit-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--source-color);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--source-color) 10%, transparent),
    0 0 12px color-mix(in srgb, var(--source-color) 48%, transparent);
  opacity: 0.72;
  transform: rotate(var(--angle)) translateX(var(--r));
  pointer-events: auto;
  transition: opacity 0.2s, transform 0.25s var(--ease), box-shadow 0.2s;
}

.orbit-dot::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
}

.orbit-dot span {
  position: absolute;
  left: 14px;
  top: 50%;
  padding: 3px 6px;
  border: 1px solid color-mix(in srgb, var(--source-color) 25%, transparent);
  border-radius: 4px;
  background: rgba(5, 10, 18, 0.9);
  color: color-mix(in srgb, var(--source-color) 80%, white);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-50%) rotate(calc(-1 * var(--angle)));
  transition: opacity 0.18s;
  pointer-events: none;
}

.orbit-dot span i {
  font-style: normal;
  color: rgba(255, 255, 255, 0.36);
  margin-left: 3px;
}

.orbit-dot:hover,
.orbit-dot:focus-visible {
  opacity: 1;
  transform: rotate(var(--angle)) translateX(var(--r)) scale(1.65);
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--source-color) 12%, transparent),
    0 0 24px color-mix(in srgb, var(--source-color) 70%, transparent);
  z-index: 4;
}

.orbit-dot:hover span,
.orbit-dot:focus-visible span {
  opacity: 1;
}

@keyframes orbitBreath {
  0%,
  100% {
    opacity: 0.58;
  }
  50% {
    opacity: 0.92;
  }
}

.hero-orbit-dots .orbit-dot:nth-child(odd) {
  animation: orbitBreath 5s ease-in-out infinite;
}

.hero-orbit-dots .orbit-dot:nth-child(even) {
  animation: orbitBreath 6.4s ease-in-out -2s infinite;
}

.wx-glyph {
  display: inline-block;
  line-height: 0;
}

.wx-glyph svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.wx-glyph--hero {
  width: clamp(188px, 21vw, 272px);
  height: clamp(188px, 21vw, 272px);
}

.wx-glyph--lg {
  width: 112px;
  height: 112px;
}

.wx-glyph--md {
  width: 70px;
  height: 70px;
}

.wx-glyph--sm {
  width: 43px;
  height: 43px;
}

.wx-glyph--xs {
  width: 28px;
  height: 28px;
}

@keyframes glyphFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-0.6deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.6deg);
  }
}

.confidence-badge {
  position: absolute;
  right: 1%;
  bottom: 1%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 9px 11px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(6, 12, 22, 0.42);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.confidence-badge > span {
  font-size: 8px;
  font-weight: 620;
  letter-spacing: 0.08em;
  color: rgba(217, 232, 249, 0.62);
  white-space: nowrap;
}

.agreement-ring {
  width: var(--ring-size);
  height: var(--ring-size);
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
}

.agreement-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 7;
}

.ring-value {
  fill: none;
  stroke: var(--ring-color, var(--mint));
  stroke-width: 7;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 1.2s var(--ease);
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--ring-color) 40%, transparent));
}

.ring-label {
  display: flex;
  align-items: baseline;
  gap: 1px;
  color: #f4f8fd;
  z-index: 1;
}

.ring-label strong {
  font-size: calc(var(--ring-size) * 0.27);
  font-weight: 520;
  letter-spacing: -0.055em;
  line-height: 1;
}

.ring-label small {
  font-size: calc(var(--ring-size) * 0.1);
  color: rgba(233, 243, 255, 0.55);
  font-weight: 600;
  transform: translateY(-1px);
}

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 18px 4px 0;
  min-width: 128px;
}

.hero-stat + .hero-stat {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 18px;
}

.hero-stat-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  color: rgba(221, 234, 250, 0.72);
  background: rgba(255, 255, 255, 0.025);
}

.hero-stat > div {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 5px;
  row-gap: 0;
}

.hero-stat small {
  grid-column: 1 / -1;
  font-size: 8.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(204, 220, 239, 0.46);
  margin-bottom: 2px;
}

.hero-stat strong {
  font-size: 16px;
  font-weight: 540;
  letter-spacing: -0.025em;
  color: #eef5ff;
}

.hero-stat strong em {
  font-style: normal;
  font-size: 9px;
  font-weight: 500;
  color: rgba(223, 235, 250, 0.5);
  letter-spacing: 0;
}

.hero-stat > div > span {
  font-size: 9.5px;
  color: rgba(211, 226, 244, 0.4);
}

.hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  flex: none;
}

.model-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 35px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 99px;
  background: rgba(4, 10, 19, 0.26);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: rgba(232, 241, 253, 0.82);
  font-size: 9.5px;
  transition: background 0.2s, border-color 0.2s;
}

.model-pill:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
}

.model-pill i {
  font-style: normal;
  color: var(--mint);
  font-weight: 650;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.11);
}

.updated-pill {
  font-size: 8.5px;
  letter-spacing: 0.04em;
  color: rgba(203, 219, 239, 0.42);
}

.updated-pill.is-updating {
  color: var(--gold);
}

/* ------------------------------------------------------------------ */
/* Advisory                                                            */
/* ------------------------------------------------------------------ */

.advisory-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  background: rgba(12, 19, 32, 0.58);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 10px;
}

.advisory-bar--quiet {
  color: var(--faint);
}

.advisory-lead {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: var(--text-2);
}

.advisory-lead b {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.advisory-lead > span:not(.advisory-ok):not(.advisory-alert):not(.advisory-disclaimer) {
  color: var(--faint);
}

.advisory-ok {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(191, 233, 219, 0.09);
  color: var(--mint);
}

.advisory-alert {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(245, 210, 147, 0.11);
  color: var(--gold);
}

.advisory-disclaimer {
  color: var(--faint);
  font-size: 9px;
}

.advisory-items {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  flex: 1;
}

.advisory-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid rgba(245, 210, 147, 0.13);
  border-radius: 99px;
  background: rgba(245, 210, 147, 0.055);
  color: var(--gold);
  font-size: 9px;
  white-space: nowrap;
}

.advisory-chip b {
  font-weight: 650;
}

.advisory-chip span {
  color: rgba(245, 220, 170, 0.58);
}

.advisory-chip.is-severe {
  border-color: rgba(240, 156, 144, 0.24);
  background: rgba(240, 156, 144, 0.075);
  color: var(--coral);
}

.official-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--faint);
  font-size: 8.5px;
  white-space: nowrap;
  transition: color 0.2s;
}

.official-link:hover {
  color: var(--text-2);
}

/* ------------------------------------------------------------------ */
/* Dashboard                                                           */
/* ------------------------------------------------------------------ */

.dashboard {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.brief-card {
  grid-column: 1 / 9;
  grid-row: 1;
  padding: 28px;
  background:
    radial-gradient(ellipse 60% 90% at 3% 0%, rgba(191, 233, 219, 0.075), transparent 58%),
    linear-gradient(158deg, rgba(22, 33, 54, 0.86) 0%, rgba(11, 18, 31, 0.92) 100%);
}

.models-card {
  grid-column: 9 / 13;
  grid-row: 1 / 3;
}

.hourly-card {
  grid-column: 1 / 9;
  grid-row: 2;
}

.daily-card {
  grid-column: 1 / 9;
  grid-row: 3;
}

.sun-card {
  grid-column: 9 / 13;
  grid-row: 3;
}

.details-card {
  grid-column: 1 / 13;
  grid-row: 4;
}

.air-card {
  grid-column: 1 / 7;
  grid-row: 5;
}

.nowcast-card {
  grid-column: 7 / 13;
  grid-row: 5;
}

/* ------------------------------------------------------------------ */
/* Brief                                                               */
/* ------------------------------------------------------------------ */

.brief-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.brief-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spark-badge {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid rgba(191, 233, 219, 0.16);
  border-radius: 13px;
  background:
    radial-gradient(circle at 50% 30%, rgba(191, 233, 219, 0.16), transparent 70%),
    rgba(255, 255, 255, 0.025);
  color: var(--mint);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.brief-label {
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--text-2);
  line-height: 1;
}

.confidence-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 99px;
  font-size: 8.5px;
  font-weight: 610;
  letter-spacing: 0.025em;
  white-space: nowrap;
  border: 1px solid var(--line);
  color: var(--text-2);
}

.confidence-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.confidence-pill--high {
  color: var(--mint);
  border-color: rgba(191, 233, 219, 0.17);
  background: rgba(191, 233, 219, 0.055);
}

.confidence-pill--moderate {
  color: var(--gold);
  border-color: rgba(245, 210, 147, 0.16);
  background: rgba(245, 210, 147, 0.05);
}

.confidence-pill--low {
  color: var(--coral);
  border-color: rgba(240, 156, 144, 0.16);
  background: rgba(240, 156, 144, 0.05);
}

.brief-headline {
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.2vw, 53px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: #f7fafc;
}

.brief-body {
  margin-top: 13px;
  max-width: 800px;
  font-size: 13.5px;
  line-height: 1.72;
  color: rgba(203, 216, 233, 0.74);
  letter-spacing: 0.002em;
}

.brief-extras {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 17px;
}

.brief-extras span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--faint);
  font-size: 8.5px;
  letter-spacing: 0.02em;
}

.brief-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.brief-footnote {
  font-size: 9px;
  color: var(--faint);
  text-align: right;
}

.brief-more {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  overflow: hidden;
  transition: grid-template-rows 0.5s var(--ease), opacity 0.4s, padding 0.4s;
}

.brief-more > * {
  min-height: 0;
  overflow: hidden;
}

.brief-more.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  padding-top: 18px;
}

.brief-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.brief-metric {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.018);
}

.brief-metric span {
  display: block;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 5px;
}

.brief-metric b {
  font-size: 12px;
  font-weight: 550;
  color: var(--text-2);
}

.brief-insight {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 9px;
  padding: 12px 14px;
  border-left: 1px solid rgba(191, 233, 219, 0.28);
  background: rgba(191, 233, 219, 0.028);
  border-radius: 0 10px 10px 0;
  color: rgba(199, 218, 235, 0.68);
}

.brief-insight .ui-icon {
  color: var(--mint);
  margin-top: 1px;
}

.brief-insight p {
  font-size: 10.5px;
  line-height: 1.6;
}

.brief-note {
  margin-top: 9px;
  color: var(--faint);
  font-size: 8.5px;
}

/* ------------------------------------------------------------------ */
/* Models                                                              */
/* ------------------------------------------------------------------ */

.models-card {
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
}

.models-card.is-flashing {
  animation: cardFlash 1.1s var(--ease);
}

@keyframes cardFlash {
  0% {
    border-color: rgba(191, 233, 219, 0.16);
  }
  22% {
    border-color: rgba(191, 233, 219, 0.55);
    box-shadow: 0 0 0 1px rgba(191, 233, 219, 0.14), 0 0 55px rgba(191, 233, 219, 0.08);
  }
  100% {
    border-color: var(--line);
  }
}

.model-summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(191, 233, 219, 0.035), rgba(255, 255, 255, 0.012));
}

.model-summary-copy {
  min-width: 0;
}

.model-summary-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 570;
  letter-spacing: -0.01em;
}

.model-summary-copy p {
  margin-top: 3px;
  font-size: 9.5px;
  line-height: 1.45;
  color: var(--faint);
}

.model-summary-pill {
  display: inline-block;
  margin-top: 7px;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(203, 219, 238, 0.55);
  font-size: 7.5px;
  letter-spacing: 0.035em;
}

.official-source {
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(245, 210, 147, 0.16);
  border-radius: 14px;
  background:
    radial-gradient(ellipse 70% 100% at 100% 0%, rgba(245, 210, 147, 0.06), transparent 65%),
    rgba(255, 255, 255, 0.018);
}

.official-source.has-warning {
  border-color: rgba(240, 156, 144, 0.28);
}

.official-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.official-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--gold);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.official-mark {
  display: inline-grid;
  place-items: center;
  height: 17px;
  padding: 0 5px;
  border-radius: 4px;
  background: var(--gold);
  color: #151006;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.official-mode {
  color: var(--faint);
  font-size: 7px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.official-body {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
}

.official-glyph {
  width: 37px;
  height: 37px;
  flex: none;
  display: grid;
  place-items: center;
}

.official-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.official-copy b {
  font-size: 11px;
  font-weight: 560;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.official-copy span {
  font-size: 8px;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.official-temp {
  margin-left: auto;
  font-size: 23px;
  font-weight: 300;
  letter-spacing: -0.05em;
  color: var(--text);
  white-space: nowrap;
}

.official-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 7.5px;
  color: var(--faint);
}

.official-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.official-warning {
  margin-left: auto;
  color: var(--mint);
}

.official-source.has-warning .official-warning {
  color: var(--coral);
}

.official-foot {
  margin-top: 7px;
  font-size: 7.5px;
  line-height: 1.5;
  color: rgba(145, 159, 181, 0.52);
}

.official-foot a {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: rgba(245, 210, 147, 0.7);
  white-space: nowrap;
}

.official-foot a:hover {
  color: var(--gold);
}

.model-list {
  margin-top: 13px;
}

.model-row {
  width: 100%;
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) 45px 48px;
  grid-template-rows: auto auto;
  column-gap: 9px;
  align-items: center;
  padding: 10px 4px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 8px;
  transition: background 0.18s;
}

.model-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.model-row:last-child {
  border-bottom: 0;
}

.model-swatch {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--source-color, var(--mint));
  box-shadow: 0 0 9px color-mix(in srgb, var(--source-color, var(--mint)) 45%, transparent);
  flex: none;
}

.model-row > .model-swatch {
  grid-row: 1;
  width: 7px;
  height: 26px;
  border-radius: 99px;
  opacity: 0.8;
}

.model-ident {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 5px;
  overflow: hidden;
}

.model-ident b {
  font-size: 11.5px;
  font-weight: 620;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.model-ident small {
  font-size: 8px;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.model-temp {
  justify-self: end;
  font-size: 12px;
  font-weight: 540;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.model-delta {
  justify-self: end;
  font-size: 9.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.model-delta.is-close {
  color: rgba(191, 233, 219, 0.6);
}

.model-weight {
  grid-column: 2 / -1;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
}

.model-weight > span {
  display: block;
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
}

.model-weight i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(191, 233, 219, 0.4), rgba(191, 233, 219, 0.14));
}

.model-weight small {
  font-size: 7.5px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.model-insight {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 11px;
  padding: 9px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.022);
  color: rgba(197, 215, 235, 0.55);
  font-size: 8.5px;
  line-height: 1.45;
}

.model-insight .ui-icon {
  color: var(--mint);
  margin-top: 1px;
}

.model-foot {
  margin-top: auto;
  padding-top: 12px;
}

.model-foot p {
  font-size: 8px;
  line-height: 1.55;
  color: var(--faint);
}

.model-foot .text-button {
  margin-top: 7px;
}

/* ------------------------------------------------------------------ */
/* Hourly                                                              */
/* ------------------------------------------------------------------ */

.hourly-head {
  align-items: center;
}

.hour-rail {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 2px 1px 4px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.hour-cell {
  flex: 1 0 61px;
  min-width: 61px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  padding: 12px 5px 9px;
  border: 1px solid transparent;
  border-radius: 14px;
  scroll-snap-align: start;
  transition: background 0.2s, border-color 0.2s;
}

.hour-cell:hover {
  background: rgba(255, 255, 255, 0.022);
  border-color: rgba(255, 255, 255, 0.055);
}

.hour-cell.is-now {
  background: linear-gradient(180deg, rgba(191, 233, 219, 0.065), rgba(255, 255, 255, 0.015));
  border-color: rgba(191, 233, 219, 0.13);
}

.hour-label {
  font-size: 9px;
  font-weight: 550;
  letter-spacing: 0.01em;
  color: var(--faint);
  white-space: nowrap;
}

.hour-cell.is-now .hour-label {
  color: var(--mint);
}

.hour-glyph {
  height: 43px;
  display: grid;
  place-items: center;
  margin: 1px 0;
}

.hour-temp {
  font-size: 16px;
  font-weight: 520;
  letter-spacing: -0.04em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.hour-rain {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 8.5px;
  color: rgba(177, 197, 220, 0.48);
  font-variant-numeric: tabular-nums;
}

.hour-rain .ui-icon {
  color: rgba(143, 195, 255, 0.5);
}

.hour-rain.is-likely {
  color: var(--blue);
}

.hour-bar {
  width: 22px;
  height: 15px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: 1px;
}

.hour-bar i {
  display: block;
  width: 2.5px;
  min-height: 2px;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(143, 195, 255, 0.75), rgba(143, 195, 255, 0.14));
}

.hour-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 8.5px;
  color: var(--faint);
}

.hour-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.metric-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.metric-switch button {
  padding: 4px 9px;
  border-radius: 6px;
  color: var(--faint);
  font-size: 8.5px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.metric-switch button:hover {
  color: var(--text-2);
}

.metric-switch button.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.chart-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: -1px;
  color: var(--faint);
  font-size: 8.5px;
  letter-spacing: 0.02em;
}

.chart-caption span:last-child {
  text-align: right;
}

.chart-wrap {
  margin-top: 4px;
}

.chart-plot {
  position: relative;
  margin: 6px 0 0;
}

.model-chart {
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-grid {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
  stroke-dasharray: 1 5;
}

.chart-axis {
  fill: rgba(189, 204, 224, 0.42);
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.consensus-line {
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.28));
}

.chart-hits {
  position: absolute;
  left: 6.15%;
  right: 2.05%;
  top: 6.99%;
  bottom: 13.28%;
}

.chart-hit {
  position: absolute;
  top: 0;
  bottom: 0;
  outline: none;
  cursor: crosshair;
}

.chart-cursor {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
  opacity: 0;
  transition: opacity 0.15s;
}

.chart-hit:hover .chart-cursor,
.chart-hit:focus-visible .chart-cursor {
  opacity: 1;
}

.chart-hit:focus-visible {
  outline: 1px solid rgba(191, 233, 219, 0.42);
  outline-offset: -1px;
  border-radius: 3px;
}

.chart-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  transform: translate(-50%, 4px);
  width: 176px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 11px;
  background: rgba(7, 13, 23, 0.96);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
  z-index: 5;
}

.chart-hit:hover .chart-tip,
.chart-hit:focus-visible .chart-tip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.chart-hit:first-child .chart-tip {
  left: 0;
  transform: translate(0, 4px);
}

.chart-hit:first-child:hover .chart-tip,
.chart-hit:first-child:focus-visible .chart-tip {
  transform: translate(0, 0);
}

.chart-hit:last-child .chart-tip {
  left: auto;
  right: 0;
  transform: translate(0, 4px);
}

.chart-hit:last-child:hover .chart-tip,
.chart-hit:last-child:focus-visible .chart-tip {
  transform: translate(0, 0);
}

.chart-tip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.chart-tip-head b {
  font-size: 9px;
  color: var(--text-2);
}

.chart-tip-head i {
  font-style: normal;
  font-size: 7px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.chart-tip > strong {
  display: block;
  font-size: 20px;
  font-weight: 420;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1.2;
}

.chart-tip-range {
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
  font-size: 7.5px;
  color: var(--faint);
}

.chart-tip-range em {
  font-style: normal;
  color: var(--text-2);
}

.chart-tip-source {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 8px;
  color: var(--faint);
}

.chart-tip-source i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 8px 12px;
  flex-wrap: wrap;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--faint);
  font-size: 8px;
}

.legend-item i {
  width: 11px;
  height: 2px;
  border-radius: 99px;
  background: var(--mint);
}

.legend-item small {
  font-size: 7px;
  color: rgba(255, 255, 255, 0.28);
}

.legend-consensus {
  margin-left: auto;
  color: var(--text-2);
}

.legend-consensus i {
  height: 2px;
  background: #fff;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
}

.chart-footnote {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  font-size: 8px;
  color: var(--faint);
}

/* ------------------------------------------------------------------ */
/* Daily                                                               */
/* ------------------------------------------------------------------ */

.day-rail {
  display: grid;
  grid-template-columns: repeat(10, minmax(68px, 1fr));
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.day-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 6px 10px;
  border: 1px solid transparent;
  border-radius: 15px;
  color: var(--text-2);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.day-card:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.day-card.is-today {
  background: linear-gradient(180deg, rgba(191, 233, 219, 0.06), rgba(255, 255, 255, 0.012));
  border-color: rgba(191, 233, 219, 0.13);
}

.day-name {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
}

.day-card.is-today .day-name {
  color: var(--mint);
}

.day-date {
  font-size: 8.5px;
  color: var(--faint);
  letter-spacing: 0.01em;
}

.day-glyph {
  height: 42px;
  display: grid;
  place-items: center;
  margin: 2px 0;
}

.day-temp {
  display: flex;
  align-items: baseline;
  gap: 5px;
  line-height: 1;
}

.day-temp b {
  font-size: 15px;
  font-weight: 540;
  letter-spacing: -0.03em;
  color: var(--text);
}

.day-temp em {
  font-style: normal;
  font-size: 10px;
  color: var(--faint);
  font-weight: 450;
}

.day-bar {
  display: block;
  width: 82%;
  height: 3px;
  position: relative;
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.055);
  border-radius: 99px;
}

.day-bar i {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #88b5e9, #f2ca82);
  opacity: 0.75;
}

.day-rain {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 8px;
  color: var(--faint);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.day-rain.is-likely {
  color: var(--blue);
}

.daily-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 8.5px;
}

.daily-foot span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ------------------------------------------------------------------ */
/* Details                                                             */
/* ------------------------------------------------------------------ */

.details-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.detail-tile {
  position: relative;
  min-height: 218px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.006)),
    rgba(8, 14, 24, 0.45);
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}

.detail-tile:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.01)),
    rgba(8, 14, 24, 0.45);
}

.detail-head {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.detail-head .ui-icon {
  color: rgba(191, 233, 219, 0.62);
}

.detail-head small {
  margin-left: auto;
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-value {
  margin-top: 20px;
  font-size: 38px;
  font-weight: 250;
  line-height: 1;
  letter-spacing: -0.055em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.detail-sub {
  margin-top: 6px;
  font-size: 9px;
  color: var(--faint);
}

.detail-foot {
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 12px;
  font-size: 7.5px;
  color: var(--faint);
  letter-spacing: 0.04em;
}

.precip-mini {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 44px;
  margin-top: 14px;
}

.precip-mini span {
  flex: 1;
  height: var(--h);
  min-height: 2px;
  border-radius: 2px 2px 0 0;
  background: rgba(143, 195, 255, 0.13);
}

.precip-mini span.is-wet {
  background: linear-gradient(180deg, rgba(143, 195, 255, 0.72), rgba(94, 152, 208, 0.2));
}

.compass-wrap {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 1px;
}

.compass {
  width: 164px;
  height: 164px;
  flex: none;
}

.compass-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.compass-meta span {
  display: block;
  font-size: 7.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--faint);
  margin-bottom: 2px;
}

.compass-meta strong {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text-2);
  white-space: nowrap;
}

.compass-meta small {
  font-size: 8px;
  color: var(--faint);
  font-weight: 450;
}

.uv-gauge {
  margin-top: 6px;
}

.uv-gauge svg {
  width: 100%;
  height: auto;
}

.uv-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: -5px;
}

.uv-meta span {
  font-size: 9px;
  font-weight: 600;
  color: var(--mint);
}

.uv-meta span[data-level="moderate"] {
  color: var(--gold);
}

.uv-meta span[data-level="high"],
.uv-meta span[data-level="veryHigh"],
.uv-meta span[data-level="extreme"] {
  color: var(--coral);
}

.uv-meta small {
  font-size: 8px;
  color: var(--faint);
}

.visibility-bar {
  margin-top: 42px;
}

.visibility-track {
  position: relative;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(240, 156, 144, 0.6), rgba(245, 210, 147, 0.5), rgba(191, 233, 219, 0.62));
  opacity: 0.75;
}

.visibility-track span {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f6fbff;
  border: 2px solid #0b1220;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
}

.visibility-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 7px;
  color: var(--faint);
}

.humidity-body {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 1px;
}

.humidity-visual {
  width: 104px;
  height: 128px;
  flex: none;
}

.humidity-visual svg {
  width: 100%;
  height: 100%;
}

.humidity-copy strong {
  display: block;
  font-size: 11px;
  font-weight: 560;
  color: var(--text-2);
}

.humidity-copy p {
  margin-top: 5px;
  font-size: 8px;
  color: var(--faint);
}

.pressure-gauge {
  margin-top: 2px;
}

.pressure-gauge svg {
  width: 100%;
  height: auto;
}

.gauge-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: -7px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--faint);
  font-size: 8px;
}

.cloud-body {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.cloud-donut {
  width: 118px;
  height: 118px;
  position: relative;
  flex: none;
}

.cloud-donut svg {
  width: 100%;
  height: 100%;
}

.cloud-donut > span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  padding-top: 44px;
  color: var(--text);
}

.cloud-donut strong {
  font-size: 22px;
  font-weight: 330;
  letter-spacing: -0.05em;
}

.cloud-donut small {
  font-size: 8px;
  color: var(--faint);
}

.cloud-copy strong {
  font-size: 11px;
  font-weight: 560;
  color: var(--text-2);
}

.cloud-copy p {
  margin-top: 4px;
  font-size: 9px;
  color: var(--faint);
}

.comfort-scale {
  position: relative;
  height: 4px;
  margin-top: 35px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(120, 170, 220, 0.5), rgba(191, 233, 219, 0.45), rgba(245, 210, 147, 0.55));
  opacity: 0.65;
}

.comfort-dot {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f8fbff;
  border: 2px solid #0b1220;
  box-shadow: 0 0 9px rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
}

.comfort-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-size: 7.5px;
  color: var(--faint);
}

/* ------------------------------------------------------------------ */
/* Sun                                                                 */
/* ------------------------------------------------------------------ */

.sun-card {
  min-height: 100%;
}

.sun-arc-wrap {
  margin-top: 2px;
}

.sun-arc {
  width: 100%;
  height: auto;
}

.sun-arc-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -4px;
  font-size: 8px;
  color: var(--faint);
}

.sun-arc-labels span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sun-arc-labels span:last-child {
  align-items: flex-end;
}

.sun-arc-labels b {
  font-size: 12px;
  font-weight: 520;
  color: var(--text-2);
  letter-spacing: -0.02em;
}

.sun-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.sun-stats div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sun-stats span {
  font-size: 7.5px;
  color: var(--faint);
  letter-spacing: 0.02em;
}

.sun-stats b {
  font-size: 13px;
  font-weight: 510;
  letter-spacing: -0.025em;
  color: var(--text-2);
}

.moon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.moon-visual {
  width: 56px;
  height: 56px;
  flex: none;
}

.moon-icon {
  width: 100%;
  height: 100%;
}

.moon-row > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.moon-kicker {
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
}

.moon-row strong {
  font-size: 12px;
  font-weight: 540;
  color: var(--text-2);
}

.moon-row small {
  font-size: 8px;
  color: var(--faint);
}

/* ------------------------------------------------------------------ */
/* Air                                                                 */
/* ------------------------------------------------------------------ */

.aqi-pill {
  padding: 5px 9px;
  border-radius: 99px;
  font-size: 8px;
  font-weight: 640;
  color: var(--aqi-color);
  background: color-mix(in srgb, var(--aqi-color) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--aqi-color) 22%, transparent);
}

.air-main {
  display: flex;
  align-items: flex-end;
  gap: 13px;
}

.air-index {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.air-index strong {
  font-size: 54px;
  line-height: 0.9;
  font-weight: 240;
  letter-spacing: -0.07em;
  color: var(--text);
}

.air-index span {
  font-size: 8px;
  color: var(--faint);
  letter-spacing: 0.04em;
}

.air-copy p {
  font-size: 11px;
  font-weight: 570;
  color: var(--text-2);
}

.air-copy small {
  font-size: 7.5px;
  color: var(--faint);
}

.aqi-bar {
  margin-top: 18px;
}

.aqi-track {
  position: relative;
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(90deg, #78d6a0 0%, #b6df7c 25%, #f1cd6d 45%, #f0a063 65%, #e97070 82%, #b47ad6 100%);
  opacity: 0.82;
}

.aqi-track span {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f8fbff;
  border: 2px solid #0b1220;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
  transform: translate(-50%, -50%);
}

.aqi-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  font-size: 7px;
  color: var(--faint);
}

.aqi-spark {
  width: 100%;
  height: 48px;
  margin-top: 8px;
}

.air-pollutants {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.air-pollutants div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.air-pollutants span {
  font-size: 8px;
  color: var(--faint);
}

.air-pollutants b {
  font-size: 13px;
  font-weight: 480;
  color: var(--text-2);
  letter-spacing: -0.02em;
}

.air-pollutants small {
  font-size: 7px;
  color: rgba(255, 255, 255, 0.24);
}

.pollen-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.pollen-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(183, 208, 141, 0.08);
  color: rgba(183, 208, 141, 0.8);
}

.pollen-row > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.pollen-row > div span {
  font-size: 7.5px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pollen-row > div strong {
  font-size: 9.5px;
  font-weight: 540;
  color: var(--text-2);
}

.pollen-bars {
  display: flex;
  gap: 3px;
  margin-left: auto;
}

.pollen-bars i {
  width: 4px;
  height: 11px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
}

.pollen-bars i.is-on {
  background: rgba(183, 208, 141, 0.65);
}

.empty-copy {
  padding: 30px 0;
  color: var(--faint);
  font-size: 11px;
}

/* ------------------------------------------------------------------ */
/* Nowcast                                                             */
/* ------------------------------------------------------------------ */

.nowcast-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 99px;
  font-size: 8px;
  font-weight: 620;
  white-space: nowrap;
}

.nowcast-state.is-dry {
  color: var(--mint);
  background: rgba(191, 233, 219, 0.06);
  border: 1px solid rgba(191, 233, 219, 0.13);
}

.nowcast-state.is-wet {
  color: var(--blue);
  background: rgba(143, 195, 255, 0.07);
  border: 1px solid rgba(143, 195, 255, 0.15);
}

.nowcast-copy {
  font-size: 10.5px;
  color: var(--faint);
  margin-top: -4px;
}

.nowcast-bars {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 132px;
  margin-top: 16px;
  padding: 0 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nowcast-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 100% 33.33%;
  pointer-events: none;
}

.nowcast-col {
  position: relative;
  z-index: 1;
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}

.nowcast-value {
  font-size: 6.5px;
  color: rgba(143, 195, 255, 0.62);
  height: 9px;
  white-space: nowrap;
}

.nowcast-bar {
  display: block;
  width: 100%;
  max-width: 22px;
  height: var(--h);
  min-height: 2px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, rgba(158, 207, 250, 0.86), rgba(82, 142, 196, 0.25));
  box-shadow: 0 0 18px rgba(120, 180, 230, 0.12);
  transform-origin: bottom;
  animation: nowcastRise 0.8s var(--ease) var(--delay) both;
}

.nowcast-time {
  font-size: 7px;
  color: var(--faint);
  height: 10px;
}

@keyframes nowcastRise {
  from {
    transform: scaleY(0.08);
    opacity: 0.2;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

.nowcast-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 7.5px;
}

.nowcast-foot span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nowcast-empty {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--faint);
  font-size: 10px;
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.site-footer {
  margin-top: 46px;
  padding: 32px 0 28px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.55fr 1fr 0.85fr 0.9fr;
  gap: 34px;
}

.footer-brand .brand-name {
  font-size: 16px;
}

.footer-brand > p {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 11px;
  color: var(--text-2);
}

.footer-brand > small {
  display: block;
  max-width: 330px;
  margin-top: 9px;
  color: var(--faint);
  font-size: 9px;
  line-height: 1.65;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.footer-column > span {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
  margin-bottom: 2px;
}

.footer-column a,
.footer-column button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-2);
  font-size: 9.5px;
  text-decoration: none;
  opacity: 0.72;
  transition: opacity 0.2s, color 0.2s;
  padding: 0;
}

.footer-column a:hover,
.footer-column button:hover {
  opacity: 1;
  color: var(--mint);
}

.footer-column p {
  margin-top: 4px;
  color: var(--faint);
  font-size: 8.5px;
  line-height: 1.6;
  max-width: 220px;
}

.footer-languages {
  display: flex;
  gap: 4px;
}

.footer-languages button {
  padding: 3px 6px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 8px;
  letter-spacing: 0.04em;
  color: var(--faint);
}

.footer-languages button.is-active,
.footer-languages button:hover {
  color: var(--text-2);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 10px 22px;
  flex-wrap: wrap;
  margin-top: 33px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: rgba(145, 159, 181, 0.55);
  font-size: 8px;
  line-height: 1.5;
}

.footer-bottom a {
  color: rgba(191, 233, 219, 0.55);
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--mint);
}

/* ------------------------------------------------------------------ */
/* Data banner / error / skeleton                                      */
/* ------------------------------------------------------------------ */

.data-banner {
  width: min(var(--max), calc(100% - 48px));
  margin: 8px auto 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid rgba(245, 210, 147, 0.14);
  border-radius: 12px;
  background: rgba(245, 210, 147, 0.04);
  color: rgba(245, 229, 195, 0.62);
  font-size: 9px;
  position: relative;
  z-index: 2;
}

.data-banner-icon {
  color: var(--gold);
  display: grid;
  place-items: center;
}

.data-banner p {
  flex: 1;
  line-height: 1.45;
}

.data-banner p b {
  color: var(--gold);
  font-weight: 620;
}

.data-banner-time {
  color: rgba(245, 229, 195, 0.4);
  white-space: nowrap;
}

.data-banner-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--gold);
  font-size: 8.5px;
  font-weight: 600;
  padding: 4px 8px;
  border: 1px solid rgba(245, 210, 147, 0.18);
  border-radius: 99px;
  white-space: nowrap;
}

.error-shell {
  min-height: calc(100vh - 100px);
  display: grid;
  place-items: center;
  padding: 40px 24px 80px;
}

.error-card {
  width: min(520px, 100%);
  text-align: center;
  padding: 46px 36px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(13, 20, 33, 0.66);
  box-shadow: var(--shadow);
}

.error-orbit {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12), transparent 70%);
  box-shadow: 0 8px 32px rgba(2, 132, 199, 0.16), 0 0 0 14px rgba(255, 255, 255, 0.012);
}

.error-card .eyebrow {
  justify-content: center;
}

.error-card h1 {
  margin-top: 13px;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.error-card > p {
  margin-top: 12px;
  color: var(--faint);
  font-size: 11px;
  line-height: 1.65;
}

.error-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 23px;
}

.error-hint {
  margin-top: 25px !important;
  font-size: 8px !important;
  color: rgba(145, 159, 181, 0.45) !important;
}

.shell--loading {
  padding-top: 10px;
}

.skeleton-hero {
  position: relative;
  height: 530px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 40px;
  background: linear-gradient(138deg, #091529, #0c1b34 50%, #152440);
}

.skeleton {
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.085) 45%, rgba(255, 255, 255, 0.045) 100%);
  background-size: 220% 100%;
  animation: shimmer 1.7s linear infinite;
}

.skeleton-eyebrow {
  width: 170px;
  height: 9px;
  opacity: 0.6;
}

.skeleton-title {
  width: 280px;
  height: 58px;
  margin-top: 24px;
  border-radius: 13px;
}

.skeleton-sub {
  width: 210px;
  height: 10px;
  margin-top: 14px;
  opacity: 0.5;
}

.skeleton-temp {
  width: 230px;
  height: 115px;
  margin-top: 55px;
  border-radius: 20px;
}

.skeleton-orbit {
  position: absolute;
  right: 8%;
  top: 25%;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(255, 255, 255, 0.012), 0 0 0 88px rgba(255, 255, 255, 0.008);
}

.skeleton-row {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 28px;
  display: flex;
  gap: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.skeleton-row span {
  width: 120px;
  height: 28px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.042);
  animation: shimmer 1.7s linear infinite;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.skeleton-panel {
  height: 260px;
  border: 1px solid var(--line);
  border-radius: 25px;
  padding: 25px;
  background: rgba(13, 20, 33, 0.5);
}

.skeleton-panel--wide {
  grid-column: span 2;
}

.skeleton-line {
  width: 46%;
  height: 12px;
}

.skeleton-line.short {
  width: 26%;
  margin-top: 11px;
}

.skeleton-block {
  height: 120px;
  margin-top: 28px;
  border-radius: 14px;
}

.skeleton-rail {
  display: flex;
  gap: 7px;
  height: 100px;
  margin-top: 26px;
}

.skeleton-note {
  text-align: center;
  margin-top: 20px;
  color: var(--faint);
  font-size: 9px;
}

@keyframes shimmer {
  from {
    background-position: 130% 0;
  }
  to {
    background-position: -90% 0;
  }
}

/* ------------------------------------------------------------------ */
/* Modals                                                              */
/* ------------------------------------------------------------------ */

body.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 42px 18px;
  overflow-y: auto;
  background: rgba(3, 6, 11, 0.68);
  backdrop-filter: blur(13px) saturate(0.9);
  -webkit-backdrop-filter: blur(13px) saturate(0.9);
  animation: backdropIn 0.25s ease both;
}

.modal {
  position: relative;
  width: min(720px, 100%);
  margin: auto;
  border: 1px solid rgba(218, 232, 252, 0.13);
  border-radius: 30px;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(57, 87, 123, 0.15), transparent 65%),
    linear-gradient(155deg, #111a2b 0%, #0a111d 60%, #080d16 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 50px 150px rgba(0, 0, 0, 0.62);
  padding: 28px;
  outline: none;
  animation: modalIn 0.36s var(--ease) both;
}

.modal--search {
  width: min(680px, 100%);
  padding: 0;
  overflow: hidden;
}

.modal--settings {
  width: min(660px, 100%);
}

.modal--method {
  width: min(910px, 100%);
}

.modal--day {
  width: min(820px, 100%);
}

.modal--model {
  width: min(760px, 100%);
}

.modal-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.modal-top h2 {
  margin-top: 5px;
  font-size: clamp(26px, 3.4vw, 34px);
  line-height: 1.08;
  font-weight: 520;
  letter-spacing: -0.045em;
  color: var(--text);
}

.modal-close {
  flex: none;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

@keyframes backdropIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Search ------------------------------------------------------------- */

.search-shell {
  padding: 26px 26px 0;
}

.search-shell .modal-top {
  margin-bottom: 18px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--faint);
  transition: border-color 0.2s, background 0.2s;
}

.search-field:focus-within {
  border-color: rgba(191, 233, 219, 0.33);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 0 0 3px rgba(191, 233, 219, 0.045);
}

.search-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 420;
  letter-spacing: -0.01em;
  color: var(--text);
}

.search-field input::placeholder {
  color: rgba(166, 181, 201, 0.46);
}

.search-field kbd {
  font-family: var(--font-ui);
  font-size: 8px;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 5px;
  background: rgba(0, 0, 0, 0.14);
}

.search-clear {
  display: none;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  color: var(--faint);
  background: rgba(255, 255, 255, 0.055);
}

.search-clear.is-visible {
  display: grid;
}

.search-clear:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.search-results {
  max-height: min(56vh, 520px);
  overflow-y: auto;
  margin: 14px -6px 0;
  padding: 0 6px 10px;
  scrollbar-width: thin;
}

.search-section {
  margin-bottom: 20px;
}

.search-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
  margin-bottom: 8px;
}

.search-section-head h3 {
  font-size: 9px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--faint);
}

.search-section-head > span {
  font-size: 7.5px;
  color: rgba(145, 159, 181, 0.45);
}

.place-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.place-row {
  display: flex;
  align-items: stretch;
  gap: 4px;
  border-radius: 11px;
  transition: background 0.16s;
}

.place-row:hover,
.place-row.is-active {
  background: rgba(255, 255, 255, 0.04);
}

.place-main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 8px;
  text-align: left;
  min-width: 0;
  border-radius: 11px;
}

.place-row--locate {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 9px;
  margin-bottom: 15px;
  border: 1px solid rgba(191, 233, 219, 0.13);
  border-radius: 12px;
  background: rgba(191, 233, 219, 0.035);
  text-align: left;
  color: var(--text-2);
}

.place-row--locate:hover,
.place-row--locate.is-active {
  background: rgba(191, 233, 219, 0.075);
}

.locate-icon {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(191, 233, 219, 0.08);
  color: var(--mint);
}

.country-tag {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--faint);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.place-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.place-copy b {
  font-size: 13px;
  font-weight: 540;
  letter-spacing: -0.01em;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-copy small {
  font-size: 9.5px;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.place-coords {
  font-size: 7px;
  color: rgba(145, 159, 181, 0.4);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.place-main > .ui-icon {
  color: var(--faint);
  flex: none;
}

.place-remove {
  width: 32px;
  display: grid;
  place-items: center;
  color: var(--faint);
  border-radius: 9px;
  flex: none;
}

.place-remove:hover {
  color: var(--coral);
  background: rgba(240, 156, 144, 0.07);
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.city-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  text-align: left;
  transition: background 0.16s, border-color 0.16s;
}

.city-chip:hover,
.city-chip.is-active {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

.city-chip span {
  font-size: 11px;
  font-weight: 520;
  color: var(--text-2);
}

.city-chip small {
  font-size: 8px;
  color: var(--faint);
}

.search-empty {
  padding: 8px 2px;
  color: var(--faint);
  font-size: 9px;
}

.search-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0 16px;
  border-top: 1px solid var(--line);
  color: rgba(145, 159, 181, 0.45);
  font-size: 7.5px;
}

.search-footer span:last-child {
  max-width: 48%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.search-loading {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 2px 14px;
  color: var(--faint);
  font-size: 9px;
}

.search-loading .ui-icon {
  animation: spin 1.2s linear infinite;
}

.search-skeleton {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 8px;
}

.search-skeleton > span {
  width: 33px;
  height: 33px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  animation: shimmer 1.7s linear infinite;
}

.search-skeleton > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-skeleton i {
  display: block;
  width: 36%;
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
  animation: shimmer 1.7s linear infinite;
}

.search-skeleton i:last-child {
  width: 24%;
  height: 5px;
}

.search-message {
  padding: 44px 20px;
  text-align: center;
  color: var(--faint);
}

.search-message .ui-icon {
  margin: 0 auto 12px;
  color: var(--mint);
}

.search-message h3 {
  font-size: 15px;
  font-weight: 520;
  color: var(--text-2);
}

.search-message p {
  margin-top: 6px;
  font-size: 9px;
  line-height: 1.6;
}

.search-message--error .ui-icon {
  color: var(--coral);
}

/* Settings ----------------------------------------------------------- */

.settings-shell {
  padding: 2px;
}

.settings-body {
  display: flex;
  flex-direction: column;
  gap: 23px;
}

.settings-section {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.settings-section--row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.settings-label h3 {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--text-2);
}

.settings-label p {
  margin-top: 3px;
  font-size: 9px;
  color: var(--faint);
}

.option-grid {
  display: grid;
  gap: 6px;
}

.option-grid--2 {
  grid-template-columns: 1fr 1fr;
}

.option-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.option-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
  text-align: left;
  transition: background 0.2s, border-color 0.2s;
}

.option-card:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line-strong);
}

.option-card.is-selected {
  background: rgba(191, 233, 219, 0.04);
  border-color: rgba(191, 233, 219, 0.23);
}

.option-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  flex: none;
}

.option-card.is-selected .option-icon {
  background: rgba(191, 233, 219, 0.1);
  color: var(--mint);
}

.option-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.option-copy b {
  font-size: 10px;
  font-weight: 560;
  color: var(--text-2);
}

.option-copy small {
  font-size: 8.5px;
  color: var(--faint);
}

.option-check {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: #08110e;
}

.option-card--compact {
  min-height: 48px;
  gap: 8px;
}

.option-flag {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--faint);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex: none;
}

.option-card.is-selected .option-flag {
  background: rgba(191, 233, 219, 0.1);
  color: var(--mint);
}

.settings-about {
  margin-top: 5px;
  padding: 15px 16px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.settings-about .brand-name {
  font-size: 11px;
}

.settings-about p {
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.65;
  color: var(--faint);
}

.settings-about small {
  display: block;
  margin-top: 8px;
  font-size: 7px;
  color: rgba(145, 159, 181, 0.45);
}

/* Method ------------------------------------------------------------- */

.method-intro {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(191, 233, 219, 0.12);
  border-radius: 14px;
  background: rgba(191, 233, 219, 0.028);
}

.method-intro p {
  font-size: 11px;
  line-height: 1.65;
  color: var(--text-2);
}

.method-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 14px;
}

.method-step {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
}

.method-step-number {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  color: rgba(191, 233, 219, 0.38);
  margin-bottom: 7px;
}

.method-step h3 {
  font-size: 11px;
  font-weight: 620;
  color: var(--text-2);
}

.method-step p {
  margin-top: 5px;
  font-size: 9.5px;
  line-height: 1.65;
  color: var(--faint);
}

.method-section {
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.method-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 11px;
}

.method-section-head h3 {
  font-size: 11px;
  font-weight: 620;
  color: var(--text-2);
}

.method-section-head > span {
  font-size: 7.5px;
  color: var(--faint);
  text-align: right;
}

.source-table {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.source-table-row {
  display: grid;
  grid-template-columns: 8px 1fr 110px;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.source-table-row:last-child {
  border-bottom: 0;
}

.source-name {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.source-name b {
  font-size: 10.5px;
  font-weight: 550;
  color: var(--text-2);
}

.source-name small {
  font-size: 8px;
  color: var(--faint);
}

.source-weight {
  display: flex;
  align-items: center;
  gap: 7px;
}

.source-weight .weight-track {
  display: block;
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
}

.source-weight i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), rgba(191, 233, 219, 0.2));
  opacity: 0.72;
  min-width: 3px;
}

.source-weight b {
  font-size: 8.5px;
  font-weight: 500;
  color: var(--faint);
  width: 24px;
  text-align: right;
}

.method-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 7.5px;
  color: var(--faint);
}

.method-section--limits p,
.method-section--attribution p {
  font-size: 10px;
  line-height: 1.7;
  color: var(--faint);
  max-width: 760px;
}

.method-section--limits {
  padding: 16px;
  border: 1px solid rgba(245, 210, 147, 0.11);
  border-radius: 12px;
  background: rgba(245, 210, 147, 0.025);
}

.method-section--official {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(245, 210, 147, 0.14);
  border-radius: 12px;
  background: rgba(245, 210, 147, 0.025);
}

.method-official-mark {
  flex: none;
  display: inline-grid;
  place-items: center;
  height: 25px;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--gold);
  color: #151006;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.method-section--official h3 {
  font-size: 11px;
  font-weight: 620;
  color: var(--text-2);
}

.method-section--official p {
  margin-top: 4px;
  font-size: 9px;
  line-height: 1.65;
  color: var(--faint);
  max-width: 760px;
}

.method-section--limits .method-section-head {
  margin-bottom: 6px;
}

.official-link--button {
  display: inline-flex;
  margin-top: 10px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--text-2);
  font-size: 8.5px;
}

/* Day ---------------------------------------------------------------- */

.day-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background:
    radial-gradient(ellipse 55% 90% at 0% 0%, rgba(191, 233, 219, 0.04), transparent 60%),
    rgba(255, 255, 255, 0.018);
}

.day-hero-glyph {
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  flex: none;
}

.day-hero-copy {
  flex: 1;
  min-width: 0;
}

.day-hero-copy .subtle-pill {
  display: inline-flex;
}

.day-hero-temps {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 7px;
}

.day-hero-temps strong {
  font-size: 42px;
  font-weight: 260;
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: var(--text);
}

.day-hero-temps span {
  font-size: 20px;
  font-weight: 330;
  color: var(--faint);
  letter-spacing: -0.04em;
}

.day-hero-copy p {
  margin-top: 8px;
  font-size: 8.5px;
  color: var(--faint);
}

.day-confidence {
  flex: none;
}

.day-metrics {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.day-metrics > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.016);
}

.day-metrics span {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 7px;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.045em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.day-metrics b {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.day-models {
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.day-model-table {
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}

.day-model-head,
.day-model-row {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.7fr 0.8fr;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  font-size: 9px;
}

.day-model-head {
  background: rgba(255, 255, 255, 0.022);
  color: var(--faint);
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.day-model-row:last-child {
  border-bottom: 0;
}

.day-model-row > span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.day-model-row > span b {
  font-weight: 540;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.day-model-row > b {
  font-weight: 450;
  color: var(--faint);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.day-model-row--consensus {
  background: rgba(191, 233, 219, 0.035);
}

.day-model-row--consensus > span b,
.day-model-row--consensus > b {
  color: var(--mint);
  font-weight: 550;
}

.consensus-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 7px rgba(191, 233, 219, 0.6);
  flex: none;
}

.day-model-row .model-swatch {
  width: 5px;
  height: 5px;
}

/* Model -------------------------------------------------------------- */

.model-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.018);
}

.model-orb {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  color: var(--source-color);
  border: 1px solid color-mix(in srgb, var(--source-color) 28%, transparent);
  background: radial-gradient(circle, color-mix(in srgb, var(--source-color) 12%, transparent), transparent 70%);
  box-shadow: inset 0 0 30px color-mix(in srgb, var(--source-color) 6%, transparent);
}

.model-hero-copy {
  flex: 1;
  min-width: 0;
}

.model-hero-copy > p {
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--text-2);
}

.model-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.model-tags span {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 7px;
  color: var(--faint);
}

.model-hero-temp {
  flex: none;
  font-size: 31px;
  font-weight: 260;
  letter-spacing: -0.05em;
  color: var(--text);
  text-align: right;
}

.model-hero-temp small {
  display: block;
  margin-top: 2px;
  font-size: 7px;
  color: var(--faint);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.model-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.model-stats > div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.model-stats span {
  display: block;
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--faint);
}

.model-stats b {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
}

.model-chart-section {
  margin-top: 19px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.mini-chart {
  width: 100%;
  height: auto;
}

.model-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 12px;
  padding: 9px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--faint);
  font-size: 8.5px;
}

.model-note .ui-icon {
  color: var(--mint);
  margin-top: 1px;
}

/* ------------------------------------------------------------------ */
/* Toast                                                               */
/* ------------------------------------------------------------------ */

.toast-root {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 150;
  pointer-events: none;
  width: min(380px, calc(100% - 32px));
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  background: rgba(11, 18, 31, 0.94);
  color: var(--text-2);
  font-size: 10px;
  line-height: 1.4;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast .ui-icon {
  color: var(--mint);
  flex: none;
}

.toast--warn .ui-icon {
  color: var(--gold);
}

.toast--error {
  border-color: rgba(240, 156, 144, 0.18);
}

.toast--error .ui-icon {
  color: var(--coral);
}

/* ------------------------------------------------------------------ */
/* Reveal animation                                                    */
/* ------------------------------------------------------------------ */

.hero,
.advisory-bar,
.dashboard > .card {
  animation: reveal 0.85s var(--ease) both;
  animation-delay: calc(var(--reveal-index, 0) * 40ms);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1180px) {
  .search-button {
    min-width: 150px;
  }

  .hero-inner {
    padding: 34px 34px 27px;
  }

  .hero-stat {
    min-width: 112px;
    padding-right: 13px;
  }

  .hero-stat + .hero-stat {
    padding-left: 13px;
  }

  .compass {
    width: 148px;
    height: 148px;
  }

  .detail-tile {
    padding: 15px;
  }

  .air-pollutants {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1080px) {
  .dashboard {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }

  .dashboard > .card {
    min-width: 0;
    max-width: 100%;
  }

  .hour-rail,
  .day-rail {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .brief-card,
  .models-card,
  .hourly-card,
  .daily-card,
  .sun-card,
  .details-card,
  .air-card,
  .nowcast-card {
    grid-column: auto;
    grid-row: auto;
  }

  .details-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .air-card,
  .nowcast-card {
    grid-column: auto;
    grid-row: auto;
  }

  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-column--language {
    grid-column: 2;
  }

  .hero-main {
    gap: 10px;
  }

  .hero-visual {
    flex-basis: 38%;
  }
}

@media (max-width: 900px) {
  .topbar {
    padding: 11px 16px 8px;
  }

  .shell {
    padding: 8px 16px 0;
  }

  .brand-copy small {
    display: none;
  }

  .place-pill {
    max-width: 190px;
  }

  .place-pill b,
  .place-pill small {
    max-width: 125px;
  }

  .search-button {
    min-width: 38px;
    width: 38px;
    padding: 0;
    justify-content: center;
  }

  .search-button span,
  .search-button kbd {
    display: none;
  }

  .hero {
    min-height: 500px;
  }

  .hero-inner {
    min-height: 500px;
    padding: 28px 26px 23px;
  }

  .hero-main {
    align-items: center;
  }

  .hero-visual {
    min-height: 230px;
    flex-basis: 36%;
  }

  .wx-glyph--hero {
    width: clamp(150px, 22vw, 205px);
    height: clamp(150px, 22vw, 205px);
  }

  .hero-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
  }

  .hero-meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-stat {
    min-width: 0;
  }

  .advisory-bar {
    gap: 8px 13px;
  }

  .advisory-items {
    order: 3;
    flex-basis: 100%;
  }

  .brief-footnote {
    text-align: left;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-column--language {
    grid-column: auto;
  }

  .day-rail {
    grid-template-columns: repeat(10, minmax(76px, 1fr));
  }
}

@media (max-width: 680px) {
  .topbar {
    padding: 9px 12px 6px;
  }

  .topbar-inner {
    gap: 7px;
    min-height: 44px;
  }

  .brand-symbol {
    width: 30px;
    height: 30px;
  }

  .brand-name {
    font-size: 13px;
  }

  .place-pill {
    margin-left: 2px;
    padding: 6px 8px;
    gap: 6px;
    max-width: 142px;
  }

  .place-pill b {
    font-size: 10.5px;
    max-width: 92px;
  }

  .place-pill small {
    font-size: 8px;
    max-width: 92px;
  }

  .place-pill .ui-icon:first-child {
    display: none;
  }

  .topbar-actions {
    gap: 5px;
  }

  .search-button,
  .unit-button,
  .icon-button {
    width: 34px;
    min-width: 34px;
    height: 34px;
  }

  .search-button,
  .unit-button {
    display: none;
  }

  .brand-name {
    font-size: 15px;
  }

  .brand-copy {
    gap: 3px;
  }

  .shell {
    padding: 6px 12px 0;
  }

  .hero {
    min-height: 470px;
    border-radius: 25px;
  }

  .hero-inner {
    min-height: 470px;
    padding: 22px 18px 18px;
  }

  .hero-eyebrow {
    font-size: 8px;
    letter-spacing: 0.12em;
    margin-bottom: 11px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-sub {
    margin-top: 8px;
    font-size: 9.5px;
  }

  .favorite-button {
    width: 36px;
    height: 36px;
  }

  .hero-main {
    align-items: flex-end;
    gap: 0;
    padding: 12px 0 8px;
  }

  .hero-temp-block {
    position: relative;
    z-index: 3;
  }

  .temp-number {
    font-size: clamp(92px, 27vw, 126px);
  }

  .temp-degree {
    font-size: 34px;
    margin-top: 0.14em;
  }

  .condition-line {
    margin-top: 13px;
    font-size: 16px;
  }

  .hero-feels {
    max-width: 230px;
    font-size: 10px;
    line-height: 1.5;
  }

  .hero-visual {
    position: absolute;
    right: 0;
    top: 74px;
    width: 47%;
    min-height: 200px;
    opacity: 0.94;
  }

  .hero-orbit-dots {
    display: none;
  }

  .hero-visual::before {
    width: 98%;
  }

  .wx-glyph--hero {
    width: clamp(135px, 37vw, 172px);
    height: clamp(135px, 37vw, 172px);
  }

  .confidence-badge {
    right: 4px;
    bottom: 8px;
    padding: 6px;
    border-radius: 14px;
    gap: 1px;
    transform: scale(0.76);
    transform-origin: bottom right;
  }

  .hero-head {
    position: relative;
    z-index: 4;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 11px 4px;
  }

  .hero-stat {
    padding: 0;
  }

  .hero-stat + .hero-stat {
    border-left: 0;
    padding-left: 0;
  }

  .hero-stat:nth-child(even) {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: 13px;
  }

  .hero-foot {
    padding-top: 14px;
  }

  .model-pill {
    height: 31px;
    padding: 0 10px;
    font-size: 8.5px;
  }

  .updated-pill {
    font-size: 7.5px;
  }

  .advisory-bar {
    margin-top: 10px;
    padding: 10px 11px;
    font-size: 9px;
    border-radius: 13px;
  }

  .advisory-lead {
    flex-wrap: wrap;
    white-space: normal;
  }

  .advisory-lead > span:not(.advisory-ok):not(.advisory-alert) {
    display: none;
  }

  .advisory-chip span {
    display: none;
  }

  .official-link {
    margin-left: auto;
  }

  .dashboard {
    gap: 12px;
    margin-top: 12px;
  }

  .card {
    padding: 19px 16px;
    border-radius: 21px;
  }

  .card-head {
    margin-bottom: 15px;
    gap: 10px;
  }

  .card-head h2 {
    font-size: 21px;
  }

  .subtle-pill {
    display: none;
  }

  .brief-card {
    padding: 21px 17px;
  }

  .brief-kicker {
    gap: 9px;
  }

  .spark-badge {
    width: 33px;
    height: 33px;
  }

  .brief-label {
    font-size: 16px;
  }

  .confidence-pill {
    font-size: 7.5px;
    padding: 4px 7px;
  }

  .brief-headline {
    margin-top: 20px;
    font-size: 36px;
  }

  .brief-body {
    font-size: 12px;
    line-height: 1.65;
  }

  .brief-extras span {
    font-size: 7.5px;
  }

  .brief-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    margin-top: 15px;
    padding-top: 13px;
  }

  .brief-footnote {
    font-size: 7.5px;
  }

  .brief-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .brief-metric b {
    font-size: 11px;
  }

  .models-card {
    padding-bottom: 16px;
  }

  .model-summary {
    padding: 11px;
    gap: 11px;
  }

  .model-summary .agreement-ring {
    transform: scale(0.86);
    transform-origin: left center;
    margin-right: -10px;
  }

  .model-row {
    padding: 9px 3px 7px;
  }

  .hourly-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 11px;
  }

  .hour-cell {
    flex-basis: 54px;
    min-width: 54px;
    min-height: 145px;
    padding: 10px 3px 7px;
  }

  .hour-glyph {
    height: 38px;
  }

  .hour-temp {
    font-size: 14px;
  }

  .hour-legend {
    gap: 10px;
    font-size: 7.5px;
  }

  .chart-hits {
    left: 6.15%;
  }

  .chart-tip {
    width: 150px;
    padding: 8px 9px;
  }

  .chart-tip > strong {
    font-size: 17px;
  }

  .chart-footnote {
    flex-direction: column;
    gap: 4px;
  }

  .day-rail {
    grid-template-columns: repeat(10, 75px);
  }

  .details-grid {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .detail-tile {
    min-height: 196px;
    padding: 13px;
    border-radius: 15px;
    text-align: center;
  }

  .detail-head {
    justify-content: center;
    width: 100%;
    font-size: 7.5px;
    letter-spacing: 0.06em;
    text-align: center;
  }

  .detail-head small {
    display: none;
  }

  .official-source {
    padding: 10px;
  }

  .official-temp {
    font-size: 20px;
  }

  .official-foot {
    font-size: 7px;
  }

  .official-label {
    font-size: 7.5px;
  }

  .detail-value {
    margin-top: 15px;
    font-size: 31px;
  }

  .detail-sub {
    font-size: 7.5px;
    text-align: center;
  }

  .detail-foot {
    text-align: center;
  }

  .precip-mini {
    height: 34px;
    margin-top: 10px;
    width: 100%;
  }

  .compass-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .compass {
    width: 132px;
    height: 132px;
    margin-left: 0;
  }

  .compass-meta {
    flex-direction: row;
    justify-content: center;
    gap: 14px;
    text-align: center;
  }

  .compass-meta strong {
    font-size: 12px;
  }

  .uv-gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 5px;
  }

  .uv-meta {
    justify-content: center;
    gap: 10px;
    width: 100%;
    text-align: center;
  }

  .uv-meta span {
    font-size: 8px;
  }

  .visibility-bar {
    margin-top: 35px;
    width: 100%;
    text-align: center;
  }

  .humidity-body {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
  }

  .humidity-copy {
    text-align: center;
  }

  .humidity-visual {
    width: 71px;
    height: 92px;
  }

  .cloud-body {
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin-top: 9px;
    text-align: center;
  }

  .cloud-copy {
    text-align: center;
  }

  .cloud-donut {
    width: 90px;
    height: 90px;
  }

  .cloud-donut > span {
    padding-top: 33px;
  }

  .cloud-donut strong {
    font-size: 18px;
  }

  .comfort-scale {
    margin-top: 29px;
  }

  .sun-card {
    min-height: auto;
  }

  .sun-stats {
    gap: 5px;
  }

  .air-pollutants {
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
  }

  .air-pollutants b {
    font-size: 11px;
  }

  .air-main {
    gap: 9px;
  }

  .air-index strong {
    font-size: 45px;
  }

  .aqi-spark {
    height: 40px;
  }

  .nowcast-bars {
    height: 110px;
  }

  .nowcast-value {
    font-size: 5.5px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 22px 16px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand > p {
    font-size: 25px;
  }

  .footer-brand > small {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-top: 24px;
  }

  .site-footer {
    margin-top: 30px;
    padding: 24px 0 20px;
  }

  .modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .modal {
    width: 100%;
    max-height: 94vh;
    overflow-y: auto;
    border-radius: 25px 25px 0 0;
    padding: 21px 17px;
    border-bottom: 0;
  }

  .modal--search {
    max-height: 92vh;
    padding: 0;
    display: flex;
    flex-direction: column;
  }

  .search-shell {
    padding: 20px 16px 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .search-results {
    max-height: none;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }

  .search-field {
    height: 49px;
  }

  .city-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .place-coords {
    display: none;
  }

  .search-footer span:last-child {
    display: none;
  }

  .option-grid--2 {
    grid-template-columns: 1fr;
  }

  .option-grid--3 {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .settings-section--row {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }

  .method-steps {
    grid-template-columns: 1fr;
  }

  .method-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .method-section-head > span {
    text-align: left;
  }

  .source-table-row {
    grid-template-columns: 8px 1fr 68px;
    gap: 7px;
    padding: 8px;
  }

  .day-hero {
    gap: 8px;
    padding: 10px;
  }

  .day-hero-glyph {
    width: 74px;
    height: 74px;
  }

  .day-hero-temps strong {
    font-size: 34px;
  }

  .day-confidence {
    display: none;
  }

  .day-metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .day-model-head,
  .day-model-row {
    grid-template-columns: 1.35fr 0.6fr 0.6fr 0.7fr;
    padding: 8px;
    font-size: 8px;
  }

  .model-hero {
    flex-wrap: wrap;
    gap: 10px;
  }

  .model-orb {
    width: 54px;
    height: 54px;
  }

  .model-hero-temp {
    width: 100%;
    text-align: left;
    font-size: 26px;
  }

  .model-stats {
    grid-template-columns: 1fr 1fr;
  }

  .data-banner {
    width: calc(100% - 24px);
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .data-banner-time {
    margin-left: 24px;
  }

  .skeleton-hero {
    height: 450px;
    padding: 24px;
    border-radius: 24px;
  }

  .skeleton-orbit {
    width: 160px;
    height: 160px;
    right: 4%;
    top: 31%;
  }

  .skeleton-row {
    left: 24px;
    right: 24px;
    gap: 8px;
  }

  .skeleton-row span {
    width: 25%;
    height: 22px;
  }

  .skeleton-grid {
    grid-template-columns: 1fr;
  }

  .skeleton-panel--wide {
    grid-column: auto;
  }

  .error-card {
    padding: 34px 21px;
  }

  .toast-root {
    bottom: 16px;
  }
}

@media (max-width: 355px) {
  .brand-copy {
    display: none;
  }

  .place-pill {
    max-width: 130px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .temp-number {
    font-size: 90px;
  }

  .temp-degree {
    font-size: 30px;
  }

  .hero-visual {
    right: -22px;
  }

  .hero-stat strong {
    font-size: 14px;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .detail-tile {
    min-height: 185px;
  }

  .city-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
