:root {
  --ft-bg: #0c1222;
  --ft-bar: linear-gradient(180deg, #152238 0%, #0c1222 100%);
  --ft-surface: rgba(8, 15, 28, 0.84);
  --ft-surface-2: rgba(15, 23, 42, 0.82);
  --ft-border: rgba(125, 211, 252, 0.2);
  --ft-accent: #38bdf8;
  --ft-muted: #94a3b8;
  --ft-scrollbar-track: rgba(8, 15, 28, 0.88);
  --ft-scrollbar-thumb: rgba(56, 189, 248, 0.55);
  --ft-scrollbar-thumb-hover: rgba(125, 211, 252, 0.72);
  --ft-scrollbar-thumb-edge: rgba(15, 23, 42, 0.65);
  --ft-scrollbar-glow: rgba(56, 189, 248, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--ft-bg);
  color: #e2e8f0;
}

body.embed {
  --ft-bg: #0a0f18;
}

/* Scrollbars — Firefox + WebKit (side panel, alert feed, themed utility) */
.ft-sidepanel,
.ft-feed,
.ft-scroll-themed,
.ft-card-body {
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--ft-scrollbar-thumb) var(--ft-scrollbar-track);
}

.ft-sidepanel::-webkit-scrollbar,
.ft-feed::-webkit-scrollbar,
.ft-scroll-themed::-webkit-scrollbar,
.ft-card-body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.ft-sidepanel::-webkit-scrollbar-track,
.ft-feed::-webkit-scrollbar-track,
.ft-scroll-themed::-webkit-scrollbar-track,
.ft-card-body::-webkit-scrollbar-track {
  margin: 4px 0;
  background: linear-gradient(90deg, var(--ft-scrollbar-track), rgba(15, 23, 42, 0.75));
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.08);
}

.ft-sidepanel::-webkit-scrollbar-thumb,
.ft-feed::-webkit-scrollbar-thumb,
.ft-scroll-themed::-webkit-scrollbar-thumb,
.ft-card-body::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(125, 211, 252, 0.55) 0%,
    rgba(56, 189, 248, 0.5) 40%,
    rgba(14, 165, 233, 0.42) 100%
  );
  border-radius: 999px;
  border: 2px solid var(--ft-scrollbar-thumb-edge);
  box-shadow:
    0 0 12px var(--ft-scrollbar-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  background-clip: padding-box;
}

.ft-sidepanel::-webkit-scrollbar-thumb:hover,
.ft-feed::-webkit-scrollbar-thumb:hover,
.ft-scroll-themed::-webkit-scrollbar-thumb:hover,
.ft-card-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(186, 230, 253, 0.75) 0%,
    rgba(125, 211, 252, 0.65) 45%,
    rgba(56, 189, 248, 0.55) 100%
  );
  border-color: rgba(125, 211, 252, 0.45);
  box-shadow:
    0 0 16px rgba(56, 189, 248, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.ft-sidepanel::-webkit-scrollbar-thumb:active,
.ft-feed::-webkit-scrollbar-thumb:active,
.ft-scroll-themed::-webkit-scrollbar-thumb:active,
.ft-card-body::-webkit-scrollbar-thumb:active {
  background: rgba(56, 189, 248, 0.65);
}

.ft-sidepanel::-webkit-scrollbar-corner,
.ft-feed::-webkit-scrollbar-corner,
.ft-scroll-themed::-webkit-scrollbar-corner,
.ft-card-body::-webkit-scrollbar-corner {
  background: var(--ft-scrollbar-track);
}

.ft-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.ft-bar,
.ft-toolbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem 0.8rem;
  padding: 0.42rem 0.85rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.18);
  font-size: 0.78rem;
  color: var(--ft-muted);
  position: relative;
  z-index: 40;
  overflow: visible;
}

.ft-bar {
  flex-wrap: wrap;
  background: var(--ft-bar);
}

.ft-toolbar {
  flex-wrap: wrap;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(10, 15, 24, 0.96));
}

.ft-toolbar-track {
  display: contents;
}

.ft-toolbar-scroll-btn {
  display: none;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #bae6fd;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.ft-toolbar-scroll-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.78rem;
  height: 1.78rem;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, 0.4);
  background: radial-gradient(130% 100% at 30% 18%, rgba(56, 189, 248, 0.16), rgba(15, 23, 42, 0.94));
  box-shadow:
    0 0 0 1px rgba(2, 6, 23, 0.45) inset,
    0 2px 8px rgba(2, 8, 23, 0.35);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ft-toolbar-scroll-btn:hover:not(:disabled) .ft-toolbar-scroll-ring {
  border-color: rgba(125, 211, 252, 0.75);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.3) inset,
    0 0 14px rgba(56, 189, 248, 0.22);
}

.ft-toolbar-scroll-btn:active:not(:disabled) .ft-toolbar-scroll-ring {
  transform: scale(0.93);
}

.ft-toolbar-scroll-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.ft-toolbar-scroll-btn:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.55);
  outline-offset: 2px;
}

.ft-toolbar-scroll-svg {
  display: block;
}

@media (max-width: 860px) {
  .ft-toolbar {
    flex-wrap: nowrap;
    gap: 0.25rem;
    padding: 0.38rem 0.2rem;
  }

  .ft-toolbar-scroll-btn {
    display: inline-flex;
  }

  .ft-toolbar-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem 0.55rem;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    padding: 0.12rem 0.2rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(
      to right,
      transparent,
      #000 12px,
      #000 calc(100% - 12px),
      transparent
    );
    mask-image: linear-gradient(
      to right,
      transparent,
      #000 12px,
      #000 calc(100% - 12px),
      transparent
    );
  }

  .ft-toolbar-track::-webkit-scrollbar {
    display: none;
  }

  .ft-toolbar-track .ft-input {
    flex: 0 0 auto;
    width: min(16rem, 72vw);
    min-width: 10.5rem;
  }

  .ft-toolbar-track .ft-select,
  .ft-toolbar-track .ft-inline-toggle,
  .ft-toolbar-track .ft-hemisphere-label {
    flex: 0 0 auto;
  }

  .ft-toolbar-track .ft-hemisphere-select {
    min-width: 9.5rem;
  }
}

@media (min-width: 861px) {
  .ft-toolbar-track {
    display: contents;
  }

  .ft-toolbar-scroll-btn {
    display: none !important;
  }
}

.ft-toolbar-toggles {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
}

.ft-hemisphere-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #dbeafe;
  font-size: 0.8rem;
}

.ft-hemisphere-label-text {
  white-space: nowrap;
  font-weight: 600;
  color: #94a3b8;
}

.ft-hemisphere-select {
  min-width: 11.5rem;
}

.ft-bar strong {
  color: #e0f2fe;
  font-weight: 600;
}

.ft-bar a {
  color: var(--ft-accent);
  font-weight: 600;
  text-decoration: none;
  margin-left: auto;
}

.ft-bar .ft-copy-share-link {
  flex-shrink: 0;
}

.ft-bar a:hover {
  text-decoration: underline;
  color: #7dd3fc;
}

.ft-status-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 44rem;
}

.ft-status {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.72rem;
  color: #64748b;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ft-status-overflow-btn {
  flex-shrink: 0;
  min-width: 1.65rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  font-size: 0.65rem;
  line-height: 1;
  color: #94a3b8;
}

.ft-status-overflow-btn[aria-expanded='true'] {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.45);
}

.ft-status-overflow-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 120;
  min-width: min(100%, 18rem);
  width: max-content;
  max-width: min(96vw, 38rem);
  max-height: min(72vh, 24rem);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.5rem 0.65rem 0.55rem;
  background: linear-gradient(168deg, rgba(17, 24, 39, 0.98), rgba(8, 11, 18, 0.99));
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 14px 42px rgba(0, 0, 0, 0.55);
}

.ft-status-overflow-hr {
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  margin: 0.4rem 0;
}

.ft-status-overflow-row {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  gap: 0.4rem 0.7rem;
  align-items: start;
  padding: 0.15rem 0;
}

.ft-status-overflow-ts {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  color: #64748b;
  white-space: nowrap;
}

.ft-status-overflow-text {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #cbd5e1;
  word-break: break-word;
}

.ft-input,
.ft-select {
  appearance: none;
  min-width: 0;
  height: 2rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.82);
  color: #e2e8f0;
  padding: 0.42rem 0.7rem;
  font: inherit;
}

.ft-form-grid .ft-select {
  height: auto;
  min-height: 2.4rem;
  padding-top: 0.52rem;
  padding-bottom: 0.58rem;
  line-height: 1.35;
  box-sizing: border-box;
}

.ft-part108-planning-panel .ft-select {
  height: auto;
  min-height: 2.4rem;
  padding-top: 0.52rem;
  padding-bottom: 0.58rem;
  line-height: 1.35;
  box-sizing: border-box;
}

.ft-input {
  width: min(20rem, 100%);
}

.ft-select {
  min-width: 9rem;
  cursor: pointer;
  padding-right: 1.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
}

.ft-inline-toggle,
.ft-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #dbeafe;
  font-size: 0.8rem;
  cursor: pointer;
}

.ft-inline-toggle input,
.ft-toggle input {
  width: 1rem;
  height: 1rem;
  accent-color: #38bdf8;
  cursor: pointer;
}

.ft-layer-toggles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.36rem 0.55rem;
  margin-top: 0.5rem;
}

.ft-layer-toggle-wrap {
  display: contents;
}

.ft-layer-toggle-item {
  min-height: 1.95rem;
  align-items: flex-start;
  line-height: 1.2;
}

.ft-layer-toggle-item span {
  display: inline-block;
}

.ft-chip,
.ft-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.3rem 0.62rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #dbeafe;
  font-size: 0.72rem;
  white-space: nowrap;
}

.ft-map {
  flex: 1;
  min-height: 0;
  position: relative;
}

/* Bridge / snapshot loading overlay */
.ft-map-loading {
  position: absolute;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 15, 28, 0.78);
  backdrop-filter: blur(6px);
  pointer-events: auto;
}

.ft-map-loading[hidden] {
  display: none !important;
}

.ft-map-loading-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  max-width: min(92vw, 320px);
  padding: 1.35rem 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.96), rgba(8, 15, 28, 0.92));
  box-shadow: 0 18px 48px rgba(2, 8, 23, 0.55);
  text-align: center;
}

.ft-map-loading-spinner {
  width: 46px;
  height: 46px;
  border: 3px solid rgba(56, 189, 248, 0.22);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: ft-map-loading-spin 0.85s linear infinite;
}

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

.ft-map-loading-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #e2e8f0;
}

.ft-map-loading-sub {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #94a3b8;
}

body.ft-map-loading .ft-recenter-chip {
  visibility: hidden;
  pointer-events: none;
}

#cesiumContainer {
  position: absolute;
  inset: 0;
}

.cesium-viewer-infoBoxContainer {
  z-index: 24;
  pointer-events: auto;
}

.cesium-infoBox {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(2, 8, 23, 0.45);
}

.cesium-infoBox .cesium-infoBox-close {
  top: 0.55rem;
  right: 0.55rem;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(248, 250, 252, 0.95);
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.2);
}

.cesium-infoBox .cesium-infoBox-close:hover,
.cesium-infoBox .cesium-infoBox-close:focus-visible {
  background: #ffffff;
  border-color: rgba(56, 189, 248, 0.45);
  color: #0369a1;
}

.cesium-infoBox .cesium-infoBox-close:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.45);
  outline-offset: 2px;
}

