/*! Copyright (c) 2025-2026 Markus Schüssler. All rights reserved.
 * SPDX-License-Identifier: LicenseRef-Markus-Schuessler-Proprietary; see repository LICENSE.
 */
.flights__aircraft-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 1rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--ui-color-border);
}

.flights__aircraft-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.5rem 1rem;
    border-radius: var(--ui-radius-md, 6px);
    color: var(--ui-color-text-muted);
    text-decoration: none;
    font-weight: 500;
}

.flights__aircraft-tab:hover,
.flights__aircraft-tab.is-active {
    background: var(--ui-color-surface-hover);
    color: var(--ui-color-primary-strong);
}

.flights__aircraft-tab.is-active {
    font-weight: 600;
}

.flights__aircraft-tab:focus-visible {
    outline: 2px solid var(--ui-color-focus);
    outline-offset: 2px;
}

.flight-row__contest-summary {
    position: relative;
    display: inline-flex;
}

button.flight-row__contest-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem 0.2rem 0.35rem;
    border-radius: 999px;
    border: 1px solid var(--ui-color-border);
    background: var(--ui-color-surface);
    color: var(--ui-color-text);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

button.flight-row__contest-toggle:hover,
button.flight-row__contest-toggle:focus-visible {
    border-color: var(--ui-color-primary-strong);
    background: var(--ui-color-surface-hover);
    color: var(--ui-color-primary-strong);
}

button.flight-row__contest-toggle:focus-visible {
    outline: 2px solid var(--ui-color-focus);
    outline-offset: 2px;
}

.flight-row__contest-toggle .flight-row__contest-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.25);
    box-sizing: border-box;
    color: #f59e0b;
    flex-shrink: 0;
}

.flight-row__contest-toggle .flight-row__contest-toggle-icon {
    font-size: 0.8rem;
    color: inherit;
    transition: transform 0.2s ease;
}

.flight-row__contest-summary.is-open .flight-row__contest-toggle .flight-row__contest-toggle-icon {
    transform: rotate(180deg);
}

.flight-row__contest-menu .flight-row__contest-chip {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--ui-color-border);
    background: var(--ui-color-surface-alt);
    color: var(--ui-color-text);
    text-decoration: none;
    font-size: 0.75rem;
}

.flight-row__contest-menu .flight-row__contest-chip:hover,
.flight-row__contest-menu .flight-row__contest-chip:focus-visible {
    background: var(--ui-color-surface-hover);
}

.flight-row__contest-menu .flight-row__contest-chip:focus-visible {
    outline: 2px solid var(--ui-color-focus);
    outline-offset: 2px;
}

.my-xc-summary__stat-label img,
.my-xc-summary__stat-label svg {
    width: 34px;
    height: 34px;
    max-width: 34px;
    max-height: 34px;
    object-fit: contain;
}

.flight-upload__tabs {
    display: flex;
    gap: 0.5rem;
    margin: 1.1rem 0 0.85rem;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.flight-upload__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.6rem 1.4rem;
    border-radius: var(--ui-radius-md, 6px);
    border: 0;
    color: var(--ui-color-text);
    text-decoration: none;
    font-weight: 500;
    background: transparent;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.flight-upload__tab:hover {
    color: var(--ui-color-text);
    background: var(--ui-color-surface-hover);
}

.flight-upload__tab--active {
    color: var(--ui-color-primary-strong);
    background: var(--ui-color-surface-hover);
    font-weight: 600;
    box-shadow: none;
}

.flight-upload__tab:focus-visible {
    outline: 2px solid var(--ui-color-focus);
    outline-offset: 2px;
}

.my-xc-summary__country-flag img {
    width: 20px;
    height: 14px;
    object-fit: cover;
}

.flight-row__route-icon {
    width: 34px;
    height: 34px;
}

.country-flag-icon {
    width: 20px;
    height: 14px;
    object-fit: cover;
}

/* my-xc-summary hero (copied from my-xc-summary-map.css for Flightbook) */
.my-xc-summary {
  display: flex;
  flex-direction: column;
  gap: 1.45rem;
  width: min(100%, var(--bxc-page-max-width, 1920px));
  margin-inline: auto;
  padding: 1.15rem;
}

.my-xc-summary--compact {
  padding: 0;
  gap: 1.15rem;
  margin: 0 auto 1.5rem;
}

.my-xc-summary__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: start;
  gap: 1.1rem;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.12), rgba(15, 23, 42, 0.08));
  border-radius: 12px;
  padding: 1.2rem;
}

.my-xc-summary__hero-text {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}

.my-xc-summary__hero-text h1 {
  margin: 0.1rem 0 0.45rem;
  font-size: clamp(1.5rem, 2.3vw, 2.4rem);
  color: #0f172a;
}

.my-xc-summary__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.8rem;
  color: #0f4c81;
  margin: 0;
}

.my-xc-summary__lede {
  max-width: 52ch;
  margin: 0;
  color: #1f2937;
  font-size: 1rem;
}

.my-xc-summary__hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.my-xc-summary__tag {
  background: rgba(255, 255, 255, 0.65);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #0f4c81;
  font-weight: 600;
  border: 1px solid rgba(15, 76, 129, 0.2);
}

.my-xc-summary__hero-stats {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-width: 0;
  width: 100%;
  align-self: stretch;
}

.my-xc-summary__stat {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  padding: 0.82rem 0.95rem;
  min-width: 150px;
  text-align: center;
  box-shadow: 0 8px 28px rgba(15, 76, 129, 0.15);
}

button.my-xc-summary__stat {
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.85);
  font: inherit;
}

.my-xc-summary__stat--action {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.my-xc-summary__stat--action:hover,
.my-xc-summary__stat--action:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(15, 76, 129, 0.2);
  outline: none;
}

.my-xc-summary__hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
  justify-content: stretch;
}

.my-xc-summary__hero-stat-grid--mini {
  gap: 0.6rem;
}

.my-xc-summary__stat--mini {
  flex: 1 1 140px;
  min-width: 140px;
  padding: 0.6rem 0.8rem;
  box-shadow: 0 4px 16px rgba(15, 76, 129, 0.15);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.my-xc-summary__stat--mini .my-xc-summary__stat-value {
  font-size: 1.35rem;
  font-weight: 700;
}

.my-xc-summary__stat-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.my-xc-summary__stat-icon img,
.my-xc-summary__stat-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.my-xc-summary__stat-title {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #475569;
  text-transform: uppercase;
}

.my-xc-summary__stat-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #475569;
}

.my-xc-summary__country-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--ui-color-border);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.my-xc-summary__country-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #1f2937;
}

.my-xc-summary__country-count {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
  margin-right: 0.35rem;
}

.my-xc-summary__country-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #475569;
}

.my-xc-summary__country-flags {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
  gap: 0.6rem;
}

.my-xc-summary__country-flag {
  width: auto;
  min-width: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  border: none;
  background: transparent;
  cursor: pointer;
}

.my-xc-summary__country-flag img {
  width: 40px;
  height: 28px;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

.my-xc-summary__country-flag span {
  font-size: 0.75rem;
  color: #1f2937;
}

.my-xc-summary__country-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  border: 1px dashed rgba(15, 23, 42, 0.2);
  color: #475569;
  font-weight: 600;
  font-size: 0.8rem;
}

.my-xc-summary__wide-panels {
  display: grid;
  gap: 0.8rem;
  min-width: 0;
}

.my-xc-summary__wide-panel {
  min-width: 0;
}

.flight-type-monthly {
  display: grid;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  min-width: 0;
}

.flight-type-monthly__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.flight-type-monthly__head > div {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.flight-type-monthly__head strong {
  color: #0f172a;
  font-size: 1rem;
}

.flight-type-monthly__head span {
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.35;
}

.flight-type-monthly__total {
  flex: 0 0 auto;
  min-width: 2.4rem;
  padding: 0.28rem 0.5rem;
  border-radius: 8px;
  background: #eef6ff;
  color: #0f4c81;
  text-align: center;
}

.flight-type-monthly__empty {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

.flight-type-monthly__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  color: #475569;
  font-size: 0.78rem;
}

.flight-type-monthly__legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.flight-type-monthly__legend i {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
}

.flight-type-monthly__years {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 0.8rem;
  min-width: 0;
}

.flight-type-monthly__year {
  display: block;
  min-width: 0;
}

@media (min-width: 900px) {
  .flight-type-monthly__year[open] {
    grid-column: 1 / -1;
  }
}

.flight-type-monthly__year > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  list-style: none;
  min-width: 0;
}

.flight-type-monthly__year > summary::-webkit-details-marker {
  display: none;
}

.flight-type-monthly__year[open] > summary {
  border-bottom-color: transparent;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.flight-type-monthly__year-title {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.flight-type-monthly__year-title strong {
  color: #0f172a;
  font-size: 0.95rem;
}

.flight-type-monthly__year-title small {
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
}

.flight-type-monthly__year-counts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.28rem;
  min-width: 0;
}

.flight-type-monthly__year-counts span {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.12rem 0.34rem;
  border-radius: 999px;
  background: #ffffff;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 700;
}

.flight-type-monthly__table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 0 0 8px 8px;
}

.flight-type-monthly__table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  table-layout: fixed;
}

.flight-type-monthly__table th,
.flight-type-monthly__table td {
  padding: 0.34rem 0.38rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  color: #334155;
  font-size: 0.78rem;
  text-align: center;
  white-space: nowrap;
}

.flight-type-monthly__table thead th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
}

.flight-type-monthly__table th:first-child {
  width: 5.4rem;
  text-align: left;
}

.flight-type-monthly__table tbody tr:last-child th,
.flight-type-monthly__table tbody tr:last-child td {
  border-bottom: 0;
}

.flight-type-monthly__table tbody th {
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
}

.flight-type-monthly__table tbody th span,
.flight-type-monthly__table tbody th small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flight-type-monthly__table tbody th small {
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 600;
}

.flight-type-monthly__table td.is-filled {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 800;
}

.flight-type-monthly__table td a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8rem;
  min-height: 1.6rem;
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
}

