.ge-cfm-launch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(58, 142, 246, 0.3);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(58, 142, 246, 0.16), rgba(29, 158, 117, 0.12)),
    rgba(10, 15, 30, 0.86);
  color: #e4ebf7;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  flex-shrink: 0;
}

.ge-cfm-launch:hover {
  transform: translateY(-1px);
  border-color: rgba(58, 142, 246, 0.55);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.28);
}

.ge-cfm-launch-icon {
  font-size: 16px;
  line-height: 1;
}

.ge-cfm-launch-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.ge-cfm-launch-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f8fbff;
}

.ge-cfm-launch-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7ea4d8;
}

.cfm-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  background:
    radial-gradient(circle at top left, rgba(58, 142, 246, 0.18), transparent 26%),
    radial-gradient(circle at 85% 12%, rgba(29, 158, 117, 0.14), transparent 24%),
    linear-gradient(180deg, #0a0f1e, #070b15 72%);
  color: #e8eef9;
}

.cfm-overlay.hidden {
  display: none;
}

.cfm-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
}

.cfm-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 12px 18px 10px;
  border-bottom: 1px solid rgba(38, 56, 86, 0.8);
  background: rgba(9, 13, 24, 0.92);
  backdrop-filter: blur(10px);
}

.cfm-toolbar-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.cfm-toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cfm-toolbar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.cfm-toolbar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(58, 142, 246, 0.16);
  color: #9cc7ff;
  font-size: 14px;
}

.cfm-toolbar-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.cfm-toolbar-copy strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #f8fbff;
}

.cfm-toolbar-copy span {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7d91b2;
}

.cfm-pill-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  min-width: 0;
  overflow: visible;
}

.cfm-pill-row::-webkit-scrollbar {
  display: none;
}

.cfm-pill-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.cfm-pill-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #61799f;
  white-space: nowrap;
}

.cfm-pill {
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(37, 56, 86, 0.92);
  background: rgba(13, 19, 33, 0.94);
  color: #8fa6c9;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.cfm-pill:hover {
  border-color: rgba(58, 142, 246, 0.4);
  color: #d9e6fb;
}

.cfm-pill.active,
.cfm-pill[aria-pressed="true"] {
  border-color: rgba(58, 142, 246, 0.55);
  background: rgba(58, 142, 246, 0.16);
  color: #dff0ff;
}

.cfm-toolbar-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  justify-self: end;
  justify-content: flex-end;
  min-width: 0;
}

.cfm-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(36, 68, 50, 0.9);
  background: rgba(7, 26, 18, 0.82);
  color: #94ecc5;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.cfm-live-pill.reconnecting {
  border-color: rgba(239, 159, 39, 0.45);
  background: rgba(59, 35, 10, 0.86);
  color: #f3ca8b;
}

.cfm-live-pill.offline {
  border-color: rgba(255, 77, 103, 0.4);
  background: rgba(47, 13, 24, 0.88);
  color: #ff9db1;
}

.cfm-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1d9e75;
  box-shadow: 0 0 0 rgba(29, 158, 117, 0.35);
  animation: cfm-live-pulse 1.6s ease-out infinite;
}

.cfm-live-pill.reconnecting .cfm-live-dot {
  background: #ef9f27;
  box-shadow: 0 0 0 rgba(239, 159, 39, 0.35);
}

.cfm-live-pill.offline .cfm-live-dot {
  background: #ff4d67;
  box-shadow: none;
  animation: none;
}

@keyframes cfm-live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(29, 158, 117, 0.35);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(29, 158, 117, 0);
  }
}

.cfm-alert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(75, 23, 35, 0.92);
  background: rgba(36, 10, 18, 0.92);
  color: #ffc1cb;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.cfm-alert-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff4d67;
  color: #fff4f5;
  font-size: 10px;
}

