:root {
  color-scheme: dark;
  --bg: #101820;
  --panel: #16212b;
  --border: #2a3743;
  --text: #edf3f6;
  --muted: #a4b4c1;
  --accent: #76e0bd;
  --amber: #ffd28b;
  --red: #ffa49f;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  color: inherit;
}
button:disabled,
input:disabled {
  cursor: default;
  opacity: 0.35;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
}
button svg,
.ui-icon {
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
select {
  color: var(--text);
  background: #1c2935;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 10px 30px 10px 12px;
  min-height: 40px;
}
select:hover {
  border-color: #5a7285;
}
.app-shell {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(160px, 1fr) auto;
  overflow: hidden;
}
.header {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  z-index: 500;
  background: var(--bg);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 19px;
  font-weight: 670;
  letter-spacing: -0.6px;
  margin-right: 12px;
  white-space: nowrap;
}
.brand svg {
  width: 37px;
  height: 37px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.35;
}
.brand .radar-dot {
  fill: var(--accent);
}
.brand small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  font-weight: 550;
  letter-spacing: 2px;
  margin-top: 2px;
}
.station-control {
  display: flex;
  align-items: center;
  gap: 12px;
}
.station-control label {
  font-size: 11px;
  color: var(--muted);
  max-width: 40px;
  line-height: 1.35;
}
.station-control select {
  font-size: 13px;
  min-width: 190px;
}
.product-control {
  display: flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 8px;
  gap: 3px;
}
.product-control button {
  border-radius: 5px;
  min-height: 34px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.product-control button[aria-pressed="true"] {
  background: #2c443f;
  color: #b4f5de;
}
.product-control button:hover {
  background: #26333c;
}

.product-control button:disabled {
  opacity: 0.35;
  cursor: default;
}
.source-details {
  position: relative;
  color: var(--muted);
  font-size: 11px;
  margin-top: 8px;
}
.source-details summary {
  cursor: pointer;
  width: fit-content;
  padding: 3px 0;
}
.source-details #source-list {
  position: absolute;
  bottom: 24px;
  left: 0;
  z-index: 1200;
  background: #17232d;
  border: 1px solid #344450;
  border-radius: 8px;
  padding: 12px 14px;
  line-height: 1.8;
  width: max-content;
  max-width: calc(100vw - 48px);
  box-shadow: 0 5px 18px #0006;
}
.header-actions {
  display: flex;
  gap: 5px;
  margin-left: auto;
}
.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #c1cfda;
}
.icon-button:hover:not(:disabled) {
  background: #2a3843;
  color: white;
}
.map-region {
  position: relative;
  min-height: 0;
  isolation: isolate;
  background: #1d252c;
}
#map {
  position: absolute;
  inset: 0;
  background: #1d252c;
  z-index: 0;
}
.leaflet-container {
  font-family: inherit;
}
.leaflet-container .leaflet-control-attribution {
  font-size: 9px;
  background: rgba(18, 27, 35, 0.86);
  color: #a4b4c1;
  max-width: 85%;
}
.leaflet-container .leaflet-control-attribution a {
  color: #c4d5dc;
}
.basemap-dark .leaflet-basemap-pane .leaflet-tile {
  filter: invert(1) hue-rotate(180deg) saturate(0.25) brightness(0.82)
    contrast(0.88);
}
.leaflet-control-zoom {
  border: 1px solid var(--border) !important;
  box-shadow: 0 2px 9px #0003 !important;
  border-radius: 7px !important;
  overflow: hidden;
}
.leaflet-control-zoom a {
  background: var(--bg) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
  width: 38px !important;
  height: 38px !important;
  line-height: 38px !important;
}
.leaflet-right .leaflet-control {
  margin-right: 20px;
}
.leaflet-top .leaflet-control {
  margin-top: 20px;
}
.map-caption {
  position: absolute;
  left: 24px;
  top: 22px;
  z-index: 450;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-shadow:
    0 1px 4px #000,
    0 0 8px #000;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #b9cbd5;
}
#product-description {
  font-size: 20px;
  letter-spacing: -0.4px;
  font-weight: 560;
}
.notice {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  z-index: 451;
  max-width: min(540px, 55%);
  padding: 10px 15px;
  border: 1px solid #645342;
  background: #2d2a24f2;
  border-radius: 7px;
  color: #ffe0aa;
  font-size: 12px;
  line-height: 1.5;
  box-shadow: 0 3px 12px #0002;
}
.weather-legend {
  position: absolute;
  left: 24px;
  top: 86px;
  z-index: 450;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: min(720px, calc(100% - 110px));
  pointer-events: none;
}
.weather-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 25px;
  padding: 4px 8px;
  border: 1px solid #455561a8;
  border-radius: 999px;
  background: #111c25e8;
  color: #dbe6ec;
  font-size: 10px;
  font-weight: 600;
  box-shadow: 0 2px 8px #0004;
}
.weather-chip::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--chip-color, var(--accent));
  content: "";
}
.weather-chip.stale {
  color: var(--amber);
  border-color: #705f46;
}
.weather-chip.error {
  color: var(--red);
  border-color: #704948;
}
.legend {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 450;
  width: 248px;
  background: #111c25ee;
  border: 1px solid #45556180;
  border-radius: 7px;
  padding: 12px 14px;
  pointer-events: none;
}
.legend-heading {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #c7d6de;
  margin-bottom: 8px;
}
.legend-heading span:first-child {
  font-weight: 650;
}
.legend-heading span:last-child {
  color: #97aebc;
}
.legend-scale {
  height: 7px;
  border-radius: 2px;
}
.legend-scale.reflectivity {
  background: linear-gradient(
    90deg,
    #00ecec 0%,
    #0164f6 10%,
    #00cc31 20%,
    #00be00 30%,
    #99d300 40%,
    #e8bf00 50%,
    #ff5600 60%,
    #dd0000 70%,
    #cd0033 80%,
    #bf35dd 90%,
    #000000 100%
  );
}
.legend-scale.velocity {
  background: linear-gradient(
    90deg,
    #90009f 0%,
    #00f600 10%,
    #00ce00 20%,
    #00aa00 30%,
    #007d00 40%,
    #789677 50%,
    #8e4747 60%,
    #9a0000 70%,
    #be0000 80%,
    #e60000 90%,
    #ff0000 100%
  );
}
.legend-labels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  color: #b9cbd5;
  margin-top: 5px;
}
.recenter {
  position: absolute;
  top: 108px;
  right: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  z-index: 450;
  width: 40px;
  height: 40px;
}
.basemap-notice {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  max-width: 60%;
  font-size: 11px;
  background: var(--bg);
  padding: 8px 12px;
  border-radius: 5px;
  z-index: 450;
  color: var(--amber);
}
.empty-state {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 450;
  text-align: center;
  width: min(340px, 85%);
  padding: 28px;
  background: #14202bed;
  border: 1px solid #3c5262;
  border-radius: 12px;
  box-shadow: 0 8px 50px #0003;
}
.empty-state > svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.4;
}
.empty-state h1 {
  font-size: 18px;
  font-weight: 600;
  margin: 14px 0 8px;
}
.empty-state p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 18px;
}
.primary-button {
  background: var(--accent);
  border-radius: 6px;
  color: #0a3024;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 700;
}
.controls {
  position: relative;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 12px 24px 10px;
  z-index: 500;
}
.scan-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  gap: 10px;
}
.feed-status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 18px;
  font-weight: 550;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px #76e0bd12;
}
.status-dot.stale,
.status-dot.partial {
  background: var(--amber);
  box-shadow: 0 0 0 4px #ffd28b12;
}
.status-dot.error {
  background: var(--red);
  box-shadow: 0 0 0 4px #ffa49f12;
}
.status-dot.loading {
  background: var(--muted);
  box-shadow: none;
}
.scan-time {
  display: flex;
  gap: 12px;
  align-items: center;
  font-variant-numeric: tabular-nums;
}
#frame-label {
  color: var(--muted);
}
#scan-time {
  color: #dce7ee;
  font-weight: 500;
}
.playback-row {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 9px 0 7px;
}
.transport {
  display: flex;
  align-items: center;
  gap: 6px;
}
.play-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #12372a;
}
.play-button:hover:not(:disabled) {
  background: #b0f3db;
}
.play-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke-width: 1;
}
.timeline {
  flex: 1;
  min-width: 30px;
  padding-top: 5px;
}
input[type="range"] {
  accent-color: var(--accent);
  width: 100%;
  margin: 0;
  cursor: pointer;
  height: 18px;
}
.timeline input[type="range"] {
  display: block;
}
.timeline-labels {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 9px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.window-control select {
  min-width: 158px;
  font-size: 11px;
  min-height: 38px;
}
.footer-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  color: #8fa3b3;
  border-top: 1px solid #24313c;
  padding-top: 8px;
}
.footer-note a {
  text-decoration: none;
  color: #a9bfca;
}
.footer-note a:hover {
  text-decoration: underline;
  color: var(--accent);
}
.separator {
  padding: 0 5px;
  color: #425663;
}
.station-pin {
  background: #122b25;
  border: 2px solid #82e2c1;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #111c2590;
}
.station-tooltip {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text);
  box-shadow: none;
  font-size: 11px;
}
.station-tooltip.leaflet-tooltip-top:before {
  border-top-color: var(--border);
}
dialog {
  width: 350px;
  max-width: calc(100% - 32px);
  max-height: min(90vh, 760px);
  overflow-y: auto;
  background: var(--panel);
  color: var(--text);
  border: 1px solid #405362;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 20px 80px #0006;
}
dialog::backdrop {
  background: #05101b99;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.dialog-heading h2 {
  font-size: 18px;
  margin: 0;
  font-weight: 600;
}
.dialog-heading button {
  font-size: 27px;
  width: 30px;
  height: 30px;
}
.setting-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin: 20px 0 12px;
}
.setting-label output {
  color: var(--accent);
}
dialog select {
  width: 100%;
  font-size: 12px;
}
.check-setting {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  margin: 20px 0;
}
.setting-heading {
  margin: 18px 0 10px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-weight: 600;
}
.overlay-setting {
  padding: 7px 0;
  border-bottom: 1px solid #2a374380;
}
.overlay-setting .check-setting {
  margin: 5px 0;
}
.overlay-setting .check-setting > span:nth-child(2) {
  flex: 1;
}
.overlay-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 7px 0 3px 26px;
  color: var(--muted);
  font-size: 11px;
}
.overlay-option input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin-right: 2px;
}
.overlay-check-option {
  justify-content: flex-start;
}
.overlay-option select {
  width: 88px;
  min-height: 32px;
  padding: 5px 24px 5px 8px;
}
.overlay-status {
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.overlay-status.stale {
  color: var(--amber);
}
.overlay-status.error,
.overlay-unavailable {
  color: var(--red);
}
.overlay-unavailable {
  display: block;
  margin: 2px 0 3px 26px;
  font-size: 10px;
  line-height: 1.4;
}
.overlay-setting.unavailable {
  opacity: 0.7;
}
.check-setting input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}
.settings-note {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-bottom: 0;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 2000;
  background: var(--accent);
  color: #0a3024;
  padding: 12px;
  border-radius: 5px;
}
.skip-link:focus {
  top: 12px;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
.noscript {
  position: fixed;
  inset: 20% 20%;
  z-index: 2000;
  background: var(--panel);
  padding: 40px;
  text-align: center;
  border: 1px solid var(--border);
}
@media (max-width: 1000px) {
  .header {
    gap: 14px;
    padding: 12px 18px;
  }
  .brand {
    margin-right: 0;
  }
  .brand > span {
    font-size: 17px;
  }
  .station-control label {
    display: none;
  }
  .station-control select {
    min-width: 166px;
  }
  .product-control button {
    padding: 7px 10px;
  }
  .controls {
    padding-left: 18px;
    padding-right: 18px;
  }
  .map-caption {
    left: 18px;
  }
  .weather-legend {
    left: 18px;
  }
  .legend {
    left: 18px;
  }
  .notice {
    top: 80px;
    max-width: 70%;
  }
}
@media (max-width: 680px) {
  .header {
    padding: 10px 14px;
    gap: 10px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: 36px 38px;
  }
  .brand {
    font-size: 17px;
    grid-column: 1;
    grid-row: 1;
    gap: 8px;
  }
  .brand svg {
    width: 30px;
    height: 30px;
  }
  .brand small {
    display: none;
  }
  .header-actions {
    grid-column: 2;
    grid-row: 1;
    gap: 0;
  }
  .header-actions .icon-button {
    width: 36px;
    height: 36px;
  }
  .station-control {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
  }
  .station-control select {
    min-width: 0;
    width: 100%;
    font-size: 11px;
    height: 36px;
    min-height: 36px;
    padding-left: 9px;
    padding-right: 24px;
  }
  .product-control {
    grid-column: 2;
    grid-row: 2;
    padding: 2px;
    gap: 1px;
  }
  .product-control button {
    padding: 6px 9px;
    min-height: 30px;
    font-size: 10px;
  }
  .map-caption {
    top: 16px;
    left: 16px;
    gap: 4px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.6px;
  }
  #product-description {
    font-size: 16px;
  }
  .leaflet-top .leaflet-control {
    margin-top: 14px;
  }
  .leaflet-right .leaflet-control {
    margin-right: 14px;
  }
  .leaflet-control-zoom a {
    width: 33px !important;
    height: 33px !important;
    line-height: 33px !important;
  }
  .recenter {
    top: 92px;
    right: 14px;
    width: 35px;
    height: 35px;
  }
  .legend {
    left: 14px;
    bottom: 24px;
    width: 190px;
    padding: 9px 11px;
  }
  .legend-heading {
    font-size: 10px;
    margin-bottom: 7px;
  }
  .legend-scale {
    height: 6px;
  }
  .legend-labels {
    font-size: 8px;
  }
  .notice {
    top: 67px;
    max-width: calc(100% - 88px);
    left: 14px;
    transform: none;
    font-size: 11px;
    padding: 8px 10px;
  }
  .controls {
    padding: 10px 14px max(10px, env(safe-area-inset-bottom));
  }
  .scan-row {
    align-items: flex-start;
    font-size: 10px;
  }
  .scan-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
  }
  .feed-status {
    font-size: 10px;
    padding-top: 2px;
    max-width: 56%;
    line-height: 1.5;
  }
  .playback-row {
    gap: 10px;
    flex-wrap: wrap;
    margin: 7px 0 10px;
  }
  .transport {
    gap: 0;
  }
  .transport .icon-button {
    width: 30px;
    height: 34px;
  }
  .play-button {
    width: 34px;
    height: 34px;
  }
  .timeline {
    order: 3;
    flex-basis: 100%;
    padding-top: 0;
  }
  .timeline-labels {
    font-size: 9px;
  }
  .window-control {
    margin-left: auto;
  }
  .window-control select {
    font-size: 11px;
    min-height: 34px;
    min-width: 150px;
  }
  .footer-note {
    font-size: 8px;
    gap: 5px;
    line-height: 1.5;
    padding-top: 7px;
  }
  .footer-note .separator {
    padding: 0 2px;
  }
  .empty-state {
    padding: 22px;
    width: 280px;
  }
  .empty-state h1 {
    font-size: 16px;
  }
  .empty-state p {
    font-size: 12px;
  }
  .basemap-notice {
    max-width: 85%;
    width: max-content;
    bottom: 106px;
    font-size: 10px;
  }
  .weather-legend {
    left: 14px;
    top: 72px;
    max-width: calc(100% - 72px);
    gap: 4px;
  }
  .weather-chip {
    min-height: 22px;
    padding: 3px 7px;
    font-size: 9px;
  }
  .leaflet-container .leaflet-control-attribution {
    font-size: 8px;
    max-width: 100%;
  }
}
/* Swap decoded radar observations atomically. Leaflet's default image fade
   otherwise removes the previous scan before the new scan becomes opaque,
   producing a brightness pulse at every animation step. Keep map zoom motion. */
