/* css/history-flight.css — History modal, METAR popup, responsive overrides, flight popup
   ms20: split from the old single style.css. Load ORDER in index.html matters (cascade). */
/* ── HISTORY MODAL (बाकी स्क्रीन स्टाइल) ── */
.modal-overlay {
  position:fixed; top:0; left:0;
  width:100vw; height:100vh;
  background:var(--modal-overlay);
  backdrop-filter:blur(4px);
  display:none;
  justify-content:center; align-items:center;
  z-index:9999;
  padding:20px;
  animation:modalFadeIn 0.25s ease-out;
}
.modal-overlay.active { display:flex; }
@keyframes modalFadeIn {
  0% { opacity:0; transform:scale(0.96); }
  100% { opacity:1; transform:scale(1); }
}
.modal-box {
  background:var(--modal-bg);
  border:2px solid var(--modal-border);
  border-radius:16px;
  width:100%; max-width:960px; max-height:92vh;
  display:flex; flex-direction:column;
  box-shadow:0 20px 60px rgba(0,0,0,0.8);
  padding:20px 24px 24px;
  position:relative;
}
.modal-header {
  display:flex; justify-content:space-between; align-items:center;
  flex-shrink:0; padding-bottom:12px;
  border-bottom:2px solid var(--border);
  margin-bottom:16px;
  flex-wrap:wrap;
  gap:8px;
}
.modal-header h2 {
  font-family:'Orbitron',sans-serif;
  font-size:clamp(16px,2.2vw,28px);
  font-weight:700;
  color:var(--val-cyan);
  letter-spacing:0.5px;
}
.modal-header h2 small {
  font-family:'Inter',sans-serif;
  font-weight:400;
  font-size:0.6em;
  color:var(--sub);
  margin-left:10px;
}
.modal-close {
  background:none; border:none;
  color:var(--val-white);
  font-size:28px; cursor:pointer;
  padding:0 8px;
  opacity:0.5; transition:opacity 0.2s;
  line-height:1;
}
.modal-close:hover { opacity:1; }
.modal-header-actions {
  display:flex; align-items:center; gap:6px;
  flex-shrink:0;
}
.modal-print {
  background:rgba(0,200,83,0.14);
  border:1px solid #00c853;
  color:#00e676;
  font-size:15px;
  cursor:pointer;
  padding:4px 9px;
  border-radius:8px;
  line-height:1;
  transition:all 0.2s;
}
.modal-print:hover { background:rgba(0,200,83,0.28); }
.modal-chart-wrap {
  flex:1; min-height:240px;
  position:relative;
}
.modal-chart-wrap canvas {
  width:100% !important;
  height:100% !important;
}
.modal-meta {
  display:flex; justify-content:space-between;
  flex-shrink:0; padding-top:12px;
  border-top:1px solid var(--border);
  margin-top:14px;
  font-size:clamp(10px,1vw,14px);
  color:var(--sub);
  font-family:'Inter',sans-serif;
  gap:12px; flex-wrap:wrap;
}
.modal-meta .stat {
  display:flex; gap:6px; align-items:center;
}
.modal-meta .stat span {
  font-weight:700;
  color:var(--val-white);
}
.modal-meta .stat .label {
  font-weight:400;
  color:var(--sub);
}
.meta-time {
  font-weight:500; font-size:0.82em;
  color:var(--sub); opacity:0.8;
  margin-left:2px;
}
.no-data-msg {
  display:flex; align-items:center; justify-content:center;
  height:100%;
  width:100%;
  font-size:clamp(20px,2.5vw,32px);
  color:var(--sub);
  font-family:'Inter',sans-serif;
  font-weight:600;
  letter-spacing:0.5px;
  text-align:center;
  padding:20px;
  position:absolute;
  top:0;
  left:0;
}
.loading-msg {
  display:flex; align-items:center; justify-content:center;
  height:100%;
  font-size:clamp(14px,1.8vw,20px);
  color:var(--sub);
  font-family:'Inter',sans-serif;
}
.spinner {
  display:inline-block;
  width:30px; height:30px;
  border:3px solid rgba(255,255,255,0.1);
  border-radius:50%;
  border-top-color:var(--val-cyan);
  animation:spin 0.8s ease-in-out infinite;
  margin-right:12px;
}
@keyframes spin { to { transform:rotate(360deg); } }