.cfm-close-btn,
.cfm-ghost-btn,
.cfm-compact-btn,
.cfm-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(33, 47, 71, 0.92);
  background: rgba(12, 18, 32, 0.96);
  color: #d7e4f7;
  font-family: "JetBrains Mono", monospace;
  cursor: pointer;
}

.cfm-close-btn {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

.cfm-ghost-btn,
.cfm-compact-btn {
  min-height: 32px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 700;
}

.cfm-icon-btn {
  width: 32px;
  height: 32px;
  font-size: 15px;
}

.cfm-close-btn:hover,
.cfm-ghost-btn:hover,
.cfm-compact-btn:hover,
.cfm-icon-btn:hover {
  border-color: rgba(58, 142, 246, 0.4);
  color: #ffffff;
}

.cfm-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(70, 44, 20, 0.9);
  background: rgba(58, 30, 10, 0.94);
}

.cfm-banner.hidden {
  display: none;
}

.cfm-banner-copy {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  line-height: 1.5;
  color: #ffd7b8;
}

.cfm-body {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(320px, 1fr);
  min-height: 0;
}

.cfm-map-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid rgba(38, 56, 86, 0.65);
  background:
    linear-gradient(180deg, rgba(10, 15, 30, 0.4), rgba(10, 15, 30, 0.72)),
    #08111d;
}

.cfm-map {
  width: 100%;
  height: 100%;
}

.cfm-map-loading,
.cfm-sidebar-loading {
  position: absolute;
  inset: 16px;
  z-index: 2;
  display: grid;
  gap: 10px;
  align-content: start;
  pointer-events: none;
}

.cfm-sidebar-loading {
  position: static;
  inset: auto;
  padding: 0;
}

.cfm-skeleton-card,
.cfm-skeleton-line {
  position: relative;
  overflow: hidden;
  background: rgba(19, 28, 44, 0.86);
}

.cfm-skeleton-card::after,
.cfm-skeleton-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(119, 148, 193, 0.18), transparent);
  transform: translateX(-100%);
  animation: cfm-skeleton 1.25s ease-in-out infinite;
}

.cfm-skeleton-card {
  height: 88px;
  border: 1px solid rgba(32, 46, 70, 0.9);
  border-radius: 16px;
}

.cfm-skeleton-line {
  height: 10px;
  border-radius: 999px;
}

.cfm-skeleton-line.short {
  width: 34%;
}

.cfm-skeleton-line.medium {
  width: 58%;
}

@keyframes cfm-skeleton {
  100% {
    transform: translateX(100%);
  }
}

.cfm-map-meta {
  position: absolute;
  right: 16px;
  top: 14px;
  z-index: 450;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-width: min(360px, calc(100% - 32px));
}

.cfm-map-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 12px;
  border: 1px solid rgba(31, 49, 75, 0.9);
  border-radius: 12px;
  background: rgba(8, 14, 25, 0.9);
  color: #d8e5f7;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.cfm-map-chip strong {
  color: #9cc7ff;
}

.cfm-weather-toolbar {
  border-color: rgba(47, 69, 104, 0.9);
  background: rgba(9, 16, 29, 0.92);
  color: #d8e6fa;
}

.cfm-weather-toolbar.active {
  border-color: rgba(58, 142, 246, 0.55);
  background: rgba(58, 142, 246, 0.14);
}

.cfm-weather-toolbar-note {
  color: #8ba2c6;
  font-size: 10px;
}

.cfm-weather-panel,
.cfm-radar-playback,
.cfm-weather-legend {
  position: absolute;
  left: 12px;
  z-index: 620;
}

.cfm-weather-panel {
  top: 14px;
}

.cfm-radar-playback {
  top: 308px;
}

.cfm-weather-legend {
  left: 14px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  max-width: min(340px, calc(100% - 28px));
}

.cfm-weather-panel.hidden,
.cfm-radar-playback.hidden,
.cfm-weather-legend.hidden {
  display: none;
}

