body.guided-planner-map-mode {
  overflow: hidden;
}

body.guided-planner-map-mode .site-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  padding: 0;
}

body.guided-planner-map-mode .site-header {
  flex: 0 0 auto;
  width: calc(100% - 32px);
  margin: 14px auto 0;
  margin-left: auto;
  transform: none;
}

body.guided-planner-map-mode main {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 14px;
}

body.guided-planner-map-mode .site-footer,
body.guided-planner-map-mode .cookie-reminder {
  display: none;
}

body.guided-planner-map-mode .header-anonymous-cta {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 214, 107, 0.45);
  background: linear-gradient(180deg, rgba(255, 214, 107, 0.22), rgba(0, 137, 154, 0.86));
  color: #fff8dc;
  white-space: nowrap;
}

.guided-planner-app-demo [name="departure"][readonly],
.guided-planner-app-demo [name="destination"][readonly],
.guided-planner-app-demo .guided-route-tokenizer[data-guided-route-locked="1"] {
  border-color: rgba(255, 214, 107, 0.32);
  background: rgba(255, 214, 107, 0.08);
}

.guided-planner-app-demo .guided-route-tokenizer[data-guided-route-locked="1"],
.guided-planner-app-demo .guided-route-tokenizer[data-guided-route-locked="1"] .guided-token-chip {
  cursor: not-allowed;
}

.guided-planner-app-demo .guided-route-tokenizer[data-guided-route-locked="1"] .guided-route-entry {
  cursor: not-allowed;
}

.guided-planner-map-mode .guided-planner-page {
  min-height: 100%;
}

.guided-planner-hero {
  max-width: 1280px;
}

.guided-planner-map-mode .guided-planner-hero {
  width: 100%;
  max-width: none;
  height: 100%;
  padding: 0;
}

.guided-planner-map-mode .guided-planner-hero > .section-heading {
  display: none;
}

.guided-planner-app {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: calc(100vh - 118px);
  min-height: 640px;
  overflow: hidden;
  background: #102327;
}

.guided-map {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #102327;
}

.guided-map,
.guided-map .leaflet-container,
.guided-map .leaflet-grab,
.guided-map .leaflet-interactive {
  cursor: crosshair;
}

.guided-map .leaflet-control,
.guided-map .leaflet-control *,
.guided-map-overlay,
.guided-map-overlay * {
  cursor: auto;
}

.guided-map .leaflet-control a,
.guided-map button,
.guided-map-overlay button,
.guided-map-overlay a,
.guided-map-overlay label,
.guided-map-overlay input,
.guided-map-overlay select {
  cursor: pointer;
}

.guided-map-overlay input,
.guided-map-overlay select,
.guided-map-overlay textarea {
  cursor: text;
}

.guided-map .leaflet-control-container {
  position: relative;
  z-index: 20;
}

.guided-map-overlay {
  position: absolute;
  z-index: 30;
  border-radius: 8px;
  background: rgba(7, 16, 20, 0.86);
  border-color: rgba(190, 210, 214, 0.32);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
}

.guided-demo-modal {
  z-index: 70;
  top: 18px;
  left: min(820px, calc(100vw - 520px));
  display: grid;
  gap: 12px;
  width: min(430px, calc(100vw - 48px));
  padding: 16px;
  border-color: rgba(39, 212, 223, 0.34);
  user-select: none;
  touch-action: none;
}

.guided-demo-modal.is-hidden {
  display: none;
}

.guided-demo-modal.is-dragging {
  opacity: 0.94;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.48);
}

.guided-demo-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  cursor: move;
}

.guided-demo-modal h2 {
  margin: 0;
  color: var(--teal);
  font-size: 1.2rem;
  line-height: 1.18;
}

.guided-demo-modal p:not(.section-label) {
  margin: 0;
  color: #f2f7f8;
  font-size: 0.94rem;
  line-height: 1.45;
}

.guided-demo-modal .cta-button {
  justify-self: start;
  padding: 10px 16px;
}

.guided-demo-modal-close {
  flex: 0 0 auto;
  border: 1px solid rgba(190, 210, 214, 0.3);
  border-radius: 8px;
  background: rgba(244, 247, 247, 0.08);
  color: #f4f7f7;
  font: inherit;
  font-weight: 900;
  padding: 8px 10px;
}

.guided-access-card,
.guided-input-panel,
.guided-map-toolbar,
.guided-results-card,
.guided-disclaimer-card {
  border-radius: 8px;
}

.guided-input-panel {
  z-index: 48;
  top: 18px;
  left: 18px;
  width: min(760px, calc(100vw - 420px));
  max-height: calc(100% - 36px);
  overflow: visible;
  padding: 18px;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.guided-input-panel.is-closed {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-18px) scale(0.98);
}

