/* Mobile-first compact UI */

.fb-app-main {
  position: relative;
}

.fb-i-search { --fb-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m21 21-4.3-4.3m1.3-5.2a6.5 6.5 0 1 1-13 0 6.5 6.5 0 0 1 13 0Z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.fb-i-reset { --fb-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7M3 4v6h6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fb-i-plane { --fb-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 13.5 3 11l1-2 8 1 5-6c.8-.9 2.2-.9 3 0s.8 2.2 0 3l-6 5 1 8-2 1-2.5-7.5Z' fill='black'/%3E%3C/svg%3E"); }
.fb-i-home { --fb-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 10.8 12 3l9 7.8V21h-6v-6H9v6H3V10.8Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fb-i-map { --fb-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m9 18-6 3V6l6-3 6 3 6-3v15l-6 3-6-3Zm0 0V3m6 18V6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fb-i-book { --fb-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20M4 4.5A2.5 2.5 0 0 1 6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15Z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.fb-i-route { --fb-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 19a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm14-8a3 3 0 1 0 0-6 3 3 0 0 0 0 6ZM5 13V9a4 4 0 0 1 4-4h7m3 6v4a4 4 0 0 1-4 4H8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.fb-i-calendar { --fb-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 2v4m10-4v4M4 9h16M5 5h14a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1Z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.fb-i-crown { --fb-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m3 7 5 5 4-8 4 8 5-5-2 12H5L3 7Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fb-i-heart { --fb-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.6l-1-1a5.5 5.5 0 0 0-7.8 7.8L12 21l8.8-8.6a5.5 5.5 0 0 0 0-7.8Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fb-i-back { --fb-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19 12H5m6-6-6 6 6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fb-i-next { --fb-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fb-i-user { --fb-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0m8-10a4 4 0 1 0 0-8 4 4 0 0 0 0 8Z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.fb-i-shield { --fb-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fb-i-fingerprint { --fb-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 11a5 5 0 0 1 10 0c0 5-2 6-2 10M9 21c0-4 2-5 2-10a1 1 0 0 1 2 0c0 5-2 6-2 10M5 15c.4-1.5.5-2.5.5-4a6.5 6.5 0 0 1 13 0M4 11a8 8 0 0 1 16 0' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.fb-i-save { --fb-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2ZM7 3v6h9M7 21v-8h10v8' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fb-i-trash { --fb-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 7h16m-10 4v6m4-6v6M6 7l1 14h10l1-14M9 7V4h6v3' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.fb-i-plus { --fb-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 5v14m-7-7h14' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.fb-i-open { --fb-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 3h7v7M10 14 21 3M19 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fb-i-print { --fb-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 8V3h10v5M7 17H5a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-2M7 14h10v7H7v-7Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fb-i-pdf { --fb-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8l-6-6Zm0 0v6h6M7 16h10M7 12h10' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fb-i-x { --fb-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m18 6-12 12M6 6l12 12' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.fb-i-star { --fb-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 3 2.8 5.7 6.2.9-4.5 4.4 1 6.2L12 17.3l-5.5 2.9 1-6.2L3 9.6l6.2-.9L12 3Z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fb-i-receipt { --fb-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 2h12v20l-3-2-3 2-3-2-3 2V2Zm3 6h6M9 12h6M9 16h4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fb-i-eye { --fb-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12Zm10 3a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fb-i-upload { --fb-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 16V4m0 0-5 5m5-5 5 5M5 16v3a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fb-i-weather { --fb-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 17.5h10.5a3.5 3.5 0 0 0 .4-7 6 6 0 0 0-11.4-1.8A4.5 4.5 0 0 0 7 17.5Z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M16 3v2M21 8h-2M19.5 4.5 18 6' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.fb-i-procedure { --fb-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 6h12M8 12h12M8 18h12M4 6l1 1 2-2M4 12l1 1 2-2M4 18l1 1 2-2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fb-i-airport { --fb-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 3v18M8 21h8M7 10h10M9 7h6M5 21l7-18 7 18' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.fb-action,
.fb-nav-icon,
.fb-quick-link,
.briefing-results-tab {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.fb-action::before,
.fb-nav-icon::before,
.fb-quick-link::before,
.briefing-results-tab::before,
.fb-section-icon::before {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: var(--fb-icon-size, 1rem);
  height: var(--fb-icon-size, 1rem);
  background: currentColor;
  -webkit-mask: var(--fb-icon) center / contain no-repeat;
  mask: var(--fb-icon) center / contain no-repeat;
}

.fb-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  margin-right: 0.4rem;
  border-radius: 999px;
  color: var(--ng-orange);
  background: rgba(255, 122, 0, 0.1);
  vertical-align: -0.25rem;
}

.fb-section-icon::before {
  --fb-icon-size: 0.85rem;
}

.fb-icon-only {
  width: 2.75rem;
  min-width: 2.75rem;
  padding-inline: 0 !important;
  aspect-ratio: 1;
  font-size: 0 !important;
}

.fb-icon-only > span:not(.visually-hidden) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.home-sales-header {
  gap: 0.35rem !important;
}

.home-offer-grid {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.home-offer-card {
  display: grid;
  grid-template-columns: 2.35rem 1fr;
  gap: 0.2rem 0.65rem;
  align-items: center;
  padding: 0.78rem;
  border: 1px solid var(--ng-border);
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--ng-bg-soft) 88%, transparent);
  color: var(--ng-text);
  text-decoration: none;
}

.home-offer-card--primary {
  border-color: rgba(255, 122, 0, 0.42);
  background: rgba(255, 122, 0, 0.1);
}

.home-offer-card strong,
.home-offer-card small,
.home-offer-badge {
  grid-column: 2;
}

.home-offer-card strong {
  font-size: 0.9rem;
  line-height: 1.2;
}

.home-offer-card small {
  color: var(--ng-text-muted);
  line-height: 1.3;
}

.home-offer-badge {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 1.25rem;
  padding: 0.18rem 0.45rem;
  border: 1px solid rgba(124, 255, 143, 0.38);
  border-radius: 999px;
  color: var(--ng-lime);
  background: rgba(124, 255, 143, 0.1);
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.home-offer-badge--premium {
  border-color: rgba(255, 122, 0, 0.42);
  color: var(--ng-orange);
  background: rgba(255, 122, 0, 0.12);
}

.home-offer-icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.14);
  color: var(--ng-orange);
}

.home-offer-icon::before {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  background: currentColor;
  -webkit-mask: var(--fb-icon) center / contain no-repeat;
  mask: var(--fb-icon) center / contain no-repeat;
}

/* Elevated “surface” cards (briefing + content pages) */
.briefing-shell,
.content-page .guide.ng-card {
  border-radius: var(--fb-radius-shell, 14px);
  box-shadow: var(--fb-ring-line), var(--fb-shadow-elevated) !important;
}

.content-page .guide.ng-card {
  background: var(--ng-bg-elevated) !important;
}

.content-page .guide.ng-card > .card-body {
  display: grid;
  gap: 0.85rem;
}

.page-view#page-home .briefing-shell {
  position: relative;
  overflow: hidden;
}

.page-view#page-home .briefing-shell::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--ng-lime) 0%,
    var(--ng-orange) 52%,
    rgba(255, 122, 0, 0.25) 100%
  );
  pointer-events: none;
}

/* SEO block: collapsed on small screens (progressive disclosure) */
.fb-seo-details > summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.9rem;
}

.fb-seo-details > summary::-webkit-details-marker {
  display: none;
}

.fb-seo-details > summary::after {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  margin-left: 0.35rem;
  border-right: 2px solid var(--ng-orange);
  border-bottom: 2px solid var(--ng-orange);
  transform: rotate(45deg);
  vertical-align: 0.15em;
  opacity: 0.75;
}

.fb-seo-details[open] > summary::after {
  transform: rotate(-135deg);
  vertical-align: -0.05em;
}

@media (min-width: 576px) {
  .fb-seo-details > summary {
    cursor: default;
    pointer-events: none;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ng-text-muted) !important;
  }

  .fb-seo-details > summary::after {
    display: none;
  }
}

main.container-xl {
  padding-top: 0.65rem !important;
  padding-bottom: 1rem !important;
  padding-left: max(0.65rem, env(safe-area-inset-left)) !important;
  padding-right: max(0.65rem, env(safe-area-inset-right)) !important;
}

@media (min-width: 992px) {
  main.container-xl {
    padding-top: 1rem !important;
    padding-bottom: 1.5rem !important;
  }
}

.page-shell-body,
.briefing-shell-body,
.content-page .guide .card-body {
  padding: 0.85rem !important;
}

@media (min-width: 768px) {
  .page-shell-body,
  .briefing-shell-body,
  .content-page .guide .card-body {
    padding: 1rem 1.15rem !important;
  }
}

.page-shell-header,
.briefing-shell-header {
  margin-bottom: 0.75rem;
}

.page-title {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .page-title {
    font-size: 1.5rem;
  }
}

.page-lead {
  margin: 0.3rem 0 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--ng-text-soft);
}

.fb-saas-section {
  border: 1px solid var(--ng-surface-border) !important;
  border-radius: 0.65rem !important;
  box-shadow: none !important;
}

.fb-saas-section h2,
.fb-saas-section h3 {
  letter-spacing: 0;
}

.content-page .form-label {
  display: block;
  color: var(--ng-text-dark-soft);
  font-weight: 800;
  line-height: 1.25;
}

.content-page .form-control,
.content-page .form-select {
  min-height: 2.55rem;
  margin-top: 0.25rem;
}

.content-page .input-group-sm > .form-control,
.content-page .input-group-sm > .btn {
  min-height: 2.55rem;
}

.sim-only-hint {
  margin: 0.4rem 0 0;
  font-size: 0.7rem;
  line-height: 1.35;
  color: var(--ng-text-muted);
}

/* Briefing form */
.briefing-shell {
  border-radius: 0.75rem;
}

.briefing-form {
  display: grid;
  gap: 0.65rem;
}

.briefing-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  padding: 0.2rem;
  border-radius: 0.6rem;
  background: var(--ng-bg-soft);
  border: 1px solid var(--ng-border);
}

.briefing-mode-tab {
  min-height: 2.5rem;
  border: 0;
  border-radius: 0.45rem;
  padding: 0.5rem 0.45rem;
  background: transparent;
  color: var(--ng-text-soft);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.15;
  touch-action: manipulation;
}

.briefing-mode-tab.is-active {
  background: var(--ng-surface-light);
  color: var(--ng-orange);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.briefing-mode-panel {
  display: grid;
  gap: 0.5rem;
}

.briefing-mode-panel[hidden] {
  display: none !important;
}

.briefing-mode-panel .form-label {
  margin-bottom: 0.15rem;
  font-size: 0.7rem;
  font-weight: 800;
}

.briefing-mode-panel .form-text {
  font-size: 0.68rem;
  line-height: 1.3;
}

.briefing-manual-grid {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .briefing-manual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .briefing-manual-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .briefing-manual-grid .field-full {
    grid-column: 1 / -1;
  }
}

#briefingForm .btn[type="submit"] {
  min-height: 2.75rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  touch-action: manipulation;
}

/* Results */
.summary {
  margin-top: 0.55rem !important;
  gap: 0.3rem !important;
  max-width: 100%;
  min-width: 0;
}

.summary span {
  max-width: 100%;
  min-width: 0;
  padding: 0.25rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

#page-briefing,
#page-briefing .briefing-results-page,
#page-briefing .page-shell-body,
#page-briefing .results {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.status {
  margin-top: 0.55rem !important;
  padding: 0.5rem 0.65rem !important;
  font-size: 0.8rem;
  line-height: 1.35;
}

.status.is-success {
  border-color: rgba(124, 255, 143, 0.42) !important;
  background: rgba(124, 255, 143, 0.1) !important;
  color: var(--ng-lime) !important;
}

.results {
  margin-top: 0.55rem !important;
  gap: 0.55rem !important;
}

.briefing-results-nav {
  display: flex;
  gap: 0.3rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.2rem;
  margin: 0 -0.15rem;
  padding-left: 0.15rem;
  padding-right: 0.15rem;
  scrollbar-width: none;
}

.briefing-results-nav::-webkit-scrollbar {
  display: none;
}

.briefing-results-tab {
  flex: 0 0 auto;
  min-width: clamp(3rem, 14vw, 3.4rem);
  min-height: 2.75rem;
  border: 1px solid var(--ng-border);
  border-radius: 999px;
  padding: 0.4rem 0.55rem;
  background: var(--ng-bg-soft);
  color: var(--ng-text-soft);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  touch-action: manipulation;
}

.briefing-results-tab::before {
  --fb-icon-size: 1.05rem;
}

.briefing-results-tab.is-active {
  border-color: rgba(255, 122, 0, 0.45);
  background: rgba(255, 122, 0, 0.12);
  color: var(--ng-orange);
}

.briefing-results-panel {
  display: none;
  padding-top: 0.55rem;
}

.briefing-results-panel.is-active {
  display: block;
}

.briefing-results-page,
.briefing-results-page .page-shell-body,
.briefing-results-shell,
.briefing-results-panel,
.ofp-results-stack,
.simbrief-full-ofp {
  max-width: 100%;
  min-width: 0;
}

.briefing-results-shell *:not(.briefing-results-tab) {
  min-width: 0;
}

.briefing-results-shell .source-note {
  margin: 0.45rem 0 0;
  font-size: 0.65rem;
}

.briefing-results-shell .airport-grid {
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.briefing-results-shell .airport-card strong,
.briefing-results-shell .procedure-card strong {
  font-size: 0.88rem;
}

.briefing-results-shell .airport-card .card-body,
.briefing-results-shell .procedure-card .card-body {
  padding: 0.55rem 0.65rem;
}

.procedure-stack,
.ofp-results-stack,
.airport-charts-stack {
  display: grid;
  gap: 0.55rem;
}

.briefing-results-shell .procedure-block + .procedure-block {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--ng-border);
}

.briefing-results-shell .procedure-block h4 {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ng-orange);
}

.chart-search-panel .btn {
  min-height: 2.75rem;
  touch-action: manipulation;
}

.chart-search-panel.is-autocomplete-loading,
.chart-search-panel.is-autocomplete-loading * {
  cursor: progress !important;
}

.chart-airport-field {
  position: relative;
  min-width: 0;
}

.chart-airport-field .form-control {
  width: 100%;
  min-width: 0;
}

.airport-suggestion-popover {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  display: grid;
  max-width: 100%;
  max-height: min(18rem, 46vh);
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid var(--fb-border);
  border-radius: 0.5rem;
  background: var(--fb-surface-raised);
  box-shadow: var(--fb-shadow);
  -webkit-overflow-scrolling: touch;
}

.airport-suggestion-popover[hidden] {
  display: none;
}

.airport-suggestion-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  width: 100%;
  min-width: 0;
  padding: 0.7rem 0.8rem;
  border: 0;
  border-bottom: 1px solid var(--fb-border);
  background: transparent;
  color: var(--fb-text);
  text-align: left;
}

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

.airport-suggestion-item:hover,
.airport-suggestion-item:focus,
.airport-suggestion-item.is-active {
  background: color-mix(in srgb, var(--fb-accent) 14%, transparent);
}

.airport-suggestion-item strong,
.airport-suggestion-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.airport-suggestion-item strong {
  color: var(--fb-accent);
  font-weight: 900;
}

.airport-suggestion-item span {
  color: var(--fb-text-muted);
  font-size: 0.86rem;
}

.chart-search-panel .d-flex.flex-wrap.gap-2,
.timetable-action-row {
  justify-content: flex-end;
}

.chart-search-results-shell .procedure-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.briefing-results-shell .chart,
.chart-search-results-shell .chart {
  gap: 0.5rem;
  padding: 0.7rem 0.75rem;
}

.briefing-results-shell .chart h3,
.chart-search-results-shell .chart h3 {
  font-size: 0.92rem;
  line-height: 1.25;
}

.briefing-results-shell .chart-actions,
.chart-search-results-shell .chart-actions {
  display: grid;
  grid-template-columns: repeat(3, 2.55rem);
  justify-content: end;
  gap: 0.35rem;
  margin-top: 0.45rem;
  width: auto;
}

.briefing-results-shell .chart-actions .btn,
.chart-search-results-shell .chart-actions .btn {
  width: 2.55rem;
  min-width: 2.55rem;
  min-height: 2.55rem;
  padding: 0;
  font-size: 0.74rem;
  white-space: nowrap;
}

.briefing-results-shell .chart-actions .view-link,
.chart-search-results-shell .chart-actions .view-link {
  font-weight: 900;
}

.briefing-results-shell .ofp-summary-grid {
  gap: 0.5rem;
}

.briefing-results-shell .ofp-summary-card {
  padding: 0.55rem 0.65rem;
}

.briefing-results-shell .ofp-summary-card h3 {
  font-size: 0.78rem;
}

.briefing-results-shell .ofp-summary-card li {
  font-size: 0.76rem;
}

.briefing-results-shell .route-chip {
  font-size: 0.7rem;
}

.briefing-results-shell .simbrief-ofp-toolbar {
  max-width: 100%;
}

.briefing-results-shell .simbrief-ofp-frame-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.briefing-results-shell .simbrief-ofp-frame {
  display: block;
  max-width: 100%;
  min-height: 240px;
  width: 100%;
  border: 0;
}

.briefing-results-shell .simbrief-ofp-text-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.briefing-results-shell .simbrief-ofp-text {
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0.7rem;
  border: 1px solid var(--ng-border);
  border-radius: 0.55rem;
  background: rgba(0, 0, 0, 0.22);
  color: var(--ng-text);
  font: 0.68rem/1.38 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* SEO block collapsed on mobile */
.seo-landing {
  margin-top: 0.55rem !important;
}

.seo-landing .card-body {
  padding: 0.7rem 0.85rem !important;
}

.seo-landing h2 {
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}

.seo-landing p {
  font-size: 0.72rem;
  margin-bottom: 0.25rem;
}

/* Content pages */
.content-page .display-5,
.content-page .display-6 {
  font-size: 1.25rem !important;
  line-height: 1.15;
}

.content-page .lead {
  font-size: 0.84rem !important;
  margin-bottom: 0.55rem !important;
}

.simbrief-callout {
  padding: 0.5rem 0.65rem !important;
  font-size: 0.76rem;
  line-height: 1.35;
}

.simbrief-callout strong {
  display: block;
  margin-bottom: 0.1rem;
}

.timetable-search-panel .form-label {
  font-size: 0.66rem;
  margin-bottom: 0.15rem;
}

.timetable-search-panel {
  margin-top: 0.85rem !important;
  padding: 0;
  border: 0;
  background: transparent;
}

.timetable-filter-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

.timetable-filter-inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
}

@media (min-width: 760px) {
  .timetable-filter-grid {
    grid-template-columns: minmax(9rem, 0.85fr) repeat(3, minmax(8rem, 1fr)) auto;
    align-items: end;
  }
}

.timetable-search-panel .btn {
  min-height: 2.5rem;
}

.timetable-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.timetable-time-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.timetable-time-field legend {
  grid-column: 1 / -1;
  margin: 0 0 0.15rem;
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--ng-text-soft);
}

.timetable-time-field select {
  width: 100%;
  min-width: 0;
  min-height: 2.55rem;
  border: 1px solid var(--ng-border);
  border-radius: 999px;
  padding: 0 0.55rem;
  background: color-mix(in srgb, var(--ng-bg-soft) 78%, transparent);
  color: var(--ng-text);
  font-weight: 900;
  text-align: center;
}

.timetable-time-field span {
  color: var(--ng-text-muted);
  font-weight: 900;
}

.home-timetable-feature .page-shell-body {
  padding-top: 1rem !important;
}

.home-timetable-feature .page-title {
  font-size: clamp(1.35rem, 7vw, 2rem);
}

.home-timetable-feature .page-lead {
  color: var(--ng-text-muted);
}

.home-timetable-feature .form-control,
.home-timetable-feature .form-select {
  min-height: 2.75rem;
}

.home-timetable-feature #timetableResultsWrap {
  margin-top: 0.9rem;
}

@media (max-width: 575px) {
  .timetable-action-row {
    justify-content: flex-end;
  }
}

.timetable-table-wrap {
  margin-left: -0.85rem;
  margin-right: -0.85rem;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

.timetable-card {
  position: relative;
  background: var(--ng-bg-soft);
  border-color: var(--ng-border);
  color: var(--ng-text);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.timetable-icon-action {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.35rem;
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid var(--ng-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ng-text-soft);
  line-height: 1;
  cursor: pointer;
}

.timetable-icon-action::before {
  content: "";
  width: var(--fb-icon-size, 1.05rem);
  height: var(--fb-icon-size, 1.05rem);
  background: currentColor;
  -webkit-mask: var(--fb-icon) center / contain no-repeat;
  mask: var(--fb-icon) center / contain no-repeat;
}

.timetable-icon-action:hover,
.timetable-icon-action:focus-visible {
  border-color: var(--ng-orange);
  color: var(--ng-orange);
  background: rgba(255, 122, 0, 0.12);
}

.timetable-favorite-action.is-favorite {
  --fb-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 3 2.8 5.7 6.2.9-4.5 4.4 1 6.2L12 17.3l-5.5 2.9 1-6.2L3 9.6l6.2-.9L12 3Z' fill='black'/%3E%3C/svg%3E");
  border-color: rgba(255, 122, 0, 0.65);
  color: var(--ng-orange);
  background: rgba(255, 122, 0, 0.14);
}

.timetable-simbrief-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.35rem;
  padding: 0 0.75rem;
  border: 1px solid rgba(255, 122, 0, 0.45);
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.12);
  color: var(--ng-orange);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.timetable-simbrief-action::before {
  content: "";
  width: 0.95rem;
  height: 0.95rem;
  background: currentColor;
  -webkit-mask: var(--fb-icon) center / contain no-repeat;
  mask: var(--fb-icon) center / contain no-repeat;
}

.timetable-simbrief-action:hover,
.timetable-simbrief-action:focus-visible {
  border-color: var(--ng-orange);
  background: var(--ng-orange);
  color: #17191c;
}

.timetable-card > .timetable-favorite-action {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
}

.timetable-card-head {
  padding-right: 2.95rem;
}

.timetable-card .airline-cell small,
.timetable-card-stat small {
  color: var(--ng-text-muted);
}

.airline-cell .airline-code-row {
  display: block;
  margin-top: 0.16rem;
}

.timetable-card-stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.timetable-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
}

.timetable-table .timetable-favorite-action {
  display: grid;
  margin-inline: auto;
}

.timetable-table .timetable-simbrief-action {
  margin-inline: auto;
}

:root[data-theme="light"] .timetable-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--ng-surface-border);
  color: var(--ng-text-dark);
  box-shadow: none;
}

:root[data-theme="light"] .timetable-card .airline-cell small,
:root[data-theme="light"] .timetable-card-stat small {
  color: var(--ng-text-dark-soft);
}

:root[data-theme="light"] .timetable-icon-action {
  background: rgba(255, 255, 255, 0.75);
  border-color: var(--ng-surface-border);
  color: var(--ng-text-dark-soft);
}

:root[data-theme="light"] .timetable-icon-action:hover,
:root[data-theme="light"] .timetable-icon-action:focus-visible,
:root[data-theme="light"] .timetable-favorite-action.is-favorite {
  color: var(--ng-orange);
  border-color: rgba(255, 122, 0, 0.65);
  background: rgba(255, 122, 0, 0.12);
}

:root[data-theme="light"] .timetable-simbrief-action {
  background: rgba(255, 122, 0, 0.1);
}

:root[data-theme="light"] .timetable-simbrief-action:hover,
:root[data-theme="light"] .timetable-simbrief-action:focus-visible {
  background: var(--ng-orange);
  color: #17191c;
}

:root[data-theme="light"] .timetable-card-stat {
  background: rgba(23, 25, 28, 0.05);
  border-color: transparent;
}

.support-check-row {
  padding: 0.45rem 0.55rem !important;
}

.support-group .card-body {
  padding: 0.65rem !important;
}

.support-group h2 {
  font-size: 0.82rem !important;
}

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

@media (min-width: 640px) {
  .support-inventory-grid {
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  }
}

.about-stack {
  gap: 0.55rem !important;
}

.about-block {
  padding: 0.6rem !important;
}

/* Auth — compact account menu (avatar + dropdown) */
.auth-widget {
  display: flex;
  align-items: center;
}

.navbar-account-slot.auth-widget,
.navbar-account-slot .auth-widget {
  margin: 0;
}

.auth-dropdown {
  position: relative;
}

.auth-header-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.auth-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  color: var(--ng-text-soft);
}

.auth-menu-trigger::after {
  display: none;
}

.auth-menu-trigger:hover,
.auth-menu-trigger:focus,
.auth-menu-trigger.show {
  color: var(--ng-orange);
  background: transparent;
  box-shadow: none;
}

.auth-menu-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.auth-menu-avatar--guest {
  color: var(--ng-text-muted);
}

.auth-menu-avatar--photo {
  border: none;
  object-fit: cover;
}

.auth-menu-trigger-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  max-width: min(14rem, 72vw);
}

.navbar-account-slot .auth-menu-trigger {
  min-height: 2.35rem;
}

.auth-premium-chip {
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0;
  border-radius: 999px;
  line-height: 1.15;
  white-space: nowrap;
  background: transparent;
  color: var(--ng-orange);
  border: 0;
}

.header-theme-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  min-width: 6.35rem;
  height: 2rem;
  padding: 0 0.32rem 0 0.48rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--fb-text-muted);
  box-shadow: none;
}

.header-theme-toggle:hover,
.header-theme-toggle:focus-visible {
  color: var(--fb-accent);
  outline: none;
}

.header-theme-toggle-label {
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
  color: currentColor;
}

.header-theme-toggle-track {
  position: relative;
  display: block;
  width: 2.1rem;
  height: 1.15rem;
  border: 1px solid var(--fb-border);
  border-radius: 999px;
  background: var(--fb-bg-soft);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.header-theme-toggle-thumb {
  position: absolute;
  top: 50%;
  left: 0.15rem;
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
  transition: transform 0.18s ease, background 0.18s ease;
}

.header-theme-toggle.is-dark {
  color: var(--fb-accent);
}

.header-theme-toggle.is-dark .header-theme-toggle-track {
  background: color-mix(in srgb, var(--fb-accent) 16%, var(--fb-bg-soft));
  border-color: color-mix(in srgb, var(--fb-accent) 44%, var(--fb-border));
}

.header-theme-toggle.is-dark .header-theme-toggle-thumb {
  transform: translate(0.93rem, -50%);
}

.home-simbrief-steps {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.75rem;
}

.home-simbrief-steps strong {
  font-size: 0.84rem;
  font-weight: 900;
  color: var(--fb-text);
}

.home-simbrief-steps ol {
  display: grid;
  gap: 0.32rem;
  margin: 0;
  padding-left: 1.15rem;
  color: var(--fb-text-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.simbrief-pilot-field {
  display: grid;
  gap: 0.3rem;
  max-width: 13rem;
  margin: 0.7rem 0 0;
  color: var(--fb-text-muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.simbrief-pilot-field .form-control {
  min-height: 2.5rem;
  border-radius: 0.62rem;
  letter-spacing: 0;
}

.auth-dropdown-menu {
  min-width: 12.5rem;
  padding: 0.35rem 0;
  border: 1px solid var(--ng-border);
  background: var(--ng-bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  list-style: none;
}

.auth-dropdown-menu li {
  list-style: none;
}

.auth-dropdown-menu .dropdown-item {
  width: calc(100% - 0.5rem);
  margin: 0.1rem 0.25rem;
}

@media (min-width: 992px) {
  .navbar-account-slot .auth-dropdown-menu.dropdown-menu-end {
    right: auto;
    left: 0;
  }
}

.auth-dropdown-header {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ng-text-muted);
}

.auth-dropdown-profile {
  padding: 0.5rem 0.85rem 0.35rem;
  max-width: 14rem;
}

.auth-dropdown-name {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-dropdown-email {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  color: var(--ng-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-google-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 600;
  color: inherit;
}

.auth-google-item:hover,
.auth-google-item:focus {
  background: var(--ng-bg-soft);
  color: inherit;
}

.auth-app-menu-item {
  min-height: 2.45rem;
  justify-content: flex-start;
  font-weight: 700;
}

.auth-app-menu-item:hover,
.auth-app-menu-item:focus {
  color: var(--ng-orange);
}

.auth-menu-glyph {
  position: relative;
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  border: 1.5px solid currentColor;
  border-radius: 0.32rem;
  opacity: 0.82;
}

.auth-menu-glyph--premium::after {
  content: "";
  position: absolute;
  inset: 0.25rem;
  border-radius: 999px;
  background: currentColor;
}

.auth-menu-glyph--account {
  border-radius: 999px;
}

.auth-menu-glyph--account::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.2rem;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
}

.auth-menu-glyph--account::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.18rem;
  width: 0.46rem;
  height: 0.28rem;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-top-left-radius: 999px;
  border-top-right-radius: 999px;
  transform: translateX(-50%);
}

.auth-menu-glyph--logout::after {
  content: "";
  position: absolute;
  right: -0.2rem;
  top: 50%;
  width: 0.48rem;
  height: 0.48rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  background: var(--ng-bg);
  transform: translateY(-50%) rotate(45deg);
}

.auth-modal-body .form-label {
  display: block;
  margin-bottom: 0.65rem;
}

.auth-modal-body .form-control,
.auth-modal-body .form-select {
  margin-top: 0.2rem;
}

.profile-webauthn-card {
  border: 1px solid rgba(255, 122, 0, 0.22) !important;
  border-radius: 0.6rem;
  padding: 0.75rem;
  background: #fff;
}

.profile-webauthn-card.is-unsupported {
  border-color: rgba(233, 163, 25, 0.45) !important;
  background: rgba(233, 163, 25, 0.08);
}

.profile-webauthn-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.75rem;
  border-radius: 0.5rem;
  padding: 0.55rem 0.7rem 0.55rem 2.9rem;
  background: rgba(255, 122, 0, 0.08);
}

.profile-webauthn-toggle .form-check-input {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 1.35rem;
  margin-top: 0;
  margin-left: -2.2rem;
}

.profile-webauthn-toggle .form-check-label {
  color: var(--ng-text-dark);
  font-weight: 800;
  line-height: 1.25;
}

.account-settings-grid {
  display: grid;
  gap: 0.8rem;
}

.account-settings-section {
  padding: 0.85rem;
}

.account-section-heading {
  margin-bottom: 0.75rem;
}

.account-section-heading h2,
.premium-manage-card h2 {
  color: var(--ng-text-dark);
}

.account-form-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
}

.profile-message {
  border: 1px solid var(--ng-surface-border);
}

.account-favorites-form .form-label,
.account-favorites-form .small {
  color: var(--ng-text-dark-soft);
  font-weight: 800;
}

.account-favorites-list {
  border: 1px solid var(--ng-surface-border);
  background: #fff;
  color: var(--ng-text-dark-soft);
}

.account-favorites-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.account-favorites-chip {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  min-height: 2rem;
  border: 1px solid var(--ng-surface-border);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  background: var(--ng-surface-light-alt);
  color: var(--ng-text-dark);
  font-weight: 800;
}

.account-favorites-action,
.account-favorites-remove {
  display: inline-grid;
  place-items: center;
  width: 1.95rem;
  height: 1.95rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.14);
  color: var(--ng-orange);
  padding: 0;
}

.account-favorites-action::before,
.account-favorites-remove::before {
  content: "";
  width: 0.95rem;
  height: 0.95rem;
  background: currentColor;
  -webkit-mask: var(--fb-icon) center / contain no-repeat;
  mask: var(--fb-icon) center / contain no-repeat;
}

.account-favorites-action:hover,
.account-favorites-action:focus,
.account-favorites-remove:hover,
.account-favorites-remove:focus {
  background: var(--ng-orange);
  color: #17191c;
}

.account-favorites-remove.is-favorite {
  --fb-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 3 2.8 5.7 6.2.9-4.5 4.4 1 6.2L12 17.3l-5.5 2.9 1-6.2L3 9.6l6.2-.9L12 3Z' fill='black'/%3E%3C/svg%3E");
}

.account-favorites-remove:not(.is-favorite) {
  border: 1px solid var(--ng-surface-border);
  background: transparent;
  color: var(--ng-text-muted);
}

@media (min-width: 768px) {
  .account-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.chart-favorite-btn {
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0.2rem 0.45rem;
  line-height: 1;
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--ng-border);
  --bs-btn-color: var(--ng-text-dark-soft);
  --bs-btn-hover-bg: rgba(23, 25, 28, 0.06);
  --bs-btn-hover-border-color: var(--ng-border);
  --bs-btn-hover-color: var(--ng-text-dark);
  --bs-btn-active-bg: rgba(23, 25, 28, 0.1);
  --bs-btn-active-border-color: var(--ng-border);
  background: transparent;
  border: 1px solid var(--ng-border);
  color: var(--ng-text-dark-soft);
}

.chart-favorite-btn:focus-visible {
  outline: 2px solid var(--ng-orange);
  outline-offset: 2px;
}

.chart-favorite-btn.is-favorite {
  --bs-btn-bg: rgba(255, 122, 0, 0.12);
  --bs-btn-border-color: rgba(255, 122, 0, 0.45);
  --bs-btn-color: var(--ng-orange);
  --bs-btn-hover-bg: rgba(255, 122, 0, 0.18);
  --bs-btn-hover-color: var(--ng-orange);
  color: var(--ng-orange);
  border-color: rgba(255, 122, 0, 0.45);
  background: rgba(255, 122, 0, 0.12);
}

/* Home: quick links to primary tools */
.fb-quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0.75rem 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--ng-border);
  background: var(--ng-bg-soft);
}

.fb-quick-links .fb-quick-link {
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  color: var(--ng-text-soft);
}

.fb-quick-links .fb-quick-link:hover {
  background: rgba(255, 122, 0, 0.1);
  color: var(--ng-orange);
}

.fb-quick-links .fb-quick-link:focus-visible {
  background: rgba(255, 122, 0, 0.1);
  color: var(--ng-orange);
  outline: 2px solid var(--ng-orange);
  outline-offset: 2px;
}

@media (max-width: 575px) {
  .fb-quick-links {
    gap: 0.25rem 0.35rem;
    padding: 0.55rem 0.65rem;
  }

  .fb-quick-links .fb-quick-link {
    font-size: 0.78rem;
  }
}

.fb-desktop-nav-only {
  display: none !important;
}

@media (min-width: 992px) {
  .navbar-nav .fb-desktop-nav-only {
    display: inline-flex !important;
  }
}

/* Navbar mobile */
@media (max-width: 991px) {
  .navbar-brand span:first-child {
    font-size: 0.95rem;
  }

  .navbar-brand code {
    font-size: 0.48rem !important;
  }

  .navbar-nav .nav-link {
    padding: 0.55rem 0.65rem;
    font-size: 0.88rem;
  }

  .language-toggle {
    width: 100%;
    justify-content: center;
    margin-top: 0.35rem;
  }
}

/* Premium retention strip (scheduled cancellation) */
.premium-retention-banner {
  border-bottom: 1px solid rgba(255, 122, 0, 0.38);
}

.premium-retention-banner #premiumRetentionBannerText {
  flex: 1 1 12rem;
  line-height: 1.35;
}

/* Premium offer (plans + pricing) */
.premium-includes-stack .premium-includes-list {
  line-height: 1.45;
}

.premium-plan-grid {
  --bs-gutter-x: 0.85rem;
  --bs-gutter-y: 0.85rem;
}

.premium-plan-col-annual {
  order: -1;
}

@media (min-width: 768px) {
  .premium-plan-col-annual {
    order: -1;
  }
}

.premium-plan-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ng-surface-border);
  border-radius: 0.75rem !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.premium-plan-card:hover {
  border-color: rgba(255, 122, 0, 0.45);
  transform: translateY(-1px);
}

.premium-plan-card-annual {
  border-color: rgba(255, 122, 0, 0.55) !important;
  background: linear-gradient(180deg, #fffaf5 0%, var(--ng-surface-light) 100%) !important;
}

.premium-plan-card .btn {
  min-height: 2.65rem;
}

.premium-price-line {
  margin: 0;
  min-height: 2.6rem;
}
.premium-price-amount {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 900;
  color: var(--ng-text-dark, #1a1a1a);
  letter-spacing: -0.02em;
}
.premium-price-amount-xl {
  font-size: clamp(1.55rem, 4.5vw, 2.1rem);
  color: var(--ng-orange, #ff7a00);
}
.premium-plan-card-annual .premium-annual-pitch {
  line-height: 1.35;
}

.premium-manage-card {
  margin-top: 0.85rem;
}

.premium-manage-card .btn {
  flex: 1 1 11rem;
  min-height: 2.55rem;
}

.premium-compare {
  padding: 1rem;
}

.premium-compare-grid {
  display: grid;
  gap: 0.75rem;
}

.premium-compare-grid article {
  border: 1px solid var(--ng-surface-border);
  border-radius: 0.7rem;
  padding: 0.85rem;
  background: var(--ng-surface-light);
}

.premium-compare-grid strong {
  display: block;
  margin-bottom: 0.55rem;
  font-weight: 900;
}

.premium-compare-grid ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ng-text-dark-soft);
  font-size: 0.86rem;
}

@media (min-width: 768px) {
  .premium-compare-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.premium-includes-stack {
  background: #fff !important;
}

.premium-includes-list li::marker {
  color: var(--ng-orange);
}
@media (max-width: 575.98px) {
  .row.g-3.align-items-stretch > .col-md-6:last-child .premium-plan-card-annual {
    margin-bottom: 0.25rem;
  }
}

/* Documentation: embedded learning anchors clear sticky navbar */
#docs-learning,
#learning-ifr,
#learning-metar {
  scroll-margin-top: 5.75rem;
}

/* Lighter mobile-first polish for home, account, and Premium. */
.briefing-shell,
.content-page .guide.ng-card {
  box-shadow: var(--fb-ring-line), 0 12px 30px rgba(17, 24, 39, 0.06) !important;
}

.home-context-panel {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--ng-border);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.54);
}

.home-context-panel h2 {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 900;
  color: var(--ng-text);
}

.home-context-panel p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--ng-text-muted);
}

