.atc-flight-tracker {
  --atc-ink: #102a43;
  --atc-muted: #64748b;
  --atc-blue: #0957a5;
  --atc-blue-dark: #063b77;
  --atc-sky: #eaf5ff;
  --atc-line: #d9e4ef;
  --atc-green: #087f59;
  --atc-amber: #a16207;
  --atc-red: #b42318;
  width: 100%;
  max-width: 1120px;
  margin: 30px auto;
  color: var(--atc-ink);
  font-family: inherit;
  border: 1px solid var(--atc-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 45px rgba(15, 50, 80, .12);
  overflow: hidden;
}
.atc-ft-hero {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  padding: 30px clamp(20px, 4vw, 44px);
  color: #fff;
  background: linear-gradient(120deg, var(--atc-blue-dark), var(--atc-blue) 56%, #1387c9);
}
.atc-ft-eyebrow { margin: 0 0 8px; color: #a9ddff; font-size: 11px; font-weight: 800; letter-spacing: .18em; }
.atc-ft-hero h2 { margin: 0 0 8px; color: #fff; font-size: clamp(26px, 3vw, 40px); line-height: 1.08; }
.atc-ft-subtitle { margin: 0; color: #dbeeff; font-size: 15px; }
.atc-ft-live-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.atc-ft-live-pill span { width: 8px; height: 8px; border-radius: 50%; background: #65e4ad; box-shadow: 0 0 0 4px rgba(101,228,173,.17); }
.atc-ft-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px clamp(20px, 4vw, 44px); border-bottom: 1px solid var(--atc-line); background: #f8fbfe; }
.atc-ft-tabs { display: inline-flex; padding: 3px; border: 1px solid var(--atc-line); border-radius: 12px; background: #fff; }
.atc-ft-tabs button, .atc-ft-refresh { appearance: none; border: 0; cursor: pointer; font: inherit; }
.atc-ft-tabs button { padding: 9px 15px; border-radius: 9px; color: var(--atc-muted); background: transparent; font-size: 14px; font-weight: 700; }
.atc-ft-tabs button.is-active { color: #fff; background: var(--atc-blue); box-shadow: 0 3px 9px rgba(9,87,165,.2); }
.atc-ft-date-label { display: inline-flex; align-items: center; gap: 7px; color: var(--atc-muted); font-size: 12px; font-weight: 700; }
.atc-ft-date-label select, .atc-ft-search input { min-height: 39px; border: 1px solid var(--atc-line); border-radius: 9px; background: #fff; color: var(--atc-ink); font: inherit; }
.atc-ft-date-label select { padding: 0 30px 0 10px; }
.atc-ft-search { flex: 1 1 210px; min-width: 180px; }
.atc-ft-search input { width: 100%; padding: 0 12px; }
.atc-ft-refresh { min-height: 39px; padding: 0 13px; border: 1px solid #b8cde1; border-radius: 9px; color: var(--atc-blue); background: #fff; font-size: 13px; font-weight: 800; }
.atc-ft-refresh:hover { background: var(--atc-sky); }
.atc-ft-refresh span { display: inline-block; margin-right: 4px; font-size: 18px; vertical-align: -1px; }
.atc-ft-summary { display: flex; flex-wrap: wrap; gap: 9px; padding: 18px clamp(20px, 4vw, 44px) 0; }
.atc-ft-stat { min-width: 115px; padding: 10px 13px; border: 1px solid var(--atc-line); border-radius: 12px; background: #fbfdff; }
.atc-ft-stat strong { display: block; color: var(--atc-ink); font-size: 20px; line-height: 1; }
.atc-ft-stat span { display: block; margin-top: 4px; color: var(--atc-muted); font-size: 11px; font-weight: 700; }
.atc-ft-message { margin: 18px clamp(20px, 4vw, 44px); padding: 15px 16px; border: 1px solid #cfe0f0; border-radius: 12px; color: #33566f; background: #f2f8fd; font-size: 14px; }
.atc-ft-message.is-error { border-color: #f1c4bf; color: var(--atc-red); background: #fff7f6; }
.atc-ft-table-wrap { padding: 0 clamp(20px, 4vw, 44px) 20px; overflow-x: auto; }
.atc-ft-table { width: 100%; border-collapse: separate; border-spacing: 0 7px; font-size: 14px; }
.atc-ft-table th { padding: 0 13px 6px; color: var(--atc-muted); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-align: left; text-transform: uppercase; }
.atc-ft-table td { padding: 14px 13px; border-top: 1px solid var(--atc-line); border-bottom: 1px solid var(--atc-line); background: #fff; vertical-align: middle; }
.atc-ft-table td:first-child { border-left: 1px solid var(--atc-line); border-radius: 12px 0 0 12px; font-weight: 800; white-space: nowrap; }
.atc-ft-table td:last-child { border-right: 1px solid var(--atc-line); border-radius: 0 12px 12px 0; }
.atc-ft-route { min-width: 150px; color: var(--atc-ink); font-weight: 700; }
.atc-ft-airline { display: flex; align-items: center; gap: 9px; min-width: 150px; }
.atc-ft-airline img { width: 34px; height: 22px; object-fit: contain; }
.atc-ft-airline-fallback { display: grid; place-items: center; width: 34px; height: 26px; border-radius: 8px; color: var(--atc-blue); background: var(--atc-sky); font-size: 11px; font-weight: 900; }
.atc-ft-flight { font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
.atc-ft-status { display: inline-flex; padding: 6px 9px; border-radius: 999px; color: #315269; background: #edf3f8; font-size: 11px; font-weight: 800; white-space: nowrap; }
.atc-ft-status.is-good { color: var(--atc-green); background: #eaf8f2; }
.atc-ft-status.is-warn { color: var(--atc-amber); background: #fff7df; }
.atc-ft-status.is-bad { color: var(--atc-red); background: #fff0ee; }
.atc-ft-empty { padding: 30px 10px; color: var(--atc-muted); text-align: center; }
.atc-ft-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 14px clamp(20px, 4vw, 44px) 20px; border-top: 1px solid var(--atc-line); color: var(--atc-muted); font-size: 11px; }
.atc-flight-tracker button:focus-visible, .atc-flight-tracker input:focus-visible, .atc-flight-tracker select:focus-visible { outline: 3px solid #79b9ec; outline-offset: 2px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 680px) {
  .atc-ft-hero { align-items: flex-start; flex-direction: column; }
  .atc-ft-live-pill { align-self: flex-start; }
  .atc-ft-toolbar { align-items: stretch; }
  .atc-ft-tabs, .atc-ft-date-label, .atc-ft-refresh { width: 100%; }
  .atc-ft-tabs button { flex: 1 1 50%; }
  .atc-ft-date-label select { flex: 1; }
  .atc-ft-refresh { text-align: center; }
  .atc-ft-table, .atc-ft-table thead, .atc-ft-table tbody, .atc-ft-table tr, .atc-ft-table th, .atc-ft-table td { display: block; }
  .atc-ft-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .atc-ft-table tr { margin-bottom: 10px; border: 1px solid var(--atc-line); border-radius: 13px; background: #fff; }
  .atc-ft-table td { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 13px; border: 0 !important; border-radius: 0 !important; }
  .atc-ft-table td::before { color: var(--atc-muted); content: attr(data-label); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .atc-ft-table td:first-child { padding-top: 13px; }
  .atc-ft-table td:last-child { padding-bottom: 13px; }
  .atc-ft-airline { min-width: 0; text-align: right; }
}