.leaflet-fade-anim .leaflet-radar-pane .leaflet-image-layer {
  transition: none;
}
/* Radar tile batches use the same decode gate as overlays. Leaflet's JS
   tile fade otherwise starts at zero even after the batch load event. */
.leaflet-radar-pane .leaflet-tile-loaded {
  opacity: 1 !important;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
/* Operational workspace: map layout and panels share a single bounded region. */
:root {
  --bg: #191c20;
  --panel: #22262b;
  --border: #49505a;
  --text: #edf0f3;
  --muted: #bdc4cd;
  --accent: #d5dce5;
  font-variant-numeric: tabular-nums;
}
.app-shell {
  grid-template-rows: 56px minmax(0, 1fr) auto;
}
.header {
  padding: 4px 12px;
  gap: 16px;
}
.brand {
  font-size: 16px;
  letter-spacing: 0;
  gap: 6px;
}
.brand svg {
  width: 25px;
  height: 25px;
}
.brand small,
.station-control label,
.footer-note,
#frame-label {
  display: none;
}
select,
button,
.product-control,
.icon-button,
.legend,
dialog,
.notice,
.empty-state {
  border-radius: 3px;
  box-shadow: none;
}
select,
.product-control button,
.icon-button,
.header-actions .icon-button,
.transport .icon-button,
.play-button,
.dialog-heading button,
.workspace-button {
  min-width: 44px;
  min-height: 44px;
  height: 44px;
}
.product-control {
  padding: 0;
  gap: 0;
}
.product-control button[aria-pressed="true"] {
  background: #454c56;
  color: #fff;
}
.product-control[hidden] {
  display: none;
}
.product-control button {
  padding: 6px 12px;
  border-radius: 0;
}
.product-control button:first-child {
  border-radius: 2px 0 0 2px;
}
.product-control button:last-child {
  border-radius: 0 2px 2px 0;
}
.station-control select {
  min-width: 170px;
}
.controls {
  padding: 4px 12px;
}
.scan-row {
  min-height: 44px;
  gap: 12px;
}
.scan-time {
  margin-right: auto;
  flex-direction: row;
}
.scan-row .window-control {
  margin-left: 0;
}
.window-control select {
  min-height: 44px;
}
.playback-row {
  display: none;
  margin: 0;
  gap: 8px;
}
.history-active .playback-row {
  display: flex;
}
.play-button {
  background: #d5dce5;
  color: #191c20;
  border-radius: 3px;
}
.timeline {
  padding: 0;
}
.timeline input {
  height: 44px;
}
.timeline-labels {
  margin-top: -5px;
}
#speed {
  width: 100px;
  font-size: 12px;
}
.source-details {
  margin: 0;
}
.source-details summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  max-width: 170px;
}
.source-details #source-list {
  position: fixed;
  bottom: calc(var(--dock-height, 60px) + 8px);
  left: auto;
  right: 12px;
  max-width: min(370px, calc(100vw - 24px));
  max-height: 40vh;
  overflow: auto;
  border-radius: 3px;
  box-shadow: none;
}
.map-caption {
  top: 12px;
  left: 12px;
  z-index: 700;
  padding: 3px 5px;
  background: #191c20;
  text-shadow: none;
  flex-direction: row;
  align-items: center;
  gap: 5px;
}
.eyebrow,
#product-description {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}
#product-description::before {
  content: "· ";
}
.legend {
  left: 12px;
  bottom: 24px;
  width: 200px;
  padding: 7px 9px;
  background: #191c20;
}
.legend-heading {
  margin-bottom: 4px;
}
.leaflet-control-zoom {
  border-radius: 3px !important;
  box-shadow: none !important;
}
.leaflet-control-zoom a {
  width: 44px !important;
  height: 44px !important;
  line-height: 44px !important;
}
.leaflet-right .leaflet-control {
  margin-right: 12px;
}
.leaflet-top .leaflet-control {
  margin-top: 12px;
}
.recenter {
  right: 12px;
  top: 108px;
  width: 44px;
  height: 44px;
}
#fullscreen {
  position: absolute;
  right: 12px;
  top: 160px;
  z-index: 450;
  width: 44px;
  font-size: 22px;
}
.workspace-button {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  padding: 6px 10px;
  cursor: pointer;
}
#layers-open {
  position: absolute;
  left: 12px;
  top: 40px;
  z-index: 450;
  font-size: 12px;
}
.weather-legend {
  top: 42px;
  left: 120px;
  max-width: calc(100% - 190px);
  flex-wrap: nowrap;
  overflow: hidden;
}
.weather-chip {
  border: 0;
  border-radius: 0;
  background: var(--bg);
  box-shadow: none;
  white-space: nowrap;
  font-weight: 400;
}
.weather-chip::before {
  display: none;
}
.workspace-panel {
  position: absolute;
  z-index: 700;
  top: 8px;
  bottom: 8px;
  width: 350px;
  max-width: calc(100% - 24px);
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 12px;
  overflow: auto;
  overscroll-behavior: contain;
}
#layers-panel {
  left: 8px;
}
#inspector {
  right: 68px;
}
.panel-heading {
  display: flex;
  align-items: center;
  gap: 4px;
  position: sticky;
  top: -12px;
  padding: 4px 0;
  background: var(--panel);
  z-index: 1;
}
.panel-heading h2 {
  flex: 1;
  margin: 0;
  font-size: 15px;
}
.panel-heading button {
  font-size: 22px;
  width: 44px;
}
.workspace-panel h3 {
  font-size: 12px;
  margin: 16px 0 3px;
  color: var(--muted);
  font-weight: 600;
}
.check-setting {
  min-height: 44px;
  margin: 6px 0;
}
.overlay-setting {
  padding: 2px 0;
}
.overlay-option {
  min-height: 44px;
  margin: 0 0 0 26px;
}
.overlay-option select {
  min-height: 44px;
}
.overlay-status {
  max-width: 95px;
}
.weather-popup {
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.weather-popup > strong {
  display: block;
  font-size: 18px;
  line-height: 1.3;
  margin: 12px 0;
}
.weather-popup p {
  margin: 8px 0;
  white-space: pre-wrap;
}
.weather-popup pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  padding: 10px;
  border: 1px solid var(--border);
}
.weather-popup summary {
  padding: 12px 0;
  cursor: pointer;
}
.weather-popup a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #b9d8ff;
}
.feature-selected {
  filter: drop-shadow(0 0 2px #000);
  stroke-width: 3.5 !important;
  outline: 2px solid white;
  outline-offset: 3px;
}
path.feature-selected {
  outline: none;
}
.weather-cluster {
  background: #252b33;
  color: #f5f5f5;
  border: 1px solid #ccd4de;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}
.cluster-entry {
  display: block;
  text-align: left;
  width: 100%;
  min-height: 44px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

#zoom-readout {
  position: absolute;
  right: 12px;
  bottom: 72px;
  color: #fff;
  background: #191c20;
  padding: 3px 5px;
  font-size: 10px;
  z-index: 450;
  pointer-events: none;
}
.leaflet-control-scale {
  margin-bottom: 24px !important;
}
.leaflet-control-scale-line {
  background: #191c20;
  color: #fff;
  border-color: #bec4ce;
  text-shadow: none;
}
.crisp .leaflet-radar-pane img {
  image-rendering: pixelated;
}
dialog {
  border-radius: 3px;
  box-shadow: none;
  max-height: 85dvh;
  padding: 16px;
}
dialog::backdrop {
  background: #0007;
  backdrop-filter: none;
}
.dialog-heading {
  margin-bottom: 8px;
}
.status-dot {
  box-shadow: none !important;
}
.notice {
  top: 92px;
  left: 12px;
  transform: none;
  max-width: calc(100% - 85px);
}
.hide-chrome .app-shell {
  grid-template-rows: 0 minmax(0, 1fr) 0;
}
.hide-chrome .header,
.hide-chrome .controls {
  visibility: hidden;
  overflow: hidden;
  padding: 0;
}
.hide-chrome .map-caption,
.hide-chrome .legend,
.hide-chrome #layers-open,
.hide-chrome .weather-legend {
  display: none;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
@media (max-width: 680px) {
  .app-shell {
    grid-template-rows: 100px minmax(0, 1fr) auto;
  }
  .header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: 44px 44px;
    padding: 4px 8px;
    gap: 4px;
  }
  .station-control select {
    min-width: 0;
    height: 44px;
  }
  .product-control button {
    padding: 4px 7px;
    font-size: 11px;
  }
  .brand {
    font-size: 15px;
  }
  .header-actions {
    gap: 4px;
  }
  .scan-row {
    flex-wrap: wrap;
    gap: 0 8px;
    font-size: 10px;
  }
  .feed-status {
    max-width: none;
    font-size: 10px;
  }
  .scan-time {
    margin-left: auto;
    margin-right: 0;
    align-items: center;
  }
  .scan-row .window-control {
    margin-right: auto;
  }
  .source-details summary {
    max-width: 170px;
    font-size: 10px;
  }
  .controls {
    padding: 2px 8px;
  }
  .playback-row {
    flex-wrap: wrap;
    gap: 4px;
  }
  .timeline {
    order: 3;
    flex-basis: 100%;
  }
  #speed {
    margin-left: auto;
  }
  .workspace-panel {
    left: 8px !important;
    right: 8px !important;
    top: auto;
    bottom: 8px;
    width: auto;
    max-width: none;
    max-height: 56%;
  }
  #inspector.expanded {
    max-height: 88%;
  }
  .map-caption {
    max-width: calc(100% - 80px);
  }
  .legend {
    width: 165px;
  }
  .basemap-notice {
    bottom: 90px;
  }
}
@media (max-height: 500px) and (min-width: 681px) {
  .header .brand {
    display: none;
  }
  .app-shell {
    grid-template-rows: 52px minmax(0, 1fr) auto;
  }
  .controls {
    padding: 0 8px;
  }
  .history-active .scan-row {
    float: left;
    width: 280px;
    flex-wrap: wrap;
    gap: 0 8px;
  }
  .history-active .scan-time {
    display: none;
  }
  .history-active .playback-row {
    min-height: 88px;
  }
  .legend {
    width: 155px;
    padding: 5px;
  }
  .workspace-panel {
    width: 330px;
  }
  #zoom-readout {
    bottom: 55px;
  }
  .source-details summary {
    font-size: 10px;
  }
}
.report-symbol {
  color: #f6d08a;
  font-size: 24px;
  text-shadow:
    1px 1px 2px #000,
    -1px -1px 2px #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.weather-pirep {
  color: #f6d08a;
}
.report-symbol.feature-selected {
  outline: 2px solid white;
  border-radius: 3px;
}
@media (max-width: 680px) {
  .scan-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .scan-time {
    justify-content: flex-end;
    font-size: 9px;
    white-space: nowrap;
  }
  .scan-row .window-control select {
    min-width: 0;
    width: 100%;
  }
  .source-details {
    justify-self: end;
  }
}
.weather-cluster {
  border: 0;
  background: transparent;
}
.weather-cluster > span {
  border: 1px solid #b7bec8;
  background: #22272d;
  padding: 4px 5px;
  font-size: 10px;
  border-radius: 2px;
}
#zoom-readout {
  right: 140px;
  bottom: 24px;
}
.metar-target {
  display: flex;
  align-items: center;
  justify-content: center;
}
.metar-target > span {
  width: 9px;
  height: 9px;
  border: 1px solid #f5f5f5;
  border-radius: 50%;
}
.metar-target.feature-selected > span {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
#speed {
  width: 112px;
  min-width: 112px;
}
.weather-cluster > span {
  white-space: nowrap;
}
@media (min-width: 681px) {
  #inspector.expanded {
    width: 380px;
  }
}
@media (max-width: 680px) {
  #inspector {
    max-height: 42%;
  }
  #inspector.expanded {
    max-height: 88%;
  }
}
#settings input[type="range"] {
  height: 44px;
}
#refresh[aria-busy="true"] {
  color: var(--amber);
  outline: 1px solid var(--amber);
  outline-offset: -4px;
}
.leaflet-control-scale {
  margin-left: 230px !important;
}
.play-button:hover:not(:disabled) {
  background: #fff;
  color: #191c20;
}
@media (max-width: 680px) {
  .leaflet-control-scale {
    margin-left: 190px !important;
  }
  #zoom-readout {
    left: 190px;
    right: auto;
    bottom: 65px;
  }
}
@media (max-height: 500px) and (min-width: 681px) {
  .leaflet-control-scale {
    margin-left: 180px !important;
  }
}

