/* Lock the page to the viewport — every scrollable region (sidebar, main,
   side panels) handles its own overflow internally, so the outer document
   never shows a scrollbar. Default body margin would otherwise push 100vh
   layouts past the viewport edge. */
html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; }

h1:focus {
    outline: none;
}

/* Clicking a KMZ or flight line focuses its SVG <path>, and a browser draws the
   focus ring around a path's BOUNDING BOX rather than around the stroke — so
   clicking a survey line that runs twenty miles north puts a black rectangle
   across half the map. It reads as a selection artifact, and it is: the line
   answers a click with the info card on the map pages, and the open line is
   redrawn heavier (see selectImportedFeature in leaflet-interop.js), so the ring
   carries nothing the page isn't already showing. The map CONTAINER's own focus
   ring is untouched — that one marks real keyboard navigation.

   Deliberately broad (the <svg> and anything inside it) rather than `path` alone:
   which element ends up focused differs by browser, and every one of them is a
   Leaflet-drawn vector carrying no tabindex, so none is keyboard-reachable and
   none loses a real focus indicator here. */
.leaflet-container svg:focus,
.leaflet-container svg *:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Live Map — helicopter marker + system-name label */
.heli-icon {
    background: transparent;
    border: none;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
}
/* Inner wrapper the interop rotates to the GPS heading — Leaflet owns the
   icon root's transform for positioning, so rotation can't live there. */
.heli-icon .veh-rot {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
    will-change: transform;
}
.heli-icon .veh-rot svg { display: block; }
/* POS Processing's time cursor: smaller, and it follows the pointer, so no easing to lag behind. */
.heli-icon.pp-heli .veh-rot { transition: none; }
.heli-icon.pp-heli .veh-rot svg { width: 100%; height: 100%; }
.leaflet-tooltip.heli-label {
    background: rgba(15, 23, 42, 0.85);
    color: #f8fafc;
    border: none;
    border-radius: 6px;
    padding: 2px 8px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    text-align: center;
}
.leaflet-tooltip.heli-label.heli-label--online {
    background: #bbf7d0;
    color: #0f172a;
}
.leaflet-tooltip.heli-label.heli-label--offline {
    background: #fef08a;
    color: #0f172a;
}
.leaflet-tooltip.heli-label::before { display: none; }
.leaflet-tooltip.heli-label .heli-label-detail {
    display: block;
    max-width: 14em;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    font-size: 0.75rem;
}

/* Live Map — marker popup: Leaflet forces white on .leaflet-popup-content-wrapper and .leaflet-popup-tip */
.leaflet-popup:has(.heli-popup--online) .leaflet-popup-content-wrapper,
.leaflet-popup:has(.heli-popup--online) .leaflet-popup-tip {
    background: #bbf7d0 !important;
}
.leaflet-popup:has(.heli-popup--offline) .leaflet-popup-content-wrapper,
.leaflet-popup:has(.heli-popup--offline) .leaflet-popup-tip {
    background: #fef08a !important;
}
.leaflet-popup-content:has(.heli-popup-inner) {
    margin: 0 !important;
}

