:root{
  --bg:#171411;
  --bg-deep:#120f0c;
  --panel:#211c17;
  --panel-2:#2a241e;
  --panel-3:#302920;
  --border:#493d30;
  --border-soft:#3b3229;
  --text:#f3e9d8;
  --muted:#c4b6a3;
  --muted-2:#958674;
  --accent:#d6b77a;
  --accent-soft:#9f8658;
  --green:#69d38a;
  --yellow:#f2bd3d;
  --red:#ff6868;
  --blue:#b8c9dc;
  --shadow:0 18px 50px rgba(0,0,0,.22);
}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;background:radial-gradient(circle at 50% -15%,#2b2118 0,#171411 42%,#120f0c 100%);color:var(--text);min-height:100vh}
a{color:var(--accent);text-underline-offset:3px}
.wrap{max-width:1160px;margin:0 auto;padding:28px 24px 52px}
header{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px;margin-bottom:26px}
header h1{margin:0;font-size:clamp(1.65rem,3vw,2.35rem);letter-spacing:-.035em;color:#fff5e7}
.flight-tabs{display:flex;justify-content:center;gap:4px;background:rgba(42,36,30,.82);border:1px solid var(--border);border-radius:13px;padding:4px;box-shadow:0 8px 24px rgba(0,0,0,.16)}
.flight-tab{color:var(--muted);text-decoration:none;font-weight:750;padding:9px 20px;border-radius:9px;transition:.18s}
.flight-tab:hover{color:var(--text);background:var(--panel-3)}
.flight-tab.active{color:#fff8ec;background:#3a3229;box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
.language-nav{justify-self:end;display:flex;gap:14px}
.language-nav a{color:var(--text);text-decoration:none;font-size:.9rem;opacity:.9}
.language-nav a:hover{color:var(--accent)}
.loading{text-align:center;padding:30px;color:var(--muted)}

.provider-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:25px}
.provider-card{background:linear-gradient(145deg,rgba(42,36,30,.96),rgba(31,26,22,.96));border:1px solid var(--border);border-radius:15px;padding:17px 18px;box-shadow:var(--shadow)}
.provider-name{font-weight:800;font-size:1rem;color:#fff1df}
.next-label,.meta,.provider-meta{color:var(--muted);font-size:.82rem}
.countdown{font-size:30px;font-variant-numeric:tabular-nums;margin:7px 0 8px;color:#fff3df;letter-spacing:-.03em}
.provider-error{color:var(--red);font-size:.82rem;margin-top:8px}

.status-warning{display:flex;gap:14px;align-items:flex-start;background:#3a2b0e;border:1px solid #a87822;border-radius:15px;padding:17px 19px;margin-bottom:24px;box-shadow:var(--shadow)}
.status-warning-icon{font-size:24px;line-height:1}.status-warning-title{font-weight:800;font-size:1.05rem;color:#fff0c8}.status-warning-message{margin:5px 0 10px;line-height:1.45;color:#f0e4cf}.status-warning-link{display:inline-block;color:#f2cc76;font-weight:800;text-decoration:none}.status-warning-link:hover{text-decoration:underline}

.flight-sections{margin-top:8px}.flight-section{margin:30px 0}.flight-section h2{font-size:1.12rem;margin:0 0 11px;color:#fff0df;letter-spacing:-.01em}.flight-section.current-section{margin-top:15px}.flight-section.past-section{opacity:.84}
.flight-date{margin-left:10px;color:var(--muted);font-size:.85rem;font-weight:500}
.flight{background:linear-gradient(145deg,rgba(31,27,23,.98),rgba(26,22,18,.98));border:1px solid var(--border);border-radius:16px;padding:19px 20px;margin:12px 0;box-shadow:var(--shadow)}
.flight.current,.flight-current{border-color:#5a4b39}.flight.past{opacity:.78}
.flight-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.flight-head-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}
.external-flight-link,.history-icon{display:inline-flex;align-items:center;justify-content:center;height:30px;border:1px solid #55483a;border-radius:8px;color:#f2e4d0;text-decoration:none;font-size:.72rem;font-weight:800;background:#2a241e}.external-flight-link{padding:4px 8px}.history-icon{width:30px;font-size:15px}.external-flight-link:hover,.history-icon:hover{background:#3a3027;border-color:#6c5944;color:#fff7ea}
.status{font-weight:800;margin-top:10px}.status.scheduled{color:var(--green)}.status.delayed{color:var(--yellow)}.status.cancelled,.status.canceled{color:var(--red)}.status.unknown{color:var(--muted)}
.route{margin:7px 0;font-size:1.16rem;color:#fff3e2}.route-arrow{color:var(--accent);padding:0 2px}.meta{margin-top:6px}

.flight-overview{display:flex;gap:28px;align-items:stretch;margin-top:4px}.flight-overview-main{min-width:330px;flex:0 0 34%;padding-top:1px}.flight-detail-grid{flex:1;display:grid;grid-template-columns:repeat(3,minmax(130px,1fr));gap:14px 18px;border-left:1px solid var(--border-soft);padding-left:25px;align-content:center}.hero-detail{display:flex;gap:9px;align-items:flex-start}.hero-detail-icon{font-size:1rem;color:var(--accent);line-height:1.45}.hero-detail small{display:block;color:var(--muted);font-size:.72rem;margin-bottom:2px}.hero-detail strong{display:block;color:#fff3e3;font-size:.95rem}.hero-detail.revised strong{color:var(--yellow)}

.flight-provider-checks{margin-top:17px;border-top:1px solid var(--border-soft);padding-top:13px}.flight-provider-title{font-size:.77rem;font-weight:800;color:var(--muted);margin-bottom:8px;text-transform:uppercase;letter-spacing:.07em}.flight-provider-row{position:relative;border:1px solid #40372e;background:rgba(42,36,30,.72);border-radius:11px;padding:11px 13px;margin:7px 0;transition:.15s}.flight-provider-row:hover{border-color:#5a4a39;background:#2a241f}.flight-provider-main{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.flight-provider-main strong{color:#fff1df}.flight-provider-status{font-weight:800}.flight-provider-meta{display:flex;gap:14px;flex-wrap:wrap;font-size:.72rem;color:var(--muted-2);margin-top:4px}.flight-provider-link{position:absolute;right:12px;top:10px;font-size:.72rem;color:var(--accent)}.flight-provider-error{font-size:.72rem;margin-top:5px;color:var(--red)}
.provider-good .flight-provider-status{color:var(--green)}.provider-warn .flight-provider-status{color:var(--yellow)}.provider-error-state .flight-provider-status,.provider-cancelled .flight-provider-status{color:var(--red)}.provider-unknown .flight-provider-status{color:var(--muted)}.provider-info .flight-provider-status{color:var(--blue)}
.estimated-departure-countdown{margin:.5rem 0 .25rem;font-weight:800;font-size:1.02rem;color:#fff0df}.fr24-details{display:flex;flex-wrap:wrap;gap:.65rem 1rem}.aerodatabox-details{display:flex;flex-wrap:wrap;gap:.65rem 1rem}

/* Future and past flights become compact, scannable rows. */
.flight-compact{padding:16px 18px}.flight-compact .flight-provider-checks{margin-top:14px}.flight-compact .flight-provider-row{padding:10px 12px}

/* History */
.history-icon{line-height:1}.history-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.history-back{color:var(--text);text-decoration:none;font-weight:750}.history-subtitle{color:var(--muted)}.history-list{display:flex;flex-direction:column;gap:10px}.history-row{background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:15px 18px}.history-row-top{display:flex;justify-content:space-between;gap:15px;margin-bottom:12px}.history-provider{font-size:.78rem;color:var(--muted);font-weight:700}.history-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.history-grid div{display:flex;flex-direction:column;gap:4px}.history-grid span{font-size:.75rem;color:var(--muted-2)}.history-grid strong{font-size:.9rem;overflow-wrap:anywhere;color:var(--text)}

@media(max-width:900px){.provider-grid{grid-template-columns:1fr}.flight-overview{flex-direction:column}.flight-overview-main{flex:auto}.flight-detail-grid{border-left:0;border-top:1px solid var(--border-soft);padding:18px 0 0;grid-template-columns:repeat(2,minmax(0,1fr))}.history-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.wrap{padding:20px 14px 40px}header{grid-template-columns:1fr;gap:12px}.flight-tabs{justify-content:flex-start;width:max-content;max-width:100%}.language-nav{justify-self:start}.flight{padding:16px}.flight-head{gap:10px}.flight-head-actions{gap:5px}.external-flight-link{padding:4px 7px}.flight-detail-grid{grid-template-columns:1fr 1fr}.flight-provider-link{position:static;display:inline-block;margin-top:7px}.flight-provider-meta{gap:8px 12px}}
@media(max-width:600px){.flight-head{align-items:flex-start}.flight-date{display:block;margin-left:0;margin-top:4px}.history-toolbar{align-items:flex-start;flex-direction:column}.history-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.flight-detail-grid{grid-template-columns:1fr}.countdown{font-size:27px}}

/* V15 premium status treatment */
.flight-current > .flight-overview .status{display:inline-flex;align-items:center;gap:7px;padding:6px 12px;border-radius:999px;background:#3b2b27;border:1px solid currentColor;margin-top:8px}.flight-current > .flight-overview .status.scheduled{background:#183321}.flight-current > .flight-overview .status.delayed{background:#3a2c12}.flight-current > .flight-overview .status.cancelled,.flight-current > .flight-overview .status.canceled{background:#3a2020}.flight-current .flight-provider-checks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 14px}.flight-current .flight-provider-title{grid-column:1/-1;margin-bottom:-1px}.flight-current .flight-provider-row{margin:0;min-height:105px}.flight-current .flight-provider-link{font-size:.7rem}.flight-current .flight-provider-meta{gap:7px 12px}.flight-current .flight-provider-row .fr24-details,.flight-current .flight-provider-row .aerodatabox-details{line-height:1.35}
@media(max-width:900px){.flight-current .flight-provider-checks{grid-template-columns:1fr}.flight-current .flight-provider-title{grid-column:auto}.flight-current .flight-provider-row{min-height:0}}
