:root {
  color-scheme: dark;
  --bg-top: rgb(15 46 61);
  --bg-mid: rgb(26 71 82);
  --bg-bottom: rgb(61 89 79);
  --primary: rgb(255 255 255);
  --secondary: rgb(255 255 255 / 0.62);
  --tertiary: rgb(255 255 255 / 0.5);
  --panel: rgb(255 255 255 / 0.12);
  --nested: rgb(255 255 255 / 0.08);
  --stroke: rgb(255 255 255 / 0.16);
  --separator: rgb(255 255 255 / 0.16);
  --daily-low-temp: rgb(255 255 255 / 0.82);
  --forecast-cell: rgb(255 255 255 / 0.05);
  --chart-value-bubble: rgb(255 255 255 / 0.16);
  --weather-cloud: rgb(255 255 255);
  --nav-add-bg: rgb(11 72 86 / 0.3);
  --nav-add-border: var(--stroke);
  --nav-add-color: var(--primary);
  --nav-add-inset: rgb(255 255 255 / 0.025);
  --nav-add-shadow: rgb(0 0 0 / 0.12);
  --bottom-chrome-start: rgb(37 78 76 / 0);
  --bottom-chrome-mid: rgb(37 78 76 / 0.88);
  --bottom-chrome-end: rgb(10 28 35 / 0.94);
  --collapsed-nav-bg: rgb(10 28 35 / 0.18);
  --collapsed-nav-border: rgb(255 255 255 / 0.12);
  --settings-icon-color: rgb(255 255 255 / 0.82);
  --picker-search-bg: rgb(255 255 255 / 0.14);
  --picker-shadow: rgb(0 0 0 / 0.32);
  --picker-selected-color: rgb(104 231 255);
  --cyan: rgb(0 255 255);
  --cyan-soft: rgb(91 216 255);
  --blue: rgb(74 163 255);
  --mint: rgb(114 227 181);
  --orange: rgb(255 107 0);
  --yellow: rgb(255 214 10);
  --radius-panel: 24px;
  --radius-tile: 16px;
  --ios-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --rounded-font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --phone-width: 430px;
  --bottom-chrome-height: 104px;
  --bottom-chrome-top-gap: 4px;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  min-height: 100%;
}

html {
  background: var(--bg-top);
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: var(--ios-font);
  color: var(--primary);
  background:
    linear-gradient(135deg, var(--bg-top) 0%, var(--bg-mid) 48%, var(--bg-bottom) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.seo-fallback {
  display: grid;
  gap: 12px;
  width: min(100vw - 32px, 560px);
  margin: 72px auto;
  padding: 24px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-panel);
  background: var(--panel);
}

.seo-fallback h1,
.seo-fallback p {
  margin: 0;
}

.seo-fallback h1 {
  font-size: 32px;
  line-height: 38px;
}

.seo-fallback p {
  color: var(--secondary);
  font-size: 16px;
  line-height: 23px;
}

.seo-fallback a {
  color: var(--primary);
  font-weight: 700;
}

.seo-page {
  width: min(100vw - 32px, 1120px);
  margin: 0 auto;
  padding: 56px 0 72px;
}

.seo-hero {
  display: grid;
  gap: 16px;
  max-width: 820px;
  padding: 28px 0 20px;
}

.seo-kicker {
  margin: 0;
  color: var(--cyan-soft);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.seo-hero h1 {
  margin: 0;
  color: var(--primary);
  font-size: 44px;
  line-height: 52px;
  font-weight: 800;
  letter-spacing: 0;
}

.seo-hero p,
.seo-grid p,
.seo-section p {
  margin: 0;
  color: var(--secondary);
  font-size: 17px;
  line-height: 26px;
}

.seo-actions,
.seo-chip-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.seo-button,
.seo-link,
.seo-chip-list a,
.seo-link-grid a,
.seo-directory-links a {
  color: var(--primary);
  text-decoration: none;
}

.seo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgb(0 255 255 / 0.18);
  font-weight: 700;
}

.seo-link {
  color: var(--cyan-soft);
  font-weight: 700;
}

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

.seo-grid article,
.seo-section {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-panel);
  background: var(--panel);
}