.ft-sidepanel,
.ft-notam-panel,
.ft-playback {
  position: absolute;
  z-index: 5;
  border: 1px solid var(--ft-border);
  background: var(--ft-surface);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 48px rgba(2, 8, 23, 0.45);
}

.ft-left-dock {
  position: absolute;
  left: 0.9rem;
  top: 0.9rem;
  bottom: 0.9rem;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  width: min(24rem, calc(100vw - 2rem));
  min-height: 0;
  max-height: 100%;
  /* visible: tabs extend past the panel edge; hidden was clipping the Hide / NOTAMs strips */
  overflow: visible;
  pointer-events: none;
}

.ft-dock-width-handle {
  position: absolute;
  z-index: 12;
  top: 0.65rem;
  right: -0.35rem;
  bottom: 0.65rem;
  width: 0.65rem;
  border-radius: 999px;
  cursor: ew-resize;
  touch-action: none;
  pointer-events: auto;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(56, 189, 248, 0.22) 42%,
    rgba(56, 189, 248, 0.42) 50%,
    rgba(56, 189, 248, 0.22) 58%,
    transparent 100%
  );
  opacity: 0.72;
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.ft-dock-width-handle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 0.2rem;
  height: 2.4rem;
  border-radius: 999px;
  background: rgba(186, 230, 253, 0.55);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.ft-dock-width-handle:hover,
.ft-dock-width-handle:focus-visible {
  opacity: 1;
  outline: none;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}

body.ft-dock-resizing-x {
  cursor: ew-resize !important;
  user-select: none;
}

body.ft-dock-resizing-x .ft-dock-width-handle {
  opacity: 1;
}

.ft-left-dock > * {
  pointer-events: auto;
}

.ft-op-modes {
  display: flex;
  gap: 0.28rem;
  margin: 0 0.35rem 0.35rem;
  padding: 0.28rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(125, 211, 252, 0.22);
}

.ft-op-mode {
  flex: 1 1 0;
  min-width: 0;
  border: 0;
  border-radius: 8px;
  padding: 0.38rem 0.25rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  background: transparent;
  cursor: pointer;
}

.ft-op-mode.is-on {
  color: #0b1220;
  background: linear-gradient(180deg, #7dd3fc, #38bdf8);
}

body[data-ft-op-mode='watch'] [data-op-modes]:not([data-op-modes~='watch']),
body[data-ft-op-mode='plan'] [data-op-modes]:not([data-op-modes~='plan']),
body[data-ft-op-mode='fly'] [data-op-modes]:not([data-op-modes~='fly']) {
  display: none !important;
}

.ft-sidepanel-wrap {
  position: relative;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.ft-sidepanel-wrap.ft-dock-sized,
.ft-notam-wrap.ft-dock-sized {
  flex: 0 0 auto;
  height: var(--ft-dock-panel-h, auto);
  min-height: 7.5rem;
  max-height: 100%;
}

.ft-dock-resize-handle {
  position: relative;
  z-index: 11;
  flex: 0 0 auto;
  height: 0.55rem;
  margin: -0.12rem 0.35rem 0.08rem;
  border-radius: 999px;
  cursor: ns-resize;
  touch-action: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(56, 189, 248, 0.22) 42%,
    rgba(56, 189, 248, 0.42) 50%,
    rgba(56, 189, 248, 0.22) 58%,
    transparent 100%
  );
  opacity: 0.72;
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.ft-dock-resize-handle::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 2.4rem;
  height: 0.2rem;
  border-radius: 999px;
  background: rgba(186, 230, 253, 0.55);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.ft-dock-resize-handle:hover,
.ft-dock-resize-handle:focus-visible {
  opacity: 1;
  outline: none;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.ft-sidepanel-wrap:not(.ft-sidepanel-open) .ft-dock-resize-handle,
.ft-notam-wrap:not(.ft-notam-open) .ft-dock-resize-handle {
  display: none;
}

body.ft-dock-resizing {
  cursor: ns-resize !important;
  user-select: none;
}

body.ft-dock-resizing .ft-dock-resize-handle {
  opacity: 1;
}

.ft-notam-wrap {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  flex: 0 0 auto;
  flex-shrink: 0;
  min-height: 0;
  max-height: min(40vh, 26rem);
}

.ft-notam-wrap.ft-dock-sized {
  max-height: 100%;
}

.ft-sidepanel,
.ft-notam-panel {
  position: relative;
  z-index: 0;
  width: 100%;
  box-sizing: border-box;
  max-height: 100%;
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 16px;
  padding: 0.8rem;
  transition: transform 180ms ease, opacity 180ms ease;
}

.ft-sidepanel-wrap.ft-dock-sized,
.ft-notam-wrap.ft-dock-sized {
  overflow: hidden;
}

.ft-sidepanel-toggle {
  position: absolute;
  z-index: 10;
  top: 1.15rem;
  right: 0;
  left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 7rem;
  padding: 0.7rem 0.45rem;
  border: 1px solid var(--ft-border);
  border-left: 0;
  border-radius: 0 14px 14px 0;
  background: rgba(8, 15, 28, 0.92);
  color: #dbeafe;
  cursor: pointer;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(2, 8, 23, 0.32);
}

.ft-sidepanel-toggle-text {
  transform: rotate(180deg);
  font-size: 0.72rem;
  font-weight: 700;
}

.ft-sidepanel-wrap:not(.ft-sidepanel-open) .ft-sidepanel {
  transform: translateX(calc(-100% - 1rem));
  opacity: 0;
  pointer-events: none;
}

.ft-sidepanel-wrap:not(.ft-sidepanel-open) .ft-sidepanel-toggle {
  left: 0;
  right: auto;
}

.ft-notam-toggle {
  position: absolute;
  z-index: 10;
  top: 1.15rem;
  right: 0;
  left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 7rem;
  padding: 0.7rem 0.45rem;
  border: 1px solid var(--ft-border);
  border-left: 0;
  border-radius: 0 14px 14px 0;
  background: rgba(12, 20, 32, 0.92);
  color: #fde68a;
  cursor: pointer;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(2, 8, 23, 0.32);
}

.ft-notam-toggle-text {
  transform: rotate(180deg);
  font-size: 0.72rem;
  font-weight: 700;
}

.ft-notam-wrap:not(.ft-notam-open) .ft-notam-panel {
  transform: translateX(calc(-100% - 1rem));
  opacity: 0;
  pointer-events: none;
}

.ft-notam-wrap:not(.ft-notam-open) .ft-notam-toggle {
  left: 0;
  right: auto;
}

.ft-notam-wrap.ft-notam-unavailable .ft-notam-toggle {
  opacity: 0.88;
}

.ft-notam-wrap.ft-notam-unavailable .ft-notam-panel {
  border-color: rgba(148, 163, 184, 0.28);
}

.ft-panel + .ft-panel {
  margin-top: 0.8rem;
}

/* Collapsible left sidepanel sections (same chevron pattern as aircraft card). */
.ft-sidepanel .ft-panel.ft-card-section {
  margin-top: 0;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(56, 189, 248, 0.1);
}

.ft-sidepanel .ft-panel.ft-card-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.ft-sidepanel .ft-panel-header.ft-card-section-head {
  margin-bottom: 0;
}

.ft-sidepanel .ft-panel-header.ft-card-section-head h2 {
  flex: 1;
  min-width: 0;
}

.ft-sidepanel-section-body .ft-help-mini:first-child,
.ft-sidepanel-section-body .ft-layer-toggles:first-child {
  margin-top: 0;
}

.ft-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ft-panel-header h2 {
  margin: 0;
  font-size: 0.92rem;
  color: #f8fafc;
}

.ft-panel-grid,
.ft-form-grid,
.ft-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.ft-watch-list-grid {
  align-items: center;
}

.ft-watch-list-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

#ft-alerts-panel .ft-watch-list-label,
.ft-list-block:has(#ft-alert-rules) > .ft-list-title,
.ft-alert-zones-block > .ft-list-title,
.ft-alert-feed-header .ft-list-title {
  color: #a3e635;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.ft-map-alert-only-wrap {
  margin-top: 0.65rem;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.ft-mini,
.ft-metric {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: var(--ft-surface-2);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.ft-mini-label,
.ft-metric-label,
.ft-list-title {
  display: block;
  font-size: 0.68rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ft-mini-value,
.ft-metric-value {
  display: block;
  margin-top: 0.24rem;
  font-size: 0.94rem;
  color: #e2e8f0;
  font-weight: 600;
}

.ft-list-block {
  margin-top: 0.8rem;
}

.ft-list,
.ft-feed {
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.68);
  color: #cbd5e1;
  font-size: 0.78rem;
  line-height: 1.45;
}

.ft-feed {
  max-height: min(12rem, 40vh);
  overflow: auto;
}

.ft-alert-feed-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem 0.75rem;
}

.ft-alert-feed-header .ft-list-title {
  margin: 0;
}

.ft-alert-feed-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.ft-alert-feed-actions .ft-inline-toggle {
  margin: 0;
  font-size: 0.72rem;
}

.ft-help-mini {
  margin: 0.35rem 0 0;
  font-size: 0.68rem;
  line-height: 1.4;
  color: #94a3b8;
}

.ft-alert-queue-note {
  color: #7dd3fc;
}

.ft-alert-policy {
  margin: 0 0 0.55rem;
  padding: 0.45rem 0.5rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.45);
}

.ft-alert-policy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.3rem;
}

.ft-alert-view {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.ft-alert-view .is-on {
  border-color: #67e8f9;
  color: #ecfeff;
  background: rgba(8, 47, 73, 0.85);
}

.ft-alert-quiet-time {
  width: 7.2rem;
  min-width: 6.5rem;
}

.ft-alert-mute {
  min-width: 6.2rem;
}

.ft-alert-mute-left {
  color: #fbbf24;
  cursor: pointer;
}

.ft-alert-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.4rem;
  padding: 0.18rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  font-size: 0.72rem;
  line-height: 1.35;
  color: #e2e8f0;
}

.ft-alert-sev,
.ft-alert-scope {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.05rem 0.28rem;
  border-radius: 4px;
}

.ft-alert-line.is-critical .ft-alert-sev {
  background: #7f1d1d;
  color: #fecaca;
}

.ft-alert-line.is-warning .ft-alert-sev {
  background: #78350f;
  color: #fde68a;
}

.ft-alert-line.is-info .ft-alert-sev {
  background: #1e3a5f;
  color: #bae6fd;
}

.ft-alert-scope.is-ownship {
  background: rgba(34, 211, 238, 0.18);
  color: #a5f3fc;
}

.ft-alert-scope.is-world {
  background: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}

.ft-alert-zones-block {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ft-alert-zone-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.45rem 0 0.35rem;
}

.ft-alert-zone-toolbar .ft-az-tool-active {
  background: rgba(245, 158, 11, 0.25) !important;
  border-color: rgba(251, 191, 36, 0.55) !important;
  color: #fcd34d !important;
}

.ft-az-hint {
  color: #fcd34d;
}

.ft-az-list {
  margin: 0.4rem 0;
  max-height: 9rem;
  overflow-y: auto;
}

.ft-az-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.35rem;
  padding: 0.35rem 0.4rem;
  margin-bottom: 0.25rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
}

.ft-az-item-selected {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(245, 158, 11, 0.1);
}

.ft-az-meta {
  grid-column: 1 / -1;
  font-size: 0.65rem;
  color: #64748b;
  padding-left: 1.35rem;
}

.ft-az-del {
  grid-row: 1;
  grid-column: 2;
  min-width: 1.6rem;
  padding: 0.1rem 0.35rem !important;
  line-height: 1.2;
}

.ft-az-empty {
  font-size: 0.72rem;
  color: #64748b;
}

.ft-az-editor-label {
  margin-top: 0.5rem;
}

.ft-az-editor {
  margin-bottom: 0.45rem;
}

.ft-card {
  position: absolute;
  z-index: 30; /* above Cesium default buttons + planning strip (7); aircraft info is interactive */
  top: 0.9rem;
  right: 0.9rem;
  width: min(24rem, calc(100vw - 2rem));
  max-height: min(calc(100vh - 5rem), 40rem);
  min-height: 0;
  padding: 0.95rem;
  border-radius: 16px;
  border: 1px solid var(--ft-border);
  background: var(--ft-surface);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 48px rgba(2, 8, 23, 0.45);
  display: flex;
  flex-direction: column;
}

.ft-card-body {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  margin-top: 0.55rem;
  padding-right: 0.2rem;
}

.ft-card-copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  margin-top: 0.45rem;
}

.ft-card-copy-row .ft-copy-flight-brief {
  margin-top: 0;
}

/* Collapsible flight-card sections (ring + chevron) */
.ft-card-section {
  margin-top: 0.45rem;
}

.ft-ops-snapshot-wrap > .ft-card-section:first-child {
  margin-top: 0.1rem;
}

.ft-fdps-card-wrap.ft-card-section {
  margin-top: 0.55rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(125, 211, 252, 0.12);
}

.ft-card-body > .ft-card-section {
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(56, 189, 248, 0.1);
}

.ft-card-body > .ft-card-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.ft-card-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  min-height: 1.85rem;
}