.range-buttons {
  display:flex;
  gap:4px;
  flex-wrap:wrap;
}
.range-btn {
  background:rgba(255,255,255,0.05);
  border:1px solid var(--border);
  color:var(--sub);
  font-size:clamp(7px,0.8vw,11px);
  padding:2px 8px;
  border-radius:10px;
  cursor:pointer;
  font-family:'Inter',sans-serif;
  font-weight:600;
  transition: all 0.2s;
  white-space:nowrap;
}
.range-btn:hover {
  background:rgba(255,255,255,0.12);
  color:var(--val-cyan);
}
.range-btn.active {
  background:var(--hdr-bg);
  color:#fff;
  border-color:var(--hdr-bg);
}
body.dark .range-btn.active {
  background:var(--hdr-bg);
  color:#fff;
}

.modal-toolbar {
  display:flex; align-items:center; justify-content:space-between;
  gap:8px; flex-wrap:wrap;
  margin-bottom:10px;
}
.tb-btn {
  background:rgba(255,255,255,0.05);
  border:1px solid var(--border);
  color:var(--sub);
  font-size:clamp(7px,0.8vw,11px);
  padding:3px 9px;
  border-radius:10px;
  cursor:pointer;
  font-family:'Inter',sans-serif;
  font-weight:600;
  transition: all 0.2s;
  white-space:nowrap;
}
.tb-btn:hover { background:rgba(255,255,255,0.12); color:var(--val-cyan); }
.tb-btn.live-on {
  background:rgba(0,200,120,0.18);
  border-color:#00cc66;
  color:#00e08a;
}
.tb-btn.live-off {
  background:rgba(255,255,255,0.05);
  color:var(--sub);
}
.tb-group { display:flex; gap:4px; flex-wrap:wrap; }
.data-gap-note {
  font-size:clamp(8px,0.85vw,11px);
  color:var(--sev-orange);
  margin-top:6px;
  font-family:'Inter',sans-serif;
  font-weight:600;
  display:none;
}
.data-gap-note.show { display:block; }

/* METAR Popup */
.metar-popup-overlay {
  position:fixed; top:0; left:0;
  width:100vw; height:100vh;
  background:rgba(0,0,0,0.7);
  backdrop-filter:blur(3px);
  display:none;
  justify-content:center; align-items:center;
  z-index:10000;
  padding:20px;
}
.metar-popup-overlay.active { display:flex; }
.metar-popup-box {
  background:var(--modal-bg);
  border:2px solid var(--modal-border);
  border-radius:16px;
  width:100%; max-width:800px; max-height:80vh;
  display:flex; flex-direction:column;
  box-shadow:0 20px 60px rgba(0,0,0,0.8);
  padding:20px 24px;
}
.metar-popup-header {
  display:flex; justify-content:space-between; align-items:center;
  padding-bottom:12px;
  border-bottom:2px solid var(--border);
  margin-bottom:16px;
  flex-shrink:0;
  flex-wrap:wrap;
  gap:8px;
}
.metar-popup-header h3 {
  font-family:'Orbitron',sans-serif;
  font-size:clamp(14px,1.8vw,22px);
  color:var(--val-cyan);
}
.metar-popup-close {
  background:none; border:none;
  color:var(--val-white);
  font-size:28px; cursor:pointer;
  opacity:0.5; transition:opacity 0.2s;
  line-height:1;
}
.metar-popup-close:hover { opacity:1; }
.metar-popup-body {
  flex:1; overflow-y:auto;
  padding:4px 0;
}
.metar-popup-body .metar-line {
  font-family:'Inter',sans-serif;
  font-size:clamp(12px,1.2vw,16px);
  padding:6px 10px;
  border-bottom:1px solid var(--border);
  color:var(--val-white);
  letter-spacing:0.3px;
  white-space:pre-wrap;
  word-break:break-all;
}
.metar-popup-body .metar-line:nth-child(odd) {
  background:rgba(255,255,255,0.03);
}
.metar-popup-body .no-data {
  padding:20px;
  text-align:center;
  color:var(--sub);
  font-size:clamp(14px,1.2vw,18px);
}
.metar-popup-body .loading-msg {
  height:auto; padding:20px;
}

