:root {
  --color-canvas: #f7f4ee;
  --color-panel: #f0ebe2;
  --color-mist: #dcebe7;
  --color-ink: #18232f;
  --color-muted: #64707d;
  --color-line: #ded6ca;
  --color-accent: #0f8f83;
  --color-accent-strong: #0b6f67;
  --color-ruby: #b7445c;
  --color-gold: #c8912d;
  --shadow-soft: 0 24px 80px rgba(24, 35, 47, 0.1);
  --site-header-height: 62px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--color-canvas);
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--color-accent);
  color: white;
}

.app-body {
  min-height: 100vh;
  background: var(--color-canvas);
  color: var(--color-ink);
  -webkit-font-smoothing: antialiased;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--color-line);
  background: rgba(247, 244, 238, 0.88);
  backdrop-filter: blur(18px);
}

.site-nav,
.hero-inner,
.apps-section {
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.nav-links,
.pulse-heading,
.section-heading,
.filter-list,
.app-card-top,
.app-card-footer {
  display: flex;
  align-items: center;
}

.brand-link {
  color: var(--color-ink);
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: 0;
  text-decoration: none;
}

.nav-links {
  gap: 1.75rem;
  color: var(--color-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-ink);
}

.nav-action {
  border-radius: 0.375rem;
  background: var(--color-accent);
  color: white;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 143, 131, 0.22);
  transition: background 0.2s ease;
}

.nav-action:hover {
  background: var(--color-accent-strong);
}

.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-wash {
  position: absolute;
  inset: 0 0 auto;
  height: 18rem;
  background: linear-gradient(135deg, var(--color-mist), transparent 62%);
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: end;
  padding-block: 4.5rem;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 1.25rem;
  border: 1px solid var(--color-line);
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-muted);
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(24, 35, 47, 0.06);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 48rem;
  font-size: clamp(2.8rem, 7vw, 4rem);
  line-height: 1.05;
  font-weight: 750;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 42rem;
  margin-top: 1.5rem;
  color: var(--color-muted);
  font-size: 1.125rem;
  line-height: 1.75;
}

.pulse-panel {
  display: grid;
  gap: 0.75rem;
  border: 1px solid var(--color-line);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.82);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.pulse-heading {
  justify-content: space-between;
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
}

.pulse-heading span:last-child {
  border-radius: 0.375rem;
  background: var(--color-mist);
  color: var(--color-accent);
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
}

.pulse-grid,
.app-grid {
  display: grid;
  gap: 1rem;
}

.pulse-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.pulse-grid div {
  border-radius: 0.375rem;
  background: var(--color-panel);
  padding: 1rem;
}

.pulse-grid span,
.pulse-grid small {
  display: block;
}

.pulse-grid span {
  font-size: 1.5rem;
  font-weight: 750;
}

.pulse-grid small {
  color: var(--color-muted);
  font-size: 0.75rem;
}

.apps-section {
  padding-bottom: 4rem;
}

.section-heading {
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--color-line);
  padding-top: 2rem;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  font-size: 1.5rem;
  font-weight: 750;
}

