#app_radar {
    position: fixed; inset: env(safe-area-inset-top) 0 calc(70px + env(safe-area-inset-bottom));
    width: 100%; max-width: none; margin: 0; padding: 0 !important;
    overflow: hidden; isolation: isolate; background: #d6e1e6;
}
#radar_map { position: absolute; inset: 154px 0 0; }
.wt-radar-panel { position: absolute; inset: 0 0 auto; z-index: 2; min-height: 154px; padding: 10px 12px 8px; color: #fff; background: #333e48; }
.wt-radar-sites, #radar_control { display: flex; align-items: center; gap: 8px; }
.wt-radar-sites { margin-bottom: 7px; }
#app_radar button { appearance: none; font: inherit; font-size: 13px; font-weight: 650; border: 1px solid #86939d; border-radius: 7px; padding: 8px 13px; min-height: 36px; background-color: #3f4d59; color: #fff; cursor: pointer; }
#app_radar button[aria-pressed="true"] { background: #f4f7fa; color: #263441; border-color: #f4f7fa; }
#app_radar button:focus-visible { outline: 3px solid #82caff; outline-offset: 2px; }
#app_radar button:disabled { opacity: .4; cursor: default; }
#radar_map_tag { font-size: 13px; font-weight: 650; line-height: 18px; }
#radar_map_detail { min-height: 18px; font-size: 11px; line-height: 16px; color: #dce6ed; }
#radar_control { margin-top: 5px; gap: 7px; }
#radar_control button { flex: 1; min-height: 34px; padding: 5px 7px; }
#app_radar #radar_retry { font-size: 11px; margin-left: auto; min-height: 30px; padding: 4px 9px; }
#app_radar #radar_retry[hidden] { display: none; }
#radar_map_segment_stat { height: 4px; display: flex; gap: 3px; margin-top: 7px; }
.radar_stat { flex: 1; background: #8296a6; border-radius: 2px; }
.radar_stat.is-current { background: #fff; }
.radar_stat.is-empty { opacity: .25; }
#app_radar .mapboxgl-ctrl-top-right { margin-top: 0; }
#app_radar .mapboxgl-ctrl-bottom-right { margin-bottom: 0; }
#app_radar .mapboxgl-ctrl button { border: 0; border-radius: 0; padding: 0; width: 32px; height: 32px; min-height: 32px; min-width: 32px; background-color: #fff; }
.wt-radar-map-tools { position: absolute; top: 166px; left: 12px; z-index: 3; }
#app_radar #radar-layers-button { display: flex; align-items: center; gap: 7px; padding: 7px 11px; background-color: rgba(27, 37, 46, .95); border-color: #66747f; box-shadow: 0 2px 8px #0005; }
#radar-layers-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.wt-radar-layers-panel { width: min(276px, calc(100vw - 24px)); margin-top: 8px; padding: 13px; border: 1px solid #63717c; border-radius: 10px; background: #26333f; color: #f1f5f8; box-shadow: 0 8px 28px #0007; max-height: calc(100vh - 300px); overflow: auto; }
.wt-radar-layers-panel[hidden] { display: none; }
.wt-radar-layers-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 14px; }
#app_radar #radar-layers-close { min-width: 30px; min-height: 30px; padding: 0; border: 0; background: none; font-size: 23px; line-height: 1; font-weight: 400; }
.wt-radar-layer-caption { margin-bottom: 7px; color: #aebcc7; font-size: 11px; font-weight: 600; }
.wt-radar-base-choices { display: flex; gap: 6px; }
#app_radar .wt-radar-base-choices button { flex: 1; min-width: 0; padding: 8px 6px; font-size: 12px; }
.wt-radar-map-hint { margin: 9px 0 12px; color: #b9c6d0; font-size: 11px; line-height: 1.45; }
.wt-radar-layer-toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 43px; font-size: 13px; border-top: 1px solid #a9bdca24; cursor: pointer; }
.wt-radar-layer-toggle input { width: 18px; height: 18px; margin: 0 2px; accent-color: #d6eafa; cursor: pointer; }
.wt-radar-layer-toggle input:focus-visible { outline: 3px solid #82caff; outline-offset: 3px; }
#radar-map-status { margin-bottom: 0; }
.wt-radar-coverage-note { max-width: 240px; margin-top: 6px; padding: 5px 8px; border-radius: 5px; background: rgba(10, 17, 24, .92); color: #c5d0d8; font-size: 11px; line-height: 1.4; }
.wt-radar-coverage-note[hidden] { display: none; }
.wt-radar-coverage-legend { position: absolute; bottom: 8px; left: 12px; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 4px 7px; border-radius: 4px; background: rgba(5, 10, 14, .82); color: #aebbc5; font-size: 10px; line-height: 16px; pointer-events: auto; }
.wt-radar-coverage-legend[hidden] { display: none; }
.wt-radar-coverage-legend span { width: 14px; height: 12px; border: 1px solid #7b8c994d; background: repeating-linear-gradient(135deg, transparent 0 4px, #b8c5cf66 4px 5px, transparent 5px 9px); }
#app_radar .mapboxgl-ctrl-attrib { margin: 0 7px 7px 0; padding: 2px 7px; border-radius: 4px; background: rgba(5, 10, 14, .8); font-size: 10px; line-height: 18px; }
#app_radar .mapboxgl-ctrl-attrib a { color: #bdc7cf; text-decoration: none; }
#app_radar .mapboxgl-ctrl-attrib a:hover { color: #fff; text-decoration: underline; }
@media (min-width: 700px) { #app_radar { bottom: 96px; } }
