:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #153a40; background: #f5f7f5; }
* { box-sizing: border-box; }
body { margin: 0; }
header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 4vw; background: white; border-bottom: 1px solid #dde5e1; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .2em; color: #508078; }
h1 { font-size: clamp(21px, 3vw, 30px); margin: 8px 0 0; font-weight: 650; }
.controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
label { font-size: 13px; }
select, button { font: inherit; padding: 11px 14px; border: 1px solid #c6d6d0; border-radius: 8px; background: white; color: #153a40; }
button { background: #155e58; color: white; border-color: #155e58; cursor: pointer; }
button:disabled { opacity: .5; cursor: wait; }
:focus-visible { outline: 3px solid #e5a844; outline-offset: 3px; }
main { padding: 0 4vw; }
.summary { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 20px 0; font-size: 13px; }
#count { font-size: 23px; }
#updated { margin-left: auto; color: #60766f; }
#status.error { color: #aa481d; }
#map { height: 65vh; min-height: 340px; border: 1px solid #cfddd7; border-radius: 12px; background: #e6efea; }
.note, footer { font-size: 12px; color: #63776f; line-height: 1.8; }
footer { padding: 10px 4vw 24px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
a { color: #256f68; }
.aircraft-icon { background: none; border: 0; }
.plane { display: block; width: 28px; height: 28px; color: #114e59; filter: drop-shadow(0 1px 2px white); }
.aircraft-detail { min-width: 180px; line-height: 1.8; }
.aircraft-detail strong { font-size: 17px; }
.aircraft-detail p { margin: 7px 0; }
.map-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 14px; }
.map-tools label { display: flex; align-items: center; gap: 6px; }
.map-tools input { accent-color: #155e58; width: 17px; height: 17px; }
.map-tools select { margin-left: auto; max-width: 100%; font-size: 13px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; margin-top: 12px; color: #5e646c; }
#weather-status { font-size: 12px; color: #60766f; }
.weather-warning, #weather-status.weather-warning { color: #a34a19; }
.airport-dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #574585; color: white; border: 2px solid white; box-shadow: 0 1px 4px #0005; font-size: 14px; }
.wind-label { display: inline-flex; align-items: center; gap: 4px; background: #fff8eb; color: #914d08; border: 1px solid #d4a263; padding: 2px 6px; border-radius: 6px; white-space: nowrap; font: 600 12px sans-serif; }
.wind-arrow { display: inline-block; font-size: 22px; line-height: 24px; }
.airport-detail { min-width: 220px; max-height: 340px; overflow-y: auto; line-height: 1.6; }
.airport-detail strong { display: block; font-size: 16px; margin-bottom: 8px; }
.airport-detail p { margin: 8px 0; }
.airport-detail button { font-size: 12px; padding: 6px 10px; }
.airport-detail pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; background: #f1f4f3; padding: 8px; }
.airport-detail summary { cursor: pointer; color: #155e58; font-weight: 600; }
.data-source { color: #66746d; font-size: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
[hidden] { display: none !important; }
#map-frame { position: relative; }
#fullscreen { position: absolute; top: 12px; right: 12px; z-index: 1000; box-shadow: 0 2px 8px #0002; font-size: 13px; }
#map-frame:fullscreen, #map-frame.fullscreen-fallback { width: 100vw; height: 100dvh; background: #e6efea; }
#map-frame.fullscreen-fallback { position: fixed; inset: 0; z-index: 9999; }
#map-frame:fullscreen #map, #map-frame.fullscreen-fallback #map { width: 100%; height: 100%; border: 0; border-radius: 0; }
body.map-fullscreen { overflow: hidden; }
.map-notes { border: 1px solid #b7cac2; border-left: 4px solid #548478; border-radius: 8px; padding: 4px 16px; margin: 20px 0 12px; background: #fff; }
.layer-status, #radar-controls { font-size: 12px; color: #60766f; }
#radar-controls { padding: 14px; background: #e8eeef; border-radius: 8px; margin-top: 10px; }
#radar-time { width: min(360px, 70vw); vertical-align: middle; accent-color: #155e58; }
#radar-controls p { margin-bottom: 0; }
#jma-panel { border: 1px solid #d2ded8; border-radius: 10px; padding: 0 16px 4px; margin-top: 16px; background: #fff; }
#jma-panel h2 { font-size: 15px; }
#jma-panel small { font-size: 11px; font-weight: 400; margin-left: 10px; color: #64746d; }
.bulletin { padding: 10px 12px; margin-bottom: 8px; border-radius: 6px; background: #f5f6f3; font-size: 12px; line-height: 1.8; }
.bulletin summary { cursor: pointer; font-weight: 600; }
#warnings-list > p, #tornadoes-list > p { font-size: 12px; color: #64746d; }
.sigmet-detail pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 220px; overflow-y: auto; font-size: 11px; }
.metadata { border-top: 1px solid #ddd; font-size: 11px; margin-top: 8px; }
.metadata button { font-size: 12px; padding: 7px; margin-top: 8px; }
.aircraft-detail { max-height: 340px; overflow-y: auto; max-width: 280px; }
@media (max-width: 680px) { header { align-items: flex-start; flex-direction: column; padding: 20px 4vw; gap: 18px; } #updated { margin-left: 0; } #map { height: 58vh; } .controls { gap: 8px; } }
