:root {
  --cw-bg: #181818;
  --cw-panel: #242424;
  --cw-control-bg: #303030;
  --cw-control-bg-translucent: rgba(36, 36, 36, 0.85);
  --cw-control-hover-translucent: rgba(72, 72, 72, 0.85);
  --cw-text: #ffffffde;
  --cw-text-strong: #ffffff;
  --cw-muted: #ffffff99;
  --cw-border: #1e2d40;
  --cw-border-light: rgba(255, 255, 255, 0.25);
  --cw-border-soft: rgba(255,255,255,0.2);
  --cw-hover-soft: rgba(255,255,255,0.15);
  --cw-hover-soft-strong: rgba(255,255,255,0.16);
  --cw-active-bg: rgba(74, 144, 217, 0.82);
  --cw-active-bg-strong: rgba(74, 144, 217, 0.85);
  --cw-active-border: rgba(170, 215, 255, 0.75);
  --cw-teal: #4DB6AC;
  --cw-control-bg-soft: rgba(36,36,36,0.82);
  --cw-control-hover: rgba(60,60,60,0.95);
  --cw-focus-border: rgba(255,255,255,0.3);
  --cw-panel-shadow: 0 5px 18px rgba(0,0,0,0.34);
  --cw-toggle-bg: rgba(255,255,255,0.25);
  --cw-toggle-knob: rgba(255,255,255,0.5);
}

*, *::before, *::after {
  box-sizing: border-box;
}

img {
  display: inline-block;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: #181818;
  color: #ffffffde;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

header {
  position: relative;
  flex: 0 0 auto;
  margin-bottom: 0 !important;
  z-index: 2000;
}

#map-shell {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
}

#map {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.14s ease;
}

.map-stage.map-restoring #map {
  opacity: 0;
  transition: none;
}

.map-stage.temporal-control-active #map {
  bottom: calc(48px + env(safe-area-inset-bottom));
}

.map-stage.sidebar-active #map {
  left: 320px;
}

#map .graticule-canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#map .metar-canvas {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.maplibregl-ctrl-bottom-left,
.maplibregl-ctrl-bottom-right {
  font-family: Roboto, Arial, sans-serif;
}

.maplibregl-ctrl-attrib,
.maplibregl-ctrl-group {
  background: rgba(24, 24, 24, 0.82) !important;
  color: #ffffff99 !important;
  border: 1px solid #1e2d40;
}

.maplibregl-ctrl-attrib a {
  color: #72a7dc !important;
}

.maplibregl-ctrl button {
  filter: invert(1);
}

.maplibregl-control-container {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.maplibregl-control-container .maplibregl-ctrl {
  pointer-events: auto;
}

.maplibregl-ctrl-top-right {
  z-index: 6;
}

.sidebar {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1300;
  width: 0;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #242424;
  border-right: 1px solid #1e2d40;
  overflow: hidden;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              min-width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-open {
  width: 320px;
  min-width: 320px;
}

.sidebar-header {
  padding: 4px 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.38);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  flex-shrink: 0;
}

.sidebar-title {
  color: #ffffffde;
  font-size: 1rem;
  font-weight: 700;
  padding-right: 24px;
}

.sidebar-subtitle {
  color: #ffffff99;
  font-size: 0.75rem;
}

.sidebar-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: #ffffffde;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 2px 6px;
  transition: background 0.2s;
}

.sidebar-close:hover {
  background: rgba(255,255,255,0.15);
}

.icon-close {
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  padding: 0;
  font: 16px/24px Arial, Helvetica, sans-serif;
  font-weight: 400;
  text-align: center;
  transition: background 0.2s;
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-color: rgba(255,255,255,0.22) transparent;
  scrollbar-width: thin;
}

.sidebar-content::-webkit-scrollbar {
  width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.28);
}

.sidebar-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 28px;
  gap: 0;
  margin: 0;
}

.sidebar-tab {
  min-width: 0;
  height: 38px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #ffffff99;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  text-align: center;
}

.sidebar-tab.active {
  border-bottom-color: var(--cw-teal);
  color: #ffffffde;
}

.sidebar-tabs-close {
  width: 28px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffffde;
  cursor: pointer;
  font: 18px/38px Arial, Helvetica, sans-serif;
  text-align: center;
}

.sidebar-tabs-close:hover {
  background: rgba(255,255,255,0.15);
}

.sidebar-panel {
  display: none;
}

.sidebar-panel.active {
  display: block;
}

.forecast-model-controls {
  display: grid;
  gap: 7px;
  padding: 8px 0 2px;
}

.forecast-model-controls[hidden] {
  display: none;
}

.forecast-model-display-row {
  display: flex;
  gap: 6px;
}

.forecast-model-display-row[hidden] {
  display: none;
}

.forecast-model-status {
  min-height: 16px;
  color: var(--cw-muted);
  font-size: 0.66rem;
  line-height: 1.25;
}

.forecast-model-runtime {
  margin-top: -3px;
  color: var(--cw-muted);
  font-size: 0.64rem;
  line-height: 1.2;
}

.storm-list {
  display: grid;
}

.storm-list-empty {
  padding: 16px;
  color: #ffffff99;
  font-size: 0.82rem;
}

.storm-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: #ffffffde;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.storm-list-item:hover,
.storm-list-item.active {
  background: rgba(255,255,255,0.12);
}

.storm-list-name {
  min-width: 0;
  overflow: hidden;
  color: #ffffffde;
  font-size: 0.86rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storm-list-meta {
  color: #ffffffde;
  font-size: 0.78rem;
  white-space: nowrap;
}

.storm-list-time {
  grid-column: 1 / -1;
  color: #ffffff99;
  font-size: 0.68rem;
}

.storm-detail-header {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.storm-detail-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0.25rem;
  background: transparent;
  color: #ffffffde;
  cursor: pointer;
}

.storm-detail-back:hover {
  background: rgba(255,255,255,0.15);
}

.storm-detail-back svg {
  width: 20px;
  height: 20px;
}

.sidebar-control-slot {
  padding: 0 12px;
}

.sidebar-control-slot[hidden] {
  display: none;
}

.sidebar-control-slot.radar-select-controls {
  padding-top: 4px;
  padding-bottom: 14px;
}

.radar-select-controls.sat-map-select-row {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
}

.radar-select-controls .sat-map-select-field {
  gap: 5px;
}

.radar-select-controls select {
  width: 100%;
  outline: none;
  box-shadow: none;
}

.radar-select-controls select:focus,
.radar-select-controls select:focus-visible {
  outline: none;
  box-shadow: none;
}

.radar-station-map-button {
  min-width: 28px;
  min-height: 20px;
  padding: 3px 5px;
  border: 0;
  border-radius: 0.25rem;
  background: rgba(48, 48, 48, 0.78);
  color: var(--cw-muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

.radar-station-map-button:hover,
.radar-station-map-button.active {
  background: rgba(74, 144, 217, 0.86);
  color: var(--cw-text-strong);
}

.radar-station-map-button:focus,
.radar-station-map-button:focus-visible {
  outline: none;
  box-shadow: none;
}

.option {
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 5px;
}

.option-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
}

.opt-label {
  color: #ffffff99;
  font-size: 0.85rem;
}

.sidebar-time {
  display: block;
  padding: 0 16px 8px;
  text-align: center;
  font-size: 0.7rem;
}

.is-hidden {
  display: none !important;
}

.colorbar {
  max-width: 300px;
  margin: auto;
  display: block;
}

.colorbar-padded {
  padding-left: 5px;
  padding-right: 5px;
}

.colorbar-top {
  padding-top: 10px;
}

.sat-loop-controls {
  padding: 0 16px 8px;
}

.sat-loop-row {
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr);
  gap: 6px;
  align-items: center;
}

.sat-loop-btn {
  min-width: 44px;
}

.sat-loop-play {
  min-width: 48px;
}

.sat-loop-slider {
  width: 100%;
  min-width: 0;
}

.storm-map-marker {
  width: 48px;
  height: 48px;
  background: transparent;
  border: 0;
  cursor: pointer;
  transform-origin: center;
}

.maplibregl-marker.storm-map-marker {
  z-index: 3;
}

.maplibregl-marker.cone-map-marker {
  width: 38px;
  height: 38px;
}

.storm-map-marker img {
  width: 48px;
  height: 48px;
  display: block;
}

.cone-map-marker,
.cone-map-marker img {
  width: 38px;
  height: 38px;
}

.toggle-switch {
  position: relative;
  width: 36px;
  height: 20px;
}

.toggle-switch input {
  display: none;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--cw-hover-soft);
  border-radius: 20px;
  transition: 0.2s;
  cursor: pointer;
}