.section-heading p {
  margin-top: 0.5rem;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.filter-list {
  gap: 0.5rem;
}

.filter-list span {
  border: 1px solid var(--color-line);
  border-radius: 0.375rem;
  color: var(--color-muted);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.filter-list .is-active {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: white;
}

.app-grid {
  grid-template-columns: 1fr;
}

.app-card {
  border: 1px solid var(--color-line);
  border-radius: 0.5rem;
  background: white;
  padding: 1.25rem;
  box-shadow: 0 8px 22px rgba(24, 35, 47, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.app-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(24, 35, 47, 0.1);
}

.app-card-top,
.app-card-footer {
  justify-content: space-between;
  gap: 1rem;
}

.app-card-top {
  margin-bottom: 2rem;
}

.app-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 0.5rem;
  color: white;
  font-size: 0.875rem;
  font-weight: 750;
}

.app-icon-teal {
  background: var(--color-accent);
}

.app-icon-ruby {
  background: var(--color-ruby);
}

.app-icon-gold {
  background: var(--color-gold);
}

.app-icon-ink {
  background: var(--color-ink);
}

.status-pill {
  border-radius: 0.375rem;
  background: var(--color-panel);
  color: var(--color-muted);
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.app-card h3 {
  font-size: 1.125rem;
  font-weight: 750;
}

.app-card p {
  min-height: 3rem;
  margin-top: 0.5rem;
  color: var(--color-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.app-card-footer {
  border-top: 1px solid var(--color-line);
  margin-top: 1.25rem;
  padding-top: 1rem;
}

.app-card-footer span:first-child {
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
}

.app-card-footer span:last-child {
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 750;
}

@media (min-width: 48rem) {
  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    padding-block: 5rem;
  }

  .app-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 47.9375rem) {
  .nav-links {
    display: none;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

.welcome-page {
  display: grid;
  min-height: calc(100vh - 73px);
  place-content: center;
  gap: 1rem;
  text-align: center;
}

.welcome-page h1 {
  font-size: clamp(3rem, 8vw, 6rem);
}

.welcome-page a {
  color: var(--color-accent);
  font-weight: 750;
}

.aero-shell {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  min-height: calc(100dvh - var(--site-header-height));
  background: #f5f7f4;
}

.aero-sidebar {
  position: sticky;
  top: var(--site-header-height);
  align-self: start;
  display: flex;
  height: calc(100dvh - var(--site-header-height));
  min-height: calc(100dvh - var(--site-header-height));
  flex-direction: column;
  gap: 1.25rem;
  border-right: 1px solid #d8ded8;
  background: #10292c;
  color: white;
  padding: 1.25rem;
}

.aero-sidebar h1 {
  font-size: 2.2rem;
}

.aero-sidebar p {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.aero-kicker {
  margin: 0 0 0.35rem;
  color: #0f766e;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.aero-sidebar .aero-kicker {
  color: #8ddfd6;
}

.aero-tabs {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  flex: 1;
}

.aero-tabs button,
.secondary-action {
  border: 1px solid transparent;
  border-radius: 0.45rem;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.aero-tabs button {
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  padding: 0.8rem 0.9rem;
  text-align: left;
}

.aero-tabs button:hover,
.aero-tabs button.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.aero-workspace {
  min-width: 0;
  padding: 1rem 1.25rem 1.25rem;
}

.tool-panel {
  display: none;
}

.tool-panel.is-active {
  display: block;
}

.tool-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tool-heading h2 {
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1;
}

.aero-status,
.secondary-action {
  border-radius: 0.45rem;
  background: #dff4ed;
  color: #0f766e;
  padding: 0.55rem 0.8rem;
  font-size: 0.85rem;
}

.aero-card-grid,
.result-grid,
.tool-split {
  display: grid;
  gap: 1rem;
}

.aero-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.aero-card,
.mini-tool,
.metric-card,
.checklist-list,
.wb-layout {
  border: 1px solid #d8ded8;
  border-radius: 0.55rem;
  background: white;
  box-shadow: 0 10px 30px rgba(16, 41, 44, 0.06);
}

.aero-card {
  min-height: 11rem;
  cursor: pointer;
  padding: 1rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.aero-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(16, 41, 44, 0.1);
}

.aero-card-featured {
  border-color: #84cfc5;
  background: linear-gradient(145deg, #e8f7f2, #ffffff 70%);
}

.aero-card h3,
.mini-tool h3 {
  font-size: 1.05rem;
  font-weight: 800;
}

.aero-card p {
  margin-top: 0.75rem;
  color: #5e6f70;
  font-size: 0.95rem;
  line-height: 1.5;
}

.tool-grid {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.tool-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tool-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tool-panel label,
.mini-tool label {
  display: grid;
  gap: 0.35rem;
  color: #425456;
  font-size: 0.85rem;
  font-weight: 750;
}

.tool-panel input,
.tool-panel select,
.tool-panel textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd5d1;
  border-radius: 0.45rem;
  background: #fbfcfa;
  color: #10292c;
  font: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.75rem;
}

.tool-panel input:focus,
.tool-panel select:focus,
.tool-panel textarea:focus {
  border-color: #0f766e;
  outline: 3px solid rgba(15, 118, 110, 0.14);
}

.result-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  padding: 1rem;
}

.metric-card span {
  display: block;
  color: #5e6f70;
  font-size: 0.85rem;
  font-weight: 750;
}

.metric-card strong {
  display: block;
  margin-top: 0.35rem;
  color: #0f766e;
  font-size: 2rem;
}

.tool-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-tool {
  padding: 1rem;
}

.mini-tool h3 {
  margin-bottom: 1rem;
}

.result-main {
  color: #0f766e;
  font-size: 1.75rem;
  font-weight: 850;
  line-height: 1.15;
}

.result-sub {
  margin-top: 0.35rem;
  color: #5e6f70;
  line-height: 1.45;
}

.checklist-list {
  overflow: hidden;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.secondary-action.primary {
  background: #0f766e;
  color: white;
}

.checklist-item {
  display: grid;
  grid-template-columns: minmax(8rem, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
  border-bottom: 1px solid #e6ebe7;
  cursor: pointer;
  padding: 0.9rem 1rem;
}

.checklist-item.is-hidden {
  border-bottom-style: dashed;
}

.checklist-item:last-child {
  border-bottom: 0;
}

.checklist-item strong {
  color: #10292c;
}

.checklist-item span {
  color: #445b5d;
  font-weight: 750;
}

.checklist-item.is-hidden strong,
.checklist-item.is-hidden span {
  visibility: hidden;
}

.checklist-item.is-hidden.has-visible-system strong {
  visibility: visible;
}

.checklist-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.wb-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(20rem, 1.1fr);
  gap: 1rem;
  padding: 1rem;
}

.aero-table {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.aero-table th,
.aero-table td {
  border-bottom: 1px solid #e6ebe7;
  padding: 0.45rem;
  text-align: right;
}

.aero-table th:first-child,
.aero-table td:first-child {
  text-align: left;
}

.aero-table tr:last-child td {
  border-bottom: 0;
  font-weight: 850;
}

#wbCanvas {
  width: 100%;
  height: 24rem;
  border: 1px solid #e0e6e1;
  border-radius: 0.45rem;
  background: white;
}

.mini-tool.wide {
  grid-column: 1 / -1;
}

.profile-result-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 0.65fr) minmax(20rem, 1.35fr);
  gap: 1rem;
  margin-top: 1rem;
}

.profile-points {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.profile-point-row {
  display: grid;
  grid-template-columns: 1fr 0.8fr 0.8fr 0.8fr auto;
  gap: 0.65rem;
  align-items: end;
  border: 1px solid #e0e6e1;
  border-radius: 0.5rem;
  padding: 0.75rem;
}

.profile-notes {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
  color: #445b5d;
  font-size: 0.9rem;
  line-height: 1.45;
}

.profile-notes div {
  border-left: 3px solid #0f766e;
  background: #f0faf6;
  padding: 0.55rem 0.7rem;
}

#profileCanvas {
  width: 100%;
  height: 24rem;
  border: 1px solid #e0e6e1;
  border-radius: 0.45rem;
  background: white;
}

.planner-heading {
  align-items: center;
}

.planner-intro {
  max-width: 46rem;
  margin-top: 0.65rem;
  color: #5e6f70;
  line-height: 1.5;
}

.planner-actions,
.planner-section-heading,
.planner-trip-header,
.planner-route-heading,
.planner-output-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.planner-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.planner-save-state {
  color: #5e6f70;
  font-size: 0.78rem;
  font-weight: 700;
}

.planner-fixed-field {
  display: grid;
  align-content: center;
  min-height: 4.5rem;
  border: 1px solid #cbd5d1;
  border-radius: 0.45rem;
  background: #eef4f0;
  padding: 0.6rem 0.75rem;
}

.planner-fixed-field span,
.planner-fixed-field small {
  color: #5e6f70;
  font-size: 0.72rem;
  font-weight: 750;
}

.planner-fixed-field strong {
  margin-block: 0.1rem;
  color: #10292c;
  font-size: 1.05rem;
}

.planner-notice {
  border: 1px solid #e6c880;
  border-radius: 0.55rem;
  background: #fff9e8;
  color: #705418;
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.85rem;
  line-height: 1.45;
}

.planner-section,
.planner-trip,
.flight-sheet {
  border: 1px solid #d8ded8;
  border-radius: 0.65rem;
  background: white;
  box-shadow: 0 10px 30px rgba(16, 41, 44, 0.05);
}

.planner-section {
  margin-bottom: 1rem;
  padding: 1rem;
}

.planner-section-heading {
  margin-bottom: 1rem;
}

.planner-section-heading > div {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.planner-section-heading span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: #dff4ed;
  color: #0f766e;
  font-size: 0.75rem;
  font-weight: 850;
}

.planner-section-heading h3,
.planner-trip-header h4,
.planner-route-heading h5 {
  margin: 0;
}

.planner-section-heading > p,
.planner-route-heading p {
  color: #5e6f70;
  font-size: 0.82rem;
}

.planner-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.planner-metric {
  border: 1px solid #e0e6e1;
  border-radius: 0.5rem;
  background: #f8faf7;
  padding: 0.75rem;
}

.planner-metric span,
.planner-metric strong {
  display: block;
}

.planner-metric span {
  color: #5e6f70;
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
}

.planner-metric strong {
  margin-top: 0.25rem;
  font-size: 1.1rem;
}

.planner-metric.is-ok {
  border-color: #8cd2bd;
  background: #eefaf5;
}

.planner-metric.is-bad {
  border-color: #e3a3b0;
  background: #fff0f3;
  color: #9b3047;
}

.planner-trips {
  display: grid;
  gap: 1rem;
}

.planner-trip {
  overflow: hidden;
}

.planner-trip-header {
  border-bottom: 1px solid #dfe5e0;
  background: #f3f7f3;
  padding: 0.85rem 1rem;
}

.planner-trip-header span {
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.planner-trip-header h4 {
  margin-top: 0.15rem;
  font-size: 1.25rem;
}

.planner-airports {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 1rem;
}

.planner-airport {
  min-width: 0;
  border: 1px solid #dfe5e0;
  border-radius: 0.55rem;
  padding: 0.8rem;
}

.planner-airport legend {
  color: #10292c;
  padding-inline: 0.35rem;
  font-size: 0.86rem;
  font-weight: 850;
}

.planner-airport-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.planner-field-wide {
  grid-column: span 2;
}

.planner-trip-settings {
  border-block: 1px solid #e5eae6;
  background: #fafbf9;
  margin: 0;
  padding: 1rem;
}

.planner-route-heading {
  align-items: flex-end;
  padding: 1rem 1rem 0.65rem;
}

.planner-route-heading h5 {
  font-size: 1rem;
}

.planner-route-heading p {
  margin-top: 0.2rem;
}

.planner-route {
  display: grid;
  gap: 0.55rem;
  padding: 0 1rem 1rem;
}

.planner-route-row {
  display: grid;
  grid-template-columns: 2rem minmax(9rem, 1.2fr) repeat(3, minmax(5.25rem, 0.55fr)) minmax(9rem, 1.2fr) 2.25rem;
  gap: 0.55rem;
  align-items: end;
}

.planner-destination-route-row {
  border-top: 1px solid #dfe5e0;
  padding-top: 0.55rem;
}

.planner-destination-leg-label {
  align-self: center;
  color: #5e6f70;
  font-size: 0.78rem;
  font-weight: 750;
}

.route-number {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  align-self: center;
  border-radius: 50%;
  background: #edf1ed;
  color: #5e6f70;
  font-size: 0.75rem;
  font-weight: 800;
}

.icon-action {
  width: 2.25rem;
  height: 2.65rem;
  border: 1px solid #e0c6cb;
  border-radius: 0.45rem;
  background: #fff6f7;
  color: #9b3047;
  cursor: pointer;
  font-size: 1.3rem;
}

.planner-trip-calculated {
  border-top: 1px solid #dfe5e0;
  padding: 1rem;
}

.planner-inline-results {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 0.75rem;
  color: #425456;
  font-size: 0.82rem;
}

.planner-inline-results .is-warning {
  color: #9a5d0b;
  font-weight: 700;
}

.planner-envelope {
  max-width: 44rem;
  margin-top: 1rem;
}

.wb-envelope-figure {
  min-width: 0;
  border: 1px solid #dfe5e0;
  border-radius: 0.5rem;
  background: white;
  margin: 0;
  padding: 0.7rem;
}

.wb-envelope-figure figcaption {
  margin-bottom: 0.35rem;
  color: #10292c;
  font-size: 0.85rem;
  font-weight: 850;
}

.wb-envelope-svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
}

.envelope-grid line {
  stroke: #dde5df;
  stroke-width: 1;
}

.envelope-grid text,
.axis-label,
.envelope-polygons text,
.envelope-point text {
  fill: #4b5f60;
}

.envelope-polygons polygon {
  fill: rgba(15, 118, 110, 0.07);
  stroke: #10292c;
  stroke-width: 2.5;
}

.envelope-polygons .category-u {
  fill: rgba(200, 145, 45, 0.08);
}

.envelope-point circle {
  fill: #0f766e;
  stroke: white;
  stroke-width: 2;
}

.envelope-point.is-bad circle {
  fill: #b7445c;
}

.planner-output {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.navplan-print-set,
.planning-print-set {
  display: grid;
  gap: 1rem;
}

.planning-print-set {
  margin-top: 1rem;
}

.navplan-print-set {
  overflow-x: auto;
}

.navplan-form {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  width: 100%;
  min-width: 62rem;
  aspect-ratio: 1.94 / 1;
  border: 3px solid #111;
  background: white;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  overflow: hidden;
  container-type: inline-size;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}

.navplan-title {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  border-bottom: 2px solid #111;
  padding: 0.25rem 0.45rem;
  font-size: 1.65cqw;
  font-style: italic;
  letter-spacing: 0.04em;
}

.navplan-title strong:last-child {
  text-align: right;
}

.navplan-details {
  display: grid;
  grid-template-columns: 0.78fr 0.98fr 0.45fr 0.78fr 0.45fr 0.95fr 0.72fr 0.9fr 0.72fr 1fr 0.5fr 0.85fr;
  grid-auto-rows: minmax(1.65rem, auto);
}

.navplan-details > div {
  display: flex;
  align-items: center;
  min-width: 0;
  border-right: 1.5px solid #111;
  border-bottom: 1.5px solid #111;
  padding: 0.08rem 0.25rem;
  font-size: 1.15cqw;
  font-weight: 700;
}

.navplan-details > div:nth-child(12),
.navplan-details > div:nth-child(22),
.navplan-details > div:nth-child(32) {
  border-right: 0;
}

.navplan-details .nav-label {
  background: #d3d3d3;
  font-weight: 850;
}

.navplan-details .nav-span-3 {
  grid-column: span 3;
}

.navplan-times {
  display: grid;
  grid-template-columns: 6.4% 5.1% 22.4% repeat(6, 5.5% 5.5166667%);
  min-height: 1.7rem;
  border-bottom: 3px solid #111;
  background: #444;
  color: white;
  font-size: 0.9cqw;
  font-weight: 700;
}

.navplan-times > div {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  border-right: 1.5px solid #111;
  padding: 0.06rem 0.18rem;
  white-space: nowrap;
}

.navplan-times > .nav-time-entry,
.navplan-times > .nav-cs-heading {
  justify-content: center;
  background: white;
  color: #111;
  font-size: inherit;
}

.navplan-log {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.navplan-log col.freq { width: 6.4%; }
.navplan-log col.cs { width: 5.1%; }
.navplan-log col.checkpoint { width: 22.4%; }
.navplan-log col.mc { width: 5%; }
.navplan-log col.dist { width: 5.6%; }
.navplan-log col.alt { width: 5.5%; }
.navplan-log col.eet { width: 5.7%; }
.navplan-log col.total-eet { width: 6.5%; }
.navplan-log col.eto { width: 5.5%; }
.navplan-log col.ato { width: 5.8%; }
.navplan-log col.fuel-remaining { width: 6.5%; }
.navplan-log col.remarks { width: 20%; }

.navplan-log th,
.navplan-log td {
  overflow: hidden;
  border-right: 1.5px solid #111;
  border-bottom: 1px solid #111;
  padding: 0 0.14rem;
  font-size: 0.88cqw;
  text-align: left;
  white-space: nowrap;
}

.navplan-log th {
  height: 1.5rem;
  background: #e7e7e7;
  font-size: 0.98cqw;
  font-weight: 500;
}

.navplan-log .nav-departure-row th:nth-child(-n + 3) {
  background: #d9dde0;
  font-weight: 850;
}

.navplan-log thead {
  height: 1.5rem;
}

.navplan-log tbody {
  height: calc(100% - 1.5rem);
}

.navplan-log tbody tr {
  height: 6.25%;
}

.navplan-log tbody td {
  height: 6.25%;
  line-height: 1.1;
  vertical-align: middle;
}

.navplan-log tbody tr:nth-child(even) {
  background: #e9e9e9;
}

.navplan-log tbody tr.nav-marker {
  font-weight: 850;
}

.navplan-log tbody tr.nav-aerodrome {
  font-weight: 850;
}

.navplan-log th:nth-child(11),
.navplan-log td:nth-child(11) {
  border-right-width: 3px;
}

.navplan-page-number {
  position: absolute;
  right: 0.3rem;
  bottom: 0.15rem;
  font-size: 0.55rem;
}

.planner-output-heading {
  padding-top: 1rem;
}

.planner-output-heading > p {
  color: #5e6f70;
  font-weight: 750;
}

.flight-sheet {
  overflow: hidden;
  padding: 1.1rem;
}

.flight-sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 3px solid #10292c;
  padding-bottom: 0.7rem;
}

.flight-sheet-header p {
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.flight-sheet-header h2 {
  margin-top: 0.15rem;
  font-size: 1.65rem;
}

.flight-sheet-number {
  border-radius: 0.35rem;
  background: #10292c;
  color: white;
  padding: 0.45rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 800;
}

.flight-sheet-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid #dfe5e0;
  border-radius: 0.4rem;
  margin: 0.8rem 0;
  overflow: hidden;
}

.flight-sheet-meta div {
  border-bottom: 1px solid #dfe5e0;
  border-right: 1px solid #dfe5e0;
  padding: 0.5rem 0.6rem;
}

.flight-sheet-meta div:nth-child(4n) {
  border-right: 0;
}

.flight-sheet-meta div:nth-last-child(-n + 4) {
  border-bottom: 0;
}

.flight-sheet-meta dt {
  color: #5e6f70;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.flight-sheet-meta dd {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  font-weight: 800;
}

.flight-sheet-section {
  margin-top: 1rem;
}

.flight-sheet-section h3,
.print-table-block h3,
.print-table-block h4 {
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.print-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
}

.print-table th,
.print-table td {
  border: 1px solid #cfd8d2;
  padding: 0.38rem 0.45rem;
  text-align: right;
}

.print-table th:first-child,
.print-table td:first-child,
.navlog-table th,
.navlog-table td {
  text-align: left;
}

.print-table th {
  background: #edf2ee;
  color: #344b4d;
  font-size: 0.66rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.print-table .total td {
  border-top: 2px solid #10292c;
  font-weight: 850;
}

.profile-marker td {
  background: #e7f6f1;
  color: #0b6f67;
  font-weight: 850;
}

.print-two-column,
.print-wb-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.print-wb-layout {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(15rem, 1.3fr);
  align-items: start;
}

.print-status,
.print-warning,
.sheet-note,
.flight-sheet-footer {
  margin-top: 0.4rem;
  color: #5e6f70;
  font-size: 0.7rem;
  line-height: 1.4;
}

.print-status.is-ok {
  color: #0b6f67;
}

.print-status.is-bad,
.print-warning {
  color: #9b3047;
  font-weight: 800;
}

.sheet-alert {
  border: 1px solid #d68194;
  border-radius: 0.35rem;
  background: #fff0f3;
  color: #8b2940;
  padding: 0.5rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 800;
}

.flight-sheet-footer {
  border-top: 1px solid #dfe5e0;
  margin-top: 1rem;
  padding-top: 0.5rem;
}

@media (max-width: 68rem) {
  .aero-shell {
    grid-template-columns: 1fr;
  }

  .aero-sidebar {
    position: static;
    height: auto;
    min-height: auto;
    gap: 1rem;
  }

  .aero-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .aero-tabs button {
    text-align: center;
  }

  .aero-card-grid,
  .result-grid,
  .tool-split,
  .wb-layout,
  .profile-result-grid {
    grid-template-columns: 1fr;
  }

  .profile-point-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .planner-airports,
  .print-two-column,
  .print-wb-layout {
    grid-template-columns: 1fr;
  }

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

  .planner-route-row {
    grid-template-columns: 2rem repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 42rem) {
  .aero-workspace {
    padding: 0.85rem;
  }

  .aero-tabs,
  .tool-grid.two,
  .tool-grid.three,
  .tool-grid.four,
  .profile-point-row {
    grid-template-columns: 1fr;
  }

  .checklist-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .planner-heading,
  .planner-section-heading,
  .planner-route-heading,
  .planner-output-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .planner-actions {
    justify-content: flex-start;
  }

  .planner-airport-grid,
  .planner-summary-grid,
  .planner-route-row,
  .flight-sheet-meta {
    grid-template-columns: 1fr;
  }

  .route-number {
    display: none;
  }

  .flight-sheet-meta div,
  .flight-sheet-meta div:nth-child(4n),
  .flight-sheet-meta div:nth-last-child(-n + 4) {
    border: 0;
    border-bottom: 1px solid #dfe5e0;
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 8mm;
  }

  @page navplan-page {
    size: A4 portrait;
    margin: 8mm;
  }

  @page planning-page {
    size: A4 landscape;
    margin: 8mm;
  }

  body,
  .app-body,
  .aero-shell,
  .aero-workspace {
    background: white !important;
  }

  .site-header,
  .aero-sidebar,
  .planner-heading,
  .no-print,
  [data-tool-panel]:not([data-tool-panel="planner"]) {
    display: none !important;
  }

  .aero-shell,
  .aero-workspace,
  [data-tool-panel="planner"] {
    display: block !important;
    min-height: 0;
    padding: 0;
  }

  .planner-output {
    display: block;
    margin: 0;
  }

  body.print-navplans .planning-print-set,
  body.print-planning .navplan-print-set {
    display: none !important;
  }

  body:not(.print-navplans):not(.print-planning) .navplan-print-set {
    display: none !important;
  }

  .navplan-print-set,
  .planning-print-set {
    display: block;
    margin: 0;
    overflow: visible;
  }

  body.print-navplans .navplan-print-set {
    display: block;
  }

  .navplan-form {
    width: 200mm;
    height: 100mm;
    min-width: 0;
    margin: 0 0 5mm;
    aspect-ratio: auto;
    break-inside: avoid;
    break-after: auto;
  }

  .navplan-form:last-child {
    margin-bottom: 0;
  }

  .navplan-form .navplan-details {
    grid-auto-rows: minmax(1.15rem, auto);
  }

  .navplan-form .navplan-details > div {
    padding: 0.02rem 0.1rem;
    font-size: 1.18cqw;
  }

  .navplan-form .navplan-details .nav-label {
    font-size: 0.85cqw;
  }

  .navplan-form .navplan-times {
    min-height: 1.15rem;
    font-size: 0.78cqw;
    font-weight: 650;
  }

  .navplan-form .navplan-times > div {
    padding: 0.02rem 0.08rem;
  }

  .navplan-form .navplan-log th {
    height: 1.1rem;
    padding-inline: 0.08rem;
    font-size: 0.78cqw;
  }

  .navplan-form .navplan-log thead {
    height: 1.1rem;
  }

  .navplan-form .navplan-log tbody {
    height: calc(100% - 1.1rem);
  }

  .navplan-form .navplan-log tbody td {
    padding-inline: 0.08rem;
    font-size: 1.3cqw;
  }

  .navplan-form .navplan-log .nav-departure-row th:nth-child(-n + 3) {
    font-size: 1.2cqw;
  }

  .navplan-form .navplan-log col.freq { width: 6%; }
  .navplan-form .navplan-log col.cs { width: 5.1%; }
  .navplan-form .navplan-log col.checkpoint { width: 20.4%; }
  .navplan-form .navplan-log col.mc { width: 4.8%; }
  .navplan-form .navplan-log col.dist { width: 5.3%; }
  .navplan-form .navplan-log col.alt { width: 5.2%; }
  .navplan-form .navplan-log col.eet { width: 8%; }
  .navplan-form .navplan-log col.total-eet { width: 8%; }
  .navplan-form .navplan-log col.eto { width: 5.2%; }
  .navplan-form .navplan-log col.ato { width: 5.5%; }
  .navplan-form .navplan-log col.fuel-remaining { width: 8.5%; }
  .navplan-form .navplan-log col.remarks { width: 18%; }

  .planning-sheet {
    page: planning-page;
  }

  .flight-sheet {
    position: relative;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    break-after: page;
    margin: 0;
    overflow: visible;
    padding: 0;
  }

  .flight-sheet:last-child {
    break-after: auto;
  }

  .flight-sheet-section,
  .print-table-block,
  .print-table tr {
    break-inside: avoid;
  }

  .flight-sheet-header h2 {
    font-size: 15pt;
  }

  .flight-sheet-section {
    margin-top: 2mm;
  }

  .print-table {
    font-size: 6.5pt;
  }

  .print-table th,
  .print-table td {
    padding: 0.8mm 1.2mm;
  }

  .flight-sheet-header {
    padding-bottom: 2mm;
  }

  .flight-sheet-header p,
  .flight-sheet-number {
    font-size: 7pt;
  }

  .flight-sheet-meta {
    margin: 2mm 0;
  }

  .flight-sheet-meta div {
    padding: 1.2mm 1.5mm;
  }

  .flight-sheet-meta dt {
    font-size: 5.5pt;
  }

  .flight-sheet-meta dd {
    font-size: 7.5pt;
  }

  .flight-sheet-section h3,
  .print-table-block h3,
  .print-table-block h4 {
    margin-bottom: 1mm;
    font-size: 8pt;
  }

  .print-wb-layout {
    grid-template-columns: 1fr 1fr 1.1fr;
    gap: 2mm;
  }

  .planning-sheet .wb-envelope-svg {
    max-height: 44mm;
  }

  .flight-sheet-footer,
  .sheet-note,
  .print-status,
  .print-warning {
    font-size: 5.5pt;
  }

  .planning-sheet {
    min-height: 192mm;
    padding-bottom: 5mm;
  }

  .planning-sheet .flight-sheet-footer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    margin-top: 0;
  }

  .wb-envelope-figure {
    padding: 1mm;
  }

  .wb-envelope-figure figcaption {
    margin-bottom: 1mm;
    font-size: 7pt;
  }
}