.cfm-weather-panel-card,
.cfm-radar-playback-card,
.cfm-weather-legend-card {
  border: 0.5px solid rgba(58, 142, 246, 0.28);
  border-radius: 16px;
  background: rgba(10, 15, 30, 0.8);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.cfm-weather-panel-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  width: min(240px, calc(100vw - 24px));
}

.cfm-weather-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(32, 46, 70, 0.92);
  background: rgba(10, 16, 28, 0.84);
  color: #8ea5c8;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cfm-weather-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(58, 142, 246, 0.4);
  color: #f1f6ff;
}

.cfm-weather-toggle.active {
  border-color: rgba(58, 142, 246, 0.55);
  background:
    linear-gradient(135deg, rgba(58, 142, 246, 0.22), rgba(29, 158, 117, 0.12)),
    rgba(10, 16, 28, 0.96);
  color: #f4f8ff;
}

.cfm-weather-toggle-main,
.cfm-weather-toggle-side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cfm-weather-toggle-side {
  min-width: 0;
}

.cfm-weather-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  font-size: 14px;
}

.cfm-weather-toggle-badge {
  color: #99aece;
  font-size: 9px;
  white-space: nowrap;
}

.cfm-weather-toggle-badge.muted {
  color: #7488a8;
}

.cfm-weather-spinner {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid rgba(151, 177, 214, 0.24);
  border-top-color: rgba(223, 240, 255, 0.92);
  animation: cfm-spin 0.8s linear infinite;
}

@keyframes cfm-spin {
  to {
    transform: rotate(360deg);
  }
}

.cfm-radar-playback-card {
  display: grid;
  gap: 10px;
  padding: 10px 12px;
  width: min(280px, calc(100vw - 24px));
}