.ft-card-section-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7dd3fc;
  line-height: 1.2;
}

.ft-card-section-toggle {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #bae6fd;
}

.ft-card-section-toggle-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.78rem;
  height: 1.78rem;
  border-radius: 50%;
  border: 1px solid rgba(125, 211, 252, 0.42);
  background: radial-gradient(130% 100% at 25% 15%, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.94));
  box-shadow:
    0 0 0 1px rgba(2, 6, 23, 0.45) inset,
    0 2px 10px rgba(2, 8, 23, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.ft-card-section-toggle:hover .ft-card-section-toggle-ring {
  border-color: rgba(125, 211, 252, 0.75);
  color: #f0f9ff;
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.35) inset,
    0 0 18px rgba(56, 189, 248, 0.28);
}

.ft-card-section-toggle:active .ft-card-section-toggle-ring {
  transform: scale(0.94);
}

.ft-card-section-toggle-svg {
  display: block;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.ft-card-section--collapsed .ft-card-section-toggle-svg {
  transform: rotate(-90deg);
}

.ft-camera-views {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 0.55rem;
  padding: 0.45rem 0.5rem 0.4rem;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 8px;
  background: rgba(8, 47, 73, 0.35);
}

.ft-camera-views .ft-help-mini {
  margin: 0;
}

.ft-card-section-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.32rem;
}

.ft-card-section--collapsed .ft-card-section-body {
  display: none;
}

/* Compact first paint: hide sidepanel bodies until JS wraps + applies collapse. */
#ft-sidepanel .ft-panel[data-section]:not(.ft-card-section) > :not(.ft-panel-header) {
  display: none;
}

.ft-card-section-body .ft-card-grid,
.ft-card-section-body .ft-coords,
.ft-card-section-body .ft-ref-grid {
  margin-top: 0;
}

.ft-card-section-body .ft-card-actions {
  margin-top: 0;
}

.ft-card-section-body .ft-legend {
  margin-top: 0;
}

.ft-card-section-toggle:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.55);
  outline-offset: 3px;
  border-radius: 50%;
}

.ft-card[hidden] {
  display: none;
}

.ft-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
}

.ft-card-kicker {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #7dd3fc;
}

.ft-card-title {
  margin: 0.18rem 0 0;
  font-size: 1.16rem;
  line-height: 1.1;
  color: #f8fafc;
}

.ft-card-aircraft-type {
  margin: 0.28rem 0 0;
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #bae6fd;
  word-break: break-word;
}

.ft-uas-ownship {
  margin: 0.55rem 0 0;
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  background: rgba(14, 116, 144, 0.22);
  border: 1px solid rgba(125, 211, 252, 0.28);
}

.ft-uas-ownship-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.7rem;
  margin: 0;
}

.ft-uas-ownship-grid dt {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.ft-uas-ownship-grid dd {
  margin: 0.12rem 0 0;
  font-size: 0.84rem;
  font-weight: 650;
  color: #f8fafc;
  word-break: break-word;
}

.ft-card-close {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.ft-coords,
.ft-ref-grid {
  margin-top: 0.8rem;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
}

.ft-coords {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.78rem;
}

.ft-ref-grid {
  font-size: 0.78rem;
}

.ft-ref-row {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
}

.ft-ref-row + .ft-ref-row {
  margin-top: 0.45rem;
}

.ft-ref-row span {
  color: #94a3b8;
}

.ft-card-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.ft-annot-panel {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.ft-annot-hint {
  margin-bottom: 0.35rem;
}

.ft-annot-actions {
  margin-top: 0.45rem;
}

.ft-annot-list {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ft-annot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(250, 204, 21, 0.18);
}

.ft-annot-item-text {
  min-width: 0;
  font-size: 0.78rem;
  color: #e2e8f0;
}

.ft-annot-meta {
  color: #94a3b8;
  font-weight: 500;
}

.ft-annot-del {
  flex-shrink: 0;
  min-width: 1.75rem;
  padding-inline: 0.35rem;
}

.ft-annot-empty {
  font-size: 0.76rem;
  color: #94a3b8;
  line-height: 1.35;
  padding: 0.2rem 0;
}

#ft-annot-add-btn.is-active {
  border-color: rgba(250, 204, 21, 0.55);
  background: linear-gradient(180deg, rgba(250, 204, 21, 0.22), rgba(66, 32, 6, 0.35));
}

.ft-btn {
  appearance: none;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.24), rgba(8, 47, 73, 0.3));
  color: #e0f2fe;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
}

.ft-btn-small {
  padding: 0.4rem 0.7rem;
  font-size: 0.76rem;
}

.ft-btn-secondary {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.82);
  color: #cbd5e1;
}

.ft-btn.is-active {
  border-color: rgba(74, 222, 128, 0.45);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.25), rgba(20, 83, 45, 0.34));
  color: #dcfce7;
}

.ft-legend {
  display: flex;
  gap: 0.9rem;
  margin-top: 0.8rem;
  color: #94a3b8;
  font-size: 0.72rem;
}

.ft-dot {
  display: inline-block;
  width: 0.62rem;
  height: 0.62rem;
  margin-right: 0.22rem;
  border-radius: 999px;
}

.ft-dot-low {
  background: #38bdf8;
}

.ft-dot-mid {
  background: #f59e0b;
}

.ft-dot-high {
  background: #ef4444;
}

.ft-playback {
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 14px;
  padding: 0.65rem 0.75rem;
}

.ft-range {
  flex: 1;
  min-width: 7rem;
}

.ft-playback-status {
  font-size: 0.76rem;
  color: #dbeafe;
  min-width: 10rem;
  text-align: right;
}

body.embed .ft-bar {
  padding: 0.35rem 0.65rem;
}

body.embed .ft-bar a {
  display: none;
}

/* Title + status + stale + copy link row — too cramped on phones / small laptops */
@media (max-width: 1024px) {
  .ft-bar {
    display: none !important;
  }
}

@media (min-width: 1025px) and (max-width: 1440px) and (max-height: 800px) {
  .ft-bar {
    display: none !important;
  }
}

@media (max-width: 1080px) {
  .ft-left-dock {
    width: min(21rem, calc(100vw - 2rem));
  }

  .ft-card {
    width: min(22rem, calc(100vw - 2rem));
  }
}

@media (max-width: 720px) {
  .ft-left-dock {
    left: 0.6rem;
    top: 0.6rem;
    bottom: 0.6rem;
    width: min(20rem, calc(100vw - 3.8rem));
    overflow: visible;
    align-items: stretch;
    gap: 0.45rem;
  }

  .ft-sidepanel-wrap {
    flex: 1 1 0;
    min-height: 0;
    max-height: none;
  }

  .ft-notam-wrap {
    flex: 0 0 auto;
    flex-shrink: 0;
    max-height: min(38vh, 22rem);
  }

  .ft-sidepanel-wrap:not(.ft-dock-sized) .ft-sidepanel,
  .ft-notam-wrap:not(.ft-dock-sized) .ft-notam-panel {
    max-height: min(40vh, 22rem);
  }

  .ft-sidepanel-wrap.ft-dock-sized .ft-sidepanel,
  .ft-notam-wrap.ft-dock-sized .ft-notam-panel {
    max-height: none;
    flex: 1 1 auto;
    min-height: 0;
  }

  .ft-sidepanel-wrap.ft-sidepanel-open .ft-sidepanel-toggle,
  .ft-notam-wrap.ft-notam-open .ft-notam-toggle {
    left: auto;
    right: 0;
  }

  .ft-sidepanel-wrap:not(.ft-sidepanel-open) .ft-sidepanel-toggle,
  .ft-notam-wrap:not(.ft-notam-open) .ft-notam-toggle {
    left: 0;
    right: auto;
  }

  .ft-sidepanel-toggle,
  .ft-notam-toggle {
    top: 0.9rem;
    height: 6rem;
  }

  .ft-sidepanel-wrap:not(.ft-sidepanel-open) .ft-sidepanel {
    transform: translateX(calc(-100% - 0.8rem));
  }

  .ft-notam-wrap:not(.ft-notam-open) .ft-notam-panel {
    transform: translateX(calc(-100% - 0.8rem));
  }

  .ft-card {
    top: auto;
    right: 0.6rem;
    left: 0.6rem;
    bottom: 4.75rem;
    width: auto;
    max-height: calc(100vh - 6.25rem);
  }

  .ft-playback {
    left: 0.6rem;
    right: 0.6rem;
    bottom: 0.6rem;
    flex-wrap: wrap;
  }

  .ft-playback-status {
    min-width: 0;
    text-align: left;
  }
}

/* Replay bar (Load last 5m / timeline) — hidden unless ?replay=1 */
.ft-playback {
  display: none !important;
}

body.ft-replay-bar-on .ft-playback {
  display: flex !important;
}

