html,
body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f8fafc;
  background: #0f172a;
}

.dashboard {
  max-width: none;
  min-height: 100vh;
  padding: 0;
}

.dashboard main,
.dashboard #map-view,
.dashboard .map-frame,
.dashboard #dash-view {
  min-height: 100vh;
}

.dashboard.dash-view-active #map-view,
.dashboard.map-view-active #dash-view {
  display: none;
}

.map-section {
  margin-top: 0;
}

.comparison-section {
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.map-frame {
  position: relative;
  height: 100vh;
  width: 100%;
}

.dash-section {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr 1fr;
  gap: 10px;
  padding: 10px;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 20% 20%, rgba(30, 64, 175, 0.18), transparent 28%),
    radial-gradient(circle at 80% 70%, rgba(20, 184, 166, 0.12), transparent 28%),
    #020617;
}

.dash-panel {
  position: relative;
  min-height: 0;
}

.dash-home-card-shell {
  height: 100%;
  min-height: 0;
}

.dash-toolbar {
  justify-self: center;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: 8px;
  width: min(100%, 560px);
  min-height: 32px;
  padding: 5px 10px;
  box-sizing: border-box;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px) saturate(1.06);
}

.dash-center-action-slot {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  min-height: 28px;
}

.dash-center-action-button {
  grid-area: 1 / 1;
  min-width: 52px;
  min-height: 28px;
  padding: 0 12px;
  color: #f8fafc;
  font: inherit;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0;
  background: rgba(51, 65, 85, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.22);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, opacity 140ms ease, visibility 140ms ease;
}

.dash-center-action-button:hover,
.dash-center-action-button:focus-visible {
  background: rgba(71, 85, 105, 0.92);
  outline: none;
}

.dash-center-action-button.is-center-action-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.dash-nearby-panel {
  display: grid;
}

.dash-nearby-card-shell {
  min-height: 0;
}

.sort-favorites-open,
.favorite-alias-open {
  overflow: hidden;
}

.sort-favorites-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: start;
  justify-items: center;
  --station-list-top-gap: calc(48px + env(safe-area-inset-top));
  --station-list-bottom-gap: calc(20px + env(safe-area-inset-bottom));
  padding: var(--station-list-top-gap) 12px var(--station-list-bottom-gap);
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(10px);
}

.sort-favorites-backdrop[hidden] {
  display: none;
}

.favorite-alias-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: calc(64px + env(safe-area-inset-top)) 12px calc(24px + env(safe-area-inset-bottom));
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(10px);
}

.favorite-alias-backdrop[hidden] {
  display: none;
}

.favorite-alias-dialog {
  display: grid;
  gap: 12px;
  width: min(380px, calc(100vw - 24px));
  padding: 16px;
  box-sizing: border-box;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.favorite-alias-title {
  margin: 0;
  font-size: 15px;
  font-weight: 660;
  line-height: 1.15;
}

.favorite-alias-original {
  color: rgba(226, 232, 240, 0.68);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.3;
}

.favorite-alias-field {
  display: grid;
  gap: 6px;
  color: rgba(226, 232, 240, 0.68);
  font-size: 12px;
  font-weight: 620;
}

.favorite-alias-input {
  min-height: 38px;
  padding: 7px 10px;
  color: #f8fafc;
  font: inherit;
  font-size: 15px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 10px;
  outline: none;
}

.favorite-alias-input:focus {
  border-color: rgba(125, 211, 252, 0.68);
  box-shadow: 0 0 0 2px rgba(125, 211, 252, 0.18);
}

.favorite-alias-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.favorite-alias-button {
  min-height: 34px;
  padding: 0 13px;
  color: #f8fafc;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  background: rgba(51, 65, 85, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.18);
  border-radius: 999px;
  cursor: pointer;
}

.favorite-alias-save-button {
  color: #0f172a;
  background: rgba(226, 232, 240, 0.92);
  border-color: transparent;
}

.sort-favorites-panel {
  display: grid;
  grid-template-rows: auto minmax(0, auto) minmax(0, 1fr);
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - var(--station-list-top-gap) - var(--station-list-bottom-gap));
  max-height: calc(100dvh - var(--station-list-top-gap) - var(--station-list-bottom-gap));
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.area-table-controls {
  padding: 10px 12px 0;
}

.area-table-parameter-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(226, 232, 240, 0.68);
  font-size: 12px;
  font-weight: 620;
}

.area-table-parameter-select {
  width: min(220px, 68%);
  min-height: 32px;
  padding: 4px 28px 4px 10px;
  color: #f8fafc;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  background: rgba(30, 41, 59, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
}

.sort-favorites-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.sort-favorites-title {
  margin: 0;
  font-size: 15px;
  font-weight: 660;
  line-height: 1.15;
}

.sort-favorites-done-button {
  min-height: 32px;
  padding: 0 14px;
  color: #0f172a;
  font: inherit;
  font-size: 13px;
  font-weight: 720;
  background: rgba(226, 232, 240, 0.92);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.sort-favorites-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  list-style: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.sort-favorites-list.is-reordering {
  user-select: none;
}

.sort-favorites-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) max-content;
  align-items: center;
  column-gap: 8px;
  min-height: 58px;
  color: #f8fafc;
  background: rgba(30, 41, 59, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  transition: transform 140ms ease, opacity 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.sort-favorites-row.is-dragging {
  position: relative;
  z-index: 2;
  opacity: 0.82;
  background: rgba(51, 65, 85, 0.98);
  border-color: rgba(125, 211, 252, 0.72);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42), 0 0 0 2px rgba(125, 211, 252, 0.28);
  transform: scale(1.025);
}

.sort-favorites-row.is-drop-target {
  border-color: rgba(125, 211, 252, 0.58);
  box-shadow: 0 -3px 0 rgba(125, 211, 252, 0.72), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  transform: translateY(3px);
}

.sort-favorites-handle {
  align-self: stretch;
  width: 44px;
  color: rgba(226, 232, 240, 0.82);
  font-size: 22px;
  line-height: 1;
  background: transparent;
  border: 0;
  border-radius: 10px 0 0 10px;
  cursor: grab;
  touch-action: none;
}

.sort-favorites-handle:active {
  cursor: grabbing;
}

.sort-favorites-row-text {
  min-width: 0;
  padding: 9px 0;
}

