/* #region zone:flights.v3-home-style — บัตรพื้นเทาและรายการเที่ยวบิน */

.f3-status-airborne {
  background: var(--f3-soft);
  color: var(--f3-accent-ink);
}
.f3-status-delayed {
  background: var(--f3-amber-soft);
  color: var(--f3-amber);
}
.f3-status-cancelled,
.f3-status-diverted {
  background: var(--f3-red-soft);
  color: var(--f3-red);
}
.f3-pass {
  display: grid;
  gap: var(--u-space-4);
}
.f3-pass .f3-card-head {
  margin-bottom: 0;
  column-gap: var(--f3-logo-gap);
}
.f3-pass .airline-mark {
  width: var(--f3-logo-large);
  height: var(--f3-logo-large);
}
.f3-countdown {
  flex-basis: 100%;
  font-size: 14px;
  font-family: var(--f3-mono);
}
.f3-route {
  display: grid;
  grid-template-columns: auto minmax(48px, 1fr) auto;
  align-items: start;
  gap: var(--u-space-3);
  padding-block: var(--u-space-1) var(--u-space-4);
}
.f3-code {
  display: block;
  font-size: var(--f3-text-code);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 300;
}
.f3-place {
  display: grid;
  gap: 6px;
}
.f3-place:last-child {
  text-align: right;
}
.f3-place small {
  max-width: 16ch;
  overflow-wrap: anywhere;
}
.f3-route-track {
  position: relative;
  display: grid;
  place-items: center;
  height: 32px;
  margin-top: 7px;
}
.f3-route-track::before {
  content: '';
  position: absolute;
  inset: 15px 0 auto;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--f3-faint) 0 4px, transparent 4px 9px);
}