.toggle-slider::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cw-toggle-knob);
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--cw-toggle-bg);
}

.toggle-switch input:checked + .toggle-slider::after {
  transform: translateX(16px);
  background: var(--cw-teal);
}

select {
  min-width: 112px;
  background: #181818;
  color: #ffffffde;
  border: 1px solid #1e2d40;
  border-radius: 0.25rem;
  padding: 5px 7px;
  font: inherit;
  font-size: 0.75rem;
}

.sidebar-select {
  width: calc(100% - 32px);
  margin: 0 16px 10px;
}

.layer-subcontrols {
  display: none;
}

.recon-layer-controls {
  padding: 0 14px 10px;
}

.recon-mission-status {
  color: var(--cw-muted);
  font-size: 0.66rem;
  line-height: 1.25;
  margin-top: 1px;
}

.recon-layer-controls.no-missions {
  display: block !important;
}

.recon-layer-controls.no-missions > :not(.recon-mission-status) {
  display: none !important;
}

.recon-display-toggle-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.recon-display-option {
  min-width: 0;
  padding: 0 5px;
}

.sst-display-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 0 14px 10px;
}

.sst-display-controls[hidden] {
  display: none;
}

.layer-opacity-control {
  display: grid;
  gap: 5px;
  margin-top:4px;
  grid-column: 1 / -1;
}

.layer-opacity-control span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom:-4px;
  color: rgba(255,255,255,.58) !important;
  font-size: 0.74rem !important;
}

.layer-opacity-control input[type="range"] {
  width: 100%;
  height: 15px;
}

.layer-opacity-control[hidden] {
  display: none;
}

.option > .layer-opacity-control {
  padding: 0 14px 10px;
}


.ascat-time-sync-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 16px 4px;
}

.ascat-time-sync-row[hidden] {
  display: none;
}

.stat-block {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.stat-label {
  color: #ffffff99;
  font-size: 0.78rem;
}

.stat-value {
  color: #ffffffde;
  font-size: 0.82rem;
  text-align: right;
}

.map-popup {
  color: #111;
  font-family: Roboto, Arial, sans-serif;
}

.label-with-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem !important;
  line-height: 1.2;
}

.map-label-text {
  display: inline-block;
  font-size: inherit;
  line-height: inherit;
}

.map-label-close {
  min-width: 16px;
  height: 16px;
  padding: 1px 4px;
  border: 0;
  background: none;
  color: #ffffffde;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.map-label-close:hover {
  background: rgba(255,255,255,0.15);
}

.metar-label {
  position: absolute;
  right: 12px;
  bottom: 34px;
  z-index: 7;
  max-width: min(560px, calc(100% - 140px));
  padding: 4px 8px;
  border: 0.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.3rem;
  background: rgba(24, 24, 24, 0.9);
  color: #ffffffde;
  box-shadow: none;
}

.map-stage.temporal-control-active .metar-label {
  bottom: calc(62px + env(safe-area-inset-bottom));
}

.metar-source-sidebar-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
  padding: 0 14px 10px;
}

.metar-source-sidebar-row[hidden] {
  display: none;
}

.maplibregl-popup.metar-tooltip-popup,
.maplibregl-popup.metar-observation-popup {
  z-index: 1400;
  opacity: 1;
  transition: opacity 0.18s ease;
}

.maplibregl-popup.metar-tooltip-popup.is-fading {
  opacity: 0;
}

.maplibregl-popup.metar-observation-popup.is-fading {
  opacity: 0;
}

.map-action-button,
.sidebar-open-button {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(36, 36, 36, 0.85);
  color: #ffffffde;
  border: 1px solid #1e2d40;
  cursor: pointer;
  border-radius: 0.375rem;
  backdrop-filter: blur(4px);
  transition: color 0.4s, background 0.4s;
}

.map-action-button {
  z-index: 4;
  display: block;
  text-decoration: none;
  font-size: 0.72rem;
  text-transform: uppercase;
  padding: 6px 12px;
}

.sidebar-open-button {
  z-index: 5;
  width: 36px;
  height: 34px;
  padding: 0;
}

.sidebar-open-button svg {
  display: block;
  margin: auto;
}

.mobile-sidebar-tabs {
  display: none;
}

.sidebar-open-button:hover,
.map-action-button:hover,
.map-action-button.active {
  color: white;
  background: rgba(72, 72, 72, 0.85);
}

.map-action-button-secondary {
  top: 50px;
}

.map-action-button-tertiary {
  top: 88px;
}

.map-action-button-quaternary {
  top: 126px;
}

.action-bar-button{
  border-radius: 2rem;
  margin-right:5px;
  padding:8px;
  transition: background 0.4s;
}

.action-bar-button:hover,
.action-bar-button.active{
  background: rgba(255, 255, 255, 0.2);
}

.action-bar-button.active:hover{
  background: rgba(255, 255, 255, 0.4);
}

.action-more-menu {
  position: fixed;
  top: 44px;
  right: 78px;
  z-index: 10000;
  min-width: 150px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 0.45rem;
  background: rgba(36, 36, 36, 0.96);
  box-shadow: var(--cw-panel-shadow);
}

.action-more-menu[hidden] {
  display: none;
}

.map-export-menu {
  position: fixed;
  top: 44px;
  right: 118px;
  z-index: 10000;
  min-width: 142px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 0.45rem;
  background: rgba(36, 36, 36, 0.96);
  box-shadow: var(--cw-panel-shadow);
}

