.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 #cbd5f5 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    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: #99a7cf;
    background: #eef2ff;
    color: #1d4ed8;
    outline: none;
}

.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);
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.25);
    color: #f59e0b;
    flex-shrink: 0;
}

.flight-row__contest-toggle .flight-row__contest-toggle-icon {
    font-size: 0.8rem;
    color: #475569;
    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 #d5ddf5;
    background: #f5f8ff;
    color: #1e3a8a;
    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: #e0e8ff;
    outline: none;
}

.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 {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    background: #f8fafc;
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.flight-upload__tab:hover,
.flight-upload__tab:focus-visible {
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
    outline: none;
}

.flight-upload__tab--active {
    color: #0f172a;
    border-color: transparent;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.35), 0 6px 16px rgba(79, 70, 229, 0.25);
}

.flight-upload__tab--active::after {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 4px;
    background: #c7d2fe;
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.35);
}

.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;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.08), 0 6px 20px rgba(15, 76, 129, 0.15);
  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;
}

.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;
  box-shadow: inset 3px 0 0 var(--flight-type-color);
}

.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;
  box-shadow: inset 3px 0 0 var(--flight-type-color);
  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;
  }

  .flight-upload__tab--active::after {
    display: none;
  }

  .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: rgba(148, 163, 184, 0.22) !important;
  background: rgba(15, 23, 42, 0.9) !important;
  color: #f8fafc !important;
}

body.dark-mode button.flight-row__contest-toggle:hover,
body.dark-mode button.flight-row__contest-toggle:focus-visible {
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(30, 41, 59, 0.96) !important;
  color: #dbeafe !important;
}

body.dark-mode .flight-row__contest-toggle .flight-row__contest-badge {
  background: rgba(249, 115, 22, 0.18);
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.28);
  color: #fdba74;
}

body.dark-mode .flight-row__contest-menu .flight-row__contest-chip {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.92);
  color: #dbeafe;
}

body.dark-mode .flight-row__contest-menu .flight-row__contest-chip:hover,
body.dark-mode .flight-row__contest-menu .flight-row__contest-chip:focus-visible {
  background: rgba(30, 41, 59, 0.96);
}

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

body.dark-mode .flight-upload__tab {
  background: rgba(15, 23, 42, 0.86);
  color: rgba(203, 213, 225, 0.88);
}

body.dark-mode .flight-upload__tab:hover,
body.dark-mode .flight-upload__tab:focus-visible {
  color: #dbeafe;
  border-color: rgba(96, 165, 250, 0.32);
  box-shadow: 0 10px 22px rgba(2, 6, 15, 0.24);
}

body.dark-mode .flight-upload__tab--active {
  color: #f8fafc;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(14, 165, 233, 0.85));
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.35), 0 8px 20px rgba(2, 6, 15, 0.28);
}

body.dark-mode .flight-upload__tab--active::after {
  background: rgba(37, 99, 235, 0.95);
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.28);
}

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);
  box-shadow: inset 3px 0 0 var(--flight-type-color);
}

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 {
  gap: 1rem;
  padding: 0.95rem;
}

.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__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: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.flights__view-toggle-button:hover,
.flights__view-toggle-button:focus-visible {
  color: #0f4c81;
  outline: none;
}

.flights__view-toggle-button.is-active {
  background: #0f4c81;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 76, 129, 0.18);
}

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

.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 rgba(203, 213, 225, 0.9);
  border-radius: var(--bxc-radius, 8px);
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.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: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.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__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__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: 999px;
  color: #64748b;
  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: #e0f2fe;
  color: #0f4c81;
  outline: none;
}

.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__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: #f1f5f9;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.flight-dashboard-card__comment:hover,
.flight-dashboard-card__comment:focus-visible {
  background: #e0f2fe;
  color: #0f4c81;
  outline: none;
}

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

body.dark-mode .flights__view-toggle,
body.dark-mode .flight-dashboard-card {
  border-color: rgba(71, 85, 105, 0.82);
  background: #0f172a;
}

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

body.dark-mode .flights__view-toggle-button.is-active {
  background: #38bdf8;
  color: #082f49;
}

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

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: #1e293b;
}

body.dark-mode .flight-dashboard-card__comment,
body.dark-mode .flight-dashboard-card__status,
body.dark-mode .flight-dashboard-card__metric-icon {
  background: #1e293b;
  color: #cbd5e1;
}

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

body.dark-mode .flight-dashboard-card__preview {
  background: #172033;
}

@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: 720px) {
  .flights__view-toggle,
  .flights__per-page,
  .flights__results-actions {
    width: 100%;
  }

  .flights__view-toggle-button {
    flex: 1 1 0;
  }

  .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;
  }
}
