#weatherModal {
  max-width: min(760px, calc(100vw - 24px));
}

.v01-weather-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.v01-weather-context {
  margin: 2px 0 10px;
  font-size: 0.94rem;
}

.v01-weather-state {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 0.82rem;
  font-weight: 700;
}

.v01-weather-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 14px;
}

.v01-weather-actions button {
  min-height: 44px;
}

.v01-weather-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.v01-weather-card {
  border: 1px solid rgba(127,127,127,.35);
  border-radius: 12px;
  padding: 12px;
  min-width: 0;
}

.v01-weather-card > strong {
  display: block;
  margin-bottom: 7px;
}

.v01-weather-card small {
  display: block;
  margin-top: 7px;
  opacity: .78;
}

.v01-weather-primary {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.45;
}

.v01-weather-symbol {
  flex: 0 0 auto;
  font-size: 1.35rem;
}

.v01-weather-pop-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.v01-weather-weekly-card {
  grid-column: 1 / -1;
}

.v01-weather-week-row {
  display: grid;
  grid-template-columns: 52px 30px minmax(100px,1fr) minmax(100px,1fr);
  gap: 7px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(127,127,127,.25);
}

.v01-weather-week-row:last-child {
  border-bottom: 0;
}

.v01-weather-meta {
  margin: 10px 0 0;
  font-size: .85rem;
  opacity: .82;
}

#weatherError {
  margin: 8px 0 0;
  font-size: .83rem;
}

@media (max-width: 680px) {
  .v01-weather-actions {
    grid-template-columns: 1fr;
  }

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

  .v01-weather-week-row {
    grid-template-columns: 44px 26px 1fr;
  }

  .v01-weather-week-row > span:last-child {
    grid-column: 3;
  }
}