.ft-stale-chip {
  font-size: 0.72rem;
  color: var(--ft-muted);
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.ft-toast {
  position: absolute;
  bottom: 5.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 22;
  max-width: min(28rem, 92vw);
  padding: 0.65rem 1rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--ft-border);
  color: #e2e8f0;
  font-size: 0.82rem;
  line-height: 1.35;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ft-toast:not([hidden]) {
  animation: ft-toast-in 0.28s ease;
}

.ft-toast--zone {
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(245, 158, 11, 0.12),
    inset 3px 0 0 #fbbf24;
  color: #fef3c7;
}

.ft-toast--warn {
  border-color: rgba(251, 146, 60, 0.65);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(251, 146, 60, 0.16),
    inset 3px 0 0 #fb923c;
  color: #ffedd5;
}

.ft-cockpit-lookout {
  position: absolute;
  z-index: 35;
  display: flex;
  flex-direction: column;
  min-width: 360px;
  min-height: 560px;
  width: min(880px, 62vw);
  height: min(720px, 68vh);
  border-radius: 14px;
  background: linear-gradient(
    to bottom,
    rgba(8, 15, 28, 0.58) 0%,
    rgba(8, 15, 28, 0.16) 22%,
    rgba(8, 15, 28, 0.03) 42%,
    rgba(8, 15, 28, 0.05) 62%,
    rgba(8, 15, 28, 0.52) 100%
  );
  border: 1px solid rgba(56, 189, 248, 0.34);
  box-shadow:
    0 14px 36px rgba(2, 8, 23, 0.28),
    inset 0 0 0 1px rgba(56, 189, 248, 0.08);
  backdrop-filter: blur(2px);
  color: #e2e8f0;
  text-align: center;
  pointer-events: auto;
  overflow: hidden;
}

.ft-cockpit-lookout[hidden] {
  display: none !important;
}

.ft-cockpit-lookout.is-view-fill {
  min-width: min(720px, 94vw);
  min-height: min(640px, 88vh);
}

.ft-cockpit-lookout.is-view-fill .ft-cockpit-scope-wrap {
  flex: 1.85 1 auto;
  min-height: min(420px, 52vh);
  padding: 0.35rem 0.5rem 0.1rem;
}

.ft-cockpit-lookout.is-view-fill .ft-cockpit-lookout-meta {
  max-height: 26%;
}

.ft-cockpit-lookout-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  cursor: grab;
  user-select: none;
  touch-action: none;
  border-bottom: 1px solid rgba(125, 211, 252, 0.16);
  background: rgba(8, 15, 28, 0.28);
}

.ft-cockpit-lookout-header:active {
  cursor: grabbing;
}

.ft-cockpit-lookout-min {
  margin-left: 0.15rem;
  flex: 0 0 auto;
  width: 1.45rem;
  height: 1.35rem;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.16);
  color: #e2e8f0;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.ft-cockpit-lookout-min:hover {
  background: rgba(148, 163, 184, 0.28);
}

.ft-cockpit-lookout-ask-btn {
  margin-left: auto;
  flex: 0 0 auto;
  min-width: 2.6rem;
  height: 1.35rem;
  padding: 0 0.45rem;
  border: 0;
  border-radius: 6px;
  background: #84cc16;
  color: #14532d;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  cursor: pointer;
}

.ft-cockpit-lookout-ask-btn:hover,
.ft-cockpit-lookout-ask-btn.is-on {
  background: #a3e635;
}

.ft-cockpit-lookout-voice {
  margin-left: 0.15rem;
  flex: 0 0 auto;
  width: 1.45rem;
  height: 1.35rem;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.16);
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
}

.ft-cockpit-lookout-voice:hover {
  background: rgba(148, 163, 184, 0.28);
}

.ft-cockpit-lookout-voice.is-on {
  color: #86efac;
  background: rgba(52, 211, 153, 0.16);
}

.ft-cockpit-lookout-advisory {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.28rem 0.75rem;
  text-align: center;
}

.ft-cockpit-lookout-advisory.is-clear {
  background: rgba(20, 83, 45, 0.52);
  color: #bbf7d0;
}

.ft-cockpit-lookout-advisory.is-monitor {
  background: rgba(30, 58, 95, 0.55);
  color: #7dd3fc;
}

.ft-cockpit-lookout-advisory.is-corrective {
  background: rgba(154, 52, 18, 0.62);
  color: #fed7aa;
  animation: ft-lookout-pulse 1.1s ease-in-out infinite;
}

.ft-cockpit-lookout-advisory.is-wellclear {
  background: rgba(127, 29, 29, 0.62);
  color: #fecaca;
  animation: ft-lookout-pulse 0.7s ease-in-out infinite;
}

@keyframes ft-lookout-pulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.22);
  }
}

.ft-cockpit-lookout-own {
  padding: 0.22rem 0.75rem 0.08rem;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: #e2e8f0;
  letter-spacing: 0.02em;
}

.ft-cockpit-lookout-callout {
  padding: 0.12rem 0.75rem 0.28rem;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #fde68a;
  text-align: left;
}

.ft-cockpit-lookout-callout[hidden] {
  display: none;
}

.ft-cockpit-lookout-callout.is-corrective {
  color: #fdba74;
  font-weight: 650;
}

.ft-cockpit-lookout-callout.is-wellclear {
  color: #fca5a5;
  font-weight: 700;
}

.ft-cockpit-lookout-callout.is-sticky {
  opacity: 0.88;
}

.ft-cockpit-lookout-ground {
  padding: 0.08rem 0.75rem 0.2rem;
  font-size: 0.74rem;
  line-height: 1.35;
  color: #d6d3d1;
  text-align: left;
}

.ft-cockpit-lookout-ground[hidden] {
  display: none;
}

.ft-cockpit-lookout-ground.is-caution {
  color: #fdba74;
}

.ft-cockpit-lookout-ground.is-alert {
  color: #fca5a5;
  font-weight: 650;
}

.ft-cockpit-lookout-cpa {
  padding: 0 0.7rem 0.28rem;
}

.ft-cockpit-lookout-cpa-meta {
  font-size: 0.68rem;
  color: #94a3b8;
  letter-spacing: 0.02em;
  margin-bottom: 0.12rem;
}

.ft-cockpit-lookout-cpa-svg {
  display: block;
  width: 100%;
  height: 32px;
  background: rgba(15, 23, 42, 0.35);
  border-radius: 4px;
}

.ft-cockpit-lookout-cpa-line {
  fill: none;
  stroke: #38bdf8;
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.ft-cockpit-lookout-cpa-line.is-close {
  stroke: #f87171;
}

.ft-cockpit-lookout-cpa-wc {
  stroke: rgba(250, 204, 21, 0.45);
  stroke-width: 1;
  stroke-dasharray: 2 2;
}

.ft-cockpit-lookout-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.15rem 0.7rem 0.4rem;
}

.ft-cockpit-lookout-seg {
  display: inline-flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.22);
}

.ft-cockpit-lookout-seg button {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.42rem;
  cursor: pointer;
}

.ft-cockpit-lookout-seg button.is-on {
  background: rgba(56, 189, 248, 0.22);
  color: #e0f2fe;
}

.ft-cockpit-lookout.is-min {
  height: auto !important;
  min-height: 0;
  width: min(440px, 92vw);
}

.ft-cockpit-lookout.is-min .ft-cockpit-lookout-body,
.ft-cockpit-lookout.is-min .ft-cockpit-lookout-resize,
.ft-cockpit-lookout.is-min .ft-cockpit-ask {
  display: none;
}

.ft-cockpit-ask {
  padding: 0.45rem 0.7rem 0.55rem;
  border-bottom: 1px solid rgba(163, 230, 53, 0.22);
  background: rgba(20, 32, 12, 0.42);
}

.ft-cockpit-ask-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.ft-cockpit-ask-chip {
  border: 1px solid rgba(163, 230, 53, 0.35);
  border-radius: 999px;
  background: rgba(132, 204, 22, 0.12);
  color: #d9f99d;
  font-size: 0.68rem;
  padding: 0.18rem 0.5rem;
  cursor: pointer;
}

.ft-cockpit-ask-chip:hover {
  background: rgba(132, 204, 22, 0.22);
}

.ft-cockpit-ask-form {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.ft-cockpit-ask-q {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.78rem;
}

.ft-cockpit-ask-go {
  background: #84cc16;
  color: #14532d;
  border: 0;
}

.ft-cockpit-ask-answer {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #e2e8f0;
}

.ft-cockpit-ask-answer.is-busy {
  color: #bef264;
}

.ft-cockpit-ask-answer.is-err {
  color: #fca5a5;
}

.ft-cockpit-ask-disclaimer {
  margin: 0.3rem 0 0;
  color: #94a3b8;
}

.ft-cockpit-ask-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.ft-cockpit-lookout-header strong,
.ft-cockpit-lookout-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.ft-cockpit-lookout-range {
  font-size: 0.82rem;
  line-height: 1.3;
  color: #cbd5e1;
}

.ft-cockpit-lookout-range strong {
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}

.ft-cockpit-lookout-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 240px;
}

.ft-cockpit-lookout-sub {
  margin: 0 0 0.28rem;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #94a3b8;
}

.ft-cockpit-lookout-count {
  margin-top: 0.12rem;
  font-size: 0.76rem;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
}

.ft-cockpit-scope-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.65rem 0.2rem;
  background: transparent;
  min-height: 180px;
}

.ft-cockpit-scope {
  width: auto;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  display: block;
  cursor: crosshair;
}

.ft-cockpit-lookout-meta {
  flex: 0 1 auto;
  max-height: 42%;
  overflow: auto;
  padding: 0.15rem 0.75rem 0.7rem;
  text-align: left;
  background: rgba(8, 15, 28, 0.32);
}

.ft-cockpit-lookout-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1.15rem;
  height: 1.15rem;
  cursor: nwse-resize;
  touch-action: none;
  background: linear-gradient(135deg, transparent 50%, rgba(125, 211, 252, 0.55) 50%);
}

.ft-cockpit-scope-disk {
  fill: rgba(8, 47, 73, 0.04);
  stroke: rgba(56, 189, 248, 0.22);
  stroke-width: 1.2;
}

.ft-cockpit-scope-ring {
  fill: none;
  stroke: rgba(125, 211, 252, 0.16);
  stroke-width: 1;
}

.ft-cockpit-scope-ring.is-wellclear {
  stroke: rgba(251, 191, 36, 0.42);
  stroke-width: 1.25;
  stroke-dasharray: 3 2;
}

.ft-cockpit-scope-ring.is-daa {
  stroke: rgba(251, 146, 60, 0.42);
  stroke-width: 1.25;
}