.flight-type-monthly__table td a:hover,
.flight-type-monthly__table td a:focus-visible {
  background: #e0f2fe;
  color: #075985;
  outline: none;
}

.flight-type-monthly__table tr.is-empty th,
.flight-type-monthly__table tr.is-empty td {
  color: #94a3b8;
}

.flight-type-monthly__month-total {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 800;
}

/* pilot-highlights (copied for Flightbook view) */
.pilot-highlights {
  margin: 1.8rem 0 1.2rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  background: #f8fafc;
}

.pilot-highlights__header h2 {
  margin: 0.2rem 0 0.4rem;
}

.pilot-highlights__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: #475569;
}

.pilot-highlights__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.8rem;
  margin-top: 0.95rem;
}

.pilot-highlights__card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #fff;
  min-width: 0;
}

.pilot-highlights__card header h3 {
  margin: 0 0 0.25rem;
}

.pilot-highlights__empty,
.pilot-highlights__error {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  background: #f8fafc;
  color: #475569;
}

.pilot-highlights__error {
  background: #fff1f2;
  color: #b91c1c;
}

.pilot-highlights__table-wrapper {
  overflow-x: auto;
}

.pilot-highlights__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 320px;
}

.pilot-highlights__table th,
.pilot-highlights__table td {
  font-size: 0.8rem;
  text-align: left;
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.pilot-highlights__table th {
  background: #fff;
  color: #475569;
  font-weight: 600;
}

.pilot-highlights__date-cell strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
}

.pilot-highlights__icon-cell {
  text-align: center;
}

.pilot-highlights__icon-cell img {
  width: 26px;
  height: 26px;
}

.pilot-highlights__distance-cell {
  font-weight: 600;
  color: #0f172a;
}

.pilot-highlights__actions {
  text-align: center;
}

.pilot-highlights__action-list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
}

.pilot-highlights__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid rgba(15, 76, 129, 0.25);
  border-radius: 999px;
  background: rgba(15, 76, 129, 0.07);
  color: #0f4c81;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.pilot-highlights__action:hover,
.pilot-highlights__action:focus-visible {
  background: rgba(15, 76, 129, 0.15);
  color: #0a3760;
  transform: translateY(-1px);
}

.pilot-highlights__action--copied {
  border-color: #22c55e;
  background: #22c55e;
  color: #ffffff;
}

.pilot-highlights__action-text {
  display: none;
}

.pilot-highlights__muted {
  color: #cbd5f5;
}

