.balloon-trajectory-dialog {
  position: fixed;
  top: 72px;
  left: 50%;
  z-index: 1450;
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 96px);
  transform: translateX(-50%);
}

.balloon-trajectory-dialog.is-profile-view {
  width: min(1120px, calc(100vw - 32px));
}

.balloon-trajectory-dialog.has-hot-air-profile {
  width: min(1240px, calc(100vw - 32px));
}

.balloon-trajectory-dialog.is-hidden,
.balloon-trajectory-result.is-hidden,
.balloon-trajectory-pick-hint.is-hidden,
.balloon-trajectory-field.is-hidden,
.balloon-trajectory-result-warning.is-hidden,
.balloon-trajectory-form.is-hidden,
.balloon-trajectory-profile-view.is-hidden,
.balloon-trajectory-playback.is-hidden {
  display: none;
}

.hot-air-balloon-setup.is-hidden,
.hot-air-balloon-result.is-hidden,
.hot-air-balloon-assessment.is-hidden,
.hot-air-balloon-console.is-hidden,
.hot-air-balloon-profile.is-hidden,
.hot-air-balloon-calibration-result.is-hidden,
.hot-air-balloon-calibration-approval.is-hidden,
.balloon-trajectory-point-selection.is-hidden,
.balloon-trajectory-point-row.is-hidden,
.balloon-trajectory-destination-hint.is-hidden,
.balloon-trajectory-grid.is-hidden,
.balloon-trajectory-disclaimer.is-hidden,
.balloon-trajectory-button.is-hidden {
  display: none;
}

.balloon-trajectory-planner-status.is-hidden {
  display: none;
}

.balloon-trajectory-telemetry {
  margin: 12px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  padding: 12px 0;
}

.balloon-trajectory-telemetry summary {
  cursor: pointer;
  font-weight: 600;
}

.balloon-trajectory-telemetry-hint,
.balloon-trajectory-telemetry-mode {
  margin: 8px 0;
  color: #475569;
}

.balloon-trajectory-telemetry-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.balloon-trajectory-telemetry-mode span {
  color: #92400e;
}

.balloon-trajectory-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 12px;
}

.balloon-trajectory-telemetry-grid label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
}

.balloon-trajectory-telemetry-grid input,
.balloon-trajectory-telemetry-grid select {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  padding: 6px 8px;
}

.balloon-trajectory-telemetry-grid input:focus,
.balloon-trajectory-telemetry-grid select:focus {
  outline: 2px solid #38bdf8;
  outline-offset: 1px;
}

.balloon-trajectory-telemetry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.balloon-trajectory-telemetry-packets {
  display: grid;
  gap: 4px;
  max-height: 144px;
  overflow: auto;
  margin: 8px 0;
  padding-left: 24px;
  color: #334155;
  font-variant-numeric: tabular-nums;
}

.balloon-trajectory-telemetry-packets li {
  padding: 4px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.balloon-trajectory-profile-control.is-hidden,
.balloon-trajectory-control-restore.is-hidden,
.balloon-trajectory-control-band.is-hidden,
.balloon-trajectory-control-resources.is-hidden,
.balloon-trajectory-comparison-legend.is-hidden {
  display: none;
}

.balloon-trajectory-loading.is-hidden {
  display: none;
}

.balloon-trajectory-panel {
  position: relative;
  width: 100%;
  max-height: calc(100vh - 96px);
  overflow: auto;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 22px 56px rgba(15, 23, 42, 0.24);
}

.balloon-trajectory-panel.is-profile-view {
  width: 100%;
}

.balloon-trajectory-loading {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  min-height: 420px;
  box-sizing: border-box;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  border-radius: inherit;
  background:
    radial-gradient(circle at center, rgba(14, 116, 144, 0.2), transparent 55%),
    rgba(7, 17, 29, 0.97);
  color: #dbeafe;
  text-align: center;
}

.balloon-trajectory-loading-progress {
  --balloon-trajectory-progress-angle: 0deg;

  position: relative;
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    #38bdf8 0deg var(--balloon-trajectory-progress-angle),
    rgba(71, 85, 105, 0.48) var(--balloon-trajectory-progress-angle) 360deg
  );
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.16);
}

.balloon-trajectory-loading-progress::before {
  position: absolute;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 50%;
  background: #07111d;
  content: "";
}