.ft-cockpit-scope-safe {
  fill: none;
  stroke: rgba(74, 222, 128, 0.55);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.ft-cockpit-scope-hot {
  fill: none;
  stroke: rgba(248, 113, 113, 0.58);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.ft-cockpit-scope-hot-fill {
  fill: rgba(248, 113, 113, 0.14);
  stroke: none;
  pointer-events: none;
}

.ft-cockpit-scope-trail {
  fill: none;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.62;
}

.ft-cockpit-scope-hist {
  stroke: #0f172a;
  stroke-width: 0.45;
  opacity: 1;
}

.ft-cockpit-scope-hist.is-safe,
.ft-cockpit-scope-trail.is-safe {
  fill: #4ade80;
  stroke: #4ade80;
}

.ft-cockpit-scope-hist.is-corrective,
.ft-cockpit-scope-trail.is-corrective {
  fill: #facc15;
  stroke: #facc15;
}

.ft-cockpit-scope-hist.is-wellclear,
.ft-cockpit-scope-trail.is-wellclear {
  fill: #ef4444;
  stroke: #ef4444;
}

.ft-cockpit-scope-vec {
  fill: none;
  stroke-width: 1.35;
  stroke-dasharray: 2.4 1.7;
  stroke-linecap: round;
  opacity: 1;
  pointer-events: none;
}

.ft-cockpit-scope-vec.is-safe {
  stroke: #4ade80;
}

.ft-cockpit-scope-vec.is-corrective {
  stroke: #facc15;
}

.ft-cockpit-scope-vec.is-wellclear {
  stroke: #ef4444;
}

.ft-cockpit-scope-tgt {
  fill: none;
  stroke: #f8fafc;
  stroke-width: 1.15;
  pointer-events: none;
}

.ft-cockpit-scope-tgt-line {
  stroke: rgba(248, 250, 252, 0.42);
  stroke-width: 1;
  stroke-dasharray: 2.2 2;
  pointer-events: none;
}

.ft-cockpit-scope-tgt-lbl {
  fill: #f8fafc;
  font-size: 8.5px;
  font-family: "Segoe UI", sans-serif;
  font-weight: 700;
  pointer-events: none;
}

.ft-cockpit-scope-hit-lbl {
  font-size: 7px;
  font-family: "Segoe UI", sans-serif;
  font-weight: 700;
  text-anchor: start;
  dominant-baseline: auto;
  pointer-events: none;
  paint-order: stroke fill;
  stroke-width: 1.35px;
}

.ft-cockpit-scope-hit-lbl.is-safe,
.ft-cockpit-scope-hit-lbl.is-corrective,
.ft-cockpit-scope-hit-lbl.is-wellclear {
  fill: #f8fafc;
  stroke: #0b1220;
}

.ft-cockpit-scope-axis {
  stroke: rgba(148, 163, 184, 0.32);
  stroke-width: 1;
}

.ft-cockpit-scope-own {
  fill: #38bdf8;
  stroke: #e0f2fe;
  stroke-width: 0.7;
}

.ft-cockpit-scope-hit {
  stroke: rgba(15, 23, 42, 0.55);
  stroke-width: 0.7;
}

.ft-cockpit-scope-hit.is-safe {
  fill: rgba(74, 222, 128, 0.45);
}

.ft-cockpit-scope-hit.is-corrective {
  fill: rgba(250, 204, 21, 0.82);
}

.ft-cockpit-scope-hit.is-wellclear {
  fill: rgba(239, 68, 68, 0.86);
}

.ft-cockpit-scope-hit.is-target {
  stroke: #f8fafc;
  stroke-width: 1.6;
}

.ft-cockpit-scope-hit.is-q-med {
  opacity: 0.82;
}

.ft-cockpit-scope-hit.is-q-low {
  opacity: 0.52;
  stroke-dasharray: 2 1.5;
  stroke-width: 1.2;
}

.ft-cockpit-scope-gnd {
  fill: #a8a29e;
  stroke: #1c1917;
  stroke-width: 0.7;
}

.ft-cockpit-scope-gnd.is-caution {
  fill: #fdba74;
}

.ft-cockpit-scope-gnd.is-alert {
  fill: #f87171;
}

.ft-cockpit-scope-vg {
  fill: #e2e8f0;
  font-size: 8px;
  font-family: "Segoe UI", sans-serif;
  font-weight: 700;
  pointer-events: none;
}

.ft-cockpit-scope-tick {
  stroke: #e2e8f0;
  stroke-width: 1.15;
  stroke-linecap: round;
  pointer-events: none;
  opacity: 0.85;
}

.ft-cockpit-lookout-target {
  margin-top: 0.28rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #fde68a;
  font-variant-numeric: tabular-nums;
}

.ft-cockpit-lookout-target[hidden] {
  display: none;
}

.ft-cockpit-scope-caption {
  fill: #7dd3fc;
  font-size: 8.5px;
  font-family: "Segoe UI", sans-serif;
  font-weight: 700;
}

.ft-cockpit-scope-rlabel {
  fill: #94a3b8;
  font-size: 7.5px;
  font-family: "Segoe UI", sans-serif;
}

.ft-cockpit-scope-rlabel.is-wc {
  fill: #fbbf24;
}

.ft-cockpit-scope-rlabel.is-daa {
  fill: #fb923c;
}

.ft-cockpit-lookout-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0.3rem 0 0;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  text-align: left;
  max-height: none;
  overflow: visible;
}

.ft-cockpit-lookout-list li {
  font-size: 0.78rem;
  line-height: 1.35;
  padding: 0.16rem 0.2rem;
  font-variant-numeric: tabular-nums;
  color: #e2e8f0;
  cursor: pointer;
  border-radius: 6px;
}

.ft-cockpit-lookout-list li:hover {
  background: rgba(148, 163, 184, 0.12);
}

.ft-cockpit-lookout-list li.is-target {
  background: rgba(253, 230, 138, 0.12);
  box-shadow: inset 2px 0 0 #fde68a;
}

.ft-cockpit-lookout-list li.is-alert {
  font-weight: 700;
}

.ft-cockpit-lookout-list li.is-ahead {
  color: #86efac;
}

.ft-cockpit-lookout-list li.is-abeam {
  color: #fde68a;
}

.ft-cockpit-lookout-list li.is-behind {
  color: #cbd5e1;
}

.ft-cockpit-lookout-list li.ft-cockpit-lookout-empty {
  color: #94a3b8;
}

.ft-cockpit-lookout-q {
  font-weight: 650;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.ft-cockpit-lookout-q.is-high {
  color: #86efac;
}

.ft-cockpit-lookout-q.is-medium {
  color: #fde68a;
}

.ft-cockpit-lookout-q.is-low {
  color: #94a3b8;
}

@keyframes ft-toast-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(0.35rem);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.ft-panel-layers .ft-help-mini {
  margin-top: 0.2rem;
}

.ft-diagnostics {
  font-size: 0.78rem;
}

.ft-diagnostics-body {
  line-height: 1.5;
}

.ft-terms {
  margin: 0.85rem 0 0;
  font-size: 0.7rem;
  line-height: 1.45;
  color: var(--ft-muted);
}

/* Mission / route planning (Cesium draw overlay) — large viewports only (see min-width below) */
.ft-mission-wrap {
  display: none;
  position: absolute;
  z-index: 7;
  top: 0.7rem;
  right: 0.7rem;
  width: min(20rem, calc(100% - 2rem - min(26rem, calc(100vw - 2rem))));
  max-height: min(60vh, 28rem);
  flex-direction: column;
  gap: 0.45rem;
  pointer-events: auto;
  font-size: 0.76rem;
}

@media (min-width: 1200px) {
  .ft-mission-wrap {
    display: flex;
  }
}

.ft-mission-kicker {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c4b5fd;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.6);
}

.ft-mission-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.35rem;
  align-items: center;
  padding: 0.4rem 0.45rem;
  border-radius: 12px;
  border: 1px solid rgba(167, 139, 250, 0.3);
  background: rgba(12, 18, 32, 0.88);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.4);
  backdrop-filter: blur(10px);
}

.ft-mission-tool,
.ft-mission-finish {
  min-height: 1.85rem;
  padding: 0.2rem 0.55rem;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(30, 27, 75, 0.5);
  color: #e9d5ff;
  cursor: pointer;
  line-height: 1.2;
  transition:
    background 0.12s,
    border-color 0.12s,
    color 0.12s;
}

.ft-mission-tool:hover,
.ft-mission-finish:hover {
  background: rgba(55, 48, 116, 0.78);
  border-color: rgba(196, 181, 253, 0.45);
}

.ft-mission-tool-active {
  background: linear-gradient(180deg, #6d28d9 0%, #5b21b6 100%);
  border-color: #a78bfa;
  color: #faf5ff;
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.2);
}

.ft-mission-finish:not([hidden]) {
  border-color: #c4b5fd;
  color: #faf5ff;
  background: linear-gradient(180deg, #5b21b6 0%, #4c1d95 100%);
}

.ft-mission-finish[hidden] {
  display: none;
}

.ft-mission-hint {
  margin: 0;
  padding: 0.2rem 0.25rem 0.1rem 0.15rem;
  line-height: 1.3;
  color: #c4b5fd;
  font-size: 0.68rem;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  max-width: 100%;
}

.ft-mission-drawing {
  max-height: 9.5rem;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid rgba(88, 28, 135, 0.35);
  background: rgba(3, 7, 18, 0.72);
  padding: 0.4rem 0.45rem 0.45rem 0.55rem;
  color: #e9d5ff;
  font-size: 0.68rem;
  line-height: 1.35;
}

.ft-mission-drawing .ft-mission-total {
  margin: 0 0 0.2rem 0;
  color: #f0abfc;
  font-weight: 600;
  font-size: 0.72rem;
}

.ft-mission-drawing .ft-mission-total-sub {
  margin: 0 0 0.2rem 0;
  color: #94a3b8;
  font-size: 0.64rem;
}

.ft-mission-drawing .ft-mission-ol {
  margin: 0;
  padding-left: 1.1rem;
}

.ft-mission-drawing .ft-mission-delta {
  color: #7dd3fc;
  font-variant-numeric: tabular-nums;
}

.ft-mission-side {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-height: 0;
}

#ft-mission-info {
  border-radius: 12px;
  border: 1px solid rgba(167, 139, 250, 0.28);
  background: rgba(6, 10, 20, 0.85);
  padding: 0.4rem 0.45rem 0.45rem 0.55rem;
  overflow: auto;
  max-height: 16rem;
}

#ft-mission-info[hidden] {
  display: none !important;
}

.ft-mission-info-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}

#ft-mission-info-title,
.ft-mission-info-title {
  margin: 0;
  font-size: 0.8rem;
  color: #faf5ff;
  font-weight: 700;
  line-height: 1.2;
}

#ft-mission-vertices p,
#ft-mission-vertices {
  line-height: 1.4;
  font-size: 0.7rem;
  color: #ede9fe;
  margin: 0.15rem 0 0 0;
}

#ft-mission-vertices .ft-mission-ol,
.ft-mission-ol {
  margin: 0.15rem 0 0;
  padding-left: 1.1rem;
}

#ft-mission-vertices .ft-mission-total,
.ft-mission-vertices .ft-mission-total {
  color: #f0abfc;
  font-weight: 600;
}

.ft-mission-info-actions .ft-btn {
  min-height: 1.5rem;
  font-size: 0.64rem;
}

.ft-mission-cad {
  margin-top: 0.4rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(167, 139, 250, 0.18);
}

.ft-mission-cad[hidden] {
  display: none !important;
}

.ft-mission-cad-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.ft-mission-cad-row .ft-btn {
  min-height: 1.5rem;
  font-size: 0.62rem;
}

.ft-mission-cad-row .is-on,
#ft-mission-insert.is-on {
  border-color: #67e8f9;
  color: #ecfeff;
  background: rgba(8, 47, 73, 0.85);
}

.ft-mission-cad-help {
  margin: 0.3rem 0 0;
  color: #94a3b8;
}

#ft-mission-vertices .ft-mission-ol li {
  cursor: pointer;
  border-radius: 4px;
  padding: 0.05rem 0.15rem;
}

#ft-mission-vertices .ft-mission-ol li.is-on {
  background: rgba(34, 211, 238, 0.16);
  color: #ecfeff;
}

.ft-mission-terms {
  margin: 0;
  font-size: 0.6rem;
  line-height: 1.3;
  color: #64748b;
  max-width: 100%;
}

.ft-mission-bottom {
  display: flex;
  justify-content: flex-end;
}

.ft-part108-panel {
  margin-top: 0.55rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 0.45rem;
  background: rgba(15, 23, 42, 0.72);
}

.ft-part108-heading {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #7dd3fc;
}

.ft-part108-disclaimer {
  margin: 0 0 0.45rem;
  color: #94a3b8;
}

.ft-part108-governing {
  border-left: 3px solid #22c55e;
  padding: 0.35rem 0.45rem;
  margin-bottom: 0.45rem;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 0 0.35rem 0.35rem 0;
}

.ft-part108-governing-label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.ft-part108-governing-cat {
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0.15rem 0;
}

.ft-part108-governing-note,
.ft-part108-worst-leg {
  margin: 0.25rem 0 0;
  font-size: 0.62rem;
  line-height: 1.35;
  color: #cbd5e1;
}

.ft-part108-seg-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 14rem;
  overflow-y: auto;
}

