body.weather-body {
  margin: 0;
  background: linear-gradient(180deg, #edf4fb 0%, #dfeaf5 100%);
  color: #1f2f3a;
  font-family: Arial, Helvetica, sans-serif;
}

.weather-shell {
  max-width: 1280px;
  padding: 12px;
}

.weather-topbar {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid #d8e2ec;
}

.weather-site-title {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  color: #24496b;
}

.weather-location-line {
  margin-top: 4px;
  color: #5f7387;
  font-size: 14px;
}

.weather-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.weather-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.weather-nav-link {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  color: #35516a;
  background: #eef5fb;
  border: 1px solid #d1e0ec;
  font-size: 14px;
  font-weight: 600;
}

.weather-nav-link.active {
  background: #2f76ba;
  color: #fff;
  border-color: #2f76ba;
}

.weather-input {
  flex: 1 1 280px;
  min-width: 240px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #bfd0df;
  background: #fff;
  font-size: 14px;
  line-height: 1.3;
  outline: none;
}

.weather-input:focus {
  border-color: #4f95d4;
  box-shadow: 0 0 0 3px rgba(79, 149, 212, 0.16);
}

#autocomplete {
  border-radius: 8px;
  padding: 8px 10px;
}

.weather-btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #bfd0df;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.18s ease;
}

.weather-btn:hover {
  transform: translateY(-1px);
}

.weather-btn-primary {
  background: #2f76ba;
  color: #fff;
  border-color: #2f76ba;
}

.weather-btn-secondary {
  background: #fff;
  color: #28465f;
}

.weather-btn-accent {
  background: #fff3b8;
  color: #5f4b00;
  border-color: #e4cf74;
}

.weather-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.weather-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.weather-grid-hero {
  grid-template-columns: 1.25fr 1fr;
}

.weather-grid-main {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.weather-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #d8e2ec;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.weather-card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.weather-card-header {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #57728b;
  margin-bottom: 10px;
}

.weather-current-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.weather-current-temp {
  font-size: 68px;
  font-weight: 700;
  line-height: 1;
  color: #1f3d57;
}

.weather-current-condition {
  font-size: 22px;
  font-weight: 600;
  margin-top: 6px;
}

.weather-current-time {
  margin-top: 8px;
  color: #61788f;
  font-size: 14px;
}

.weather-main-icon {
  width: 110px;
  height: 110px;
}

.weather-summary-text {
  font-size: 20px;
  line-height: 1.6;
  color: #304352;
}

.weather-summary {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

.weather-mini-stats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  color: #3f5669;
  font-size: 14px;
}

.weather-hourly-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.weather-hour-item {
  min-width: 88px;
  text-align: center;
  background: #f7fbff;
  border: 1px solid #d7e4ef;
  border-radius: 14px;
  padding: 10px 8px;
}

.weather-hour-time {
  font-size: 13px;
  font-weight: 600;
  color: #5b7287;
  margin-bottom: 4px;
}

.weather-hour-temp {
  font-size: 15px;
  font-weight: 700;
  color: #26425a;
}

.weather-forecast-row {
  display: grid;
  grid-template-columns: 36px 90px 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #eef3f7;
}

.weather-forecast-row span {
  min-width: 0;
  overflow-wrap: break-word;
}

.weather-big-stat {
  font-size: 32px;
  font-weight: 700;
  color: #214764;
}

.weather-support-text {
  margin-top: 8px;
  font-size: 13px;
  color: #5f6f81;
  line-height: 1.5;
}

.weather-stat-list {
  display: grid;
  gap: 8px;
  color: #30485c;
  font-size: 15px;
}

.forecast-list {
  display: flex;
  flex-direction: column;
}

.forecast-day {
  display: grid;
  grid-template-columns: 60px 50px 1fr 80px;
  align-items: center;
  column-gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #e5e5e5;
}

.forecast-day-name {
  font-weight: 600;
  white-space: nowrap;
}

.forecast-icon img {
  width: 48px;
  height: 48px;
}

.forecast-desc {
  min-width: 0;
  font-size: 1.0rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forecast-desc-long {
  display: inline;
}

.forecast-desc-short {
  display: none;
}

.forecast-temp {
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
}

.assistant-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.assistant-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.assistant-controls #weatherQuery {
  display: block;
  width: 100%;
  height: 40px;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 15px;
  line-height: 1.3;
  box-sizing: border-box;
}

#weatherQuery {
  height: 30px;
  line-height: 1.2;
}

.weather-response-box {
  margin-top: 10px;
  padding: 10px 12px;
  min-height: 48px;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: break-word;
  background: #f6f8fc;
  border: 1px solid #dde4ef;
  border-radius: 10px;
}

