.wind-weather-layer { position: absolute; inset: 0 auto auto 0; pointer-events: none; transform-origin: 0 0; }
.wind-weather-layer canvas { position: absolute; top: 0; left: 0; pointer-events: none; }
.wind-weather-colors { image-rendering: auto; }
.wind-weather-control { margin-top: 4px !important; }
.wind-weather-toggle { display: flex; align-items: center; justify-content: center; gap: 5px; width: 56px; min-height: 34px; margin: 0; padding: 0 5px; box-sizing: border-box; border-radius: 3px; color: #334655; background: #fff; cursor: pointer; transition: color .16s ease, background .16s ease; }
.wind-weather-toggle:hover { color: #126d94; background: #edf7fa; }
.wind-weather-toggle.is-active { color: #087b91; background: #e9f7f8; }
.wind-weather-toggle:focus-within { outline: 2px solid #168ca9; outline-offset: -2px; }
.wind-weather-toggle__checkbox { flex: 0 0 auto; width: 13px; height: 13px; min-width: 13px; min-height: 13px; margin: 0; padding: 0; accent-color: #098a9d; cursor: pointer; }
.wind-weather-toggle__icon { display: flex; align-items: center; width: 25px; height: 25px; }
.wind-weather-toggle__icon svg { width: 100%; height: 100%; }
.wind-weather-legend { box-sizing: border-box; width: 228px; max-width: calc(100vw - 40px); padding: 8px 10px 7px; border: 1px solid #ffffff3b; border-radius: 8px; color: #f5fbff; background: #172d3bef; box-shadow: 0 3px 16px #10253135; font: 10px/1.3 var(--font-family, system-ui, sans-serif); backdrop-filter: blur(10px); }
.wind-weather-legend__heading { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; }
.wind-weather-legend__heading > svg { width: 17px; height: 17px; color: #b9edf1; }
.wind-weather-legend__heading strong { font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.wind-weather-legend__heading strong span { margin-left: 4px; font-size: 10px; font-weight: 400; opacity: .8; }
.wind-weather-legend__units { margin-left: auto; font-size: 10px; opacity: .9; }
.wind-weather-legend__scale { height: 7px; border-radius: 5px; box-shadow: inset 0 0 0 1px #ffffff20; }
.wind-weather-legend__ticks { position: relative; height: 15px; margin: 2px 5px 0; font-size: 9px; color: #e7f3f8; }
.wind-weather-legend__ticks span { position: absolute; transform: translateX(-50%); }
.wind-weather-legend__opacity { display: flex; align-items: center; gap: 6px; min-height: 22px; margin: 0 0 3px; font-size: 10px; }
.wind-weather-legend__opacity label { margin: 0; font-size: inherit; font-weight: 400; color: #e4f1f7; }
.wind-weather-legend__opacity input { flex: 1 1 0; min-width: 40px; width: 0; height: 22px; margin: 0; padding: 0; cursor: pointer; accent-color: #80dbe6; }
.wind-weather-legend__opacity input:focus-visible { outline: 2px solid #9ce5ec; outline-offset: 1px; border-radius: 4px; }
.wind-weather-legend__opacity-value { min-width: 30px; text-align: right; color: #f5fbff; font-variant-numeric: tabular-nums; }
.wind-weather-legend__status { font-size: 10px; min-height: 13px; }
.wind-weather-legend__meta { color: #d4e4ed; font-size: 10px; }
.wind-weather-legend__model { margin-top: 3px; }
.wind-weather-legend__timing { color: #c5dae5; font-size: 9.5px; }
.wind-weather-legend__source { display: block; margin-top: 4px; color: #c5e3ec !important; text-decoration: none; font-size: 9.5px; }
.wind-weather-legend__source a { color: inherit; text-decoration: none; }
.wind-weather-legend__source a:hover { color: #fff; text-decoration: underline; }
.wind-weather-legend--stale .wind-weather-legend__meta { color: #ffd994; }
.wind-weather-legend--stale .wind-weather-legend__timing { color: #f4d8a1; }
.wind-weather-tooltip { width: min(290px, calc(100vw - 20px)); font-size: 12px; line-height: 1.45; }
.event-wind-condition { margin-top: .65rem; padding-top: .65rem; border-top: 1px solid #8b9aa52b; }
.event-wind-condition__label { display: block; margin-bottom: .2rem; font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted, #6b7a87); }
.event-wind-condition__value { font-size: .85rem; font-weight: 600; color: var(--text-primary, #263b4a); }
.event-wind-condition__meta { margin-top: .2rem; font-size: .65rem; color: var(--text-muted, #6b7a87); }
.event-wind-condition__meta a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.event-wind-condition__toggle { display: inline-flex; align-items: center; gap: 6px; margin: 5px 0 0; min-height: 28px; font-size: .75rem; line-height: 1.35; color: var(--text-primary, #263b4a); cursor: pointer; }
.event-wind-condition__toggle input { flex: 0 0 auto; width: 15px; height: 15px; margin: 0; accent-color: #098a9d; }
.event-wind-condition__toggle:has(input:disabled) { color: var(--text-muted, #6b7a87); cursor: default; }
.event-wind-condition__toggle input:focus-visible { outline: 2px solid #168ca9; outline-offset: 2px; }
@media (pointer: coarse) {
  .wind-weather-toggle { width: 64px; min-height: 44px; gap: 6px; }
  .wind-weather-toggle__checkbox { width: 17px; height: 17px; min-width: 17px; min-height: 17px; }
  .event-wind-condition__toggle { min-height: 44px; }
}
@media (max-width: 640px) {
  .wind-weather-legend { width: 210px; padding: 7px 9px; }
  .wind-weather-legend__heading { margin-bottom: 4px; }
}
@media (prefers-reduced-motion: reduce) { .wind-weather-toggle { transition: none; } }
