.vfr-step {
  padding-bottom: 1rem;
}

.vfr-layout {
  display: grid;
  grid-template-columns: minmax(390px, 0.82fr) minmax(460px, 1.18fr);
  gap: 1rem;
  align-items: start;
}

.vfr-controls {
  display: grid;
  gap: 1rem;
}

.vfr-panel,
.vfr-map-panel,
.vfr-results {
  padding: 1.15rem;
}

.vfr-map-column {
  position: sticky;
  top: 0;
  min-width: 0;
}

.vfr-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.vfr-field-grid label,
.vfr-mile-marker label,
.vfr-toc-choice label {
  display: grid;
  gap: .32rem;
  min-width: 0;
  color: var(--ink-soft);
  font-size: .76rem;
  font-weight: 740;
  letter-spacing: .015em;
}

.vfr-span-2 {
  grid-column: 1 / -1;
}

.vfr-source,
.vfr-weather-note,
.vfr-map-status {
  margin: .8rem 0 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.45;
}

.vfr-route-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .55rem;
  align-items: end;
  margin-bottom: .75rem;
}

.vfr-route-entry label {
  display: grid;
  gap: .3rem;
  color: var(--ink-soft);
  font-size: .76rem;
  font-weight: 740;
}

.vfr-route-entry button {
  min-height: 46px;
}

.vfr-point-list {
  display: grid;
  gap: .55rem;
}

.vfr-point {
  display: grid;
  grid-template-columns: 32px minmax(110px, 1.2fr) minmax(92px, .75fr) minmax(92px, .75fr) 36px 36px;
  gap: .4rem;
  align-items: end;
  padding: .65rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.vfr-point label {
  display: grid;
  gap: .22rem;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 720;
}

.vfr-point input {
  min-width: 0;
}

.vfr-point-index {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  align-self: center;
  color: #fff;
  font-size: .72rem;
  font-weight: 850;
  background: var(--deep);
  border-radius: 50%;
}

.vfr-point-action {
  width: 36px;
  min-height: 40px;
  padding: 0;
  align-self: end;
  color: var(--ink-soft);
  background: transparent;
  border-color: var(--line);
  box-shadow: none;
}

.vfr-point-action:hover:not(:disabled) {
  color: var(--accent);
  background: var(--accent-soft);
}

.vfr-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .7rem;
}

.vfr-inline-actions button {
  min-height: 42px;
}

.vfr-mile-marker {
  display: grid;
  grid-template-columns: 1fr .8fr auto;
  gap: .6rem;
  align-items: end;
  margin-top: .9rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
}

.vfr-mile-marker button {
  min-height: 46px;
}

.vfr-choice {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .8rem;
}

.vfr-choice label {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: .42rem;
  padding: .55rem .75rem;
  color: var(--ink-soft);
  font-size: .78rem;
  font-weight: 760;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.vfr-choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.vfr-toc-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  margin-top: .85rem;
}

.vfr-map-toolbar {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .8rem;
}

.vfr-map-toolbar h2 {
  margin: .08rem 0 0;
}
.vfr-map-controls {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-right: 46px;
}
.vfr-map-layers {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: .2rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.vfr-map-layers button {
  min-height: 36px;
  padding: .45rem .72rem;
  color: var(--muted);
  font-size: .7rem;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.vfr-map-layers button[aria-pressed="true"] {
  color: #fff;
  background: var(--deep);
  border-color: var(--deep);
}

.vfr-map {
  width: 100%;
  height: min(59vh, 630px);
  min-height: 430px;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  isolation: isolate;
}

.vfr-map .leaflet-control {
  font-family: inherit;
}

.vfr-map .leaflet-marker-icon {
  touch-action: none;
}

.vfr-results {
  margin-top: 1rem;
}

.vfr-summary-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: .6rem;
}

.vfr-stat {
  padding: .8rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.vfr-stat span {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 760;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.vfr-stat strong {
  display: block;
  margin-top: .15rem;
  color: var(--ink);
  font-size: 1.12rem;
}

.vfr-warnings {
  display: grid;
  gap: .4rem;
  margin-top: .75rem;
}

.vfr-warning {
  margin: 0;
  padding: .65rem .75rem;
  color: #725017;
  font-size: .78rem;
  background: #fff4d9;
  border: 1px solid #efd59b;
  border-radius: var(--radius-sm);
}

html[data-theme="dark"] .vfr-warning {
  color: #f5d58c;
  background: #372b15;
  border-color: #665126;
}

.vfr-weather-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: .6rem;
  margin-top: .75rem;
}

.vfr-weather-card {
  min-width: 0;
  padding: .7rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.vfr-weather-card strong {
  display: block;
  margin-bottom: .25rem;
}

.vfr-weather-card code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .7rem;
  white-space: normal;
}

.vfr-navlog-scroll {
  margin-top: .9rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  -webkit-overflow-scrolling: touch;
}

.vfr-navlog {
  min-width: 1110px;
  font-variant-numeric: tabular-nums;
}

.vfr-navlog th,
.vfr-navlog td {
  padding: .65rem .58rem;
  font-size: .72rem;
  white-space: nowrap;
}

.vfr-navlog th:first-child,
.vfr-navlog td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--surface);
}

.vfr-navlog thead th:first-child {
  z-index: 2;
}

.vfr-step .hidden {
  display: none !important;
}

.vfr-map-fallback {
  display: grid;
  height: 100%;
  place-items: center;
  padding: 2rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1040px) {
  .vfr-layout {
    grid-template-columns: 1fr;
  }

  .vfr-map-column {
    position: static;
    order: -1;
  }

  .vfr-map {
    height: 48vh;
    min-height: 360px;
  }
}

