body.weather-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: #1a1a2e;
  color: #eee;
  overflow: hidden;
  --weather-header-h: 96px;
  --weather-timeline-h: 88px;
}

@supports (padding: env(safe-area-inset-bottom)) {
  body.weather-page {
    --weather-timeline-h: calc(88px + env(safe-area-inset-bottom));
  }
}

.weather-header {
  background: rgba(20, 20, 35, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1100;
  position: relative;
}

.weather-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}

.weather-brand {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

.weather-brand:hover {
  color: #ffc107;
}

.weather-updated {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.weather-yandex-link {
  margin-left: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.weather-yandex-link:hover {
  color: #ffc107;
}

.layer-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0 0.75rem 0.75rem;
  overflow-x: auto;
}

.layer-tab {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.layer-tab:hover {
  background: rgba(255, 255, 255, 0.15);
}

.layer-tab.active {
  background: #ffc107;
  color: #1a1a2e;
  font-weight: 600;
}

.layer-tab-icon {
  font-size: 1rem;
}

.map-wrap {
  position: relative;
  min-height: 0;
}

.map-controls {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: rgba(20, 20, 35, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  backdrop-filter: blur(6px);
  max-width: min(360px, calc(100% - 32px));
  pointer-events: auto;
}

.map-controls-header {
  display: none;
}

.map-controls-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.btn-map-menu-close {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
}

.btn-map-menu {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(20, 20, 35, 0.94);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

.map-float-actions {
  display: none;
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1000;
  pointer-events: none;
}

.map-float-actions > * {
  pointer-events: auto;
}

.map-controls-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1240;
  background: rgba(0, 0, 0, 0.45);
}

.map-control {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  line-height: 1.35;
}

.map-control input {
  margin-top: 0.15rem;
  accent-color: #ffc107;
  flex-shrink: 0;
}

.map-control-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.map-control-group {
  margin-top: 0.35rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.map-control-group-title {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.35rem;
}

.basemap-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.basemap-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  min-height: 36px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.basemap-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.basemap-btn.active {
  border-color: rgba(255, 193, 7, 0.65);
  background: rgba(255, 193, 7, 0.18);
  color: #fff;
}

#map {
  width: 100%;
  height: 100%;
  background: #0d1117;
}

.leaflet-attribution-flag {
  display: none !important;
}

.field-canvas-layer {
  pointer-events: none;
}

.map-legend {
  background: rgba(20, 20, 35, 0.88);
  padding: 0.3rem 0.45rem 0.35rem;
  border-radius: 6px 6px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.62rem;
  pointer-events: auto;
  max-width: min(260px, calc(100vw - 130px));
}

.legend-panel {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1000;
  pointer-events: none;
}

.legend-panel .map-legend {
  margin: 0;
}

.legend-panel .map-legend.d-none {
  display: none !important;
}

.opacity-control {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.2rem;
  font-size: 0.58rem;
  color: rgba(255, 255, 255, 0.75);
  pointer-events: auto;
}

.opacity-control .opacity-value {
  flex-shrink: 0;
  min-width: 2rem;
  text-align: right;
}

.opacity-slider {
  flex: 1;
  min-width: 0;
  margin-top: 0;
  accent-color: #ffc107;
  pointer-events: auto;
  touch-action: none;
  cursor: pointer;
  height: 4px;
}

.precip-icon-wrap {
  background: transparent;
  border: none;
}

.precip-icon {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 18px;
  pointer-events: none;
}

.precip-rain span {
  display: block;
  width: 2px;
  height: 10px;
  background: rgba(180, 210, 255, 0.95);
  border-radius: 1px;
  box-shadow: 0 0 4px rgba(100, 160, 255, 0.8);
}

.precip-rain span:nth-child(2) { height: 14px; }
.precip-rain span:nth-child(3) { height: 11px; }

.precip-storm {
  font-size: 16px;
  line-height: 1;
  color: #ffe066;
  text-shadow: 0 0 8px rgba(255, 220, 80, 0.9), 0 0 2px #fff;
  filter: drop-shadow(0 0 3px rgba(255, 200, 0, 0.8));
}

.precip-legend-rain {
  color: rgba(180, 210, 255, 0.95);
  font-weight: bold;
  letter-spacing: -2px;
}

.precip-legend-storm {
  color: #ffe066;
}

.wind-grid-arrow {
  background: transparent;
  border: none;
}

.wind-arrow-line {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wind-arrow-shaft {
  display: block;
  width: 14px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
  position: relative;
}

.wind-arrow-shaft::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -3px;
  border: 4px solid transparent;
  border-left: 6px solid rgba(255, 255, 255, 0.9);
}

.legend-bar {
  height: 8px;
  border-radius: 3px;
  margin-bottom: 0.15rem;
  width: min(200px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.legend-scale-title {
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.15rem;
  line-height: 1.1;
}

.legend-scale-labels {
  display: flex;
  justify-content: space-between;
  gap: 0.2rem;
  width: min(200px, 100%);
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.1rem;
}

.legend-scale-labels span {
  flex: 1;
  text-align: center;
  line-height: 1.2;
}

.legend-scale-labels span:first-child {
  text-align: left;
}

.legend-scale-labels span:last-child {
  text-align: right;
}

.legend-scale-labels .legend-tick-mid {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.legend-note {
  display: none;
  margin-bottom: 0.2rem;
  color: rgba(255, 255, 255, 0.6);
}

.temp-bar {
  background: linear-gradient(to right, #313695, #74add1, #ffffbf, #fdae61, #d73027);
}

.precip-bar {
  background: linear-gradient(to right, #e0f3f8, #74add1, #4575b4, #313695);
}

.wind-bar {
  background: linear-gradient(to right, #313695, #4575b4, #abd9e9, #e0f3f8);
}

.elev-bar {
  background: linear-gradient(to right, #387638, #8bc34a, #fff59d, #ff9800, #e57373);
}

.weather-point-popup {
  font-size: 0.85rem;
  line-height: 1.45;
  min-width: 200px;
}

.weather-point-popup-time {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.weather-point-popup-coords {
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.weather-point-popup table {
  width: 100%;
  border-collapse: collapse;
}

.weather-point-popup td {
  padding: 0.15rem 0;
  vertical-align: top;
}

.weather-point-popup td:first-child {
  color: #555;
  padding-right: 0.75rem;
  white-space: nowrap;
}

.weather-point-popup td:last-child {
  font-weight: 500;
  text-align: right;
}

.btn-refresh-map {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(20, 20, 35, 0.9);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.btn-refresh-map:hover {
  background: #ffc107;
  color: #1a1a2e;
}

.leaflet-control-zoom {
  border: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
  margin-bottom: 0 !important;
}

.leaflet-control-zoom a {
  background: rgba(20, 20, 35, 0.9) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.map-wrap .leaflet-bottom.leaflet-right {
  bottom: 0 !important;
  right: 0 !important;
  margin: 0 !important;
}

.map-wrap .leaflet-control-attribution {
  margin: 0 !important;
  padding: 1px 5px !important;
  font-size: 9px !important;
  line-height: 1.2 !important;
  border-radius: 4px 0 0 0 !important;
  background: rgba(255, 255, 255, 0.82) !important;
  color: rgba(0, 0, 0, 0.72) !important;
  max-width: min(240px, 55vw);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.map-wrap .leaflet-control-attribution a {
  color: rgba(0, 0, 0, 0.78) !important;
}

.leaflet-container {
  touch-action: pan-x pan-y pinch-zoom;
}

.leaflet-popup-content-wrapper {
  border-radius: 10px;
}

.leaflet-popup-content {
  margin: 10px 12px;
  font-size: 0.85rem;
}

/* Install wizard (unchanged layout) */
.weather-container {
  display: flex;
  height: calc(100vh - 56px);
  position: relative;
}

.layer-panel {
  width: 280px;
  padding: 1rem;
  background: #fff;
  border-right: 1px solid #dee2e6;
  overflow-y: auto;
  z-index: 1000;
}

#install-log {
  font-family: monospace;
  font-size: 12px;
}

@media (max-width: 768px) {
  body.weather-page {
    display: flex;
    flex-direction: column;
    height: 100dvh;
    min-height: 100dvh;
    --weather-header-h: 108px;
    --weather-timeline-h: 0px;
  }

  .weather-header {
    flex: 0 0 auto;
  }

  .map-wrap {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
  }

  .weather-timeline-wrap {
    position: relative;
    flex: 0 0 auto;
    flex-direction: column;
    padding: 0.2rem 0.4rem calc(0.2rem + env(safe-area-inset-bottom, 0px));
    gap: 0.15rem;
    min-height: auto;
  }

  .weather-header-top {
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    padding: 0.4rem 0.65rem;
  }

  .weather-brand {
    font-size: 0.95rem;
  }

  .weather-updated {
    display: none;
  }

  .weather-yandex-link,
  .weather-header-top form {
    font-size: 0.75rem;
  }

  .layer-tabs {
    padding: 0 0.5rem 0.55rem;
    gap: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .layer-tab {
    padding: 0.5rem 0.75rem;
    min-height: 40px;
    font-size: 0.78rem;
  }

  .btn-map-menu {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .map-float-actions {
    display: block;
    top: 0.65rem;
    left: 0.65rem;
  }

  .map-controls {
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    max-width: none;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px 16px 0 0;
    padding: 0 0.85rem  calc(0.85rem + env(safe-area-inset-bottom, 0px));
    transform: translateY(100%);
    transition: transform 0.28s ease;
    z-index: 1250;
  }

  .map-controls:not(.collapsed) {
    transform: translateY(0);
  }

  .map-controls-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: rgba(20, 20, 35, 0.98);
    padding: 0.75rem 0 0.5rem;
    margin-bottom: 0.25rem;
    z-index: 1;
  }

  .map-controls-backdrop:not(.hidden) {
    display: block;
  }

  .map-control {
    font-size: 0.82rem;
    min-height: 40px;
    align-items: center;
  }

  .map-control input {
    width: 20px;
    height: 20px;
    margin-top: 0;
  }

  .map-legend {
    max-width: min(220px, calc(100vw - 110px));
    padding: 0.25rem 0.4rem 0.3rem;
    font-size: 0.58rem;
  }

  .legend-bar {
    height: 6px;
    width: 100%;
  }

  .legend-scale-labels {
    width: 100%;
    font-size: 0.52rem;
  }

  .legend-scale-title {
    font-size: 0.58rem;
  }

  .legend-note {
    display: none;
  }

  .map-legend small {
    font-size: 0.52rem;
    line-height: 1.1;
  }

  .opacity-control {
    font-size: 0.52rem;
    gap: 0.25rem;
  }

  .btn-refresh-map {
    top: 0.65rem;
    right: 0.65rem;
    width: 44px;
    height: 44px;
  }

  .map-wrap .leaflet-bottom.leaflet-right {
    bottom: 0 !important;
    right: 0 !important;
  }

  .map-wrap .leaflet-control-attribution {
    font-size: 8px !important;
    max-width: min(200px, 52vw);
  }

  .map-wrap .leaflet-control-zoom a {
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 18px !important;
  }

  .weather-timeline-wrap {
    flex-direction: column;
    padding: 0.2rem 0.4rem calc(0.2rem + env(safe-area-inset-bottom, 0px));
    gap: 0.15rem;
    min-height: auto;
  }

  .weather-timeline-toolbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
    flex: 0 0 auto;
  }

  .weather-toolbar-btn {
    flex-shrink: 0;
    padding: 0.2rem 0.4rem;
    min-height: 28px;
    min-width: 28px;
    font-size: 0.7rem;
    border-radius: 8px;
  }

  .weather-now-btn {
    padding: 0.2rem 0.4rem;
    min-height: 28px;
    min-width: 28px;
    font-size: 0.7rem;
    border-radius: 8px;
  }

  .weather-time-mobile {
    flex: none;
    order: 0;
    min-width: 0;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    padding: 0 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
  }

  .weather-time-label {
    display: none;
  }

  .weather-timeline-viewport {
    flex: 0 0 auto;
    width: 100%;
    height: 24px;
    min-height: 0;
  }

  .weather-timeline-scroll {
    height: 100%;
    display: flex;
    align-items: stretch;
  }

  .weather-timeline {
    padding: 0;
    align-items: stretch;
  }

  .weather-day-group {
    padding: 0 0.15rem;
    justify-content: flex-end;
  }

  .weather-day-label {
    display: none;
  }

  .weather-timeline-playhead {
    top: auto;
    bottom: 100%;
    left: 50%;
    width: 0;
    height: 0;
    margin-left: 0;
    transform: translateX(-50%);
    background: none;
    box-shadow: none;
    border-radius: 0;
  }

  .weather-timeline-playhead::before {
    top: auto;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-left-width: 4px;
    border-right-width: 4px;
    border-top-width: 5px;
    filter: drop-shadow(0 0 4px rgba(255, 193, 7, 0.65));
  }

  .weather-hour {
    min-width: 30px;
    min-height: 24px;
    padding: 0.1rem 0.2rem;
    font-size: 0.62rem;
    border-radius: 6px;
    line-height: 1.1;
  }

  .weather-hour.now-marker::after {
    width: 3px;
    height: 3px;
    margin: 1px auto 0;
  }

  .points-subscriptions-panel {
    top: var(--weather-header-h);
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
  }

  .weather-point-popup {
    min-width: 0;
    max-width: calc(100vw - 48px);
  }

  .flight-popup {
    min-width: 0;
    max-width: calc(100vw - 48px);
  }

  .flight-fav-btn {
    min-height: 44px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  body.weather-page {
    --weather-header-h: 100px;
  }

  .layer-tab span:not(.layer-tab-icon) {
    display: none;
  }

  .layer-tab {
    padding: 0.5rem 0.65rem;
    min-width: 44px;
    justify-content: center;
  }

  .layer-tab-icon {
    font-size: 1.15rem;
  }
}

@media (min-width: 769px) {
  .map-wrap {
    height: calc(100vh - var(--weather-header-h) - var(--weather-timeline-h));
    height: calc(100dvh - var(--weather-header-h) - var(--weather-timeline-h));
  }

  .weather-time-mobile {
    display: none;
  }

  .weather-timeline-toolbar {
    display: contents;
  }
}

/* Timeline footer — desktop default */
.weather-timeline-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  background: rgba(20, 20, 35, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  min-height: 88px;
  padding: 0.5rem 0.75rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
}

.weather-now-btn {
  flex-shrink: 0;
  border: 1px solid rgba(255, 193, 7, 0.45);
  background: rgba(255, 193, 7, 0.12);
  color: #ffc107;
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.weather-now-btn:hover {
  background: rgba(255, 193, 7, 0.22);
}

.weather-timeline-viewport {
  position: relative;
  flex: 1;
  min-width: 0;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.weather-timeline-viewport.is-dragging {
  cursor: grabbing;
}

.weather-timeline-playhead {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background: #ffc107;
  z-index: 6;
  pointer-events: none;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.55);
  will-change: transform;
}

.weather-timeline-playhead::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid #ffc107;
}

.weather-timeline-scroll {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  height: 100%;
}

.weather-timeline-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.weather-timeline {
  display: flex;
  align-items: flex-end;
  min-width: min-content;
  padding: 0.25rem 0;
  box-sizing: border-box;
}

.weather-day-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 0.35rem;
}

.weather-day-group:first-child {
  border-left: none;
}

.weather-day-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.35rem;
  white-space: nowrap;
}

.weather-hours {
  display: flex;
  gap: 2px;
}

.weather-hour {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  min-width: 42px;
  box-sizing: border-box;
}

.weather-hour:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.weather-hour.active {
  background: rgba(255, 193, 7, 0.28);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 193, 7, 0.55);
}

.weather-hour.now-marker::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  background: #ffc107;
  border-radius: 50%;
  margin: 2px auto 0;
}

.weather-time-label {
  flex-shrink: 0;
  min-width: 120px;
  text-align: right;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.flight-popup {
  font-size: 0.85rem;
  line-height: 1.45;
  min-width: 220px;
}

.flight-popup-meta {
  font-size: 0.75rem;
  color: #888;
  margin: 0.15rem 0 0.35rem;
}

.flight-popup-criteria {
  font-size: 0.8rem;
  color: #444;
  margin: 0.35rem 0;
}

.flight-popup-divider {
  margin: 0.65rem 0;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.flight-popup-weather-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.flight-popup-weather-time {
  font-size: 0.78rem;
  color: #666;
  margin-bottom: 0.35rem;
}

.flight-popup-weather-missing {
  font-size: 0.8rem;
  color: #888;
  margin: 0;
}

.flight-fav-btn {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(255, 193, 7, 0.5);
  border-radius: 8px;
  background: rgba(255, 193, 7, 0.12);
  color: #8a6d00;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.flight-fav-btn:hover {
  background: rgba(255, 193, 7, 0.22);
}

.flight-fav-login {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
}

.weather-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: rgba(20, 20, 35, 0.7);
  z-index: 2000;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.weather-loading.hidden {
  display: none;
}

.weather-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #ffc107;
  border-radius: 50%;
  animation: weather-spin 0.8s linear infinite;
}

@keyframes weather-spin {
  to { transform: rotate(360deg); }
}

.flight-popup {
  font-size: 0.85rem;
  line-height: 1.4;
}

.points-subscriptions-panel {
  position: fixed;
  right: 0;
  top: 96px;
  bottom: 88px;
  width: min(420px, 100vw);
  z-index: 1300;
  background: rgba(20, 20, 35, 0.98);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.35);
}

.points-subscriptions-panel.hidden {
  display: none;
}

.points-subscriptions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  color: #fff;
}

#points-subscriptions-table .form-check-input {
  accent-color: #ffc107;
}