.ft-part108-seg {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  font-size: 0.6rem;
  line-height: 1.35;
  color: #cbd5e1;
  padding: 0.28rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ft-part108-seg-main {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}

.ft-part108-seg-override {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}

.ft-part108-seg-override select,
.ft-part108-seg-override input {
  font-size: 0.62rem;
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 0.25rem;
  padding: 0.15rem 0.3rem;
}

.ft-part108-seg-override input {
  flex: 1;
  min-width: 8rem;
}

.ft-part108-seg-badge {
  flex-shrink: 0;
  font-size: 0.55rem;
  font-weight: 700;
  color: #0f172a;
  padding: 0.1rem 0.3rem;
  border-radius: 0.2rem;
}

.ft-part108-layer-note {
  flex-basis: 100%;
  margin: 0.15rem 0 0;
  color: #64748b;
}

/* Part 108 BVLOS checklist (sidepanel + route panel) */
.ft-part108-planning-panel,
.ft-part108-checklist-panel {
  border-color: rgba(56, 189, 248, 0.28);
}

.ft-part108-planning-intro {
  margin-top: 0.35rem;
}

.ft-trip-subhead {
  margin: 0.65rem 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #a3e635;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ft-trip-plan-block {
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(56, 189, 248, 0.14);
}

.ft-trip-checklist-block {
  margin-top: 0.55rem;
}

.ft-trip-field-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ft-trip-loc-grid {
  margin-top: 0.35rem;
}

.ft-trip-volume-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem 0.55rem;
  margin: 0.35rem 0 0.15rem;
}

@media (max-width: 720px) {
  .ft-trip-volume-grid {
    grid-template-columns: 1fr;
  }
}

.ft-trip-veh-grid {
  margin: 0.25rem 0 0.55rem;
}

.ft-trip-saved-bar,
.ft-trip-save-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 0.35rem 0 0.45rem;
}

.ft-trip-saved-select {
  flex: 1;
  min-width: 8rem;
}

.ft-trip-save-name {
  flex: 1;
  min-width: 8rem;
}

.ft-trip-waypoints-wrap {
  grid-column: 1 / -1;
  margin: 0.15rem 0 0.25rem;
}

.ft-trip-waypoints-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.25rem;
}

.ft-trip-waypoints {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ft-trip-wp-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.35rem;
  align-items: center;
}

.ft-trip-wp-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  min-width: 2rem;
}

.ft-trip-wp-remove {
  min-width: 1.75rem;
  padding-inline: 0.35rem;
}

.ft-trip-waypoints-hint {
  margin: 0.25rem 0 0;
}

.ft-trip-ops-ok {
  color: #86efac;
  font-weight: 600;
}

.ft-trip-ops-warn {
  color: #fca5a5;
  font-weight: 700;
}

.ft-trip-ops-warn-li {
  color: #fecaca;
}

.ft-trip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.45rem 0;
}

.ft-trip-check-btn {
  width: 100%;
  margin-top: 0.25rem;
}

#ft-trip-reroute {
  width: 100%;
  margin-top: 0.25rem;
  border-color: rgba(251, 191, 36, 0.45);
  color: #fde68a;
}

.ft-trip-status {
  color: #7dd3fc;
  min-height: 1.2rem;
}

.ft-intent-block {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(251, 191, 36, 0.28);
}

.ft-intent-form {
  margin-top: 0.45rem;
}

.ft-intent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  color: #e2e8f0;
}

.ft-intent-check input {
  margin-top: 0.15rem;
}

.ft-intent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.55rem 0 0.35rem;
}

.ft-intent-status--ok {
  color: #5eead4;
}

.ft-intent-status--err {
  color: #fca5a5;
}

.ft-intent-list {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #fed7aa;
}

.ft-intent-row {
  padding: 0.4rem 0;
  border-top: 1px solid rgba(251, 191, 36, 0.18);
}

.ft-intent-row:first-child {
  border-top: 0;
}

.ft-trip-results {
  margin-top: 0.55rem;
  max-height: min(16rem, 38vh);
  overflow-y: auto;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  background: rgba(15, 23, 42, 0.55);
  font-size: 0.72rem;
  line-height: 1.4;
}

.ft-gonogo {
  margin: 0 0 0.55rem;
  padding: 0.5rem 0.6rem 0.45rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.ft-gonogo-kicker {
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.15rem;
}

.ft-gonogo-label {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.ft-gonogo-reasons {
  margin: 0.3rem 0 0;
  padding-left: 1.05rem;
  color: #e2e8f0;
}

.ft-gonogo--go {
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(20, 83, 45, 0.45);
}

.ft-gonogo--go .ft-gonogo-label {
  color: #86efac;
}

.ft-gonogo--caution {
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(69, 47, 8, 0.5);
}

.ft-gonogo--caution .ft-gonogo-label {
  color: #fde68a;
}

.ft-gonogo--nogo {
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(69, 10, 10, 0.5);
}

.ft-gonogo--nogo .ft-gonogo-label {
  color: #fecaca;
}

.ft-gonogo.is-stale {
  outline: 1px dashed rgba(251, 191, 36, 0.65);
}

#ft-trip-refresh-checks {
  width: 100%;
  margin-top: 0.35rem;
}

.ft-intent-conflicts {
  margin-bottom: 0.45rem;
  padding: 0.4rem 0.45rem;
  border-radius: 8px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(69, 10, 10, 0.35);
  color: #fecaca;
}

.ft-intent-conflict {
  margin-top: 0.25rem;
  font-size: 0.7rem;
  color: #fed7aa;
}

.ft-corridor-traffic {
  margin-top: 0.55rem;
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: rgba(15, 23, 42, 0.5);
}

.ft-corridor-traffic-head {
  font-weight: 700;
  color: #fde68a;
  font-size: 0.75rem;
}

.ft-corridor-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
}

.ft-corridor-pick {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.45rem;
  width: 100%;
  margin: 0 0 0.28rem;
  padding: 0.32rem 0.4rem;
  border: 0;
  border-radius: 8px;
  text-align: left;
  font: inherit;
  color: inherit;
  background: rgba(2, 6, 23, 0.45);
  cursor: pointer;
}

.ft-corridor-lvl {
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ft-corridor-row--inside .ft-corridor-lvl,
.ft-corridor-chip.is-inside {
  color: #fecaca;
}

.ft-corridor-row--imminent .ft-corridor-lvl,
.ft-corridor-chip.is-imminent {
  color: #fdba74;
}

.ft-corridor-row--approaching .ft-corridor-lvl,
.ft-corridor-chip.is-approaching {
  color: #fde68a;
}

.ft-corridor-row--nearby .ft-corridor-lvl,
.ft-corridor-chip.is-nearby,
.ft-corridor-chip.is-clear {
  color: #bae6fd;
}

.ft-corridor-call {
  font-weight: 700;
  color: #f8fafc;
}

.ft-corridor-meta {
  font-size: 0.68rem;
  color: #94a3b8;
}

.ft-map-chip-stack {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 18;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  pointer-events: none;
}

.ft-map-chip-stack > button {
  pointer-events: auto;
}

.ft-corridor-chip,
.ft-checks-chip,
.ft-wx-cache-chip,
.ft-energy-chip {
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.86);
  cursor: pointer;
}

.ft-corridor-chip {
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fde68a;
}

.ft-checks-chip {
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
}

.ft-checks-chip.is-go {
  border-color: rgba(74, 222, 128, 0.55);
  color: #bbf7d0;
}

.ft-checks-chip.is-caution {
  border-color: rgba(250, 204, 21, 0.55);
  color: #fde68a;
}

.ft-checks-chip.is-nogo {
  border-color: rgba(248, 113, 113, 0.65);
  color: #fecaca;
}

.ft-wx-cache-chip {
  border: 1px solid rgba(125, 211, 252, 0.45);
  color: #bae6fd;
}

#ft-trip-export-package {
  width: 100%;
  margin-top: 0.35rem;
}

.ft-trip-result-head,
.ft-trip-result-sub {
  font-weight: 700;
  color: #bae6fd;
  margin: 0.35rem 0 0.25rem;
}

.ft-trip-result-list,
.ft-trip-notam-hits {
  margin: 0.2rem 0 0.45rem;
  padding-left: 1.1rem;
  color: #cbd5e1;
}

.ft-trip-brief-text {
  margin: 0.35rem 0 0;
  white-space: pre-wrap;
  color: #e2e8f0;
}

.ft-p108-check-item--auto .ft-p108-check-text {
  color: #d9f99d;
}

.ft-p108-auto-tag {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #a3e635;
  border: 1px solid rgba(163, 230, 53, 0.35);
  border-radius: 4px;
  padding: 0.05rem 0.25rem;
  margin-left: 0.2rem;
  vertical-align: middle;
}

.ft-part108-checklist-panel {
  border-color: rgba(56, 189, 248, 0.28);
}

.ft-part108-checklist-intro {
  margin-top: 0.35rem;
}

.ft-part108-checklist-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin: 0.55rem 0 0.45rem;
}

.ft-p108-check-progress {
  font-size: 0.68rem;
  font-weight: 600;
  color: #7dd3fc;
  font-variant-numeric: tabular-nums;
}

.ft-p108-checklist-root {
  max-height: min(22rem, 42vh);
  overflow-y: auto;
  padding-right: 0.15rem;
}

.ft-part108-route-checklist {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(56, 189, 248, 0.2);
}

.ft-p108-check-route-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.ft-p108-check-route-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #bae6fd;
}

.ft-p108-check-group {
  margin: 0.35rem 0 0;
  border: 1px solid rgba(56, 189, 248, 0.14);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.45);
  overflow: hidden;
}

.ft-p108-check-group-title {
  cursor: pointer;
  padding: 0.45rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #e0f2fe;
  list-style: none;
}

.ft-p108-check-group-title::-webkit-details-marker {
  display: none;
}

.ft-p108-check-list {
  list-style: none;
  margin: 0;
  padding: 0 0.45rem 0.45rem;
}

.ft-p108-check-item + .ft-p108-check-item {
  margin-top: 0.28rem;
}

.ft-p108-check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.72rem;
  line-height: 1.38;
  color: #cbd5e1;
  cursor: pointer;
}

.ft-p108-check-input {
  flex-shrink: 0;
  margin-top: 0.12rem;
  width: 0.95rem;
  height: 0.95rem;
  accent-color: #38bdf8;
}

.ft-p108-check-text {
  flex: 1;
  min-width: 0;
}

.ft-p108-check-cat {
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  padding: 0.1rem 0.28rem;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.6);
}

.ft-ops-grid .ft-ref-row strong {
  font-weight: 600;
  color: #bae6fd;
  word-break: break-word;
}

.ft-ops-hint {
  margin: 0.35rem 0 0.5rem;
  max-width: 22rem;
}

.ft-flow-feed {
  max-height: 240px;
  overflow-y: auto;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #cbd5e1;
}

.ft-flow-line {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
}

.ft-flow-line:last-child {
  border-bottom: none;
}

.ft-flow-kind {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #38bdf8;
  margin-right: 0.35rem;
}

.ft-flow-title {
  font-weight: 600;
  color: #e2e8f0;
}

.ft-flow-summary {
  margin-top: 0.2rem;
  color: #94a3b8;
}

.ft-fdps-feed {
  max-height: min(32vh, 260px);
  overflow-y: auto;
  font-size: 0.68rem;
  line-height: 1.38;
  color: #d4d4d8;
}

.ft-fdps-panel.ft-fdps-unavailable .ft-fdps-feed {
  opacity: 0.72;
}

.ft-fdps-line {
  padding: 0.38rem 0;
  border-bottom: 1px solid rgba(167, 139, 250, 0.14);
}

.ft-fdps-line:last-child {
  border-bottom: none;
}