.map-export-menu[hidden] {
  display: none;
}

.map-export-menu button {
  width: 100%;
  min-height: 32px;
  padding: 7px 9px;
  border: 0;
  border-radius: 0.32rem;
  background: transparent;
  color: #ffffffde;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  text-align: left;
}

.map-export-menu button:hover:not(:disabled) {
  background: rgba(255,255,255,0.16);
  color: #ffffff;
}

.map-export-menu button:disabled {
  cursor: default;
  opacity: 0.45;
}

.map-export-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  z-index: 5000;
  width: min(320px, calc(100vw - 32px));
  margin: 0;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0.5rem;
  background: #242424;
  color: #ffffffde;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.map-export-dialog::backdrop {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
}

.map-export-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 11px 0 14px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  font-size: 0.84rem;
  font-weight: 700;
}

.map-export-dialog-body {
  display: grid;
  gap: 12px;
  padding: 16px;
  font-size: 0.8rem;
}

.map-export-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255,255,255,0.18);
}

.map-export-progress > div {
  width: 0;
  height: 100%;
  background: #55c3bb;
  transition: width 0.12s linear;
}

.map-export-actions {
  display: flex;
  justify-content: flex-end;
}

.map-export-actions button {
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(85,195,187,0.72);
  border-radius: 0.32rem;
  background: rgba(85,195,187,0.16);
  color: #ffffffde;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
}

.action-more-item {
  width: 100%;
  min-height: 32px;
  padding: 7px 9px;
  border: 0;
  border-radius: 0.32rem;
  background: transparent;
  color: #ffffffde;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  text-align: left;
}

.action-more-item:hover {
  background: rgba(255,255,255,0.16);
  color: #ffffff;
}

.action-title-tooltip {
  position: fixed;
  z-index: 2500;
  max-width: min(220px, calc(100vw - 16px));
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 0.3rem;
  background: rgba(24, 24, 24, 0.96);
  color: #ffffffde;
  font: 0.72rem/1.2 Roboto, Arial, sans-serif;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translateY(-3px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: normal;
}

.action-title-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.action-title-tooltip[hidden] {
  display: none;
}

.map-action-button-refresh {
  top: 164px;
  width: 34px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-action-button-refresh svg {
  display: block;
}

.map-refresh-toast {
  position: absolute;
  left: 50%;
  top: 12px;
  z-index: 1400;
  transform: translate(-50%, -8px);
  padding: 7px 11px;
  border: 1px solid var(--cw-border);
  border-radius: 0.35rem;
  background: var(--cw-control-bg-translucent);
  color: var(--cw-text);
  font-size: 0.72rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.map-refresh-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.map-refresh-toast[hidden] {
  display: none;
}

.map-data-saver-toast {
  position: absolute;
  left: 50%;
  top: 48px;
  z-index: 1400;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(360px, calc(100% - 24px));
  transform: translate(-50%, -8px);
  padding: 7px 8px 7px 11px;
  border: 1px solid var(--cw-border);
  border-radius: 0.35rem;
  background: var(--cw-control-bg-translucent);
  color: var(--cw-text);
  font-size: 0.72rem;
  line-height: 1.3;
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.map-data-saver-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.map-data-saver-toast[hidden] {
  display: none;
}

.map-data-saver-toast button {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
}

.annotation-toolbar {
  position: absolute;
  left: 50%;
  top: 48px;
  z-index: 1390;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  max-width: calc(100% - 24px);
  padding: 6px;
  border: 1px solid var(--cw-border);
  border-radius: 0.38rem;
  background: var(--cw-control-bg-translucent);
  box-shadow: var(--cw-panel-shadow);
  color: var(--cw-text);
  transform: translateX(-50%);
  backdrop-filter: blur(5px);
}

.annotation-toolbar[hidden] {
  display: none;
}

.annotation-tool-btn {
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 0.3rem;
  background: rgba(255,255,255,0.08);
  color: #ffffffde;
  cursor: pointer;
  font: 700 0.72rem/1 Roboto, Arial, sans-serif;
}

.annotation-tool-btn:hover,
.annotation-tool-btn.active {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.annotation-clear-btn {
  color: #ffc8c8;
}

.annotation-color-picker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 4px 7px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 0.3rem;
  background: rgba(255,255,255,0.06);
  color: var(--cw-muted);
  cursor: pointer;
  font: 700 0.68rem/1 Roboto, Arial, sans-serif;
}

.annotation-color-picker input {
  width: 24px;
  height: 20px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 0.22rem;
  background: var(--annotation-color, #55c3bb);
  cursor: pointer;
}

.annotation-status {
  min-width: 92px;
  color: var(--cw-muted);
  font-size: 0.68rem;
  line-height: 1.1;
  white-space: nowrap;
}

.annotation-label {
  max-width: min(260px, 42vw);
  padding: 4px 7px;
  border: 1px solid rgba(85,195,187,0.78);
  border-radius: 0.28rem;
  background: rgba(24, 24, 24, 0.9);
  color: #ffffff;
  box-shadow: 0 2px 7px rgba(0,0,0,0.35);
  font: 700 0.72rem/1.2 Roboto, Arial, sans-serif;
  overflow-wrap: anywhere;
  pointer-events: none;
  text-align: center;
}

.annotation-label-editor {
  width: min(240px, 48vw);
  pointer-events: auto;
}

.annotation-label-input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--annotation-color, #55c3bb);
  border-radius: 0.3rem;
  outline: none;
  background: rgba(24, 24, 24, 0.94);
  box-shadow: 0 2px 8px rgba(0,0,0,0.38);
  color: #fff;
  font: 700 0.76rem/1.2 Roboto, Arial, sans-serif;
  text-align: center;
}

.annotation-label-input::placeholder {
  color: rgba(255,255,255,0.58);
  font-weight: 500;
}

.map-stage.annotation-active .maplibregl-canvas {
  cursor: crosshair;
}

@media (min-width: 701px) {
  .map-stage.sidebar-active .annotation-toolbar {
    left: calc(320px + (100% - 320px) / 2);
    max-width: calc(100% - 344px);
  }
}

.map-colorbar-stack {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1190;
  pointer-events: auto;
}

.map-colorbar-stack[hidden] {
  display: none;
}

.map-colorbar-card {
  position: relative;
  width: 278px;
  padding: 7px 8px;
  border: 1px solid var(--cw-border);
  border-radius: 0.4rem;
  background: var(--cw-control-bg-translucent);
  color: var(--cw-text);
  box-shadow: var(--cw-panel-shadow);
  backdrop-filter: blur(5px);
}

.map-colorbar-empty {
  color: var(--cw-muted);
  font-size: 0.64rem;
  line-height: 1.25;
  text-align: center;
}

.map-colorbar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  align-items: start;
  min-height: 42px;
}

.map-colorbar-row + .map-colorbar-row {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.map-colorbar-title {
  color: var(--cw-text);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-colorbar-canvas-wrap {
  position: relative;
  min-width: 0;
  cursor: crosshair;
}

.map-colorbar-canvas {
  display: block;
  width: 100%;
  height: 24px;
}

.map-colorbar-opacity-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.map-colorbar-opacity-controls label {
  display: grid;
  gap: 3px;
}

.map-colorbar-opacity-controls span {
  display: flex;
  justify-content: space-between;
    color: rgba(255,255,255,.56);
  font-size: .65rem;
}

.map-colorbar-opacity-controls output {
  color: rgba(255,255,255,.75);
}

.map-colorbar-opacity-hint {
  position: absolute;
  top: 0;
  right: 10px;
  color: rgba(255,255,255,.52);
  font-size: .62rem;
}

.map-colorbar-cutoff {
  position: absolute;
  top: 0;
  z-index: 2;
  width: 3px;
  height: 14px;
  padding: 0;
  border: 0;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.9), 0 0 3px rgba(0,0,0,.9);
  cursor: pointer;
  transform: translateX(-1px);
}

.map-colorbar-probe {
  position: absolute;
  bottom: 25px;
  display: none;
  align-items: center;
  gap: 4px;
  padding: 1px 3px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.25rem;
  background: rgba(24, 24, 24, 0.94);
  color: var(--cw-text);
  line-height: 1;
  white-space: nowrap;
  transform: none;
  pointer-events: none;
}

.map-colorbar-probe-value{
  font-size:0.7rem;
}

.map-colorbar-row.is-probing .map-colorbar-probe {
  display: flex;
}

.map-colorbar-probe-swatch {
  display: block;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 2px;
}

.loading-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 24px;
  padding:10px;
  transform: translate(-50%, -50%);
  z-index: 6;
  overflow: hidden;
  color: #fff;
  pointer-events: none;
}

#map-startup-spinner {
  position: absolute;
  top: 0;
  right: -24px;
  width: 24px;
  height: 24px;
  animation: map-startup-spinner-drift 2.8s linear infinite;
}

#map-startup-spinner svg {
  display: block;
  animation: map-startup-spinner-spin 1.2s linear infinite;
}

@keyframes map-startup-spinner-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-180px); }
}