.balloon-trajectory-loading-percent {
  position: relative;
  color: #e0f2fe;
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.balloon-trajectory-loading-action {
  max-width: 360px;
  color: #bae6fd;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.balloon-trajectory-header,
.balloon-trajectory-result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.balloon-trajectory-header {
  padding: 20px 22px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.balloon-trajectory-header h2,
.balloon-trajectory-result-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.3;
}

.balloon-trajectory-eyebrow {
  margin: 0 0 4px;
  color: #0369a1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.balloon-trajectory-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #475569;
  font: 24px/1 sans-serif;
  cursor: pointer;
}

.balloon-trajectory-close:hover {
  border-color: #94a3b8;
  color: #0f172a;
}

.balloon-trajectory-form {
  padding: 18px 22px 22px;
}

.balloon-trajectory-mode-selector {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.balloon-trajectory-mode-selector legend {
  margin-bottom: 8px;
  color: #334155;
  font-size: 12px;
  font-weight: 650;
}

.balloon-trajectory-mode-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f1f5f9;
}

.balloon-trajectory-mode-tab {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #475569;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.balloon-trajectory-mode-tab:hover:not(:disabled) {
  border-color: #cbd5e1;
  background: rgba(255, 255, 255, 0.72);
  color: #0f172a;
}

.balloon-trajectory-mode-tab:focus-visible {
  outline: 2px solid rgba(2, 132, 199, 0.32);
  outline-offset: 2px;
}

.balloon-trajectory-mode-tab.is-active {
  border-color: #0369a1;
  background: #0369a1;
  color: #fff;
}

.balloon-trajectory-mode-tab:disabled {
  cursor: wait;
  opacity: 0.6;
}

.balloon-trajectory-mode-panel {
  margin-top: 8px;
  padding: 10px 12px;
  border-left: 4px solid #0284c7;
  background: #f0f9ff;
  color: #334155;
  font-size: 11px;
  line-height: 1.45;
}

.balloon-trajectory-mode-panel p {
  margin: 0;
}

.balloon-trajectory-mode-typical {
  margin-top: 4px !important;
  color: #075985;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.balloon-trajectory-point-selection {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.balloon-trajectory-point-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-left: 4px solid #0284c7;
  background: #f0f9ff;
}

.balloon-trajectory-point-row > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  color: #475569;
  font-size: 12px;
}

.balloon-trajectory-point-row strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.balloon-trajectory-destination-hint {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.balloon-trajectory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.balloon-trajectory-field {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 650;
}

.balloon-trajectory-field input,
.balloon-trajectory-field select {
  width: 100%;
  min-height: 40px;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-weight: 500;
  padding: 8px 10px;
}

.balloon-trajectory-field input:focus,
.balloon-trajectory-field select:focus {
  outline: 2px solid rgba(2, 132, 199, 0.22);
  border-color: #0284c7;
}

.balloon-trajectory-field input.is-calculated {
  border-style: dashed;
  background: #f8fafc;
  color: #075985;
  cursor: default;
  font-variant-numeric: tabular-nums;
}

.balloon-trajectory-field input.is-calculated::placeholder {
  color: #64748b;
  opacity: 1;
}

.balloon-trajectory-calculated-parameters-hint {
  margin: 12px 0 0;
  color: #075985;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.balloon-trajectory-calculated-parameters-hint.is-hidden {
  display: none;
}

.hot-air-balloon-setup {
  display: grid;
  gap: 12px;
}

.hot-air-balloon-section-header,
.hot-air-balloon-loading-title {
  margin: 0;
}

.hot-air-balloon-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.hot-air-balloon-section-header h3,
.hot-air-balloon-loading-title,
.hot-air-balloon-result h3 {
  color: #0f172a;
  font-size: 14px;
}

.hot-air-balloon-section-header h3,
.hot-air-balloon-section-header p,
.hot-air-balloon-result h3 {
  margin: 0;
}

.hot-air-balloon-section-header p {
  color: #64748b;
  font-size: 11px;
}

.hot-air-balloon-section-header p.is-error {
  color: #b91c1c;
}

.hot-air-balloon-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hot-air-balloon-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.hot-air-balloon-card:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.hot-air-balloon-card:focus-within {
  outline: 2px solid rgba(2, 132, 199, 0.28);
  outline-offset: 2px;
}

.hot-air-balloon-card.is-selected {
  border-color: #0284c7;
  box-shadow: inset 0 0 0 1px #0284c7;
}

.hot-air-balloon-card.is-flight-unavailable:not(.is-selected) {
  background: #f8fafc;
}

.hot-air-balloon-card > input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.hot-air-balloon-card-visual {
  position: relative;
  display: block;
  width: 62px;
  height: 72px;
  margin: auto;
}

.hot-air-balloon-card-visual::before {
  position: absolute;
  top: 0;
  left: 7px;
  width: 48px;
  height: 54px;
  border: 2px solid #0369a1;
  border-radius: 50% 50% 44% 44%;
  background: repeating-linear-gradient(90deg, #bae6fd 0 8px, #e0f2fe 8px 16px);
  content: "";
}

.hot-air-balloon-card-visual::after {
  position: absolute;
  bottom: 0;
  left: 23px;
  width: 16px;
  height: 12px;
  border: 2px solid #92400e;
  border-top-width: 1px;
  background: #fef3c7;
  box-shadow: 0 -7px 0 -5px #475569;
  content: "";
}

.hot-air-balloon-card-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.hot-air-balloon-card-title {
  color: #0f172a;
  font-size: 13px;
}

.hot-air-balloon-card-facts {
  display: grid;
  gap: 3px;
  margin: 0;
  color: #475569;
  font-size: 10px;
}

.hot-air-balloon-card-fact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.hot-air-balloon-card-fact dd {
  margin: 0;
  color: #0f172a;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hot-air-balloon-official-link {
  width: fit-content;
  color: #0369a1;
  font-size: 10px;
  font-weight: 700;
}

.hot-air-balloon-empty-mass-hint,
.hot-air-balloon-disclaimer,
.hot-air-balloon-scenario-hint {
  margin: 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
}

.hot-air-balloon-disclaimer {
  color: #92400e;
}

.hot-air-balloon-scenario-grid,
.hot-air-balloon-loading-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.hot-air-balloon-duty-field {
  grid-column: 1 / -1;
}

.hot-air-balloon-range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  align-items: center;
  gap: 12px;
}

.hot-air-balloon-range-row output {
  color: #0f172a;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.hot-air-balloon-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.hot-air-balloon-result {
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #0284c7;
  background: #f8fafc;
}

.hot-air-balloon-outcome {
  margin: 8px 0 12px;
  font-size: 12px;
  font-weight: 700;
}

.hot-air-balloon-outcome.is-passed {
  color: #047857;
}

.hot-air-balloon-outcome.is-warning,
.hot-air-balloon-flight-metadata.is-warning {
  color: #a16207;
}

.hot-air-balloon-outcome.is-blocked {
  color: #b91c1c;
}

.hot-air-balloon-flight-metadata {
  margin: 8px 0 0;
  color: #475569;
  font-size: 11px;
}

.hot-air-balloon-flight-metadata.is-passed {
  color: #047857;
}

.hot-air-balloon-flight-metadata.is-blocked {
  color: #b91c1c;
}

.hot-air-balloon-flight-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.hot-air-balloon-result-values {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 16px;
  margin: 0;
  font-size: 11px;
}

.hot-air-balloon-result-values dt {
  color: #64748b;
}

.hot-air-balloon-result-values dd {
  margin: 0;
  color: #0f172a;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.hot-air-balloon-calibration {
  display: grid;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
}

.hot-air-balloon-calibration-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.hot-air-balloon-calibration-header h3,
.hot-air-balloon-calibration-header p,
.hot-air-balloon-calibration-forecast,
.hot-air-balloon-calibration-hint,
.hot-air-balloon-calibration-message,
.hot-air-balloon-calibration-not-applied {
  margin: 0;
}

.hot-air-balloon-calibration-header h3 {
  color: #0f172a;
  font-size: 13px;
}

.hot-air-balloon-calibration-header p,
.hot-air-balloon-calibration-forecast,
.hot-air-balloon-calibration-hint,
.hot-air-balloon-calibration-file small,
.hot-air-balloon-calibration-message,
.hot-air-balloon-calibration-not-applied {
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
}

.hot-air-balloon-calibration-forecast {
  padding: 8px 10px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  font-variant-numeric: tabular-nums;
}

.hot-air-balloon-calibration-forecast.is-ready {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.hot-air-balloon-calibration-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 3px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.hot-air-balloon-calibration-status.is-ready,
.hot-air-balloon-calibration-result-status.is-ready {
  border-color: #86efac;
  background: #f0fdf4;
  color: #166534;
}

.hot-air-balloon-calibration-result-status.is-insufficient {
  border-color: #fcd34d;
  background: #fffbeb;
  color: #92400e;
}

.hot-air-balloon-calibration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.hot-air-balloon-calibration-grid label,
.hot-air-balloon-calibration-telemetry-label,
.hot-air-balloon-calibration-file {
  display: grid;
  gap: 5px;
  color: #475569;
  font-size: 11px;
  font-weight: 650;
}

.hot-air-balloon-calibration-grid input,
.hot-air-balloon-calibration-telemetry-label textarea,
.hot-air-balloon-calibration-file input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  padding: 7px 8px;
  font: inherit;
}

.hot-air-balloon-calibration-telemetry-label textarea {
  min-height: 150px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 1.45;
}

.hot-air-balloon-calibration-grid input:focus,
.hot-air-balloon-calibration-telemetry-label textarea:focus,
.hot-air-balloon-calibration-file input:focus {
  outline: 2px solid #38bdf8;
  outline-offset: 1px;
}

.hot-air-balloon-calibration-file small {
  font-weight: 400;
}

.hot-air-balloon-calibration-actions {
  display: flex;
  justify-content: flex-end;
}

.hot-air-balloon-calibration-message.is-error {
  color: #b91c1c;
}

.hot-air-balloon-calibration-result {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #0284c7;
  background: #f8fafc;
}

.hot-air-balloon-calibration-result h4 {
  margin: 0;
  color: #0f172a;
  font-size: 12px;
}

.hot-air-balloon-calibration-result-status {
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.hot-air-balloon-calibration-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 12px;
  margin: 0;
  font-size: 10px;
}

.hot-air-balloon-calibration-counts dt {
  color: #64748b;
}

.hot-air-balloon-calibration-counts dd {
  margin: 0;
  color: #0f172a;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hot-air-balloon-calibration-table-wrap {
  overflow-x: auto;
  border: 1px solid #cbd5e1;
}

.hot-air-balloon-calibration-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  color: #0f172a;
  font-size: 10px;
}

.hot-air-balloon-calibration-table th,
.hot-air-balloon-calibration-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}