.ft-fdps-kind {
  display: inline-block;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-right: 0.38rem;
  padding: 0.08rem 0.28rem;
  border-radius: 4px;
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
}

.ft-fdps-kind--flight {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
}

.ft-fdps-kind--airspace {
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
}

.ft-fdps-kind--general {
  background: rgba(251, 191, 36, 0.1);
  color: #fcd34d;
}

.ft-fdps-title {
  font-weight: 600;
  color: #f1f5f9;
}

.ft-fdps-meta {
  margin-top: 0.18rem;
  font-size: 0.58rem;
  color: #78716c;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
}

.ft-fdps-meta span {
  word-break: break-all;
}

.ft-fdps-port {
  color: #a8a29e;
}

.ft-fdps-summary {
  margin-top: 0.22rem;
  color: #a1a1aa;
  word-break: break-word;
}

.ft-notam-feed {
  max-height: min(38vh, 22rem);
  overflow-y: auto;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #e2e8f0;
}

.ft-notam-view-notice {
  margin: 0 0 0.45rem;
  padding: 0.35rem 0.4rem;
  border-radius: 0.25rem;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.22);
  color: #fde68a;
  font-size: 0.65rem;
  line-height: 1.4;
}

.ft-notam-line {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(250, 204, 21, 0.12);
}

.ft-notam-line:last-child {
  border-bottom: none;
}

.ft-notam-line-title {
  font-weight: 600;
  color: #fde68a;
  word-break: break-word;
}

.ft-notam-line-summary {
  margin-top: 0.2rem;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (min-width: 1200px) {
  body.embed .ft-mission-wrap {
    right: 0.45rem;
    top: 0.5rem;
    max-height: 45vh;
  }
}

@media (max-width: 720px) {
  .ft-layer-toggles {
    grid-template-columns: 1fr;
    gap: 0.34rem;
  }

  .ft-sidepanel .ft-inline-toggle {
    min-height: 2.75rem;
    align-items: center;
  }

  .ft-sidepanel .ft-inline-toggle input[type='checkbox'] {
    width: 1.15rem;
    height: 1.15rem;
  }
}

/* Proximity — in-view pair picker (under Map layers; spans full panel width below the 2-col toggle grid) */
.ft-layer-toggles > .ft-proximity-view-wrap {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.ft-proximity-view-wrap {
  margin: 0.42rem 0 0;
  padding: 0.38rem 0.38rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(125, 211, 252, 0.12);
}

.ft-proximity-view-wrap > label.ft-help-mini {
  display: block;
  margin-bottom: 0.28rem;
  line-height: 1.35;
}

.ft-proximity-view-select.ft-select {
  width: 100%;
  max-width: 100%;
}

/* Header — live TFMS pulse (all audiences) */
.ft-feed-health {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  white-space: nowrap;
  max-width: 22rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Selected aircraft — TFMS ops snapshot + copy */
.ft-card-subhead {
  margin: 0.55rem 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7dd3fc;
}

.ft-ops-snapshot-wrap {
  margin-top: 0.35rem;
}

.ft-ops-snapshot-hint {
  margin: 0 0 0.35rem !important;
}

.ft-ops-snapshot {
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(125, 211, 252, 0.14);
  padding: 0.4rem 0.45rem;
  font-size: 0.78rem;
  line-height: 1.35;
}

.ft-ops-snapshot-empty {
  margin: 0;
  color: #94a3b8;
  font-size: 0.74rem;
  line-height: 1.4;
}

.ft-fdps-card-hint {
  margin: 0 0 0.35rem !important;
}

.ft-fdps-card-list {
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(167, 139, 250, 0.2);
  padding: 0.35rem 0.4rem;
  max-height: 11rem;
  overflow: auto;
}

.ft-fdps-card-line {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.ft-fdps-card-line:last-child {
  border-bottom: 0;
}

.ft-fdps-card-line-meta {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a78bfa;
  margin-bottom: 0.15rem;
}

.ft-fdps-card-line-text {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: #e2e8f0;
}

.ft-fdps-panel-hint-block {
  padding: 0.15rem 0;
}

.ft-fdps-panel-hint {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #e2e8f0;
}

.ft-ops-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.35rem 0.5rem;
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

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

.ft-ops-row-label {
  color: #94a3b8;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ft-ops-row-value {
  color: #e2e8f0;
  word-break: break-word;
}
/* Operator ADS-B feed panel (left dock, top) */
.ft-adsb-panel {
  border-color: rgba(251, 191, 36, 0.35);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.88));
}

.ft-adsb-endpoint-wrap {
  margin-top: 0.55rem;
}

.ft-adsb-endpoint-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.25rem;
}

.ft-adsb-endpoint {
  display: block;
  white-space: pre-line;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.45;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fde68a;
  word-break: break-all;
}

.ft-adsb-status {
  color: #7dd3fc;
}

.ft-adsb-details {
  margin: 0.5rem 0 0.35rem;
  font-size: 0.68rem;
  color: #94a3b8;
}

.ft-adsb-details summary {
  cursor: pointer;
  color: #cbd5e1;
  font-weight: 600;
}

.ft-adsb-config-list {
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
  line-height: 1.45;
}

.ft-adsb-config-list li {
  margin-bottom: 0.45rem;
}

.ft-adsb-config-list code {
  font-size: 0.65rem;
  color: #fde68a;
}

.ft-adsb-form {
  margin-top: 0.55rem;
}

.ft-position-feed-divider {
  margin: 0.85rem 0 0.65rem;
  border: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.ft-sensor-sub {
  margin: 0.45rem 0 0;
  padding: 0.2rem 0 0.15rem 0.9rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.ft-sensor-sub .ft-card-section-title {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.82rem;
  color: #bae6fd;
}

.ft-mavlink-section {
  margin-top: 0.15rem;
}

.ft-mavlink-heading {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #bae6fd;
  letter-spacing: 0.01em;
}

.ft-mavlink-status {
  color: #7dd3fc;
}

.ft-mavlink-details summary {
  color: #bae6fd;
}

.ft-mav-mission-panel {
  border-color: rgba(45, 212, 191, 0.35);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.92), rgba(15, 40, 42, 0.88));
}

.ft-mav-mission-link {
  color: #94a3b8;
}

.ft-mav-mission-link-on {
  color: #5eead4;
}

.ft-mav-mission-form {
  margin-top: 0.45rem;
}

.ft-mav-mission-file-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  min-width: 0;
}

.ft-mav-mission-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ft-mav-mission-file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  width: auto;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.2;
}

.ft-mav-mission-file-btn:hover {
  border-color: rgba(125, 211, 252, 0.55);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.36), rgba(8, 47, 73, 0.42));
}

.ft-mav-mission-file-input:focus-visible + .ft-mav-mission-file-btn {
  outline: 2px solid #5eead4;
  outline-offset: 2px;
}

.ft-mav-mission-file-name {
  min-width: 0;
  font-size: 0.7rem;
  color: #94a3b8;
  word-break: break-all;
}

.ft-mav-mission-file-name.is-chosen {
  color: #99f6e4;
}

.ft-mav-mission-add {
  margin-top: 0.65rem;
}

.ft-mav-mission-add-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.25rem;
}

.ft-mav-mission-add-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 0.35rem;
}

.ft-mav-mission-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.65rem 0 0.4rem;
}

.ft-mav-mission-items {
  margin-top: 0.4rem;
  max-height: 11rem;
  overflow: auto;
}

.ft-mav-mission-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.68rem;
  color: #e2e8f0;
}

.ft-mav-mission-table th,
.ft-mav-mission-table td {
  padding: 0.2rem 0.3rem;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.ft-mav-mission-table th {
  color: #94a3b8;
  font-weight: 600;
}

.ft-mav-mission-upload {
  width: 100%;
  margin-top: 0.55rem;
}

.ft-drone-view-toggles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1rem;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: rgba(8, 15, 28, 0.45);
}

.ft-drone-hud-toggle,
.ft-drone-camera-toggle {
  display: inline-flex;
  margin-top: 0;
  padding: 0.1rem 0;
}

.ft-mav-mission-status-ok {
  color: #5eead4;
}

.ft-mav-mission-status-err {
  color: #fca5a5;
}

.ft-mav-mission-status-busy {
  color: #fde68a;
}

/* Drone HUD — Flight Indicators row across the map bottom */
.ft-drone-hud {
  position: absolute;
  z-index: 8;
  left: 12px;
  right: 12px;
  bottom: 0.7rem;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.ft-drone-hud[hidden] {
  display: none !important;
}

.ft-drone-hud-inner {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 0.35rem 0.7rem;
  max-width: min(52rem, 100%);
  padding: 0.45rem 0.8rem 0.4rem;
  border-radius: 16px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  background: rgba(8, 15, 28, 0.82);
  box-shadow: 0 14px 36px rgba(2, 8, 23, 0.45);
  backdrop-filter: blur(12px);
}

.ft-drone-hud-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4.5rem;
  flex: 0 1 auto;
}

.ft-drone-hud-gauge,
.ft-drone-hud .instrument {
  width: 124px;
  height: 124px;
}

.ft-drone-hud .instrument img {
  max-width: none;
  border: 0;
}

.ft-drone-hud-caption {
  margin-top: 0.1rem;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #cbd5e1;
  text-align: center;
  white-space: nowrap;
}

.ft-drone-hud-caption span {
  display: block;
  margin-top: 0.05rem;
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
  color: #7dd3fc;
  font-variant-numeric: tabular-nums;
}

.ft-drone-hud-stale {
  flex: 1 1 100%;
  margin: 0.1rem 0 0;
  text-align: center;
  font-size: 0.68rem;
  color: #94a3b8;
}

.ft-drone-hud-stale.is-live {
  color: #5eead4;
}

.ft-hud-battery {
  position: relative;
  width: 124px;
  height: 124px;
  overflow: hidden;
}

.ft-hud-battery-dial,
.ft-hud-battery-needle,
.ft-hud-battery-bezel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ft-hud-battery-needle {
  transform-origin: 50% 50%;
  transform: rotate(-120deg);
  transition: transform 0.18s ease-out;
}

.ft-hud-battery.is-low #ft-hud-battery-arc {
  stroke: #f87171;
}

.ft-hud-battery.is-mid #ft-hud-battery-arc {
  stroke: #fbbf24;
}

.ft-hud-battery.is-ok #ft-hud-battery-arc {
  stroke: #22c55e;
}

body.ft-drone-hud-on .ft-left-dock {
  bottom: 10.6rem;
}

body.ft-drone-hud-on .ft-toast {
  bottom: 11.4rem;
}

body.ft-drone-hud-on.ft-replay-bar-on .ft-drone-hud {
  bottom: 4.7rem;
}

body.ft-drone-hud-on.ft-replay-bar-on .ft-left-dock {
  bottom: 14.4rem;
}

@media (max-width: 900px) {
  .ft-drone-hud-gauge,
  .ft-drone-hud .instrument,
  .ft-hud-battery {
    width: 92px;
    height: 92px;
  }

  body.ft-drone-hud-on .ft-left-dock {
    bottom: 9.4rem;
  }
}

@media (max-width: 640px) {
  .ft-drone-hud {
    bottom: 0.5rem;
  }

  .ft-drone-hud-inner {
    padding: 0.3rem 0.45rem 0.25rem;
    gap: 0.2rem 0.35rem;
  }

  .ft-drone-hud-gauge,
  .ft-drone-hud .instrument,
  .ft-hud-battery {
    width: 72px;
    height: 72px;
  }

  .ft-drone-hud-caption {
    font-size: 0.58rem;
  }

  body.ft-drone-hud-on .ft-left-dock {
    bottom: 8.6rem;
  }

  body.ft-drone-hud-on .ft-card {
    bottom: 8.8rem;
  }
}