.seo-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 18px;
}

.seo-grid h2,
.seo-section h2,
.seo-letter-group h3 {
  margin: 0;
  color: var(--primary);
  letter-spacing: 0;
}

.seo-grid h2,
.seo-section h2 {
  font-size: 21px;
  line-height: 28px;
}

.seo-section {
  margin-top: 16px;
  padding: 20px;
}

.seo-section h2 {
  margin-bottom: 14px;
}

.seo-chip-list a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--nested);
  color: var(--primary);
  font-size: 14px;
  line-height: 18px;
  font-weight: 700;
}

.seo-link-grid,
.seo-directory-links {
  display: grid;
  gap: 10px;
}

.seo-link-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.seo-link-grid a,
.seo-directory-links a {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px;
  border-radius: 12px;
  background: var(--nested);
}

.seo-link-grid span,
.seo-directory-links span,
.seo-link-grid small,
.seo-directory-links small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seo-link-grid span,
.seo-directory-links span {
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
}

.seo-link-grid small,
.seo-directory-links small {
  color: var(--secondary);
  font-size: 12px;
  line-height: 16px;
}

.seo-directory {
  display: grid;
  gap: 18px;
}

.seo-directory h2 {
  margin-bottom: 0;
}

.seo-letter-group {
  display: grid;
  gap: 10px;
}

.seo-letter-group h3 {
  font-size: 19px;
  line-height: 24px;
}

.seo-directory-links {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 860px) {
  .seo-grid,
  .seo-link-grid,
  .seo-directory-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .seo-page {
    width: min(100vw - 24px, 1120px);
    padding: 28px 0 44px;
  }

  .seo-hero h1 {
    font-size: 34px;
    line-height: 41px;
  }

  .seo-grid,
  .seo-link-grid,
  .seo-directory-links {
    grid-template-columns: minmax(0, 1fr);
  }
}

.app-shell {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  isolation: isolate;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, var(--bg-top) 0%, var(--bg-mid) 48%, var(--bg-bottom) 100%);
}

.app-shell.is-centered {
  --phone-width: 500px;
  display: grid;
  place-items: start center;
  background:
    radial-gradient(circle at 50% -220px, rgb(255 255 255 / 0.08), transparent 420px),
    linear-gradient(135deg, rgb(7 23 31), rgb(18 55 62) 48%, rgb(53 78 69));
}

.app-shell.chrome-none {
  --phone-width: 500px;
  display: grid;
  place-items: start center;
}

.phone-stage {
  position: relative;
  width: min(100vw, var(--phone-width));
  min-height: 100dvh;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--bg-top) 0%, var(--bg-mid) 48%, var(--bg-bottom) 100%);
}

.app-shell.theme-system {
  --bg-top: rgb(242 247 249);
  --bg-mid: rgb(232 241 245);
  --bg-bottom: rgb(221 233 238);
  --primary: rgb(16 31 38);
  --secondary: rgb(16 31 38 / 0.62);
  --tertiary: rgb(16 31 38 / 0.48);
  --panel: rgb(255 255 255 / 0.86);
  --nested: rgb(16 31 38 / 0.06);
  --stroke: rgb(16 31 38 / 0.10);
  --separator: rgb(16 31 38 / 0.12);
  --daily-low-temp: rgb(16 31 38 / 0.38);
  --forecast-cell: rgb(16 31 38 / 0.055);
  --chart-value-bubble: rgb(16 31 38 / 0.075);
  --weather-cloud: rgb(111 124 132);
  --nav-add-bg: rgb(255 255 255 / 0.72);
  --nav-add-border: rgb(16 31 38 / 0.085);
  --nav-add-color: rgb(16 31 38 / 0.82);
  --nav-add-inset: rgb(255 255 255 / 0.55);
  --nav-add-shadow: rgb(16 31 38 / 0.075);
  --bottom-chrome-start: rgb(246 250 252 / 0);
  --bottom-chrome-mid: rgb(246 250 252 / 0.74);
  --bottom-chrome-end: rgb(246 250 252 / 0.94);
  --collapsed-nav-bg: rgb(246 250 252 / 0.72);
  --collapsed-nav-border: rgb(16 31 38 / 0.055);
  --settings-icon-color: rgb(16 31 38 / 0.46);
  --picker-search-bg: rgb(16 31 38 / 0.055);
  --picker-shadow: rgb(16 31 38 / 0.16);
  --picker-selected-color: rgb(0 124 142);
  background:
    radial-gradient(circle at 50% -220px, rgb(255 255 255 / 0.84), transparent 420px),
    linear-gradient(135deg, var(--bg-top), var(--bg-mid) 48%, var(--bg-bottom));
}