.hot-air-balloon-calibration-table thead th {
  background: #f1f5f9;
  color: #64748b;
  font-size: 9px;
  text-transform: uppercase;
}

.hot-air-balloon-calibration-table tbody tr:last-child > * {
  border-bottom: 0;
}

.hot-air-balloon-calibration-table .is-numeric {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.hot-air-balloon-calibration-warnings {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  color: #92400e;
  font-size: 10px;
}

.hot-air-balloon-calibration-not-applied {
  color: #92400e;
  font-weight: 650;
}

.hot-air-balloon-calibration-review {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px dashed #cbd5e1;
}

.hot-air-balloon-calibration-review textarea {
  min-height: 86px;
  resize: vertical;
  box-sizing: border-box;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  padding: 7px 8px;
  font: 10px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.45;
}

.hot-air-balloon-calibration-review textarea:focus {
  outline: 2px solid #38bdf8;
  outline-offset: 1px;
}

.hot-air-balloon-calibration-review-result {
  border-left-color: #7c3aed;
}

.hot-air-balloon-calibration-approval {
  display: grid;
  gap: 10px;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #c4b5fd;
  background: #f5f3ff;
}

.hot-air-balloon-calibration-approval h4,
.hot-air-balloon-calibration-approval p {
  margin: 0;
}

.hot-air-balloon-calibration-approval h4 {
  color: #4c1d95;
  font-size: 12px;
}

.hot-air-balloon-calibration-approval p {
  color: #6d28d9;
  font-size: 10px;
  line-height: 1.45;
}

.hot-air-balloon-calibration-approval-confirm {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #4c1d95;
  font-size: 10px;
  line-height: 1.35;
}

.hot-air-balloon-calibration-approval-confirm input {
  margin-top: 1px;
}

.hot-air-balloon-checks {
  display: grid;
  gap: 4px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
}

.hot-air-balloon-checks li::before {
  display: inline-block;
  width: 18px;
  color: #047857;
  content: "✓";
}

.hot-air-balloon-checks li.is-blocked {
  color: #b91c1c;
}

.hot-air-balloon-checks li.is-blocked::before {
  color: #b91c1c;
  content: "×";
}

.hot-air-balloon-checks li.is-warning {
  color: #92400e;
}

.hot-air-balloon-checks li.is-warning::before {
  color: #d97706;
  content: "!";
}

.hot-air-balloon-assessment {
  --hot-air-assessment-line: #cbd5e1;
  --hot-air-assessment-muted: #64748b;
  --hot-air-assessment-text: #0f172a;
  --hot-air-assessment-pass: #047857;
  --hot-air-assessment-pass-soft: #ecfdf5;
  --hot-air-assessment-warning: #92400e;
  --hot-air-assessment-warning-soft: #fffbeb;
  --hot-air-assessment-danger: #b91c1c;
  --hot-air-assessment-danger-soft: #fef2f2;
  --hot-air-assessment-unknown: #475569;
  --hot-air-assessment-unknown-soft: #f1f5f9;
  display: grid;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--hot-air-assessment-line);
  border-bottom: 1px solid var(--hot-air-assessment-line);
}

.hot-air-balloon-assessment-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.hot-air-balloon-assessment-header h3,
.hot-air-balloon-assessment-header p,
.hot-air-balloon-assessment-counts,
.hot-air-balloon-assessment-disclaimer {
  margin: 0;
}

.hot-air-balloon-assessment-header h3 {
  color: var(--hot-air-assessment-text);
  font-size: 13px;
}

.hot-air-balloon-assessment-header p,
.hot-air-balloon-assessment-counts,
.hot-air-balloon-assessment-disclaimer {
  color: var(--hot-air-assessment-muted);
  font-size: 11px;
  line-height: 1.4;
}