.account-settings-section {
  background: #fff !important;
}

.account-section-heading h2,
.premium-manage-card h2 {
  display: flex;
  align-items: center;
}

.navbar-nav .nav-link.fb-nav-icon {
  border-radius: 0.55rem;
}

.premium-sales-hero {
  display: grid;
  gap: 0.85rem;
  padding: 0.2rem 0 0.45rem;
}

.premium-sales-hero .page-title {
  font-size: clamp(1.55rem, 6vw, 2.35rem);
}

.premium-sales-hero .page-lead {
  max-width: 42rem;
  font-size: 0.92rem;
}

.premium-hero-proof {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255, 122, 0, 0.22);
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #fff 0%, #fff8f1 100%);
  color: var(--ng-text-dark);
}

.premium-hero-proof .fb-section-icon {
  width: 2.1rem;
  height: 2.1rem;
  margin: 0;
}

.premium-hero-proof strong,
.premium-hero-proof small {
  display: block;
}

.premium-hero-proof small {
  color: var(--ng-text-muted);
  font-weight: 700;
}

.premium-sales-layout {
  display: grid;
  gap: 0.9rem;
}

.premium-sales-main,
.premium-sales-aside {
  min-width: 0;
}

@media (min-width: 992px) {
  .premium-sales-hero {
    grid-template-columns: minmax(0, 1fr) 15rem;
    align-items: end;
  }

  .premium-sales-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 0.95fr);
    align-items: stretch;
  }
}