.assistant-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.ai-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #cfd8e3;
  border-top-color: #2f76ba;
  border-radius: 50%;
  animation: ai-spin 0.8s linear infinite;
}

.ai-loading-text {
  font-size: 14px;
  color: #4b647d;
}

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

.flash-listen {
  animation: flashListen 1.2s ease-in-out 2;
}

@keyframes flashListen {
  0%   { background: #fff3b8; }
  50%  { background: #ffe066; }
  100% { background: #fff3b8; }
}

.radar-control-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #d8e2ec;
  border-radius: 16px;
  padding: 12px 14px;
  margin-top: 10px;
  box-shadow: 0 4px 18px rgba(33, 56, 78, 0.08);
}

.radar-control-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.radar-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.radar-btn {
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid #bfd0df;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.18s ease;
}

.radar-btn:hover {
  transform: translateY(-1px);
}

.radar-btn-primary {
  background: #2f76ba;
  color: #fff;
  border-color: #2f76ba;
}

.radar-btn-secondary {
  background: #fff;
  color: #28465f;
}

.radar-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.radar-btn-sat-disabled {
  background: #d3d7dc !important;
  color: #6c737a !important;
  border-color: #b8c0c8 !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
}

.radar-slider-wrap {
  flex: 1 1 260px;
  min-width: 220px;
  margin-bottom: 4px;
}

#radarSlider {
  width: 100%;
  accent-color: #2f76ba;
}

.radar-meta-wrap {
  min-width: 180px;
  text-align: right;
  margin-top: 0;
  font-size: 13px;
}

.radar-timestamp {
  font-size: 15px;
  font-weight: 700;
  color: #24496b;
}

.radar-range {
  font-size: 13px;
  color: #61788f;
  margin-top: 2px;
}

.radar-status-note {
  margin-top: 6px;
  font-size: 13px;
  color: #61788f;
}

.weather-radar-map-wrap {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #d8e2ec;
  background: #e9f1f8;
}

.weather-radar-map {
  width: 100%;
  height: 460px;
}

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

.alert-item {
  border: 1px solid #e0c98b;
  background: #fff8e6;
  border-radius: 14px;
  padding: 12px 14px;
}

.alert-item.severe {
  border-color: #d27b7b;
  background: #fff1f1;
}

.alert-title {
  font-weight: 700;
  color: #7a3e00;
  margin-bottom: 6px;
}

.alert-item.severe .alert-title {
  color: #8c1f1f;
}

.alert-meta {
  font-size: 13px;
  color: #61788f;
  margin-bottom: 6px;
}

.alert-body {
  line-height: 1.5;
  color: #304352;
}

.google-attribution {
  height: 16px;
  width: auto;
  margin-top: 4px;
  opacity: 0.9;
}

.weather-card + .weather-grid-main {
  margin-top: 16px;
}

@media (max-width: 900px) {
  .weather-grid-hero,
  .weather-grid-main {
    grid-template-columns: 1fr;
  }

  .weather-current-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .weather-main-icon {
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 768px) {
  .radar-control-row {
    flex-direction: column;
    align-items: stretch;
  }

  .radar-button-group {
    width: 100%;
  }

  .radar-btn {
    flex: 1 1 auto;
    text-align: center;
  }

  .radar-slider-wrap {
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
  }

  .radar-meta-wrap {
    width: 100%;
    text-align: left;
  }

  .weather-radar-map {
    height: 340px;
  }
}

@media (max-width: 640px) {
  .weather-site-title {
    font-size: 24px;
  }

  .weather-current-temp {
    font-size: 54px;
  }

  .weather-forecast-row {
    grid-template-columns: 48px 30px 1fr auto;
    font-size: 14px;
  }

  .forecast-desc-long {
    display: none;
  }

  .forecast-desc-short {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .forecast-temp {
    display: block;
  }
}

@media (min-width: 641px) {
  .forecast-day {
    grid-template-columns: 60px 50px 1fr;
  }

  .forecast-desc {
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
  }

  .forecast-desc-long {
    display: inline;
  }

  .forecast-desc-short {
    display: none;
  }

  .forecast-temp {
    display: none;
  }
}

.weather-page-title {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 600;
  color: #35516a;
}

.weather-hook {
  margin-top: 6px;
  font-size: 14px;
  color: #5f7387;
}

.weather-features {
  margin-top: 8px;
  font-size: 13px;
  color: #4b647d;
}

.weather-next-step {
  margin-top: 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: #2f76ba;
  cursor: pointer;
}