@media (prefers-color-scheme: dark) {
  .app-shell.theme-system {
    --bg-top: rgb(15 18 22);
    --bg-mid: rgb(22 27 32);
    --bg-bottom: rgb(29 35 40);
    --primary: rgb(245 248 250);
    --secondary: rgb(245 248 250 / 0.64);
    --tertiary: rgb(245 248 250 / 0.50);
    --panel: rgb(255 255 255 / 0.08);
    --nested: rgb(255 255 255 / 0.06);
    --stroke: rgb(255 255 255 / 0.12);
    --separator: rgb(255 255 255 / 0.12);
    --daily-low-temp: rgb(245 248 250 / 0.62);
    --forecast-cell: rgb(255 255 255 / 0.05);
    --chart-value-bubble: rgb(255 255 255 / 0.16);
    --weather-cloud: rgb(245 248 250);
    --nav-add-bg: rgb(255 255 255 / 0.09);
    --nav-add-border: rgb(255 255 255 / 0.13);
    --nav-add-color: rgb(245 248 250 / 0.92);
    --nav-add-inset: rgb(255 255 255 / 0.04);
    --nav-add-shadow: rgb(0 0 0 / 0.22);
    --bottom-chrome-start: rgb(29 35 40 / 0);
    --bottom-chrome-mid: rgb(29 35 40 / 0.90);
    --bottom-chrome-end: rgb(15 18 22 / 0.96);
    --collapsed-nav-bg: rgb(10 28 35 / 0.34);
    --collapsed-nav-border: rgb(255 255 255 / 0.12);
    --settings-icon-color: rgb(245 248 250 / 0.70);
    --picker-search-bg: rgb(255 255 255 / 0.08);
    --picker-shadow: rgb(0 0 0 / 0.32);
    --picker-selected-color: rgb(104 231 255);
  }
}

.phone-stage::after {
  content: "";
  position: fixed;
  z-index: 14;
  left: 50%;
  bottom: 0;
  width: min(100vw, var(--phone-width));
  height: calc(var(--bottom-chrome-height) + var(--bottom-chrome-top-gap));
  pointer-events: none;
  transform: translateX(-50%);
  background:
    linear-gradient(
      to bottom,
      var(--bottom-chrome-start),
      var(--bottom-chrome-mid) 36%,
      var(--bottom-chrome-end) 100%
    );
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.chrome-none .phone-stage {
  width: min(100vw, var(--phone-width));
  max-width: none;
}

.chrome-none .phone-stage::after {
  display: none;
}

.nav-bar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 50%;
  width: min(100vw, var(--phone-width));
  transform: translateX(-50%);
  padding: calc(var(--safe-top) + 51px) 16px 8px;
  pointer-events: none;
  transition:
    padding 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.chrome-none .nav-bar,
.chrome-none .tab-bar {
  display: none;
}

.nav-row {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  min-height: 44px;
}

.nav-title {
  flex: 1;
  margin: 0;
  color: var(--primary);
  font-family: var(--ios-font);
  font-size: 34px;
  line-height: 41px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;
  transition:
    font-size 180ms ease,
    line-height 180ms ease,
    text-align 180ms ease,
    transform 180ms ease;
}

.platform-android .nav-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 32px;
  line-height: 39px;
}