@keyframes map-startup-spinner-spin {
  to { transform: rotate(-360deg); }
}

.control-button,
.guidance-trend-btn,
.bottom-control-tab,
.sat-source-group-btn,
.boption {
  min-width: 0;
  border-radius: 0.32rem;
  cursor: pointer;
}

.control-button,
.guidance-trend-btn {
  background: var(--cw-control-bg);
  border: 1px solid var(--cw-border);
  font-size: 0.68rem;
  padding: 5px 8px;
}

.control-button {
  color: #ffffffde;
}

.guidance-graphs {
  display: block;
  padding: 6px 16px 12px;
}

.guidance-trends {
  border-top: 1px solid var(--cw-hover-soft-strong);
  width: 100%;
  margin-top: 10px;
  padding-top: 8px;
}

.guidance-trends-title {
  color: var(--cw-muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.guidance-trend-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.guidance-trend-btn {
  min-width: 54px;
  color: var(--cw-text);
}

.guidance-trend-btn.active,
.guidance-trend-btn:hover,
.bottom-control-tab.active {
  background: var(--cw-active-bg);
  border-color: var(--cw-active-border);
  color: var(--cw-text-strong);
}

.ensemble-layer-options {
  display: grid;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px 16px 4px;
}

.ensemble-control-slot {
  display: block;
  min-width: 0;
}

.ensemble-sidebar-controls {
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.ensemble-sidebar-controls .bottom-control-row {
  padding: 5px 0 0;
}

.ensemble-speed-field {
  margin-top: 5px;
}

.ensemble-detail {
  margin: 9px 0 0;
  padding: 13px 0 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  display: grid;
  gap: 9px;
}

.ensemble-detail-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}

.ensemble-detail-close {
  flex: 0 0 auto;
}

.map-bottom-control {
  position: absolute;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 1200;
  width: min(520px, calc(100% - 36px));
  padding: 0px 6px 6px 6px;
  background: #242424;
  border: 1px solid #1e2d40;
  border-radius: 0.45rem;
  color: #ffffffde;
  backdrop-filter: blur(5px);
  box-shadow: var(--cw-panel-shadow);
}

.map-stage.sidebar-active .map-bottom-control:not(.sidebar-embedded-control):not(.temporal-map-control) {
  left: calc(320px + (100% - 320px) / 2);
  max-width: calc(100% - 356px);
}

.sidebar-embedded-control {
  position: static;
  width: 100%;
  padding: 6px 0 0;
  transform: none;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-radius: 0;
  backdrop-filter: none;
  box-shadow: none;
}

.map-stage.map-controls-split .map-bottom-control {
  width: min(500px, calc(50% - 28px));
  transform: none;
}

.map-stage.sidebar-active.map-controls-split .map-bottom-control:not(.sidebar-embedded-control) {
  max-width: none;
}

.map-stage.map-controls-split .sidebar-embedded-control {
  width: 100%;
}

.temporal-map-control {
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  min-height: calc(48px + env(safe-area-inset-bottom));
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  transform: none;
  border-width: 1px 0 0;
  border-radius: 0;
  box-shadow: none;
}

.map-stage.sidebar-active .temporal-map-control {
  left: 320px;
}

.temporal-time-badge {
  position: absolute;
  left: 12px;
  bottom: calc(56px + env(safe-area-inset-bottom));
  z-index: 1210;
  padding: 5px 8px;
  border: 1px solid var(--cw-border);
  border-radius: 0.35rem;
  background: var(--cw-control-bg-translucent);
  color: var(--cw-text);
  font-size: 0.8rem;
  line-height: 1;
  pointer-events: none;
  backdrop-filter: blur(5px);
  box-shadow: var(--cw-panel-shadow);
  white-space: nowrap;
}

.temporal-time-badge[hidden] {
  display: none;
}

#map .screenshot-text-capture {
  font-family: Arial, Roboto, sans-serif !important;
  font-style: normal !important;
  font-variant: normal !important;
  letter-spacing: 0 !important;
  line-height: 1.15 !important;
  text-rendering: geometricPrecision;
  transform: none !important;
}

#map .screenshot-watermark {
  color: rgba(255,255,255,0.9);
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 16px !important;
  left: 15px;
  position: absolute;
  text-shadow:
    -1px -1px 0 rgba(0,0,0,0.8),
    1px -1px 0 rgba(0,0,0,0.8),
    -1px 1px 0 rgba(0,0,0,0.8),
    1px 1px 0 rgba(0,0,0,0.8);
  top: 15px;
  white-space: nowrap;
  z-index: 20;
}

.map-stage.sidebar-active .temporal-time-badge {
  left: 332px;
}

.map-stage.map-controls-split .temporal-map-control {
  left: 0;
  right: 0;
  width: auto;
  transform: none;
}

.map-stage.temporal-control-active .map-bottom-control:not(.temporal-map-control) {
  bottom: calc(60px + env(safe-area-inset-bottom));
}

.map-stage.temporal-control-active .sidebar-embedded-control {
  bottom: auto;
}