/* Operator camera — large, centered, draggable / resizable */
.ft-drone-camera {
  position: absolute;
  z-index: 36;
  display: flex;
  flex-direction: column;
  min-width: 280px;
  min-height: 180px;
  border-radius: 14px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: rgba(8, 15, 28, 0.94);
  box-shadow: 0 22px 56px rgba(2, 8, 23, 0.55);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.ft-drone-camera[hidden] {
  display: none !important;
}

.ft-drone-camera-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.55rem;
  cursor: grab;
  border-bottom: 1px solid rgba(125, 211, 252, 0.16);
  user-select: none;
}

.ft-drone-camera-header:active {
  cursor: grabbing;
}

.ft-drone-camera-header strong {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.ft-drone-camera-select {
  max-width: 11rem;
  font-size: 0.72rem;
}

.ft-drone-camera-session {
  margin-left: auto;
  font-size: 0.66rem;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}

.ft-drone-camera-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #020617;
}

.ft-drone-camera-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.ft-drone-camera-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1.2rem;
  white-space: pre-wrap;
  text-align: center;
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.45;
}

.ft-drone-camera-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.55rem 0.5rem;
  border-top: 1px solid rgba(125, 211, 252, 0.12);
}

.ft-drone-camera-footer .ft-input {
  flex: 1 1 12rem;
  min-width: 0;
}

.ft-drone-camera-status {
  font-size: 0.68rem;
  color: #7dd3fc;
}

.ft-drone-camera-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1.1rem;
  height: 1.1rem;
  cursor: nwse-resize;
  background: linear-gradient(135deg, transparent 50%, rgba(125, 211, 252, 0.55) 50%);
}

.ft-skydio-form {
  margin-top: 0.45rem;
}

#ft-skydio-vehicle,
.ft-skydio-form select.ft-select {
  height: auto;
  min-height: 2.9rem;
  padding-top: 0.68rem;
  padding-bottom: 0.72rem;
  line-height: 1.45;
  box-sizing: border-box;
}

.ft-skydio-link {
  color: #94a3b8;
}

.ft-skydio-link-on {
  color: #5eead4;
}

.ft-skydio-whoami {
  color: #7dd3fc;
}

.ft-skydio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.45rem;
  margin-top: 0.65rem;
}

.ft-skydio-status-ok {
  color: #5eead4;
}

.ft-skydio-status-err {
  color: #fca5a5;
}

.ft-skydio-status-busy {
  color: #fde68a;
}

.ft-pingstation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.45rem;
  margin-top: 0.65rem;
}

.ft-pingstation-status--ok {
  color: #5eead4;
}

.ft-pingstation-status--err {
  color: #fca5a5;
}

.ft-plan-drop-over {
  outline: 2px dashed #38bdf8;
  outline-offset: -4px;
}

#cesiumContainer.ft-plan-drop-over {
  outline-color: #7dd3fc;
}

.ft-trip-plan-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ft-trip-plan-file-btn {
  cursor: pointer;
}

/* LIVE STALE / OFFLINE — keep the map, do not look "Live" */
.ft-live-banner {
  position: absolute;
  top: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  max-width: min(36rem, 92vw);
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.ft-live-banner[hidden] {
  display: none !important;
}

.ft-live-banner--stale {
  color: #1c1917;
  background: #fbbf24;
  border: 2px solid #f59e0b;
}

.ft-live-banner--offline {
  color: #fff7ed;
  background: #b91c1c;
  border: 2px solid #fecaca;
}

.ft-empty-view {
  position: absolute;
  bottom: 7.4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 21;
  max-width: min(26rem, 90vw);
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #cbd5e1;
  font-size: 0.78rem;
  text-align: center;
  pointer-events: none;
}

.ft-empty-view[hidden] {
  display: none !important;
}

.ft-first-run {
  position: absolute;
  top: 3.4rem;
  left: 0.75rem;
  z-index: 40;
  width: min(22rem, calc(100% - 1.5rem));
  padding: 0.9rem 1rem 0.85rem;
  border-radius: 14px;
  background: rgba(8, 15, 28, 0.94);
  border: 1px solid rgba(125, 211, 252, 0.35);
  box-shadow: 0 16px 40px rgba(2, 8, 23, 0.55);
  pointer-events: auto;
}

.ft-first-run[hidden] {
  display: none !important;
}

.ft-first-run-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.ft-first-run-title {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.05rem;
  color: #f8fafc;
}

.ft-first-run-copy {
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #cbd5e1;
}

.ft-first-run-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}

.ft-first-run .ft-inline-toggle {
  margin-bottom: 0.55rem;
}

.ft-op-mode.ft-map-first {
  flex: 0.72 1 0;
  color: #7dd3fc;
}

.ft-op-mode.ft-map-first.is-map-first {
  color: #0b1220;
  background: linear-gradient(180deg, #fde68a, #fbbf24);
}

.ft-pill.is-stale,
.ft-feed-health.is-stale {
  color: #1c1917;
  background: #fbbf24;
  border-color: #d97706;
}

.ft-pill.is-offline,
.ft-feed-health.is-offline {
  color: #fff7ed;
  background: #b91c1c;
  border-color: #fecaca;
}

#ft-field-contrast.is-on {
  border-color: rgba(253, 224, 71, 0.7);
  background: linear-gradient(180deg, rgba(253, 224, 71, 0.28), rgba(202, 138, 4, 0.28));
  color: #fef9c3;
}

body.ft-field-contrast {
  --ft-border: rgba(253, 224, 71, 0.55);
  --ft-surface: rgba(8, 15, 28, 0.96);
  --ft-surface-2: rgba(15, 23, 42, 0.96);
  --ft-muted: #e2e8f0;
  --ft-accent: #fde047;
}

body.ft-field-contrast .ft-btn,
body.ft-field-contrast .ft-select,
body.ft-field-contrast .ft-op-mode,
body.ft-field-contrast .ft-inline-toggle,
body.ft-field-contrast .ft-pill,
body.ft-field-contrast .ft-chip {
  font-weight: 700;
}

body.ft-field-contrast .ft-btn,
body.ft-field-contrast .ft-select,
body.ft-field-contrast .ft-op-modes,
body.ft-field-contrast .ft-sidepanel,
body.ft-field-contrast .ft-card {
  border-width: 2px;
}

body.ft-field-contrast .ft-op-mode {
  font-size: 0.8rem;
}

body.ft-field-contrast .ft-first-run,
body.ft-field-contrast .ft-live-banner,
body.ft-field-contrast .ft-toast {
  border-width: 2px;
}

@media (max-width: 720px) {
  .ft-first-run {
    top: auto;
    bottom: 5.6rem;
    left: 0.5rem;
    right: 0.5rem;
    width: auto;
  }
}

.ft-drone-hud.no-battery .ft-hud-battery-item,
.ft-drone-hud.no-attitude .ft-hud-attitude-item {
  display: none;
}

.ft-crew-banner,
.ft-corridor-replay {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 88;
  max-width: min(36rem, 92vw);
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.ft-crew-banner {
  top: 0.7rem;
  color: #0b1220;
  background: #7dd3fc;
  border: 2px solid #38bdf8;
}

.ft-corridor-replay {
  top: 3.15rem;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(253, 224, 71, 0.45);
}

.ft-crew-banner[hidden],
.ft-corridor-replay[hidden] {
  display: none !important;
}

body.ft-feed-stale .ft-crew-banner,
body.ft-feed-offline .ft-crew-banner {
  top: 3.2rem;
}

.ft-replay-at-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #7dd3fc;
}

.ft-replay-at,
.ft-trip-replay-row .ft-input {
  min-width: 11rem;
}

.ft-trip-replay-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0.55rem 0 0.2rem;
}

.ft-playback {
  flex-wrap: wrap;
}

body.ft-crew-ro #ft-adsb-panel,
body.ft-crew-ro #ft-skydio-panel,
body.ft-crew-ro #ft-mav-mission-upload,
body.ft-crew-ro .ft-trip-actions,
body.ft-crew-ro #ft-trip-check-constraints,
body.ft-crew-ro #ft-trip-refresh-checks,
body.ft-crew-ro #ft-trip-reroute,
body.ft-crew-ro #ft-trip-avoid,
body.ft-crew-ro #ft-trip-export-wpl,
body.ft-crew-ro #ft-trip-save,
body.ft-crew-ro #ft-first-run,
body.ft-crew-ro #ft-intent-block,
body.ft-crew-ro #ft-alert-save,
body.ft-crew-ro .ft-corridor-hdc {
  display: none !important;
}

.ft-trip-readonly .ft-trip-saved-bar,
.ft-trip-readonly .ft-trip-save-bar {
  pointer-events: none;
  opacity: 0.55;
}

.ft-draw-tray {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 0.7rem;
  transform: translateX(-50%);
  z-index: 22;
  max-width: calc(100% - 1.2rem);
  padding: 0.35rem 0.4rem;
  border-radius: 14px;
  border: 1px solid rgba(167, 139, 250, 0.4);
  background: rgba(8, 15, 28, 0.92);
  box-shadow: 0 10px 28px rgba(2, 6, 23, 0.45);
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: center;
  pointer-events: auto;
}

body[data-ft-op-mode='plan'] .ft-draw-tray,
body.ft-field-contrast .ft-draw-tray,
body.ft-touch .ft-draw-tray {
  display: flex;
}

@media (min-width: 1200px) {
  body[data-ft-op-mode='plan']:not(.ft-field-contrast):not(.ft-touch) .ft-draw-tray {
    display: none;
  }
}

body.ft-crew-ro .ft-draw-tray,
body.embed .ft-draw-tray {
  display: none !important;
}

body.ft-replay-bar-on .ft-draw-tray {
  bottom: 4.6rem;
}

.ft-draw-tray-btn {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.95);
  color: #e2e8f0;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.ft-draw-tray-btn.is-active,
.ft-draw-tray-btn.ft-mission-tool-active {
  border-color: rgba(196, 181, 253, 0.85);
  background: rgba(91, 33, 182, 0.45);
  color: #ede9fe;
}

body.ft-field-contrast .ft-draw-tray-btn {
  min-height: 2.85rem;
  border-width: 2px;
  font-weight: 800;
}

.ft-corridor-hdc {
  margin: 0.45rem 0 0.35rem;
  padding: 0.45rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: rgba(69, 26, 3, 0.35);
}

.ft-corridor-hdc-label {
  font-size: 0.72rem;
  font-weight: 650;
  color: #fde68a;
  line-height: 1.35;
  margin-bottom: 0.4rem;
}

.ft-corridor-hdc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ft-corridor-chip.is-hold {
  color: #1c1917;
  background: #fbbf24;
  border-color: #f59e0b;
}

.ft-energy-chip {
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #bbf7d0;
}

.ft-energy-chip.is-caution {
  border-color: rgba(250, 204, 21, 0.55);
  color: #fde68a;
}

.ft-energy-chip.is-hold {
  color: #1c1917;
  background: #fbbf24;
  border-color: #f59e0b;
}

.ft-energy-chip.is-unknown {
  border-color: rgba(148, 163, 184, 0.4);
  color: #cbd5e1;
}

.ft-draw-tray-act {
  border-color: rgba(253, 224, 71, 0.45);
  color: #fde68a;
}

.ft-draw-tray-btn[data-mission-act='finish'] {
  border-color: rgba(74, 222, 128, 0.55);
  color: #bbf7d0;
}

.ft-draw-tray-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
