.weather-card { width: 350px; }
.weather-summary { color: #d5e4ff; font-size: 12px; line-height: 1.6; margin: 12px 0 0; }
.weather-metrics { margin-block: 18px; gap: 7px; }
.weather-metrics strong > span { color: #fff; font-size: inherit; line-height: inherit; margin: 0; }
.weather-metrics > div > span:last-child { font-size: 11px; text-align: center; white-space: normal; line-height: 1.5; }
.weather-metrics .metric-icon { width: 24px; height: 24px; margin: 0 0 9px; }
.weather-metrics .metric-icon svg { margin: 0; }
.forecast-hours { display: flex; overflow-x: auto; overscroll-behavior-x: contain; gap: 8px; justify-content: flex-start; padding-bottom: 7px; scrollbar-width: thin; scrollbar-color: #83a7eb #0c2d68; }
.forecast-hour { min-width: 51px; flex: 1 0 51px; font-size: 11px; color: #c6dbff; }
.forecast-hour > span:first-child { white-space: nowrap; }
.forecast-hour .forecast-condition { display: grid; place-items: center; height: 34px; }
.forecast-condition svg { margin: 0; opacity: 1; color: #d2e3ff; }
.forecast-hour strong { display: block; font-size: 17px; }
.forecast-hour small { display: block; color: #c6dbff; font-size: 10px; white-space: nowrap; margin-top: 5px; }
.forecast-empty { font-size: 13px; color: #d9e6ff; margin: 3px 0; }
.forecast-status-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.forecast-status-row .weather-note { margin: 0; font-size: 12px; justify-content: flex-start; line-height: 1.6; text-align: left; }
#forecast-retry { color: #fff; background: #ffffff15; border: 1px solid #ffffff55; border-radius: 5px; padding: 5px 9px; white-space: nowrap; font-size: 12px; }
.forecast-updated { color: #c4d7f9; font-size: 11px; margin: 8px 0; line-height: 1.6; }
.weather-source { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: #c4d7f9; line-height: 1.6; }
.weather-source a { text-decoration: underline; text-underline-offset: 3px; }
.weather-source a:hover { color: #fff; }
.weather-card[data-status="loading"] .status-dot { background: #b7c9ed; }
.weather-card[data-status="error"] .status-dot { background: #ffc0a3; box-shadow: 0 0 0 4px #ffc0a315; }
.weather-card .weather-link { position: static; width: 100%; border-top: 1px solid #ffffff24; margin-top: 13px; padding-top: 12px; }
dialog:has(#weather-dialog) { width: min(840px, calc(100% - 36px)); }
.forecast-table-scroll { overflow-x: auto; border: 1px solid #d7e3f5; border-radius: 8px; margin-block: 18px; }
.forecast-table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; }
.forecast-table caption { text-align: left; padding: 14px; font-size: 13px; color: #50678e; caption-side: bottom; line-height: 1.7; }
.forecast-table th, .forecast-table td { padding: 13px 12px; text-align: left; white-space: nowrap; border-bottom: 1px solid #e4ebf6; }
.forecast-table thead { background: #edf3fd; color: #21477e; }
.forecast-table tbody th { font-weight: 600; }
.dialog-body .forecast-reference, .dialog-body .forecast-attribution { font-size: 13px; }
#weather-dialog a { color: #1756bc; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1100px) { .weather-card { width: 310px; } }
@media (max-width: 700px) {
  .weather-card { width: 100%; }
  .weather-card .weather-tabs { display: flex; width: 100%; }
  .weather-card .forecast-hours { display: flex; margin-top: 16px; }
  .weather-metrics strong { font-size: 22px; }
  .weather-metrics strong small { font-size: 10px; }
  .weather-metrics > div > span:last-child { font-size: 11px; }
  .weather-card .forecast-status-row .weather-note { font-size: 12px; }
}