.cfm-radar-playback-controls,
.cfm-radar-playback-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cfm-radar-playback-meta {
  color: #8fa5c8;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}

.cfm-radar-scrubber {
  width: 100%;
  accent-color: #3a8ef6;
}

.cfm-radar-legend-scale {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.cfm-radar-legend-scale span {
  display: grid;
  gap: 6px;
  color: #cddbf1;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  text-align: center;
}

.cfm-radar-legend-scale span::before {
  content: "";
  height: 10px;
  border-radius: 999px;
  background: var(--legend-color);
}

.cfm-weather-legend-card {
  padding: 10px 12px;
}

.cfm-weather-legend-title {
  margin-bottom: 8px;
  color: #eef4ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cfm-sst-legend-bar {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #042C53 0%, #185FA5 18%, #1D9E75 38%, #639922 56%, #EF9F27 72%, #D85A30 86%, #E24B4A 100%);
}

.cfm-sst-legend-labels {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  color: #91a7c9;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
}

.cfm-weather-condition {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 625;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(40, 58, 87, 0.92);
  background: rgba(10, 16, 28, 0.84);
  color: #f4f8ff;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(16px);
}

.cfm-weather-condition-icon {
  font-size: 14px;
}

.cfm-map .leaflet-top.leaflet-left {
  top: 14px;
  left: 264px;
}

.cfm-storm-icon {
  position: relative;
  width: var(--storm-size);
  height: var(--storm-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}

.cfm-storm-icon svg {
  width: var(--storm-size);
  height: var(--storm-size);
  fill: var(--storm-color);
  animation: cfm-storm-spin-ccw 4.2s linear infinite;
}

.cfm-storm-icon.south svg {
  animation-name: cfm-storm-spin-cw;
}

.cfm-storm-icon.faded {
  opacity: 0.45;
}

.cfm-storm-ring {
  position: absolute;
  inset: -10px;
  border: 2px solid rgba(163, 45, 45, 0.45);
  border-radius: 50%;
  animation: cfm-storm-ring 1.8s ease-out infinite;
}

@keyframes cfm-storm-spin-ccw {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes cfm-storm-spin-cw {
  to {
    transform: rotate(360deg);
  }
}

@keyframes cfm-storm-ring {
  0% {
    transform: scale(0.75);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.cfm-storm-category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--storm-pill-color);
  border: 1px solid var(--storm-pill-color);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
}

.cfm-sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: linear-gradient(180deg, rgba(10, 14, 24, 0.98), rgba(9, 13, 23, 0.98));
}

.cfm-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(38, 56, 86, 0.72);
}

.cfm-sidebar-title {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cfm-sidebar-title strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cfm-sidebar-title span {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #7d91b2;
}

.cfm-sidebar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cfm-sidebar-inner {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(46, 66, 97, 0.9) transparent;
}

.cfm-panel {
  border: 1px solid rgba(32, 46, 70, 0.86);
  border-radius: 18px;
  background: rgba(10, 16, 28, 0.92);
  overflow: hidden;
}

.cfm-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(32, 46, 70, 0.8);
}

.cfm-panel-head strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cfm-panel-head span {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #7088aa;
}

.cfm-panel-body {
  padding: 14px;
}

.cfm-layer-list,
.cfm-legend-list,
.cfm-detail-grid,
.cfm-compare-grid {
  display: grid;
  gap: 10px;
}

.cfm-layer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #dbe6f6;
}

.cfm-layer-row small {
  color: #758cae;
}

.cfm-switch {
  appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(49, 71, 102, 0.92);
  background: rgba(14, 22, 36, 0.95);
  position: relative;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.cfm-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #9cb3d5;
  transition: transform 0.18s ease, background 0.18s ease;
}

.cfm-switch:checked {
  background: rgba(58, 142, 246, 0.22);
  border-color: rgba(58, 142, 246, 0.55);
}

.cfm-switch:checked::after {
  transform: translateX(16px);
  background: #dff0ff;
}

.cfm-card-list {
  display: grid;
  gap: 12px;
}

.cfm-card {
  border: 1px solid rgba(31, 47, 72, 0.92);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.96), rgba(9, 14, 25, 0.96));
  padding: 14px;
  display: grid;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.cfm-card:hover {
  transform: translateY(-1px);
  border-color: rgba(58, 142, 246, 0.45);
}

.cfm-card.active {
  border-color: rgba(58, 142, 246, 0.62);
  box-shadow: inset 0 0 0 1px rgba(58, 142, 246, 0.16);
}

.cfm-card-head,
.cfm-card-meta,
.cfm-detail-head,
.cfm-weather-row,
.cfm-detail-row,
.cfm-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cfm-card-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cfm-card-title strong,
.cfm-detail-title strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: #eff5ff;
}

.cfm-card-title span,
.cfm-detail-title span,
.cfm-micro-copy {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #7790b5;
}

.cfm-count-pill,
.cfm-risk-pill,
.cfm-weather-pill,
.cfm-trend-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.cfm-count-pill {
  background: rgba(58, 142, 246, 0.14);
  color: #cde4ff;
}

.cfm-risk-pill {
  background: rgba(57, 16, 25, 0.96);
  color: #ffb4c2;
  border: 1px solid rgba(255, 77, 103, 0.35);
}

.cfm-weather-pill {
  background: rgba(35, 44, 17, 0.96);
  color: #d5f0a6;
}

.cfm-weather-pill.warn {
  background: rgba(55, 32, 8, 0.96);
  color: #ffd08f;
}

.cfm-weather-pill.risk {
  background: rgba(57, 16, 25, 0.96);
  color: #ffb4c2;
}

.cfm-trend-pill.pos {
  background: rgba(9, 50, 35, 0.92);
  color: #93e2b7;
}

.cfm-trend-pill.neg {
  background: rgba(54, 13, 23, 0.92);
  color: #ffb0bf;
}

.cfm-trend-pill.neutral {
  background: rgba(51, 36, 10, 0.92);
  color: #f6d598;
}