.nav-inline-title {
  position: absolute;
  left: 54px;
  right: 54px;
  top: 50%;
  display: block;
  overflow: hidden;
  color: var(--primary);
  font-family: var(--ios-font);
  font-size: 17px;
  line-height: 22px;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  opacity: 1;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%);
  transition: visibility 180ms ease;
}

.nav-add {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: -7px;
  border: 1.5px solid var(--nav-add-border);
  border-radius: 999px;
  background: var(--nav-add-bg);
  box-shadow:
    inset 0 0 0 1px var(--nav-add-inset),
    0 7px 18px var(--nav-add-shadow);
  color: var(--nav-add-color);
  pointer-events: auto;
  --symbol-stroke: 3.2;
}

.nav-add svg {
  width: 31px;
  height: 31px;
}

.app-shell.is-title-collapsed .nav-bar {
  padding: 0 16px 0;
  border-bottom: 0.5px solid var(--collapsed-nav-border);
  background: var(--collapsed-nav-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.app-shell.is-title-collapsed .nav-row {
  align-items: center;
  min-height: 44px;
}

.app-shell.is-title-collapsed .nav-title {
  opacity: 0;
  visibility: hidden;
}

.app-shell.is-title-collapsed .nav-inline-title {
  opacity: 1;
  visibility: visible;
}

.app-shell.is-title-collapsed .nav-add {
  width: 40px;
  height: 40px;
  margin-bottom: 0;
  --symbol-stroke: 3;
}

.app-shell.is-title-collapsed .nav-add svg {
  width: 23px;
  height: 23px;
}

.weather-scroll {
  width: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(var(--safe-top) + 124px) 16px calc(var(--bottom-chrome-height) + var(--bottom-chrome-top-gap));
}

.chrome-none .weather-scroll {
  padding-top: 16px;
  padding-bottom: 20px;
}

.view-scroll {
  width: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(var(--safe-top) + 124px) 16px calc(var(--bottom-chrome-height) + var(--bottom-chrome-top-gap));
}

.chrome-none .view-scroll {
  padding-top: 16px;
  padding-bottom: 20px;
}

.weather-pager {
  display: flex;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: pan-y;
  cursor: grab;
}

.weather-pager.is-dragging {
  scroll-behavior: auto;
  cursor: grabbing;
}

.weather-pager::-webkit-scrollbar {
  display: none;
}

.weather-page {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.weather-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin: 0 auto;
}

.panel {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-panel);
  background: var(--panel);
}

.weather-panel {
  padding: 16px;
}

.panel-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
}

.headline {
  margin: 0;
  color: var(--primary);
  font-size: 17px;
  line-height: 22px;
  font-weight: 700;
  letter-spacing: 0;
}

.current-icon-slot {
  width: 52px;
  height: 42px;
  display: grid;
  justify-items: end;
  align-items: start;
  margin-top: -3px;
  margin-bottom: -10px;
}

.current-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 3px;
  transform: translateY(6px);
}

.location-title-row {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.location-pin {
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  transform: translateY(-4px);
  fill: currentColor;
  stroke: none;
}

.location-pin path {
  fill: currentColor;
  stroke: none;
}

.location-name {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--primary);
  font-family: var(--rounded-font);
  font-size: var(--location-font-size, 42px);
  line-height: var(--location-line-height, 49px);
  font-weight: 700;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.temperature {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: flex-start;
  gap: 3px;
  color: var(--primary);
  font-family: var(--rounded-font);
  font-weight: 700;
  white-space: nowrap;
}

.temperature-value {
  font-size: var(--value-size);
  line-height: calc(var(--value-size) + 5px);
}

.temperature-unit {
  padding-top: var(--unit-top, 5px);
  font-size: var(--unit-size);
  line-height: calc(var(--unit-size) + 4px);
}

.metric-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.metric-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 62px;
  padding: 12px;
  border-radius: var(--radius-tile);
  background: var(--nested);
}

.metric-tile svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--cyan);
  --symbol-stroke: 2.35;
}