@media (max-width: 900px) {
  .my-xc-summary__hero {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .my-xc-summary__hero-text h1 {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .my-xc-summary__hero-stats {
    min-width: 0;
    width: 100%;
  }

  .my-xc-summary__hero-stat-grid {
    justify-content: stretch;
  }

  .my-xc-summary__stat {
    flex: 1 1 140px;
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .flight-upload__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .flight-upload__tab {
    flex: 1 1 160px;
    min-width: 0;
    padding: 0.65rem 0.95rem;
    text-align: center;
  }

  .my-xc-summary {
    padding: 0.85rem;
    gap: 1.1rem;
  }

  .my-xc-summary__hero {
    gap: 0.85rem;
    border-radius: 12px;
  }

  .my-xc-summary__hero-stat-grid,
  .my-xc-summary__hero-stat-grid--mini {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .my-xc-summary__country-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .my-xc-summary__country-flag {
    width: auto;
  }

  .pilot-highlights {
    padding: 0.85rem;
  }

  .pilot-highlights__grid {
    grid-template-columns: 1fr;
  }

  .pilot-highlights__table {
    min-width: 0;
  }

  .pilot-highlights__table thead {
    display: none;
  }

  .pilot-highlights__table,
  .pilot-highlights__table tbody,
  .pilot-highlights__table tr,
  .pilot-highlights__table td {
    display: block;
    width: 100%;
  }

  .pilot-highlights__table tr {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.62rem 0.72rem;
    margin-bottom: 0.75rem;
    background: #fff;
  }

  .pilot-highlights__table td {
    padding: 0.2rem 0;
    border-bottom: none;
  }

  .pilot-highlights__actions {
    text-align: left;
    padding-top: 0.45rem;
  }

  .pilot-highlights__action-list {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .flight-upload__tabs {
    grid-template-columns: 1fr;
  }

  button.flight-row__contest-toggle {
    width: 100%;
    justify-content: space-between;
    white-space: normal;
  }

  .my-xc-summary__hero {
    padding: 0.85rem;
  }

  .my-xc-summary__hero-text h1 {
    font-size: 1.35rem;
  }

  .my-xc-summary__lede {
    font-size: 0.94rem;
  }

  .my-xc-summary__hero-stat-grid,
  .my-xc-summary__country-flags {
    gap: 0.5rem;
  }

  .my-xc-summary__hero-stat-grid,
  .my-xc-summary__hero-stat-grid--mini {
    grid-template-columns: 1fr;
  }

  .my-xc-summary__country-flags {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .my-xc-summary__stat,
  .my-xc-summary__stat--mini {
    padding: 0.7rem 0.8rem;
  }

  .pilot-highlights__card {
    padding: 0.75rem;
  }
}

body.dark-mode button.flight-row__contest-toggle {
  border-color: var(--ui-color-border);
  background: var(--ui-color-surface);
  color: var(--ui-color-text);
}

body.dark-mode button.flight-row__contest-toggle:hover,
body.dark-mode button.flight-row__contest-toggle:focus-visible {
  border-color: var(--ui-color-primary-strong);
  background: var(--ui-color-surface-hover);
  color: var(--ui-color-primary-strong);
}

body.dark-mode .flight-row__contest-toggle .flight-row__contest-badge {
  background: rgba(249, 115, 22, 0.18);
  border-color: rgba(249, 115, 22, 0.28);
  color: #fdba74;
}

body.dark-mode .flight-upload__tabs {
  border-color: rgba(148, 163, 184, 0.18);
}

body.dark-mode .flight-upload__tab {
  background: transparent;
  color: var(--ui-color-text);
}

body.dark-mode .flight-upload__tab:hover {
  color: var(--ui-color-text);
  background: var(--ui-color-surface-hover);
}

body.dark-mode .flight-upload__tab--active {
  color: var(--ui-color-primary-strong);
  background: var(--ui-color-surface-hover);
  box-shadow: none;
}

body.dark-mode .my-xc-summary__hero {
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.52), rgba(15, 23, 42, 0.88));
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 24px 50px rgba(2, 6, 15, 0.32);
}

body.dark-mode .my-xc-summary__hero-text h1,
body.dark-mode .my-xc-summary__stat-value {
  color: #f8fafc;
}

body.dark-mode .my-xc-summary__eyebrow,
body.dark-mode .my-xc-summary__lede,
body.dark-mode .my-xc-summary__stat-label,
body.dark-mode .my-xc-summary__stat-title,
body.dark-mode .my-xc-summary__country-subtitle,
body.dark-mode .my-xc-summary__country-more {
  color: rgba(226, 232, 240, 0.84);
}

body.dark-mode .my-xc-summary__tag,
body.dark-mode .my-xc-summary__stat,
body.dark-mode button.my-xc-summary__stat,
body.dark-mode .my-xc-summary__country-card,
body.dark-mode .flight-type-monthly,
body.dark-mode .pilot-highlights__table tr {
  background: rgba(15, 23, 42, 0.88);
  border-color: rgba(148, 163, 184, 0.16);
  color: #f8fafc;
  box-shadow: 0 14px 28px rgba(2, 6, 15, 0.22);
}

body.dark-mode .my-xc-summary__country-card-header,
body.dark-mode .my-xc-summary__country-count,
body.dark-mode .my-xc-summary__country-flag span,
body.dark-mode .flight-type-monthly__head strong,
body.dark-mode .flight-type-monthly__year-title strong,
body.dark-mode .flight-type-monthly__table tbody th,
body.dark-mode .flight-type-monthly__table td.is-filled,
body.dark-mode .flight-type-monthly__month-total,
body.dark-mode .pilot-highlights__card header h3 {
  color: #f8fafc;
}

body.dark-mode .my-xc-summary__country-flag img {
  background: rgba(15, 23, 42, 0.98);
  border-color: rgba(148, 163, 184, 0.3);
}

body.dark-mode .my-xc-summary__tag,
body.dark-mode .my-xc-summary__stat,
body.dark-mode button.my-xc-summary__stat,
body.dark-mode .my-xc-summary__country-card,
body.dark-mode .flight-type-monthly,
body.dark-mode .pilot-highlights,
body.dark-mode .pilot-highlights__card,
body.dark-mode .pilot-highlights__empty,
body.dark-mode .pilot-highlights__table th,
body.dark-mode .pilot-highlights__table td {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.18);
  color: #f8fafc;
}

body.dark-mode .pilot-highlights,
body.dark-mode .pilot-highlights__card,
body.dark-mode .my-xc-summary__hero,
body.dark-mode .my-xc-summary__country-card,
body.dark-mode .my-xc-summary__stat {
  box-shadow: 0 14px 28px rgba(2, 6, 23, 0.24);
}

body.dark-mode .pilot-highlights__header h2,
body.dark-mode .pilot-highlights__card header h3,
body.dark-mode .pilot-highlights__distance-cell,
body.dark-mode .pilot-highlights__date-cell strong,
body.dark-mode .my-xc-summary__country-count,
body.dark-mode .my-xc-summary__country-card-header {
  color: #f8fafc;
}

body.dark-mode .pilot-highlights__eyebrow,
body.dark-mode .pilot-highlights__empty,
body.dark-mode .pilot-highlights__table th,
body.dark-mode .pilot-highlights__table td,
body.dark-mode .flight-type-monthly__head span,
body.dark-mode .flight-type-monthly__empty,
body.dark-mode .flight-type-monthly__legend,
body.dark-mode .flight-type-monthly__year-title small,
body.dark-mode .flight-type-monthly__year-counts,
body.dark-mode .flight-type-monthly__table th,
body.dark-mode .flight-type-monthly__table td,
body.dark-mode .flight-type-monthly__table tbody th small,
body.dark-mode .my-xc-summary__stat-title,
body.dark-mode .my-xc-summary__stat-label,
body.dark-mode .my-xc-summary__country-subtitle,
body.dark-mode .my-xc-summary__country-more {
  color: rgba(226, 232, 240, 0.82);
}

body.dark-mode .my-xc-summary__tag {
  background: rgba(20, 30, 48, 0.94);
  color: #dbeafe;
}

body.dark-mode .pilot-highlights__table th,
body.dark-mode .flight-type-monthly__table thead th {
  background: rgba(20, 30, 48, 0.96);
}

body.dark-mode .flight-type-monthly__total {
  background: rgba(14, 165, 233, 0.16);
  color: #dbeafe;
}

body.dark-mode .flight-type-monthly__table-wrap {
  border-color: rgba(148, 163, 184, 0.18);
}

body.dark-mode .flight-type-monthly__year > summary {
  background: rgba(20, 30, 48, 0.96);
  border-color: rgba(148, 163, 184, 0.18);
}

body.dark-mode .flight-type-monthly__year-counts span {
  background: rgba(15, 23, 42, 0.92);
  color: #dbeafe;
}

body.dark-mode .flight-type-monthly__table tbody th,
body.dark-mode .flight-type-monthly__month-total {
  background: rgba(15, 23, 42, 0.76);
}

body.dark-mode .flight-type-monthly__table th,
body.dark-mode .flight-type-monthly__table td {
  border-color: rgba(148, 163, 184, 0.16);
}

body.dark-mode .flight-type-monthly__table td.is-filled {
  background: rgba(30, 41, 59, 0.94);
}

body.dark-mode .flight-type-monthly__table td a:hover,
body.dark-mode .flight-type-monthly__table td a:focus-visible {
  background: rgba(14, 165, 233, 0.18);
  color: #e0f2fe;
}

body.dark-mode .pilot-highlights__action {
  border-color: rgba(147, 197, 253, 0.32);
  background: rgba(37, 99, 235, 0.18);
  color: #dbeafe;
}

body.dark-mode .pilot-highlights__action:hover,
body.dark-mode .pilot-highlights__action:focus-visible {
  background: rgba(37, 99, 235, 0.28);
  color: #ffffff;
}

body.dark-mode .pilot-highlights__action--copied {
  border-color: #22c55e;
  background: #22c55e;
  color: #ffffff;
}

body.dark-mode .my-xc-summary__country-flag img,
body.dark-mode .pilot-highlights__table th {
  box-shadow: none;
}

/* Compact flightbook summary shell */

.my-xc-summary--compact {
  gap: 0.9rem;
  margin: 0 auto 1.05rem;
}

.my-xc-summary__hero {
  gap: 0.85rem;
  border-radius: 10px;
  padding: 0.95rem;
}

.my-xc-summary__hero-tags {
  margin-top: 0.5rem;
  gap: 0.4rem;
}

.my-xc-summary__tag,
.my-xc-summary__stat,
.my-xc-summary__country-card,
.pilot-highlights,
.pilot-highlights__card {
  border-radius: 10px;
}

.my-xc-summary__stat {
  padding: 0.72rem 0.8rem;
}

.my-xc-summary__hero-stat-grid {
  gap: 0.55rem;
}

.my-xc-summary__hero-stat-grid--mini {
  gap: 0.5rem;
}

.pilot-highlights {
  margin: 1.15rem 0 0.85rem;
  padding: 0.82rem;
}

.pilot-highlights__grid {
  gap: 0.68rem;
  margin-top: 0.72rem;
}

.pilot-highlights__card {
  padding: 0.78rem;
}

/* Compact flightbook shells */
button.flight-row__contest-toggle,
.flight-row__contest-menu .flight-row__contest-chip,
.flight-upload__tab,
.my-xc-summary__tag {
  border-radius: 10px;
}

.my-xc-summary {
  gap: 1rem;
  padding: 0.95rem;
}

.my-xc-summary--compact {
  gap: 0.9rem;
  margin: 0 auto 1rem;
}

.my-xc-summary__hero {
  gap: 0.9rem;
  padding: 1rem;
}

.my-xc-summary__hero-tags,
.flight-upload__tabs {
  gap: 0.45rem;
}

.flight-upload__tabs {
  margin: 0.9rem 0 0.65rem;
}

.flight-upload__tab {
  padding: 0.5rem 1rem;
}

@media (max-width: 600px) {
  .my-xc-summary {
    gap: 0.6rem;
    padding: 0.55rem;
  }

  .my-xc-summary--compact {
    gap: 0.55rem;
    margin-bottom: 0.7rem;
  }

  .my-xc-summary__hero {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0.65rem;
    border-radius: var(--bxc-radius, 8px);
  }

  .my-xc-summary__hero-text {
    gap: 0.32rem;
  }

  .my-xc-summary__hero-text h1 {
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.15;
  }

  .my-xc-summary__eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.09em;
  }

  .my-xc-summary__lede {
    font-size: 0.86rem;
    line-height: 1.34;
  }

  .my-xc-summary__hero-tags {
    display: none;
  }

  .my-xc-summary__hero-stat-grid,
  .my-xc-summary__hero-stat-grid--mini {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.38rem;
  }

  .my-xc-summary__stat,
  .my-xc-summary__stat--mini {
    min-width: 0;
    padding: 0.48rem 0.35rem;
    border-radius: var(--bxc-radius, 8px);
  }

  .my-xc-summary__stat-icon {
    display: none;
  }

  .my-xc-summary__stat--mini .my-xc-summary__stat-value {
    font-size: 1rem;
    line-height: 1.1;
  }

  .my-xc-summary__stat-label,
  .my-xc-summary__stat-title {
    font-size: 0.66rem;
    line-height: 1.15;
  }

  .my-xc-summary__country-card {
    display: none;
  }

  .flight-type-monthly {
    padding: 0.62rem;
  }

  .flight-type-monthly__head {
    flex-direction: column;
    align-items: stretch;
  }

  .flight-type-monthly__total {
    width: max-content;
  }

  .flight-type-monthly__years {
    grid-template-columns: 1fr;
  }

  .flight-type-monthly__year > summary {
    flex-direction: column;
    align-items: stretch;
  }

  .flight-type-monthly__year-counts {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .my-xc-summary {
    padding: 0.42rem;
  }

  .my-xc-summary__lede {
    display: none;
  }

  .my-xc-summary__hero-stat-grid,
  .my-xc-summary__hero-stat-grid--mini {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.flights__results-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.flights__bulk-toolbar {
  position: sticky;
  top: 0.65rem;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.55rem 0;
  padding: 0.58rem 0.68rem;
  border: 1px solid var(--ui-color-border-strong);
  border-radius: var(--bxc-radius, 8px);
  background: var(--ui-color-surface-alt);
  box-shadow: 0 10px 24px var(--ui-shadow-color);
  backdrop-filter: blur(8px);
}

.flights__bulk-select-all,
.flight-row__selection,
.flight-dashboard-card__selection {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  font-weight: 700;
  color: #1e3a8a;
}

.flights__bulk-select-all input,
.flight-row__selection input,
.flight-dashboard-card__selection input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: #2563eb;
  cursor: pointer;
}

.flights__bulk-select-all {
  min-height: var(--ui-touch-target, 44px);
  color: var(--ui-color-text);
}

.flights__bulk-toolbar input[type="checkbox"] {
  accent-color: var(--ui-color-primary);
}

.flights__bulk-form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.52rem;
  flex: 1 1 auto;
  min-width: 0;
}

.flights__bulk-form[hidden] {
  display: none !important;
}

.flights__bulk-collection-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  gap: 0.48rem;
  min-width: min(620px, 52vw);
}

.flights__bulk-collection-fields[hidden],
.flights__bulk-collection-new[hidden] {
  display: none !important;
}

.flights__bulk-collection-fields label {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  color: var(--ui-color-text);
  font-size: 0.72rem;
  font-weight: 800;
}

.flights__bulk-form .flights__bulk-collection-fields select {
  min-width: 0;
  width: 100%;
}

.flights__bulk-collection-new {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 0.48rem;
  min-width: 0;
}

.flights__bulk-collection-fields input[type="text"] {
  min-height: var(--ui-touch-target, 44px);
  min-width: 0;
  width: 100%;
  padding: 0.45rem 0.72rem;
  border: 1px solid var(--ui-color-border-strong);
  border-radius: var(--bxc-radius, 8px);
  background: var(--ui-color-surface);
  color: var(--ui-color-text);
  font: inherit;
}

.flights__bulk-collection-public {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: var(--ui-touch-target, 44px);
  max-width: 180px;
}

.flights__bulk-count {
  margin-left: auto;
  color: var(--ui-color-text);
  white-space: nowrap;
}

.flights__bulk-toolbar.has-selection-error .flights__bulk-count {
  color: var(--ui-color-danger);
  white-space: normal;
}

.flights__bulk-form select,
.flights__bulk-apply,
.flights__bulk-clear {
  min-height: var(--ui-touch-target, 44px);
  border-radius: var(--bxc-radius, 8px);
  font: inherit;
  font-weight: 700;
}

.flights__bulk-form select {
  min-width: min(270px, 38vw);
  padding: 0.45rem 2.25rem 0.45rem 0.72rem;
  border: 1px solid var(--ui-color-border-strong);
  background: var(--ui-color-surface);
  color: var(--ui-color-text);
}

.flights__bulk-apply,
.flights__bulk-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  padding: 0.45rem 0.82rem;
  border: 0;
  cursor: pointer;
}

.flights__bulk-apply {
  background: var(--ui-color-primary);
  color: var(--ui-color-on-primary);
  box-shadow: 0 7px 16px var(--ui-shadow-color);
}

.flights__bulk-toolbar.is-delete-action .flights__bulk-apply {
  background: var(--ui-color-danger);
  box-shadow: 0 7px 16px var(--ui-shadow-color);
}

.flights__bulk-apply:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.flights__bulk-clear {
  background: transparent;
  color: var(--ui-color-primary);
}

.flight-row__selection {
  flex: 0 0 auto;
}

.flight-row.is-selected {
  background: var(--ui-color-surface-hover);
  box-shadow: none;
}

.flight-dashboard-card {
  position: relative;
}

.flight-dashboard-card__selection {
  box-sizing: border-box;
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 8;
  width: 44px;
  height: 44px;
  gap: 0;
  border: 1px solid var(--ui-color-border-strong);
  border-radius: var(--ui-radius-md, 6px);
  background: var(--ui-color-surface);
  color: var(--ui-color-text);
  box-shadow: none;
}

.flight-dashboard-card__selection:hover {
  border-color: var(--ui-color-primary);
  background: var(--ui-color-surface-hover);
}

.flight-dashboard-card__selection input {
  width: 20px;
  height: 20px;
  accent-color: var(--ui-color-primary);
}

.flight-dashboard-card__selection input:focus-visible {
  outline: 2px solid var(--ui-color-focus);
  outline-offset: 3px;
}

.flight-dashboard-card__selection:has(input:checked) {
  border-color: var(--ui-color-primary);
  background: var(--ui-color-surface-hover);
}

.flight-dashboard-card.is-selected {
  border-color: var(--ui-color-border-strong);
  background: var(--ui-color-surface-hover);
  box-shadow: none;
}

body.dark-mode .flight-dashboard-card__selection {
  border-color: var(--ui-color-border-strong, #5b747e);
  background: var(--ui-color-surface, #17262d);
  color: var(--ui-color-text, #e8f0f0);
}

body.dark-mode .flight-dashboard-card__selection:hover,
body.dark-mode .flight-dashboard-card__selection:has(input:checked) {
  border-color: var(--ui-color-primary, #83c9da);
  background: var(--ui-color-surface-hover, #294049);
}

.flights__view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  min-height: 44px;
  padding: 0.24rem;
  border: 1px solid rgba(203, 213, 225, 0.95);
  border-radius: 999px;
  background: #ffffff;
}

.flights__view-toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  min-height: 36px;
  padding: 0.38rem 0.74rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.flights__view-toggle-button:hover {
  background: var(--ui-color-surface-hover);
  color: var(--ui-color-text);
}

.flights__view-toggle-button:focus-visible {
  outline: 2px solid var(--ui-color-focus);
  outline-offset: 2px;
}

.flights__view-toggle-button.is-active {
  background: var(--ui-color-surface-hover);
  color: var(--ui-color-primary-strong);
  font-weight: 600;
  box-shadow: none;
}

[data-flightbook-view-panel][hidden] {
  display: none !important;
}

.soaring-list-comparison {
  min-width: 0;
  margin-block: 16px;
  border-block: 1px solid var(--ui-color-border);
  color: var(--ui-color-text);
}
.soaring-list-comparison > summary {
  min-height: 44px;
  padding: 12px 4px;
  cursor: pointer;
  font-weight: 600;
}
.soaring-list-comparison__page {
  margin-inline-start: 12px;
  color: var(--ui-color-text-muted);
  font-size: 14px;
  font-weight: 400;
}
.soaring-list-comparison__scroll { max-width: 100%; overflow-x: auto; }
.soaring-list-comparison table {
  width: 100%;
  min-width: 1760px;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--ui-color-surface);
  font-variant-numeric: tabular-nums;
}
.soaring-list-comparison th, .soaring-list-comparison td {
  padding: 12px;
  border-bottom: 1px solid var(--ui-color-border);
  vertical-align: top;
  text-align: end;
}
.soaring-list-comparison thead th {
  background: var(--ui-color-surface-alt);
  font-weight: 600;
}
.soaring-list-comparison th:first-child { width: 180px; min-width: 160px; text-align: start; }
.soaring-list-comparison th { font-weight: 400; }
.soaring-list-comparison a, .soaring-list-comparison__flight {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  overflow-wrap: anywhere;
}
.soaring-list-comparison a { color: var(--ui-color-primary-strong); }
.soaring-list-comparison strong { font-size: 16px; font-weight: 600; }
.soaring-list-comparison small, .soaring-list-comparison__flight > span, .soaring-list-comparison a > span {
  display: block;
  margin-top: 4px;
  color: var(--ui-color-text-muted);
  font-size: 12px;
  line-height: 1.5;
}
.soaring-list-comparison__limits {
  margin: 12px 4px;
  color: var(--ui-color-text-muted);
  font-size: 14px;
}
.soaring-list-comparison > summary:focus-visible,
.soaring-list-comparison__scroll:focus-visible,
.soaring-list-comparison a:focus-visible {
  outline: 2px solid var(--ui-color-primary);
  outline-offset: 2px;
}

.soaring-list-comparison__caption {
  padding: 8px 12px;
  text-align: start;
  color: var(--ui-color-text-muted);
}
.soaring-list-comparison thead button {
  min-height: 44px;
  width: 100%;
  padding: 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-align: end;
  cursor: pointer;
}
.soaring-list-comparison thead button:hover,
.soaring-list-comparison thead th[aria-sort="ascending"],
.soaring-list-comparison thead th[aria-sort="descending"] {
  color: var(--ui-color-primary-strong);
  background: var(--ui-color-surface-hover);
}
.soaring-list-comparison thead button:focus-visible {
  outline: 2px solid var(--ui-color-primary);
  outline-offset: 2px;
}
.soaring-list-comparison tfoot {
  border-top: 2px solid var(--ui-color-border);
  background: var(--ui-color-surface-alt);
}
.soaring-list-comparison__coverage { font-weight: 600; }
.soaring-list-comparison__status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (max-width: 600px) {
  .soaring-list-comparison__page { display: block; margin: 4px 0 0; }
  .soaring-list-comparison th, .soaring-list-comparison td { padding: 8px; }
  .soaring-list-comparison th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--ui-color-surface);
    border-inline-end: 1px solid var(--ui-color-border);
  }
  .soaring-list-comparison thead th:first-child,
  .soaring-list-comparison tfoot th:first-child { background: var(--ui-color-surface-alt); }
}

.flight-dashboard-list {
  display: grid;
  gap: 0.78rem;
}

.flight-dashboard-card {
  display: grid;
  grid-template-columns: minmax(220px, 38%) minmax(0, 1fr);
  min-height: 192px;
  overflow: hidden;
  border: 1px solid var(--ui-color-border);
  border-radius: var(--bxc-radius, 8px);
  background: var(--ui-color-surface);
  box-shadow: none;
}

.flight-dashboard-card--disabled {
  color: #64748b;
  background: #f8fafc;
}

.flight-dashboard-card--duplicate {
  color: #64748b;
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.75);
  box-shadow: none;
}

.flight-row--multi-start-day:not(.flight-row--disabled):not(.flight-row--duplicate) {
  background: #fffbeb;
}

.flight-row--multi-start-day.is-selected:not(.flight-row--disabled):not(.flight-row--duplicate) {
  background: var(--ui-color-surface-hover);
}

.flight-day-sequence-pill {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.28rem;
  max-width: 100%;
  padding: 0.2rem 0.48rem;
  border: 1px solid rgba(96, 165, 250, 0.38);
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}

.flight-day-sequence-pill > i {
  flex: 0 0 auto;
}

.flight-day-sequence-pill--multi-start {
  border-color: rgba(245, 158, 11, 0.45);
  background: #fffbeb;
  color: #b45309;
}

.flight-collection-pill-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  min-width: 0;
  max-width: 100%;
}