.sort-favorites-name {
  overflow: hidden;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sort-favorites-name-edit-button {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sort-favorites-name-edit-button:hover,
.sort-favorites-name-edit-button:focus-visible {
  color: rgba(191, 219, 254, 0.98);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.sort-favorites-name-edit-button:focus-visible {
  outline: 2px solid rgba(147, 197, 253, 0.62);
  outline-offset: 2px;
  border-radius: 4px;
}

.sort-favorites-meta {
  margin-top: 3px;
  color: rgba(226, 232, 240, 0.66);
  font-size: 12px;
  font-weight: 540;
  line-height: 1.2;
}

.sort-favorites-row-value {
  min-width: max-content;
  padding: 9px 0;
  color: rgba(248, 250, 252, 0.94);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.1;
  overflow-wrap: normal;
  text-align: right;
  white-space: nowrap;
  word-break: keep-all;
}

.area-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  column-gap: 12px;
  min-height: 58px;
  color: #f8fafc;
  background: rgba(30, 41, 59, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.area-table-row-main {
  min-width: 0;
  padding: 9px 0 9px 12px;
  text-align: left;
}

.area-table-name {
  overflow: hidden;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.area-table-meta {
  margin-top: 3px;
  color: rgba(226, 232, 240, 0.66);
  font-size: 12px;
  font-weight: 540;
  line-height: 1.2;
}

.area-table-value {
  min-width: max-content;
  padding: 9px 12px 9px 0;
  color: rgba(248, 250, 252, 0.94);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.1;
  overflow-wrap: normal;
  text-align: right;
  white-space: nowrap;
  word-break: keep-all;
}

.area-table-empty {
  padding: 20px 14px;
  color: rgba(226, 232, 240, 0.68);
  font-size: 13px;
  font-weight: 560;
  text-align: center;
}

.station-dash-card {
  position: relative;
  container-type: inline-size;
  --dash-card-width: 500px;
  --dash-card-height: 500px;
  --dash-card-min: 500px;
  --dash-card-header-side-clearance: 0px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
  padding: clamp(14px, 3%, 24px);
  color: #e5e7eb;
  text-align: center;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.station-dash-card-is-lower.station-dash-card-has-location-action {
  --dash-card-header-side-clearance: clamp(56px, calc(var(--dash-card-width, 500px) * 0.14), 88px);
}

.dash-home-panel .station-dash-card {
  border-color: rgba(191, 219, 254, 0.34);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(96, 165, 250, 0.06) inset;
}

.dash-parameter-stepper {
  position: absolute;
  top: 50%;
  right: clamp(12px, calc(var(--dash-card-width, 500px) * 0.08), 54px);
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 4px;
  color: rgba(226, 232, 240, 0.78);
  transform: translateY(-50%);
}

.dash-parameter-stepper-button {
  width: 30px;
  height: 26px;
  color: inherit;
  font-size: 17px;
  line-height: 1;
  background: rgba(15, 23, 42, 0.54);
  border: 1px solid rgba(226, 232, 240, 0.18);
  border-radius: 999px;
  cursor: pointer;
}

.dash-card-header {
  position: relative;
  display: block;
  min-height: clamp(36px, calc(var(--dash-card-min, 500px) * 0.075), 48px);
  text-align: center;
}

.dash-card-title-block {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  text-align: center;
}

.station-dash-card-is-lower .dash-card-title-block {
  padding-inline: var(--dash-card-header-side-clearance);
}

.dash-parameter-stepper-label {
  width: clamp(36px, calc(var(--dash-card-min, 500px) * 0.084), 44px);
  height: clamp(36px, calc(var(--dash-card-min, 500px) * 0.084), 44px);
  color: #f8fafc;
  line-height: 1;
  background: rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(226, 232, 240, 0.22);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.26), 0 0 18px rgba(34, 211, 238, 0.08);
}

.dash-parameter-icon-button {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  min-width: 0;
  padding: 0;
}

.dash-stepper-icon {
  display: block;
  width: 70%;
  height: 70%;
  overflow: visible;
}

.dash-stepper-icon-highlight {
  fill: rgba(248, 250, 252, 0.18);
  stroke: rgba(248, 250, 252, 0.52);
  stroke-width: 1.2;
}

.dash-stepper-icon-shine {
  fill: none;
  stroke: rgba(255, 255, 255, 0.72);
  stroke-linecap: round;
  stroke-width: 1.4;
}

.dash-stepper-icon-temp-stem,
.dash-stepper-icon-temp-bulb {
  fill: #ef4444;
}

.dash-stepper-icon-humidity-drop {
  fill: #22d3ee;
  stroke: rgba(240, 249, 255, 0.52);
  stroke-width: 1.2;
}

.dash-stepper-icon-pressure-dial {
  fill: none;
  stroke: rgba(241, 245, 249, 0.86);
  stroke-linecap: round;
  stroke-width: 2.4;
}

.dash-stepper-icon-pressure-ticks {
  fill: none;
  stroke: rgba(148, 163, 184, 0.9);
  stroke-linecap: round;
  stroke-width: 1.5;
}

.dash-stepper-icon-pressure-needle {
  fill: none;
  stroke: #fbbf24;
  stroke-linecap: round;
  stroke-width: 2.3;
}

.dash-stepper-icon-pressure-hub {
  fill: #22d3ee;
  stroke: rgba(248, 250, 252, 0.72);
  stroke-width: 0.9;
}

.dash-stepper-icon-wind-stroke {
  fill: none;
  stroke: rgba(248, 250, 252, 0.92);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.dash-stepper-icon-wind-stroke-accent {
  stroke: rgba(125, 211, 252, 0.92);
}

.dash-stepper-icon-uv-core {
  fill: #fbbf24;
  stroke: rgba(254, 243, 199, 0.86);
  stroke-width: 1.1;
}

.dash-stepper-icon-uv-rays {
  fill: none;
  stroke: #fb923c;
  stroke-linecap: round;
  stroke-width: 2.2;
}

.dash-stepper-icon-rain-cloud {
  fill: rgba(241, 245, 249, 0.9);
  stroke: rgba(203, 213, 225, 0.78);
  stroke-linejoin: round;
  stroke-width: 1;
}

.dash-stepper-icon-rain-drop {
  fill: none;
  stroke: #38bdf8;
  stroke-linecap: round;
  stroke-width: 2.1;
}

.dash-stepper-icon-lightning-bolt {
  fill: #facc15;
  stroke: rgba(254, 243, 199, 0.9);
  stroke-linejoin: round;
  stroke-width: 1;
}

.dash-card-eyebrow {
  margin-bottom: 4px;
  color: rgba(226, 232, 240, 0.58);
  font-size: clamp(10px, calc(var(--dash-card-min, 500px) * 0.018), 14px);
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.app-version {
  margin-left: 5px;
  font-size: 0.7em;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.68;
  text-transform: none;
}

.app-update-link {
  margin-left: 4px;
  color: inherit;
  font-size: 0.7em;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.76;
  text-decoration: underline;
  text-transform: none;
  cursor: pointer;
}

.app-update-link[hidden] {
  display: none;
}

.dash-card-title {
  width: 100%;
  max-width: min(76%, 520px);
  margin: 0 auto;
  color: #f8fafc;
  font-size: clamp(16px, calc(var(--dash-card-min, 500px) * 0.039), 28px);
  font-weight: 620;
  line-height: 1.12;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.station-dash-card-is-lower .dash-card-title {
  margin-bottom: 4px;
}

.station-dash-card-is-home .dash-card-title {
  margin-bottom: 4px;
}

.station-dash-card-is-home .dash-card-eyebrow {
  margin-bottom: 0;
}

.station-dash-card-is-lower .dash-card-title,
.station-dash-card-is-lower .dash-card-eyebrow {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-inline: 0;
  text-align: center;
}

.station-dash-card-is-lower .dash-card-eyebrow {
  margin-bottom: 0;
}

.dash-card-title-is-editable {
  cursor: pointer;
}

.dash-card-title-edit-button {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.dash-card-title-edit-button:hover,
.dash-card-title-edit-button:focus-visible {
  color: #e0f2fe;
  text-decoration: underline;
  text-underline-offset: 4px;
  outline: none;
}

.dash-card-map-button,
.dash-card-unit-button {
  position: absolute;
  top: clamp(8px, calc(var(--dash-card-height, 500px) * 0.018), 14px);
  z-index: 5;
  padding: 4px 9px;
  min-width: 44px;
  color: rgba(226, 232, 240, 0.76);
  font: inherit;
  font-size: clamp(10px, calc(var(--dash-card-min, 500px) * 0.019), 12px);
  font-weight: 650;
  line-height: 1.1;
  background: rgba(15, 23, 42, 0.36);
  border: 1px solid rgba(226, 232, 240, 0.14);
  border-radius: 999px;
  cursor: pointer;
}

.dash-card-map-button {
  right: clamp(8px, calc(var(--dash-card-width, 500px) * 0.018), 14px);
}

.dash-card-unit-button {
  left: clamp(8px, calc(var(--dash-card-width, 500px) * 0.018), 14px);
}

.dash-card-map-button:hover,
.dash-card-map-button:focus-visible,
.dash-card-unit-button:hover,
.dash-card-unit-button:focus-visible {
  color: #e0f2fe;
  border-color: rgba(125, 211, 252, 0.46);
  outline: none;
}

.dash-card-center {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: clamp(10px, calc(var(--dash-card-min, 500px) * 0.024), 24px);
  width: min(calc(var(--dash-card-width, 500px) * 0.72), calc(var(--dash-card-height, 500px) * 0.72));
  transform: translate(-50%, -50%);
}

.dash-temp-gauge,
.dash-wind-gauge {
  --dash-gauge-endpoint-y: 85.36%;
  --dash-gauge-endpoint-x: 14.64%;
  --dash-gauge-endpoint-label-gap: clamp(6px, calc(var(--dash-card-min, 500px) * 0.018), 14px);
  position: relative;
  width: clamp(220px, calc(var(--dash-card-min, 500px) * 0.58), 520px);
  aspect-ratio: 1;
}

.dash-wind-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(15, 23, 42, 0.26) 0 42%, transparent 43%),
    conic-gradient(from 0deg, rgba(34, 211, 238, 0.18), rgba(148, 163, 184, 0.42), rgba(34, 211, 238, 0.18));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
}

.dash-wind-marker {
  position: absolute;
  inset: 5%;
  transform: rotate(var(--wind-direction, 0deg));
  transform-origin: center;
}

.dash-wind-marker::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: clamp(12px, calc(var(--dash-card-min, 500px) * 0.038), 28px);
  height: clamp(16px, calc(var(--dash-card-min, 500px) * 0.052), 38px);
  background: linear-gradient(to bottom, #67e8f9, rgba(34, 211, 238, 0.38));
  clip-path: polygon(50% 0, 100% 100%, 50% 76%, 0 100%);
  transform: translateX(-50%);
}

.dash-wind-center {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  color: #ffffff;
  line-height: 1;
}

.dash-wind-speed {
  font-size: clamp(42px, calc(var(--dash-card-min, 500px) * 0.12), 104px);
  font-weight: 540;
}

.dash-wind-unit-direction,
.dash-wind-range {
  color: rgba(226, 232, 240, 0.78);
  font-weight: 560;
}

.dash-wind-unit-direction {
  margin-top: 6px;
  font-size: clamp(18px, calc(var(--dash-card-min, 500px) * 0.042), 40px);
}

.dash-wind-range {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-top: 14px;
  color: rgba(226, 232, 240, 0.66);
  font-size: clamp(14px, calc(var(--dash-card-min, 500px) * 0.03), 26px);
  font-weight: 500;
  line-height: 1.2;
}

.dash-wind-range-arrow {
  margin: 0 0.46em;
  opacity: 0.78;
}

.dash-wind-gauge-unavailable .dash-wind-ring,
.dash-wind-gauge-unavailable .dash-wind-marker {
  opacity: 0.38;
}

.dash-temp-arc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 225deg,
    rgba(125, 211, 252, 0.16) 0deg,
    rgba(125, 211, 252, 0.58) 42deg,
    rgba(125, 211, 252, 0.42) 270deg,
    transparent 270deg,
    transparent 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  pointer-events: none;
}

.dash-gauge-pointer {
  position: absolute;
  inset: 3%;
  z-index: 1;
  transform: rotate(var(--dash-gauge-pointer-angle, 225deg));
  transform-origin: 50% 50%;
  pointer-events: none;
}

.dash-gauge-pointer-standard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  background: linear-gradient(to bottom, rgba(224, 242, 254, 0.98), rgba(34, 211, 238, 0.78));
  filter:
    drop-shadow(0 0 2px rgba(8, 47, 73, 0.5))
    drop-shadow(0 0 7px rgba(125, 211, 252, 0.48));
  transform: translate(-50%, -4%);
}

.dash-gauge-pointer-temperature::before {
  width: clamp(7px, calc(var(--dash-card-min, 500px) * 0.016), 12px);
  height: clamp(20px, calc(var(--dash-card-min, 500px) * 0.042), 34px);
  border: 1px solid rgba(224, 242, 254, 0.5);
  border-radius: 999px;
  clip-path: polygon(50% 0, 70% 10%, 70% 76%, 30% 76%, 30% 10%);
}

.dash-gauge-pointer-temperature::after {
  content: "";
  position: absolute;
  top: clamp(16px, calc(var(--dash-card-min, 500px) * 0.034), 27px);
  left: 50%;
  width: clamp(7px, calc(var(--dash-card-min, 500px) * 0.017), 13px);
  height: clamp(7px, calc(var(--dash-card-min, 500px) * 0.017), 13px);
  background: radial-gradient(circle at 50% 48%, rgba(224, 242, 254, 0.98), rgba(34, 211, 238, 0.82));
  border: 1px solid rgba(224, 242, 254, 0.58);
  border-radius: 50%;
  filter:
    drop-shadow(0 0 2px rgba(8, 47, 73, 0.48))
    drop-shadow(0 0 6px rgba(125, 211, 252, 0.42));
  transform: translate(-50%, 0);
}

.dash-gauge-pointer-humidity::before {
  width: clamp(10px, calc(var(--dash-card-min, 500px) * 0.023), 18px);
  height: clamp(17px, calc(var(--dash-card-min, 500px) * 0.038), 30px);
  opacity: 0.93;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 28 42' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 1.7C20.4 10.2 24.5 17.8 24.5 26.2C24.5 35.1 20.2 40.3 14 40.3C7.8 40.3 3.5 35.1 3.5 26.2C3.5 17.8 7.6 10.2 14 1.7Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 28 42' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 1.7C20.4 10.2 24.5 17.8 24.5 26.2C24.5 35.1 20.2 40.3 14 40.3C7.8 40.3 3.5 35.1 3.5 26.2C3.5 17.8 7.6 10.2 14 1.7Z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.dash-gauge-pointer-pressure::before {
  width: clamp(10px, calc(var(--dash-card-min, 500px) * 0.024), 18px);
  height: clamp(15px, calc(var(--dash-card-min, 500px) * 0.034), 27px);
  clip-path: polygon(50% 0, 88% 72%, 50% 54%, 12% 72%);
}

.dash-gauge-pointer-pressure::after {
  content: "";
  position: absolute;
  top: clamp(10px, calc(var(--dash-card-min, 500px) * 0.024), 19px);
  left: 50%;
  width: clamp(2px, calc(var(--dash-card-min, 500px) * 0.006), 4px);
  height: clamp(9px, calc(var(--dash-card-min, 500px) * 0.022), 17px);
  background: linear-gradient(to bottom, rgba(34, 211, 238, 0.78), rgba(125, 211, 252, 0.34));
  border-radius: 999px;
  filter: drop-shadow(0 0 4px rgba(125, 211, 252, 0.42));
  transform: translate(-50%, 0);
}

.dash-gauge-pointer-uv::before {
  top: clamp(3px, calc(var(--dash-card-min, 500px) * 0.009), 8px);
  width: clamp(18px, calc(var(--dash-card-min, 500px) * 0.039), 31px);
  height: clamp(18px, calc(var(--dash-card-min, 500px) * 0.039), 31px);
  clip-path: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='black'%3E%3Ccircle cx='24' cy='24' r='8.4'/%3E%3Crect x='22' y='2' width='4' height='10' rx='2'/%3E%3Crect x='22' y='36' width='4' height='10' rx='2'/%3E%3Crect x='36' y='22' width='10' height='4' rx='2'/%3E%3Crect x='2' y='22' width='10' height='4' rx='2'/%3E%3Crect x='32.5' y='7.5' width='4' height='10' rx='2' transform='rotate(45 34.5 12.5)'/%3E%3Crect x='11.5' y='30.5' width='4' height='10' rx='2' transform='rotate(45 13.5 35.5)'/%3E%3Crect x='32.5' y='30.5' width='4' height='10' rx='2' transform='rotate(135 34.5 35.5)'/%3E%3Crect x='11.5' y='7.5' width='4' height='10' rx='2' transform='rotate(135 13.5 12.5)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='black'%3E%3Ccircle cx='24' cy='24' r='8.4'/%3E%3Crect x='22' y='2' width='4' height='10' rx='2'/%3E%3Crect x='22' y='36' width='4' height='10' rx='2'/%3E%3Crect x='36' y='22' width='10' height='4' rx='2'/%3E%3Crect x='2' y='22' width='10' height='4' rx='2'/%3E%3Crect x='32.5' y='7.5' width='4' height='10' rx='2' transform='rotate(45 34.5 12.5)'/%3E%3Crect x='11.5' y='30.5' width='4' height='10' rx='2' transform='rotate(45 13.5 35.5)'/%3E%3Crect x='32.5' y='30.5' width='4' height='10' rx='2' transform='rotate(135 34.5 35.5)'/%3E%3Crect x='11.5' y='7.5' width='4' height='10' rx='2' transform='rotate(135 13.5 12.5)'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

.dash-gauge-pointer-uv::after {
  content: none;
}

.dash-temp-value {
  position: absolute;
  inset: 0;
  z-index: 2;
  color: #ffffff;
  line-height: 1;
}

.dash-temp-local-time {
  position: absolute;
  top: 29%;
  left: 50%;
  width: max-content;
  max-width: 72%;
  color: rgba(226, 232, 240, 0.72);
  font-size: clamp(13px, calc(var(--dash-card-min, 500px) * 0.024), 20px);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  transform: translate(-50%, -50%);
}

.dash-temp-number {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: clamp(42px, calc(var(--dash-card-min, 500px) * 0.13), 112px);
  font-weight: 520;
  transform: translate(-50%, -58%);
}

.dash-temp-unit {
  position: absolute;
  top: 87%;
  left: 50%;
  color: rgba(226, 232, 240, 0.76);
  font-size: clamp(26px, calc(var(--dash-card-min, 500px) * 0.06), 56px);
  font-weight: 600;
  line-height: 0.9;
  transform: translateX(-50%);
}

.dash-humidity-gauge .dash-temp-unit {
  font-size: clamp(22px, calc(var(--dash-card-min, 500px) * 0.048), 44px);
}

.dash-pressure-gauge .dash-temp-number {
  font-size: clamp(38px, calc(var(--dash-card-min, 500px) * 0.1), 88px);
}

.dash-pressure-gauge .dash-temp-unit {
  font-size: clamp(22px, calc(var(--dash-card-min, 500px) * 0.048), 44px);
}

.dash-uv-gauge .dash-temp-unit {
  font-size: clamp(20px, calc(var(--dash-card-min, 500px) * 0.044), 40px);
}

.dash-rain-gauge .dash-temp-number {
  font-size: clamp(38px, calc(var(--dash-card-min, 500px) * 0.1), 88px);
}

.dash-rain-gauge .dash-temp-unit {
  font-size: clamp(22px, calc(var(--dash-card-min, 500px) * 0.048), 44px);
}

.dash-lightning-gauge .dash-temp-number {
  font-size: clamp(38px, calc(var(--dash-card-min, 500px) * 0.1), 88px);
}

.dash-lightning-gauge .dash-temp-unit {
  font-size: clamp(22px, calc(var(--dash-card-min, 500px) * 0.048), 44px);
}

.dash-pressure-trend {
  position: absolute;
  top: 29%;
  left: 50%;
  width: max-content;
  max-width: 72%;
  color: rgba(226, 232, 240, 0.72);
  font-size: clamp(12px, calc(var(--dash-card-min, 500px) * 0.022), 18px);
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  transform: translate(-50%, -50%);
}

.dash-uv-risk {
  position: absolute;
  top: 29%;
  left: 50%;
  width: max-content;
  max-width: 72%;
  color: rgba(226, 232, 240, 0.72);
  font-size: clamp(12px, calc(var(--dash-card-min, 500px) * 0.022), 18px);
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  transform: translate(-50%, -50%);
}

.dash-rain-label {
  position: absolute;
  top: 29%;
  left: 50%;
  width: max-content;
  max-width: 72%;
  color: rgba(226, 232, 240, 0.72);
  font-size: clamp(12px, calc(var(--dash-card-min, 500px) * 0.022), 18px);
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  transform: translate(-50%, -50%);
}

.dash-lightning-age {
  position: absolute;
  top: 29%;
  left: 50%;
  width: max-content;
  max-width: 76%;
  color: rgba(226, 232, 240, 0.72);
  font-size: clamp(12px, calc(var(--dash-card-min, 500px) * 0.022), 18px);
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  transform: translate(-50%, -50%);
}

.dash-rain-pointer {
  position: absolute;
  inset: 4%;
  transform: rotate(var(--rain-pointer-angle, 225deg));
  transform-origin: 50% 50%;
  pointer-events: none;
}

.dash-rain-pointer-drop {
  position: absolute;
  top: 0;
  left: 50%;
  width: clamp(14px, calc(var(--dash-card-min, 500px) * 0.034), 26px);
  height: auto;
  overflow: visible;
  fill: rgba(147, 229, 252, 0.98);
  stroke: rgba(224, 242, 254, 0.76);
  stroke-width: 1.35;
  paint-order: stroke fill;
  filter:
    drop-shadow(0 0 2px rgba(8, 47, 73, 0.5))
    drop-shadow(0 0 8px rgba(125, 211, 252, 0.6));
  transform: translate(-50%, -22%);
}

.dash-lightning-pointer {
  position: absolute;
  inset: 4%;
  transform: rotate(var(--lightning-pointer-angle, 225deg));
  transform-origin: 50% 50%;
  pointer-events: none;
}

.dash-lightning-pointer-bolt {
  position: absolute;
  top: 0;
  left: 50%;
  width: clamp(13px, calc(var(--dash-card-min, 500px) * 0.032), 25px);
  height: auto;
  overflow: visible;
  fill: rgba(147, 229, 252, 0.98);
  stroke: rgba(224, 242, 254, 0.78);
  stroke-width: 1.2;
  stroke-linejoin: round;
  paint-order: stroke fill;
  filter:
    drop-shadow(0 0 2px rgba(8, 47, 73, 0.55))
    drop-shadow(0 0 8px rgba(125, 211, 252, 0.58));
  transform: translate(-50%, -18%);
}

.dash-lightning-gauge-unavailable .dash-temp-arc {
  opacity: 0.48;
}

.dash-temp-range {
  position: absolute;
  max-width: min(30%, calc(var(--dash-card-width, 500px) * 0.22));
  color: rgba(226, 232, 240, 0.82);
  font-size: clamp(16px, calc(var(--dash-card-min, 500px) * 0.036), 32px);
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.dash-temp-range-min {
  top: var(--dash-gauge-endpoint-y);
  right: calc(100% - var(--dash-gauge-endpoint-x) + var(--dash-gauge-endpoint-label-gap));
  text-align: right;
  transform: translateY(-50%);
}

.dash-temp-range-max {
  top: var(--dash-gauge-endpoint-y);
  left: calc(100% - var(--dash-gauge-endpoint-x) + var(--dash-gauge-endpoint-label-gap));
  text-align: left;
  transform: translateY(-50%);
}

.dash-uv-range-min,
.dash-rain-range-min {
  min-width: 1px;
}

.dash-lightning-range-min,
.dash-lightning-range-max {
  font-size: clamp(12px, calc(var(--dash-card-min, 500px) * 0.024), 18px);
}

.dash-feels-like {
  width: max-content;
  max-width: 180%;
  margin-top: 0;
  color: rgba(226, 232, 240, 0.72);
  font-size: clamp(13px, calc(var(--dash-card-min, 500px) * 0.024), 20px);
  line-height: 1.2;
}

.station-dash-card-has-remove .dash-card-center {
  padding-bottom: clamp(20px, calc(var(--dash-card-min, 500px) * 0.05), 34px);
}

.station-dash-card-has-remove .dash-feels-like {
  max-width: min(150%, calc(var(--dash-card-width, 500px) - 72px));
  margin-bottom: clamp(18px, calc(var(--dash-card-min, 500px) * 0.04), 28px);
}

.dash-card-module {
  position: absolute;
  display: grid;
  place-items: center;
  width: min(38%, calc(var(--dash-card-width, 500px) * 0.42));
  color: #e5e7eb;
  font-size: clamp(16px, calc(var(--dash-card-min, 500px) * 0.038), 28px);
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
}

.dash-card-module-top-left,
.dash-card-module-bottom-left {
  left: clamp(10px, calc(var(--dash-card-width, 500px) * 0.02), 24px);
}

.dash-card-module-top-right,
.dash-card-module-bottom-right {
  right: clamp(10px, calc(var(--dash-card-width, 500px) * 0.02), 24px);
}

.dash-card-module-top-left,
.dash-card-module-top-right {
  top: max(14%, 46px);
  transform: translateY(-50%);
}

.dash-card-module-bottom-left,
.dash-card-module-bottom-right {
  bottom: max(12%, 58px);
  transform: translateY(50%);
}

.dash-card-module-bottom-right {
  gap: 2px;
  font-size: clamp(17px, calc(var(--dash-card-min, 500px) * 0.042), 30px);
}

.dash-lightning-bolt {
  color: rgba(250, 204, 21, 0.8);
  font-size: 19px;
  line-height: 1;
}

.dash-remove-favorite-button {
  position: absolute;
  bottom: clamp(8px, calc(var(--dash-card-height, 500px) * 0.018), 14px);
  left: 50%;
  z-index: 4;
  padding: 5px 10px;
  color: rgba(226, 232, 240, 0.72);
  font: inherit;
  font-size: clamp(10px, calc(var(--dash-card-min, 500px) * 0.02), 12px);
  font-weight: 650;
  line-height: 1;
  background: rgba(15, 23, 42, 0.54);
  border: 1px solid rgba(226, 232, 240, 0.16);
  border-radius: 999px;
  cursor: pointer;
  transform: translateX(-50%);
}

.dash-remove-favorite-button:hover,
.dash-remove-favorite-button:focus-visible {
  color: #f8fafc;
  border-color: rgba(226, 232, 240, 0.28);
}

.dash-card-brand-version {
  position: absolute;
  bottom: clamp(10px, calc(var(--dash-card-height, 500px) * 0.025), 18px);
  left: 50%;
  color: rgba(226, 232, 240, 0.46);
  font-size: clamp(10px, calc(var(--dash-card-min, 500px) * 0.02), 12px);
  font-weight: 650;
  line-height: 1;
  pointer-events: none;
  transform: translateX(-50%);
}

.dash-app-update-link {
  margin-left: 4px;
  font-size: 1em;
  font-weight: 650;
  pointer-events: auto;
}

.dash-app-update-link[hidden] {
  display: none;
}

.station-dash-card-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
}

.dash-placeholder-text {
  max-width: 360px;
  color: rgba(226, 232, 240, 0.68);
  font-size: 14px;
  line-height: 1.4;
}

.dash-nav-button {
  position: absolute;
  z-index: 5;
  width: 44px;
  height: 44px;
  color: #f8fafc;
  font-size: 0;
  line-height: 1;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(226, 232, 240, 0.22);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.dash-nav-button::before {
  font-size: 26px;
  line-height: 1;
}

.dash-nav-prev::before {
  content: "‹";
}

.dash-nav-next::before {
  content: "›";
}

.dash-nav-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.dash-nav-prev {
  top: 50%;
  right: auto;
  bottom: auto;
  left: 12px;
  transform: translateY(-50%);
}

.dash-nav-next {
  top: 50%;
  right: 12px;
  bottom: auto;
  left: auto;
  transform: translateY(-50%);
}

#station-map {
  height: 100%;
  width: 100%;
}

.map-overlay {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  max-width: calc(100vw - 24px);
  pointer-events: none;
}

.app-header {
  z-index: 1000;
  display: block;
  align-items: center;
  justify-content: center;
  padding: 7px 10px 6px;
  box-sizing: border-box;
  color: #172033;
  background: rgba(245, 248, 252, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 16px;
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.09);
  backdrop-filter: blur(22px) saturate(1.08);
  width: max-content;
  max-width: calc(100vw - 24px);
  pointer-events: auto;
}

.control-row,
.map-control-grid {
  display: grid;
  width: 100%;
}

.map-control-grid {
  grid-template-columns: max-content minmax(140px, 176px) max-content;
  grid-template-areas:
    "view parameter units"
    "brand brand brand";
  align-items: center;
  column-gap: 8px;
  row-gap: 4px;
}

.map-control-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.map-control-zone-view {
  grid-area: view;
}

.map-control-zone-parameter {
  grid-area: parameter;
  gap: 6px;
}

.map-control-zone-units {
  grid-area: units;
}

.map-control-zone-parameter .parameter-control {
  flex: 0 1 176px;
  width: min(176px, 100%);
  min-width: 0;
}

.control-row-primary {
  grid-template-columns: minmax(128px, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.control-row-switches {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.control-half {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.parameter-control {
  display: inline-flex;
  align-items: center;
}

.parameter-select {
  color: #0f172a;
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  width: 100%;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 8px;
  padding: 2px 3px 2px 5px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.46) inset;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, background 0.15s ease-in-out;
}

.parameter-select:hover {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(15, 23, 42, 0.28);
}

.parameter-select:focus {
  outline: 2px solid rgba(71, 85, 105, 0.28);
  outline-offset: 2px;
}

.unit-toggle,
.mode-toggle,
.source-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(51, 65, 85, 0.78);
  font-size: 12px;
  font-weight: 660;
  user-select: none;
  cursor: pointer;
  white-space: nowrap;
}

.mode-toggle:not(:has(input:checked)) span:first-child,
.mode-toggle:has(input:checked) span:last-child {
  color: #0f172a;
  font-weight: 760;
}

.dash-toolbar .mode-toggle:not(:has(input:checked)) span:first-child,
.dash-toolbar .mode-toggle:has(input:checked) span:last-child {
  color: #f8fafc;
  font-weight: 760;
}

.mode-toggle:has(input:checked) span:first-child {
  color: rgba(51, 65, 85, 0.78);
  font-weight: 660;
}

.dash-toolbar .mode-toggle:has(input:checked) span:first-child {
  color: rgba(226, 232, 240, 0.9);
  font-weight: 680;
}

.source-toggle:not(:has(input:checked)) span:first-child,
.source-toggle:has(input:checked) span:last-child {
  color: #f8fafc;
  font-weight: 760;
}

.source-toggle:has(input:checked) span:first-child,
.source-toggle:not(:has(input:checked)) span:last-child {
  color: rgba(226, 232, 240, 0.9);
  font-weight: 680;
}

.unit-toggle span:first-child,
.unit-toggle:has(input:checked) span:last-child {
  color: #0f172a;
  font-weight: 760;
}

.unit-toggle span:last-child,
.unit-toggle:has(input:checked) span:first-child {
  color: rgba(51, 65, 85, 0.78);
  font-weight: 660;
}

.dash-toolbar .unit-toggle span:first-child,
.dash-toolbar .unit-toggle:has(input:checked) span:last-child {
  color: #f8fafc;
  font-weight: 760;
}

.dash-toolbar .unit-toggle span:last-child,
.dash-toolbar .unit-toggle:has(input:checked) span:first-child {
  color: rgba(226, 232, 240, 0.9);
  font-weight: 680;
}

.unit-toggle input,
.mode-toggle input,
.source-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.unit-track {
  position: relative;
  width: 42px;
  height: 22px;
  background: rgba(148, 163, 184, 0.45);
  border: 1px solid rgba(71, 85, 105, 0.18);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.14) inset;
  transition: background 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.unit-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border: 1px solid rgba(100, 116, 139, 0.2);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.22);
  transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.unit-toggle:hover .unit-track,
.mode-toggle:hover .unit-track,
.source-toggle:hover .unit-track {
  background: rgba(148, 163, 184, 0.55);
}

.unit-toggle input:checked + .unit-track .unit-thumb,
.mode-toggle input:checked + .unit-track .unit-thumb,
.source-toggle input:checked + .unit-track .unit-thumb {
  transform: translateX(20px);
}

.unit-toggle input:checked + .unit-track,
.mode-toggle input:checked + .unit-track,
.source-toggle input:checked + .unit-track {
  background: rgba(71, 85, 105, 0.85);
  border-color: rgba(71, 85, 105, 0.42);
}

.unit-toggle:focus-within .unit-track,
.mode-toggle:focus-within .unit-track,
.source-toggle:focus-within .unit-track {
  outline: 2px solid rgba(71, 85, 105, 0.3);
  outline-offset: 2px;
}

.source-toggle {
  color: rgba(226, 232, 240, 0.9);
}

.map-overlay-brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  color: rgba(23, 32, 51, 0.56);
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

@media (orientation: landscape) {
  .dash-section {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
  }

  .dash-toolbar {
    grid-column: 1 / -1;
  }

  .dash-home-panel .dash-parameter-stepper {
    right: auto;
    left: clamp(12px, calc(var(--dash-card-width, 500px) * 0.08), 54px);
    transform-origin: center left;
  }

  .parameter-select {
    min-width: 132px;
  }
}

@media (max-width: 768px) {
  .leaflet-bottom.leaflet-left {
    bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    left: calc(10px + env(safe-area-inset-left, 0px));
  }
}

@media (hover: none), (pointer: coarse) {
  .leaflet-bottom.leaflet-left {
    bottom: calc(30px + env(safe-area-inset-bottom, 0px));
    left: calc(10px + env(safe-area-inset-left, 0px));
  }
}

@media (max-width: 430px) {
  .map-overlay {
    width: calc(100vw - 20px);
    max-width: none;
  }

  .app-header {
    width: 100%;
    max-width: none;
    padding: 8px;
  }

  .map-control-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "view units"
      "parameter brand";
    row-gap: 8px;
    column-gap: 8px;
    align-items: stretch;
  }

  .map-control-zone,
  .map-overlay-brand {
    min-height: 28px;
    align-items: center;
    justify-content: center;
  }

  .map-control-zone-parameter {
    justify-content: center;
  }

  .map-control-zone-parameter .parameter-control {
    flex: 1 1 auto;
    width: 100%;
  }

  .map-control-zone-view {
    justify-content: center;
    padding-left: 0;
  }

  .map-control-zone-units {
    justify-content: center;
    padding-right: 0;
  }

  .parameter-select {
    padding-right: 3px;
  }

  .map-control-grid .mode-toggle,
  .map-control-grid .unit-toggle {
    gap: 5px;
    font-size: 11px;
  }

  .dash-card-module {
    width: 34%;
  }

  .dash-parameter-stepper {
    right: 8px;
    transform: translateY(-50%) scale(0.9);
    transform-origin: center right;
  }

  .dash-parameter-stepper-label {
    width: 38px;
    height: 38px;
  }

  .dash-card-module-top-left,
  .dash-card-module-bottom-left {
    left: 2.5%;
  }

  .dash-card-module-top-right,
  .dash-card-module-bottom-right {
    right: 2.5%;
  }
}

@media (max-width: 768px), (max-height: 520px) {
  .dash-parameter-control {
    display: none;
  }

  .dash-card-module-top-left,
  .dash-card-module-top-right,
  .dash-card-module-bottom-left,
  .dash-card-module-bottom-right {
    display: none;
  }

  .station-dash-card {
    padding: 10px 12px;
  }

  .dash-card-eyebrow {
    margin-bottom: 2px;
    font-size: clamp(11px, calc(var(--dash-card-min, 500px) * 0.022), 15px);
    line-height: 1;
  }

  .dash-card-title {
    max-width: min(72%, 360px);
    font-size: clamp(18px, calc(var(--dash-card-min, 500px) * 0.043), 28px);
    font-weight: 500;
    line-height: 1.08;
  }

  .station-dash-card-is-lower .dash-card-title {
    max-width: 100%;
  }

  .dash-card-map-button,
  .dash-card-unit-button {
    top: 10px;
    min-width: 38px;
    min-height: 28px;
    padding: 5px 9px;
  }

  .dash-card-map-button {
    right: 12px;
  }

  .dash-card-unit-button {
    left: 12px;
  }

  .dash-card-center {
    gap: 8px;
    width: min(calc(var(--dash-card-width, 500px) * 0.66), calc(var(--dash-card-height, 500px) * 0.66));
  }

  .dash-temp-gauge,
  .dash-wind-gauge {
    width: clamp(190px, calc(var(--dash-card-min, 500px) * 0.50), 420px);
  }

  .dash-parameter-stepper {
    right: 10px;
    left: auto;
    transform: translateY(-50%) scale(0.86);
    transform-origin: center right;
  }

  .dash-parameter-stepper-label {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 768px) and (orientation: portrait) {
  .dash-card-center {
    top: 56%;
  }
}

@media (min-width: 431px) and (max-width: 768px) and (orientation: portrait) {
  .dash-temp-gauge,
  .dash-wind-gauge {
    width: clamp(220px, calc(var(--dash-card-min, 500px) * 0.54), 440px);
  }
}

@media ((max-width: 768px) and (orientation: landscape)), ((max-height: 520px) and (orientation: landscape)) {
  .dash-card-center {
    top: 56%;
  }

  .dash-home-panel .dash-parameter-stepper {
    right: auto;
    left: 10px;
    transform-origin: center left;
  }
}

@media (max-width: 430px) and (orientation: portrait) {
  .dash-toolbar {
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
    padding-inline: 8px;
  }

  .dash-center-action-slot {
    width: 54px;
  }

  .dash-center-action-button {
    min-width: 46px;
    padding-inline: 9px;
  }

  .area-table-row {
    column-gap: 8px;
  }

  .area-table-value,
  .sort-favorites-row-value {
    font-size: 13px;
  }

  .sort-favorites-row {
    grid-template-columns: 42px minmax(0, 1fr) max-content;
    column-gap: 6px;
  }

  .dash-card-title {
    font-size: clamp(16px, calc(var(--dash-card-min, 500px) * 0.038), 24px);
  }

  .dash-card-center {
    top: 56%;
  }

  .dash-temp-gauge,
  .dash-wind-gauge {
    width: clamp(170px, calc(var(--dash-card-min, 500px) * 0.44), 340px);
  }
}

.station-pill-hitbox {
  display: inline-block;
  margin: -10px;
  padding: 10px;
  pointer-events: auto;
  touch-action: manipulation;
  transition: transform 0.12s ease-in-out;
}

.station-pill-offset-upper-left {
  transform: translate(-24px, -22px);
}

.station-pill-offset-lower-left {
  transform: translate(-24px, 22px);
}

.station-pill-offset-upper-right {
  transform: translate(24px, -22px);
}

.station-pill-offset-lower-right {
  transform: translate(24px, 22px);
}

.station-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 26px;
  padding: 0 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.26);
  pointer-events: none;
}

.station-pill.is-home {
  background: #2563eb;
  border-color: rgba(219, 234, 254, 0.9);
}

.station-pill.is-favorite-station {
  background: linear-gradient(
    180deg,
    #1e40af 0%,
    #1e3a8a 48%,
    #172033 100%
  );
  border-color: rgba(147, 197, 253, 0.34);
  box-shadow:
    0 7px 16px rgba(15, 23, 42, 0.30),
    0 0 0 1px rgba(147, 197, 253, 0.10) inset;
}

.station-pill.station-pill-highlight-target {
  border-color: rgba(253, 224, 71, 0.98);
  box-shadow:
    0 8px 22px rgba(15, 23, 42, 0.32),
    0 0 0 3px rgba(250, 204, 21, 0.34),
    0 0 20px rgba(250, 204, 21, 0.32);
}

.station-pill-hitbox:has(.station-pill.is-declutter-hidden) {
  pointer-events: none;
}

.is-declutter-hidden {
  opacity: 0;
  pointer-events: none;
}

.is-marker-interaction-hidden,
.is-marker-interaction-hidden .station-pill-hitbox,
.is-marker-interaction-hidden .station-pill {
  pointer-events: none;
}

.is-marker-interaction-hidden {
  pointer-events: none;
}

.leaflet-control-locate {
  border: none;
  background: transparent;
}

.weatherlancer-locate-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: #0f172a;
  background: #ffffff;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.22);
  cursor: pointer;
}

.weatherlancer-locate-button:hover {
  background: #f8fafc;
}

.weatherlancer-locate-button:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.42);
  outline-offset: 2px;
}

.weatherlancer-locate-button.is-locating {
  color: #2563eb;
  box-shadow:
    0 2px 8px rgba(15, 23, 42, 0.22),
    0 0 0 4px rgba(37, 99, 235, 0.16);
}

.weatherlancer-locate-button.is-error {
  color: #b91c1c;
}

.weatherlancer-locate-arrow {
  width: 0;
  height: 0;
  border-right: 7px solid transparent;
  border-left: 7px solid transparent;
  border-bottom: 18px solid currentColor;
  transform: rotate(35deg) translate(1px, -1px);
  transform-origin: center;
}

.current-location-beacon {
  position: relative;
  width: 28px;
  height: 28px;
}

.current-location-beacon-ring,
.current-location-beacon-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.current-location-beacon-ring {
  width: 28px;
  height: 28px;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(37, 99, 235, 0.28);
}

.current-location-beacon-dot {
  width: 11px;
  height: 11px;
  background: #2563eb;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 8px rgba(37, 99, 235, 0.65);
}

.weatherlancer-location-status {
  max-width: min(320px, calc(100vw - 32px));
  padding: 8px 10px;
  color: #172033;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(14px) saturate(1.04);
}

.leaflet-popup-content-wrapper {
  background: transparent;
  box-shadow: none;
}

.leaflet-popup-tip {
  background: rgba(15, 23, 42, 0.92);
}

.leaflet-popup-content {
  margin: 0;
}

.wl-popup {
  min-width: 196px;
  background: rgba(15, 23, 42, 0.92);
  color: #e5e7eb;
  border-radius: 14px;
  padding: 10px 12px 8px;
  text-align: center;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.wl-popup-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.wl-popup-temp {
  font-size: 20px;
  font-weight: 700;
  margin: 4px 0;
}

.wl-popup-subtle {
  color: rgba(229, 231, 235, 0.7);
  font-size: 12px;
}

.wl-popup-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 6px 0;
}

.wl-popup-row {
  margin: 3px 0;
  color: #e5e7eb;
  font-size: 12px;
  line-height: 1.3;
}

.wl-popup-home-section {
  min-height: 20px;
}

.wl-popup-state-label {
  margin-top: 6px;
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 600;
}

.wl-popup-actions {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
  white-space: nowrap;
}

.wl-popup-button {
  margin-top: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.wl-popup-actions .wl-popup-button {
  margin-top: 0;
  padding: 5px 9px;
}

.wl-popup-actions .wl-popup-state-label {
  margin-top: 0;
  align-self: center;
}

.wl-popup-button:hover {
  background: rgba(255, 255, 255, 0.15);
}