.temporal-control-row {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  grid-template-columns: none;
  margin-top: 0;
  width: 100%;
}

.temporal-control-row .control-button {
  flex: 0 0 36px;
  padding-left: 4px;
  padding-right: 4px;
}

.temporal-control-row .ensemble-map-play {
  flex-basis: 32px;
}

.temporal-control-row #temporal-map-slider {
  flex: 1 1 80px;
  max-width: none;
}

.temporal-control-time {
  flex: 0 0 auto;
  text-align: center;
  white-space: nowrap;
}

.temporal-control-row select {
  width: 100%;
}

.temporal-select-field {
  align-self: center;
  align-items: center;
  display: grid;
  flex: 0 0 auto;
  gap: 4px;
  grid-template-columns: 34px minmax(0, 1fr);
  height: 30px;
  min-width: 0;
}

.temporal-select-field span {
  color: var(--cw-muted);
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
  white-space: nowrap;
}

.map-stage.map-controls-split [data-bottom-position="0"] {
  left: 18px !important;
  right: auto !important;
  transform: none !important;
}

.map-stage.map-controls-split [data-bottom-position="1"] {
  left: auto !important;
  right: 18px !important;
  transform: none !important;
}

.map-stage.map-controls-split .sidebar-embedded-control[data-bottom-position] {
  left: auto !important;
  right: auto !important;
}

.map-bottom-control[hidden] {
  display: none;
}

.bottom-control-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.bottom-control-tabs {
  display: none;
  gap: 4px;
  margin-bottom: 6px;
}

.bottom-control-tab {
  flex: 1;
  height: 24px;
  padding: 0 6px;
  border: 1px solid #1e2d40;
  background: var(--cw-control-bg);
  color: #ffffff99;
  font-size: 0.62rem;
  line-height: 1;
}

.bottom-control-title {
  color: #ffffffde;
  font-size: 0.76rem;
  font-weight: 700;
}

.bottom-control-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bottom-control-valid,
.bottom-control-loading {
  color: #ffffff99;
  font-size: 0.68rem;
  text-align: right;
}

.bottom-control-close {
  position: static;
  padding: 0px 6px;
  border-radius: 0.25rem;
  background: transparent;
  color: var(--cw-muted);
}

.bottom-control-close:hover {
  background: var(--cw-hover-soft-strong);
  color: var(--cw-text);
}

.bottom-control-sensor-row,
.microwave-map-row,
.bottom-control-row {
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.bottom-control-sensor-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bottom-control-row {
  display: grid;
  grid-template-columns: 42px 42px 34px minmax(0, 1fr) 42px 42px 72px 70px;
  gap: 6px;
}

.bottom-control-row .control-button {
  min-width: 0;
  height: 30px;
  padding: 0 6px;
  font-size: 0.66rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.temporal-map-control .temporal-control-row {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  grid-template-columns: none;
  margin-top: 0;
  width: 100%;
}

.temporal-map-control .temporal-control-row .control-button {
  flex: 0 0 36px;
  padding-left: 4px;
  padding-right: 4px;
}

.temporal-map-control .temporal-control-row .ensemble-map-play {
  flex-basis: 32px;
}

.temporal-map-control #temporal-map-slider {
  flex: 1 1 auto;
  max-width: none;
  min-width: 80px;
}

.temporal-map-control .temporal-control-time {
  flex: 0 0 auto;
  text-align: center;
  white-space: nowrap;
}

.temporal-map-control .temporal-control-row select {
  flex: 0 0 72px;
}

.temporal-map-control #temporal-map-speed-select {
  flex-basis: 64px;
}

.microwave-map-row {
  display: grid;
  grid-template-columns: minmax(96px, 130px) 46px minmax(0, 1fr);
}

.microwave-control-field {
  display: grid;
  gap: 7px;
  margin-top: 11px;
}

.microwave-control-field[hidden] {
  display: none;
}

.microwave-control-field span {
  color: var(--cw-muted);
  font-size: 0.66rem;
  line-height: 1;
}

.microwave-control-field b {
  color: var(--cw-text);
  font-weight: 400;
}

.sat-map-select-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.sat-map-select-field {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sat-map-select-field[hidden] {
  display: none;
}

.sat-map-select-field span {
  color: var(--cw-muted);
  font-size: 0.62rem;
  line-height: 1;
}

.sat-source-group-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
}

.sat-source-group-btn {
  height: 23px;
  padding: 0 4px;
  border: 1px solid var(--cw-border);
  background: var(--cw-control-bg-soft);
  color: var(--cw-muted);
  font-size: 0.58rem;
  line-height: 1;
}

.sat-source-group-btn:hover,
.sat-source-group-btn.active {
  border-color: var(--cw-focus-border);
  background: var(--cw-control-hover);
  color: var(--cw-text);
}

.sat-map-select-row select,
.map-bottom-control select {
  min-width: 0;
  height: 30px;
  color: var(--cw-text);
  border: 0;
  border-radius: 0.35rem;
  padding: 5px 7px;
  font-size: 0.7rem;
  background: var(--cw-control-bg);
}

.ensemble-map-play {
  min-width: 0;
}

.ensemble-map-play svg {
  width: 18px;
  height: 18px;
  display: block;
  margin: auto;
  fill: currentColor;
}

.choice-control,
.boption {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #ffffff99;
  border: 1px solid var(--cw-border);
  background: var(--cw-control-bg-soft);
  font-size: 0.66rem;
  height: 28px;
  padding: 0 7px;
  text-align: center;
  user-select: none;
}

.boption.is-active,
.boption:hover,
.boption:has(input:checked:not(:disabled)) {
  background: var(--cw-control-hover);
  border-color: var(--cw-focus-border);
  color: #ffffffde;
}

.boption input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.microwave-age-label {
  color: #ffffff99;
  font-size: 0.7rem;
  text-align: center;
}

.forecast-hour-slider {
  --slider-fill: var(--cw-teal);
  --slider-empty: rgba(200, 214, 229, 0.34);
  appearance: none;
  -webkit-appearance: none;
  color: var(--cw-teal);
  accent-color: var(--cw-teal);
  background: transparent;
  border: 0;
  box-shadow: none;
  cursor: pointer;
  width: 100%;
  min-width: 0;
  padding: 0;
}

.forecast-hour-slider::-webkit-slider-runnable-track {
  height: 3px;
  background: linear-gradient(to right, var(--slider-fill) 0%, var(--slider-fill) var(--slider-percent, 100%), var(--slider-empty) var(--slider-percent, 100%), var(--slider-empty) 100%);
  border: 0;
  box-shadow: none;
  border-radius: 999px;
}

.forecast-hour-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5.5px;
  background: var(--slider-fill);
  border: 0;
  box-shadow: none;
  border-radius: 50%;
}

.forecast-hour-slider::-moz-range-track {
  height: 3px;
  background: var(--slider-empty);
  border: 0;
  box-shadow: none;
  border-radius: 999px;
}

.forecast-hour-slider::-moz-range-progress {
  height: 3px;
  background: var(--slider-fill);
  border: 0;
  border-radius: 999px;
}