.cfm-card-grid,
.cfm-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cfm-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(13, 20, 35, 0.9);
}

.cfm-metric-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6680a5;
}

.cfm-metric strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  color: #f6fbff;
}

.cfm-sparkline {
  width: 100%;
  height: 52px;
  display: block;
}

.cfm-sparkline.large {
  height: 120px;
}

.cfm-detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cfm-detail-split {
  display: grid;
  gap: 12px;
}

.cfm-badge-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cfm-detail-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cfm-breakdown-card {
  border-radius: 14px;
  background: rgba(12, 20, 35, 0.9);
  padding: 12px;
  display: grid;
  gap: 6px;
}

.cfm-breakdown-card span {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6680a5;
}

.cfm-breakdown-card strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 16px;
  color: #eff5ff;
}

.cfm-compare-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.cfm-select {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid rgba(33, 47, 71, 0.92);
  background: rgba(11, 17, 31, 0.96);
  color: #d6e3f7;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.cfm-alert-log-toggle {
  background: none;
  border: none;
  color: #8ea5c8;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  cursor: pointer;
}

.cfm-alert-log-list {
  display: grid;
  gap: 8px;
}

.cfm-alert-log-list.hidden {
  display: none;
}

.cfm-alert-log-item {
  border-radius: 14px;
  background: rgba(13, 18, 31, 0.95);
  border: 1px solid rgba(49, 27, 33, 0.86);
  padding: 10px 12px;
  display: grid;
  gap: 6px;
}

.cfm-alert-log-item strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #ffd2d8;
}

.cfm-alert-log-item span {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  line-height: 1.5;
  color: #91a7c9;
}

.cfm-statusbar {
  display: grid;
  grid-template-columns: repeat(8, minmax(180px, 1fr));
  gap: 10px;
  align-items: stretch;
  padding: 10px 14px;
  overflow-x: auto;
  border-top: 1px solid rgba(38, 56, 86, 0.82);
  background: rgba(8, 12, 22, 0.96);
  scrollbar-width: thin;
}

.cfm-status-item {
  min-width: 180px;
  border: 1px solid rgba(32, 46, 70, 0.9);
  border-radius: 14px;
  padding: 9px 12px;
  background: rgba(10, 16, 28, 0.96);
  display: grid;
  gap: 6px;
}

.cfm-status-item strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cfm-status-item span {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #89a2c7;
}

.cfm-empty {
  padding: 16px;
  border: 1px dashed rgba(42, 61, 92, 0.85);
  border-radius: 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  line-height: 1.6;
  color: #8aa1c5;
}

.cfm-toast-stack {
  position: absolute;
  right: 18px;
  bottom: 76px;
  z-index: 1001;
  display: grid;
  gap: 10px;
  max-width: min(360px, calc(100vw - 36px));
}

.cfm-toast {
  border-radius: 16px;
  border: 1px solid rgba(76, 29, 39, 0.9);
  background: rgba(34, 11, 17, 0.97);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}

.cfm-toast strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #ffe0e4;
}

.cfm-toast span {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #b9cbeb;
  line-height: 1.5;
}

.cfm-vessel-marker,
.cfm-port-marker,
.cfm-chokepoint-marker {
  background: transparent;
  border: none;
}

.cfm-vessel-arrow {
  width: 18px;
  height: 18px;
  position: relative;
  transform-origin: center;
}

.cfm-vessel-arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 14px solid var(--cfm-vessel-color, #1d9e75);
  transform: translate(-50%, -58%);
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.42));
}

.cfm-port-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(58, 142, 246, 0.92);
  border: 1px solid rgba(209, 227, 255, 0.65);
  box-shadow: 0 0 0 6px rgba(58, 142, 246, 0.12);
}

.cfm-chokepoint-pulse {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(239, 159, 39, 0.18);
  border: 2px solid rgba(239, 159, 39, 0.95);
}