@media (max-width: 680px) {
  .vfr-panel,
  .vfr-map-panel,
  .vfr-results {
    padding: .9rem;
  }

  .vfr-field-grid,
  .vfr-toc-choice {
    grid-template-columns: 1fr;
  }

  .vfr-span-2 {
    grid-column: auto;
  }

  .vfr-field-grid input,
  .vfr-field-grid select,
  .vfr-route-entry input,
  .vfr-point input,
  .vfr-mile-marker input,
  .vfr-mile-marker select,
  .vfr-toc-choice input,
  .vfr-toc-choice select {
    font-size: 16px;
  }

  .vfr-map-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .vfr-map-controls {
    display: grid;
    grid-template-columns: 1fr;
  }

.vfr-map-layers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .vfr-map-layers button {
    min-height: 42px;
  }

  .vfr-map {
    height: 42vh;
    min-height: 300px;
    max-height: 460px;
  }

  .vfr-point {
    grid-template-columns: 32px minmax(0, 1fr) 44px 44px;
  }

  .vfr-point .vfr-coordinate {
    grid-column: span 2;
  }

  .vfr-point-index {
    grid-row: 1;
  }

  .vfr-point .vfr-name {
    grid-column: 2;
  }

  .vfr-point-action {
    width: 44px;
    min-height: 44px;
  }

  .vfr-route-entry,
  .vfr-mile-marker {
    grid-template-columns: 1fr;
  }

  .vfr-route-entry button {
    width: 100%;
  }

  .vfr-mile-marker button {
    width: 100%;
  }

  .vfr-summary-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vfr-stat:last-child {
    grid-column: 1 / -1;
  }

  .vfr-results .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .vfr-results .section-heading button {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .vfr-map-layers button {
    padding-inline: .35rem;
    font-size: .66rem;
  }

  .vfr-point {
    padding: .55rem;
  }
}

/* Guided airport-to-airport VFR workflow */
.vfr-page-heading {
  margin-bottom: .8rem;
}
.vfr-progress-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: .75rem 1rem;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.vfr-trip-summary {
  min-width: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: .76rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vfr-progress {
  display: flex;
  align-items: flex-start;
  gap: .35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vfr-progress li {
  display: grid;
  min-width: 62px;
  justify-items: center;
  gap: .15rem;
  color: var(--muted);
  text-align: center;
}
.vfr-progress li span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  font-size: .68rem;
  font-weight: 850;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 50%;
}
.vfr-progress li small {
  font-size: .61rem;
  font-weight: 720;
  white-space: nowrap;
}
.vfr-progress li.active {
  color: var(--accent);
}
.vfr-progress li.active span {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.vfr-progress li.complete span {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}
.vfr-wizard-layout {
  display: grid;
  grid-template-columns: minmax(440px, .95fr) minmax(480px, 1.05fr);
  gap: 1rem;
  align-items: start;
}
.vfr-wizard-layout.vfr-map-off {
  grid-template-columns: minmax(0, 1fr);
}
.vfr-wizard-main,
.vfr-pane {
  display: grid;
  min-width: 0;
  gap: 1rem;
}
.vfr-map-column-hidden {
  display: none;
}
.vfr-build-route {
  margin-top: .85rem;
}
.vfr-leg-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: .55rem;
  margin-top: .8rem;
}
.vfr-leg-preview article {
  display: grid;
  gap: .12rem;
  padding: .72rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.vfr-leg-preview span,
.vfr-performance-heading span {
  color: var(--accent);
  font-size: .64rem;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.vfr-leg-preview strong {
  font-size: .88rem;
}
.vfr-leg-preview small {
  color: var(--muted);
}
.vfr-loading-stations {
  display: grid;
  gap: .5rem;
}
.vfr-loading-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(140px, .72fr) minmax(130px, .72fr);
  gap: .55rem;
  align-items: center;
  padding: .6rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.vfr-loading-row > div {
  display: grid;
}
.vfr-loading-row strong {
  font-size: .8rem;
}
.vfr-loading-row small,
.vfr-station-empty {
  color: var(--muted);
  font-size: .68rem;
}
.vfr-station-empty {
  padding: .72rem .75rem;
}
.vfr-deviation-details {
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.vfr-deviation-details summary {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem .8rem;
  color: var(--ink-soft);
  font-size: .76rem;
  font-weight: 780;
  cursor: pointer;
}
.vfr-deviation-card {
  display: grid;
  grid-template-columns: repeat(6, minmax(85px, 1fr));
  gap: .45rem;
  padding: .75rem;
  border-top: 1px solid var(--line);
}
.vfr-deviation-card label {
  display: grid;
  gap: .2rem;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 750;
}
.vfr-deviation-card input {
  min-width: 0;
}
.vfr-leg-heading,
.vfr-performance-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .9rem;
}
.vfr-leg-heading h2,
.vfr-performance-heading h3 {
  margin: .08rem 0 0;
}
.vfr-leg-count {
  flex: 0 0 auto;
  padding: .35rem .55rem;
  color: var(--deep);
  font-size: .68rem;
  font-weight: 820;
  background: var(--green-soft);
  border-radius: 999px;
}
html[data-theme="dark"] .vfr-leg-count {
  color: var(--green);
}
.vfr-airport-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  margin-bottom: .9rem;
}
.vfr-airport-card {
  padding: .85rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.vfr-airport-card > span {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 820;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.vfr-airport-card > strong {
  display: block;
  margin-top: .2rem;
  color: var(--accent);
  font-size: 1.2rem;
}
.vfr-airport-card h3 {
  margin: .08rem 0 .65rem;
  font-size: .84rem;
}
.vfr-airport-card dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .35rem;
  margin: 0;
}
.vfr-airport-card dl div {
  min-width: 0;
}
.vfr-airport-card dt {
  color: var(--muted);
  font-size: .58rem;
  font-weight: 720;
  text-transform: uppercase;
}
.vfr-airport-card dd {
  margin: .06rem 0 0;
  font-size: .72rem;
  font-weight: 760;
}
.vfr-leg-settings {
  padding-top: .85rem;
  border-top: 1px solid var(--line);
}
.vfr-direction-slider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: .55rem;
  align-items: center;
  color: var(--ink-soft);
  font-size: .76rem;
  font-weight: 760;
}
.vfr-direction-slider > input[type="range"] {
  grid-column: 1;
  width: 100%;
  accent-color: var(--accent);
}
.vfr-direction-slider > .input-with-unit {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.vfr-selection-readout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-top: .8rem;
  padding: .7rem .8rem;
  color: var(--ink-soft);
  font-size: .75rem;
  background: var(--green-soft);
  border: 1px solid color-mix(in srgb, var(--green) 35%, var(--line));
  border-radius: var(--radius-sm);
}
.vfr-selection-readout span {
  color: var(--muted);
  text-align: right;
}
.vfr-tod-panel .vfr-selection-readout {
  background: color-mix(in srgb, var(--purple) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--purple) 42%, var(--line));
}
.vfr-instruction,
.vfr-tod-formula,
.vfr-empty-state,
.vfr-inline-error {
  margin: 0 0 .8rem;
  color: var(--muted);
  font-size: .76rem;
}
.vfr-tod-formula {
  padding: .65rem .75rem;
  background: var(--surface-soft);
  border-left: 3px solid var(--purple);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.vfr-inline-error {
  grid-column: 1 / -1;
  color: var(--red);
}
.vfr-flight-leg-row th {
  position: static !important;
  color: #fff;
  text-align: left;
  background: var(--deep) !important;
}
.vfr-performance-briefings {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
.vfr-performance-card {
  padding: 1rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.vfr-performance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: .55rem;
}
.vfr-valid,
.vfr-invalid {
  padding: .35rem .55rem;
  font-size: .68rem;
  border-radius: 999px;
}
.vfr-valid {
  color: var(--green);
  background: var(--green-soft);
}
.vfr-invalid {
  color: var(--red);
  background: var(--red-soft);
}
.vfr-cg-plot {
  display: block;
  width: 100%;
  max-width: 720px;
  max-height: 520px;
  margin: .85rem auto 0;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.vfr-map-handle {
  display: grid !important;
  width: 42px !important;
  height: 42px !important;
  place-items: center;
  margin: 0 !important;
  color: #fff;
  font-size: .6rem;
  font-weight: 900;
  background: var(--green);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
}
.vfr-map-handle-tod {
  background: var(--purple);
}
.vfr-navlog {
  min-width: 1240px;
}
@media (max-width: 1120px) {
  .vfr-wizard-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .vfr-map-column {
    position: static;
    order: -1;
  }
  .vfr-map {
    height: 48vh;
    min-height: 350px;
  }
}
@media (max-width: 760px) {
  .vfr-progress-shell {
    display: grid;
  }
  .vfr-progress {
    gap: .1rem;
    justify-content: space-between;
    overflow: visible;
  }
  .vfr-progress li {
    flex: 1 1 20%;
    min-width: 0;
  }
  .vfr-progress li small {
    font-size: .54rem;
    line-height: 1.15;
    white-space: normal;
  }
  .vfr-loading-row {
    grid-template-columns: 1fr 1fr;
  }
  .vfr-loading-row > div {
    grid-column: 1 / -1;
  }
  .vfr-deviation-card {
    grid-template-columns: repeat(3, minmax(80px, 1fr));
  }
  .vfr-airport-overview,
  .vfr-performance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vfr-direction-slider {
    grid-template-columns: minmax(0, 1fr) 105px;
  }
  .vfr-selection-readout {
    align-items: flex-start;
    flex-direction: column;
  }
  .vfr-selection-readout span {
    text-align: left;
  }
  .vfr-map {
    height: 42vh;
    min-height: 300px;
    max-height: 440px;
  }
  .vfr-field-grid input,
  .vfr-field-grid select,
  .vfr-route-entry input,
  .vfr-loading-row input,
  .vfr-loading-row select,
  .vfr-deviation-card input,
  .vfr-direction-slider input {
    font-size: 16px;
  }
}
@media (max-width: 430px) {
  .vfr-airport-overview {
    grid-template-columns: 1fr;
  }
  .vfr-performance-grid {
    grid-template-columns: 1fr 1fr;
  }
  .vfr-deviation-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vfr-leg-heading,
  .vfr-performance-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .vfr-progress li:nth-child(4) small,
  .vfr-progress li:nth-child(5) small {
    white-space: normal;
  }
}

/* VFR XC worksheet and briefing refinements */
.vfr-route-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  padding: .7rem;
  margin: .7rem 0;
  background: color-mix(in srgb, var(--surface) 86%, var(--blue) 14%);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.vfr-route-strip i {
  color: var(--muted);
  font-size: .75rem;
  font-style: normal;
}
.vfr-route-chip {
  padding: .3rem .5rem;
  color: var(--ink);
  font-size: .66rem;
  font-weight: 850;
  letter-spacing: .025em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.vfr-route-chip-toc {
  color: #075d36;
  background: #dff8e9;
  border-color: #71d79d;
}
.vfr-route-chip-tod {
  color: #5a2788;
  background: #f2e8ff;
  border-color: #b989e8;
}
.vfr-stop-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr .8fr;
  gap: .7rem;
  align-items: end;
}
.vfr-map-symbol {
  background: transparent !important;
  border: 0 !important;
}
.vfr-map-symbol span {
  display: block;
  width: 12px;
  pointer-events: none;
  height: 12px;
  background: #20b9eb;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .65);
}
.vfr-map-symbol.leaflet-marker-draggable {
  cursor: grab;
}
.vfr-map-symbol.leaflet-marker-draggable:active {
  cursor: grabbing;
}
.vfr-map-symbol.leaflet-marker-draggable span {
  margin: 15px;
}

.vfr-map-symbol-toc span {
  background: #62d493;
  border-radius: 2px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.vfr-map-symbol-tod span {
  background: #a46add;
  border-radius: 2px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.vfr-map-symbol-departure span {
  width: 15px;
  height: 15px;
  background: #ffb52f;
}
.vfr-map-symbol-destination span {
  width: 15px;
  height: 15px;
  background: #ff6d48;
}
.vfr-map-symbol.vfr-map-symbol-split {
  cursor: grab;
}
.vfr-map-symbol.vfr-map-symbol-split:active {
  cursor: grabbing;
}
.vfr-map-symbol.vfr-map-symbol-split span,
.vfr-map-symbol.vfr-map-symbol-split.leaflet-marker-draggable span {
  width: 16px;
  height: 16px;
  margin: 14px;
  background: #f28a3c;
  border: 3px solid #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(18, 37, 39, .68);
  transform: rotate(45deg);
}
.vfr-map-tooltip {
  padding: 2px 5px !important;
  color: #f7fbfc !important;
  font-size: .61rem !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  background: rgba(13, 36, 40, .88) !important;
  border: 1px solid rgba(255, 255, 255, .7) !important;
  border-radius: 4px !important;
}

.vfr-map-tooltip::before {
  border-top-color: rgba(13, 36, 40, .88) !important;
}
.vfr-navlog-scroll {
  background: var(--surface);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-small);
  scrollbar-color: var(--line-strong) var(--surface-soft);
}
.vfr-navlog {
  width: 100%;
  min-width: 2200px;
  table-layout: fixed;
  color: var(--ink);
  background: var(--surface);
  border-collapse: collapse;
}
.vfr-navlog-columns col:nth-child(1) { width: 185px; }
.vfr-navlog-columns col:nth-child(2) { width: 112px; }
.vfr-navlog-columns col:nth-child(3) { width: 112px; }
.vfr-navlog-columns col:nth-child(4) { width: 210px; }
.vfr-navlog-columns col:nth-child(5) { width: 132px; }
.vfr-navlog-columns col:nth-child(6) { width: 112px; }
.vfr-navlog-columns col:nth-child(7),
.vfr-navlog-columns col:nth-child(8),
.vfr-navlog-columns col:nth-child(9),
.vfr-navlog-columns col:nth-child(10) { width: 92px; }
.vfr-navlog-columns col:nth-child(11) { width: 118px; }
.vfr-navlog-columns col:nth-child(12) { width: 102px; }
.vfr-navlog-columns col:nth-child(13),
.vfr-navlog-columns col:nth-child(15) { width: 112px; }
.vfr-navlog-columns col:nth-child(14) { width: 98px; }
.vfr-navlog-columns col:nth-child(16) { width: 148px; }
.vfr-paper-head {
  color: #f7f6ef;
  background: var(--deep);
}
.vfr-paper-head th {
  padding: .48rem .3rem;
  color: #f7f6ef;
  background: var(--deep);
  border: 1px solid #4a625e;
  box-shadow: inset 0 -3px 0 var(--accent);
  font-size: .66rem;
  line-height: 1.12;
  text-align: center;
}
.vfr-paper-head span,
.vfr-paper-head small {
  display: block;
}
.vfr-paper-head small {
  margin-top: .18rem;
  font-size: .57rem;
  font-weight: 650;
}

.vfr-navlog tbody td {
  height: 84px;
  padding: .28rem .32rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-bottom: 3px solid var(--paper-deep);
  font-size: .65rem;
  vertical-align: top;
}
.vfr-navlog tbody tr:nth-child(even) td {
  background: var(--surface-soft);
}
.vfr-navlog th:first-child,
.vfr-navlog td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 185px;
  background: var(--surface);
  box-shadow: 3px 0 0 var(--line-strong);
}
.vfr-navlog tbody tr:nth-child(even) td:first-child {
  background: var(--surface-soft);
}
.vfr-navlog .vfr-paper-head th:first-child {
  z-index: 4;
  color: #f7f6ef;
  background: var(--deep);
}
.vfr-navlog td:first-child strong,
.vfr-navlog td:first-child small {
  display: block;
}
.vfr-navlog td:first-child strong {
  color: var(--ink);
  font-size: .74rem;
}
.vfr-navlog td:first-child small {
  margin-top: .3rem;
  color: var(--muted);
}

.vfr-paper-values {
  display: grid;
  height: 100%;
  grid-auto-rows: minmax(23px, auto);
}
.vfr-paper-values > span {
  display: flex;
  min-width: 0;
  min-height: 23px;
  align-items: center;
  padding: .08rem .12rem;
  overflow: hidden;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vfr-paper-values > span + span {
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.vfr-paper-values > .vfr-write-in {
  background: color-mix(in srgb, var(--surface-soft) 76%, transparent);
}
.vfr-flight-leg-row th {
  position: static !important;
  padding: .5rem .7rem;
  color: #f7f6f2;
  text-align: left;
  background: linear-gradient(100deg, var(--deep), var(--deep-2)) !important;
  border: 1px solid #4a625e;
  border-left: 5px solid var(--accent);
}
.vfr-navlog tbody .vfr-navlog-total-row td {
  height: 62px;
  color: var(--ink);
  font-weight: 760;
  background: color-mix(in srgb, var(--green-soft) 86%, var(--surface)) !important;
  border-top: 4px solid var(--green);
  border-bottom: 4px solid var(--green);
  vertical-align: middle;
}
.vfr-navlog tbody .vfr-navlog-total-row td:first-child {
  background: color-mix(in srgb, var(--green-soft) 86%, var(--surface)) !important;
}
.vfr-navlog-total-note {
  color: var(--ink-soft) !important;
  font-size: .7rem !important;
  letter-spacing: .015em;
}
.vfr-navlog tbody .vfr-navlog-grand-total-row td {
  height: 68px;
  color: #fffdf8 !important;
  font-weight: 800;
  background-color: #223936 !important;
  background-image: linear-gradient(100deg, #223936, #192e2c) !important;
  border-top: 5px solid var(--accent);
  border-bottom: 5px solid var(--accent);
  vertical-align: middle;
}
.vfr-navlog tbody .vfr-navlog-grand-total-row td:first-child,
.vfr-navlog tbody .vfr-navlog-grand-total-row td:first-child strong,
.vfr-navlog tbody .vfr-navlog-grand-total-row td:first-child small,
.vfr-navlog tbody .vfr-navlog-grand-total-row .vfr-navlog-total-note,
.vfr-navlog tbody .vfr-navlog-grand-total-row .vfr-paper-values > span,
.vfr-navlog tbody .vfr-navlog-grand-total-row .vfr-paper-values > span + span {
  color: #fffdf8 !important;
}
.vfr-navlog tbody .vfr-navlog-grand-total-row .vfr-paper-values > span,
.vfr-navlog tbody .vfr-navlog-grand-total-row .vfr-paper-values > span + span {
  background: transparent !important;
}
.vfr-navlog tbody .vfr-navlog-grand-total-row .vfr-paper-values > span + span {
  border-top-color: rgba(255, 255, 255, .25);
}
.vfr-runway-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin-top: .9rem;
}
.vfr-runway-result {
  overflow: hidden;
  color: #f5f5ef;
  background: #19312e;
  border: 1px solid #41605b;
  border-radius: 22px;
}

.vfr-runway-result > header {
  padding: 1.15rem 1.2rem .7rem;
}
.vfr-runway-result > header h4 {
  margin: 0 0 .65rem;
  color: #fff;
  font-size: 1.35rem;
}
.vfr-runway-result > header span {
  color: #b9cbc7;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .035em;
}
.vfr-runway-result-body {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: .75rem;
  padding: 0 1rem 1rem;
}
.vfr-runway-gauge {
  position: relative;
  min-height: 520px;
  background: #17322f;
  border: 1px solid #41605b;
  border-radius: 18px;
}
.vfr-gauge-track {
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 25px;
  width: 18px;
  overflow: hidden;
  background: #38534e;
  border: 2px solid #56756f;
  border-radius: 10px;
}

.vfr-gauge-track i {
  position: absolute;
  left: 0;
  width: 100%;
}
.vfr-gauge-track .ground {
  top: 0;
  height: var(--ground);
  background: #78da9a;
}
.vfr-gauge-track .fifty {
  top: var(--ground);
  height: calc(var(--fifty) - var(--ground));
  background: #70d3e7;
}
.vfr-gauge-track .margin {
  top: var(--fifty);
  height: calc(var(--available) - var(--fifty));
  background: #f4b659;
}
.vfr-gauge-track .shortfall {
  top: var(--available);
  height: calc(var(--fifty) - var(--available));
  background: #f06c69;
}
.vfr-gauge-zero,
.vfr-gauge-mark {
  position: absolute;
  left: 56px;
  color: #a9bbb7;
  font-size: .61rem;
  font-weight: 850;
  white-space: nowrap;
}

.vfr-gauge-zero {
  top: 24px;
}
.vfr-gauge-mark {
  transform: translateY(-50%);
}
.vfr-gauge-mark.ground {
  top: var(--ground);
  color: #7ee3a0;
}
.vfr-gauge-mark.fifty {
  top: var(--fifty);
  color: #7cdced;
}
.vfr-gauge-mark.available {
  top: min(calc(var(--available) - 2px), calc(100% - 18px));
}
.vfr-runway-metrics {
  display: grid;
  align-content: start;
  gap: .48rem;
}
.vfr-runway-metric {
  padding: .62rem .72rem;
  background: rgba(255, 255, 255, .045);
  border: 1px solid #435b57;
  border-radius: 13px;
}
.vfr-runway-metric span,
.vfr-runway-metric strong {
  display: block;
}

.vfr-runway-metric span {
  color: #a9bbb7;
  font-size: .61rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.vfr-runway-metric strong {
  margin-top: .3rem;
  color: #f7f6f1;
  font-size: .92rem;
}
.vfr-runway-metric.green {
  border-left: 4px solid #75dfa0;
}
.vfr-runway-metric.green strong {
  color: #75dfa0;
}
.vfr-runway-metric.blue {
  border-left: 4px solid #6ed7ea;
}
.vfr-runway-metric.blue strong {
  color: #6ed7ea;
}
.vfr-runway-metric.red {
  border-left: 4px solid #f06c69;
}
.vfr-runway-metric.red strong {
  color: #ff8a86;
}

.vfr-wb-sheet {
  position: relative;
  margin-top: 1rem;
  padding: 1rem;
  overflow: hidden;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 4px 0 var(--accent), var(--shadow-small);
}
.vfr-wb-sheet > div:first-child span {
  color: var(--accent);
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.vfr-wb-sheet h4 {
  margin: .18rem 0 .8rem;
  color: var(--ink);
  font-size: 1.05rem;
}
.vfr-wb-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1.15fr) minmax(280px, .85fr);
  gap: .9rem;
  align-items: start;
}
.vfr-wb-sheet .table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  -webkit-overflow-scrolling: touch;
}
.vfr-wb-sheet table {
  width: 100%;
  min-width: 600px;
  color: var(--ink);
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
  background: var(--surface);
  border-collapse: collapse;
}
.vfr-wb-sheet th,
.vfr-wb-sheet td {
  padding: .48rem .55rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: right;
}
.vfr-wb-sheet th {
  color: #f7f6ef;
  font-size: .63rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--deep);
  border-color: #4a625e;
  box-shadow: inset 0 -3px 0 var(--accent);
}
.vfr-wb-sheet th:first-child,
.vfr-wb-sheet td:first-child {
  text-align: left;
}
.vfr-wb-sheet tbody tr:nth-child(even) td {
  background: var(--surface-soft);
}
.vfr-wb-subtotal td,
.vfr-wb-total td,
.vfr-wb-summary {
  color: var(--ink);
  font-weight: 850;
  background: var(--green-soft) !important;
  border-top: 2px solid var(--green);
}
.vfr-wb-deduction td {
  color: var(--muted);
  font-style: italic;
}
.vfr-wb-sheet .vfr-cg-plot {
  width: 100%;
  max-width: none;
  max-height: 520px;
  margin: 0;
  background: #19312e;
  border-color: #41605b;
  border-radius: var(--radius-md);
}
@media (max-width: 900px) {
  .vfr-runway-pair {
    grid-template-columns: 1fr;
  }
  .vfr-wb-layout {
    grid-template-columns: 1fr;
  }
  .vfr-stop-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .vfr-stop-grid {
    grid-template-columns: 1fr;
  }
  .vfr-runway-result {
    border-radius: 16px;
  }
  .vfr-runway-result-body {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: .5rem;
    padding: 0 .65rem .65rem;
  }
  .vfr-runway-gauge {
    min-height: 470px;
  }
  .vfr-gauge-track {
    left: 15px;
    width: 15px;
  }
  .vfr-gauge-zero,
  .vfr-gauge-mark {
    left: 39px;
    font-size: .53rem;
  }
  .vfr-runway-metric {
    padding: .55rem .58rem;
  }
  .vfr-route-strip {
    gap: .28rem;
  }
}

/* Route altitude changes, final actions, and supplemental briefing */
.vfr-flightlogger-panel {
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--accent) 11%, transparent), transparent 42%),
    var(--surface);
  border-left: 5px solid var(--accent);
}

.vfr-flightlogger-controls {
  display: grid;
  grid-template-columns: minmax(190px, .75fr) minmax(230px, 1fr);
  gap: .7rem;
  align-items: end;
}

.vfr-flightlogger-controls label {
  display: grid;
  gap: .3rem;
  color: var(--ink-soft);
  font-size: .76rem;
  font-weight: 740;
}

.vfr-flightlogger-controls button {
  min-height: 46px;
}

.vfr-flightlogger-status {
  margin-top: .8rem;
  padding: .75rem .8rem;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.45;
  background: color-mix(in srgb, var(--surface-soft) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.vfr-flightlogger-status article > div:first-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.vfr-flightlogger-status article > div:first-child span,
.vfr-flightlogger-status dt {
  color: var(--accent);
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vfr-flightlogger-status article > div:first-child strong {
  color: var(--ink);
  text-align: right;
}

.vfr-flightlogger-status dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  margin: .75rem 0;
}

.vfr-flightlogger-status dl > div {
  min-width: 0;
  padding: .55rem .6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.vfr-flightlogger-status dd {
  margin: .2rem 0 0;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-weight: 760;
}

.vfr-flightlogger-status p {
  margin: .35rem 0 0;
}

.vfr-flightlogger-warning {
  color: color-mix(in srgb, var(--amber) 72%, var(--ink)) !important;
  font-weight: 780;
}

.vfr-point {
  grid-template-columns: 32px minmax(110px, 1.1fr) minmax(92px, .7fr) minmax(92px, .7fr) minmax(132px, .85fr) 36px 36px;
}

.vfr-point .vfr-altitude .input-with-unit {
  min-width: 0;
}

.vfr-point .vfr-altitude input {
  width: 100%;
}

.leaflet-tile {
  image-rendering: auto !important;
}

.route-actions-vfr.vfr-final-actions {
  width: min(920px, 100%);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .55rem;
  padding: .5rem;
}

.route-actions-vfr.vfr-final-actions button {
  min-height: 52px;
  padding-inline: .7rem;
  white-space: nowrap;
}

.vfr-navlog tbody .vfr-navlog-total-row td,
.vfr-navlog tbody .vfr-navlog-grand-total-row td {
  overflow: hidden;
}

.vfr-navlog tbody .vfr-navlog-total-row td:first-child,
.vfr-navlog tbody .vfr-navlog-grand-total-row td:first-child {
  position: static !important;
}

.vfr-navlog tbody .vfr-navlog-total-note {
  padding-inline: .75rem !important;
  overflow: hidden;
  line-height: 1.35;
  text-align: left !important;
  text-overflow: ellipsis;
  white-space: normal !important;
}

.vfr-briefing-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  padding: clamp(.6rem, 2vw, 1.4rem);
  place-items: center;
  background: rgba(8, 24, 27, .72);
  backdrop-filter: blur(10px);
}

.vfr-briefing-overlay.hidden {
  display: none !important;
}

.vfr-briefing-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1180px, 100%);
  height: min(860px, calc(100dvh - 2rem));
  overflow: hidden;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .38);
}

.vfr-briefing-header,
.vfr-briefing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
  background: var(--surface);
  border-color: var(--line);
}