.guided-panel-reopen {
  top: 18px;
  left: 18px;
  display: none;
  border: 1px solid rgba(39, 212, 223, 0.36);
  border-radius: 8px;
  background: rgba(7, 16, 20, 0.9);
  color: #f4f7f7;
  padding: 11px 14px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.guided-panel-reopen.is-visible {
  display: inline-flex;
  align-items: center;
}

.guided-reanalyze-route {
  top: 18px;
  left: 162px;
  display: none;
  border: 1px solid rgba(255, 193, 90, 0.42);
  border-radius: 8px;
  background: rgba(35, 25, 9, 0.92);
  color: #fff1cc;
  padding: 11px 14px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.guided-reanalyze-route.is-visible {
  display: inline-flex;
  align-items: center;
}

.guided-profile-open {
  top: 18px;
  left: 306px;
  border: 1px solid rgba(39, 212, 223, 0.36);
  border-radius: 8px;
  background: rgba(7, 16, 20, 0.9);
  color: #f4f7f7;
  padding: 11px 14px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.guided-decision-open {
  top: 18px;
  left: 390px;
  border: 1px solid rgba(39, 212, 223, 0.36);
  border-radius: 8px;
  background: rgba(7, 16, 20, 0.9);
  color: #f4f7f7;
  padding: 11px 14px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.guided-profile-open:disabled,
.guided-decision-open:disabled {
  display: none;
}

.guided-panel-close,
.guided-panel-secondary {
  border: 1px solid rgba(190, 210, 214, 0.28);
  border-radius: 8px;
  background: rgba(244, 247, 247, 0.08);
  color: #f4f7f7;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.guided-panel-secondary {
  border-color: rgba(39, 212, 223, 0.34);
  background: rgba(39, 212, 223, 0.1);
}

.guided-panel-close:hover,
.guided-panel-close:focus-visible,
.guided-panel-secondary:hover,
.guided-panel-secondary:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(39, 212, 223, 0.58);
  outline: none;
}

.guided-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.guided-panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.guided-panel-title h2,
.guided-map-toolbar h2,
.guided-results-card h2 {
  margin: 0;
  font-size: 1.35rem;
}

.guided-actions,
.guided-form-footer,
.guided-layer-toggles {
  display: flex;
  align-items: center;
  gap: 14px;
}

.guided-actions,
.guided-form-footer {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.guided-form-footer select {
  min-width: 190px;
  border: 1px solid rgba(39, 212, 223, 0.32);
  border-radius: 6px;
  background: rgba(5, 18, 20, 0.74);
  color: #f4f7f7;
  padding: 10px 12px;
}

.guided-form {
  display: grid;
  gap: 14px;
}

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

.guided-route-field {
  grid-column: span 2;
}

.guided-time-field {
  grid-column: span 2;
}

.guided-time-entry {
  display: grid;
  grid-template-columns: minmax(118px, 1fr) 92px;
  gap: 8px;
}

.guided-time-entry input,
.guided-time-entry select {
  min-width: 0;
}

.guided-time-entry input[type="time"] {
  min-width: 118px;
  padding-right: 8px;
}

.guided-performance-panel {
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(190, 210, 214, 0.18);
  padding-top: 12px;
}

.guided-performance-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.guided-performance-heading h3 {
  margin: 0;
  color: #f4f7f7;
  font-size: 1rem;
}

.guided-performance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.guided-school-aircraft-field {
  max-width: 100%;
}

.guided-field {
  position: relative;
  display: grid;
  gap: 7px;
  color: #f4f7f7;
  font-weight: 800;
}

.guided-field span {
  font-size: 0.82rem;
}

.guided-field input,
.guided-field select {
  width: 100%;
  border: 1px solid rgba(190, 210, 214, 0.28);
  border-radius: 8px;
  background: rgba(244, 247, 247, 0.1);
  color: #f4f7f7;
  padding: 11px 12px;
  font: inherit;
  font-weight: 800;
  outline: none;
}

.guided-field input:focus,
.guided-field select:focus,
.guided-route-tokenizer:focus-within {
  border-color: #27d4df;
  box-shadow: 0 0 0 3px rgba(39, 212, 223, 0.16);
}

.guided-field select option {
  color: #061114;
}

.guided-token-field {
  align-content: start;
}

.guided-route-tokenizer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  border: 1px solid rgba(190, 210, 214, 0.28);
  border-radius: 8px;
  background: rgba(244, 247, 247, 0.1);
  padding: 7px 9px;
}

.guided-token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.guided-token-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  border: 1px solid rgba(39, 212, 223, 0.45);
  border-radius: 999px;
  background: rgba(39, 212, 223, 0.14);
  color: #f4f7f7;
  padding: 4px 9px 4px 11px;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: grab;
}

.guided-token-chip.is-invalid {
  border-color: rgba(255, 94, 91, 0.62);
  background: rgba(255, 94, 91, 0.14);
}

.guided-token-chip.is-pending {
  border-color: rgba(255, 193, 90, 0.58);
  background: rgba(255, 193, 90, 0.14);
}

.guided-token-chip.is-dragging {
  opacity: 0.45;
  cursor: grabbing;
}

.guided-token-chip.is-drag-over {
  box-shadow: 0 0 0 3px rgba(39, 212, 223, 0.26);
  transform: translateY(-1px);
}

.guided-token-chip.is-insert-after {
  box-shadow: 8px 0 0 -3px #27d4df, 0 0 0 2px rgba(39, 212, 223, 0.18);
}

.guided-token-remove {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: rgba(244, 247, 247, 0.15);
  color: #f4f7f7;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.guided-route-entry {
  flex: 1 1 140px;
  min-width: 140px;
  padding: 7px 6px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.guided-airport-results {
  position: absolute;
  z-index: 80;
  top: calc(100% + 4px);
  left: 0;
  width: min(200%, calc(100vw - 56px));
  display: none;
  max-height: 260px;
  overflow: auto;
  border: 1px solid rgba(39, 212, 223, 0.36);
  border-radius: 8px;
  background: rgba(6, 17, 18, 0.98);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.guided-airport-results.is-visible {
  display: block;
}

.guided-airport-result {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(190, 210, 214, 0.12);
  background: transparent;
  color: #f4f7f7;
  padding: 10px 12px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.guided-airport-result strong {
  color: #23ccd6;
}

.guided-form-footer p,
.guided-status,
.guided-disclaimer-card p {
  margin: 0;
  color: #d7e1e3;
}

.guided-map-toolbar {
  z-index: 150000;
  left: 18px;
  bottom: 18px;
  display: grid;
  gap: 10px;
  width: min(520px, calc(100vw - 420px));
  padding: 16px;
}

.guided-map-toolbar.is-collapsed {
  z-index: 30;
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.guided-layer-panel-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(39, 212, 223, 0.36);
  border-radius: 8px;
  background: rgba(7, 16, 20, 0.92);
  color: #f4f7f7;
  padding: 11px 14px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.guided-map-toolbar.is-collapsed .guided-layer-panel-toggle,
.guided-layer-panel-toggle {
  display: inline-flex;
}

.guided-layer-panel-body {
  display: grid;
  gap: 10px;
}

.guided-layer-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.guided-layer-heading h2 {
  margin: 0;
  font-size: 1.2rem;
}

.guided-map-toolbar.is-collapsed .guided-layer-panel-body {
  display: none;
}

.guided-layer-toggles {
  flex-wrap: wrap;
  color: #d7e1e3;
  font-size: 0.88rem;
  font-weight: 800;
}

.guided-layer-toggles label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.guided-status {
  font-size: 0.92rem;
}

.guided-status.is-error {
  color: #ffb4b2;
}

.guided-results-card {
  top: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 360px;
  padding: 18px;
  overflow: auto;
}

.guided-profile-panel {
  z-index: 45;
  left: 18px;
  right: 396px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 360px;
  padding: 16px;
}

.guided-profile-panel.is-collapsed {
  display: none;
}

.guided-decision-panel {
  z-index: 46;
  top: 70px;
  left: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(640px, calc(100vw - 420px));
  max-height: calc(100% - 88px);
  padding: 16px;
  overflow: auto;
}

.guided-decision-panel.is-collapsed {
  display: none;
}

.guided-profile-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.guided-profile-heading h2 {
  margin: 0;
  font-size: 1.2rem;
}

.guided-profile-chart {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
  width: 100%;
  color: #d7e1e3;
}

.guided-profile-chart svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
}

.guided-decision-body {
  display: grid;
  gap: 12px;
}

.guided-decision-hero {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(39, 212, 223, 0.3);
  border-radius: 8px;
  background: rgba(39, 212, 223, 0.09);
  padding: 14px;
}

.guided-decision-hero span {
  color: #23ccd6;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guided-decision-hero strong {
  color: #f4f7f7;
  font-size: 1.85rem;
  line-height: 1.05;
}

.guided-decision-hero p,
.guided-decision-section p,
.guided-decision-note {
  margin: 0;
  color: #d7e1e3;
}

.guided-decision-hero.is-critical {
  border-color: rgba(255, 94, 91, 0.62);
  background: rgba(92, 19, 25, 0.58);
}

.guided-decision-hero.is-warning {
  border-color: rgba(255, 193, 90, 0.58);
  background: rgba(72, 48, 12, 0.58);
}

.guided-decision-hero.is-unavailable {
  border-color: rgba(190, 210, 214, 0.42);
  background: rgba(39, 50, 55, 0.58);
}

.guided-decision-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guided-decision-counts span,
.guided-decision-section li > span {
  border: 1px solid rgba(39, 212, 223, 0.3);
  border-radius: 999px;
  background: rgba(39, 212, 223, 0.12);
  color: #d7e1e3;
  padding: 5px 8px;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.guided-decision-counts .is-critical,
.guided-decision-section li.is-critical > span {
  border-color: rgba(255, 94, 91, 0.6);
  background: rgba(255, 94, 91, 0.18);
  color: #ffb4b2;
}

.guided-decision-counts .is-warning,
.guided-decision-section li.is-warning > span {
  border-color: rgba(255, 193, 90, 0.6);
  background: rgba(255, 193, 90, 0.16);
  color: #ffd891;
}

.guided-decision-counts .is-unavailable,
.guided-decision-section li.is-unavailable > span {
  border-color: rgba(190, 210, 214, 0.4);
  background: rgba(190, 210, 214, 0.12);
  color: #d7e1e3;
}

.guided-decision-counts .is-advisory,
.guided-decision-section li.is-advisory > span {
  border-color: rgba(39, 212, 223, 0.5);
  background: rgba(39, 212, 223, 0.14);
  color: #9ef5f8;
}

.guided-decision-section {
  display: grid;
  gap: 8px;
}

.guided-decision-section > strong {
  color: #23ccd6;
}

.guided-decision-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guided-decision-section li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(190, 210, 214, 0.18);
  border-radius: 8px;
  background: rgba(244, 247, 247, 0.05);
  padding: 10px;
}

.guided-decision-section li div {
  display: grid;
  gap: 3px;
}

.guided-decision-section li div strong {
  color: #f4f7f7;
}

.guided-decision-section li.is-critical {
  border-color: rgba(255, 94, 91, 0.44);
}

.guided-decision-section li.is-warning {
  border-color: rgba(255, 193, 90, 0.42);
}

.guided-decision-section li.is-advisory {
  border-color: rgba(39, 212, 223, 0.36);
}

.guided-decision-note {
  border-top: 1px solid rgba(190, 210, 214, 0.18);
  padding-top: 10px;
  font-size: 0.82rem;
}

.guided-profile-bg {
  fill: rgba(2, 10, 12, 0.7);
}

.guided-profile-grid {
  stroke: rgba(190, 210, 214, 0.18);
  stroke-width: 1;
}

.guided-profile-axis {
  fill: #b9c7ca;
  font-size: 10px;
}

.guided-profile-terrain {
  fill: rgba(124, 79, 41, 0.78);
  stroke: #8a5a2b;
  stroke-width: 2;
}

.guided-profile-terrain-line {
  fill: none;
  stroke: #b37a3f;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  cursor: crosshair;
}

.guided-profile-airspace-band {
  cursor: pointer;
}

.guided-profile-airspace-band rect {
  pointer-events: all;
}

.guided-profile-airspace-band text {
  fill: #f4f7f7;
  font-size: 9px;
  font-weight: 900;
  paint-order: stroke;
  stroke: rgba(2, 10, 12, 0.72);
  stroke-width: 3px;
  stroke-linejoin: round;
  pointer-events: none;
}

.guided-profile-airspace-band.is-class-b rect {
  fill: rgba(47, 128, 237, 0.34);
  stroke: rgba(47, 128, 237, 0.92);
  stroke-width: 1.4;
}

.guided-profile-airspace-band.is-class-c rect {
  fill: rgba(210, 38, 211, 0.3);
  stroke: rgba(236, 72, 153, 0.92);
  stroke-width: 1.4;
}

.guided-profile-airspace-band.is-class-d rect {
  fill: rgba(56, 189, 248, 0.08);
  stroke: rgba(56, 189, 248, 0.95);
  stroke-width: 1.8;
  stroke-dasharray: 6 4;
}

.guided-profile-airspace-band.is-class-d text {
  fill: #8edcff;
}

.guided-profile-aircraft {
  fill: none;
  stroke: #27d4df;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guided-profile-aircraft-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 16;
  stroke-linecap: round;
  stroke-linejoin: round;
  cursor: crosshair;
  pointer-events: stroke;
}

.guided-profile-cruise {
  stroke: rgba(39, 212, 223, 0.58);
  stroke-width: 1.5;
  stroke-dasharray: 8 6;
}

.guided-profile-cruise-label {
  fill: #27d4df;
  font-size: 12px;
  font-weight: 900;
}

.guided-profile-cloud-symbol {
  pointer-events: none;
}

.guided-profile-cloud-puff {
  fill: rgba(232, 239, 241, 0.72);
  stroke: rgba(244, 247, 247, 0.86);
  stroke-width: 1.2;
}

.guided-profile-cloud-symbol.is-ovc .guided-profile-cloud-puff {
  fill: rgba(216, 226, 230, 0.88);
}

.guided-profile-cloud-symbol.is-bkn .guided-profile-cloud-puff {
  fill: rgba(232, 239, 241, 0.7);
}

.guided-profile-cloud-symbol.is-vv .guided-profile-cloud-puff {
  fill: rgba(200, 210, 214, 0.62);
  stroke-dasharray: 3 3;
}

.guided-profile-cloud-symbol.is-convective .guided-profile-cloud-puff {
  fill: rgba(255, 178, 143, 0.72);
  stroke: rgba(255, 218, 195, 0.94);
}

.guided-profile-cloud-base {
  stroke: #f4f7f7;
  stroke-width: 3;
  stroke-linecap: round;
}

.guided-profile-cloud-symbol.is-convective .guided-profile-cloud-base {
  stroke: #ff8b5f;
}

.guided-profile-cloud-obscuration {
  stroke: rgba(244, 247, 247, 0.62);
  stroke-width: 2;
  stroke-linecap: round;
}

.guided-profile-cloud-bolt {
  fill: #ffd166;
  stroke: rgba(71, 44, 10, 0.48);
  stroke-width: 1;
}

.guided-profile-cloud-label {
  fill: #f4f7f7;
  font-size: 10px;
  font-weight: 900;
}

.guided-profile-cloud-value {
  fill: #f4f7f7;
  font-size: 10px;
  font-weight: 900;
  paint-order: stroke;
  stroke: rgba(2, 10, 12, 0.82);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.guided-profile-cloud-symbol.is-convective .guided-profile-cloud-label {
  fill: #ffcfb6;
}

.guided-profile-cloud-symbol.is-convective .guided-profile-cloud-value {
  fill: #ffcfb6;
}

.guided-profile-obstruction {
  stroke: #ff8b5f;
  stroke-width: 2;
  cursor: pointer;
}

.guided-profile-obstruction-dot {
  fill: #ff8b5f;
  cursor: pointer;
}

.guided-profile-popup {
  position: absolute;
  z-index: 200;
  display: none;
  width: 268px;
  border: 1px solid rgba(255, 139, 95, 0.52);
  border-radius: 8px;
  background: rgba(7, 16, 20, 0.97);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.44);
  color: #f4f7f7;
  padding: 10px 12px;
  pointer-events: none;
}

.guided-profile-popup.is-visible {
  display: grid;
  gap: 3px;
}

.guided-profile-popup strong {
  color: #ffb18c;
  font-size: 0.86rem;
}

.guided-profile-popup span {
  font-size: 0.78rem;
  line-height: 1.35;
}

.guided-profile-vis-label {
  fill: #d7e1e3;
  font-size: 10px;
  font-weight: 800;
}

.guided-profile-vis-label.is-warning {
  fill: #ffc15a;
}

.guided-profile-weather-marker {
  fill: #ffc15a;
  stroke: rgba(7, 16, 20, 0.82);
  stroke-width: 0.8;
}

.guided-profile-radar-label {
  fill: #ffc15a;
  font-size: 9px;
  font-weight: 900;
  paint-order: stroke;
  stroke: rgba(7, 16, 20, 0.86);
  stroke-width: 3px;
}

.guided-profile-radar-label.is-thunderstorm {
  fill: #ff5e5b;
  font-size: 11px;
  stroke-width: 4px;
}

.guided-profile-radar-storm-column {
  fill: rgba(255, 94, 91, 0.2);
  stroke: rgba(255, 94, 91, 0.6);
  stroke-width: 1;
  stroke-dasharray: 5 4;
}

.guided-profile-radar-storm-core {
  fill: rgba(255, 94, 91, 0.42);
  stroke: #ffc15a;
  stroke-width: 2;
}

.guided-profile-radar-storm-bolt {
  fill: #ffc15a;
  stroke: rgba(7, 16, 20, 0.86);
  stroke-width: 1.2;
  paint-order: stroke;
}

.guided-profile-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #d7e1e3;
  font-size: 0.82rem;
  font-weight: 800;
}

.guided-profile-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.guided-profile-legend i {
  width: 18px;
  height: 4px;
  border-radius: 999px;
}

.guided-profile-legend .route {
  background: #27d4df;
}

.guided-profile-legend .terrain {
  background: #8a5a2b;
}

.guided-profile-legend .obstacle {
  background: #ff8b5f;
}

.guided-profile-legend .ceiling {
  background: #d7e1e3;
}

.guided-profile-legend .airspace {
  background: linear-gradient(90deg, #2f80ed 0 33%, #d226d3 33% 66%, transparent 66%);
  border: 1px dashed #38bdf8;
}

.guided-profile-legend .visibility {
  background: #ffc15a;
}

.guided-profile-legend .weather {
  background: #ffc15a;
}

.guided-results-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.guided-export-pdf {
  flex: 0 0 auto;
  border: 1px solid rgba(39, 212, 223, 0.36);
  border-radius: 8px;
  background: rgba(39, 212, 223, 0.16);
  color: #f4f7f7;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.guided-export-pdf:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.guided-results-empty,
.guided-summary-stack,
.guided-coaching-stack {
  display: grid;
  gap: 12px;
}

.guided-summary-item,
.guided-coaching-item {
  border: 1px solid rgba(190, 210, 214, 0.18);
  border-radius: 8px;
  background: rgba(244, 247, 247, 0.075);
  padding: 14px;
}

.guided-summary-item.is-warning {
  border-color: rgba(255, 193, 90, 0.62);
  background: rgba(255, 193, 90, 0.12);
}

.guided-summary-item.is-warning strong {
  color: #ffd166;
}

.guided-summary-item.is-critical {
  border-color: rgba(255, 94, 91, 0.72);
  background: rgba(255, 94, 91, 0.14);
}

.guided-summary-item.is-critical strong {
  color: #ff9a97;
}

.guided-summary-item.is-unavailable {
  border-color: rgba(190, 210, 214, 0.34);
  background: rgba(190, 210, 214, 0.1);
}

.guided-summary-item.is-advisory {
  border-color: rgba(39, 212, 223, 0.42);
  background: rgba(39, 212, 223, 0.1);
}

.guided-summary-item.is-advisory strong {
  color: #9ef5f8;
}

.guided-summary-item strong,
.guided-coaching-item strong {
  display: block;
  color: #23ccd6;
  margin-bottom: 8px;
}

.guided-summary-item p,
.guided-summary-item li,
.guided-coaching-item p,
.guided-coaching-item li {
  color: #d7e1e3;
  line-height: 1.55;
}

.guided-summary-item ul,
.guided-coaching-item ul {
  margin: 0;
  padding-left: 20px;
}

.guided-clearance-conflicts {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.guided-clearance-conflict {
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(190, 210, 214, 0.16);
}

.guided-clearance-conflict:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.guided-clearance-conflict strong {
  color: #ffd166;
  margin-bottom: 6px;
}

.guided-clearance-conflict.is-advisory strong {
  color: #ffc15a;
}

.guided-clearance-conflict dl {
  display: grid;
  grid-template-columns: minmax(92px, 0.7fr) 1fr;
  gap: 4px 10px;
  margin: 8px 0 0;
}

.guided-clearance-conflict dt,
.guided-clearance-conflict dd {
  color: #d7e1e3;
  font-size: 0.86rem;
  line-height: 1.35;
}

.guided-clearance-conflict dt {
  color: #9fb5ba;
  font-weight: 800;
}

.guided-clearance-conflict dd {
  margin: 0;
}

.guided-terrain-satellite {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.guided-terrain-satellite iframe {
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 150px;
  border: 1px solid rgba(190, 210, 214, 0.28);
  border-radius: 6px;
}

.guided-terrain-satellite a {
  color: #23ccd6;
  font-weight: 800;
  text-decoration: none;
}

.guided-terrain-satellite a:hover {
  text-decoration: underline;
}

.guided-radar-opacity-control {
  display: grid;
  gap: 6px;
}

.guided-radar-opacity-control input[type="range"] {
  width: 100%;
  accent-color: #23ccd6;
}

.guided-radar-controls {
  left: 18px;
  bottom: 66px;
  z-index: 34;
  display: none;
  align-items: center;
  gap: 8px;
  width: min(520px, calc(100vw - 420px));
  padding: 10px 12px;
}

.guided-planner-app.is-route-panel-open .guided-radar-controls {
  left: min(790px, calc(100vw - 590px));
  width: clamp(320px, calc(100vw - 1190px), 520px);
  min-width: 320px;
}

.guided-radar-controls.is-visible {
  display: flex;
}

.guided-radar-controls button {
  border: 1px solid rgba(39, 212, 223, 0.36);
  border-radius: 8px;
  background: rgba(0, 140, 157, 0.72);
  color: #f4f7f7;
  padding: 7px 10px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
}

.guided-radar-controls span {
  min-width: 0;
  color: #d7e1e3;
  font-size: 0.84rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guided-weather-report {
  border-top: 1px solid rgba(190, 210, 214, 0.16);
  margin-top: 12px;
  padding-top: 10px;
}

.guided-weather-report strong {
  color: #f4f7f7;
  margin-bottom: 6px;
}

.guided-weather-report p {
  font-family: "Consolas", "Liberation Mono", monospace;
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.guided-weather-report span {
  color: #23ccd6;
  font-family: inherit;
}

.guided-disclaimer-card {
  right: 396px;
  bottom: 18px;
  width: min(560px, calc(100vw - 970px));
  min-width: 360px;
  padding: 14px 16px;
}

.guided-disclaimer-card p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.guided-busy {
  position: fixed;
  z-index: 200000;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0, 9, 10, 0.64);
  backdrop-filter: blur(5px);
  isolation: isolate;
}

.guided-busy.is-visible {
  display: grid;
}

.guided-busy-card {
  display: grid;
  gap: 12px;
  width: min(420px, calc(100vw - 36px));
  border: 1px solid rgba(39, 212, 223, 0.34);
  border-radius: 8px;
  background: rgba(8, 24, 26, 0.96);
  padding: 24px;
  color: #f4f7f7;
  text-align: center;
}

.guided-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border: 4px solid rgba(39, 212, 223, 0.18);
  border-top-color: #27d4df;
  border-radius: 50%;
  animation: guided-spin 0.9s linear infinite;
}

.guided-busy-progress {
  position: relative;
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(39, 212, 223, 0.36);
  border-radius: 999px;
  background: rgba(244, 247, 247, 0.1);
}

.guided-busy-progress i {
  display: block;
  width: 1%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #23ccd6, #ffc15a);
  transition: width 220ms ease;
}

.guided-busy-percent {
  color: #23ccd6;
  font-weight: 900;
}

.guided-busy-activity {
  min-height: 2.8em;
  color: #d7e1e3;
  line-height: 1.4;
}

.guided-busy-cancel {
  justify-self: center;
  min-width: 120px;
  border: 1px solid rgba(244, 247, 247, 0.36);
  border-radius: 999px;
  background: rgba(244, 247, 247, 0.08);
  color: #f4f7f7;
  padding: 10px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.guided-busy-cancel:hover,
.guided-busy-cancel:focus {
  border-color: rgba(255, 139, 95, 0.8);
  background: rgba(255, 139, 95, 0.18);
}

.guided-stale-modal {
  position: fixed;
  z-index: 210000;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0, 9, 10, 0.64);
  backdrop-filter: blur(5px);
}

.guided-stale-modal.is-visible {
  display: grid;
}

.guided-stale-modal-card {
  display: grid;
  gap: 14px;
  width: min(440px, calc(100vw - 36px));
  border: 1px solid rgba(255, 193, 90, 0.45);
  border-radius: 8px;
  background: rgba(8, 24, 26, 0.97);
  padding: 24px;
  color: #f4f7f7;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.guided-stale-modal-card strong {
  font-size: 1.2rem;
}

.guided-stale-modal-card p {
  margin: 0;
  color: #d7e1e3;
  line-height: 1.5;
}

.guided-stale-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.guided-stale-modal-actions button {
  border: 1px solid rgba(244, 247, 247, 0.32);
  border-radius: 999px;
  background: rgba(244, 247, 247, 0.08);
  color: #f4f7f7;
  padding: 10px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.guided-stale-modal-actions button:first-child {
  border-color: rgba(39, 212, 223, 0.8);
  background: rgba(39, 212, 223, 0.18);
}

.guided-route-line {
  filter: drop-shadow(0 0 5px rgba(39, 212, 223, 0.5));
}

.guided-route-hit-line {
  cursor: grab;
}

.guided-route-hit-line:active {
  cursor: grabbing;
}

.guided-route-drag-handle {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(244, 247, 247, 0.94);
  border-radius: 50%;
  background: rgba(10, 158, 173, 0.92);
  color: #f4f7f7;
  box-shadow: 0 0 0 5px rgba(39, 212, 223, 0.2), 0 8px 18px rgba(0, 0, 0, 0.34);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: grab;
}

.guided-map .guided-route-drag-handle {
  cursor: grab;
}

.guided-route-drag-handle:active {
  cursor: grabbing;
}

.guided-map .guided-route-drag-handle:active {
  cursor: grabbing;
}

.guided-planning-marker {
  min-width: 42px;
  border: 1px solid rgba(244, 247, 247, 0.72);
  border-radius: 8px;
  background: rgba(7, 16, 20, 0.9);
  color: #f4f7f7;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.34);
  padding: 4px 7px;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.guided-critical-segment {
  filter: drop-shadow(0 0 5px rgba(255, 94, 91, 0.5));
}

.guided-caution-segment {
  filter: drop-shadow(0 0 5px rgba(255, 193, 90, 0.5));
}

.guided-ifr-forecast-area {
  mix-blend-mode: multiply;
}

.guided-floating-obstruction-popup {
  position: absolute;
  z-index: 120;
  display: none;
  width: 232px;
  border: 1px solid rgba(255, 139, 95, 0.5);
  border-radius: 8px;
  background: rgba(7, 16, 20, 0.96);
  color: #f4f7f7;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.46);
  padding: 10px 12px;
  pointer-events: none;
}

.guided-floating-obstruction-popup.is-visible {
  display: grid;
  gap: 2px;
}

.guided-floating-obstruction-popup::after {
  content: "";
  position: absolute;
  left: var(--guided-popup-arrow-left, 106px);
  bottom: -8px;
  width: 14px;
  height: 14px;
  background: rgba(7, 16, 20, 0.96);
  border-right: 1px solid rgba(255, 139, 95, 0.5);
  border-bottom: 1px solid rgba(255, 139, 95, 0.5);
  transform: translateX(-50%) rotate(45deg);
}

.guided-floating-obstruction-popup strong {
  color: #ffb18c;
  font-size: 0.86rem;
}

.guided-floating-obstruction-popup span {
  font-size: 0.78rem;
  line-height: 1.35;
}

.guided-route-tooltip,
.guided-climb-context-menu {
  position: absolute;
  z-index: 125;
  display: none;
  border: 1px solid rgba(39, 212, 223, 0.42);
  border-radius: 8px;
  background: rgba(7, 16, 20, 0.96);
  color: #f4f7f7;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.46);
  padding: 10px 12px;
}

.guided-route-tooltip.is-visible,
.guided-climb-context-menu.is-visible {
  display: grid;
  gap: 4px;
}

.guided-route-tooltip {
  width: 246px;
  pointer-events: none;
}

.guided-route-tooltip.is-class-d {
  border-color: rgba(70, 151, 255, 0.85);
  background: rgba(17, 61, 142, 0.97);
}

.guided-route-tooltip.is-class-c {
  border-color: rgba(255, 180, 81, 0.9);
  background: rgba(170, 88, 14, 0.97);
}

.guided-route-tooltip.is-class-b {
  border-color: rgba(255, 122, 240, 0.94);
  background: rgba(147, 28, 139, 0.97);
}

.guided-route-tooltip strong,
.guided-climb-context-menu strong {
  color: #27d4df;
  font-size: 0.84rem;
}

.guided-route-tooltip.is-class-b strong,
.guided-route-tooltip.is-class-c strong,
.guided-route-tooltip.is-class-d strong {
  color: #ffffff;
}

.guided-route-tooltip span {
  font-size: 0.78rem;
  line-height: 1.35;
}

.guided-route-airspace {
  display: grid;
  gap: 2px;
  margin: -2px -4px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  padding: 8px;
}

.guided-route-airspace b {
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.guided-route-airspace span,
.guided-route-airspace em {
  color: #ffffff;
  font-size: 0.75rem;
  line-height: 1.3;
}

.guided-route-airspace em {
  font-style: normal;
  font-weight: 800;
}

.guided-climb-context-menu {
  width: 178px;
}

.guided-climb-context-menu button {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #f4f7f7;
  padding: 8px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.guided-climb-context-menu button:hover,
.guided-climb-context-menu button:focus {
  background: rgba(39, 212, 223, 0.14);
}

.guided-climb-context-menu button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.guided-climb-context-menu small {
  color: #b9c7ca;
  font-size: 0.72rem;
}

.guided-obstruction-popup .leaflet-popup-content-wrapper {
  border: 1px solid rgba(255, 139, 95, 0.42);
  border-radius: 8px;
  background: rgba(7, 16, 20, 0.94);
  color: #f4f7f7;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

.guided-obstruction-popup .leaflet-popup-tip {
  background: rgba(7, 16, 20, 0.94);
  border: 1px solid rgba(255, 139, 95, 0.42);
}

.guided-obstruction-popup strong {
  color: #ffb18c;
}

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

@media (max-width: 1180px) {
  body.guided-planner-map-mode {
    overflow: auto;
  }

  .guided-planner-app {
    height: auto;
    min-height: calc(100vh - 118px);
    overflow: visible;
    padding: 14px;
  }

  .guided-map {
    position: fixed;
    inset: 0;
  }

  .guided-map-overlay {
    position: relative;
    z-index: 30;
    inset: auto;
    width: 100%;
    max-height: none;
    margin: 0 0 14px;
  }

  .guided-input-panel,
  .guided-demo-modal,
  .guided-panel-reopen,
  .guided-reanalyze-route,
  .guided-profile-open,
  .guided-decision-open,
  .guided-map-toolbar,
  .guided-profile-panel,
  .guided-decision-panel,
  .guided-results-card,
  .guided-disclaimer-card {
    width: 100%;
    min-width: 0;
  }

  .guided-demo-modal {
    touch-action: auto;
  }

  .guided-results-card {
    max-height: 46vh;
  }

  .guided-profile-panel {
    right: auto;
  }
}

@media (max-width: 760px) {
  body.guided-planner-map-mode .site-header {
    width: calc(100% - 20px);
    margin-top: 10px;
  }

  body.guided-planner-map-mode main {
    margin-top: 10px;
  }

  .guided-planner-app {
    min-height: calc(100vh - 104px);
    padding: 10px;
  }

  .guided-form-grid {
    grid-template-columns: 1fr;
  }

  .guided-performance-grid {
    grid-template-columns: 1fr;
  }

  .guided-route-field {
    grid-column: auto;
  }

  .guided-time-field {
    grid-column: auto;
  }

  .guided-time-entry {
    grid-template-columns: minmax(140px, 1fr) 96px;
  }

  .guided-airport-results {
    width: 100%;
  }

  .guided-panel-title,
  .guided-form-footer {
    align-items: stretch;
  }

  .guided-panel-actions {
    justify-content: flex-start;
  }

  .guided-panel-title h2,
  .guided-map-toolbar h2,
  .guided-results-card h2 {
    font-size: 1.15rem;
  }
}