/* Individual observations retain exact locations and a neutral contrast backing. */
.report-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
}
.report-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #11151b;
  color: #fff;
  font: 700 13px/1 system-ui;
  text-shadow: none;
  box-shadow: 0 0 0 1px #11151b;
}
.report-glyph[data-hazard="tornado"] {
  color: #ffb1e7;
}
.report-glyph[data-hazard="flood"] {
  color: #b2e6ff;
}
.report-glyph[data-age="older"] {
  border-style: dashed;
}
.metar-target > span {
  width: 12px;
  height: 12px;
  border: 1px solid #fff;
  box-shadow:
    0 0 0 3px #11151b,
    0 0 0 4px #fff;
}
.report-area-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 16px;
}
.report-area-control select {
  min-height: 44px;
  max-width: 190px;
}
.weather-feature-popup .leaflet-popup-content-wrapper,
.weather-feature-popup .leaflet-popup-tip {
  background: #20252c;
  color: #f4f6f8;
  box-shadow: 0 1px 4px #0009;
}
.weather-feature-popup .leaflet-popup-content-wrapper {
  border: 1px solid #8c97a4;
  border-radius: 4px;
  padding: 1px;
}
.weather-feature-popup .leaflet-popup-content {
  margin: 14px;
  line-height: 1.45;
}
.weather-feature-popup .weather-popup > strong {
  display: block;
  font-size: 16px;
  padding-right: 32px;
  margin-bottom: 10px;
}
.weather-feature-popup .weather-popup p {
  margin: 9px 0;
}
.weather-feature-popup .weather-popup pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #15191f;
  padding: 8px;
  font-size: 12px;
}
.weather-feature-popup .weather-popup a {
  color: #bbd9ff;
}
.weather-feature-popup .weather-popup summary {
  min-height: 44px;
  padding: 10px 0;
  cursor: pointer;
}
.weather-feature-popup a.leaflet-popup-close-button {
  width: 44px;
  height: 44px;
  color: #fff;
  font: 25px/44px system-ui;
}
.weather-feature-popup.popup-adjusted .leaflet-popup-tip-container {
  visibility: hidden;
}
.weather-feature-popup .leaflet-popup-scrolled {
  border: 0;
  padding-right: 5px;
}
/* Protect controls from the iOS status bar, camera cutout and Home indicator. */
.app-shell {
  padding-top: env(safe-area-inset-top, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
}
html,
body {
  overscroll-behavior: none;
  background: #11151b;
}
.install-help {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
}
.install-help summary {
  min-height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
@media (pointer: coarse) {
  select,
  input[type="text"] {
    font-size: 16px;
  }
  .weather-feature-popup .leaflet-popup-content {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
}
.leaflet-container .weather-feature-popup a.leaflet-popup-close-button {
  color: #edf0f3;
}
@media (pointer: coarse) {
  .station-control select,
  .window-control select,
  #report-area,
  #overlay-lsr-hours,
  #overlay-pirep-age {
    font-size: 16px;
  }
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23edf0f3' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px 8px;
  line-height: 22px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.leaflet-fade-anim .leaflet-popup.weather-feature-popup {
  transition: none;
  opacity: 1;
}

/* Round two: bounded commands, deliberate inspectors and truthful hit ownership. */
.control-excluded {
  visibility: hidden !important;
  pointer-events: none !important;
}
.report-glyph {
  width: auto;
  min-width: 26px;
  height: 22px;
  padding: 2px 3px;
  border-radius: 3px;
  font-size: 10px;
}
button:focus:not(:focus-visible),
select:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}
.play-button,
.play-button:hover:not(:disabled) {
  background: #303740;
  color: var(--text);
  border: 1px solid var(--border);
}
#go-live {
  min-width: 44px;
  min-height: 44px;
  padding: 4px;
  color: #b8e3c9;
  background: #26352d;
}
#timeline-options,
#command-options {
  position: relative;
}
#timeline-options > summary,
#command-options > summary {
  cursor: pointer;
  list-style: none;
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#timeline-options {
  flex-shrink: 0;
}
#timeline-options > summary {
  width: 112px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #303740;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.timeline-options-panel {
  position: absolute;
  bottom: 48px;
  right: 0;
  z-index: 1100;
  width: 220px;
  display: grid;
  gap: 8px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
}
#command-options .header-actions {
  position: absolute;
  right: 0;
  top: 48px;
  padding: 4px;
  background: var(--panel);
  z-index: 1100;
}
#command-options:not([open]) .header-actions,
#timeline-options:not([open]) .timeline-options-panel {
  display: none;
}
.weather-feature-popup {
  transform: none !important;
  left: auto !important;
  right: 64px !important;
  top: 12px !important;
  bottom: auto !important;
  margin: 0 !important;
}
.weather-feature-popup .leaflet-popup-tip-container {
  display: none;
}
.weather-feature-popup .leaflet-popup-content {
  max-width: calc(100vw - 110px);
}
@media (max-width: 680px), (max-height: 500px) {
  .app-shell {
    grid-template-rows: 52px minmax(0, 1fr) auto;
  }
  .header {
    display: flex;
    flex-wrap: nowrap;
    padding: 4px 6px;
    gap: 4px;
  }
  .header .brand {
    display: none;
  }
  .station-control {
    flex: 1;
    min-width: 0;
  }
  .station-control select {
    width: 100%;
    min-width: 0;
    font-size: 12px;
    padding-left: 6px;
    padding-right: 22px;
    background-position: right 7px center;
  }
  .product-control {
    flex: 0 0 auto;
  }
  .product-control button {
    padding: 4px 5px;
    font-size: 10px;
  }
  .controls {
    padding: 2px 8px;
  }
  .scan-row,
  .history-active .scan-row {
    display: flex;
    float: none;
    width: auto;
    flex-wrap: nowrap;
    min-height: 44px;
    gap: 6px;
  }
  .feed-status {
    font-size: 10px;
    flex: 1;
  }
  .scan-time,
  .history-active .scan-time {
    display: flex;
    font-size: 9px;
    margin: 0;
  }
  .history-active .scan-row {
    min-height: 32px;
    height: 32px;
  }
  .history-active #timeline-options {
    position: absolute;
    right: 56px;
    bottom: 2px;
  }
  .history-active #go-live {
    position: absolute;
    right: 8px;
    bottom: 2px;
  }
  .history-active .playback-row {
    display: flex;
    min-height: 44px;
    height: 44px;
    flex-wrap: nowrap;
    gap: 4px;
    padding-right: 168px;
  }
  .transport {
    gap: 0;
  }
  .timeline {
    order: 0;
    flex: 1;
    min-width: 0;
  }
  .timeline input {
    height: 44px;
  }
  .timeline-labels {
    display: none;
  }
  .legend {
    width: 155px;
    padding: 5px;
  }
  #zoom-readout {
    display: none;
  }
  .leaflet-control-scale {
    margin-left: 180px !important;
  }
  .weather-feature-popup {
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    width: 100% !important;
  }
  .weather-feature-popup:not(.weather-callout) .leaflet-popup-content {
    width: auto !important;
    max-width: none;
  }
  .map-caption {
    font-size: 10px;
  }
}
.map-region > .weather-feature-popup {
  position: absolute;
  z-index: 1000;
}
@media (min-width: 681px) and (min-height: 501px) {
  #command-options > summary {
    display: none;
  }
  #command-options .header-actions,
  #command-options:not([open]) .header-actions {
    position: static;
    display: flex;
    padding: 0;
  }
}
@media (max-height: 500px) {
  .history-active .controls {
    height: 68px;
  }
  .history-active .scan-row {
    height: 20px;
    min-height: 20px;
  }
}
.map-region > .weather-feature-popup .leaflet-popup-close-button {
  position: absolute;
  top: 0;
  right: 0;
  text-align: center;
  text-decoration: none;
}
.map-region > .weather-feature-popup .leaflet-popup-content {
  overflow: auto;
  overflow-wrap: anywhere;
}
.timeline-options-panel #source-list {
  position: static;
  width: auto;
  max-width: none;
  max-height: 180px;
  overflow: auto;
  padding: 8px 0;
  border: 0;
}
.timeline-options-panel {
  max-height: min(360px, 70vh);
  overflow: auto;
}
.timeline-options-panel .source-details summary {
  max-width: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.transport .icon-button,
.transport .play-button {
  background: #303740;
  border: 1px solid var(--border);
  color: var(--text);
}
.transport button svg {
  width: 20px;
  height: 20px;
}
.report-glyph[data-age="older"] {
  opacity: 0.72;
}
.feature-selected .report-glyph {
  opacity: 1;
}
.weather-marker.feature-selected {
  /* Selection must survive Leaflet's pointer-focus outline reset. */
  box-shadow: inset 0 0 0 2px #fff;
  background-color: #1119;
  border-radius: 3px;
}

/* Temperature labels keep a full touch target around a compact, color-coded value. */
.temperature-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
}
.temperature-value {
  color: var(--temperature-color, #f4f7fa);
  background: #182028e8;
  border: 1px solid #8c9daa80;
  border-radius: 4px;
  padding: 2px 4px;
  font:
    600 16px/20px system-ui,
    sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  box-shadow: 0 1px 3px #0006;
}
.temperature-stale .temperature-value {
  border-style: dashed;
}
.temperature-marker:focus-visible .temperature-value,
.temperature-marker:hover .temperature-value {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
#temperature-summary {
  position: absolute;
  z-index: 450;
  top: 90px;
  left: 12px;
  max-width: calc(100% - 84px);
  padding: 3px 6px;
  border-radius: 3px;
  color: var(--muted);
  background: var(--bg);
  font-size: 11px;
  pointer-events: none;
}
.temperature-help {
  margin: 0 0 8px 28px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.hide-chrome #temperature-summary {
  display: none;
}

.temperature-units {
  display: flex;
  margin: 0 0 8px 28px;
  gap: 0;
}
.temperature-units button {
  min-width: 56px;
  min-height: 44px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  font: inherit;
}
.temperature-units button + button {
  border-left: 0;
}
.temperature-units button[aria-pressed="true"] {
  background: #435260;
  color: white;
  font-weight: 700;
}
.temperature-color-key {
  margin: 0 0 10px 28px;
}
#temperature-scale {
  height: 5px;
  border-radius: 2px;
}
#temperature-scale-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}