.flight-collection-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  max-width: 100%;
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(124, 58, 237, 0.34);
  border-radius: 999px;
  background: #f5f3ff;
  color: #6d28d9;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.flight-collection-pill:hover,
.flight-collection-pill:focus-visible {
  border-color: rgba(109, 40, 217, 0.62);
  color: #5b21b6;
  outline: none;
}

.flight-collection-pill > i {
  flex: 0 0 auto;
}

.flight-collection-pill__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flight-collection-pill--private {
  border-color: rgba(100, 116, 139, 0.38);
  background: #f8fafc;
  color: #475569;
}

.flight-row__cell--date .flight-collection-pill-list,
.public-flights__cell--date .flight-collection-pill-list {
  margin-top: 0.3rem;
  width: 100%;
}

.flight-row__cell--date .flight-day-sequence-pill {
  margin-top: 0.3rem;
}

.flight-dashboard-card__day-sequence {
  display: flex;
  align-items: center;
}

.flight-dashboard-card__preview-link {
  display: block;
  min-width: 0;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.flight-dashboard-card__preview {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 192px;
  overflow: hidden;
  background: #dbeafe;
}

.flight-dashboard-card__preview-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(15, 76, 129, 0.72);
  font-size: 2rem;
}

.flight-dashboard-card__preview.is-loading .flight-dashboard-card__preview-placeholder {
  opacity: 0.58;
}

.flight-dashboard-card__preview-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #dbeafe;
}

.flight-dashboard-card__preview-tile-layer {
  position: absolute;
  inset: 0;
}

.flight-dashboard-card__preview-tile {
  position: absolute;
  width: 256px;
  height: 256px;
  max-width: none;
  user-select: none;
  pointer-events: none;
}

.flight-dashboard-card__preview-overlay {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 192px;
  pointer-events: none;
}

.flight-dashboard-card__preview-track {
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter:
    drop-shadow(0 1px 1px rgba(15, 23, 42, 0.72))
    drop-shadow(0 0 2px rgba(255, 255, 255, 0.85));
}

.flight-dashboard-card__preview-route {
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 7 5;
  filter:
    drop-shadow(0 1px 1px rgba(15, 23, 42, 0.45))
    drop-shadow(0 0 2px rgba(255, 255, 255, 0.9));
}

.flight-dashboard-card__preview-route--style-triangle {
  stroke-dasharray: none;
}

.flight-dashboard-card__preview-route--style-approach {
  stroke-width: 2.5;
  stroke-dasharray: 6 5;
  opacity: 0.88;
}

.flight-dashboard-card__preview-route--style-closing {
  stroke-width: 2.3;
  stroke-dasharray: 2 6;
  opacity: 0.78;
}