.forecast-hour-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: var(--slider-fill);
  border: 0;
  box-shadow: none;
  border-radius: 50%;
}

.forecast-hour-slider:focus {
  outline: none;
}

.forecast-hour-slider:focus-visible {
  outline: none;
}

.microwave-pass-tooltip {
  pointer-events: none;
  z-index: 8;
}

.microwave-pass-tooltip .maplibregl-popup-content {
  background: rgba(24, 24, 24, 0.92);
  border: 0.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.3rem;
  color: #ffffffde;
  font-family: Roboto, Arial, sans-serif;
  font-size: 0.75rem;
  padding: 5px 8px;
  white-space: nowrap;
}

.microwave-pass-tooltip .maplibregl-popup-tip {
  display: none;
}

.metar-tooltip-popup {
  pointer-events: none;
  z-index: 8;
}

.metar-tooltip-popup .maplibregl-popup-content {
  padding: 5px 8px !important;
  border: 0.5px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 0.3rem !important;
  background: rgba(24, 24, 24, 0.92) !important;
  color: #ffffffde !important;
  font-family: Roboto, Arial, sans-serif;
  font-size: 0.75rem;
  white-space: nowrap;
  box-shadow: none !important;
}

.metar-tooltip-popup .maplibregl-popup-tip {
  display: none;
}

.storm-tooltip-popup {
  pointer-events: none;
  z-index: 40;
}

.storm-tooltip-popup .maplibregl-popup-content {
  padding: 5px 8px !important;
  border: 0.5px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 0.3rem !important;
  background: rgba(24, 24, 24, 0.94) !important;
  color: #ffffffde !important;
  font-family: Roboto, Arial, sans-serif;
  font-size: 0.75rem;
  white-space: nowrap;
  box-shadow: none !important;
}

.storm-tooltip-popup .maplibregl-popup-tip {
  display: none;
}

.recon-tooltip-popup {
  pointer-events: none;
  z-index: 40;
}

.recon-tooltip-popup .maplibregl-popup-content {
  padding: 5px 8px !important;
  border: 0.5px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 0.3rem !important;
  background: rgba(24, 24, 24, 0.92) !important;
  color: #ffffffde !important;
  font-family: Roboto, Arial, sans-serif;
  font-size: 0.72rem;
  white-space: nowrap;
  box-shadow: none !important;
}

.recon-tooltip-card {
  display: grid;
  gap: 2px;
  line-height: 1.16;
}

.recon-tooltip-hint {
  color: var(--cw-muted);
  font-size: 0.64rem;
}

.recon-tooltip-popup .maplibregl-popup-tip {
  display: none;
}

.metar-observation-popup .maplibregl-popup-content {
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 0.35rem !important;
  background: #242424 !important;
  color: #ffffffde !important;
  font-family: Roboto, Arial, sans-serif;
  font-size: 0.75rem;
  box-shadow: 0 4px 18px rgba(0,0,0,0.45) !important;
}

.metar-observation-popup .maplibregl-popup-content > div {
  margin: 8px 10px;
}

.metar-observation-popup .maplibregl-popup-tip {
  display: none;
}

.metar-observation-popup .maplibregl-popup-close-button {
  color: #ffffffde !important;
  background: transparent !important;
  font-size: 16px;
  padding: 2px 6px;
}

.metar-observation-popup .maplibregl-popup-close-button:hover {
  background: rgba(255,255,255,0.15) !important;
}

.maplibregl-popup.wind-probe-popup {
  z-index: 1400;
}

.wind-probe-popup .maplibregl-popup-content {
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 0.35rem !important;
  background: #242424 !important;
  color: #ffffffde;
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}

.wind-probe-popup .maplibregl-popup-content > div {
  margin: 8px 10px;
}

.wind-probe-popup .maplibregl-popup-tip {
  display: none;
}

.wind-probe-popup .maplibregl-popup-close-button {
  color: #ffffffde !important;
  background: transparent !important;
  font-size: 16px;
  padding: 2px 6px;
}

.wind-probe-popup .maplibregl-popup-close-button:hover {
  background: rgba(255,255,255,0.15) !important;
}

.maplibregl-popup.recon-observation-popup {
  z-index: 1400;
  opacity: 1;
  transition: opacity 0.18s ease;
}

.maplibregl-popup.recon-observation-popup.is-fading {
  opacity: 0;
}

.recon-observation-popup .maplibregl-popup-content {
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 0.35rem !important;
  background: #242424 !important;
  color: #ffffffde;
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}

.recon-observation-popup .maplibregl-popup-tip {
  display: none;
}

.recon-observation-popup .maplibregl-popup-close-button {
  color: #ffffffde !important;
  background: transparent !important;
  font-size: 16px;
  padding: 2px 6px;
}

.recon-observation-popup .maplibregl-popup-close-button:hover {
  background: rgba(255,255,255,0.15) !important;
}

.recon-popup-card {
  min-width: 250px;
  margin: 8px 10px;
  font-family: Roboto, Arial, sans-serif;
  font-size: 0.72rem;
}

.recon-popup-title {
  max-width: 260px;
  margin: 0 18px 7px 0;
  color: var(--cw-text-strong);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.recon-popup-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.recon-popup-row span {
  font-size: 0.72rem;
  color: var(--cw-muted);
}

.recon-popup-row b {
  color: var(--cw-text);
  font-weight: 400;
  text-align: right;
}

.recon-popup-raw {
  margin-top: 7px;
  padding-top: 6px;
  border-top: 1px solid rgba(255,255,255,0.16);
  color: var(--cw-muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.62rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.recon-dropsonde-dom-marker {
  width: 17px;
  height: 17px;
  padding: 0;
  z-index: 24;
  border: 2px solid #111820;
  border-radius: 50%;
  background: #ffffff;
  color: #111820;
  cursor: pointer;
  font: 700 10px/13px Roboto, Arial, sans-serif;
  text-align: center;
  box-shadow: 0 1px 5px rgba(0,0,0,0.45);
}

.recon-dropsonde-dom-marker:hover {
  background: #d8f4ff;
}

.recon-vdm-dom-marker {
  min-width: 42px;
  height: 20px;
  padding: 0 7px;
  z-index: 30;
  border: 1px solid rgba(255,255,255,0.78);
  border-radius: 999px;
  background: rgba(25,31,38,0.94);
  color: #ffffff;
  cursor: pointer;
  font: 700 10px/18px Roboto, Arial, sans-serif;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 1px 6px rgba(0,0,0,0.52);
}

.recon-vdm-dom-marker:hover {
  background: rgba(74,144,217,0.96);
}

.recon-drop-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  z-index: 5000;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: 0;
  padding: 0;
  overflow: hidden;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 0.5rem;
  background: #242424;
  color: #ffffffde;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.recon-drop-dialog::backdrop {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
}

.recon-drop-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}

.recon-drop-dialog-title {
  min-width: 0;
  overflow: hidden;
  color: #ffffffde;
  font-size: 0.82rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recon-drop-dialog-close {
  color: #ffffffde;
}

.recon-drop-dialog-body {
  max-height: calc(100vh - 92px);
  padding: 8px;
  overflow: auto;
}

.recon-drop-dialog-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.graph-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  z-index: 5000;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  height: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 0.5rem;
  background: #242424;
  color: #ffffffde;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.graph-dialog[open] {
  display: block;
}

.graph-dialog::backdrop {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
}

.graph-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}