.weather-mping {
  display: grid;
  place-items: center;
}
.mping-glyph {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 2px solid var(--mping-color);
  background: #172334;
  color: var(--mping-color);
  font:
    700 12px/1 system-ui,
    sans-serif;
  box-shadow: 0 1px 4px #000b;
}

.mping-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  margin: 6px 0;
}

#alert-type-filters {
  margin: 8px 0;
  font-size: 12px;
}
#alert-type-filters summary {
  min-height: 44px;
  align-content: center;
  cursor: pointer;
}
.alert-filter-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  line-height: 1.4;
}
#alert-type-groups section {
  border-top: 1px solid #526170;
  padding: 4px 0;
}
#alert-type-groups details {
  padding-left: 12px;
}
.alert-filter-note {
  color: #bdc9d5;
  line-height: 1.5;
}
.alert-card {
  border-left: 3px solid var(--alert-color);
  margin-top: 12px;
  padding-left: 10px;
}
.alert-card > summary {
  min-height: 44px;
  align-content: center;
  color: var(--alert-color);
  font-weight: 700;
  cursor: pointer;
}
.alert-card .weather-popup {
  padding: 0;
}

/* Point inspectors keep only the visible bubble interactive. */
.map-region > .weather-callout {
  left: var(--callout-left, 8px) !important;
  top: var(--callout-top, 8px) !important;
  right: auto !important;
  bottom: auto !important;
  width: auto !important;
  pointer-events: none;
}
.weather-callout .leaflet-popup-content-wrapper,
.weather-callout .leaflet-popup-close-button {
  pointer-events: auto;
}
.map-region > .weather-callout .leaflet-popup-content {
  margin: 10px;
  max-width: calc(100vw - 62px);
}
.weather-callout .weather-popup > strong {
  font-size: 14px;
  margin-bottom: 5px;
}
.weather-callout .weather-popup p {
  margin: 4px 0;
  font-size: 12px;
}
.point-chooser {
  display: block;
  padding-right: 30px;
  font-size: 12px;
  margin-bottom: 8px;
}
.point-chooser select {
  display: block;
  width: 100%;
  min-height: 44px;
}
.point-full-details {
  min-height: 44px;
  margin-top: 4px;
}
.point-callout-stem {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 999;
}
.point-callout-stem path {
  stroke: #f4f6f8;
  stroke-width: 2;
  fill: none;
  filter: drop-shadow(0 1px 2px #000);
}
.point-callout-stem circle {
  fill: none;
  stroke: #fff;
  stroke-width: 1;
}
.weather-marker.feature-selected {
  outline: none;
  background-color: transparent;
  border-radius: 50%;
}

.wind-marker svg {
  width: 80px;
  height: 80px;
  overflow: visible;
  color: #e8f3fa;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  filter: drop-shadow(0 1px 2px #111) drop-shadow(0 0 1px #111);
}
.wind-marker .wind-pennant {
  fill: currentColor;
}
.wind-marker text {
  fill: currentColor;
  stroke: #17212b;
  stroke-width: 2px;
  paint-order: stroke;
  font-size: 12px;
  font-weight: 700;
}
.wind-marker.temperature-stale svg {
  opacity: 0.72;
}
.wind-marker.feature-selected {
  box-shadow: none;
}
.wind-marker.feature-selected::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 44px;
  height: 44px;
  border: 2px solid #fff;
  border-radius: 50%;
  pointer-events: none;
}
.observation-metric-label {
  margin-left: 28px;
}

.forecast-info {
  margin: 8px 0 8px 28px;
  white-space: pre-line;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.forecast-key {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 8px 0 12px 28px;
  font-size: 12px;
}
.forecast-key span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.forecast-key i {
  display: inline-block;
  width: 18px;
  height: 8px;
  border: 1px solid #bbc5cf;
}
.forecast-key .intensity-key {
  border-style: dashed;
}
#outlook-product {
  max-width: 100%;
  min-width: 0;
  width: 230px;
}
#forecast-summary {
  position: absolute;
  z-index: 450;
  left: 12px;
  top: 112px;
  max-width: min(480px, calc(100% - 84px));
  padding: 3px 6px;
  border-radius: 3px;
  color: var(--muted);
  background: var(--bg);
  font-size: 11px;
  white-space: pre-line;
  pointer-events: none;
}
.hide-chrome #forecast-summary {
  display: none;
}

/* Replacement products have their own time/controls; hidden radar is suspended. */
.analysis-mode #controls > :not(#raster-mode) {
  display: none !important;
}
#raster-mode:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
#raster-mode-label {
  flex: 1;
}
#return-radar {
  min-height: 44px;
  flex-shrink: 0;
}
label[for="opacity"][hidden],
#opacity[hidden] {
  display: none;
}