.f3-route-track svg {
  z-index: 1;
  background: var(--f3-card);
  rotate: 90deg;
}
.f3-route-block {
  position: absolute;
  inset: 34px 0 auto;
  text-align: center;
  color: var(--f3-muted);
  font: 12px var(--f3-mono);
}
.f3-times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--u-space-4);
  margin: 0;
  padding-top: var(--u-space-4);
  border-top: 2px dotted var(--f3-faint);
}
.f3-times dt,
.f3-facts dt {
  color: var(--f3-muted);
  font-size: var(--u-text-sm);
}
.f3-times dd {
  margin: 0;
  font-size: var(--f3-text-metric);
  letter-spacing: -0.03em;
}
.f3-times dd small {
  font-size: var(--u-text-xs);
  margin-left: 6px;
  color: var(--f3-muted);
}
.f3-times sup {
  font-size: var(--u-text-xs);
  color: var(--f3-accent-ink);
  margin-left: 3px;
}
.f3-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--u-space-3);
  margin: 0;
  padding-top: var(--u-space-3);
  border-top: 1px solid var(--f3-line);
}
.f3-facts dd {
  margin: 0;
  font-size: var(--u-text-sm);
  overflow-wrap: anywhere;
  font-family: var(--f3-mono);
}
.f3-frame .ontime-stats,
.f3-frame .ontime-stats :is(p, small) {
  color: var(--f3-muted);
  font-size: var(--u-text-xs);
  font-weight: 400;
}
.f3-pass > .f3-actions {
  justify-content: flex-end;
}
.f3-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--u-space-2);
}
.f3-timeline-leg {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: var(--u-space-3);
  padding: 10px var(--u-space-2);
  width: 100%;
  text-align: left;
  justify-content: stretch;
  white-space: normal;
  border-radius: 14px;
}
.f3-timeline-leg[aria-disabled='true'] {
  opacity: 1;
  cursor: default;
}
.f3-timeline-dot {
  width: 10px;
  height: 10px;
  background: var(--f3-accent);
  border-radius: 50%;
  margin-top: 7px;
}
.f3-timeline-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.f3-timeline-main {
  display: flex;
  flex-wrap: wrap;
  gap: var(--u-space-1) 10px;
  font-size: 16px;
}
.f3-timeline-body small {
  font-size: var(--u-text-sm);
}
.f3-timeline-extra > span {
  display: flex;
  flex-wrap: wrap;
  gap: var(--u-space-1) var(--u-space-3);
  color: var(--f3-muted);
  font-size: var(--u-text-xs);
}
.f3-stay {
  padding: 2px 0 2px 28px;
  color: var(--f3-muted);
  font-size: var(--u-text-sm);
}
.f3-stay > span {
  display: inline-block;
  padding: 6px var(--u-space-3);
  border-radius: var(--u-radius-pill);
  background: var(--f3-hover);
}
.f3-trip-totals {
  margin-top: var(--u-space-3) !important;
  padding-top: var(--u-space-3);
  border-top: 1px solid var(--f3-line);
  color: var(--f3-muted);
  font-size: var(--u-text-sm);
}
.f3-tracked .f3-card-head .u-btn {
  margin-left: auto;
}
.f3-tracked-rows {
  display: grid;
  gap: var(--u-space-2);
}
.f3-tracked-row {
  display: grid;
  grid-template-columns: var(--f3-logo-size) minmax(0, 1fr) 44px;
  gap: var(--f3-logo-gap);
  align-items: start;
  padding-block: var(--u-space-3);
}
.f3-tracked-row:has(> .u-icon) {
  grid-template-columns: var(--f3-logo-size) minmax(0, 1fr) 44px 44px;
}
.f3-tracked-row > .f3-swap-menu,
.f3-tracked-row > .u-icon {
  align-self: center;
}
.f3-tracked-row + .f3-tracked-row {
  border-top: 1px solid var(--f3-line);
}
.f3-tracked-open {
  display: grid;
  gap: 6px;
  padding: 0;
  text-align: left;
  border-radius: 12px;
  font-weight: 400;
  justify-content: stretch;
  overflow-wrap: anywhere;
}
.f3-tracked-open b {
  display: flex;
  align-items: center;
  min-height: var(--f3-logo-size);
  font-size: 15px;
  font-weight: 500;
}
.f3-tracked-open small {
  font-size: var(--u-text-xs);
}
.f3-progress {
  position: relative;
  height: 4px;
  margin-block: var(--u-space-1);
  border-radius: 2px;
  background: var(--f3-card2);
}
.f3-progress i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 2px;
  background: var(--f3-accent);
}
.f3-glance .f3-card-head {
  justify-content: space-between;
}
.f3-roster-link {
  flex-direction: row-reverse;
  padding-right: 0;
}
.f3-current-trip > .f3-roster-link {
  display: flex;
  margin-left: auto;
}
.f3-glance > .f3-note {
  margin-top: 10px;
}
@media (max-width: 1099px) {
  .f3-home-grid > .f3-col {
    display: contents;
  }
  .f3-pass {
    order: 1;
  }
  .f3-current-trip {
    order: 2;
  }
  .f3-tracked {
    order: 3;
  }
  .f3-glance {
    order: 4;
  }
}
@media (min-width: 760px) {
  .f3-code {
    font-size: var(--f3-text-code-wide);
  }
  .f3-route-track {
    margin-top: 22px;
  }
  .f3-times dd {
    font-size: 36px;
  }
  .f3-countdown {
    flex-basis: auto;
    margin-left: auto;
  }
}
@media (min-width: 1100px) {
  .f3-home-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(400px, 1fr);
    gap: 20px;
    align-items: start;
  }
}
.f3-swap-menu {
  position: relative;
  flex: none;
}
.f3-swap-menu > summary {
  list-style: none;
  cursor: pointer;
}
.f3-swap-menu > summary::-webkit-details-marker {
  display: none;
}
.f3-swap-menu > button {
  position: absolute;
  z-index: 10;
  right: 0;
  top: calc(100% + 8px);
  white-space: nowrap;
  background: var(--f3-pop);
  box-shadow: var(--f3-shadow);
}
/* #endregion */