.vfr-briefing-header {
  border-bottom: 1px solid var(--line);
}

.vfr-briefing-header h2 {
  margin: .12rem 0 0;
  color: var(--ink);
  font-size: 1.35rem;
}

.vfr-briefing-header .icon-button {
  width: 42px;
  min-height: 42px;
  padding: 0;
  font-size: 1.35rem;
  border-radius: 50%;
}

.vfr-briefing-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 0;
  background: var(--surface-soft);
}

.vfr-briefing-nav {
  min-height: 0;
  padding: .65rem;
  overflow-y: auto;
  background: color-mix(in srgb, var(--deep) 94%, var(--surface));
  border-right: 1px solid var(--line-strong);
}

.vfr-briefing-nav button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  width: 100%;
  min-height: 44px;
  align-items: center;
  gap: .55rem;
  padding: .48rem .58rem;
  color: rgba(255, 255, 255, .72);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  box-shadow: none;
}

.vfr-briefing-nav button + button {
  margin-top: .3rem;
}

.vfr-briefing-nav button span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: inherit;
  font-size: .68rem;
  background: rgba(255, 255, 255, .08);
  border-radius: 50%;
}

.vfr-briefing-nav button[aria-current="step"] {
  color: #fff;
  background: color-mix(in srgb, var(--accent) 74%, var(--deep));
  border-color: color-mix(in srgb, var(--accent) 80%, #fff);
}

.vfr-briefing-slide {
  min-width: 0;
  min-height: 0;
  padding: clamp(1rem, 2.2vw, 1.8rem);
  overflow-y: auto;
  background: var(--surface-soft);
}

.vfr-briefing-slide > header {
  margin-bottom: 1rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--line);
}