.premium-includes-stack {
  height: 100%;
  padding: 1rem;
  background: #fff !important;
}

.premium-includes-stack .premium-includes-list {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  line-height: 1.35;
  list-style: none;
}

.premium-includes-list li {
  position: relative;
  min-height: 2.35rem;
  padding: 0.55rem 0.6rem 0.55rem 2.25rem;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 0.65rem;
  background: var(--ng-surface-light);
  color: var(--ng-text-dark-soft);
  font-weight: 750;
}

.premium-includes-list li::before {
  content: "";
  position: absolute;
  left: 0.7rem;
  top: 0.72rem;
  width: 0.9rem;
  height: 0.9rem;
  background: var(--ng-orange);
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m20 6-11 11-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m20 6-11 11-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.premium-plan-card {
  justify-content: space-between;
  min-height: 11.5rem;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 1rem !important;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.07) !important;
}

.premium-plan-card-annual {
  background: linear-gradient(180deg, #fff4e8 0%, #fff 82%) !important;
}

.premium-price-line {
  min-height: 3rem;
}

.premium-price-amount {
  font-size: clamp(1.55rem, 8vw, 2.2rem);
  letter-spacing: 0;
  white-space: nowrap;
}

.premium-price-amount-xl {
  font-size: clamp(1.85rem, 9vw, 2.7rem);
}

@media (min-width: 992px) {
  .premium-price-amount-xl {
    font-size: 2.35rem;
  }

  .premium-price-amount {
    font-size: 1.9rem;
  }
}

.premium-manage-card {
  background: #fff !important;
}

#page-home .briefing-shell,
#page-premium .guide.ng-card,
#page-account .guide.ng-card {
  background: #f8fafc !important;
  border-color: rgba(221, 227, 231, 0.95) !important;
  color: var(--ng-text-dark) !important;
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.1) !important;
}