/* Per-feed status banner — shown on each system subpage (DAS, POS, Power, Cameras, Drives). */
.feed-status-banner {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .9rem;
    border-radius: 8px;
    margin: 0 0 .85rem 0;
    font-size: .9rem;
    line-height: 1.3;
}
.feed-status-banner.is-online {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.feed-status-banner.is-offline {
    background: #fef3c7;
    color: #78350f;
    border: 1px solid #fcd34d;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.feed-status-banner.is-waiting {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}
.feed-status-banner .feed-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 0 0 auto;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .65);
}
.feed-status-banner .feed-status-dot.is-online { background: #10b981; }
.feed-status-banner .feed-status-dot.is-offline { background: #d97706; }
.feed-status-banner .feed-status-dot.is-waiting { background: #94a3b8; }
.feed-status-banner.is-offline .feed-status-dot {
    animation: feed-status-pulse 1.6s ease-in-out infinite;
}
@keyframes feed-status-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}
.feed-status-banner .feed-status-text { flex: 1; }

/* Cellular signal icon (SignalBars control) — rising bars + a network-generation
   tag (5G/4G). Global (not CSS-isolated) to match the other shared controls. */
.sigbar { display: inline-flex; align-items: center; gap: .28rem; vertical-align: middle; line-height: 1; }
.sigbar-track { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.sigbar.lg .sigbar-track { height: 30px; gap: 3px; }
.sigbar-bar { width: 5px; background: #e2e8f0; border-radius: 1px; }
.sigbar.lg .sigbar-bar { width: 8px; border-radius: 2px; }
.sigbar-bar.lvl1 { height: 35%; }
.sigbar-bar.lvl2 { height: 55%; }
.sigbar-bar.lvl3 { height: 78%; }
.sigbar-bar.lvl4 { height: 100%; }
.sigbar-bar.on { background: #22c55e; }
.sigbar-track.weak .sigbar-bar.on { background: #f59e0b; }
.sigbar-track.bad .sigbar-bar.on { background: #ef4444; }
.sigbar-net { font-size: .62rem; font-weight: 700; letter-spacing: .02em; color: #475569; }
.sigbar.lg .sigbar-net { font-size: .8rem; }
/* Ortho coverage mask — the raster of ground that was inside at least one frame,
   drawn as a Leaflet image overlay (leafletInterop.addCoverageMask). Nearest-neighbour
   scaling is deliberate: the browser would otherwise smooth the edge of the swath into
   a soft gradient, and the edge is exactly what an operator reads to decide whether the
   ground beside a line was covered. Global rather than page-scoped because the element
   is created by Leaflet inside the map pane, where CSS isolation does not reach. */
/* Pick-on-map mode (leaflet-pick.js). Global: Leaflet builds this DOM, not a component. */
.leaflet-container.map-picking, .leaflet-container.map-picking .leaflet-interactive { cursor: crosshair; }
/* Every top-left map control is ONE 40 px square: a 36 px face in a 2 px border, the look
   Leaflet gives its own controls on touch, used on every device. Stock, the zoom buttons were
   26 or 30 px and the basemap switcher 36 or 44 px, depending on .leaflet-touch. leaflet.css
   loads AFTER this file, so each rule here carries one class more than the stock rule it beats. */
.leaflet-container .leaflet-control-container .leaflet-bar,
.leaflet-container .leaflet-control-container .leaflet-control-layers,
.leaflet-container .leaflet-control-container .weather-box,
.leaflet-container .leaflet-control-container .map-tools { border: 2px solid rgba(0,0,0,.2); border-radius: 5px; box-shadow: none; background-clip: padding-box; }
.leaflet-container .leaflet-control-container .leaflet-bar a { width: 36px; height: 36px; line-height: 36px; font-size: 20px; }
.leaflet-container .leaflet-control-container .leaflet-control-layers-toggle { width: 36px; height: 36px; background-size: 28px 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' stroke-linejoin='round'%3E%3Cpath d='M13 11L23 16L13 21L3 16Z' fill='%23bfdbfe' stroke='%231e40af' stroke-width='1.3'/%3E%3Cpath d='M13 7L23 12L13 17L3 12Z' fill='%2360a5fa' stroke='%231e40af' stroke-width='1.3'/%3E%3Cpath d='M13 3L23 8L13 13L3 8Z' fill='%232563eb' stroke='%231e3a8a' stroke-width='1.3'/%3E%3C/svg%3E"); }
/* An inset's Street ⇄ Satellite square (addBasemapToggle, leaflet-core.js). Lit while imagery is on. */
.leaflet-container .leaflet-control-container a.map-basemap-toggle-btn { background: #fff no-repeat 50% 50% / 28px 28px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' stroke-linejoin='round'%3E%3Cg transform='rotate(-35 13 13)'%3E%3Cpath d='M8.5 13H10M16 13H17.5' stroke='%23374151' stroke-width='1.3'/%3E%3Crect x='1.5' y='9.5' width='7' height='7' rx='.6' fill='%233b82f6' stroke='%231e3a8a' stroke-width='1.1'/%3E%3Cpath d='M5 9.5V16.5M1.5 13H8.5' stroke='%231e3a8a' stroke-width='.8'/%3E%3Crect x='17.5' y='9.5' width='7' height='7' rx='.6' fill='%233b82f6' stroke='%231e3a8a' stroke-width='1.1'/%3E%3Cpath d='M21 9.5V16.5M17.5 13H24.5' stroke='%231e3a8a' stroke-width='.8'/%3E%3Crect x='10' y='9' width='6' height='8' rx='1' fill='%23e5e7eb' stroke='%23374151' stroke-width='1.2'/%3E%3Cpath d='M13 9V6.5' stroke='%23374151' stroke-width='1.2'/%3E%3Ccircle cx='13' cy='5' r='1.6' fill='%23f59e0b' stroke='%2392400e' stroke-width='.8'/%3E%3C/g%3E%3C/svg%3E"); }
.leaflet-container .leaflet-control-container a.map-basemap-toggle-btn:hover { background-color: #f4f4f4; }
.leaflet-container .leaflet-control-container a.map-basemap-toggle-btn.is-active { background-color: #dbeafe; }
.leaflet-container .leaflet-control-container a.map-basemap-toggle-btn.is-active:hover { background-color: #bfdbfe; }
/* An opened control keeps its square, lit, and opens its list BESIDE it to the right, never in
   place: a list that grew down the stack covered the squares under it, the ones a pointer moving
   down the column is reaching for. The basemap switcher, the toolbox and the weather box here; a
   page's layer squares in HotelsFbos.razor.css. The 6 px gap is crossed inside the hover-close
   delay (hoverPanel, leaflet-core.js). */
.leaflet-container .leaflet-control-container .leaflet-control-layers-expanded { padding: 0; }
.leaflet-container .leaflet-control-container .leaflet-control-layers-expanded .leaflet-control-layers-toggle,
.map-tools.is-expanded .map-tools-toggle,
.weather-box.is-expanded .weather-box-toggle { display: block; background-color: #f4f4f4; }
.leaflet-container .leaflet-control-container .leaflet-control-layers-expanded .leaflet-control-layers-list,
.map-tools.is-expanded .map-tools-body,
.weather-box.is-expanded .weather-box-body { display: block; position: absolute; top: -2px; left: calc(100% + 6px);
    background: #fff; border: 2px solid rgba(0,0,0,.2); border-radius: 5px; background-clip: padding-box; }
.leaflet-container .leaflet-control-container .leaflet-control-layers-expanded .leaflet-control-layers-list { padding: 6px 10px 6px 6px; white-space: nowrap; }
/* Measure tools (leaflet-measure.js). Global for the same reason as pick mode. */
.leaflet-container.map-measuring, .leaflet-container.map-measuring .leaflet-interactive { cursor: crosshair; }
.map-measure-label { font-size: .8rem; font-weight: 600; color: #0f172a; }
.map-tools { background: #fff; }
.map-tools-toggle { display: block; width: 36px; height: 36px; border-radius: 3px; background: no-repeat 50% 50% / 26px 26px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' stroke-linejoin='round'%3E%3Cpath d='M9 10V7.5A1.5 1.5 0 0 1 10.5 6H15.5A1.5 1.5 0 0 1 17 7.5V10' fill='none' stroke='%23374151' stroke-width='1.9'/%3E%3Crect x='3' y='10' width='20' height='11.5' rx='1.8' fill='%23dc2626' stroke='%23991b1b' stroke-width='1.2'/%3E%3Cpath d='M3.6 14.8H22.4' stroke='%23991b1b' stroke-width='1.2'/%3E%3Crect x='11.2' y='13' width='3.6' height='3.6' rx='.6' fill='%23fbbf24' stroke='%2392400e' stroke-width='.8'/%3E%3C/svg%3E"); }
.map-tools-toggle:hover { background-color: #f4f4f4; }
/* A tool is in use: the square becomes the stop button (leaflet-measure.js). */
.map-tools-toggle.is-active { background-color: #fee2e2; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Ccircle cx='13' cy='13' r='10' fill='%23dc2626'/%3E%3Cpath d='M9 9L17 17M17 9L9 17' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.map-tools-toggle.is-active:hover { background-color: #fecaca; }
.map-tools-body { display: none; padding: .3rem; }
.leaflet-container a.map-tools-item { display: flex; align-items: center; gap: .5rem; padding: .3rem .6rem .3rem .3rem; border-radius: 4px; color: #0f172a; font-size: .8rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.leaflet-container a.map-tools-item:hover { background: #f1f5f9; }
.leaflet-container a.map-tools-item.is-active { background: #dbeafe; }
.map-tools-icon { flex: 0 0 auto; width: 24px; height: 24px; background: no-repeat 50% 50% / 24px 24px; }
.map-tools-line .map-tools-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cg transform='rotate(-45 13 13)'%3E%3Crect x='2.5' y='9' width='21' height='8' rx='1.2' fill='%23fde68a' stroke='%23b45309' stroke-width='1.4'/%3E%3Cpath d='M6.5 9v3.4M10.5 9v2.2M14.5 9v3.4M18.5 9v2.2' stroke='%2392400e' stroke-width='1.3'/%3E%3C/g%3E%3C/svg%3E"); }
.map-tools-path .map-tools-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M4 20L10 9L16 16L22 5' fill='none' stroke='%2315803d' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cg fill='%23ffffff' stroke='%2315803d' stroke-width='1.5'%3E%3Ccircle cx='4' cy='20' r='2.2'/%3E%3Ccircle cx='10' cy='9' r='2.2'/%3E%3Ccircle cx='16' cy='16' r='2.2'/%3E%3Ccircle cx='22' cy='5' r='2.2'/%3E%3C/g%3E%3C/svg%3E"); }
.map-tools-circle .map-tools-icon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Ccircle cx='13' cy='13' r='10' fill='%23dbeafe' stroke='%232563eb' stroke-width='1.8'/%3E%3Cpath d='M13 13L21.5 8.5' stroke='%231e3a8a' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='13' cy='13' r='1.7' fill='%231e3a8a'/%3E%3C/svg%3E"); }

/* AO › Planning's map: the same squares a size larger (a 42 px face), asked for on that page,
   where the controls are the main way in. Its own layer squares match in HotelsFbos.razor.css. */
.ao .leaflet-container .leaflet-control-container .leaflet-bar a { width: 42px; height: 42px; line-height: 42px; font-size: 23px; }
.ao .leaflet-container .leaflet-control-container .leaflet-control-layers-toggle { width: 42px; height: 42px; background-size: 32px 32px; }
.ao .leaflet-container .map-tools-toggle { width: 42px; height: 42px; background-size: 30px 30px; }
.ao .leaflet-container .weather-box-toggle { width: 42px; height: 42px; background-size: 32px 32px; }

.coverage-mask { image-rendering: pixelated; image-rendering: crisp-edges; }
/* Live Map weather box — Wind / Precip type / Radar drawn over the basemap from NOAA
   (leaflet-weather.js). Global rather than page-scoped for the same reason
   .coverage-mask is: Leaflet builds the control inside the map container, where Blazor's
   CSS isolation does not reach. */
/* Its square, border and size come from the one-size rule for every map control, above. */
.weather-box { background: #fff; }
.weather-box-toggle { position: relative; display: block; width: 36px; height: 36px; border-radius: 3px; background-position: 50% 50%; background-repeat: no-repeat; background-size: 28px 28px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 1.8V3.4M1.8 9H3.4M3.9 3.9L5 5M14.1 3.9L13 5M3.9 14.1L5 13' stroke='%23f59e0b' stroke-width='1.7'/%3E%3Ccircle cx='9' cy='9' r='4.3' fill='%23fbbf24' stroke='%23d97706' stroke-width='1'/%3E%3Cpath d='M8.5 22H19A3.6 3.6 0 0 0 19.4 14.8A5.2 5.2 0 0 0 9.6 13.6A4.2 4.2 0 0 0 8.5 22Z' fill='%23ffffff' stroke='%23475569' stroke-width='1.6'/%3E%3C/svg%3E"); }
.weather-box-toggle:hover { background-color: #f4f4f4; }
/* A layer is drawing. Without this the only evidence of what is switched on is the weather
   itself, which is the thing the operator is trying to read. */
.weather-box-toggle.is-active { background-color: #eef2ff; }
/* Something failed. The panel is closed most of the time, so this dot is what stops a dead
   layer from passing as clear skies until somebody happens to hover. */
.weather-box-toggle.has-issue::after { content: ""; position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: #dc2626; box-shadow: 0 0 0 2px #fff; }
/* Hover opens the panel beside the icon, as the layers control does (the flyout rule, above). */
/* max-height is set from the map's height when the panel opens (fitWeatherBox). */
.weather-box-body { display: none; width: 15rem; padding: .5rem .6rem .55rem; font-size: .8rem; color: #334155; overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; }
.weather-box-head { margin-bottom: .35rem; padding-bottom: .3rem; border-bottom: 1px solid #e2e8f0; color: #0f172a; }
.weather-row { display: flex; align-items: flex-start; gap: .45rem; padding: .22rem 0; cursor: pointer; }
.weather-row:has(.weather-row-check:disabled) { cursor: default; opacity: .55; }
.weather-row-check { margin-top: .18rem; flex: 0 0 auto; cursor: pointer; }
.weather-row-text { display: flex; flex-direction: column; min-width: 0; }
.weather-row-name { color: #0f172a; font-weight: 600; }
.weather-row-hint { color: #64748b; font-size: .7rem; line-height: 1.25; }
/* The gust reading, which is a measurement at one airport rather than part of the flow above
   it, and reads as one only if it is set apart from the rows. */
.weather-gusts { margin: .35rem 0 .1rem; padding: .3rem .4rem; background: #f1f5f9; border-radius: 4px; color: #0f172a; font-size: .74rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.weather-gusts-main { font-weight: 600; }
.weather-gusts-sub { color: #64748b; font-size: .68rem; }
/* The particles sub-toggle sits under the row it qualifies, indented to read as part of it
   without pretending to be a fourth layer. */
.weather-row--sub { margin-left: 1.15rem; padding-top: 0; }
/* Wind is not the chosen layer, so its overlay has nothing to sit on. */
.weather-row--sub.is-unavailable { opacity: .45; cursor: default; }
.weather-row--sub .weather-row-name { font-weight: 500; }
/* The height the wind flow is read at: three radios on one line under the Wind row. */
.wind-level { display: flex; align-items: center; flex-wrap: wrap; gap: .15rem .55rem; padding: .1rem 0 .2rem; font-size: .7rem; color: #334155; }
/* Its own line, so the three options always sit together on the next one at panel width. */
.wind-level-label { flex-basis: 100%; color: #64748b; font-size: .66rem; }
.wind-level-option { display: inline-flex; align-items: center; gap: .2rem; cursor: pointer; white-space: nowrap; }
.wind-level-option input { margin: 0; cursor: pointer; }
.wind-level.is-unavailable { opacity: .45; }
/* The Clouds row's product choice, indented under its row like the wind level. */
.cloud-product { margin-left: 1.15rem; }
/* GFA cloud images are CATEGORY maps at ~10 km a pixel: smoothing them on upscale blends
   neighbouring categories into colours that are on no legend. */
.weather-gfa-image { image-rendering: pixelated; image-rendering: crisp-edges; }
/* The sun at the map centre: always shown, whichever row is on. */
.weather-sun { margin: .35rem 0 .1rem; padding: .3rem .4rem; border: 1px solid #e2e8f0; border-radius: 4px; font-size: .72rem; line-height: 1.3; color: #0f172a; font-variant-numeric: tabular-nums; }
.weather-sun-head { display: flex; align-items: center; justify-content: space-between; gap: .4rem; }
.weather-sun-title { color: #64748b; font-size: .66rem; }
.weather-sun-min { display: inline-flex; align-items: center; gap: .25rem; color: #64748b; font-size: .66rem; }
.weather-sun-min select { font-size: .66rem; padding: 0 .15rem; }
.weather-sun-now { font-weight: 600; }
/* Below the operator's minimum right now: the one thing to see at a glance. */
.weather-sun-now.is-low { color: #b45309; }
.weather-sun-window { color: #475569; }
/* Under the Sun row, indented like the other rows' details. */
.weather-layer-extra .weather-sun { margin-left: 1.15rem; }
/* The sun chip under the pointer: green when that ground can be imaged now, orange when the
   sun there is below the operator's minimum. */
.sun-hover-chip .wind-hover-main.is-ok { color: #86efac; }
.sun-hover-chip .wind-hover-main.is-low { color: #fdba74; }
.wind-level.is-unavailable .wind-level-option, .wind-level.is-unavailable input { cursor: default; }
/* How many samples the direction field rests on. Not decoration: the particles interpolate
   just as smoothly over two readings as over twenty. */
.weather-note { margin: .1rem 0 .1rem 1.15rem; color: #64748b; font-size: .68rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
/* The speed ramp the particles are coloured by. */
.wind-legend { margin: .3rem 0 .15rem 1.15rem; }
.wind-legend-bar { display: flex; height: 6px; border-radius: 3px; border: 1px solid rgba(15,23,42,.15); overflow: hidden; }
.wind-legend-cell { flex: 1; }
/* Six equal grid columns under six equal swatches: a left-aligned label in column N sits
   exactly on swatch N's left edge, i.e. on the bin boundary it names. */
.wind-legend-scale { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: .1rem; color: #64748b; font-size: .62rem; font-variant-numeric: tabular-nums; }
.wind-legend-scale span { white-space: nowrap; }
/* Radar ticks sit at their dBZ value along the gradient, not in even columns. */
.radar-legend-scale { position: relative; height: .85rem; margin-top: .1rem; color: #64748b; font-size: .62rem; font-variant-numeric: tabular-nums; }
.radar-legend-scale span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.radar-legend-scale span:first-child { transform: none; }
.precip-legend { display: grid; grid-template-columns: 1fr 1fr; gap: .1rem .5rem; margin: .3rem 0 .15rem 1.15rem; color: #475569; font-size: .64rem; }
.precip-legend-item { display: flex; align-items: center; gap: .3rem; white-space: nowrap; }
.precip-legend-swatch { flex: 0 0 auto; width: .7rem; height: .5rem; border-radius: 2px; border: 1px solid rgba(15,23,42,.15); }
/* Wind under the pointer, after a second of stillness. Never a click target itself — it sits
   over the map and would otherwise swallow the clicks meant for whatever is under it. */
.wind-hover-chip { position: absolute; z-index: 1000; pointer-events: none; background: rgba(15,23,42,.92); color: #f8fafc; border-radius: 6px; padding: .45rem .65rem; font-size: .95rem; line-height: 1.35; box-shadow: 0 2px 8px rgba(15,23,42,.35); white-space: nowrap; }
.wind-hover-main { font-weight: 700; font-variant-numeric: tabular-nums; }
.wind-hover-sub { color: #cbd5e1; font-size: .85rem; }
/* No colour filter on the weather pane itself: the MRMS palettes are keyed in the box, and a
   saturate() here would put colours on the map that the legend does not show. */
.leaflet-weatherParticles-pane { pointer-events: none; }
/* Only while something is drawn over it, so a map with no weather on looks untouched. */
.leaflet-container.weather-active .leaflet-tile-pane { filter: grayscale(.6) contrast(.92) brightness(1.04); }
.weather-opacity { display: flex; align-items: center; gap: .4rem; margin-top: .45rem; padding-top: .4rem; border-top: 1px solid #e2e8f0; }
.weather-opacity-label { color: #64748b; font-size: .72rem; }
.weather-opacity-range { flex: 1; min-width: 0; cursor: pointer; }
/* Wind is selected: the slider only reaches the rasters, so it greys rather than sitting
   there doing nothing. */
.weather-opacity.is-unavailable { opacity: .45; }
.weather-opacity.is-unavailable .weather-opacity-range { cursor: default; }
.weather-opacity-value { flex: 0 0 auto; width: 2.4rem; text-align: right; color: #475569; font-size: .72rem; font-variant-numeric: tabular-nums; }
/* Red, and never display:none while it holds text: every way this box can fail ends here,
   because a weather layer drawing nothing is indistinguishable from clear skies. */
.weather-status { margin-top: .4rem; color: #b91c1c; font-size: .72rem; line-height: 1.3; }
.weather-credit { margin-top: .35rem; color: #94a3b8; font-size: .66rem; }
/* TFRs: their own section under the weather rows, because they draw ON TOP of a row rather
   than instead of one. */
.weather-section { margin-top: .45rem; padding-top: .35rem; border-top: 1px solid #e2e8f0; color: #64748b; font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; }
/* Line samples, not fills: the map draws these as outlines, and the dash says as much as the colour. */
.tfr-legend { display: flex; flex-direction: column; gap: .1rem; margin: .25rem 0 .15rem 1.15rem; color: #475569; font-size: .64rem; }
.tfr-legend-item { display: flex; align-items: center; gap: .35rem; }
.tfr-legend-swatch { flex: 0 0 auto; width: 1.1rem; height: 0; border-top: 2px solid; }
.tfr-legend-swatch--scheduled { border-top-style: dashed; }
.tfr-legend-swatch--later { border-top-style: dotted; }
/* The TFRs in view. Not capped: a second scroll box inside the scrolling panel showed five
   lines of fifty, and the panel's own scroll reaches everything below it. */
.tfr-list { display: flex; flex-direction: column; gap: .3rem; margin: .3rem 0 .2rem 1.15rem; }
/* One card per TFR, the left bar in its status colour. */
.tfr-card { padding: .25rem .4rem .3rem; border: 1px solid #e2e8f0; border-left: 3px solid #94a3b8; border-radius: 3px; background: #f8fafc; font-size: .68rem; line-height: 1.3; color: #334155; font-variant-numeric: tabular-nums; }
.tfr-card-head { display: flex; align-items: baseline; gap: .35rem; }
.tfr-card-title { flex: 1; min-width: 0; font-weight: 700; color: #0f172a; text-decoration: none; }
.tfr-card-title:hover { text-decoration: underline; }
.tfr-card-place { color: #64748b; }
.tfr-card-status { font-weight: 600; }
.tfr-card--active .tfr-card-status { color: #b91c1c; }
.tfr-card--scheduled .tfr-card-status { color: #c2410c; }
.tfr-card--later .tfr-card-status { color: #854d0e; }
/* The no-outline list keeps plain lines: it is reference, collapsed by default. */
.tfr-list-item { display: flex; align-items: baseline; gap: .35rem; padding: .15rem 0; font-size: .66rem; line-height: 1.25; color: #334155; }
.tfr-missing .tfr-list-item + .tfr-list-item { border-top: 1px solid #f1f5f9; }
.tfr-link { flex: 0 0 auto; color: #2563eb; font-size: .64rem; white-space: nowrap; }
.tfr-missing { margin: .2rem 0 .1rem 1.15rem; color: #92400e; font-size: .66rem; }
.tfr-missing summary { cursor: pointer; }
.tfr-missing .tfr-list-item { color: #475569; }
/* FAA descriptions run long; this chip wraps where the wind and sun chips do not. */
.tfr-hover-chip { white-space: normal; max-width: 24rem; }
.tfr-hover-chip .wind-hover-main.tfr-hover-active { color: #fca5a5; }
.tfr-hover-chip .wind-hover-main.tfr-hover-scheduled { color: #fdba74; }
.tfr-hover-chip .wind-hover-main.tfr-hover-later { color: #fde68a; }


/* ---- One run's account of itself, as chips ------------------------------------------------
   Shared by FootprintSetStats, SwathRunStats and ProbeRunStats, and site-wide rather than
   scoped to each of them BECAUSE they are three components: Blazor rewrites a .razor.css
   selector with its own component's attribute, so a scoped copy reaches only its own markup
   and the vocabulary had to be repeated verbatim three times. These rules say how a sensor
   reports what its run was short of, and three sensors drifting into three visual languages
   would read as three different kinds of claim. One copy is the only way that cannot happen. */
.fp-cam-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    align-items: center;
    margin-top: .3rem;
    font-size: .75rem;
    color: #475569;
}
/* Every way a run can be less than it looks gets a chip rather than a silence. The warn tint is
   reserved for the ones that change what the picture MEANS — a refused swath drew nothing at all,
   a capped set stops dead mid-pass, an unoriented frame drew nothing, and a reading that could not
   be placed is one this layer will never show. A plain chip is a figure worth reading, not a
   fault. */
.fp-chip {
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 0 .4rem;
    font-size: .7rem;
    white-space: nowrap;
}
.fp-chip.is-warn { border-color: #fca5a5; background: #fef2f2; color: #b91c1c; }
.fp-cam-note { margin: .2rem 0 0; font-size: .72rem; color: #64748b; line-height: 1.35; }

/* The note downloads.js places under a Download scene / Download camera button when the
   download cannot start. Positioned in page coordinates, so it stays beside its row when the
   tree scrolls. Click to dismiss; it also goes by itself after twelve seconds. */
.cc-download-note {
    position: absolute;
    z-index: 1100;
    max-width: 360px;
    padding: .45rem .65rem;
    border-radius: 6px;
    background: #0f172a;
    color: #f8fafc;
    font-size: .82rem;
    line-height: 1.35;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .25);
    cursor: pointer;
}

/* A line row's name as a real Live Map link, for Ctrl+click, a new tab and the keyboard. The
   row's own click covers the rest of it, so the name keeps the row's look. */
a.row-link { color: inherit; text-decoration: none; }
a.row-link:hover, a.row-link:focus-visible { text-decoration: underline; }
