:root {
  --bg-start: #1a1e2b;
  --bg-end: #0b0d14;
  --text: #eef5ff;
  --text-muted: #8b949e;
  --card-bg: rgba(18, 22, 30, 0.85);
  --card-border: rgba(74, 144, 226, 0.25);
  --card-border-hover: rgba(0, 212, 255, 0.6);
  --accent: #74a8e2;
  --accent-grad-from: #b3e0ff;
  --accent-grad-to: #6ccbff;
  --temp-grad-from: #f0f9ff;
  --temp-grad-to: #d6ecff;
  --badge-bg: rgba(255,255,255,0.05);
  --badge-border: rgba(100, 180, 255, 0.3);
  --hourly-bg: rgba(10, 14, 23, 0.7);
  --hourly-border: rgba(55, 110, 180, 0.35);
  --now-cell-bg: rgba(255, 170, 46, 0.2);
  --now-cell-border: rgba(255, 170, 46, 0.5);
  --fab-bg: #4a90e2;
  --fab-shadow: rgba(0,0,0,0.3);
  --green: #1a7f37;
  --green-text: #2e7d32;
  --blue: #1f6feb;
  --blue-text: #1565c0;
  --teal: #26c6da;
  --teal-text: #00897b;
  --brown: #8b5e3c;
  --brown-text: #5d4037;
  --soil-dry: #1b7f39;
  --soil-aldehyde: #26c6da;
  --soil-wet: #3580e5;
  --soil-bog: #a67c52;
  --inline-border: #555;
  --inline-input-bg: #1a1e2b;
  --inline-input-color: #eef5ff;
  --inline-input-border: #555;
  --vote-btn-bg: transparent;
  --vote-btn-border: #555;
}

.theme-light {
  --bg-start: #e2e6ea;
  --bg-end: #cdd3da;
  --text: #1a1e2b;
  --text-muted: #4b5563;
  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.18);
  --card-border-hover: rgba(74, 144, 226, 0.5);
  --accent: #4a90e2;
  --accent-grad-from: #4a90e2;
  --accent-grad-to: #357abd;
  --temp-grad-from: #2c3e50;
  --temp-grad-to: #4a6a8a;
  --badge-bg: rgba(0,0,0,0.04);
  --badge-border: rgba(74, 144, 226, 0.3);
  --hourly-bg: rgba(248, 250, 252, 0.9);
  --hourly-border: rgba(74, 144, 226, 0.2);
  --now-cell-bg: rgba(255, 170, 46, 0.15);
  --now-cell-border: rgba(255, 170, 46, 0.4);
  --fab-bg: #357abd;
  --fab-shadow: rgba(0,0,0,0.12);
  --green: #2e7d32;
  --green-text: #2e7d32;
  --blue: #1565c0;
  --blue-text: #1565c0;
  --teal: #00897b;
  --teal-text: #00897b;
  --brown: #5d4037;
  --brown-text: #5d4037;
  --soil-dry: #2e7d32;
  --soil-aldehyde: #00897b;
  --soil-wet: #1565c0;
  --soil-bog: #5d4037;
  --inline-border: rgba(0,0,0,0.15);
  --inline-input-bg: #ffffff;
  --inline-input-color: #1a1e2b;
  --inline-input-border: #d1d5db;
  --vote-btn-bg: transparent;
  --vote-btn-border: rgba(0,0,0,0.15);
}

.theme-light .site-title {
  -webkit-text-fill-color: initial !important;
  color: var(--accent) !important;
}

.theme-light .park-title {
  -webkit-text-fill-color: initial !important;
  color: var(--accent) !important;
}

.theme-light .temp-value {
  -webkit-text-fill-color: initial !important;
  color: var(--text) !important;
}

.theme-light .datetime {
  color: var(--accent) !important;
  background: var(--badge-bg) !important;
  border-color: var(--badge-border) !important;
}

.theme-light .fab-overlay {
  background: rgba(0,0,0,0.3) !important;
}

.theme-light .fab-menu {
  background: var(--card-bg) !important;
  border-color: var(--card-border) !important;
}

.theme-light .fab-menu li a,
.theme-light .fab-menu li button {
  color: var(--text) !important;
}

.theme-light .fab-menu .fab-menu-handle {
  background: var(--text-muted) !important;
}

.theme-light .coords {
  color: var(--text-muted) !important;
  background: var(--badge-bg) !important;
}

.theme-light .group-btn {
  background: var(--card-bg) !important;
  color: var(--text) !important;
  border: 1px solid var(--card-border) !important;
}
.theme-light .group-btn:hover {
  border-color: var(--card-border-hover) !important;
  background: rgba(74,144,226,0.05) !important;
}
.theme-light .group-btn.active {
  background: rgba(74,144,226,0.12) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  box-shadow: none !important;
}