.graph-dialog-title {
  min-width: 0;
  overflow: hidden;
  color: #ffffffde;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.graph-dialog-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
}

.graph-export-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 0.3rem;
  background: transparent;
  color: #ffffff99;
  cursor: pointer;
  transition: color 0.15s, background 0.4s;
}

.graph-export-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.graph-export-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.2);
  color: #ffffffde;
}

.graph-export-btn:disabled {
  cursor: wait;
  opacity: 0.6;
}

.graph-dialog-close {
  color: #ffffffde;
}

.graph-dialog-body {
  height: min(540px, calc(100vh - 110px));
  min-height: 380px;
  padding: 5px 10px;
  overflow: hidden;
}

.settings-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  z-index: 5000;
  width: min(440px, calc(100vw - 32px));
  margin: 0;
  padding: 0;
  overflow: hidden;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 0.5rem;
  background: #242424;
  color: #ffffffde;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.settings-dialog[open] {
  display: block;
}

.settings-dialog::backdrop {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
}

.bug-report-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(430px, calc(100vw - 32px));
  margin: 0;
  padding: 0;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #242424;
  color: #ffffffde;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}

.bug-report-dialog::backdrop {
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
}

.bug-report-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}

.bug-report-dialog-title {
  font-size: 0.9rem;
  font-weight: 700;
}

.bug-report-dialog-close {
  color: #ffffffde;
}

.bug-report-dialog-body {
  display: grid;
  gap: 12px;
  padding: 16px;
  font-size: 0.82rem;
}

.bug-report-dialog-body textarea {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 0.3rem;
  background: #181818;
  color: #ffffffde;
  font: inherit;
  line-height: 1.35;
}

.bug-report-details-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
}

.bug-report-details-label {
  font-weight: 600;
}

.bug-report-details-copy,
.bug-report-status {
  color: rgba(255,255,255,0.62);
  font-size: 0.74rem;
}

.bug-report-details-copy {
  margin-top: 3px;
}

.bug-report-status {
  min-height: 1em;
  margin-top: -3px;
}

.bug-report-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.bug-report-actions button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0.3rem;
  background: rgba(255,255,255,0.08);
  color: #ffffffde;
  font: inherit;
  font-size: 0.78rem;
}

.bug-report-actions button:disabled {
  opacity: 0.55;
}

.settings-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}

.settings-dialog-title {
  color: #ffffffde;
  font-size: 0.9rem;
  font-weight: 700;
}

.settings-dialog-close {
  color: #ffffffde;
}

.settings-dialog-body {
  display: grid;
  gap: 0;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.16);
}

.settings-row:last-child {
  border-bottom: 0;
}

.settings-color-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(44px, 1fr));
  gap: 12px;
}

.settings-color-controls label {
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #ffffff99;
  font-size: 0.78rem;
  font-weight: 400;
}

.settings-color-controls input[type="color"] {
  width: 34px;
  height: 26px;
  padding: 1px;
  border: 1px solid var(--cw-border);
  border-radius: 0.32rem;
  background: var(--cw-control-bg-soft);
  cursor: pointer;
}

.settings-label {
  color: #ffffffde;
  font-size: 0.78rem;
  font-weight: 400;
}

.settings-inline-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.settings-number-input {
  width: 58px;
  height: 28px;
  min-width: 0;
  border: 1px solid var(--cw-border);
  border-radius: 0.3rem;
  background: #181818;
  color: #ffffffde;
  font: inherit;
  font-size: 0.78rem;
  padding: 3px 6px;
}

.chart-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.graph-message {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #ffffff99;
  font-size: 0.8rem;
}

.metar-graph-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.metar-graph-tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
  padding: 4px 0 8px;
}

.metar-graph-tab {
  border: 1px solid var(--cw-border);
  border-radius: 0.3rem;
  background: var(--cw-control-bg-soft);
  color: var(--cw-muted);
  cursor: pointer;
  font-size: 0.72rem;
  padding: 6px 10px;
  transition: color 0.15s, background 0.4s, border-color 0.2s;
}

.metar-graph-tab.is-active,
.metar-graph-tab:hover {
  background: var(--cw-control-hover);
  border-color: var(--cw-focus-border);
  color: var(--cw-text);
}

.metar-chart-panel {
  flex: 1;
  min-height: 0;
  position: relative;
}

.chart-container .cw-chart-tooltip {
  background: var(--cw-tooltip-bg);
  border: 1px solid var(--cw-border-soft);
  color: var(--cw-text);
  border-radius: 0.25rem;
  box-shadow: var(--cw-tooltip-shadow);
  font-size: 0.68rem;
  line-height: 1.25;
  padding: 4px 6px;
}

.chart-container .apexcharts-toolbar {
  z-index: 5;
}

.chart-container .apexcharts-tooltip {
  font-size: 0.68rem !important;
}

.chart-container .apexcharts-tooltip-title {
  font-size: 0.64rem !important;
  padding: 4px 6px !important;
}

.chart-container .apexcharts-tooltip:empty,
.chart-container .apexcharts-tooltip-title:empty,
.chart-container .apexcharts-xaxistooltip:empty,
.chart-container .apexcharts-yaxistooltip:empty,
.chart-container .apexcharts-xaxistooltip,
.chart-container .apexcharts-yaxistooltip {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.chart-container .cw-chart-tooltip-title {
  color: var(--cw-muted);
  font-size: 0.64rem;
}

.chart-container .apexcharts-canvas,
.chart-container .apexcharts-canvas svg {
  background: transparent !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.chart-container .apexcharts-svg,
.chart-container .apexcharts-inner,
.chart-container .apexcharts-graphical {
  background: transparent !important;
  overflow: visible !important;
}

.chart-container .apexcharts-svg > rect {
  fill: transparent !important;
}

.chart-container .apexcharts-series path,
.chart-container .apexcharts-line-series path,
.chart-container .apexcharts-series line,
.chart-container .apexcharts-gridline,
.chart-container .apexcharts-xaxis text,
.chart-container .apexcharts-yaxis text,
.chart-container .apexcharts-legend-text {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Ensemble members are intentionally charted without a several-hundred-item legend. */
#graph-dialog .ensemble-chart .apexcharts-legend {
  display: none !important;
}

.chart-container .apexcharts-xaxis text,
.chart-container .apexcharts-yaxis text {
  font-size: 11px !important;
}

.chart-container .apexcharts-xaxis-title-text,
.chart-container .apexcharts-yaxis-title-text {
  font-size: 12px !important;
}

.storm-tooltip {
  background: rgba(24, 24, 24, 0.92);
  border: 0.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.3rem;
  color: #ffffffde;
  font-family: Roboto, Arial, sans-serif;
  font-size: 0.75rem;
  padding: 5px 8px;
  pointer-events: none;
  position: absolute;
  transform: translate(-50%, calc(-100% - 18px));
  white-space: nowrap;
  z-index: 8;
}

.storm-tooltip[hidden] {
  display: none;
}

@media (min-width: 600px) {
  #moreBtn{
    display:none;
  }

  .action-more-menu {
    display: none;
  }
}

@media (min-width: 701px) {
  .map-stage:not(.sidebar-active) .maplibregl-ctrl-top-left {
    top: 52px;
  }
}

@media (max-width: 600px) {
  #colorbarBtn, #screenshotBtn, #annotateBtn, #bugReportBtn, #settingsBtn{
    display:none;
  }

  .annotation-toolbar {
    top: 10px;
    gap: 5px;
    padding: 5px;
  }

  .annotation-tool-btn {
    padding: 5px 8px;
  }

  .annotation-status {
    min-width: 74px;
    white-space: normal;
  }
}