.metric-text {
  min-width: 0;
}

.metric-title,
.caption,
.source-footer {
  color: var(--secondary);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0;
}

.metric-title,
.metric-value {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-value {
  color: var(--primary);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
}

.updated {
  margin: 12px 0 0;
}

.section-panel {
  padding: 12px 16px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.metric-picker {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  padding: 2px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.10);
}

.metric-picker button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 24px;
  border-radius: 999px;
  color: var(--secondary);
}

.metric-picker button svg {
  width: 13px;
  height: 13px;
  --symbol-stroke: 2.35;
}

.metric-picker button.is-active {
  color: var(--primary);
}

.metric-picker button[data-metric="temperature"].is-active {
  background: rgb(0 255 255 / 0.62);
}

.metric-picker button[data-metric="rain"].is-active {
  background: rgb(74 163 255 / 0.62);
}

.metric-picker button[data-metric="wind"].is-active {
  background: rgb(114 227 181 / 0.62);
}

.hourly-chart {
  position: relative;
  width: 100%;
  aspect-ratio: 360 / 200;
  margin: 0;
}

.hourly-chart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-icon {
  color: var(--primary);
}

.chart-icon.sun {
  color: var(--yellow);
}

.chart-label,
.time-label,
.day-label {
  font-family: var(--rounded-font);
  user-select: none;
}

.chart-label {
  font-size: 10px;
  font-weight: 700;
  fill: var(--primary);
}

.time-label {
  font-size: 9px;
  font-weight: 600;
  fill: var(--primary);
}

.day-label {
  font-size: 11px;
  font-weight: 700;
  fill: var(--tertiary);
}

.daily-panel {
  padding: 16px 16px 8px;
}

.daily-list {
  margin-top: 12px;
}

.daily-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 7px 8px;
  border-radius: 8px;
}

.daily-row:nth-child(even) {
  margin-inline: -6px;
  padding-inline: 14px;
  background: var(--forecast-cell);
}

.daily-icon {
  display: grid;
  place-items: center;
  width: 28px;
}

.daily-icon svg {
  width: 22px;
  height: 22px;
}

.daily-text {
  min-width: 0;
}

.daily-day {
  margin: 0;
  color: var(--primary);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.daily-summary {
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--secondary);
  font-size: 12px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.daily-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.daily-temps {
  display: inline-flex;
  align-items: flex-start;
  gap: 5px;
}

.temp-separator {
  padding-top: 2px;
  color: var(--tertiary);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
}

.daily-wind {
  color: var(--secondary);
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
}

.app-promo {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 0;
}

.app-promo-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
}

.bottom-chrome {
  position: fixed;
  z-index: 19;
  left: 50%;
  bottom: 0;
  display: grid;
  gap: 4px;
  width: min(100vw, var(--phone-width));
  padding: 4px 16px calc(var(--safe-bottom) + 16px);
  transform: translateX(-50%);
  pointer-events: none;
}

.bottom-chrome > * {
  pointer-events: auto;
}

.chrome-none .bottom-chrome {
  bottom: calc(var(--safe-bottom) + 8px);
  padding: 0 16px;
}

.bottom-app-promo {
  width: 100%;
}

.settings-app-promo-panel {
  padding: 14px;
}

.settings-app-promo {
  align-items: stretch;
}

.app-promo-icon {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.app-promo-copy {
  min-width: 0;
}

.app-promo-title {
  margin: 0;
  color: var(--primary);
  font-size: 15px;
  line-height: 19px;
  font-weight: 700;
}

.app-promo-text {
  margin: 3px 0 0;
  color: var(--secondary);
  font-size: 11px;
  line-height: 15px;
  font-weight: 500;
}

.store-badge-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  width: 100%;
}

.store-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-width: 136px;
  min-height: 39px;
}

.store-badge-link:first-child {
  grid-column: 2;
}

.store-badge-link:last-child {
  grid-column: 4;
}

.store-badge {
  display: block;
  width: 136px;
  height: auto;
  object-fit: contain;
}