.theme-light .data-freshness {
  color: var(--text-muted) !important;
}

.theme-light .chart-box,
.theme-light #statusCard,
.theme-light .forecast-box,
.theme-light .photo-card,
.theme-light .forecast-page,
.theme-light .card {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
  border: 1px solid var(--card-border) !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: radial-gradient(circle at 20% 10%, var(--bg-start), var(--bg-end));
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  padding: 16px;
  color: var(--text);
}

.forecast-grid {
  /* container for horizontal scroller; no grid needed, JS handles layout */
}

.header {
  text-align: center;
  margin-bottom: 20px;
}

.header-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 10px;
  position: relative;
}

.site-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #e0f0ff, #7bc8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  flex: 1;
  text-align: center;
}

.datetime {
  font-size: 1.2rem;
  font-weight: 500;
  color: #b8d6ff;
  background: rgba(255,255,255,0.05);
  padding: 8px 18px;
  border-radius: 40px;
  border: 1px solid rgba(100, 180, 255, 0.3);
  display: inline-block;
  letter-spacing: 0.5px;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
}

@media (max-width: 700px) {
  .dashboard {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .site-title {
    font-size: 1.1rem;
  }
  body {
    padding: 10px;
    padding-top: calc(10px + env(safe-area-inset-top));
  }
  .card {
    padding: 14px 12px;
    border-radius: 20px;
  }
  .current-weather {
    gap: 8px;
  }
  .weather-emoji {
    font-size: 2rem;
    width: 40px;
  }
  .temp-value {
    font-size: 2.2rem;
  }
  .park-title {
    font-size: 1rem;
  }
  .soil-status-badge {
    font-size: 1rem;
    padding: 6px 12px;
  }
  .model-btn {
    padding: 12px 20px;
    font-size: 15px;
  }
  .refresh-btn {
    padding: 14px 24px;
    width: 100%;
    max-width: 300px;
  }
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 18px 14px 16px;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
  position: relative;
}

.card:hover {
  border-color: var(--card-border-hover);
  box-shadow: 0 20px 40px rgba(0, 180, 255, 0.25);
}

.park-title {
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--accent-grad-from), var(--accent-grad-to));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.coords {
  font-size: 0.65rem;
  font-weight: 400;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 20px;
  color: var(--accent);
}

.data-freshness {
  font-size: 0.55rem;
  color: var(--text-muted);
  text-align: right;
  margin-bottom: 4px;
}

.current-weather {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0;
}

.weather-emoji {
  font-size: 2.5rem;
  line-height: 1;
  width: 48px;
  text-align: center;
  flex-shrink: 0;
}

