#page-weather-app {
  --weather-safe-top: env(safe-area-inset-top, 0px);
  --weather-safe-bottom: var(--global-system-safe-bottom);
  --weather-white: #fff;
  --weather-text: rgba(255,255,255,.98);
  --weather-muted: rgba(255,255,255,.72);
  --weather-glass-fill: rgba(77, 118, 161, .26);
  --weather-glass-fill-strong: rgba(66, 101, 139, .36);
  --weather-glass-edge: rgba(255,255,255,.18);
  --weather-glass-highlight: rgba(255,255,255,.12);
  --weather-pill: 999px;
  --weather-card-radius: 22px;
  position: relative;
  overflow: hidden;
  background: #77a8d7;
  color: var(--weather-text);
}

#qwq-weather-root,
.weather-app,
.weather-list-view,
.weather-map-view {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.weather-app,
.weather-map-view {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.weather-scene {
  background: linear-gradient(180deg, #79b4e8 0%, #5f9dd3 44%, #4a86be 100%);
}
.weather-scene.clear-day { background: linear-gradient(180deg, #73baf0 0%, #5aa6e4 44%, #458ac9 100%); }
.weather-scene.partly-day { background: linear-gradient(180deg, #7eb7df 0%, #669dc7 52%, #4f86b3 100%); }
.weather-scene.cloudy { background: linear-gradient(180deg, #829caf 0%, #718a9f 46%, #5f768b 100%); }
.weather-scene.rain { background: linear-gradient(180deg, #617f98 0%, #506c83 48%, #405a70 100%); }
.weather-scene.storm { background: linear-gradient(180deg, #445566 0%, #354858 48%, #293b4b 100%); }
.weather-scene.snow { background: linear-gradient(180deg, #9cb7c8 0%, #819ead 48%, #6e8796 100%); }
.weather-scene.fog { background: linear-gradient(180deg, #a4b5bd 0%, #8da2aa 50%, #748b95 100%); }
.weather-scene.clear-night { background: linear-gradient(180deg, #17365d 0%, #214a76 48%, #285989 100%); }
.weather-scene.partly-night { background: linear-gradient(180deg, #243d60 0%, #315679 48%, #39688d 100%); }

.weather-ambient {
  position: absolute;
  inset: -10% -20% auto;
  height: 52%;
  z-index: -1;
  pointer-events: none;
  opacity: .9;
  background:
    radial-gradient(circle at 72% 20%, rgba(255,255,255,.32), transparent 22%),
    radial-gradient(ellipse at 24% 50%, rgba(255,255,255,.18), transparent 30%);
  transform: translateZ(0);
}
.weather-scene.clear-night .weather-ambient,
.weather-scene.partly-night .weather-ambient {
  background:
    radial-gradient(circle at 74% 22%, rgba(238,246,255,.48), transparent 5%),
    radial-gradient(circle at 20% 18%, rgba(255,255,255,.28), transparent 1%),
    radial-gradient(circle at 32% 10%, rgba(255,255,255,.22), transparent 1%),
    radial-gradient(circle at 63% 9%, rgba(255,255,255,.2), transparent 1%);
}
.weather-scene.rain .weather-ambient,
.weather-scene.storm .weather-ambient,
.weather-scene.cloudy .weather-ambient {
  background:
    radial-gradient(ellipse at 30% 10%, rgba(255,255,255,.16), transparent 32%),
    radial-gradient(ellipse at 72% 18%, rgba(255,255,255,.12), transparent 35%);
}

.weather-rain-layer {
  display: none;
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: repeating-linear-gradient(105deg, transparent 0 18px, rgba(255,255,255,.8) 19px 20px, transparent 21px 34px);
  background-size: 54px 120px;
  animation: weather-rain-drift 1.7s linear infinite;
}
.weather-scene.rain .weather-rain-layer,
.weather-scene.storm .weather-rain-layer { display: block; }
@keyframes weather-rain-drift {
  from { transform: translate3d(0,-120px,0); }
  to { transform: translate3d(-34px,120px,0); }
}

.weather-glass,
.weather-liquid-control {
  background: var(--weather-glass-fill);
  border: 1px solid var(--weather-glass-edge);
  box-shadow: inset 0 1px 0 var(--weather-glass-highlight);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .weather-glass,
  .weather-liquid-control {
    backdrop-filter: blur(18px) saturate(118%);
    -webkit-backdrop-filter: blur(18px) saturate(118%);
  }
}

.weather-scroll {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(90px + var(--weather-safe-bottom));
}
.weather-scroll::-webkit-scrollbar,
.weather-hourly-track::-webkit-scrollbar,
.weather-list-scroll::-webkit-scrollbar { display: none; }

.weather-hero {
  min-height: clamp(300px, 42dvh, 390px);
  padding: calc(var(--weather-safe-top) + 24px) 24px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}
.weather-hero-loading {
  justify-content: center;
  gap: 16px;
}
.weather-city-button {
  appearance: none;
  margin: 0;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--weather-text);
  font: inherit;
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 430;
  letter-spacing: -.04em;
  line-height: 1.1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.weather-location-sub {
  margin-top: 5px;
  font-size: 11px;
  font-weight: 550;
  letter-spacing: .03em;
  color: var(--weather-muted);
}
.weather-current-temp {
  margin-top: 8px;
  font-size: clamp(82px, 24vw, 112px);
  font-weight: 180;
  letter-spacing: -.075em;
  line-height: .95;
  text-indent: -.08em;
}
.weather-current-condition {
  margin-top: 5px;
  font-size: 18px;
  font-weight: 520;
  line-height: 1.2;
}
.weather-current-range {
  margin-top: 3px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,.94);
}
.weather-local-time {
  margin-top: 8px;
  color: var(--weather-muted);
  font-size: 11px;
  letter-spacing: .03em;
}
.weather-loading-mark {
  color: var(--weather-muted);
  font-size: 14px;
}
.weather-error-inline {
  max-width: 280px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,.82);
}
.weather-retry {
  appearance: none;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--weather-pill);
  color: var(--weather-text);
  font-size: 13px;
  font-weight: 650;
}

.weather-content {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 0 14px 42px;
}
.weather-card {
  border-radius: var(--weather-card-radius);
  overflow: hidden;
}
.weather-hourly-card { padding: 14px 0 8px; }
.weather-summary {
  margin: 0;
  padding: 0 16px 12px;
  color: rgba(255,255,255,.95);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}
.weather-card-separator {
  height: 1px;
  margin: 0 14px;
  background: rgba(255,255,255,.14);
}
.weather-hourly-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px 7px 6px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.weather-hour {
  flex: 0 0 56px;
  display: grid;
  grid-template-rows: 18px 15px 29px 22px;
  place-items: center;
  scroll-snap-align: start;
}
.weather-hour-time,
.weather-hour-temp {
  font-size: 12px;
  font-weight: 650;
}
.weather-hour-pop {
  color: #79dbff;
  font-size: 9px;
  font-weight: 700;
}
.weather-hour-icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}
.weather-hour-temp { font-size: 15px; }

.weather-daily-card { margin-top: 12px; padding: 13px 14px 7px; }
.weather-card-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.64);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.weather-card-label .lucide {
  width: 13px;
  height: 13px;
  stroke-width: 1.8;
}
.weather-day-list { margin-top: 7px; }
.weather-day-row {
  min-height: 47px;
  display: grid;
  grid-template-columns: 54px 40px 32px minmax(72px,1fr) 32px;
  align-items: center;
  gap: 7px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.weather-day-row:first-child { border-top: 0; }
.weather-day-name { font-size: 13px; font-weight: 650; }
.weather-day-icon-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.weather-day-icon-wrap .lucide { width: 20px; height: 20px; stroke-width: 1.8; }
.weather-day-icon-wrap small { margin-top: -2px; color: #75d8ff; font-size: 8px; font-weight: 700; }
.weather-day-min,
.weather-day-max { font-size: 13px; font-weight: 600; }
.weather-day-min { color: rgba(255,255,255,.68); text-align: right; }
.weather-day-max { text-align: left; }
.weather-range {
  position: relative;
  height: 4px;
  border-radius: var(--weather-pill);
  background: rgba(255,255,255,.14);
  overflow: visible;
}
.weather-range > span {
  position: absolute;
  left: var(--range-left);
  width: var(--range-width);
  max-width: calc(100% - var(--range-left));
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7bd7ff, #f6d75c, #ff9c4b);
}
.weather-range > b {
  position: absolute;
  left: var(--today-point);
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%,-50%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.12);
}

.weather-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.weather-detail-card {
  min-height: 138px;
  padding: 13px 14px;
  border-radius: var(--weather-card-radius);
  display: flex;
  flex-direction: column;
}
.weather-detail-value {
  margin-top: 11px;
  font-size: clamp(22px, 6.2vw, 30px);
  line-height: 1;
  font-weight: 320;
  letter-spacing: -.04em;
}
.weather-detail-sub {
  margin-top: auto;
  padding-top: 10px;
  color: rgba(255,255,255,.74);
  font-size: 10px;
  line-height: 1.35;
}
.weather-data-source {
  padding: 24px 8px 8px;
  text-align: center;
  color: rgba(255,255,255,.52);
  font-size: 9px;
  letter-spacing: .01em;
}
.weather-error-banner {
  margin-bottom: 10px;
  padding: 11px 13px;
  border-radius: 16px;
  color: rgba(255,255,255,.92);
  font-size: 11px;
  line-height: 1.45;
}

.weather-bottom-bar {
  position: absolute;
  z-index: 8;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: calc(62px + var(--weather-safe-bottom));
  padding: 8px 16px calc(8px + var(--weather-safe-bottom));
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  background: linear-gradient(180deg, transparent, rgba(27,58,88,.15) 48%, rgba(27,58,88,.26));
  pointer-events: none;
}
.weather-toolbar-button,
.weather-list-back,
.weather-list-location,
.weather-map-actions > button,
.weather-map-done,
.weather-map-layer-control {
  appearance: none;
  border-radius: var(--weather-pill);
  color: var(--weather-text);
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.weather-toolbar-button {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  justify-self: center;
}
.weather-toolbar-button .lucide { width: 19px; height: 19px; stroke-width: 1.6; }
.weather-location-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  opacity: .78;
}
.weather-location-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.48);
}
.weather-location-dots span.is-active { width: 5px; height: 5px; background: #fff; }

/* iOS 26 location list: content-first page with floating Liquid Glass search and controls. */
.weather-list-view {
  position: relative;
  overflow: hidden;
  background: #0d0f12;
  color: #fff;
}
.weather-list-head {
  min-height: calc(var(--weather-safe-top) + 66px);
  padding: calc(var(--weather-safe-top) + 12px) 16px 8px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 10px;
}
.weather-list-head h1 {
  margin: 0;
  text-align: center;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -.04em;
}
.weather-list-back,
.weather-list-location {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.11);
}
.weather-list-back .lucide,
.weather-list-location .lucide { width: 19px; height: 19px; stroke-width: 1.7; }
.weather-search-box {
  position: relative;
  z-index: 2;
  width: calc(100% - 28px);
  max-width: 560px;
  height: 44px;
  margin: 0 auto 10px;
  padding: 0 14px;
  border-radius: var(--weather-pill);
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.10);
}
.weather-search-box .lucide { width: 17px; height: 17px; stroke-width: 1.7; color: rgba(255,255,255,.64); }
.weather-search-box input {
  min-width: 0;
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 16px;
}
.weather-search-box input::placeholder { color: rgba(255,255,255,.48); }
.weather-list-scroll {
  position: absolute;
  inset: calc(var(--weather-safe-top) + 120px) 0 0;
  overflow-y: auto;
  padding: 6px 14px calc(42px + var(--weather-safe-bottom));
  scrollbar-width: none;
}
.weather-saved-locations,
.weather-search-results {
  width: min(100%, 560px);
  margin: 0 auto;
}
.weather-location-card {
  appearance: none;
  width: 100%;
  min-height: 116px;
  margin: 0 0 12px;
  padding: 16px 18px;
  border: 0;
  border-radius: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  color: #fff;
  text-align: left;
  background: linear-gradient(135deg, #387cc0, #5aa7d9 60%, #7bbadf);
  cursor: pointer;
  overflow: hidden;
}
.weather-location-card:nth-child(2n) { background: linear-gradient(135deg, #566a82, #748aa0 60%, #8ca1b3); }
.weather-location-card-copy { display: flex; flex-direction: column; min-width: 0; }
.weather-location-card-copy strong { font-size: 20px; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; }
.weather-location-card-copy small { margin-top: 4px; font-size: 10px; color: rgba(255,255,255,.72); }
.weather-location-card-copy em { margin-top: 24px; color: rgba(255,255,255,.92); font-size: 10px; font-style: normal; font-weight: 550; }
.weather-location-card-temp { font-size: 38px; line-height: 1; font-weight: 300; letter-spacing: -.05em; }
.weather-search-result {
  appearance: none;
  width: 100%;
  min-height: 58px;
  padding: 8px 4px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.09);
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: transparent;
  text-align: left;
}
.weather-search-result .lucide { width: 18px; height: 18px; stroke-width: 1.6; color: rgba(255,255,255,.66); }
.weather-search-result span { min-width: 0; display: flex; flex-direction: column; }
.weather-search-result strong { font-size: 14px; font-weight: 600; }
.weather-search-result small { margin-top: 3px; color: rgba(255,255,255,.48); font-size: 10px; }
.weather-search-empty,
.weather-list-status {
  padding: 22px 8px;
  color: rgba(255,255,255,.56);
  text-align: center;
  font-size: 12px;
}

/* Weather map: persistent geographic viewport, real weather layers and mobile map gestures. */
.weather-map-view {
  position: relative;
  overflow: hidden;
  background: #e7e5df;
  color: #111418;
  --weather-map-chrome: rgba(249,249,247,.82);
  --weather-map-line: rgba(22,25,29,.10);
}
.weather-map-canvas,
.weather-map-pan-layer,
.weather-map-tile-pane,
.weather-map-radar-pane,
.weather-map-data-layer,
.weather-map-marker-pane {
  position: absolute;
  inset: 0;
}
.weather-map-canvas {
  z-index: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  background: #e7e5df;
}
.weather-map-canvas.is-interacting { cursor: grabbing; }
.weather-map-pan-layer {
  will-change: transform;
  transform-origin: 50% 50%;
}
.weather-map-tile-pane,
.weather-map-radar-pane,
.weather-map-data-layer,
.weather-map-marker-pane { pointer-events: none; }
.weather-map-tile-pane { z-index: 0; }
.weather-map-radar-pane { z-index: 1; opacity: .74; }
.weather-map-data-layer { z-index: 2; }
.weather-map-marker-pane { z-index: 3; }
.weather-map-tile,
.weather-map-radar-tile {
  position: absolute;
  display: block;
  width: 256px;
  height: 256px;
  max-width: none;
  object-fit: fill;
  user-select: none;
  -webkit-user-drag: none;
}
.weather-map-tile { filter: saturate(.86) brightness(1.03) contrast(.98); }
.weather-map-radar-tile { image-rendering: auto; }
.weather-map-loading {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
}
.weather-map-loading.is-loading { opacity: 1; }
.weather-map-loading span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: 3px;
  background: #1688ff;
  animation: weather-map-tile-loading 1.15s ease-in-out infinite;
}
@keyframes weather-map-tile-loading {
  0% { transform: translateX(-110%); }
  50% { transform: translateX(165%); }
  100% { transform: translateX(360%); }
}
.weather-map-toolbar {
  position: absolute;
  z-index: 12;
  top: calc(var(--weather-safe-top) + 10px);
  left: 14px;
  right: 14px;
  display: grid;
  grid-template-columns: 72px 1fr 42px;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.weather-map-toolbar > * { pointer-events: auto; }
.weather-map-done {
  min-width: 72px;
  height: 42px;
  padding: 0 16px;
  border-radius: var(--weather-pill);
  color: #111;
  font-size: 14px;
  font-weight: 700;
  background: var(--weather-map-chrome);
}
.weather-map-title {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
  color: #111;
  text-shadow: 0 1px 5px rgba(255,255,255,.68);
  pointer-events: none;
}
.weather-map-title strong { font-size: 13px; font-weight: 760; }
.weather-map-title span {
  max-width: 100%;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 650;
  color: rgba(0,0,0,.56);
}
.weather-map-layer-control {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--weather-map-chrome);
}
.weather-map-layer-control button,
.weather-map-controls button,
.weather-map-list,
.weather-map-search button,
.weather-map-radar-timeline button {
  appearance: none;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  color: #111;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
.weather-map-layer-control button {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.weather-map-layer-control .lucide,
.weather-map-controls .lucide,
.weather-map-list .lucide { width: 18px; height: 18px; stroke-width: 1.8; }
.weather-map-search {
  position: absolute;
  z-index: 11;
  top: calc(var(--weather-safe-top) + 62px);
  left: 14px;
  right: 64px;
  height: 40px;
  padding: 0 10px;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 18px minmax(0,1fr) auto;
  align-items: center;
  gap: 7px;
  color: rgba(0,0,0,.58);
  background: var(--weather-map-chrome);
}
.weather-map-search > .lucide { width: 15px; height: 15px; stroke-width: 1.8; }
.weather-map-search input {
  appearance: none;
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111;
  font: inherit;
  font-size: 12px;
  font-weight: 560;
}
.weather-map-search input::placeholder { color: rgba(0,0,0,.42); }
.weather-map-search button {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.06);
}
.weather-map-search button .lucide { width: 13px; height: 13px; }
.weather-map-search-panel {
  position: absolute;
  z-index: 15;
  top: calc(var(--weather-safe-top) + 108px);
  left: 14px;
  right: 64px;
  max-height: min(300px, 42dvh);
  overflow-y: auto;
  border-radius: 20px;
  background: rgba(249,249,247,.94);
  color: #111;
  scrollbar-width: none;
}
.weather-map-search-panel[hidden] { display: none; }
.weather-map-search-panel::-webkit-scrollbar { display: none; }
.weather-map-search-result {
  appearance: none;
  width: 100%;
  min-height: 52px;
  padding: 7px 11px;
  border: 0;
  border-top: 1px solid rgba(0,0,0,.07);
  display: grid;
  grid-template-columns: 28px minmax(0,1fr);
  align-items: center;
  gap: 4px;
  background: transparent;
  color: #111;
  text-align: left;
}
.weather-map-search-result:first-child { border-top: 0; }
.weather-map-search-result > .lucide { width: 17px; height: 17px; stroke-width: 1.7; color: #1688ff; }
.weather-map-search-result span { min-width: 0; display: flex; flex-direction: column; }
.weather-map-search-result strong,
.weather-map-search-result small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weather-map-search-result strong { font-size: 12px; font-weight: 720; }
.weather-map-search-result small { margin-top: 2px; font-size: 9px; color: rgba(0,0,0,.48); }
.weather-map-search-status { padding: 18px 12px; text-align: center; font-size: 11px; color: rgba(0,0,0,.5); }
.weather-map-legend {
  position: absolute;
  z-index: 9;
  left: 14px;
  bottom: calc(var(--weather-safe-bottom) + 72px);
  width: min(178px, 52vw);
  padding: 10px 11px 9px;
  border-radius: 18px;
  color: #111;
  background: var(--weather-map-chrome);
  pointer-events: none;
}
.weather-map-view[data-weather-map-layer="precipitation"] .weather-map-legend {
  bottom: calc(var(--weather-safe-bottom) + 132px);
}
.weather-map-legend-heading,
.weather-map-legend-scale { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.weather-map-legend-heading span { font-size: 9px; font-weight: 650; color: rgba(0,0,0,.52); }
.weather-map-legend-heading strong { font-size: 14px; font-weight: 740; }
.weather-map-legend-ramp {
  height: 5px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg,#b5e5ff,#49a7ff,#2255d8,#7d3bba,#ef4975);
}
.weather-map-view[data-weather-map-layer="temperature"] .weather-map-legend-ramp {
  background: linear-gradient(90deg,#3867db,#48b8ed,#70d47b,#f4db56,#f39845,#e3483e);
}
.weather-map-view[data-weather-map-layer="air"] .weather-map-legend-ramp {
  background: linear-gradient(90deg,#34c759,#ffd60a,#ff9500,#ff3b30,#af52de,#800040);
}
.weather-map-view[data-weather-map-layer="wind"] .weather-map-legend-ramp {
  background: linear-gradient(90deg,#cfe9f7,#65b7db,#3585ba,#244e85);
}
.weather-map-legend-scale { margin-top: 4px; font-size: 8px; font-weight: 620; color: rgba(0,0,0,.42); }
.weather-map-controls {
  position: absolute;
  z-index: 10;
  top: calc(var(--weather-safe-top) + 62px);
  right: 14px;
  width: 42px;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--weather-map-chrome);
}
.weather-map-controls button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}
.weather-map-controls > span { height: 1px; margin: 0 8px; background: var(--weather-map-line); }
.weather-map-list {
  position: absolute;
  z-index: 10;
  right: 14px;
  bottom: calc(var(--weather-safe-bottom) + 18px);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--weather-map-chrome);
}
.weather-map-scale {
  position: absolute;
  z-index: 8;
  left: 14px;
  bottom: calc(var(--weather-safe-bottom) + 22px);
  min-width: 34px;
  height: 15px;
  border-left: 1px solid rgba(0,0,0,.62);
  border-right: 1px solid rgba(0,0,0,.62);
  border-bottom: 1px solid rgba(0,0,0,.62);
  color: rgba(0,0,0,.7);
  font-size: 8px;
  font-weight: 680;
  text-align: center;
  line-height: 12px;
  text-shadow: 0 1px 2px rgba(255,255,255,.75);
  pointer-events: none;
}
.weather-map-radar-timeline {
  position: absolute;
  z-index: 10;
  left: 14px;
  right: 64px;
  bottom: calc(var(--weather-safe-bottom) + 16px);
  min-height: 50px;
  padding: 7px 10px;
  border-radius: 20px;
  display: grid;
  grid-template-columns: 34px 72px minmax(0,1fr);
  align-items: center;
  gap: 7px;
  background: var(--weather-map-chrome);
  color: #111;
}
.weather-map-radar-timeline[hidden] { display: none; }
.weather-map-radar-timeline button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.07);
}
.weather-map-radar-timeline button .lucide { width: 15px; height: 15px; stroke-width: 2; }
.weather-map-radar-timeline > div { min-width: 0; display: flex; flex-direction: column; }
.weather-map-radar-timeline strong { font-size: 11px; font-weight: 740; }
.weather-map-radar-timeline small { margin-top: 2px; font-size: 7px; color: rgba(0,0,0,.44); white-space: nowrap; }
.weather-map-radar-timeline input[type="range"] {
  appearance: none;
  width: 100%;
  height: 20px;
  margin: 0;
  background: transparent;
}
.weather-map-radar-timeline input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg,rgba(54,126,255,.76),rgba(115,76,221,.78));
}
.weather-map-radar-timeline input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #1688ff;
  box-shadow: 0 1px 4px rgba(0,0,0,.22);
}
.weather-map-radar-timeline input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg,rgba(54,126,255,.76),rgba(115,76,221,.78));
}
.weather-map-radar-timeline input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #1688ff;
}
.weather-map-layer-sheet {
  position: absolute;
  z-index: 18;
  inset: 0;
  display: grid;
  place-items: start end;
  padding: calc(var(--weather-safe-top) + 58px) 14px 0;
  background: transparent;
  pointer-events: none;
}
.weather-map-layer-sheet[hidden] { display: none; }
.weather-map-layer-sheet-panel {
  width: min(246px, 74vw);
  padding: 8px;
  border-radius: 22px;
  background: rgba(249,249,247,.94);
  color: #111;
  pointer-events: auto;
}
.weather-map-layer-sheet-panel button {
  appearance: none;
  width: 100%;
  min-height: 44px;
  padding: 0 9px;
  border: 0;
  border-radius: 13px;
  display: grid;
  grid-template-columns: 28px 1fr 22px;
  align-items: center;
  gap: 4px;
  color: #111;
  background: transparent;
  text-align: left;
  font-size: 12px;
  font-weight: 650;
}
.weather-map-layer-sheet-panel button.is-active { background: rgba(0,0,0,.06); }
.weather-map-layer-sheet-panel .lucide { width: 17px; height: 17px; stroke-width: 1.8; }
.weather-map-place-marker,
.weather-map-result-marker {
  appearance: none;
  position: absolute;
  transform: translate(-50%,-100%);
  border: 0;
  padding: 0;
  background: transparent;
  color: #111;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.weather-map-place-marker { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.weather-map-place-marker span {
  position: relative;
  width: 23px;
  height: 23px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #ff453a;
  box-shadow: 0 2px 7px rgba(0,0,0,.26);
}
.weather-map-place-marker span::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  left: 7.5px;
  top: 7.5px;
  border-radius: 50%;
  background: #fff;
}
.weather-map-place-marker b {
  max-width: 120px;
  padding: 4px 7px;
  border-radius: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(255,255,255,.91);
  font-size: 9px;
  font-weight: 760;
  box-shadow: 0 1px 5px rgba(0,0,0,.14);
}
.weather-map-result-marker {
  width: 26px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #ff453a;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.22));
}
.weather-map-result-marker .lucide { width: 25px; height: 25px; stroke-width: 2.2; fill: rgba(255,255,255,.78); }
.weather-map-user-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: rgba(22,136,255,.28);
}
.weather-map-user-dot::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: rgba(22,136,255,.16);
  animation: weather-map-location-pulse 2.2s ease-out infinite;
}
.weather-map-user-dot span {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #1688ff;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
@keyframes weather-map-location-pulse {
  0% { transform: scale(.55); opacity: .9; }
  80%,100% { transform: scale(1.8); opacity: 0; }
}
.weather-map-data-layer {
  opacity: .78;
  background-size: 100% 100%;
  mix-blend-mode: multiply;
}
.weather-map-view[data-weather-map-layer="wind"] .weather-map-data-layer {
  opacity: 1;
  mix-blend-mode: normal;
  background: linear-gradient(125deg,rgba(106,186,225,.16),rgba(75,132,189,.12));
}
.weather-map-layer-loading {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: rgba(0,0,0,.58);
  font-size: 9px;
  font-weight: 650;
}
.weather-map-wind-vector {
  position: absolute;
  width: 44px;
  height: 44px;
  transform: translate(-50%,-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(16,77,129,.9);
  filter: drop-shadow(0 1px 2px rgba(255,255,255,.72));
}
.weather-map-wind-vector .lucide {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
  transform: rotate(var(--wind-angle));
}
.weather-map-wind-vector b {
  position: absolute;
  top: 31px;
  padding: 1px 4px;
  border-radius: 7px;
  background: rgba(255,255,255,.74);
  font-size: 8px;
  font-weight: 760;
}
.weather-map-attribution {
  position: absolute;
  z-index: 7;
  left: 6px;
  bottom: 2px;
  padding: 1px 3px;
  border-radius: 4px;
  color: rgba(0,0,0,.52);
  background: rgba(255,255,255,.62);
  font-size: 6px;
  pointer-events: auto;
}
.weather-map-attribution a { color: inherit; text-decoration: none; }

/* Home icon sizing: use Font Awesome's official cloud/sun glyph rather than a self-drawn glyph. */
.icon-shell.weather .fa-solid {
  font-size: calc(var(--icon-size) * .43);
  line-height: 1;
}

@media (max-width: 360px) {
  .weather-content { padding-inline: 10px; }
  .weather-day-row { grid-template-columns: 46px 36px 28px minmax(60px,1fr) 28px; gap: 5px; }
  .weather-detail-card { min-height: 124px; padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .weather-rain-layer { animation: none; }
}