.hot-air-balloon-assessment-disclaimer {
  color: var(--hot-air-assessment-warning);
}

.hot-air-balloon-assessment-outcome,
.hot-air-balloon-assessment-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--hot-air-assessment-line);
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.hot-air-balloon-assessment-outcome {
  padding: 4px 8px;
  font-size: 11px;
}

.hot-air-balloon-assessment-status {
  padding: 2px 6px;
  font-size: 10px;
}

.hot-air-balloon-assessment-outcome::before,
.hot-air-balloon-assessment-status::before {
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.hot-air-balloon-assessment-outcome.is-pass,
.hot-air-balloon-assessment-status.is-pass {
  background: var(--hot-air-assessment-pass-soft);
  color: var(--hot-air-assessment-pass);
}

.hot-air-balloon-assessment-outcome.is-warning,
.hot-air-balloon-assessment-status.is-warning {
  background: var(--hot-air-assessment-warning-soft);
  color: var(--hot-air-assessment-warning);
}

.hot-air-balloon-assessment-outcome.is-blocked,
.hot-air-balloon-assessment-status.is-blocked {
  background: var(--hot-air-assessment-danger-soft);
  color: var(--hot-air-assessment-danger);
}

.hot-air-balloon-assessment-outcome.is-incomplete,
.hot-air-balloon-assessment-status.is-unknown {
  background: var(--hot-air-assessment-unknown-soft);
  color: var(--hot-air-assessment-unknown);
}

.hot-air-balloon-assessment-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--hot-air-assessment-line);
}

.hot-air-balloon-assessment-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  color: var(--hot-air-assessment-text);
  font-size: 10px;
}

.hot-air-balloon-assessment-table th,
.hot-air-balloon-assessment-table td {
  padding: 8px;
  border-bottom: 1px solid var(--hot-air-assessment-line);
  text-align: left;
  vertical-align: top;
}

.hot-air-balloon-assessment-table thead th {
  background: #f8fafc;
  color: var(--hot-air-assessment-muted);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hot-air-balloon-assessment-table tbody tr:last-child > * {
  border-bottom: 0;
}

.hot-air-balloon-assessment-table tbody tr:hover {
  background: #f8fafc;
}

.hot-air-balloon-assessment-table tbody th {
  width: 25%;
}

.hot-air-balloon-assessment-table tbody th strong,
.hot-air-balloon-assessment-table tbody th small,
.hot-air-balloon-assessment-provenance span,
.hot-air-balloon-assessment-provenance small {
  display: block;
}

.hot-air-balloon-assessment-table tbody th small,
.hot-air-balloon-assessment-provenance small {
  margin-top: 2px;
  color: var(--hot-air-assessment-muted);
  font-weight: 400;
  line-height: 1.35;
}

.hot-air-balloon-assessment-table .is-numeric {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hot-air-balloon-assessment-provenance {
  display: grid;
  gap: 4px;
  max-width: 300px;
}

.hot-air-balloon-assessment-provenance a {
  color: #0369a1;
}

.hot-air-balloon-console {
  display: grid;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
}

.hot-air-balloon-console-window {
  position: fixed;
  top: 88px;
  right: 24px;
  z-index: 1550;
  box-sizing: border-box;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  padding: 14px;
  border: 1px solid #94a3b8;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.98);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.26);
}

.hot-air-balloon-console-window .hot-air-balloon-console-header {
  cursor: move;
  user-select: none;
}

.hot-air-balloon-console-window .hot-air-balloon-console-header button,
.hot-air-balloon-console-window input,
.hot-air-balloon-console-window select,
.hot-air-balloon-console-window label {
  user-select: auto;
}

.hot-air-balloon-console-window.is-panel-dragging {
  cursor: grabbing;
}

.hot-air-balloon-console-window.is-panel-dragging .hot-air-balloon-console-header {
  cursor: grabbing;
}

.hot-air-balloon-console.is-pending {
  opacity: 0.72;
}

.hot-air-balloon-console-header,
.hot-air-balloon-console-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hot-air-balloon-console-header h3,
.hot-air-balloon-console-header p,
.hot-air-balloon-fuel-panel h4,
.hot-air-balloon-fuel-panel p,
.hot-air-balloon-console-footer p {
  margin: 0;
}

.hot-air-balloon-console-header h3,
.hot-air-balloon-fuel-panel h4 {
  color: #0f172a;
  font-size: 13px;
}

.hot-air-balloon-console-header p,
.hot-air-balloon-fuel-panel p,
.hot-air-balloon-console-footer p {
  color: #64748b;
  font-size: 11px;
  line-height: 1.4;
}

.hot-air-balloon-console-header .balloon-trajectory-close {
  margin-left: auto;
}

.hot-air-balloon-console-footer p.is-error {
  color: #b91c1c;
}

.hot-air-balloon-profile {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #cbd5e1;
}

.hot-air-balloon-profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.hot-air-balloon-profile-header h4,
.hot-air-balloon-profile-header p,
.hot-air-balloon-profile-warning {
  margin: 0;
}

.hot-air-balloon-profile-header h4 {
  color: #0f172a;
  font-size: 13px;
}

.hot-air-balloon-profile-header p,
.hot-air-balloon-profile-warning {
  color: #64748b;
  font-size: 11px;
  line-height: 1.4;
}

#hot-air-balloon-profile-status.is-warning {
  color: #92400e;
}

#hot-air-balloon-profile-status.is-error {
  color: #b91c1c;
}

