.weather-container.weather-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.weather-container.weather-panel [hidden] {
  display: none !important;
}

.weather-container.weather-panel #status-bar {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
}

.weather-container.weather-panel #weather-details-toggle {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  width: auto;
  min-width: 0;
  min-height: 44px;
  margin: 0;
}

.weather-size-toggle {
  display: inline-flex;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--border, #d7dfd5);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
}

.weather-size-toggle:hover {
  background: var(--sage, #e5ece3);
}

.weather-size-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.weather-size-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.weather-container.weather-panel[data-weather-expanded="false"] .weather-size-toggle {
  grid-column: 2;
  justify-self: end;
}

.weather-container.weather-panel .weather-compact-summary {
  display: grid;
  grid-column: 1;
  grid-row: 1;
  gap: 3px;
  min-width: 0;
  padding-block: 4px;
  text-align: left;
  overflow-wrap: anywhere;
}

.weather-compact-summary strong {
  font-size: 0.92rem;
  line-height: 1.3;
}

.weather-compact-summary small {
  font-size: 0.76rem;
  line-height: 1.4;
}