.temp-value {
  font-size: 2.8rem;
  font-weight: 600;
  background: linear-gradient(to right, var(--temp-grad-from), var(--temp-grad-to));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.temp-degree {
  font-size: 1.3rem;
  font-weight: 500;
  margin-left: 2px;
  color: var(--accent);
}

.section-title {
  font-size: 0.55rem;
  color: var(--text-muted);
  text-align: center;
  margin: 8px 0 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hourly-strip {
  background: var(--hourly-bg);
  border-radius: 18px;
  padding: 8px 4px;
  margin: 4px 0;
  border: 1px solid var(--hourly-border);
}

.hourly-row {
  display: flex;
  justify-content: space-around;
}

.hourly-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  text-align: center;
  gap: 2px;
  padding: 4px 2px;
  min-height: 90px;
  justify-content: flex-start;
}

.hourly-cell.now-cell {
  background: var(--now-cell-bg);
  border-radius: 10px;
  padding: 4px 2px;
  border: 1px solid var(--now-cell-border);
}

.hour-time {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.now-badge {
  font-size: 0.5rem;
  background: #ffaa2e;
  color: #1a1e2b;
  padding: 1px 4px;
  border-radius: 6px;
  font-weight: 700;
}

.hour-emoji {
  font-size: 1.4rem;
  line-height: 1;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hour-temp {
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--text);
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hour-rain {
  font-size: 0.6rem;
  color: var(--accent);
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rain-graph {
  background: var(--hourly-bg);
  border-radius: 18px;
  padding: 8px 6px 14px;
  margin: 4px 0;
  border: 1px solid var(--hourly-border);
}

.rain-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 35px;
  gap: 4px;
}

.rain-bar-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.rain-bar {
  width: 100%;
  background: linear-gradient(to top, #4a90d9, #7bc8ff);
  border-radius: 4px 4px 0 0;
  min-height: 3px;
}

.rain-bar.now {
  background: linear-gradient(to top, #ff8c2e, #ffb366);
  box-shadow: 0 0 8px rgba(255, 140, 46, 0.5);
}

.rain-value {
  font-size: 0.5rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.daily-table {
  background: var(--hourly-bg);
  border-radius: 14px;
  padding: 6px;
  margin: 4px 0;
  border: 1px solid var(--hourly-border);
}

.daily-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 6px;
  border-bottom: 1px solid var(--hourly-border);
}

.daily-row:last-child { border-bottom: none; }

.daily-row.today {
  background: var(--now-cell-bg);
  border: 1px solid var(--now-cell-border);
  border-radius: 6px;
}

.daily-day {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text);
  width: 70px;
  flex-shrink: 0;
}

.daily-icon {
  font-size: 1.1rem;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}

.daily-temp {
  font-size: 0.8rem;
  color: var(--text);
  width: 45px;
  text-align: center;
  flex-shrink: 0;
}

.daily-rain {
  font-size: 0.7rem;
  color: var(--accent);
  width: 50px;
  text-align: right;
  flex-shrink: 0;
}

.timer-section {
  margin-top: auto;
  background: var(--hourly-bg);
  border-radius: 18px;
  padding: 10px;
  border: 1px solid var(--hourly-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.timer-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #7f9bc0;
  margin-bottom: 4px;
}

.timer-display {
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(180deg, #ffd966, #f0b34b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rain-amount {
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 4px;
}

.rain-amount.wet { color: #ff6b6b; }
.rain-amount.dry { color: #2ee6b0; }

.rain-ended {
  font-size: 0.55rem;
  color: #94afcf;
  margin-top: 2px;
}

.rain-note {
  font-size: 0.55rem;
  color: #94afcf;
  margin-top: 4px;
}

.refresh-btn {
  display: block;
  margin: 20px auto;
  padding: 12px 30px;
  background: #1a3a5a;
  color: white;
  border: 1px solid rgba(0, 180, 255, 0.3);
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.refresh-btn:hover {
  background: #2a4a6a;
  border-color: rgba(0, 212, 255, 0.6);
}

.loading {
  grid-column: 1 / -1;
  text-align: center;
  color: #7f9bc0;
  padding: 50px;
  font-size: 1.2rem;
}

.error-card {
  text-align: center;
  padding: 30px;
  color: #ff6b6b;
}

.provider-switch {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.provider-btn {
  padding: 10px 20px;
  background: rgba(18, 22, 30, 0.7);
  color: #7f9bc0;
  border: 1px solid rgba(74, 144, 226, 0.25);
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s;
}

.provider-btn:hover {
  border-color: rgba(0, 180, 255, 0.5);
  color: #bdd6ff;
}

.provider-btn.active {
  background: rgba(0, 180, 255, 0.2);
  border-color: rgba(0, 212, 255, 0.7);
  color: #ffd966;
  box-shadow: 0 0 15px rgba(0, 180, 255, 0.3);
}

/* Убираем белую полоску в PWA на iOS */
:root {
  --safe-area-inset-top: env(safe-area-inset-top);
}

body {
  padding-top: env(safe-area-inset-top);
  background-color: #0b0d14;
}

@supports (-webkit-touch-callout: none) {
  body {
    padding-top: env(safe-area-inset-top);
    background-color: #0b0d14;
  }
}

/* Кнопки групп */
.group-switch {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
  flex-wrap: wrap;
}

.group-btn {
  padding: 12px 14px;
  background: #1a3a5a;
  color: white;
  border: 1px solid rgba(0, 180, 255, 0.3);
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s;
  flex: 1 0 auto;
  min-width: 80px;
  text-align: center;
}

@media (max-width: 500px) {
  .group-btn {
    flex: 1 1 45%;
    min-width: 0;
  }
}

.group-btn:hover {
  background: #2a4a6a;
  border-color: rgba(0, 212, 255, 0.6);
}

.group-btn.active {
  background: rgba(0, 180, 255, 0.25);
  border-color: rgba(0, 212, 255, 0.7);
  color: #ffd966;
  box-shadow: 0 0 15px rgba(0, 180, 255, 0.3);
}

.now-badge {
  font-size: 0.5rem;
  background: #ffaa2e;
  color: #1a1e2b;
  padding: 1px 4px;
  border-radius: 6px;
  font-weight: 700;
  white-space: nowrap;
}

.soil-status-badge {
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  padding: 8px 16px;
  border-radius: 14px;
  display: block;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.5px;
}

/* ---------- FAB (ПЛАВАЮЩАЯ КНОПКА) ---------- */
/* iOS toggle */
.ios-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}
.ios-switch input { opacity: 0; width: 0; height: 0; }
.ios-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #555;
  border-radius: 26px;
  transition: 0.3s;
}
.ios-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}
.ios-switch input:checked + .ios-slider { background: #26c6da; }
.ios-switch input:checked + .ios-slider::before { transform: translateX(22px); }

.load-more-btn {
  display: block;
  margin: 16px auto 0;
  padding: 10px 24px;
  background: rgba(74,144,226,0.15);
  border: 1px solid rgba(74,144,226,0.3);
  color: var(--text);
  border-radius: 28px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}
.load-more-btn:hover { background: rgba(74,144,226,0.3); }

.photo-empty { color: var(--text-muted); text-align: center; padding: 20px; }

.vote-box {
  margin: 10px 0;
  padding: 12px;
  background: var(--card-bg);
  border-radius: 12px;
  text-align: center;
}
.vote-box-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}
.vote-box-status {
  font-size: 1.1rem;
  color: var(--accent);
}

.forecast-day-box {
  margin: 10px 0;
  padding: 12px;
  background: var(--card-bg);
  border-radius: 12px;
  text-align: center;
}
.forecast-day-header {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}
.forecast-day-status {
  font-size: 1.1rem;
  color: var(--accent);
}

.photo-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 10px;
  border: 1px solid var(--card-border);
}
.photo-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}
.photo-info {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}
.photo-date {
  font-size: 12px;
  color: var(--text-muted);
}
.photo-vote {
  font-size: 14px;
  font-weight: bold;
  color: var(--accent);
}
.photo-comment {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.fab-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #4a90e2;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(74, 144, 226, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, opacity 0.3s, box-shadow 0.3s;
  line-height: 1;
  padding: 0;
  will-change: transform, opacity;
}
.fab-btn:hover {
  box-shadow: 0 6px 28px rgba(74, 144, 226, 0.6);
}
.fab-btn:active {
  transform: scale(0.93);
}
.fab-btn.hidden {
  transform: translateY(80px);
  opacity: 0;
  pointer-events: none;
}

.fab-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.fab-overlay.open {
  opacity: 1;
  visibility: visible;
}

.fab-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(20, 24, 34, 0.98);
  border-radius: 20px 20px 0 0;
  padding: 8px 0 24px;
  z-index: 999;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  border-top: 1px solid rgba(74, 144, 226, 0.2);
  max-height: 70vh;
  overflow-y: auto;
}
.fab-menu.open {
  transform: translateY(0);
}
.fab-menu-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  margin: 10px auto 6px;
}
.fab-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fab-menu li {
  padding: 0;
  margin: 0;
}
.fab-menu .user-name {
  display: block;
  padding: 12px 24px;
  color: #b8d6ff;
  font-weight: 600;
  border-bottom: 1px solid rgba(74, 144, 226, 0.15);
  font-size: 14px;
}

.menu-btn, .menu-link {
  display: block;
  width: 100%;
  padding: 14px 20px;
  color: #eef5ff;
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.menu-btn:last-child, .menu-link:last-child {
  border-bottom: none;
}
.menu-btn:hover, .menu-link:hover {
  background: rgba(74, 144, 226, 0.15);
}

/* ---------- КНОПКИ МОДЕЛЕЙ (OLD/NEW) ---------- */
.model-btn {
  padding: 10px 18px;
  border: 2px solid rgba(74, 144, 226, 0.4);
  background: rgba(18, 22, 30, 0.85);
  color: #ddd;
  border-radius: 28px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
  font-weight: 600;
}

.model-btn:hover {
  border-color: rgba(74, 144, 226, 0.7);
  background: rgba(74, 144, 226, 0.1);
}

.model-btn.active {
  background: rgba(74, 144, 226, 0.25);
  border-color: #74a8e2;
  color: #fff;
  box-shadow: 0 0 20px rgba(74, 144, 226, 0.3);
}

@media (min-width: 700px) {
  .fab-menu {
    max-width: 380px;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    border-radius: 20px;
    bottom: 20px;
  }
  .fab-menu.open {
    transform: translateX(-50%) translateY(0);
  }
}

/* ---------- ВИДЖЕТ ГОЛОСОВАНИЯ (СТРОКА) ---------- */
.vote-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
  background: rgba(10, 14, 23, 0.5);
  border-radius: 12px;
  padding: 8px 12px;
}

.vote-result {
  font-size: 0.85rem;
  color: #b8d6ff;
  white-space: nowrap;
}

.avg-bar {
  flex: 1;
  min-width: 60px;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}

.avg-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(to right, #8b5e3c, #4caf50);
  transition: width 0.3s;
}

.forecast-page {
  scroll-snap-align: start;
  flex: 0 0 100%;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 20px 16px;
}
.forecast-page-header {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 10px;
}
.forecast-empty {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  padding: 20px 0;
}
.forecast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}
.forecast-dot-active {
  background: #ffd966 !important;
}
.forecast-dot-inactive {
  background: var(--card-border) !important;
}
.forecast-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}
.forecast-details {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.best-time {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  padding: 8px;
}
.vote-btn-selected {
  border-color: var(--accent) !important;
  background: rgba(74, 144, 226, 0.2) !important;
}