.app-store-badge {
  width: 136px;
}

.play-store-badge {
  width: 136px;
}

.store-badge-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.source-footer {
  width: 100%;
  margin: 18px 0 calc(var(--safe-bottom) + 24px);
  padding: 2px 0 4px;
  text-align: center;
  font-weight: 500;
}

.chrome-none .source-footer {
  margin-bottom: 0;
}

.page-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 16px;
  filter: drop-shadow(0 6px 12px rgb(0 0 0 / 0.18));
}

.page-control button {
  display: block;
  width: 6px;
  height: 6px;
  padding: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.24);
  transition: width 180ms ease, background 180ms ease;
}

.page-control button.is-active {
  width: 18px;
  background: var(--primary);
}

.tab-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-self: center;
  width: min(78vw, 300px);
  min-height: 54px;
  padding: 2px;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 999px;
  background: rgb(10 28 35 / 0.62);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.025),
    0 12px 26px rgb(0 0 0 / 0.16);
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 50px;
  padding: 4px 0 5px;
  border-radius: 999px;
  color: var(--secondary);
  font-size: 10px;
  line-height: 12px;
  font-weight: 500;
  transition: background 160ms ease, color 160ms ease;
}

.tab-item svg {
  width: 23px;
  height: 23px;
}

.tab-item.is-active {
  background: rgb(255 255 255 / 0.07);
  color: var(--primary);
}

.tab-item:focus {
  outline: none;
}

.tab-item:focus-visible {
  outline: 2px solid rgb(255 255 255 / 0.36);
  outline-offset: -5px;
}

.theme-system .tab-bar {
  border-color: rgb(16 31 38 / 0.06);
  background: rgb(255 255 255 / 0.72);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.36),
    0 14px 34px rgb(16 31 38 / 0.12);
}

.theme-system .tab-item {
  color: rgb(16 31 38 / 0.56);
}

.theme-system .tab-item.is-active {
  background: rgb(255 255 255 / 0.86);
  color: var(--primary);
  box-shadow:
    inset 0 0 0 1px rgb(16 31 38 / 0.035),
    0 6px 16px rgb(16 31 38 / 0.08);
}

.theme-system .tab-item:focus-visible {
  outline-color: rgb(16 31 38 / 0.24);
}

@media (prefers-color-scheme: dark) {
  .theme-system .tab-bar {
    border-color: rgb(255 255 255 / 0.12);
    background: rgb(10 28 35 / 0.62);
    box-shadow:
      inset 0 0 0 1px rgb(255 255 255 / 0.025),
      0 12px 26px rgb(0 0 0 / 0.16);
  }

  .theme-system .tab-item {
    color: var(--secondary);
  }

  .theme-system .tab-item.is-active {
    background: rgb(255 255 255 / 0.07);
    color: var(--primary);
    box-shadow: none;
  }
}

.radar-content,
.settings-content {
  width: min(100%, 720px);
  margin: 0 auto;
}

.radar-panel {
  display: grid;
  gap: 12px;
}

.radar-map-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 821 / 660;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-panel);
  background: rgb(0 0 0 / 0.55);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.025),
    0 18px 42px rgb(0 0 0 / 0.22);
}

.theme-system .radar-map-frame {
  border-color: rgb(16 31 38 / 0.045);
  background: rgb(255 255 255 / 0.72);
  box-shadow: 0 14px 36px rgb(16 31 38 / 0.08);
}

@media (prefers-color-scheme: dark) {
  .theme-system .radar-map-frame {
    border-color: var(--stroke);
    background: rgb(0 0 0 / 0.55);
    box-shadow:
      inset 0 0 0 1px rgb(255 255 255 / 0.025),
      0 18px 42px rgb(0 0 0 / 0.22);
  }
}

.radar-map-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.radar-map-frame.is-cropped {
  aspect-ratio: 570 / 430;
}

.radar-map-frame.is-cropped img {
  position: absolute;
  left: calc(-100% * 155 / 570);
  top: calc(-100% * 110 / 430);
  width: calc(100% * 821 / 570);
  height: auto;
  max-width: none;
}