.hot-air-balloon-profile-chart,
.hot-air-balloon-systems-chart {
  overflow-x: auto;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

.hot-air-balloon-profile-chart svg,
.hot-air-balloon-systems-chart svg {
  display: block;
  min-width: 1080px;
  width: 100%;
  height: auto;
}

.hot-air-balloon-profile-readout {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.hot-air-balloon-profile-readout-item {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 10px;
}

.hot-air-balloon-profile-readout-item strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-air-balloon-profile-cursor {
  pointer-events: none;
  stroke: #f59e0b;
  stroke-width: 2;
  stroke-dasharray: 6 4;
  vector-effect: non-scaling-stroke;
}

.hot-air-balloon-systems-background {
  fill: #f8fafc;
}

.hot-air-balloon-systems-grid {
  stroke: #cbd5e1;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.hot-air-balloon-systems-title,
.hot-air-balloon-systems-axis-label {
  fill: #334155;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.hot-air-balloon-systems-line {
  fill: none;
  stroke-width: 2.4;
  vector-effect: non-scaling-stroke;
}

.hot-air-balloon-systems-line.is-outside { stroke: #2563eb; }
.hot-air-balloon-systems-line.is-neutral { stroke: #0891b2; }
.hot-air-balloon-systems-line.is-inside { stroke: #f97316; }
.hot-air-balloon-systems-line.is-envelope { stroke: #dc2626; }
.hot-air-balloon-systems-line.is-limit { stroke: #991b1b; stroke-dasharray: 7 4; }
.hot-air-balloon-systems-line.is-fuel { stroke: #15803d; }
.hot-air-balloon-systems-line.is-command { stroke: #7e22ce; }
.hot-air-balloon-systems-vent { fill: rgba(14, 116, 144, 0.3); }

.hot-air-balloon-systems-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: #475569;
  font-size: 10px;
  font-weight: 700;
}

.hot-air-balloon-systems-legend span::before {
  display: inline-block;
  width: 18px;
  height: 3px;
  margin-right: 5px;
  border-radius: 2px;
  vertical-align: middle;
  background: currentcolor;
  content: "";
}

.hot-air-balloon-systems-legend .is-outside { color: #2563eb; }
.hot-air-balloon-systems-legend .is-neutral { color: #0891b2; }
.hot-air-balloon-systems-legend .is-inside { color: #f97316; }
.hot-air-balloon-systems-legend .is-envelope { color: #dc2626; }
.hot-air-balloon-systems-legend .is-limit { color: #991b1b; }
.hot-air-balloon-systems-legend .is-fuel { color: #15803d; }
.hot-air-balloon-systems-legend .is-command { color: #7e22ce; }

.hot-air-balloon-console-time {
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hot-air-balloon-telemetry {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.hot-air-balloon-telemetry > div {
  min-width: 0;
  padding: 8px;
  border-left: 3px solid #0f766e;
  background: #f8fafc;
}

.hot-air-balloon-telemetry dt {
  overflow: hidden;
  color: #64748b;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.hot-air-balloon-telemetry dd {
  margin: 4px 0 0;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.hot-air-balloon-console-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr);
  gap: 16px;
}

.hot-air-balloon-control-panel,
.hot-air-balloon-fuel-panel,
.hot-air-balloon-playback {
  display: grid;
  gap: 8px;
}

.hot-air-balloon-control-duty,
.hot-air-balloon-control-selects label,
.hot-air-balloon-playback-rate,
.hot-air-balloon-playback-timeline {
  display: grid;
  gap: 4px;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}

.hot-air-balloon-control-selects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hot-air-balloon-control-selects select,
.hot-air-balloon-playback-rate select {
  min-width: 0;
  min-height: 36px;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  padding: 6px 8px;
  font: inherit;
}

.hot-air-balloon-burner-indicators {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hot-air-balloon-burner-indicators span {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.hot-air-balloon-burner-indicators span.is-active {
  border-color: #c2410c;
  background: #fff7ed;
  color: #9a3412;
}

.hot-air-balloon-control-actions,
.hot-air-balloon-playback-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.balloon-trajectory-button.is-danger {
  border-color: #b91c1c;
  color: #b91c1c;
}

.balloon-trajectory-button.is-danger:hover:not(:disabled),
.balloon-trajectory-button.is-danger:focus-visible,
.balloon-trajectory-button.is-danger.is-active {
  border-color: #991b1b;
  background: #fef2f2;
  color: #991b1b;
}

.hot-air-balloon-fuel-cylinders {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hot-air-balloon-fuel-cylinders li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid #e2e8f0;
  color: #475569;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.hot-air-balloon-fuel-cylinders li strong {
  color: #0f172a;
}

.hot-air-balloon-fuel-cylinders li.is-empty strong,
.hot-air-balloon-fuel-cylinders li.is-empty span:last-child {
  color: #b91c1c;
}

.hot-air-balloon-playback {
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.hot-air-balloon-playback-rate {
  grid-template-columns: auto 72px;
  align-items: center;
  margin-left: auto;
}

.hot-air-balloon-playback-timeline {
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
}

.hot-air-balloon-playback-timeline > span {
  grid-column: 1 / -1;
}

.hot-air-balloon-playback-timeline output {
  color: #0f172a;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.balloon-trajectory-status {
  min-height: 18px;
  margin: 14px 0 0;
  color: #475569;
  font-size: 12px;
}

.balloon-trajectory-status.is-error {
  color: #b91c1c;
}

.balloon-trajectory-disclaimer,
.balloon-trajectory-result-warning {
  margin: 10px 0 0;
  color: #92400e;
  font-size: 11px;
  line-height: 1.45;
}

.balloon-trajectory-actions,
.balloon-trajectory-result-actions,
.balloon-trajectory-profile-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.balloon-trajectory-profile-view {
  padding: 16px 22px 22px;
}

.balloon-trajectory-profile-description {
  margin: 0 0 12px;
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
}

.balloon-trajectory-playback {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

.balloon-trajectory-playback-status {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.balloon-trajectory-playback-status > div {
  min-width: 0;
  padding: 8px;
  border-left: 3px solid #0f766e;
  background: #fff;
}

.balloon-trajectory-playback-status dt {
  overflow: hidden;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.balloon-trajectory-playback-status dd {
  overflow: hidden;
  margin: 4px 0 0;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.balloon-trajectory-playback-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.balloon-trajectory-playback-button {
  min-width: 40px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.balloon-trajectory-playback-button:hover,
.balloon-trajectory-playback-button:focus-visible {
  border-color: #0f766e;
  background: #ecfdf5;
}

.balloon-trajectory-playback-button.is-primary {
  display: inline-flex;
  min-width: 104px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-color: #0f766e;
  background: #0f766e;
  color: #fff;
}

.balloon-trajectory-playback-button.is-primary:hover,
.balloon-trajectory-playback-button.is-primary:focus-visible {
  border-color: #115e59;
  background: #115e59;
}

.balloon-trajectory-playback-rate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.balloon-trajectory-playback-rate select {
  min-height: 40px;
  padding: 6px 28px 6px 10px;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-weight: 800;
}

.balloon-trajectory-playback-timeline {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) 44px;
  align-items: center;
  gap: 10px;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.balloon-trajectory-playback-timeline input {
  width: 100%;
  accent-color: #0f766e;
  cursor: pointer;
}

.balloon-trajectory-playback-timeline output {
  color: #0f172a;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.balloon-trajectory-playback-follow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 12px;
  font-weight: 650;
}

.balloon-trajectory-playback-follow input {
  width: 16px;
  height: 16px;
  accent-color: #0f766e;
}

.balloon-trajectory-playback-weather-status {
  margin: -2px 0 0 24px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

.balloon-trajectory-playback-weather-status[data-status="available"] {
  color: #047857;
}

.balloon-trajectory-playback-weather-status[data-status="partial"],
.balloon-trajectory-playback-weather-status[data-status="unavailable"] {
  color: #b45309;
}

.balloon-trajectory-profile-chart {
  min-height: 320px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

.balloon-trajectory-profile-chart svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 320px;
  outline: none;
}

.balloon-trajectory-profile-chart svg:focus-visible {
  outline: 3px solid rgba(2, 132, 199, 0.34);
  outline-offset: -3px;
}

.balloon-trajectory-profile-grid-line {
  stroke: rgba(226, 232, 240, 0.38);
  stroke-width: 1;
}

.balloon-trajectory-profile-axis-label {
  fill: #334155;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.balloon-trajectory-profile-axis-label.is-time {
  fill: #0f172a;
}

.balloon-trajectory-profile-axis-label.is-distance {
  fill: #64748b;
  font-size: 11px;
  font-weight: 600;
}

.balloon-trajectory-profile-line {
  fill: none;
  opacity: 0.34;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.balloon-trajectory-profile-line.is-flown {
  opacity: 1;
}

.balloon-trajectory-profile-line.is-observed {
  stroke: #16a34a;
  stroke-width: 6;
}

.balloon-trajectory-profile-line.is-forecast {
  stroke-dasharray: 10 7;
}

.balloon-trajectory-profile-baseline {
  fill: none;
  stroke: #334155;
  stroke-dasharray: 10 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
  opacity: 0.9;
}

.balloon-trajectory-profile-branch {
  stroke: #facc15;
  stroke-dasharray: 4 5;
  stroke-width: 2;
}

.balloon-trajectory-profile-event {
  stroke: #fff;
  stroke-width: 2;
}

.balloon-trajectory-profile-crosshair line {
  stroke: rgba(15, 23, 42, 0.56);
  stroke-dasharray: 4 4;
  stroke-width: 1;
}

.balloon-trajectory-profile-crosshair circle {
  fill: #fff;
  stroke: #0f172a;
  stroke-width: 3;
}

.balloon-trajectory-profile-point {
  min-height: 38px;
  margin-top: 8px;
  padding: 8px 10px;
  border-left: 4px solid #0284c7;
  background: #f0f9ff;
  color: #0f172a;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}

.balloon-trajectory-profile-control {
  display: grid;
  gap: 12px;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 0.75rem;
  background: rgba(8, 47, 73, 0.72);
}

.balloon-trajectory-profile-control p {
  margin: 0;
  color: #dbeafe;
}

.balloon-trajectory-control-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 16px;
}

.balloon-trajectory-control-model {
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) minmax(260px, 1fr);
  align-items: center;
  gap: 4px 12px;
  color: #bae6fd;
  font-size: 11px;
  font-weight: 700;
}

.balloon-trajectory-control-model select {
  min-height: 38px;
  border: 1px solid #64748b;
  border-radius: 6px;
  background: #f8fafc;
  color: #0f172a;
  padding: 7px 9px;
  font: inherit;
}

.balloon-trajectory-control-model small {
  grid-column: 2;
  color: #94a3b8;
  font-weight: 500;
  line-height: 1.35;
}

.balloon-trajectory-control-editor {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 2fr) auto;
  align-items: end;
  gap: 8px;
}

.balloon-trajectory-control-editor label,
.balloon-trajectory-control-band label {
  display: grid;
  gap: 4px;
  color: #bae6fd;
  font-size: 11px;
  font-weight: 700;
}

.balloon-trajectory-control-editor select,
.balloon-trajectory-control-band input {
  min-height: 38px;
  box-sizing: border-box;
  border: 1px solid #64748b;
  border-radius: 6px;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
}

.balloon-trajectory-control-editor select {
  width: 100%;
  padding: 7px 9px;
}

.balloon-trajectory-control-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(86px, 1fr));
  gap: 8px;
}

.balloon-trajectory-control-band input {
  width: 100%;
  padding: 7px 8px;
}

.balloon-trajectory-control-commands {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.balloon-trajectory-control-command,
.balloon-trajectory-control-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 6px;
  color: #e0f2fe;
  font-size: 12px;
}

.balloon-trajectory-control-resources {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(320px, 1fr);
  gap: 8px 18px;
  padding: 10px 12px;
  border: 1px solid rgba(251, 191, 36, 0.38);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.45);
  color: #e2e8f0;
}

.balloon-trajectory-control-resources > strong,
.balloon-trajectory-control-resources > small {
  grid-column: 1 / -1;
}

.balloon-trajectory-control-resources > small {
  color: #fcd34d;
}

.balloon-trajectory-control-resource-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 10px;
  margin: 0;
  font-size: 11px;
}

.balloon-trajectory-control-resource-summary dt {
  color: #94a3b8;
}

.balloon-trajectory-control-resource-summary dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.balloon-trajectory-control-resources svg {
  width: 100%;
  min-height: 82px;
  border-radius: 5px;
  background: rgba(2, 6, 23, 0.4);
}

.balloon-trajectory-control-resources svg path {
  fill: none;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.balloon-trajectory-control-resources svg .is-battery {
  stroke: #facc15;
}

.balloon-trajectory-control-resources svg .is-ballast {
  stroke: #38bdf8;
}

.balloon-trajectory-control-resource-legend {
  grid-column: 2;
  display: flex;
  gap: 18px;
  margin-top: -6px;
  font-size: 11px;
  font-weight: 700;
}

.balloon-trajectory-control-resource-legend span::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 3px;
  margin-right: 6px;
  vertical-align: middle;
  background: currentColor;
}

.balloon-trajectory-planner {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: 8px;
  background: rgba(6, 78, 59, 0.28);
}

.balloon-trajectory-planner h3 {
  margin: 0;
  color: #d1fae5;
  font-size: 14px;
}

.balloon-trajectory-planner > p {
  color: #a7f3d0;
  font-size: 11px;
  line-height: 1.4;
}

.balloon-trajectory-planner-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.45fr);
  gap: 8px;
}

.balloon-trajectory-planner-grid label {
  display: grid;
  gap: 4px;
  color: #d1fae5;
  font-size: 11px;
  font-weight: 700;
}

.balloon-trajectory-planner-grid select,
.balloon-trajectory-planner-grid input {
  min-height: 38px;
  box-sizing: border-box;
  width: 100%;
  padding: 7px 9px;
  border: 1px solid #64748b;
  border-radius: 6px;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
}

.balloon-trajectory-planner-target {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #e2e8f0;
  font-size: 12px;
}

.balloon-trajectory-planner-status {
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.5);
  color: #e2e8f0;
  font-size: 12px;
}

.balloon-trajectory-planner-status.is-success { color: #86efac; }
.balloon-trajectory-planner-status.is-error { color: #fda4af; }

.balloon-trajectory-planner-robustness {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(167, 243, 208, 0.3);
}

.balloon-trajectory-planner-robustness h4,
.balloon-trajectory-planner-robustness p {
  margin: 0;
}

.balloon-trajectory-planner-robustness h4 {
  color: #d1fae5;
  font-size: 13px;
}

.balloon-trajectory-planner-robustness > p:not(.balloon-trajectory-planner-status) {
  color: #a7f3d0;
  font-size: 11px;
  line-height: 1.4;
}

.balloon-trajectory-control-resource-legend .is-battery {
  color: #facc15;
}

.balloon-trajectory-control-resource-legend .is-ballast {
  color: #38bdf8;
}

.balloon-trajectory-control-empty {
  justify-content: flex-start;
  color: #94a3b8;
}

.balloon-trajectory-control-command button {
  border: 0;
  background: transparent;
  color: #fca5a5;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.balloon-trajectory-control-draft {
  min-width: 12rem;
  color: #7dd3fc;
  font-weight: 700;
}

.balloon-trajectory-profile-control-handle {
  cursor: ns-resize;
  touch-action: none;
  fill: #facc15;
  stroke: #713f12;
  stroke-width: 3;
}

.balloon-trajectory-profile-control-handle:focus-visible {
  outline: none;
  stroke: #ffffff;
  stroke-width: 5;
}

.balloon-trajectory-profile-control-guide {
  stroke: #facc15;
  stroke-width: 2;
  stroke-dasharray: 7 5;
  pointer-events: none;
}

.balloon-trajectory-profile-target-altitude {
  fill: none;
  stroke: #f59e0b;
  stroke-width: 2;
  stroke-dasharray: 6 5;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

.balloon-trajectory-profile-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
}

.balloon-trajectory-profile-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.balloon-trajectory-profile-legend-item i {
  width: 28px;
  height: 4px;
  border-radius: 2px;
}

.balloon-trajectory-profile-legend-item.is-comparison i {
  background: repeating-linear-gradient(90deg, #334155 0 8px, transparent 8px 13px);
}

.balloon-trajectory-profile-legend-item.is-comparison.is-controlled i {
  background: #0284c7;
}

.balloon-trajectory-profile-legend-item.is-target-altitude i {
  height: 2px;
  background: repeating-linear-gradient(90deg, #f59e0b 0 7px, transparent 7px 12px);
}

.balloon-trajectory-profile-legend-item.is-actual i {
  height: 0.22rem;
  background: #16a34a;
}

.balloon-trajectory-profile-legend-item.is-forecast i {
  height: 0.18rem;
  background: repeating-linear-gradient(90deg, #f97316 0 8px, transparent 8px 13px);
}

.balloon-trajectory-button {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #1e293b;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.balloon-trajectory-button:hover:not(:disabled) {
  border-color: #94a3b8;
  background: #f8fafc;
}

.balloon-trajectory-button:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}

.balloon-trajectory-button.is-active {
  border-color: #0284c7;
  background: #e0f2fe;
  color: #075985;
}

.balloon-trajectory-button.is-primary {
  border-color: #0369a1;
  background: #0369a1;
  color: #fff;
}

.balloon-trajectory-button.is-primary:hover:not(:disabled),
.balloon-trajectory-button.is-primary:focus-visible {
  border-color: #075985;
  background: #075985;
  color: #fff;
}

.balloon-trajectory-button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.balloon-trajectory-result {
  position: fixed;
  z-index: 920;
  top: 88px;
  right: 22px;
  width: min(340px, calc(100vw - 44px));
  box-sizing: border-box;
  padding: 16px;
  border: 1px solid #cbd5e1;
  border-top: 4px solid #0284c7;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18);
}

.balloon-trajectory-result-header > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.balloon-trajectory-result-icon {
  color: #0284c7;
}

.balloon-trajectory-result-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  margin: 16px 0 0;
  font-size: 12px;
}

.balloon-trajectory-result-summary dt {
  color: #64748b;
}

.balloon-trajectory-result-summary dd {
  margin: 0;
  color: #0f172a;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.balloon-trajectory-ensemble-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.75rem;
  margin: 0.8rem 0;
  padding: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.58);
}

.balloon-trajectory-ensemble-legend.is-hidden {
  display: none;
}

.balloon-trajectory-comparison-legend {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
}

.balloon-trajectory-comparison-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.balloon-trajectory-comparison-item i {
  width: 32px;
  height: 4px;
  border-radius: 999px;
}

.balloon-trajectory-comparison-item .is-baseline {
  background: repeating-linear-gradient(90deg, #475569 0 9px, transparent 9px 14px);
}

.balloon-trajectory-comparison-item .is-controlled { background: #0284c7; }
.balloon-trajectory-comparison-item .is-actual {
  height: 0.22rem;
  background: #16a34a;
}

.balloon-trajectory-comparison-item .is-forecast {
  height: 0.18rem;
  background: repeating-linear-gradient(90deg, #f97316 0 8px, transparent 8px 13px);
}

.balloon-trajectory-legend-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  color: #dbeafe;
  font-size: 0.76rem;
  line-height: 1.25;
}

.balloon-trajectory-legend-item i {
  flex: 0 0 1.55rem;
  height: 0.55rem;
  border-radius: 999px;
}

.balloon-trajectory-legend-item .is-corridor-95 { background: rgba(14, 165, 233, 0.2); }
.balloon-trajectory-legend-item .is-corridor-80 { background: rgba(14, 165, 233, 0.34); }
.balloon-trajectory-legend-item .is-corridor-50 { background: rgba(14, 165, 233, 0.55); }
.balloon-trajectory-legend-item .is-control { height: 0.2rem; background: #f97316; }
.balloon-trajectory-legend-item .is-median {
  height: 0.2rem;
  background: repeating-linear-gradient(90deg, #facc15 0 0.55rem, transparent 0.55rem 0.8rem);
}

.balloon-trajectory-launch-marker {
  width: 22px;
  height: 22px;
  box-sizing: border-box;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.6);
}

.balloon-trajectory-planner-marker {
  width: 28px;
  height: 28px;
  box-sizing: border-box;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #7c3aed;
  box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.3), 0 1px 5px rgba(15, 23, 42, 0.6);
}

.balloon-trajectory-playback-marker {
  position: relative;
  width: 34px;
  height: 48px;
  filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.48));
}

.balloon-trajectory-playback-marker-envelope {
  position: absolute;
  top: 0;
  left: 5px;
  width: 24px;
  height: 30px;
  border: 2px solid #fff;
  border-radius: 50% 50% 46% 46%;
  background: linear-gradient(90deg, #0f766e 0 32%, #f8fafc 32% 43%, #f97316 43% 68%, #f8fafc 68% 79%, #0f766e 79%);
}

.balloon-trajectory-playback-marker-envelope::before {
  position: absolute;
  top: 28px;
  left: 7px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 2px;
  background: #92400e;
  content: "";
}

.balloon-trajectory-playback-marker-envelope::after {
  position: absolute;
  top: 26px;
  left: 6px;
  width: 10px;
  height: 8px;
  border-right: 1px solid #fff;
  border-left: 1px solid #fff;
  content: "";
}

.balloon-trajectory-playback-marker-badge {
  position: absolute;
  top: 8px;
  left: 34px;
  min-width: 44px;
  padding: 3px 6px;
  border: 1px solid rgba(15, 118, 110, 0.46);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .balloon-trajectory-playback-marker {
    filter: none;
  }
}

body.is-balloon-launch-picking #map-root canvas {
  cursor: crosshair;
}

.balloon-trajectory-pick-hint {
  position: fixed;
  z-index: 930;
  top: 18px;
  left: 50%;
  max-width: min(520px, calc(100vw - 180px));
  margin: 0;
  padding: 10px 14px;
  transform: translateX(-50%);
  border: 1px solid #0369a1;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

#toggle-balloon-trajectory.is-active,
#toggle-balloon-flight.is-active {
  color: #0369a1;
}

@media (max-width: 720px) {
  .balloon-trajectory-control-intro,
  .balloon-trajectory-control-editor,
  .balloon-trajectory-control-model,
  .balloon-trajectory-control-resources,
  .balloon-trajectory-planner-grid {
    grid-template-columns: 1fr;
  }

  .balloon-trajectory-telemetry-grid {
    grid-template-columns: 1fr 1fr;
  }

  .balloon-trajectory-planner-target {
    align-items: stretch;
    flex-direction: column;
  }

  .balloon-trajectory-control-model small,
  .balloon-trajectory-control-resources > strong,
  .balloon-trajectory-control-resources > small,
  .balloon-trajectory-control-resource-legend {
    grid-column: 1;
  }

  .balloon-trajectory-control-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .balloon-trajectory-dialog {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 88vh;
    transform: none;
  }

  .balloon-trajectory-dialog.is-profile-view {
    width: 100%;
  }

  .balloon-trajectory-panel {
    width: 100%;
    max-height: 88vh;
    border-width: 1px 0 0;
    border-radius: 10px 10px 0 0;
  }

  .balloon-trajectory-panel.is-profile-view {
    width: 100%;
  }

  .balloon-trajectory-profile-view {
    padding: 12px 12px 18px;
  }

  .balloon-trajectory-profile-chart {
    min-height: 260px;
    overflow-x: auto;
  }

  .balloon-trajectory-profile-chart svg {
    width: 760px;
    min-height: 360px;
  }

  .balloon-trajectory-playback-status {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .balloon-trajectory-playback-controls {
    display: grid;
    grid-template-columns: 40px 40px minmax(104px, 1fr) 40px;
  }

  .balloon-trajectory-playback-rate {
    grid-column: 1 / -1;
    justify-content: space-between;
    margin-left: 0;
  }

  .balloon-trajectory-playback-timeline {
    grid-template-columns: 1fr 44px;
  }

  .balloon-trajectory-playback-timeline > span {
    grid-column: 1 / -1;
  }

  .balloon-trajectory-grid {
    grid-template-columns: 1fr;
  }

  .balloon-trajectory-mode-tabs {
    grid-template-columns: 1fr;
  }

  .hot-air-balloon-catalog,
  .hot-air-balloon-scenario-grid,
  .hot-air-balloon-loading-grid,
  .hot-air-balloon-calibration-grid,
  .hot-air-balloon-console-layout,
  .hot-air-balloon-control-selects {
    grid-template-columns: minmax(0, 1fr);
  }

  .hot-air-balloon-telemetry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hot-air-balloon-calibration-counts {
    grid-template-columns: 1fr auto;
  }

  .hot-air-balloon-console-header,
  .hot-air-balloon-calibration-header,
  .hot-air-balloon-profile-header,
  .hot-air-balloon-console-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .hot-air-balloon-console-window {
    top: auto;
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    max-height: calc(100vh - 16px);
  }

  .hot-air-balloon-playback-rate {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 88px;
    margin-left: 0;
  }

  .hot-air-balloon-profile-readout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .balloon-trajectory-point-row {
    grid-template-columns: 1fr;
  }

  .balloon-trajectory-point-row .balloon-trajectory-button {
    width: 100%;
  }

  .balloon-trajectory-result {
    top: auto;
    right: 10px;
    bottom: 112px;
    width: calc(100vw - 20px);
  }

  .balloon-trajectory-pick-hint {
    top: 70px;
    max-width: calc(100vw - 32px);
  }
}