.flight-dashboard-card__preview-route-marker circle {
  fill: #ffffff;
  stroke: var(--route-color, #f39c12);
  stroke-width: 2.5;
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.35));
}

.flight-dashboard-card__preview-route-marker text {
  fill: var(--route-color, #f39c12);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.flight-dashboard-card__preview-marker {
  stroke: #ffffff;
  stroke-width: 2.6;
}

.flight-dashboard-card__preview-marker--start {
  fill: #16a34a;
}

.flight-dashboard-card__preview-marker--end {
  fill: #ef4444;
}

.flight-dashboard-card__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.62rem;
  padding: 0.82rem 0.95rem;
}

.flight-dashboard-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}

.flight-dashboard-card__header-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: auto;
}

[data-flightbook-view-panel="dashboard"] .flight-dashboard-card__header {
  flex-wrap: wrap;
}

[data-flightbook-view-panel="dashboard"] .flight-dashboard-card__header-actions {
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  max-width: 100%;
}

.flight-dashboard-card__replay-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--ui-color-border);
  border-radius: 6px;
  color: var(--ui-color-primary-strong);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.flight-dashboard-card__replay-action:hover {
  background: var(--ui-color-surface-hover);
}

.flight-dashboard-card__replay-action:focus-visible {
  outline: 2px solid var(--ui-color-focus);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  [data-flightbook-view-panel="dashboard"] .flight-dashboard-card__header-actions {
    justify-content: flex-start;
    width: 100%;
    margin-left: 0;
  }
}

.flight-dashboard-card__title-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.52rem;
}

.flight-dashboard-card__title-wrap--summary {
  flex-wrap: wrap;
  gap: 0.42rem 0.58rem;
}

.flight-dashboard-card__status,
.flight-dashboard-card__metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 6px;
  background: #e2e8f0;
  color: #334155;
}

.flight-dashboard-card__status img,
.flight-dashboard-card__metric-icon img {
  display: block;
  width: 1.2rem;
  height: 1.2rem;
  object-fit: contain;
}

.flight-dashboard-card__status--warning {
  background: #dc2626;
  color: #ffffff;
}

.flight-dashboard-card__title {
  min-width: 0;
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
  color: #0f172a;
}

.flight-dashboard-card__title--pilot {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.flight-dashboard-card__title--launch {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.flight-dashboard-card__title--launch > a,
.flight-dashboard-card__title--launch > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.flight-dashboard-card__title-flag {
  flex: 0 0 20px;
  width: 20px;
  height: 14px;
  margin-top: calc(0.6em - 7px);
}

.flight-dashboard-card__pilot-heading {
  display: flex;
  align-items: center;
  gap: 0.68rem;
  min-width: 0;
}

.flight-dashboard-card__pilot-heading .flight-dashboard-card__title {
  flex: 1;
}

.flight-dashboard-card__pilot-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #16a34a);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.flight-dashboard-card__pilot-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.flight-dashboard-card__pilot-flag {
  flex: 0 0 auto;
  width: 21px;
  height: 14px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.flight-dashboard-card__title a {
  color: inherit;
  text-decoration: none;
}

.flight-dashboard-card__title a:hover,
.flight-dashboard-card__title a:focus-visible {
  color: #0f4c81;
  outline: none;
}

.flight-dashboard-card__quick-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  flex: 0 0 auto;
}

.flight-dashboard-card__quick-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--ui-radius-sm, 4px);
  color: var(--ui-color-text-muted);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.flight-dashboard-card__quick-actions a:hover,
.flight-dashboard-card__quick-actions a:focus-visible {
  background: var(--ui-color-surface-hover);
  color: var(--ui-color-primary-strong);
}

.flight-dashboard-card__quick-actions a:focus-visible {
  outline: 2px solid var(--ui-color-focus);
  outline-offset: 2px;
}

.flight-dashboard-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 650;
}

.flight-dashboard-card__meta span + span::before {
  content: '';
  display: inline-block;
  width: 0.28rem;
  height: 0.28rem;
  margin-right: 0.7rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.42;
  vertical-align: middle;
}

.flight-dashboard-card__engagement {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.32rem;
  min-width: 0;
}

.flight-dashboard-card__engagement .public-flights__engagement-badge,
.flight-dashboard-card__engagement .flight-row__social-badge {
  min-height: 1.45rem;
  padding: 0.18rem 0.45rem;
}

.flight-dashboard-card__distance-summary {
  display: inline-flex;
  align-items: baseline;
  gap: 0.38rem;
  color: #1e293b;
}

.flight-dashboard-card__title-wrap--summary .flight-dashboard-card__distance-summary {
  min-height: 1.85rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: #eef6ff;
}

.flight-dashboard-card__distance-summary strong {
  font-weight: 800;
}

.flight-dashboard-card__distance-summary small {
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 750;
}

.flight-dashboard-card__glider {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 0.45rem;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 700;
}

.flight-dashboard-card__equipment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  min-width: 0;
}

.flight-dashboard-card__equipment-row .flight-dashboard-card__glider {
  flex: 1 1 auto;
}

.flight-dashboard-card__launch {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 1 48%;
  min-width: 0;
  gap: 0.35rem;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 740;
  text-align: right;
}

.flight-dashboard-card__launch img {
  flex: 0 0 auto;
  width: 19px;
  height: 13px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  border-radius: 2px;
  object-fit: cover;
}

.flight-dashboard-card__launch span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flight-dashboard-card__glider img {
  display: block;
  flex: 0 0 auto;
  width: auto;
  max-width: 5.7rem;
  height: 1.42rem;
  object-fit: contain;
}

.flight-dashboard-card__glider-maker {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flight-dashboard-card__glider-model {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flight-dashboard-card__glider-model small {
  margin-left: 0.28rem;
  color: #94a3b8;
  font-weight: 700;
}

.flight-dashboard-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.52rem 0.76rem;
}

.flight-dashboard-card__metric {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 0.42rem;
  color: #1e293b;
  font-weight: 760;
}

.flight-dashboard-card__metric strong,
.flight-dashboard-card__metric small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flight-dashboard-card__metric small {
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 700;
}

.flight-dashboard-card__comment {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  max-width: 100%;
  margin-top: auto;
  padding: 0.42rem 0.72rem;
  border-radius: 6px;
  background: var(--ui-color-surface-alt);
  color: var(--ui-color-text-muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.flight-dashboard-card__comment:hover,
.flight-dashboard-card__comment:focus-visible {
  background: var(--ui-color-surface-hover);
  color: var(--ui-color-primary-strong);
}

.flight-dashboard-card__comment:focus-visible {
  outline: 2px solid var(--ui-color-focus);
  outline-offset: 2px;
}

.flight-dashboard-card__comment--disabled {
  opacity: 0.68;
}

body.dark-mode .flights__view-toggle,
body.dark-mode .flight-dashboard-card {
  border-color: var(--ui-color-border);
  background: var(--ui-color-surface);
}

body.dark-mode .flight-dashboard-card.is-selected {
  border-color: var(--ui-color-border-strong);
  background: var(--ui-color-surface-hover);
  box-shadow: none;
}

body.dark-mode .flights__view-toggle-button {
  color: #cbd5e1;
}

body.dark-mode .flights__view-toggle-button.is-active {
  background: var(--ui-color-surface-hover);
  color: var(--ui-color-primary-strong);
  box-shadow: none;
}

body.dark-mode .flight-dashboard-card--disabled {
  background: #111827;
  color: #94a3b8;
}

body.dark-mode .flight-row--multi-start-day:not(.flight-row--disabled):not(.flight-row--duplicate) {
  background: rgba(120, 53, 15, 0.28);
}

body.dark-mode .flight-row--multi-start-day.is-selected:not(.flight-row--disabled):not(.flight-row--duplicate) {
  background: var(--ui-color-surface-hover);
}

body.dark-mode .flight-day-sequence-pill {
  border-color: rgba(96, 165, 250, 0.42);
  background: rgba(30, 64, 175, 0.34);
  color: #bfdbfe;
}

body.dark-mode .flight-day-sequence-pill--multi-start {
  border-color: rgba(251, 191, 36, 0.44);
  background: rgba(120, 53, 15, 0.5);
  color: #fde68a;
}

body.dark-mode .flight-collection-pill {
  border-color: rgba(167, 139, 250, 0.46);
  background: rgba(91, 33, 182, 0.34);
  color: #ddd6fe;
}

body.dark-mode .flight-collection-pill--private {
  border-color: rgba(148, 163, 184, 0.38);
  background: rgba(51, 65, 85, 0.52);
  color: #cbd5e1;
}

body.dark-mode .flight-dashboard-card__title,
body.dark-mode .flight-dashboard-card__distance-summary,
body.dark-mode .flight-dashboard-card__metric {
  color: #f8fafc;
}

body.dark-mode .flight-dashboard-card__meta,
body.dark-mode .flight-dashboard-card__distance-summary small,
body.dark-mode .flight-dashboard-card__metric small,
body.dark-mode .flight-dashboard-card__glider,
body.dark-mode .flight-dashboard-card__launch,
body.dark-mode .flight-dashboard-card__glider-model small {
  color: #94a3b8;
}

body.dark-mode .flight-dashboard-card__title-wrap--summary .flight-dashboard-card__distance-summary {
  background: var(--ui-color-surface-alt);
}

body.dark-mode .flight-dashboard-card__comment,
body.dark-mode .flight-dashboard-card__status,
body.dark-mode .flight-dashboard-card__metric-icon {
  background: var(--ui-color-surface-alt);
  color: var(--ui-color-text-muted);
}

body.dark-mode .flight-dashboard-card__status--warning {
  background: #dc2626;
  color: #ffffff;
}

body.dark-mode .flight-dashboard-card__preview {
  background: var(--ui-color-surface-alt);
}

@media (max-width: 980px) {
  .flights__results-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .flight-dashboard-card {
    grid-template-columns: minmax(190px, 42%) minmax(0, 1fr);
  }
}

@media (max-width: 1180px) {
  .flights__bulk-toolbar {
    top: 0.5rem;
    align-items: stretch;
    flex-direction: column;
  }

  .flights__bulk-select-all {
    justify-content: flex-start;
    min-height: var(--ui-touch-target, 44px);
  }

  .flights__bulk-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }

  .flights__bulk-count {
    grid-column: 1 / -1;
    margin-left: 0;
  }

  .flights__bulk-form select {
    min-width: 0;
    width: 100%;
  }

  .flights__bulk-collection-fields,
  .flights__bulk-collection-new {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
    width: 100%;
  }

  .flights__bulk-collection-fields > label,
  .flights__bulk-collection-new,
  .flights__bulk-collection-fields input[type="text"] {
    min-width: 0;
    width: 100%;
  }

  .flights__bulk-collection-public {
    max-width: none;
  }

  .flights__bulk-clear {
    grid-column: 1 / -1;
    min-height: var(--ui-touch-target, 44px);
  }
}

@media (max-width: 720px) {
  .flights__bulk-collection-fields,
  .flights__bulk-collection-new {
    grid-template-columns: 1fr;
  }

  .flights__view-toggle,
  .flights__per-page,
  .flights__results-actions {
    width: 100%;
  }

  .flights__view-toggle-button {
    flex: 1 1 0;
    min-height: var(--bxc-touch-target, 44px);
  }

  .flight-row__selection {
    width: 44px;
    height: 44px;
    margin: -12px -8px;
  }

  .flight-dashboard-list {
    gap: 0.68rem;
  }

  .flight-dashboard-card {
    grid-template-columns: minmax(130px, 43%) minmax(0, 1fr);
    min-height: 172px;
  }

  .flight-dashboard-card__preview,
  .flight-dashboard-card__preview-overlay {
    min-height: 172px;
  }

  .flight-dashboard-card__body {
    gap: 0.48rem;
    padding: 0.68rem 0.72rem;
  }

  .flight-dashboard-card__title {
    font-size: 1rem;
  }

  .flight-dashboard-card__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.42rem 0.5rem;
  }

  .flight-dashboard-card__metric {
    font-size: 0.92rem;
  }

  .flight-dashboard-card__metric-icon,
  .flight-dashboard-card__status {
    width: 1.65rem;
    height: 1.65rem;
  }

  .flight-dashboard-card__equipment-row {
    align-items: flex-start;
    gap: 0.45rem;
  }

  .flight-dashboard-card__launch {
    flex-basis: 46%;
    font-size: 0.8rem;
  }

  .flight-dashboard-card__quick-actions {
    display: none;
  }
}

@media (max-width: 500px) {
  .flight-dashboard-card {
    grid-template-columns: 1fr;
  }

  .flight-dashboard-card__preview,
  .flight-dashboard-card__preview-overlay {
    min-height: 180px;
  }

  .flight-dashboard-card__metrics {
    grid-template-columns: 1fr 1fr;
  }

  .flight-dashboard-card__equipment-row {
    flex-wrap: wrap;
  }

  .flight-dashboard-card__launch {
    flex: 1 1 100%;
    justify-content: flex-start;
    text-align: left;
  }
}

.flightbook-processing-queue-slot[hidden] {
  display: none !important;
}

.flightbook-processing-queue-slot {
  margin: 0.75rem 0 0.9rem;
}

.flightbook-processing-queue {
  overflow: hidden;
  border: 1px solid var(--ui-color-border);
  border-radius: var(--ui-radius-lg, 8px);
  background: var(--ui-color-surface-alt);
  box-shadow: none;
}

.flightbook-processing-queue__header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem 0.85rem;
}