.radar-map-frame.is-inverted img {
  filter: invert(1) hue-rotate(180deg);
}

.radar-location-dot {
  position: absolute;
  z-index: 2;
  width: 12px;
  height: 12px;
  border: 1px solid rgb(0 0 0 / 0.65);
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgb(255 107 0 / 0.26), 0 0 12px rgb(255 107 0 / 0.75);
  transform: translate(-50%, -50%);
}

.radar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.radar-source {
  margin: 0;
}

.radar-refresh {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--panel);
  color: var(--primary);
  font-size: 13px;
  line-height: 16px;
  font-weight: 700;
}

.theme-system .radar-refresh {
  border-color: rgb(16 31 38 / 0.07);
  background: rgb(255 255 255 / 0.62);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.34),
    0 8px 20px rgb(16 31 38 / 0.08);
}

@media (prefers-color-scheme: dark) {
  .theme-system .radar-refresh {
    border-color: var(--stroke);
    background: var(--panel);
    box-shadow: none;
  }
}

.radar-refresh svg {
  width: 17px;
  height: 17px;
}

.settings-content {
  display: grid;
  gap: 22px;
}

.settings-section {
  display: grid;
  gap: 8px;
}

.settings-section-title {
  margin: 0;
  padding: 0 16px;
  color: var(--secondary);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.settings-panel {
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-panel);
  background: var(--panel);
}

.settings-row {
  display: flex;
  align-items: center;
  min-height: 54px;
  gap: 12px;
  padding: 0 16px;
}

.settings-link-row {
  color: inherit;
  text-decoration: none;
}

.settings-link-row:hover,
.settings-link-row:focus-visible {
  outline: none;
  background: var(--nested);
}

.settings-row-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: var(--settings-icon-color);
}

.settings-row-copy {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 2px;
}

.settings-row-title {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--primary);
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
}

.settings-row-detail {
  overflow: hidden;
  color: var(--secondary);
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-row-chevron {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--secondary);
  opacity: 0.68;
}

.settings-select {
  flex: 0 1 auto;
  max-width: 48%;
  min-height: 34px;
  padding: 5px 28px 5px 10px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: var(--nested);
  color: var(--secondary);
  font: inherit;
  font-size: 14px;
  line-height: 18px;
}

.settings-select option {
  background: rgb(255 255 255);
  color: rgb(16 31 38);
}

.settings-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.settings-toggle input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.settings-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 30px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.20);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.10);
  transition: background 160ms ease;
}

.settings-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: white;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.22);
  transition: transform 160ms ease;
}

.settings-toggle input:checked + .settings-switch {
  background: var(--orange);
}

.settings-toggle input:checked + .settings-switch::after {
  transform: translateX(20px);
}

.settings-divider {
  height: 1px;
  margin-left: 52px;
  background: var(--separator);
}

.settings-error {
  margin: -8px 16px 0;
  color: var(--secondary);
  font-size: 13px;
  line-height: 18px;
}

.city-sheet-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: end center;
  background: rgb(0 0 0 / 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.city-sheet-backdrop[hidden] {
  display: none;
}

.city-sheet-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.city-sheet {
  width: min(100vw, var(--phone-width));
  height: min(calc(100dvh - 10px), 860px);
  max-height: calc(100dvh - 10px);
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  border: 1px solid var(--stroke);
  border-bottom: 0;
  color: var(--primary);
  background:
    linear-gradient(135deg, var(--bg-top) 0%, var(--bg-mid) 48%, var(--bg-bottom) 100%);
  transform: translateY(24px);
  transition: transform 180ms ease;
}

.city-sheet-backdrop.is-open .city-sheet {
  transform: translateY(0);
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(var(--safe-top) + 18px) 20px 8px;
}

.sheet-title {
  margin: 0;
  color: var(--primary);
  font-size: 34px;
  line-height: 41px;
  font-weight: 700;
}

.sheet-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--secondary);
  --symbol-stroke: 2.4;
}