.cfm-chokepoint-pulse::before,
.cfm-chokepoint-pulse::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid rgba(239, 159, 39, 0.55);
  animation: cfm-ring 2.2s ease-out infinite;
}

.cfm-chokepoint-pulse::after {
  animation-delay: 1.1s;
}

@keyframes cfm-ring {
  0% {
    transform: scale(1);
    opacity: 0.75;
  }
  100% {
    transform: scale(2.9);
    opacity: 0;
  }
}

.leaflet-container {
  background: #09111d;
  font-family: "JetBrains Mono", monospace;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: rgba(8, 13, 22, 0.96);
  color: #e8eef9;
  border: 1px solid rgba(58, 142, 246, 0.25);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.4);
}

.leaflet-popup-content {
  margin: 12px 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  line-height: 1.6;
}

.cfm-popup-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #f3f8ff;
}

.cfm-popup-title strong {
  font-size: 12px;
}

.cfm-popup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
}

.cfm-popup-grid span {
  color: #87a0c7;
}

.cfm-popup-grid strong {
  color: #d9e6fb;
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: rgba(58, 142, 246, 0.18);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background: rgba(58, 142, 246, 0.72);
  color: #ffffff;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
}

body.cfm-open {
  overflow: hidden;
}

@media (max-width: 1200px) {
  .cfm-toolbar {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .cfm-toolbar-top {
    grid-template-columns: 1fr;
  }

  .cfm-toolbar-left {
    flex-wrap: wrap;
  }

  .cfm-toolbar-right {
    justify-self: start;
    justify-content: flex-start;
  }

  .cfm-body {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

@media (max-width: 960px) {
  .ge-cfm-launch {
    width: 100%;
    justify-content: center;
  }

  .cfm-toolbar {
    gap: 10px;
    padding: 12px;
  }

  .cfm-toolbar-top,
  .cfm-toolbar-left,
  .cfm-pill-row,
  .cfm-toolbar-right {
    width: 100%;
  }

  .cfm-toolbar-left {
    flex-direction: column;
    align-items: stretch;
  }

  .cfm-toolbar-ticker {
    width: 100%;
    max-width: none;
  }

  .cfm-toolbar-right {
    justify-content: flex-start;
  }

  .cfm-body {
    grid-template-columns: 1fr;
  }

  .cfm-map-panel {
    border-right: none;
  }

  .cfm-map-meta {
    right: 12px;
    left: auto;
    top: 12px;
    max-width: min(240px, calc(100% - 24px));
  }

  .cfm-weather-panel,
  .cfm-radar-playback {
    left: 12px;
    right: 12px;
    width: auto;
  }

  .cfm-weather-panel {
    top: 96px;
  }

  .cfm-radar-playback {
    top: 388px;
  }

  .cfm-weather-panel-card,
  .cfm-radar-playback-card {
    width: auto;
  }

  .cfm-weather-legend {
    left: 12px;
    right: 12px;
    max-width: calc(100% - 24px);
  }

  .cfm-weather-condition {
    right: 12px;
    bottom: 12px;
  }

  .cfm-map .leaflet-top.leaflet-left {
    top: 12px;
    left: 10px;
  }

  .cfm-sidebar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 60px;
    height: min(56dvh, 540px);
    border-top: 1px solid rgba(38, 56, 86, 0.76);
    transform: translateY(calc(100% - 58px));
    transition: transform 0.24s ease;
    z-index: 650;
    box-shadow: 0 -24px 40px rgba(0, 0, 0, 0.42);
  }

  .cfm-overlay.sidebar-open .cfm-sidebar {
    transform: translateY(0);
  }

  .cfm-sidebar-head {
    padding-top: 10px;
  }

  .cfm-card-grid,
  .cfm-detail-grid,
  .cfm-compare-grid,
  .cfm-detail-breakdown {
    grid-template-columns: 1fr;
  }

  .cfm-toast-stack {
    right: 12px;
    left: 12px;
    max-width: none;
  }
}

.cfm-toolbar-ticker {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 32px;
  min-width: 148px;
  max-width: 200px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(36, 52, 76, 0.92);
  background: rgba(9, 15, 29, 0.92);
  flex: 0 0 auto;
}

.cfm-toolbar-ticker strong,
.cfm-toolbar-ticker span {
  font-family: "JetBrains Mono", monospace;
}

.cfm-toolbar-ticker strong {
  font-size: 11px;
  color: #eff5ff;
}

.cfm-toolbar-ticker span {
  font-size: 10px;
  color: #8aa1c5;
}

.cfm-toolbar-ticker.up {
  border-color: rgba(29, 158, 117, 0.5);
  background: rgba(7, 26, 18, 0.72);
}

.cfm-toolbar-ticker.up span {
  color: #93e2b7;
}

.cfm-toolbar-ticker.down {
  border-color: rgba(255, 77, 103, 0.42);
  background: rgba(41, 11, 19, 0.84);
}

.cfm-toolbar-ticker.down span {
  color: #ffb0bf;
}

.cfm-toolbar-ticker.muted span {
  color: #6f87ab;
}

.cfm-tab-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cfm-tab {
  min-height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(33, 47, 71, 0.92);
  background: rgba(11, 17, 31, 0.96);
  color: #8fa6c9;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.cfm-tab.active {
  border-color: rgba(58, 142, 246, 0.55);
  background: rgba(58, 142, 246, 0.16);
  color: #dff0ff;
}

.cfm-stack {
  display: grid;
  gap: 12px;
}

.cfm-field,
.cfm-inline-toggle {
  display: grid;
  gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #dbe6f6;
}

.cfm-inline-toggle {
  grid-auto-flow: column;
  justify-content: start;
  align-items: center;
}

.cfm-field-grid,
.cfm-filter-grid,
.cfm-watch-grid {
  display: grid;
  gap: 12px;
}

.cfm-field-grid,
.cfm-filter-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cfm-watch-grid {
  grid-template-columns: 1fr;
}

.cfm-field-error {
  color: #ffb4c2;
  font-size: 10px;
}

.cfm-delta.pos,
.cfm-delta.neg,
.cfm-delta.neutral {
  color: #f6fbff;
}

.cfm-hbar-list {
  display: grid;
  gap: 12px;
}

.cfm-hbar-row {
  display: grid;
  gap: 8px;
}

.cfm-hbar-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cfm-hbar-label strong,
.cfm-hbar-label span {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.cfm-hbar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(24, 35, 55, 0.96);
  overflow: hidden;
}

.cfm-hbar-fill {
  height: 100%;
  border-radius: inherit;
  box-shadow: 0 0 18px rgba(58, 142, 246, 0.22);
}

.cfm-line-chart,
.cfm-bar-chart {
  width: 100%;
  height: 220px;
  display: block;
}

.cfm-gauge-wrap {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 8px 0 0;
}

.cfm-gauge {
  width: 100%;
  max-width: 320px;
  height: auto;
}

.cfm-gauge-value,
.cfm-gauge-unit,
.cfm-gauge-axis {
  font-family: "JetBrains Mono", monospace;
}

.cfm-gauge-value {
  font-size: 28px;
  fill: #f8fbff;
  font-weight: 700;
}

.cfm-gauge-unit {
  font-size: 11px;
  fill: #8aa1c5;
}

.cfm-gauge-axis {
  font-size: 10px;
  fill: #8aa1c5;
}

.cfm-gauge-meta {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.cfm-gauge-pill {
  min-height: 24px;
}

.cfm-gauge-pill.green {
  background: rgba(9, 50, 35, 0.92);
  color: #93e2b7;
}

.cfm-gauge-pill.amber {
  background: rgba(51, 36, 10, 0.92);
  color: #f6d598;
}

.cfm-gauge-pill.red {
  background: rgba(54, 13, 23, 0.92);
  color: #ffb0bf;
}

.cfm-alert-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(38, 56, 86, 0.76);
  background: linear-gradient(180deg, rgba(8, 12, 22, 0.97), rgba(6, 10, 20, 0.97));
  box-shadow: -24px 0 40px rgba(0, 0, 0, 0.4);
  transform: translateX(100%);
  transition: transform 0.24s ease;
  z-index: 780;
}

.cfm-alert-drawer.hidden {
  display: none;
}

.cfm-alert-drawer.open {
  transform: translateX(0);
}

.cfm-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(38, 56, 86, 0.72);
}

.cfm-drawer-head strong,
.cfm-drawer-head span {
  font-family: "JetBrains Mono", monospace;
}

.cfm-drawer-head strong {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cfm-drawer-head span {
  font-size: 10px;
  color: #7d91b2;
}

.cfm-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: grid;
  gap: 16px;
}

.cfm-alert-card,
.cfm-watch-card {
  border-radius: 16px;
  border: 1px solid rgba(32, 46, 70, 0.86);
  background: rgba(10, 16, 28, 0.92);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.cfm-alert-card.pulse {
  animation: cfm-compound-pulse 1.7s ease-in-out infinite;
}

@keyframes cfm-compound-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 77, 103, 0.24);
    border-color: rgba(255, 77, 103, 0.48);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(255, 77, 103, 0);
    border-color: rgba(255, 150, 165, 0.78);
  }
}