.flightbook-processing-queue__header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--ui-radius-md, 6px);
  background: var(--ui-color-surface-hover);
  color: var(--ui-color-primary-strong);
  box-shadow: none;
  font-size: 1rem;
}

.flightbook-processing-queue__heading {
  min-width: 0;
}

.flightbook-processing-queue__eyebrow {
  display: block;
  color: var(--ui-color-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.flightbook-processing-queue__heading h2 {
  margin: 0.12rem 0 0;
  color: var(--ui-color-text);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.2;
}

.flightbook-processing-queue__heading p {
  margin: 0.24rem 0 0;
  color: var(--ui-color-text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.flightbook-processing-queue__live {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.38rem 0.64rem;
  border: 1px solid var(--ui-color-border);
  border-radius: var(--ui-radius-md, 6px);
  background: var(--ui-color-surface);
  color: var(--ui-color-primary-strong);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.flightbook-processing-queue__notice {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 1.1rem 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(217, 119, 6, 0.26);
  border-radius: 10px;
  background: rgba(254, 243, 199, 0.72);
  color: #854d0e;
  font-size: 0.82rem;
  font-weight: 650;
}

.flightbook-processing-queue__items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr));
  gap: 0.72rem;
  padding: 0 1.1rem 0.85rem;
}

.flightbook-processing-card {
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid var(--ui-color-border);
  border-radius: var(--ui-radius-md, 6px);
  background: var(--ui-color-surface);
  box-shadow: none;
}

.flightbook-processing-card__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
}

.flightbook-processing-card__state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  background: #dbeafe;
  color: #1d4ed8;
}

.flightbook-processing-card--processing .flightbook-processing-card__state-icon {
  background: #dcfce7;
  color: #15803d;
}

.flightbook-processing-card--retry .flightbook-processing-card__state-icon,
.flightbook-processing-card--paused .flightbook-processing-card__state-icon {
  background: #fef3c7;
  color: #b45309;
}

.flightbook-processing-card--delayed .flightbook-processing-card__state-icon {
  background: #fee2e2;
  color: #b91c1c;
}

.flightbook-processing-card__identity {
  min-width: 0;
}