.search-input {
  display: block;
  width: calc(100% - 40px);
  height: 38px;
  margin: 0 20px 12px;
  padding: 0 12px;
  border: 0;
  outline: 0;
  border-radius: 10px;
  color: var(--primary);
  background: var(--picker-search-bg);
}

.search-input::placeholder {
  color: var(--secondary);
}

.city-error {
  width: calc(100% - 40px);
  margin: -2px 20px 12px;
  color: var(--secondary);
  font-size: 13px;
  line-height: 17px;
  font-weight: 500;
}

.city-list-panel {
  margin: 0 20px 22px;
  overflow: hidden;
}

.city-list {
  max-height: calc(min(calc(100dvh - 10px), 860px) - var(--safe-top) - 142px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.city-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  text-align: left;
}

.city-row.is-selected .city-label {
  font-weight: 600;
}

.city-row + .city-row {
  border-top: 1px solid var(--separator);
}

.city-label {
  flex: 1;
  min-width: 0;
  color: var(--primary);
  font-size: 20px;
  line-height: 25px;
  white-space: normal;
}

.city-context {
  display: block;
  margin-top: 3px;
  color: var(--secondary);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}

.city-label-inline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.city-inline-icon {
  width: 22px;
  height: 22px;
  color: var(--primary);
  --symbol-stroke: 2.2;
}

.check-icon {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.selected-check {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-left: auto;
  color: var(--picker-selected-color);
  --symbol-stroke: 3;
}

.location-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgb(255 255 255 / 0.26);
  border-top-color: var(--primary);
  border-radius: 999px;
  animation: location-spin 800ms linear infinite;
}

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

.empty-message {
  padding: 18px 16px;
  color: var(--secondary);
  font-size: 15px;
}

.weather-icon {
  display: block;
  overflow: visible;
}

.weather-icon .cloud {
  fill: var(--weather-cloud, currentColor);
}

.weather-icon .sun-core,
.weather-icon .sun-ray {
  stroke: var(--yellow);
}

.weather-icon .sun-core-fill {
  fill: var(--yellow);
}

.weather-icon .rain {
  stroke: var(--cyan-soft);
}

.ios-symbol {
  fill: none;
  stroke: currentColor;
  stroke-width: var(--symbol-stroke, 2);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shell-app .phone-stage::after {
  display: block;
}

.shell-stage {
  min-height: 100dvh;
}

.shell-nav {
  pointer-events: none;
}

.shell-frame-wrap {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
  padding: calc(var(--safe-top) + 124px) 0 calc(var(--bottom-chrome-height) + var(--bottom-chrome-top-gap));
}

.shell-frame-pager {
  display: flex;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  touch-action: pan-y;
}

.shell-frame-pager::-webkit-scrollbar {
  display: none;
}

.shell-frame-page {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.embedded-weather-frame {
  display: block;
  width: 100%;
  min-height: 640px;
  border: 0;
  background: transparent;
}

.swipe-capture {
  position: absolute;
  z-index: 8;
  top: calc(var(--safe-top) + 124px);
  bottom: calc(var(--safe-bottom) + 44px);
  width: 24px;
  cursor: grab;
  touch-action: pan-y;
}

.swipe-capture-left {
  left: 0;
}

.swipe-capture-right {
  right: 0;
}

.swipe-capture:active {
  cursor: grabbing;
}

@media (min-width: 440px) {
  .bottom-chrome {
    padding-inline: 28px;
  }
}

@media (min-width: 720px) {
  .app-shell.is-centered .phone-stage,
  .app-shell.is-centered .city-sheet {
    box-shadow: 0 28px 80px var(--picker-shadow);
  }

  .app-shell.is-centered .phone-stage {
    min-height: min(100dvh, 932px);
    border-radius: 36px;
  }
}

@media (max-width: 359px) {
  .nav-title,
  .sheet-title {
    font-size: 31px;
    line-height: 38px;
  }

  .location-name {
    font-size: 38px;
    line-height: 45px;
  }

  .metric-tile {
    gap: 8px;
    padding: 10px;
  }
}
