.weather-strip {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-top: 20px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-raised);
  color: var(--text);
}
.weather-strip[hidden] { display: none; }
.weather-viewport { min-width: 0; overflow: hidden; }
.weather-step {
  display: grid;
  place-items: center;
  align-self: stretch;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--accent-strong);
}
.weather-step:hover { background: var(--accent-soft); }
.weather-step svg { width: 20px; height: 20px; }
.weather-day-heading {
  display: flex;
  align-items: center;
}
.weather-track {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  scroll-snap-type: x proximity;
  scroll-padding: 3px;
  padding: 3px 2px;
}
.weather-day {
  flex: 1 0 146px;
  min-width: 0;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 11px;
  scroll-snap-align: start;
}
.weather-day.is-today {
  flex-basis: 194px;
  background: var(--accent-soft);
}
.weather-day-heading { min-height: 16px; justify-content: space-between; gap: 6px; margin-bottom: 4px; line-height: 1.25; }
.weather-date { white-space: nowrap; font-size: 0.66rem; font-weight: 800; }
.weather-date::first-letter { text-transform: uppercase; }
.weather-today-label { border-radius: 5px; padding: 1px 5px; background: var(--accent); color: var(--surface); font-size: 0.57rem; font-weight: 800; }
.weather-periods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
.weather-slot {
  --weather-color: #604810;
  --weather-background: #ffe7a2;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 36px;
  padding: 2px 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--weather-background);
  color: var(--weather-color);
  transition: box-shadow 120ms ease;
}
.weather-slot[data-weather="rain"] { --weather-background: #cde9fb; --weather-color: #234b6a; }
.weather-slot[data-weather="rainbow"] { --weather-background: linear-gradient(120deg, #ffd0c8, #ffebbb 30%, #cfeccd 58%, #cbdffc 78%, #e7d1f9); --weather-color: #423d4d; }
.weather-slot[data-weather="meteor"] { --weather-background: #dad2f7; --weather-color: #46346e; }
.weather-slot[data-weather="lucky"] { --weather-background: #f4e4bf; }
.weather-slot[data-weather="heat"] { --weather-background: #ffd2ac; --weather-color: #733b18; }
.weather-slot[data-weather="unknown"] { --weather-background: var(--surface-soft); --weather-color: var(--text-muted); }
.weather-slot:hover:not(:disabled) { box-shadow: inset 0 0 0 1px currentColor; }
.weather-slot[aria-pressed="true"] { box-shadow: inset 0 0 0 2px currentColor; }
.weather-slot[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  bottom: 1px;
  right: 2px;
  font-size: 0.66rem;
  font-weight: 900;
}
.weather-day.is-today,
.weather-slot[aria-current="time"],
.weather-slot[aria-current="time"]:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.weather-period { font-size: 0.59rem; font-weight: 800; white-space: nowrap; line-height: 1.1; }
.weather-icon { font-size: 1rem; line-height: 1.1; }
.weather-slot:disabled { cursor: default; }
.weather-status { margin: 0; }
.weather-availability-note { margin: 0 0 8px; color: var(--accent-strong); font-size: 0.68rem; font-weight: 800; line-height: 1.4; }
.weather-availability-note[hidden] { display: none; }
.weather-strip + .catalog-layout { padding-top: 25px; }
html[data-theme="dark"] .weather-slot { --weather-background: #524123; --weather-color: #ffe7a2; }
html[data-theme="dark"] .weather-slot[data-weather="rain"] { --weather-background: #233f55; --weather-color: #c8e8ff; }
html[data-theme="dark"] .weather-slot[data-weather="rainbow"] { --weather-background: linear-gradient(120deg, #593a43, #55492d 30%, #344e42 58%, #344761 78%, #4a3c61); --weather-color: #fff1f7; }
html[data-theme="dark"] .weather-slot[data-weather="meteor"] { --weather-background: #413456; --weather-color: #e6d8ff; }
html[data-theme="dark"] .weather-slot[data-weather="heat"] { --weather-background: #593922; --weather-color: #ffdbbd; }
html[data-theme="dark"] .weather-slot[data-weather="unknown"] { --weather-background: var(--surface-soft); --weather-color: var(--text-muted); }
@media (max-width: 719px) {
  .weather-strip { margin-top: 14px; padding: 8px 8px 4px; border-radius: 14px; }
  .weather-day { flex-basis: 176px; }
  .weather-day.is-today { flex-basis: min(208px, calc(100vw - 126px)); }
  .weather-slot { min-height: 44px; }
  .weather-strip + .catalog-layout { padding-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .weather-slot { transition: none; }
}