.flightbook-processing-card__identity > strong {
  display: block;
  overflow: hidden;
  color: #172033;
  font-size: 0.88rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flightbook-processing-card__identity > span {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.18rem;
  color: #64748b;
  font-size: 0.71rem;
  line-height: 1.35;
}

.flightbook-processing-card__status {
  align-self: start;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}

.flightbook-processing-card--processing .flightbook-processing-card__status {
  background: #dcfce7;
  color: #166534;
}

.flightbook-processing-card--retry .flightbook-processing-card__status,
.flightbook-processing-card--paused .flightbook-processing-card__status {
  background: #fef3c7;
  color: #92400e;
}

.flightbook-processing-card--delayed .flightbook-processing-card__status {
  background: #fee2e2;
  color: #991b1b;
}

.flightbook-processing-card__metrics {
  display: grid;
  grid-template-columns: minmax(74px, 0.6fr) minmax(90px, 0.8fr) minmax(170px, 1.8fr);
  gap: 0.42rem;
  margin-top: 0.68rem;
}

.flightbook-processing-card__metric {
  min-width: 0;
  padding: 0.5rem 0.56rem;
  border-radius: 9px;
  background: rgba(239, 246, 255, 0.74);
}

.flightbook-processing-card__metric small,
.flightbook-processing-card__metric strong,
.flightbook-processing-card__metric > span {
  display: block;
}

.flightbook-processing-card__metric small {
  color: #64748b;
  font-size: 0.65rem;
  font-weight: 650;
}

.flightbook-processing-card__metric strong {
  margin-top: 0.1rem;
  color: #172033;
  font-size: 0.81rem;
  line-height: 1.3;
}

.flightbook-processing-card__metric > span {
  margin-top: 0.12rem;
  color: #64748b;
  font-size: 0.67rem;
}

.flightbook-processing-card__hint,
.flightbook-processing-card__progress {
  margin: 0.62rem 0 0;
}

.flightbook-processing-card__hint {
  display: flex;
  align-items: flex-start;
  gap: 0.42rem;
  color: #64748b;
  font-size: 0.73rem;
  line-height: 1.42;
}

.flightbook-processing-card__hint--warning {
  color: #9a3412;
}

.flightbook-processing-card__progress {
  display: grid;
  gap: 0.42rem;
}

.flightbook-processing-card__progress strong {
  color: #334155;
  font-size: 0.76rem;
  font-weight: 650;
}

.flightbook-processing-card__progress-track {
  position: relative;
  display: block;
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  background: var(--ui-color-surface-hover);
}

.flightbook-processing-card__progress-track > span {
  position: absolute;
  inset: 0 auto 0 -38%;
  width: 38%;
  border-radius: inherit;
  background: var(--ui-color-primary);
  animation: flightbook-processing-progress 1.55s ease-in-out infinite;
}

@keyframes flightbook-processing-progress {
  0% { transform: translateX(0); }
  100% { transform: translateX(365%); }
}

.flightbook-processing-queue__footnote {
  display: flex;
  align-items: flex-start;
  gap: 0.42rem;
  margin: 0;
  padding: 0.66rem 1.1rem 0.72rem;
  border-top: 1px solid rgba(37, 99, 235, 0.13);
  color: #64748b;
  font-size: 0.7rem;
  line-height: 1.4;
}

body.dark-mode .flightbook-processing-queue {
  border-color: var(--ui-color-border);
  background: var(--ui-color-surface-alt);
  box-shadow: none;
}

body.dark-mode .flightbook-processing-queue__heading h2,
body.dark-mode .flightbook-processing-card__identity > strong,
body.dark-mode .flightbook-processing-card__metric strong {
  color: var(--ui-color-text);
}

body.dark-mode .flightbook-processing-queue__heading p,
body.dark-mode .flightbook-processing-card__identity > span,
body.dark-mode .flightbook-processing-card__metric small,
body.dark-mode .flightbook-processing-card__metric > span,
body.dark-mode .flightbook-processing-card__hint,
body.dark-mode .flightbook-processing-card__progress strong,
body.dark-mode .flightbook-processing-queue__footnote {
  color: var(--ui-color-text-muted);
}

body.dark-mode .flightbook-processing-queue__live,
body.dark-mode .flightbook-processing-card {
  border-color: var(--ui-color-border);
  background: var(--ui-color-surface);
}

body.dark-mode .flightbook-processing-queue__live {
  color: var(--ui-color-primary-strong);
}

body.dark-mode .flightbook-processing-card__metric {
  background: var(--ui-color-surface-alt);
}

body.dark-mode .flightbook-processing-card__hint--warning {
  color: #fdba74;
}

@media (max-width: 760px) {
  .flightbook-processing-queue__header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .flightbook-processing-queue__live {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .flightbook-processing-card__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flightbook-processing-card__metric--eta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .flightbook-processing-queue__header,
  .flightbook-processing-queue__items {
    padding-right: 0.72rem;
    padding-left: 0.72rem;
  }

  .flightbook-processing-queue__notice {
    margin-right: 0.72rem;
    margin-left: 0.72rem;
  }

  .flightbook-processing-card__top {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .flightbook-processing-card__status {
    grid-column: 2;
    justify-self: start;
  }

  .flightbook-processing-queue__footnote {
    padding-right: 0.72rem;
    padding-left: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flightbook-processing-card__progress-track > span {
    left: 0;
    width: 100%;
    animation: none;
  }

  .flightbook-processing-card .fa-spin {
    animation: none;
  }
}

/* Recording provenance is intentionally separate from glider equipment. */
.recording-source-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  max-width: 100%;
}

.recording-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  min-width: 0;
  max-width: 100%;
  min-height: 20px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ui-color-text-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.recording-source-badge__logo {
  display: block;
  flex: 0 1 auto;
  width: auto;
  max-width: 3.5rem;
  height: 1.05rem;
  padding: 0.08rem 0.16rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.96);
  object-fit: contain;
}

.recording-source-badge__fallback {
  flex: 0 0 auto;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.recording-source-badge__text {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flight-dashboard-card__recording-badges {
  align-self: flex-start;
}

@media (max-width: 500px) {
  .flight-dashboard-card__recording-badges {
    width: 100%;
  }

  .flight-dashboard-card__recording-badges .recording-source-badge {
    max-width: 100%;
  }
}

@media (forced-colors: active) {
  .recording-source-badge {
    border-color: CanvasText;
  }
}

/* Personal flightbook: readable cards and direct flight access on phones. */
.flight-row__view-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--ui-color-primary-strong); text-decoration: underline; text-underline-offset: 3px; }
body.dark-mode .flight-row__view-link { color: var(--ui-color-primary-strong); }
@media (max-width: 960px) {
    .flights .flights-layout__main { overflow: visible; }
    .flights .flights-tabs__nav-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .flights .flights-tabs__button, .flights .flights__action-button,
    .flights .flights__filters :is(select, input, button, a),
    .flights .flights__bulk-form :is(select, input:not([type=checkbox]), button),
    .flights .flights-manual-entry__form :is(input, select, textarea, button),
    .flights .flights__per-page select { min-height: 44px; font-size: 16px; }
    .flights .flights-manual-entry__form label, .flights .flights-manual-entry__grid { min-width: 0; }
    .flights .flights-manual-entry__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
    .flights .flights__bulk-toolbar { position: static; }
    .flights .flights__results-actions { flex-wrap: nowrap; }
    .flights .flights__view-toggle { flex: 1; width: auto; min-width: 0; }
    .flights .flights__view-toggle-button { padding-inline: 0.5rem; }
    .flights .flights__per-page { flex: 0 0 auto; width: auto; padding: 0.2rem; }
    .flights .flights__per-page select { padding-inline: 0.45rem; }
    .flights .flight-row:not(.flight-row--head) {
        grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas: "flight date date" "route distance points" "launch launch launch" "time time stats" "glider glider glider" "scored scored scored" "actions actions actions";
        gap: 0.5rem 0.65rem; padding: 0.75rem; margin: 0 0 0.7rem;
        border: 1px solid var(--ui-color-border); border-radius: 8px;
    }
    .flights .flight-row__cell { min-width: 0; font-size: 0.94rem; line-height: 1.4; align-items: flex-start; text-align: left; overflow-wrap: anywhere; }
    .flights .flight-row__cell::before { display: block; content: attr(data-label); font-size: 0.75rem; letter-spacing: 0; text-transform: none; line-height: 1.25; }
    .flights .flight-row__cell--flight { grid-area: flight; align-items: center; justify-content: center; }
    .flights .flight-row__cell--flight::before, .flights .flight-row__cell--date::before,
    .flights .flight-row__cell--route-icon::before, .flights .flight-row__cell--actions::before { display: none; }
    .flights .flight-row__selection { width: 44px; height: 44px; margin: 0; }
    .flights .flight-row__number-wrap { flex-wrap: nowrap; gap: 0.2rem; }
    .flights .flight-row__hash { display: none; }
    .flights .flight-row__cell--date { grid-area: date; }
    .flights .flight-row__cell--route-icon { grid-area: route; align-items: center; }
    .flights .flight-row__route-icon-wrap, .flights .flight-row__route-icon { width: 34px; height: 34px; }
    .flights .flight-row__cell--distance { grid-area: distance; }
    .flights .flight-row__cell--points { grid-area: points; }
    .flights .flight-row__cell--launch { grid-area: launch; }
    .flights .flight-row__cell--start-time { grid-area: time; display: flex; }
    .flights .flight-row__cell--avg-speed { grid-area: stats; display: flex; }
    .flights .flight-row__cell--glider { grid-area: glider; display: flex; overflow: visible; }
    .flights .flight-row__cell--scored { grid-area: scored; display: flex; min-height: 0; }
    .flights .flight-row__cell--actions { grid-area: actions; align-items: stretch; }
    .flights .flight-row__cell strong, .flights .flight-row__placeholder { font-size: inherit; white-space: normal; }
    .flights .flight-row__launch-site, .flights .flight-row__launch-coords,
    .flights .flight-row__cell--glider strong { white-space: normal; overflow: visible; text-overflow: clip; }
    /* Use the whole launch cell; a floated flag made its shrink-wrapped name wrap early. */
    .flights .flight-row__launch { width: 100%; min-width: 0; }
    .flights .flight-row__launch-entry { display: flex; align-items: center; gap: 0.5rem; width: 100%; min-width: 0; margin-bottom: 0; }
    .flights .flight-row__launch-flag { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; min-height: 44px; float: none; margin: 0; }
    .flights .flight-row__launch-site,
    .flights .flight-row__launch-coords,
    .flights .flight-row__launch-entry > .flight-row__placeholder { flex: 1 1 0; min-width: 0; overflow-wrap: break-word; word-break: normal; }
    .flights .flight-row__recording-badges--desktop { display: flex; flex-direction: row; flex-wrap: wrap; }
    .flights .flight-row__recording-badges--desktop .recording-source-badge { width: auto; }
    .flights .flight-row__recording-badges--mobile { display: none; }
    .flights .flight-row__meta-secondary { display: block; }
    .flights .flight-day-sequence-pill { white-space: normal; }
    .flights .flight-row__actions { width: 100%; }
    .flights .flight-row__actions-trigger { width: 100%; min-height: 44px; height: auto; padding: 0.5rem 0.75rem; justify-content: space-between; }
    .flights .flight-row__actions-label { font-size: 0.94rem; gap: 0.5rem; }
    .flights .flight-row__actions-caret { display: inline; }
    .flights .flight-row__actions-menu, .flights .flight-row__contest-menu { position: static; min-width: 0; width: 100%; max-width: 100%; box-shadow: none; }
    .flights .flight-row__action-item, .flights .flight-row__share-item, .flights .flight-row__contest-chip,
    .flights .flight-row__contest-toggle, .flights .flights__page-link { min-height: 44px; height: auto; }
    .flights .flight-row__action-item, .flights .flight-row__share-item { white-space: normal; overflow-wrap: anywhere; }
    .flights .flight-row__contest-summary { width: 100%; flex-wrap: wrap; }
    .flights .flight-row__contest-toggle { width: 100%; padding-inline: 0.5rem; }
    .flights .flight-row__contest-toggle-icon { display: inline; }
    .flights .flight-row__social--actions { display: flex; }
    .flights .flight-dashboard-card__quick-actions { display: flex; }
    .flights .flight-dashboard-card__quick-actions a { width: 44px; height: 44px; }
    .flights .flight-dashboard-card__comment { min-height: 44px; }
    .flights .flight-type-monthly__table td a { min-width: 44px; min-height: 44px; }
    .flights .flight-type-monthly__table { min-width: 650px; }
    .flights .my-xc-summary__stat-label, .flights .my-xc-summary__stat-title { font-size: 0.82rem; line-height: 1.4; overflow-wrap: anywhere; }
    .flights .my-xc-summary__country-card { display: flex; }
    .flights .my-xc-summary__hero-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .flights .pilot-highlights__action { width: 44px; height: 44px; flex-basis: 44px; }
    body.dark-mode .flights .flight-row:not(.flight-row--head) { border-color: var(--ui-color-border); }
}
@media (max-width: 640px) {
    .flights .flights-profile-card { margin-top: 0.4rem; }
    .flights .flights-sidebar__card--profile { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.25rem 0.5rem; padding: 0.65rem 0.8rem; }
    .flights .flights-sidebar__eyebrow { display: none; }
    .flights .flights-sidebar__card--profile h3 { margin: 0; font-size: 1rem; line-height: 1.35; overflow-wrap: anywhere; }
    .flights .flights-sidebar__meta { margin: 0; font-size: 0.82rem; }
    .flights .flights-sidebar__meta br { display: none; }
    .flights .flights-sidebar__stat { grid-column: 2; grid-row: 1; margin: 0; max-width: 7rem; text-align: right; }
    .flights .flights-sidebar__stat-value { font-size: 1.3rem; }
    .flights .flights-sidebar__stat-label { font-size: 0.75rem; }
    .flights .flights__bulk-select-all { font-size: 0.88rem; line-height: 1.4; }
    .flights .flights__pagination { flex-direction: row; gap: 0.5rem; }
    .flights .flights__page-link { display: inline-flex; align-items: center; justify-content: center; width: auto; padding: 0.4rem; }
    .flights .flights__page-status { font-size: 0.8rem; text-align: center; }
}
.flights .flights-sidebar__card--profile h3 { color: var(--ui-color-text); }
@media (max-width: 640px) {
    .flights .flights-tabs__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .flights .flights-tabs__actions > *, .flights .flights-manual-entry > summary { min-width: 0; height: 100%; text-align: center; line-height: 1.35; }
    .flights .flights-manual-entry[open] { grid-column: 1 / -1; }
    .flights .flights-manual-entry[open] > summary { height: auto; }
    .flights .flights__bulk-toolbar { padding-block: 0.2rem; }
}

/* Flight previews read as route records with a map, not miniature dashboards. */
.flights .flight-dashboard-list { gap: 8px; }
.flights .flight-dashboard-card {
  min-height: 176px;
  border-radius: 6px;
  background: var(--ui-color-surface);
}
.flights .flight-dashboard-card__body {
  gap: 8px;
  padding: 12px 14px;
}
.flights .flight-dashboard-card__title {
  color: var(--ui-color-text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.flights .flight-dashboard-card__title a:hover,
.flights .flight-dashboard-card__title a:focus-visible {
  color: var(--ui-color-primary-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.flights .flight-dashboard-card__title a:focus-visible {
  outline: 2px solid var(--ui-color-focus);
  outline-offset: 2px;
}
.flights .flight-dashboard-card__meta {
  gap: 4px 10px;
  color: var(--ui-color-text-muted);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.flights .flight-dashboard-card__pilot-avatar {
  border-radius: 6px;
  background: var(--ui-color-surface-hover);
  color: var(--ui-color-primary-strong);
  font-weight: 700;
}
.flights .flight-dashboard-card__status,
.flights .flight-dashboard-card__metric-icon {
  border-radius: 4px;
  background: var(--ui-color-surface-alt);
  color: var(--ui-color-text-muted);
}
.flights .flight-dashboard-card__status--warning {
  background: var(--ui-color-danger);
  color: var(--ui-color-on-primary);
}
.flights .flight-dashboard-card__title-wrap--summary .flight-dashboard-card__distance-summary {
  padding: 0;
  background: transparent;
  color: var(--ui-color-text);
}
.flights .flight-dashboard-card__distance-summary strong {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.flights .flight-dashboard-card__distance-summary small {
  color: var(--ui-color-text-muted);
  font-weight: 500;
}
@media (max-width: 960px) {
  .flights .flight-dashboard-card__body { padding: 10px 12px; }
}

/* The flightbook card keeps its route preview and all six measurements visible. */
[data-flightbook-view-panel="dashboard"] .flight-dashboard-card {
  min-height: 0;
}

[data-flightbook-view-panel="dashboard"] .flight-dashboard-card__detail-layout,
[data-flightbook-view-panel="dashboard"] .flight-dashboard-card__details {
  min-width: 0;
}

[data-flightbook-view-panel="dashboard"] .flight-dashboard-card__details {
  display: grid;
  align-content: start;
  gap: 8px;
}

[data-flightbook-view-panel="dashboard"] .flight-dashboard-card:not(.flight-dashboard-card--with-photos) .flight-dashboard-card__details {
  grid-template-columns: minmax(0, 1.12fr) minmax(190px, 0.88fr);
  column-gap: 18px;
}

[data-flightbook-view-panel="dashboard"] .flight-dashboard-card:not(.flight-dashboard-card--with-photos) .flight-dashboard-card__details > :not(.flight-dashboard-card__metrics) {
  grid-column: 1;
}

[data-flightbook-view-panel="dashboard"] .flight-dashboard-card:not(.flight-dashboard-card--with-photos) .flight-dashboard-card__metrics {
  grid-column: 2;
  grid-row: 1 / span 8;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}

[data-flightbook-view-panel="dashboard"] .flight-dashboard-card--with-photos .flight-dashboard-card__detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(168px, 27%);
  gap: 14px;
}

[data-flightbook-view-panel="dashboard"] .flight-dashboard-card__photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 6px;
  min-width: 0;
}

[data-flightbook-view-panel="dashboard"] .flight-dashboard-card__photo {
  display: block;
  min-width: 0;
  min-height: 44px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--ui-color-border);
  border-radius: var(--ui-radius-sm, 4px);
  background: var(--ui-color-surface-alt);
}

[data-flightbook-view-panel="dashboard"] .flight-dashboard-card__photos > :only-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

[data-flightbook-view-panel="dashboard"] .flight-dashboard-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-flightbook-view-panel="dashboard"] .flight-dashboard-card__photo:hover {
  border-color: var(--ui-color-primary);
}

[data-flightbook-view-panel="dashboard"] .flight-dashboard-card__photo:focus-visible {
  outline: 2px solid var(--ui-color-focus);
  outline-offset: 2px;
}

[data-flightbook-view-panel="dashboard"] .flight-dashboard-card__metrics {
  gap: 5px 10px;
}

[data-flightbook-view-panel="dashboard"] .flight-dashboard-card__metric {
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

[data-flightbook-view-panel="dashboard"] .flight-dashboard-card__metric-icon {
  width: 24px;
  height: 24px;
}

@media (max-width: 1250px) {
  [data-flightbook-view-panel="dashboard"] .flight-dashboard-card--with-photos .flight-dashboard-card__detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-flightbook-view-panel="dashboard"] .flight-dashboard-card__photos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  [data-flightbook-view-panel="dashboard"] .flight-dashboard-card__photos > :only-child {
    grid-column: span 2;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 1100px) {
  [data-flightbook-view-panel="dashboard"] .flight-dashboard-card:not(.flight-dashboard-card--with-photos) .flight-dashboard-card__details {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-flightbook-view-panel="dashboard"] .flight-dashboard-card:not(.flight-dashboard-card--with-photos) .flight-dashboard-card__metrics {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  [data-flightbook-view-panel="dashboard"] .flight-dashboard-card {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-flightbook-view-panel="dashboard"] .flight-dashboard-card__preview-link,
  [data-flightbook-view-panel="dashboard"] .flight-dashboard-card__preview {
    height: clamp(190px, 25vw, 240px);
    min-height: 190px;
  }

  [data-flightbook-view-panel="dashboard"] .flight-dashboard-card__preview-overlay {
    min-height: 190px;
  }
}

@media (max-width: 600px) {
  [data-flightbook-view-panel="dashboard"] .flight-dashboard-card__photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  [data-flightbook-view-panel="dashboard"] .flight-dashboard-card__photos > :only-child {
    aspect-ratio: 16 / 9;
  }

  [data-flightbook-view-panel="dashboard"] .flight-dashboard-card__metrics,
  [data-flightbook-view-panel="dashboard"] .flight-dashboard-card:not(.flight-dashboard-card--with-photos) .flight-dashboard-card__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.flights .flight-row__airfield-end {
  display: block;
  margin-top: 0.25rem;
  color: var(--ui-color-text-muted);
  font-size: 0.75rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.flights .flight-row__cell--soaring-locations .flight-row__launch-site {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.flights :is(.flight-row__airfield-start, .flight-row__airfield-end) {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.flights .flightbook-pipeline-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  min-width: 0;
  margin-top: 0.4rem;
  white-space: normal;
}

.flights .flightbook-pipeline-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--ui-color-border);
  border-radius: var(--ui-radius-sm, 4px);
  color: var(--ui-color-primary-strong);
  background: var(--ui-color-surface);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
  white-space: normal;
}

.flights .flightbook-pipeline-action:is(:hover, :focus-visible) {
  background: var(--ui-color-surface-hover);
  text-decoration: underline;
}

.flights .flightbook-pipeline-action:focus-visible {
  outline: 2px solid var(--ui-color-focus);
  outline-offset: 2px;
}

.flight-dashboard-card__photo { position: relative; }
.flight-dashboard-card__video-indicator { position: absolute; right: 6px; bottom: 6px; display: grid; place-items: center; width: 28px; height: 28px; background: rgba(0, 0, 0, .75); color: #fff; border-radius: 6px; }

.wanderbird-flightbook-form { margin: 0; }
.wanderbird-flightbook-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px; border: 1px solid var(--ui-color-border); border-radius: 6px; background: var(--ui-color-surface); color: var(--ui-color-primary); font: inherit; line-height: 1.3; cursor: pointer; text-decoration: none; }
.wanderbird-flightbook-action:hover { background: var(--ui-color-surface-hover); }
.wanderbird-flightbook-action:focus-visible { outline: 2px solid var(--ui-color-primary); outline-offset: 3px; }

.flightbook-manual-school {
    margin-block: 1.5rem;
    color: var(--ui-color-text);
}

.flightbook-manual-school h3 {
    margin: 0 0 .5rem;
    font-size: 1.125rem;
}

.flightbook-manual-school__hint {
    margin: 0 0 .75rem;
    color: var(--ui-color-text-muted);
    font-size: .875rem;
}

.flightbook-manual-school__scroll {
    overflow-x: auto;
}

.flightbook-manual-school__scroll:focus-visible,
.flightbook-manual-school summary:focus-visible {
    outline: 2px solid var(--ui-color-primary);
    outline-offset: 2px;
}

.flightbook-manual-school__table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
    font-variant-numeric: tabular-nums;
}

.flightbook-manual-school__table th,
.flightbook-manual-school__table td {
    padding: .75rem .5rem;
    border-bottom: 1px solid var(--ui-color-border);
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
    min-width: 5rem;
}

.flightbook-manual-school__table thead th {
    color: var(--ui-color-text-muted);
    font-weight: 500;
}

.flightbook-manual-school__table tbody th {
    font-weight: 500;
    min-width: 10rem;
}

.flightbook-manual-school__table span {
    display: block;
    color: var(--ui-color-text-muted);
    font-weight: 400;
}

.flightbook-manual-school__table .flightbook-manual-school__duration {
    text-align: right;
    white-space: nowrap;
}

.flightbook-manual-school summary {
    cursor: pointer;
    min-height: 44px;
    display: list-item;
    align-content: center;
    color: var(--ui-color-primary);
}

.flightbook-manual-school details p {
    margin: .5rem 0;
    font-weight: 400;
    max-width: 40ch;
}