@media (max-width: 700px) {
  .map-stage.sidebar-active #map {
    left: 0;
  }

  .sidebar-open-button {
    display: none;
  }

  .mobile-sidebar-tabs {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1350;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: calc(42px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid #1e2d40;
    background: #242424;
  }

  .mobile-sidebar-tabs .sidebar-tab {
    height: 42px;
    border-bottom: 0;
    border-top: 2px solid transparent;
    font-size: 0.76rem;
  }

  .mobile-sidebar-tabs .sidebar-tab.active {
    border-top-color: var(--cw-teal);
  }

  .sidebar-tabs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px;
  }

  .sidebar-tabs .sidebar-tab {
    display: none;
  }

  .sidebar-tabs-close {
    grid-column: 2;
    height: 32px;
    font: 18px/32px Arial, Helvetica, sans-serif;
  }

  .sidebar {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    min-width: 0 !important;
    height: 0;
    min-height: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    border-top: 1px solid #1e2d40;
    border-radius: 0.35rem 0.35rem 0 0;
    transition: height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                min-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .sidebar-open {
    height: calc(45dvh - 42px);
    min-height: calc(45dvh - 42px);
    bottom: calc(42px + env(safe-area-inset-bottom));
  }

  .map-bottom-control {
    left: 10px;
    right: 10px;
    bottom: calc(52px + env(safe-area-inset-bottom));
    width: auto;
    transform: none;
  }

  .map-stage.sidebar-active .map-bottom-control:not(.sidebar-embedded-control):not(.temporal-map-control) {
    left: 10px;
    max-width: none;
  }

  .sidebar-embedded-control {
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
  }

  .temporal-map-control {
    left: 0;
    right: 0;
    bottom: calc(42px + env(safe-area-inset-bottom));
    padding: 0 5px calc(3px + env(safe-area-inset-bottom));
  }

  .map-stage.sidebar-active .temporal-map-control {
    left: 0;
  }

  .map-stage.temporal-control-active #map {
    bottom: calc(87px + env(safe-area-inset-bottom));
  }

  .map-stage.temporal-control-active .metar-label {
    bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .map-colorbar-stack {
    top: 10px;
    right: 10px;
    max-width: calc(100% - 90px);
  }

  .map-colorbar-card {
    width: 246px;
    max-width: 100%;
  }

  .map-colorbar-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .temporal-time-badge {
    left: 10px;
    bottom: calc(102px + env(safe-area-inset-bottom));
    max-width: calc(100% - 20px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .map-stage.sidebar-active .temporal-time-badge {
    left: 10px;
  }

  .map-stage.map-controls-split .map-bottom-control {
    left: 10px !important;
    right: 10px !important;
    width: auto;
    transform: none !important;
  }

  .map-stage.map-controls-split .sidebar-embedded-control {
    left: auto !important;
    right: auto !important;
    width: 100%;
  }

  .map-stage.map-controls-split .temporal-map-control {
    left: 0 !important;
    right: 0 !important;
    width: auto;
    transform: none !important;
  }

  .map-stage.temporal-control-active .map-bottom-control:not(.temporal-map-control) {
    bottom: calc(92px + env(safe-area-inset-bottom));
  }

  .map-stage.temporal-control-active .sidebar-embedded-control {
    bottom: auto;
  }

  .bottom-control-header {
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
  }

  .bottom-control-valid {
    text-align: left;
  }

  .bottom-control-row {
    grid-template-columns: 38px 34px 30px minmax(0, 1fr) 34px 38px 62px;
    gap: 5px;
  }

  .temporal-map-control .temporal-control-row {
    display: grid;
    grid-template-columns: 34px 30px 28px 30px 34px minmax(0, 1fr) 74px 74px;
    column-gap: 3px;
    row-gap: 8px;
  }

  .temporal-map-control #temporal-map-slider { grid-column: 1 / -1; grid-row: 1; }
  .temporal-map-control #temporal-map-start { grid-column: 1; grid-row: 2; }
  .temporal-map-control #temporal-map-prev { grid-column: 2; grid-row: 2; }
  .temporal-map-control #temporal-map-toggle { grid-column: 3; grid-row: 2; }
  .temporal-map-control #temporal-map-next { grid-column: 4; grid-row: 2; }
  .temporal-map-control #temporal-map-end { grid-column: 5; grid-row: 2; }
  .temporal-map-control .temporal-source-field { grid-column: 7; grid-row: 2; }
  .temporal-map-control .temporal-speed-field { grid-column: 8; grid-row: 2; }
  .temporal-map-control .temporal-select-field {
    grid-template-columns: 28px minmax(0, 1fr);
  }
  .temporal-map-control .temporal-select-field span {
    font-size: 0.5rem;
    line-height: 1.05;
  }

  .temporal-map-control .temporal-control-row #temporal-map-slider {
    max-width: none;
    width: calc(100% + 10px);
    margin-left: -5px;
  }

  .temporal-map-control #temporal-map-slider::-webkit-slider-runnable-track {
    border-radius: 0;
  }

  .temporal-map-control #temporal-map-slider::-moz-range-track,
  .temporal-map-control #temporal-map-slider::-moz-range-progress {
    border-radius: 0;
  }

  .temporal-map-control .temporal-control-time {
    font-size: 0.48rem;
    text-align: center;
  }

  .bottom-control-row .control-button {
    padding: 0 3px;
    font-size: 0.58rem;
  }

  .sat-map-select-row {
    grid-template-columns: 1fr;
    gap: 4px;
    margin-top: 6px;
  }

  .sat-map-select-field span {
    font-size: 0.56rem;
  }

  .sat-map-select-row select,
  .map-bottom-control select {
    padding: 4px 5px;
    font-size: 0.62rem;
  }

  .bottom-control-sensor-row {
    gap: 4px;
  }

  .microwave-map-row {
    grid-template-columns: 86px 40px minmax(0, 1fr);
    gap: 5px;
    margin-top: 6px;
  }

  .boption {
    height: 26px;
    font-size: 0.6rem;
  }
}