.cfm-alert-card-head,
.cfm-alert-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cfm-alert-card-head strong,
.cfm-alert-card-head span,
.cfm-alert-card-body p,
.cfm-alert-type-pill,
.cfm-severity-pill {
  font-family: "JetBrains Mono", monospace;
}

.cfm-alert-card-head strong {
  font-size: 11px;
  color: #eff5ff;
}

.cfm-alert-card-head span {
  font-size: 10px;
  color: #7d91b2;
}

.cfm-alert-card-body p {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  color: #c3d3eb;
}

.cfm-alert-type-pill,
.cfm-severity-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.cfm-alert-type-pill {
  background: rgba(18, 29, 45, 0.94);
  color: #cfe0fb;
}

.cfm-severity-pill.low {
  background: rgba(9, 50, 35, 0.92);
  color: #93e2b7;
}

.cfm-severity-pill.medium {
  background: rgba(51, 36, 10, 0.92);
  color: #f6d598;
}

.cfm-severity-pill.high {
  background: rgba(54, 13, 23, 0.92);
  color: #ffb0bf;
}

.cfm-trade-arc {
  animation: cfm-trade-flow 6.5s linear infinite;
  filter: drop-shadow(0 0 8px rgba(18, 25, 40, 0.42));
}

@keyframes cfm-trade-flow {
  100% {
    stroke-dashoffset: -44;
  }
}

.cfm-print-report {
  display: none;
}

@media (max-width: 1400px) {
  .cfm-toolbar-copy span {
    display: none;
  }

  .cfm-pill-row {
    gap: 8px 10px;
  }
}

@media (max-width: 1200px) {
  .cfm-alert-drawer {
    width: min(380px, calc(100vw - 12px));
  }
}

@media (max-width: 960px) {
  .cfm-field-grid,
  .cfm-filter-grid,
  .cfm-tab-row {
    grid-template-columns: 1fr;
  }

  .cfm-alert-drawer {
    left: 12px;
    right: 12px;
    top: 12px;
    bottom: 72px;
    width: auto;
    border: 1px solid rgba(38, 56, 86, 0.76);
    border-radius: 18px;
    transform: translateY(110%);
  }

  .cfm-alert-drawer.open {
    transform: translateY(0);
  }

  .cfm-drawer-head {
    flex-direction: column;
  }
}