/* AW (Aerodrome Warning) popup */
#AWModalBox {
  max-width: 640px;
  overflow: hidden;
}
#AWContent {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}
.aw-report {
  border:1px solid var(--modal-border);
  border-radius:10px;
  overflow:hidden;
  background:var(--bg2);
}
.aw-header {
  background:var(--hdr2-bg); color:#ffffff;
  font-size:clamp(13px,1.7vw,19px); font-weight:800;
  text-transform:uppercase; letter-spacing:0.4px;
  text-align:center; padding:14px 16px;
  font-family:'Orbitron',sans-serif;
}
.aw-meta {
  display:flex; justify-content:space-between; align-items:center;
  padding:8px 16px; background:var(--bg3);
  border-bottom:1px solid var(--modal-border);
  font-size:clamp(11px,1.1vw,13px); font-weight:700; color:var(--val-cyan);
  font-family:'Inter',sans-serif;
}
.aw-table { width:100%; border-collapse:collapse; font-size:clamp(11px,1.1vw,13px); font-family:'Inter',sans-serif; }
.aw-table td { border:1px solid var(--modal-border); padding:9px 12px; vertical-align:middle; }
.aw-table .aw-label { font-weight:700; width:44%; background:var(--bg3); color:var(--val-cyan); }
.aw-table .aw-value { width:56%; background:var(--bg2); font-weight:700; color:var(--val-white); }
.aw-phenomenon .aw-value { color:var(--val-red); }
.aw-urgent .aw-label { background:var(--hdr2-bg); color:#ffffff; }
.aw-urgent .aw-value { color:var(--val-cyan); }
.aw-sign {
  text-align:right; font-size:clamp(10px,1vw,12px); font-weight:700; color:var(--sub);
  padding:10px 16px; border-top:1px solid var(--modal-border); font-family:'Inter',sans-serif;
}
.aw-footer {
  text-align:center; font-size:clamp(9px,0.9vw,11px); font-weight:700; color:var(--sub);
  padding:8px; letter-spacing:0.3px; font-family:'Inter',sans-serif;
}
.aw-empty, .aw-error {
  padding:26px; text-align:center; color:var(--sub);
  font-size:clamp(13px,1.2vw,16px); font-family:'Inter',sans-serif;
}
.aw-error { color:var(--val-red); }
.aw-freshness {
  text-align:center; font-size:clamp(9px,0.85vw,11px); font-weight:600;
  color:var(--sub); padding:8px 0 2px; font-family:'Inter',sans-serif;
}

/* Archive popup */
#ArchiveModalBox {
  overflow: hidden;
}
#ArchiveContent {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}
.Archive-year-group { margin-bottom:16px; }
.Archive-year-label {
  font-size:clamp(12px,1.3vw,16px); font-weight:800;
  color:var(--val-cyan); margin-bottom:6px;
  border-bottom:1px solid var(--border); padding-bottom:4px;
  font-family:'Inter',sans-serif;
}
.Archive-row {
  display:flex; flex-wrap:wrap; gap:8px; align-items:baseline;
  padding:6px 9px; border-radius:6px;
  font-family:'Inter',sans-serif;
  font-size:clamp(14px,1vw,12px);
  margin-bottom:4px;
  background:rgba(255,255,255,0.03);
}
.Archive-row.highlight {
  background:rgba(0,230,118,0.16);
  border:1px solid rgba(0,230,118,0.55);
}
.Archive-time {
  flex-shrink:0; min-width:118px;
  color:var(--sub); font-weight:700;
}
.Archive-row.highlight .Archive-time { color:#00e676; }
.Archive-metar {
  flex:1; min-width:0;
  word-break:break-word;
  color:var(--val-white);
  font-family:'JetBrains Mono','Courier New',monospace;
  font-size:0.95em;
}
.Archive-empty {
  color:var(--sub); font-size:13px; padding:14px; text-align:center;
}

@media (max-width: 768px) and (orientation: portrait) {
  #main { grid-template-columns:1fr; grid-template-rows:1fr 1fr; }
  .panel { border-right:none; border-bottom:2px solid var(--panel-border); }
  .panel:last-child { border-bottom:none; }
  /* ms20: two panels share the height, so keep text small enough for the half-height panel */
  .wval { font-size:clamp(14px,min(5.5vw,3.4vh),36px); }
  .wlbl { font-size:clamp(8px,min(2.6vw,1.5vh),13px); line-height:1.1; }
  .wbox > [id^="badge"] .wcomp-badge { font-size:clamp(6px,min(1.6vw,1.1vh),10px); padding:0 3px; }
  .dcv { font-size:clamp(14px,min(5vw,2.8vh),36px); line-height:1.05; }
  .dch { font-size:clamp(8px,min(2.5vw,1.7vh),16px); padding-top:1px; padding-bottom:1px; }
  .rv { font-size:clamp(12px,min(2.6vw,2.4vh),34px); }
  .wind-row { flex:46 1 0; }
}
@media (max-width: 768px) {
  .brand { font-size:clamp(10px,3vw,16px); }
  #clock { font-size:clamp(10px,2.6vw,17px); }
  .wind-row { grid-template-columns:0.82fr 0.82fr minmax(70px,24vw); }
  .dch { font-size:clamp(10px,2.5vw,16px); }
  .dcv { font-size:clamp(20px,5vw,36px); }
  .wval { font-size:clamp(18px,5.5vw,36px); }
  #metar-display { font-size:clamp(10px,1.8vw,16px); }
  #footer { flex-wrap:wrap; justify-content:center; gap:4px; }
  .modal-box { padding:14px 16px 18px; max-height:96vh; }
  .modal-chart-wrap { min-height:180px; }
  .dc .click-hint, .wbox .click-hint {
    font-size:8px;
    padding:2px 8px;
  }
  .no-data-msg { font-size:clamp(18px,3vw,24px); }
  .range-buttons { gap:3px; }
  .range-btn { font-size:6px; padding:1px 6px; }
  .metar-popup-box { padding:14px 16px; }
}
@media (max-width: 480px) {
  .wind-row { grid-template-columns:0.82fr 0.82fr minmax(55px,26vw); }
  .dch { font-size:clamp(8px,2.2vw,12px); padding:2px; }
  .dcv { font-size:clamp(18px,5vw,30px); }
  .wval { font-size:clamp(16px,5vw,30px); }
  .rl { font-size:clamp(8px,1.6vw,12px); }
  .rv { font-size:clamp(12px,3vw,20px); }
  .rwy-sel { font-size:8px; max-width:60px; padding:1px 3px; }
  .rwy-num { font-size:11px; min-width:28px; padding:1px 4px; }
  .stn-lbl { font-size:7px; }
  #status { font-size:7px; padding:1px 4px; }
  .icon-btn { font-size:10px; padding:1px 5px; }
  .top-btns { gap:4px; }
  .wcomp-badge { font-size:7px; padding:0 3px; }
  .mode-pill { font-size:7px; padding:1px 4px; }
  .wlbl { font-size:9px; }
  #metar-display { font-size:clamp(8px,1.5vw,12px); padding:1px 8px; }
  #metar-history-btn { font-size:6px; padding:1px 5px; }
  #footer .dev { font-size:6px; }
  .modal-box { padding:10px 12px 14px; }
  .modal-chart-wrap { min-height:140px; }
  .modal-header h2 { font-size:14px; }
  .dc .click-hint, .wbox .click-hint {
    font-size:7px;
    padding:2px 6px;
    bottom:1px;
    right:4px;
  }
  .no-data-msg { font-size:clamp(16px,2.5vw,20px); }
  .range-buttons { gap:2px; }
  .range-btn { font-size:5px; padding:1px 4px; }
  .modal-header { flex-direction:column; align-items:stretch; }
  .modal-header h2 small { display:block; margin-left:0; }
  .metar-popup-box { padding:10px 12px; }
  .metar-popup-body .metar-line { font-size:10px; padding:4px 6px; }
}
@media (max-width: 360px) {
  .wind-row { grid-template-columns:0.82fr 0.82fr minmax(48px,28vw); }
  .wval { font-size:14px; }
  .dcv { font-size:14px; }
  .dch { font-size:7px; }
  .rwy-sel { max-width:50px; font-size:6px; }
  #metar-display { font-size:7px; padding:1px 4px; }
}
@media (orientation: landscape) and (max-height:500px) {
  .wlbl { font-size:clamp(8px,2.6vh,13px); line-height:1.15; }
  .wsub { font-size:clamp(6px,1.5vh,10px); }
  .wval { font-size:clamp(14px,6.5vh,28px); }
  .wbox { padding:1px 4px; }
  .rl { font-size:clamp(7px,1.8vh,11px); }
  .rv { font-size:clamp(11px,3.2vh,20px); }
  .dch { font-size:clamp(7px,2vh,13px); padding:2px 3px; }
  .dcv { font-size:clamp(14px,5.5vh,26px); }
  #metar-display { font-size:clamp(10px,1.5vw,16px); }
  .modal-chart-wrap { min-height:120px; }
}


/* ═══ FLIGHT INFO MODAL ═══ */
#flightModal {
  position:fixed; top:0; left:0; width:100vw; height:100vh;
  background:rgba(0,0,0,0.75); backdrop-filter:blur(5px);
  display:none; justify-content:center; align-items:center;
  z-index:9999; padding:16px;
}
#flightModal.active { display:flex; }
#flightBox {
  background:#0d1f35; border:2px solid #1e4a7a; border-radius:16px;
  padding:0; width:88vw; height:84vh; max-width:1100px;
  box-shadow:0 24px 80px rgba(0,0,0,0.9); position:relative;
  overflow:hidden; display:flex; flex-direction:column;
}
body:not(.dark) #flightBox { background:#ffffff; border-color:#b0c4de; }
#flight-header {
  background:linear-gradient(135deg,#0d47a1 0%,#1565c0 50%,#0288d1 100%);
  padding:14px 20px 12px;
  display:flex; justify-content:space-between; align-items:flex-start;
  flex-shrink:0; border-bottom:2px solid rgba(0,229,255,0.3);
}
#flight-header-left { display:flex; flex-direction:column; gap:3px; min-width:0; }
.flight-title {
  font-family:'Orbitron',sans-serif; color:#ffffff;
  font-size:clamp(15px,2vw,20px); font-weight:900; letter-spacing:0.5px;
}
.flight-subtitle {
  font-family:'Inter',sans-serif; color:rgba(255,255,255,0.9);
  font-size:clamp(11px,1.15vw,15px); font-weight:700; letter-spacing:0.2px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.flight-close {
  background:rgba(255,255,255,0.15); border:1px solid rgba(255,255,255,0.3);
  color:#fff; font-size:22px; cursor:pointer; border-radius:8px;
  padding:2px 10px; line-height:1; transition:all 0.2s; flex-shrink:0;
}
.flight-close:hover { background:rgba(255,255,255,0.3); }
#flightContent {
  flex:1; min-height:0; overflow-y:auto;
  padding:16px 20px;
  font-family:'Inter',sans-serif; color:#e8eef4;
}
body:not(.dark) #flightContent { color:#1a2a3a; }
.fl-hero-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:14px; }
.fl-hero-card {
  border-radius:12px; padding:14px 16px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(255,255,255,0.05);
}
body:not(.dark) .fl-hero-card { background:rgba(0,0,0,0.03); border-color:rgba(0,0,0,0.1); }
.fl-hero-card.arr { border-left:4px solid #00e676; }
.fl-hero-card.dep { border-left:4px solid #ffb74d; }
.fl-hero-lbl {
  font:800 clamp(10px,1.1vw,13px) 'Inter',sans-serif;
  letter-spacing:0.6px; color:#7aaccf; text-transform:uppercase; margin-bottom:6px;
}
.fl-hero-flight { font:900 clamp(18px,2.4vw,28px) 'Orbitron',sans-serif; color:#00e5ff; }
.fl-hero-loc { font:600 clamp(11px,1.2vw,14px) 'Inter',sans-serif; color:#9fb8cc; margin-top:2px; }
body:not(.dark) .fl-hero-loc { color:#5a7589; }
.fl-hero-time { display:flex; align-items:baseline; gap:10px; margin-top:8px; flex-wrap:wrap; }
.fl-time-primary { font:800 clamp(16px,2vw,22px) 'Inter',sans-serif; color:#fff; }
body:not(.dark) .fl-time-primary { color:#1a2a3a; }
.fl-time-sched { font:600 11px 'Inter',sans-serif; color:#7aaccf; margin-left:6px; }
.fl-hero-countdown { font:700 clamp(11px,1.1vw,13px) 'Inter',sans-serif; color:#69f0ae; }
.fl-hero-meta { display:flex; align-items:center; gap:8px; margin-top:8px; flex-wrap:wrap; }
.fl-hero-gate { font:600 clamp(10px,1vw,12px) 'Inter',sans-serif; color:#7aaccf; }
.fl-hero-empty { color:#7aaccf; font-size:13px; padding:10px 0; }
.fl-stale-note {
  font:700 clamp(9px,0.9vw,11px) 'Inter',sans-serif;
  color:#ffb74d; background:rgba(255,183,77,0.12);
  border:1px solid rgba(255,183,77,0.3); border-radius:8px;
  padding:5px 10px; margin-bottom:12px;
}
.fl-lists-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.fl-list-col { min-width:0; }
.fl-list-hdr {
  font:800 clamp(11px,1.15vw,13px) 'Inter',sans-serif;
  letter-spacing:0.4px; text-transform:uppercase;
  padding:6px 10px; border-radius:8px 8px 0 0; color:#fff;
}
.fl-list-hdr.arr { background:linear-gradient(90deg,#00695c,#00897b); }
.fl-list-hdr.dep { background:linear-gradient(90deg,#e65100,#ef6c00); }
.fl-row {
  display:grid; grid-template-columns:auto 1fr auto auto auto;
  align-items:center; gap:8px;
  padding:8px 10px; border-bottom:1px solid rgba(255,255,255,0.08);
}
body:not(.dark) .fl-row { border-bottom-color:rgba(0,0,0,0.08); }
.fl-row:nth-child(even) { background:rgba(255,255,255,0.03); }
.fl-row-time { display:flex; flex-direction:column; align-items:flex-start; min-width:52px; }
.fl-row-flight { font:800 clamp(11px,1.1vw,13px) 'Inter',sans-serif; color:#00e5ff; }
.fl-row-loc { font:600 clamp(10px,1vw,12px) 'Inter',sans-serif; color:#9fb8cc; }
body:not(.dark) .fl-row-loc { color:#5a7589; }
.fl-row-gate { font:600 clamp(9px,0.9vw,11px) 'Inter',sans-serif; color:#7aaccf; white-space:nowrap; }
.fl-row-countdown { font:700 clamp(9px,0.9vw,11px) 'Inter',sans-serif; color:#69f0ae; white-space:nowrap; }
.fl-badge {
  display:inline-block; padding:2px 8px; border-radius:20px;
  font:800 clamp(9px,0.85vw,10.5px) 'Inter',sans-serif;
  letter-spacing:0.3px; white-space:nowrap;
}
.fl-badge-board  { background:rgba(0,230,118,0.18); color:#00e676; }
.fl-badge-fcl    { background:rgba(255,82,82,0.18); color:#ff5252; }
.fl-badge-delay  { background:rgba(255,183,77,0.18); color:#ffb74d; }
.fl-badge-cancel { background:rgba(255,23,68,0.22); color:#ff1744; }
.fl-badge-done   { background:rgba(100,181,246,0.18); color:#64b5f6; }
.fl-badge-none   { background:rgba(255,255,255,0.1); color:#8fa8bd; }
.fl-empty {
  color:#8fa8bd; font:600 clamp(12px,1.2vw,14px) 'Inter',sans-serif;
  text-align:center; padding:20px 10px;
}
.fl-footer {
  margin-top:14px; padding-top:10px;
  border-top:1px solid rgba(255,255,255,0.08);
  font:600 10px 'Inter',sans-serif; color:#6d8aa3; text-align:center;
}
body:not(.dark) .fl-footer { border-top-color:rgba(0,0,0,0.08); }
@media (max-width:640px) {
  #flightModal { padding:8px; align-items:stretch; }
  #flightBox { width:100%; height:100%; max-width:none; border-radius:12px; }
  #flightContent { padding:10px 12px; }
  .fl-hero-grid, .fl-lists-grid { grid-template-columns:1fr; gap:10px; }
  .fl-row { grid-template-columns:auto 1fr; gap:4px 8px; }
  .fl-row-gate, .fl-row-badge, .fl-row-countdown { grid-column:auto; }
  .fl-row-badge { justify-self:start; }
  .fl-row-countdown { justify-self:end; }
}

/* UTC companion values for flight timings */
.fl-utc-time {
  font-size: 0.72em;
  font-weight: 700;
  color: #7fb8d8;
  white-space: nowrap;
  margin-left: 3px;
}
.fl-footer-utc { color: #7fb8d8; font-weight: 700; }
body:not(.dark) .fl-utc-time,
body:not(.dark) .fl-footer-utc { color: #4b718a; }