.vfr-briefing-slide > header h3 {
  margin: .2rem 0 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 2.15rem);
}

.vfr-briefing-loading {
  display: grid;
  min-height: 280px;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.vfr-briefing-stats,
.vfr-briefing-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

.vfr-briefing-stats {
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
}

.vfr-briefing-stack {
  display: grid;
  gap: .65rem;
}

.vfr-briefing-notice,
.vfr-briefing-empty,
.vfr-briefing-report,
.vfr-briefing-advisory,
.vfr-briefing-pirep {
  padding: .85rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.vfr-briefing-notice {
  margin-top: .75rem;
  border-left: 4px solid var(--blue);
}

.vfr-briefing-notice.critical,
.vfr-briefing-empty.warning {
  border-left: 4px solid var(--amber);
}

.vfr-briefing-empty.good {
  border-left: 4px solid var(--green);
}

.vfr-briefing-notice p,
.vfr-briefing-empty p {
  margin: .35rem 0 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.vfr-briefing-warning {
  margin: 0;
  padding: .65rem .75rem;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--amber) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--amber) 36%, var(--line));
  border-radius: var(--radius-sm);
}

.vfr-briefing-report header,
.vfr-briefing-advisory header,
.vfr-briefing-pirep header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .65rem;
}

.vfr-briefing-report header span,
.vfr-briefing-advisory header span,
.vfr-briefing-pirep header span,
.vfr-briefing-advisory time {
  color: var(--muted);
  font-size: .7rem;
}