#page-home .page-title,
#page-premium .page-title,
#page-account .page-title,
#page-home .h6,
#page-premium .h6,
#page-account .h6 {
  color: var(--ng-text-dark) !important;
}

#page-home .page-lead,
#page-premium .page-lead,
#page-account .page-lead,
#page-home .ng-text-soft,
#page-premium .ng-text-soft,
#page-account .ng-text-soft,
#page-home .sim-only-hint,
#page-premium .premium-annual-pitch {
  color: var(--ng-text-dark-soft) !important;
}

#page-home .ng-text-muted,
#page-premium .ng-text-muted,
#page-account .ng-text-muted {
  color: #66707a !important;
}

#page-home .briefing-mode-tabs {
  background: #eef2f5;
  border-color: #d9e1e7;
}

#page-home .briefing-mode-tab.is-active {
  background: #fff;
}

#page-home .home-context-panel {
  background: #fff;
  border-color: #dce4ea;
}

#page-home .home-context-panel h2,
#page-home .home-context-panel p {
  color: var(--ng-text-dark-soft);
}

@media (max-width: 575.98px) {
  .btn.fb-action,
  #page-home .form-control,
  #page-home .form-select,
  #page-account .form-control,
  #page-account .form-select {
    min-height: 2.75rem;
  }

  #page-home .briefing-shell,
  #page-premium .guide.ng-card,
  #page-account .guide.ng-card {
    border-radius: 1rem;
  }
}
