html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Stabilitate vizuală și aliniere precisă pentru cifre și date numerice */
.tabular-nums,
.weather-card,
.sparkline-container,
.bottom-nav-dock,
time,
[data-numeric="true"] {
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-font-feature-settings: "tnum" 1, "lnum" 1;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* Îmbunătățire contrast și micro-tipografie pentru etichete și date secundare */
.weather-card .text-\[10px\] { letter-spacing: 0.04em; }
.weather-card .text-\[10px\].opacity-50 { opacity: .72; }
.weather-card .text-\[11px\] { letter-spacing: 0.02em; }

.app-shell { max-width: 760px !important; }
.brand-header { width: 100%; display: flex; gap: 16px; align-items: center; padding: 8px 4px 4px; padding-top: max(8px, env(safe-area-inset-top, 0px)); }
.app-container { min-height: 100vh; min-height: 100dvh; }
.brand-header img { width: 48px; height: 48px; border-radius: 15px; box-shadow: 0 6px 24px #0001; }
.brand-header h1 { font-size: 22px; font-weight: 800; letter-spacing: -.8px; }
.brand-header p { font-size: 12px; font-weight: 500; opacity: .85; margin-top: 4px; }
.weather-card { box-shadow: 0 20px 65px #172b4d0c; border: 1px solid #ffffff35; }
.weather-meta { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 500; }
.weather-meta button { padding: 8px 12px; border: 1px solid currentColor; border-radius: 100px; font-weight: 600; }
.wellness-panel { width: 100%; border-radius: 24px; padding: 22px; background: #8ba98518; border: 1px solid #8ba98540; }
.wellness-panel h3 { font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.wellness-grid { display: grid; gap: 10px; margin-top: 14px; }
.wellness-item { padding: 14px 16px; border-radius: 16px; background: #ffffff24; font-size: 13px; line-height: 1.7; }
.wellness-note { font-size: 11px; opacity: .75; margin-top: 14px; line-height: 1.6; }
.wellness-highlights { display: grid; gap: 10px; margin-top: 14px; }
.wellness-highlight-card { padding: 14px 16px; border-radius: 16px; background: #ffffff2e; border: 1px solid #ffffff30; font-size: 12.5px; line-height: 1.6; display: flex; flex-direction: column; gap: 4px; }
.wellness-highlight-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
.wellness-badge { padding: 2px 8px; border-radius: 9999px; background: #8ba98535; font-size: 10.5px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.source-links { margin-top: 14px; font-size: 11px; line-height: 1.8; }
.source-links a { text-decoration: underline; text-underline-offset: 3px; }

/* Custom range slider for ambient sound volume */
.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: rgba(128, 128, 128, 0.25);
  outline: none;
  cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: currentColor;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: currentColor;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Bottom Navigation Dock */
.bottom-nav-dock {
  position: fixed;
  bottom: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 440px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 6px;
  border-radius: 9999px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 9990;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.bottom-nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  transition: background-color .16s ease, color .16s ease, transform .16s ease;
  cursor: pointer;
  border: none;
  background: transparent;
  color: inherit;
}
.bottom-nav-btn:active {
  transform: scale(0.95);
}

/* Sparkline 12-hour Temperature Curve */
.sparkline-container {
  width: 100%;
  position: relative;
}
.sparkline-svg {
  width: 100%;
  height: 85px;
  overflow: visible;
}
.sparkline-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sparkline-area {
  fill: currentColor;
  opacity: 0.12;
}

/* Color-coded Gauge Bar for UV & AQI */
.gauge-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.gauge-track {
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  position: relative;
}
.gauge-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  border: 2px solid currentColor;
}

/* Sun Arc Tracker */
.sun-arc-svg {
  width: 100%;
  max-width: 280px;
  height: 95px;
  overflow: visible;
}

/* RainViewer Radar Frame */
.radar-container {
  width: 100%;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.radar-frame {
  width: 100%;
  height: 280px;
  border: none;
  display: block;
}

/* Offline Badge */
.offline-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
}

/* Layout spacing to prevent bottom dock from hiding content */
.has-bottom-nav {
  padding-bottom: 5.5rem;
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

/* Missing Tailwind utilities for offline & layout consistency */
.invisible { visibility: hidden; }
.w-8 { width: 2rem; }
.w-14 { width: 3.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pt-1 { padding-top: 0.25rem; }
.pt-6 { padding-top: 1.5rem; }
.tracking-\[0\.25em\] { letter-spacing: 0.25em; }
.pl-4 { padding-left: 1rem; }
.pl-5 { padding-left: 1.25rem; }
.pr-2 { padding-right: 0.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-12 { margin-top: 3rem; }
.max-w-4xl { max-width: 56rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.font-extrabold { font-weight: 800; }
.border-l-4 { border-left-width: 4px; }
.border-indigo-500 { border-color: #6366f1; }
.bg-indigo-500\/5 { background-color: rgba(99, 102, 241, 0.05); }
.rounded-r-xl { border-top-right-radius: 0.75rem; border-bottom-right-radius: 0.75rem; }
.list-disc { list-style-type: disc; }
.list-dashed { list-style-type: disc; }
.text-slate-100 { color: #f1f5f9; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-400 { color: #94a3b8; }
.bg-gradient-to-r { background-image: linear-gradient(to right, #60a5fa, #818cf8); }
.from-blue-400 { --tw-gradient-from: #60a5fa; }
.to-indigo-400 { --tw-gradient-to: #818cf8; }
.bg-clip-text { -webkit-background-clip: text; background-clip: text; }
.text-transparent { color: transparent; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.hover\:bg-black\/20:hover { background-color: rgba(0, 0, 0, 0.2); }
.hover\:bg-white\/20:hover { background-color: rgba(255, 255, 255, 0.2); }
.hidden { display: none; }
.inline-flex { display: inline-flex; }
.normal-case { text-transform: none; }
.ml-1\.5 { margin-left: 0.375rem; }
.p-0\.5 { padding: 0.125rem; }
.bottom-24 { bottom: 6rem; }
.left-1\/2 { left: 50%; }
.-translate-x-1\/2,
.\-translate-x-1\/2 { transform: translateX(-50%); }
.opacity-20 { opacity: 0.2; }
.bg-amber-500\/15 { background-color: rgba(245, 158, 11, 0.15); }
.fill-amber-400 { fill: #fbbf24; }
.from-emerald-400 { --tw-gradient-from: #34d399; }
.via-amber-400 { --tw-gradient-stops: var(--tw-gradient-from, #34d399), #fbbf24, var(--tw-gradient-to, rgba(251, 191, 36, 0)); }
.via-yellow-400 { --tw-gradient-stops: var(--tw-gradient-from, #34d399), #facc15, var(--tw-gradient-to, rgba(250, 204, 21, 0)); }
.via-orange-400 { --tw-gradient-stops: var(--tw-gradient-from, #34d399), #fb923c, var(--tw-gradient-to, rgba(251, 146, 60, 0)); }
.to-rose-500 { --tw-gradient-to: #f43f5e; }
.hover\:text-rose-400:hover { color: #fb7185; }
.animate-ping { animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #598a9f !important; outline-offset: 4px; }
button:disabled { opacity: .5; cursor: wait; }

@media (min-width: 640px) {
  .wellness-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wellness-item:only-child { grid-column: 1 / -1; }
  .wellness-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:justify-between { justify-content: space-between; }
  .sm\:tracking-widest { letter-spacing: 0.1em; }
  .sm\:text-xs { font-size: 0.75rem; line-height: 1rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:inline { display: inline; }
  .sm\:hidden { display: none !important; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-color-scheme: dark) {
  .dark\:hover\:bg-white\/20:hover { background-color: rgba(255, 255, 255, 0.2); }
  .wellness-highlight-card { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); }
  .dark\:text-amber-300 { color: #fcd34d; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* WCAG AA Outdoor Sunlight Contrast & Accessibility Enhancements */
.weather-card .opacity-50,
.wellness-panel .opacity-50 {
  opacity: 0.78 !important;
}
.weather-card .opacity-60,
.wellness-panel .opacity-60 {
  opacity: 0.85 !important;
}
.weather-card .opacity-40 {
  opacity: 0.68 !important;
}

/* ==========================================================================
   Mindful Weather Advisory Pill
   ========================================================================== */
.mindful-alert-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  padding: 0.6rem 1.35rem !important;
  border-radius: 9999px !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.01em !important;
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
  color: #92400e !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.09) !important;
  margin-top: 0.25rem !important;
  margin-bottom: 1.25rem !important;
  max-width: 92% !important;
  text-align: center !important;
  transition: all 0.25s ease !important;
}

@media (prefers-color-scheme: dark) {
  .mindful-alert-pill {
    background: rgba(245, 158, 11, 0.16) !important;
    border-color: rgba(245, 158, 11, 0.38) !important;
    color: #fde68a !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
  }
}

/* Touch Targets: minimum comfortable tap areas */
.bottom-nav-btn {
  min-height: 44px;
}
.weather-meta button {
  min-height: 38px;
}

/* ==========================================================================
   Cities Drawer / Modal Panel
   ========================================================================== */
.cities-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem !important;
  background-color: rgba(0, 0, 0, 0.65) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  animation: fadeIn 0.2s ease-out !important;
  box-sizing: border-box !important;
}

@media (min-width: 640px) {
  .cities-modal-overlay {
    padding: 1.5rem !important;
  }
}

.cities-modal-card {
  width: 100% !important;
  max-width: 480px !important;
  max-height: 85vh !important;
  max-height: 85dvh !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  border-radius: 1.75rem !important;
  padding: 1.25rem 1.5rem !important;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15) !important;
  overflow: hidden !important;
  animation: fadeInDrop 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative !important;
  z-index: 100000 !important;
  box-sizing: border-box !important;
}

.cities-modal-card.light {
  background: #ffffff !important;
  color: #18181b !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
}

.cities-modal-card.dark {
  background: #141419 !important;
  color: #f4f4f5 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 25px 70px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
}

.cities-modal-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.625rem !important;
  overflow-y: auto !important;
  max-height: 52vh !important;
  max-height: 52dvh !important;
  padding-right: 0.25rem !important;
}

.cities-city-card {
  padding: 0.875rem 1rem !important;
  border-radius: 1.125rem !important;
  border: 1px solid transparent !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  background: rgba(0, 0, 0, 0.04) !important;
  box-sizing: border-box !important;
}

.cities-modal-card.dark .cities-city-card {
  background: rgba(255, 255, 255, 0.05) !important;
}

.cities-city-card:hover {
  background: rgba(0, 0, 0, 0.08) !important;
  transform: translateY(-1px);
}

.cities-modal-card.dark .cities-city-card:hover {
  background: rgba(255, 255, 255, 0.09) !important;
}

.cities-city-card.active {
  border-color: rgba(245, 158, 11, 0.5) !important;
  background: rgba(245, 158, 11, 0.12) !important;
}

.cities-modal-card.dark .cities-city-card.active {
  border-color: rgba(245, 158, 11, 0.6) !important;
  background: rgba(245, 158, 11, 0.18) !important;
}

/* ==========================================================================
   Landscape Mobile Modal Optimization (Viewport height <= 540px)
   ========================================================================== */
@media (max-height: 540px) {
  .cities-modal-overlay {
    padding: 0.5rem !important;
  }
  .cities-modal-card {
    max-height: 96vh !important;
    max-height: 96dvh !important;
    padding: 0.75rem 1rem !important;
    gap: 0.5rem !important;
    border-radius: 1.25rem !important;
  }
  .cities-modal-list {
    max-height: 48vh !important;
    max-height: 48dvh !important;
    gap: 0.375rem !important;
  }
  .cities-city-card {
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.75rem !important;
  }
}

/* ==========================================================================
   Daily 7-Day Forecast Responsive Layout (Zero overflow across all screens)
   ========================================================================== */
.daily-forecast-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0.75rem 0.875rem !important;
  border-radius: 1rem !important;
  font-size: 0.8125rem !important;
  gap: 0.375rem !important;
  box-sizing: border-box !important;
  width: 100% !important;
  overflow: hidden !important;
}
@media (min-width: 640px) {
  .daily-forecast-row {
    padding: 1rem !important;
    border-radius: 1rem !important;
    font-size: 0.875rem !important;
    gap: 0.75rem !important;
  }
}
.daily-day-label {
  width: 3.25rem !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  flex-shrink: 0 !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  opacity: 0.9 !important;
}
@media (min-width: 640px) {
  .daily-day-label {
    width: 4.8rem !important;
  }
}
.daily-middle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.25rem !important;
  flex: 1 !important;
  min-width: 0 !important;
}
@media (min-width: 640px) {
  .daily-middle {
    gap: 0.5rem !important;
  }
}
.daily-temp-range {
  width: 3.75rem !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: flex !important;
  gap: 0.375rem !important;
  font-weight: 700 !important;
  justify-content: flex-end !important;
}
@media (min-width: 640px) {
  .daily-temp-range {
    width: 4.8rem !important;
    gap: 0.75rem !important;
  }
}

/* ==========================================================================
   Weather Metric Pill Capsules (3-Col Grid: Wind, Humidity, Precipitation)
   ========================================================================== */
.metric-col-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0.625rem 0.375rem !important;
  border-radius: 1rem !important;
  text-align: center !important;
  overflow: hidden !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
@media (min-width: 640px) {
  .metric-col-card {
    padding: 1rem !important;
    border-radius: 1rem !important;
  }
}
.metric-col-card .metric-label {
  font-size: 9px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  opacity: 0.55 !important;
  width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
@media (min-width: 640px) {
  .metric-col-card .metric-label {
    font-size: 10px !important;
    letter-spacing: 0.1em !important;
  }
}
.metric-col-card .metric-value {
  font-size: 0.8125rem !important;
  font-weight: 800 !important;
  margin-top: 0.25rem !important;
  white-space: nowrap !important;
  letter-spacing: -0.01em !important;
}
@media (min-width: 640px) {
  .metric-col-card .metric-value {
    font-size: 0.875rem !important;
    margin-top: 0.375rem !important;
  }
}
.metric-col-card .metric-sub {
  font-size: 9px !important;
  font-weight: 600 !important;
  opacity: 0.75 !important;
  margin-top: 0.125rem !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  width: 100% !important;
}
@media (min-width: 640px) {
  .metric-col-card .metric-sub {
    font-size: 10px !important;
    margin-top: 0.125rem !important;
  }
}

/* ==========================================================================
   Sun Arc Header Row (Sunrise / Sunset / Remaining)
   ========================================================================== */
.sun-arc-header {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.25rem !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
  opacity: 0.75 !important;
  margin-bottom: 0.5rem !important;
  padding: 0 0.25rem !important;
  box-sizing: border-box !important;
}
@media (min-width: 640px) {
  .sun-arc-header {
    font-size: 11px !important;
    letter-spacing: 0.05em !important;
    gap: 0.5rem !important;
  }
}
.sun-arc-header > span {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.sun-arc-header > .sun-middle-label {
  font-weight: 600 !important;
  text-align: center !important;
  text-transform: none !important;
  flex: 1 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  padding: 0 2px !important;
}


/* Current conditions and forecast */
.app-shell { gap: 1rem; margin-top: 0; }
.brand-header { gap: .7rem; padding: .4rem 0; }
.brand-header img { width: 42px; height: 42px; border-radius: 14px; }
.brand-header h1 { line-height: 1.15; }
.header-settings { display: flex; align-items: center; gap: .35rem; margin-inline-start: auto; }
.header-settings select, .header-settings button {
  font-family: inherit;
  font-size: .82rem; font-weight: 650; color: inherit;
  background: transparent; border: 1px solid currentColor; border-radius: 2rem;
  min-height: 42px; padding: 0 .72rem; cursor: pointer;
}
.header-settings select { max-width: 7rem; }
.header-settings option { background: Canvas; color: CanvasText; }
[role="status"]:empty { display: none; }
[role="listbox"][hidden] { display: none; }
[role="option"][aria-selected="true"] { background: rgba(105, 141, 194, .24); }
:where(button, input, select, a, [tabindex]):focus-visible {
  outline: 3px solid #608ff0 !important; outline-offset: 2px;
}
.weather-card { padding: clamp(.85rem, 3vw, 1.55rem); gap: 1rem; scroll-margin-top: 1rem; }
.weather-meta { gap: .4rem; }
.weather-meta button { padding-inline: .8rem; }
.forecast-body { width: 100%; min-width: 0; display: grid; gap: 1rem; }
.forecast-body > * { min-width: 0; }
.forecast-hero {
  --sky-top: #1f546a; --sky-bottom: #37747c; --sky-glow: #ffdb98;
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background: radial-gradient(ellipse at 100% 16%, var(--sky-glow) -38%, transparent 48%),
    linear-gradient(120deg, var(--sky-top) 12%, var(--sky-bottom));
  border-radius: 1.45rem; padding: clamp(1rem, 3vw, 2rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(58px, 26%); align-items: center;
}
.sky-rainy, .sky-cloudy, .sky-foggy { --sky-top: #233e5c; --sky-bottom: #4c748d; --sky-glow: #d7e6fa; }
.sky-snowy { --sky-top: #355678; --sky-bottom: #557986; --sky-glow: #f0faff; }
.sky-stormy { --sky-top: #34294e; --sky-bottom: #665777; --sky-glow: #cec4ea; }
.sky-dark { --sky-top: #112239; }
.forecast-hero::before, .forecast-hero::after {
  content: ""; position: absolute; inset: 35% 0 0; pointer-events: none; z-index: -1;
  background: rgba(190, 224, 224, .16);
  clip-path: polygon(0 94%, 12% 82%, 23% 88%, 41% 61%, 50% 70%, 66% 39%, 72% 46%, 85% 11%, 100% 35%, 100% 100%, 0 100%);
}
.forecast-hero::after {
  inset-block-start: 53%; background: rgba(11, 36, 56, .36);
  clip-path: polygon(0 79%, 15% 89%, 33% 66%, 50% 78%, 66% 45%, 77% 55%, 89% 34%, 100% 39%, 100% 100%, 0 100%);
}
.hero-copy { min-width: 0; }
.hero-place { display: flex; align-items: center; gap: .3rem; }
.hero-place h2 { font-size: clamp(1.4rem, 3.7vw, 2.05rem); line-height: 1.1; font-weight: 680; letter-spacing: -.04em; overflow-wrap: anywhere; }
.hero-place button { flex-shrink: 0; opacity: .88; }
.hero-place svg { width: 19px; height: 19px; }
.hero-degree { font-size: clamp(3.7rem, 8vw, 5.25rem); line-height: 1; font-weight: 450; letter-spacing: -.075em; margin-block: .45rem; }
.hero-condition { font-weight: 660; font-size: 1.06rem; }
.hero-feels, .hero-clock { font-size: .8rem; color: #e4edf7; }
.hero-clock { grid-column: 1 / -1; margin-top: .85rem; }
.hero-sky { display: grid; place-items: center; }
.hero-sky svg { width: min(100%, 6.5rem); height: auto; color: #fce9bc; filter: none; animation: none; }
.hero-sky svg * { animation: none; }
.forecast-heading { font-size: 1.02rem; font-weight: 700; line-height: 1.4; text-transform: none; letter-spacing: -.015em; opacity: 1; }
.hour-strip { overscroll-behavior-x: contain; }
.forecast-body .mindful-alert-pill { margin: 0 !important; max-width: 100% !important; justify-self: start; border-radius: .85rem !important; backdrop-filter: none !important; }
.metric-col-card .metric-label { font-size: .68rem !important; opacity: .83 !important; text-transform: none !important; letter-spacing: 0 !important; white-space: normal !important; }
.metric-col-card .metric-value { font-size: .98rem !important; }
.bottom-nav-btn[aria-current="page"] { background: rgba(106, 139, 191, .22); color: inherit; }
dialog.cities-modal-overlay { margin: 0; max-width: none; max-height: none; border: 0; }
dialog.cities-modal-overlay::backdrop { background: transparent; }
.saved-city-select { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: .4rem; min-width: 0; text-align: start; }
@media (max-width: 560px) {
  .brand-header p { display: none; }
  .brand-header h1 { font-size: 1.13rem; }
  .brand-header img { width: 34px; height: 34px; border-radius: 10px; }
  .header-settings { gap: .2rem; }
  .header-settings select, .header-settings button { padding-inline: .45rem; }
  .weather-meta { font-size: .7rem; }
  .weather-meta button { padding-inline: .55rem; }
}
.weather-card { margin-top: 1rem; }
.weather-status:not(:empty) { margin-top: .75rem; }
.retry-button { display: block; border: 1px solid currentColor; border-radius: 1rem; margin: .7rem auto 0; padding: .5rem .85rem; }
.app-shell [class*="backdrop-blur"] { backdrop-filter: none; -webkit-backdrop-filter: none; }
.forecast-heading { opacity: 1 !important; }
@media (max-width: 360px) {
  .brand-header { flex-wrap: wrap; }
  .header-settings { flex: 1; justify-content: flex-end; }
  .brand-header h1 { font-size: 1rem; }
  .weather-meta > div { margin-left: auto; }
}
.city-search-input { padding-right: 3.4rem; }
form:has(.search-submit) .city-search-input { padding-right: 6.2rem; }
.search-submit { position: absolute; right: 3.2rem; top: 50%; transform: translateY(-50%); min-width: 40px; min-height: 40px; border-radius: 50%; font-size: 1.4rem; color: inherit; background: rgba(117, 144, 192, .16); }
label:has(input:focus-visible) { outline: 3px solid #608ff0; outline-offset: 5px; border-radius: .4rem; }
button:disabled { cursor: wait; opacity: .6; }

.bottom-nav-dock { background: #f6f8fc; backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (prefers-color-scheme: dark) { .bottom-nav-dock { background: #141b29; } }
.hourly-section { display: flex; flex-direction: column; gap: .35rem; }

/* Quiet surfaces and quick feedback; layout changes never animate. */
.app-container[data-theme="dark"] {
  --control-border: #ffffff24; --control-hover: #ffffff0d; --accent: #a5d8ee;
  background: radial-gradient(ellipse at 0 0, #24394c 0, transparent 52%), #0c121c;
  color-scheme: dark;
}
.app-container[data-theme="light"] {
  --control-border: #223c581f; --control-hover: #264b7209; --accent: #225a74;
  background: radial-gradient(ellipse at 0 0, #dcebf4 0, transparent 52%), #f3f6fa;
  color-scheme: light;
}
.weather-card { border-color: var(--control-border); box-shadow: 0 8px 32px #061a3010; }
[data-theme="dark"] .weather-card { background: #121b28; }
[data-theme="light"] .weather-card { background: #ffffffd9; }
.header-settings select, .header-settings button,
.cities-trigger-btn, .weather-meta button { border-color: var(--control-border); }
.header-settings button { min-width: 44px; }
.city-search-input { border-color: var(--control-border); padding-block: .85rem; border-radius: 1.1rem; }
.cities-trigger-btn { border-radius: 1.1rem; min-width: 48px; opacity: 1; }
.control-icon { display: inline-flex; align-items: center; justify-content: center; }
.weather-meta { font-size: .72rem; }
.weather-meta > span { flex: 1 1 9rem; opacity: .78; line-height: 1.5; }
.weather-meta > div { margin-inline-start: auto; gap: .35rem; }
.weather-meta button { min-height: 44px; }
.weather-meta button:first-child { min-width: 44px; justify-content: center; }
.forecast-hero { min-height: 218px; }
.hero-degree { font-weight: 400; }
.hero-place button { min-width: 44px; min-height: 44px; }
.metric-col-card { border: 1px solid var(--control-border); }
.metric-col-card .metric-value { font-weight: 650 !important; margin-top: .3rem; }
.forecast-section-header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.forecast-scroll-controls { display: flex; gap: .25rem; }
.forecast-scroll-controls button {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--control-border); border-radius: 50%;
  color: inherit; background: transparent;
}
.forecast-scroll-controls button:disabled { opacity: .25; cursor: default; }
.hour-strip { scroll-snap-type: x proximity; scroll-padding-inline: 2px; padding-top: 3px; }
.hour-strip > div { scroll-snap-align: start; border: 1px solid var(--control-border); flex-shrink: 0; }
.hour-strip > div:first-child { background: var(--control-hover); border-color: var(--accent); }
.hour-strip[data-more="true"] { mask-image: linear-gradient(to right, #000 calc(100% - 16px), transparent); }
.bottom-nav-dock {
  max-width: 410px; border-radius: 1.65rem; border-color: var(--control-border);
  padding: 5px; box-shadow: 0 8px 24px #0003;
}
[data-theme="dark"] .bottom-nav-dock { background: #182333; }
[data-theme="light"] .bottom-nav-dock { background: #fdfefe; }
.bottom-nav-btn { border-radius: 1.3rem; min-height: 56px; gap: 4px; font-weight: 650; }
.bottom-nav-btn[aria-current="page"] { background: var(--control-hover); color: var(--accent); box-shadow: inset 0 0 0 1px var(--control-border); }
.bottom-nav-btn .control-icon { height: 22px; }
.app-shell .transition-all {
  transition-property: color, background-color, border-color, opacity, transform;
  transition-duration: .16s;
}
.cities-modal-overlay { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.cities-city-card { transition: background-color .16s ease, border-color .16s ease !important; }
.cities-city-card:hover { transform: none; }
.cities-modal-list { overscroll-behavior: contain; }
@media (hover: hover) and (pointer: fine) {
  .forecast-scroll-controls button:not(:disabled):hover,
  .weather-meta button:not(:disabled):hover,
  .header-settings button:hover, .cities-trigger-btn:hover { background: var(--control-hover); }
}
@media (max-width: 560px) {
  .weather-card { border-radius: 1.65rem; }
  .forecast-hero { border-radius: 1.15rem; }
  .hero-clock { margin-top: .65rem; }
  .forecast-heading { font-size: .94rem; }
  .weather-meta { font-size: .67rem; }
}
@media (prefers-reduced-motion: reduce) {
  #root *, #root *::before, #root *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