.vfr-briefing-report code,
.vfr-briefing-advisory code,
.vfr-briefing-pirep code {
  display: block;
  padding: .55rem;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .7rem;
  line-height: 1.45;
  white-space: pre-wrap;
  background: var(--surface-soft);
  border-radius: 8px;
}

.vfr-briefing-report > div + div {
  margin-top: .55rem;
}

.vfr-briefing-report small {
  display: block;
  margin-bottom: .22rem;
  color: var(--accent);
  font-size: .62rem;
  font-weight: 850;
}

.vfr-briefing-advisory dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  margin: 0 0 .65rem;
}

.vfr-briefing-advisory dt {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.vfr-briefing-advisory dd {
  margin: .15rem 0 0;
  font-weight: 760;
}

.vfr-briefing-stations {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .7rem;
}

.vfr-briefing-stations span {
  padding: .28rem .48rem;
  font-size: .68rem;
  font-weight: 850;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.vfr-briefing-links,
.vfr-briefing-source-list {
  display: grid;
  gap: .55rem;
  margin-top: .8rem;
}

.vfr-briefing-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vfr-briefing-links a,
.vfr-briefing-source-list a {
  padding: .68rem .75rem;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 800;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.vfr-briefing-source-list a {
  display: flex;
  justify-content: space-between;
  gap: .7rem;
}

.vfr-briefing-source-list a span {
  color: var(--muted);
  white-space: nowrap;
}

.vfr-briefing-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem;
  margin-top: .9rem;
}

.vfr-briefing-checklist p {
  margin: 0;
  padding: .55rem .65rem;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.vfr-briefing-footer {
  border-top: 1px solid var(--line);
}

.vfr-briefing-footer span {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
}

.vfr-briefing-warning-list,
.vfr-raw-details {
  margin-top: .75rem;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.vfr-briefing-warning-list summary,
.vfr-raw-details summary {
  padding: .62rem .72rem;
  color: var(--ink);
  font-size: .72rem;
  font-weight: 820;
  cursor: pointer;
}

.vfr-briefing-warning-list p {
  margin: 0;
  padding: .55rem .72rem;
  border-top: 1px solid var(--line);
}

.vfr-raw-details > div,
.vfr-raw-details > code {
  display: block;
  padding: 0 .7rem .7rem;
}

.vfr-raw-details small {
  display: block;
  margin: .5rem 0 .2rem;
  color: var(--accent);
  font-size: .62rem;
  font-weight: 850;
  text-transform: uppercase;
}

.vfr-raw-details code {
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .68rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.vfr-weather-visual-grid,
.vfr-briefing-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .72rem;
}

.vfr-weather-visual,
.vfr-briefing-visual-card {
  min-width: 0;
  padding: .85rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 5px solid var(--muted);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-small);
}

.vfr-weather-visual.vfr-category-vfr,
.vfr-cloud-column.vfr-category-vfr { border-color: var(--green); }
.vfr-weather-visual.vfr-category-mvfr,
.vfr-cloud-column.vfr-category-mvfr { border-color: var(--blue); }
.vfr-weather-visual.vfr-category-ifr,
.vfr-cloud-column.vfr-category-ifr { border-color: #d54f5b; }
.vfr-weather-visual.vfr-category-lifr,
.vfr-cloud-column.vfr-category-lifr { border-color: #bb59d1; }

.vfr-weather-visual > header,
.vfr-briefing-visual-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .65rem;
}

.vfr-weather-visual > header div,
.vfr-briefing-visual-card > header {
  min-width: 0;
}

.vfr-weather-visual > header span,
.vfr-weather-visual > header strong,
.vfr-weather-visual > header small,
.vfr-briefing-visual-card > header span,
.vfr-briefing-visual-card > header strong {
  display: block;
}

.vfr-weather-visual > header span,
.vfr-briefing-visual-card > header span {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 780;
  text-transform: uppercase;
}

.vfr-weather-visual > header strong,
.vfr-briefing-visual-card > header strong {
  margin-top: .14rem;
  font-size: 1rem;
}

.vfr-weather-visual > header small {
  margin-top: .08rem;
  overflow: hidden;
  color: var(--muted);
  font-size: .67rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vfr-weather-visual > header b {
  padding: .34rem .5rem;
  color: var(--deep);
  font-size: .72rem;
  background: var(--surface-soft);
  border: 1px solid currentColor;
  border-radius: 999px;
}

.vfr-category-vfr > header b { color: var(--green); }
.vfr-category-mvfr > header b { color: var(--blue); }
.vfr-category-ifr > header b { color: #d54f5b; }
.vfr-category-lifr > header b { color: #bb59d1; }

.vfr-weather-valid {
  margin: .6rem 0;
  color: var(--ink-soft);
  font-size: .7rem;
  font-weight: 720;
}

.vfr-weather-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .42rem;
}

.vfr-weather-metrics > div {
  min-width: 0;
  padding: .5rem .55rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.vfr-weather-metrics span,
.vfr-weather-metrics strong {
  display: block;
}

.vfr-weather-metrics span {
  color: var(--muted);
  font-size: .57rem;
  font-weight: 820;
  text-transform: uppercase;
}

.vfr-weather-metrics strong {
  margin-top: .16rem;
  overflow: hidden;
  color: var(--ink);
  font-size: .73rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vfr-briefing-subhead {
  margin: 1rem 0 .55rem;
  color: var(--ink);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vfr-cloud-chart {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  min-height: 340px;
  overflow: hidden;
  background: linear-gradient(#b9def4 0%, #edf7fb 58%, #d9c5a1 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
}

.vfr-cloud-axis {
  display: flex;
  padding: .8rem .3rem;
  flex-direction: column;
  justify-content: space-between;
  color: #163b45;
  font-size: .58rem;
  font-weight: 850;
  text-align: center;
  background: rgba(255, 255, 255, .35);
  border-right: 1px solid rgba(23, 58, 66, .22);
}

.vfr-cloud-columns {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: .45rem;
  padding: .7rem;
  overflow-x: auto;
}

.vfr-cloud-columns::after {
  position: absolute;
  right: 0;
  bottom: var(--cruise-level);
  left: 0;
  border-top: 2px dashed rgba(255, 91, 61, .8);
  content: "";
  pointer-events: none;
}

.vfr-cloud-columns article {
  display: grid;
  grid-template-rows: minmax(230px, 1fr) auto auto auto;
  min-width: 82px;
  gap: .12rem;
  color: #17393f;
  text-align: center;
}

.vfr-cloud-column {
  position: relative;
  min-height: 230px;
  border-bottom: 5px solid var(--muted);
}

.vfr-cloud-layer {
  position: absolute;
  left: 50%;
  width: 64%;
  height: 13px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(54, 75, 81, .25);
  border-radius: 999px;
  box-shadow: -10px 4px 0 -2px rgba(255, 255, 255, .86), 10px 3px 0 -3px rgba(255, 255, 255, .88);
}

.vfr-cover-bkn,
.vfr-cover-ovc { width: 90%; background: #d9e0e1; }
.vfr-cover-sct { width: 70%; }
.vfr-cover-few { width: 45%; }

.vfr-cloud-clear {
  position: absolute;
  top: 35%;
  left: 50%;
  color: #326b78;
  font-size: .64rem;
  font-style: normal;
  font-weight: 900;
  transform: translateX(-50%);
}

.vfr-cloud-columns article > strong {
  font-size: .74rem;
}

.vfr-cloud-columns article > small {
  font-size: .6rem;
}

.vfr-cloud-columns article > b {
  font-size: .62rem;
}

.vfr-wind-profile {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: .65rem;
}

.vfr-wind-profile article {
  padding: .75rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.vfr-wind-profile header span,
.vfr-wind-profile header strong {
  display: block;
}

.vfr-wind-profile header span {
  color: var(--accent);
  font-size: .6rem;
  font-weight: 850;
  text-transform: uppercase;
}

.vfr-wind-profile header strong {
  margin-top: .16rem;
  overflow: hidden;
  font-size: .76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vfr-wind-glyph {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  margin: .55rem 0;
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 9%, var(--surface-soft));
  border-radius: 12px;
}

.vfr-wind-glyph i {
  display: inline-block;
  font-size: 2.8rem;
  font-style: normal;
  line-height: 1;
}

.vfr-wind-glyph b {
  color: var(--ink);
  font-size: .82rem;
}

.vfr-wind-profile dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .35rem;
  margin: 0;
}

.vfr-wind-profile dl div {
  padding: .42rem;
  background: var(--surface-soft);
  border-radius: 8px;
}

.vfr-wind-profile dt {
  color: var(--muted);
  font-size: .55rem;
  text-transform: uppercase;
}

.vfr-wind-profile dd {
  margin: .12rem 0 0;
  font-size: .7rem;
  font-weight: 780;
}

.vfr-route-weather-map,
.vfr-surface-analysis,
.vfr-radar-view {
  margin: 0 0 .85rem;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
}

.vfr-official-map {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
}

.vfr-official-map-frame-wrap {
  height: 520px;
  overflow: hidden;
  background: #16211d;
}

.vfr-official-map-frame {
  position: relative;
  top: -52px;
  display: block;
  width: 121.96%;
  height: 698px;
  border: 0;
  transform: scale(.82);
  transform-origin: 0 0;
}

.vfr-official-map figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem .8rem;
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
}

.vfr-official-map figcaption strong,
.vfr-official-map figcaption span {
  display: block;
}

.vfr-official-map figcaption span {
  margin-top: .15rem;
  color: var(--muted);
  font-size: .68rem;
}

.vfr-official-map figcaption a {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 850;
  text-decoration: none;
}

.vfr-pirep-live-map {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
}

.vfr-pirep-map {
  width: 100%;
  height: 430px;
  background: #dce9e5;
}

.vfr-pirep-live-map figcaption {
  display: grid;
  gap: .18rem;
  padding: .7rem .8rem;
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
}

.vfr-pirep-live-map figcaption strong {
  font-size: .78rem;
}

.vfr-pirep-live-map figcaption span {
  color: var(--muted);
  font-size: .68rem;
}

.vfr-pirep-label-icon {
  width: auto !important;
  height: auto !important;
  background: transparent;
  border: 0;
}

.vfr-pirep-label-icon span {
  display: block;
  width: max-content;
  max-width: 175px;
  padding: .28rem .42rem;
  color: #fff;
  background: #173d38;
  border: 2px solid #ff6545;
  border-radius: 8px 8px 8px 2px;
  box-shadow: 0 2px 7px rgba(11, 36, 32, .35);
  font-size: .65rem;
  font-weight: 850;
  line-height: 1.15;
  white-space: nowrap;
}

.vfr-pirep-route-label {
  padding: .13rem .3rem;
  color: #173d38;
  background: rgba(248, 245, 238, .94);
  border: 1px solid rgba(23, 61, 56, .38);
  box-shadow: none;
  font-size: .58rem;
  font-weight: 850;
}

.vfr-pirep-popup {
  color: #173d38;
  font-family: inherit;
}

.vfr-pirep-popup > strong {
  display: block;
  margin-bottom: .4rem;
  font-size: .9rem;
}

.vfr-pirep-popup dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: .28rem .7rem;
  margin: 0 0 .5rem;
}

.vfr-pirep-popup dl div { min-width: 0; }
.vfr-pirep-popup dt,
.vfr-pirep-popup > small {
  color: #657772;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.vfr-pirep-popup dd { margin: .08rem 0 0; font-size: .72rem; font-weight: 750; line-height: 1.28; }
.vfr-pirep-popup code {
  display: block;
  margin-top: .18rem;
  padding: .38rem;
  overflow-wrap: anywhere;
  color: #f8f5ee;
  background: #173d38;
  border-radius: 6px;
  font-size: .7rem;
  line-height: 1.4;
  white-space: pre-wrap;
}

.vfr-map-fallback {
  margin: 0;
  padding: 2rem 1rem;
  color: var(--muted);
  text-align: center;
}

.vfr-route-weather-map svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 300px;
  background: #e9f0eb;
}

.vfr-map-water { fill: #dce9e5; stroke: #8ca7a1; }
.vfr-map-grid path { fill: none; stroke: rgba(45, 78, 73, .16); stroke-width: 1; }
.vfr-map-route { fill: none; stroke: #ff6545; stroke-linecap: round; stroke-linejoin: round; stroke-width: 5; }
.vfr-map-route-point circle { fill: #fff; stroke: #183d39; stroke-width: 3; }
.vfr-map-route-point.airport circle { fill: #ffb23e; }
.vfr-map-route-point text,
.vfr-map-alternate text {
  fill: #153b37;
  font-size: 11px;
  font-weight: 850;
  paint-order: stroke;
  stroke: #f7fbf8;
  stroke-width: 3px;
  text-anchor: middle;
}
.vfr-map-alternate circle { fill: #fff; stroke: #3180a1; stroke-width: 3; }
.vfr-map-hazard { fill: rgba(211, 75, 99, .26); stroke: #c43b58; stroke-width: 3; }
.vfr-map-hazard-gairmet { fill: rgba(238, 169, 54, .27); stroke: #c47b15; }
.vfr-map-hazard-cwa { fill: rgba(151, 82, 183, .23); stroke: #85419f; }
.vfr-map-pirep path { fill: #2f80a5; stroke: #fff; stroke-width: 2; }

.vfr-route-weather-map figcaption,
.vfr-surface-analysis figcaption,
.vfr-radar-view figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  padding: .7rem .8rem;
  color: var(--ink-soft);
  font-size: .67rem;
  background: var(--surface);
}

.vfr-route-weather-map figcaption {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.vfr-route-weather-map figcaption span {
  display: flex;
  align-items: center;
  gap: .3rem;
}

.vfr-route-weather-map figcaption i {
  display: inline-block;
  width: 18px;
  height: 5px;
  background: #ff6545;
  border-radius: 999px;
}
.vfr-route-weather-map figcaption i.alternate { height: 10px; background: #3180a1; }
.vfr-route-weather-map figcaption i.hazard { height: 10px; background: #c43b58; }
.vfr-route-weather-map figcaption i.pirep { height: 10px; background: #2f80a5; }

.vfr-weather-image {
  display: grid;
  min-height: 280px;
  padding: .55rem;
  place-items: center;
  background: #e8ece8;
}

.vfr-weather-image img {
  display: block;
  width: 100%;
  max-width: 900px;
  max-height: 520px;
  object-fit: contain;
  image-rendering: auto;
}

.vfr-surface-analysis figcaption {
  justify-content: flex-end;
}

.vfr-radar-view figcaption > div:first-child strong,
.vfr-radar-view figcaption > div:first-child span {
  display: block;
}

.vfr-radar-view figcaption > div:first-child span {
  margin-top: .12rem;
  color: var(--muted);
}

.vfr-radar-controls {
  display: grid;
  grid-template-columns: auto minmax(110px, 1fr) auto;
  align-items: center;
  gap: .5rem;
  min-width: min(100%, 330px);
}

.vfr-radar-controls button {
  min-height: 34px;
  padding: .35rem .65rem;
}

.vfr-radar-controls input {
  width: 100%;
}

.vfr-radar-controls span {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 780;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .vfr-flightlogger-controls,
  .vfr-flightlogger-status dl {
    grid-template-columns: 1fr;
  }
  .vfr-flightlogger-status article > div:first-child {
    align-items: flex-start;
    flex-direction: column;
    gap: .25rem;
  }
  .vfr-flightlogger-status article > div:first-child strong {
    text-align: left;
  }
  .vfr-point {
    grid-template-columns: 32px minmax(0, 1fr) 44px 44px;
  }
  .vfr-point .vfr-name {
    grid-column: 2 / -1;
  }
  .vfr-point .vfr-coordinate:first-of-type {
    grid-column: 1 / 3;
  }
  .vfr-point .vfr-coordinate:nth-of-type(3) {
    grid-column: 3 / 5;
  }
  .vfr-point .vfr-altitude {
    grid-column: 1 / 3;
  }
  .vfr-point-action[data-action="up"] {
    grid-column: 3;
  }
  .vfr-point-action[data-action="remove"] {
    grid-column: 4;
  }
  .route-actions-vfr.vfr-final-actions {
    width: min(100%, 600px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .42rem;
    padding: .42rem;
  }
  .route-actions-vfr.vfr-final-actions button {
    min-height: 48px;
    white-space: normal;
  }
  .vfr-briefing-overlay {
    padding: .35rem;
  }
  .vfr-briefing-shell {
    height: calc(100dvh - .7rem);
    border-radius: 17px;
  }
  .vfr-briefing-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .vfr-briefing-nav {
    display: flex;
    gap: .35rem;
    padding: .5rem;
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }
  .vfr-briefing-nav button {
    flex: 0 0 auto;
    width: auto;
    min-height: 38px;
  }
  .vfr-briefing-nav button + button {
    margin-top: 0;
  }
  .vfr-briefing-report-grid,
  .vfr-weather-visual-grid,
  .vfr-briefing-card-grid,
  .vfr-briefing-links,
  .vfr-briefing-checklist {
    grid-template-columns: 1fr;
  }
  .vfr-route-weather-map svg {
    min-height: 210px;
  }
  .vfr-cloud-chart {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 290px;
  }
  .vfr-cloud-columns article {
    grid-template-rows: minmax(190px, 1fr) auto auto auto;
  }
  .vfr-cloud-column {
    min-height: 190px;
  }
  .vfr-radar-view figcaption {
    align-items: stretch;
    flex-direction: column;
  }
  .vfr-official-map-frame-wrap {
    height: 430px;
  }
  .vfr-official-map-frame {
    top: -46px;
    width: 142.86%;
    height: 680px;
    transform: scale(.7);
  }
  .vfr-official-map figcaption {
    align-items: flex-start;
    flex-direction: column;
  }
  .vfr-pirep-map {
    height: 360px;
  }
  .vfr-pirep-label-icon span {
    max-width: 145px;
    font-size: .58rem;
  }
  .vfr-radar-controls {
    width: 100%;
  }
  .vfr-briefing-header,
  .vfr-briefing-footer {
    padding: .65rem .7rem;
  }
  .vfr-briefing-footer button {
    min-height: 42px;
  }
}

@media (max-width: 430px) {
  .vfr-briefing-nav button {
    grid-template-columns: 22px minmax(0, 1fr);
    padding: .42rem .5rem;
    font-size: .7rem;
  }
  .vfr-briefing-nav button span {
    width: 21px;
    height: 21px;
  }
  .vfr-briefing-slide {
    padding: .8rem;
  }
  .vfr-briefing-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vfr-briefing-source-list a {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Expandable planning surfaces and compact responsive actions */
body.vfr-expand-open {
  overflow: hidden;
}

.vfr-expandable {
  min-width: 0;
}

.vfr-expand-toggle {
  display: inline-flex;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-width: 38px;
  max-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 9px;
  white-space: nowrap;
}

.vfr-expand-toggle > span:first-child {
  font-size: .86rem;
  line-height: 1;
}

.vfr-expand-toggle [data-vfr-expand-label] {
  display: none;
}

.quiet-button {
  margin-top: 0;
}

.vfr-map-toolbar > .vfr-expand-toggle {
  position: absolute;
  top: 0;
  right: 0;
  flex-basis: 42px;
  width: 42px;
  min-width: 42px;
  max-width: 42px;
  height: 42px;
  min-height: 42px;
  margin-top: .9rem;
  z-index: 2;
}

.school-calendar-toolbar .vfr-expand-toggle {
  width: 38px;
  min-width: 38px;
  max-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  order: 2;
}

.school-calendar-toolbar .refresh-button {
  order: 1;
}

.vfr-expand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  padding: .5rem .15rem 0;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.vfr-table-frame {
  min-width: 0;
}

.vfr-table-frame .vfr-navlog-scroll {
  margin-top: .42rem;
}

.calendar-toolbar-actions,
.vfr-official-map-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .45rem;
}

.vfr-official-map-actions a {
  order: 1;
  white-space: nowrap;
}

.vfr-official-map-actions .vfr-expand-toggle {
  order: 2;
}

.vfr-pirep-live-map figcaption {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
}

.vfr-pirep-live-map figcaption > div {
  min-width: 0;
}

.vfr-pirep-live-map figcaption > div strong,
.vfr-pirep-live-map figcaption > div span {
  display: block;
}

.vfr-expandable.vfr-expanded {
  position: fixed !important;
  inset: 0 !important;
  z-index: 20000 !important;
  display: flex !important;
  flex-direction: column;
  width: 100vw !important;
  max-width: none !important;
  height: 100dvh !important;
  max-height: none !important;
  padding: max(.65rem, env(safe-area-inset-top)) max(.65rem, env(safe-area-inset-right)) max(.65rem, env(safe-area-inset-bottom)) max(.65rem, env(safe-area-inset-left));
  margin: 0 !important;
  overflow: hidden;
  color: var(--ink);
  background: var(--surface);
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.vfr-table-frame.vfr-expanded .vfr-expand-bar {
  flex: 0 0 auto;
  padding: 0 0 .3rem;
}

.vfr-table-frame.vfr-expanded .vfr-navlog-scroll {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  overflow: auto;
  border-radius: 10px;
}

.vfr-table-frame.vfr-expanded .vfr-paper-head th {
  position: sticky;
  top: 0;
  z-index: 4;
}

.vfr-table-frame.vfr-expanded .vfr-paper-head th:first-child {
  left: 0;
  z-index: 6;
}

.vfr-map-panel.vfr-expanded .vfr-map-toolbar,
.vfr-map-panel.vfr-expanded .vfr-map-status,
.calendar-panel.vfr-expanded .school-calendar-toolbar,
.calendar-panel.vfr-expanded .calendar-legend,
.vfr-pirep-live-map.vfr-expanded figcaption,
.vfr-official-map.vfr-expanded figcaption,
.vfr-surface-analysis.vfr-expanded figcaption {
  flex: 0 0 auto;
}

.vfr-map-panel.vfr-expanded .vfr-map {
  flex: 1 1 auto;
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
}

.calendar-panel.vfr-expanded .school-calendar-shell {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  margin: 0;
  overflow: auto;
  border-radius: 10px;
}

.calendar-panel.vfr-expanded .school-calendar-wrap {
  min-height: 100%;
}

.vfr-pirep-live-map.vfr-expanded .vfr-pirep-map {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}

.vfr-official-map.vfr-expanded .vfr-official-map-frame-wrap {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}

.vfr-official-map.vfr-expanded .vfr-official-map-frame {
  height: calc(122dvh + 64px);
}

.vfr-surface-analysis.vfr-expanded .vfr-weather-image {
  flex: 1 1 auto;
  min-height: 0;
  padding: .35rem;
}

.vfr-surface-analysis.vfr-expanded .vfr-weather-image img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

@media (max-width: 1040px) {
  .route-actions-vfr.vfr-final-actions {
    width: min(720px, calc(100% - 1rem));
    padding: .48rem;
    background: var(--surface);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(9, 28, 27, .18);
  }

  .route-actions-vfr.vfr-final-actions button {
    min-height: 48px;
    border-radius: 12px;
  }
}

@media (max-width: 760px) {
  .route-actions-vfr.vfr-final-actions {
    width: calc(100% - .7rem);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .42rem;
    padding: .42rem;
    border-radius: 15px;
  }

  .route-actions-vfr.vfr-final-actions button {
    min-height: 46px;
    padding: .55rem .45rem;
    border-radius: 10px;
    line-height: 1.15;
  }

  .vfr-map-toolbar {
    align-items: flex-start;
  }

  .vfr-map-controls {
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    margin-right: 0;
  }

  .vfr-map-toolbar > div:first-child {
    padding-right: 52px;
  }

  .vfr-map-controls .vfr-map-layers {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
  }

  .school-calendar-toolbar .vfr-expand-toggle,
  .school-calendar-toolbar .refresh-button {
    width: 34px;
    min-width: 34px;
    max-width: 34px;
    height: 34px;
    min-height: 34px;
  }

  .school-calendar-toolbar .refresh-button span:last-child {
    display: none;
  }

  .vfr-navlog {
    min-width: 1370px;
  }

  .vfr-navlog-columns col:nth-child(1) { width: 120px; }
  .vfr-navlog-columns col:nth-child(2) { width: 80px; }
  .vfr-navlog-columns col:nth-child(3) { width: 74px; }
  .vfr-navlog-columns col:nth-child(4) { width: 150px; }
  .vfr-navlog-columns col:nth-child(5) { width: 100px; }
  .vfr-navlog-columns col:nth-child(6) { width: 84px; }
  .vfr-navlog-columns col:nth-child(7),
  .vfr-navlog-columns col:nth-child(8),
  .vfr-navlog-columns col:nth-child(9),
  .vfr-navlog-columns col:nth-child(10) { width: 66px; }
  .vfr-navlog-columns col:nth-child(11) { width: 90px; }
  .vfr-navlog-columns col:nth-child(12) { width: 72px; }
  .vfr-navlog-columns col:nth-child(13) { width: 80px; }
  .vfr-navlog-columns col:nth-child(14) { width: 70px; }
  .vfr-navlog-columns col:nth-child(15) { width: 80px; }
  .vfr-navlog-columns col:nth-child(16) { width: 105px; }

  .vfr-navlog th:first-child,
  .vfr-navlog td:first-child {
    width: 120px;
    max-width: 120px;
  }

  .vfr-navlog tbody td {
    height: 72px;
    padding: .22rem .26rem;
  }

  .vfr-navlog td:first-child strong {
    font-size: .7rem;
  }

  .vfr-navlog td:first-child small {
    margin-top: .22rem;
    font-size: .58rem;
  }

  .vfr-paper-head th {
    padding: .42rem .22rem;
    font-size: .61rem;
  }

  .vfr-paper-head small {
    font-size: .53rem;
  }

  .vfr-table-frame:not(.vfr-expanded) .vfr-expand-bar {
    position: sticky;
    left: 0;
  }

  .vfr-pirep-live-map figcaption {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .vfr-official-map-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .vfr-official-map.vfr-expanded .vfr-official-map-frame {
    height: calc(143dvh + 66px);
  }

}

@media (min-width: 681px) and (max-width: 760px) {
  .vfr-map-controls {
    box-sizing: border-box;
    flex: 0 0 auto;
    width: auto;
    margin-right: 52px;
    padding-right: 0;
  }

  .vfr-map-controls .vfr-map-layers {
    width: auto;
  }

  .vfr-map-toolbar h2 {
    white-space: nowrap;
  }
}

@media (max-width: 430px) {
  .vfr-map-controls {
    gap: .3rem;
  }

  .vfr-pirep-live-map figcaption {
    align-items: start;
  }
}
