/* Airwing, airport status board styling.
   Dark, high-contrast, readable from metres away on a TV or tablet. */

:root {
  --bg: #07090d;
  --panel: #0e1219;
  --panel-edge: #1a2130;
  --amber: #ffb300;
  --amber-dim: #7a5600;
  --green: #2ee66b;
  --red: #ff4d4d;
  --text: #e8ecf3;
  --text-dim: #7d8798;
  --mono: 'IBM Plex Mono', monospace;
  --cond: 'Barlow Condensed', sans-serif;
  --ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;   /* b344: the one interface face */
  --sbw: 10px;              /* scrollbar width, reserved on the board both sides */
}

/* ---------- the Map / Log / My VA typeface ----------
   Nexa is a commercial face and cannot ship with the app, so it is asked for
   FIRST and only used if it is installed on this machine; Jost is the free
   geometric sans standing in for it otherwise. The class is toggled from the
   Aa button in the top bar, so the whole thing reverts in one click. Overview,
   Departures and Flight Data are deliberately untouched. */
body.font-nx #view-map,
body.font-nx #map-hover,
body.font-nx .tfc-info {
  --cond: var(--ui);
  font-family: var(--ui);
  letter-spacing: 0.6px;
}
body.font-nx #view-map [class],
body.font-nx #map-hover [class],
body.font-nx .tfc-info [class] {
  font-family: var(--ui);
}
/* The logbook and the airline read as documents rather than as a board, so
   they take Inter — a face built for screen text — while the map keeps the
   geometric one. Overview, Departures and Flight Data are untouched. */
body.font-nx #view-log {
  --cond: var(--ui);
  font-family: var(--ui);
  letter-spacing: 0.2px;
}
body.font-nx #view-log [class] { font-family: 'Inter', sans-serif; }
/* the mono readouts stay mono — a typeface swap must not break column alignment */
body.font-nx #view-map .mono,
body.font-nx #view-log .mono { font-family: var(--mono); }

/* The debrief lives inside the row it belongs to, and is tuned to fit one
   screen so the whole flight can be screenshotted in a single shot. */
.log-debrief { margin-top: 8px; }
.db-loading { color: var(--text-dim); font-size: 13px; padding: 6px 0; }
.db-block { margin: 8px 0 2px; }
.db-block-h {
  font-size: 11px; letter-spacing: 3px; color: var(--amber); margin-bottom: 5px;
}
.db-chip b small {
  display: block; font-size: 9.5px; letter-spacing: 0.4px;
  color: var(--text-dim); font-weight: 500; margin-top: 1px;
}
/* the two charts sit side by side; they stack again on a narrow screen */
.db-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 900px) { .db-grid { grid-template-columns: 1fr; } }

/* everything in the record tightened a notch so it all fits at once */
#view-log .db-title { margin: 8px 0 4px; font-size: 11px; letter-spacing: 2.5px; }
#view-log .db-chips { gap: 6px; }
#view-log .db-chip { padding: 5px 9px; }
#view-log .db-chip span { font-size: 9.5px; letter-spacing: 1.5px; }
#view-log .db-chip b { font-size: 15px; }
#view-log .db-head { margin-bottom: 6px; }
#view-log .db-score { font-size: 34px; }
#view-log .db-wind { font-size: 11px; margin: 4px 0; }
#view-log .db-legend { font-size: 10px; margin-top: 3px; }
#view-log .db-note { font-size: 10.5px; margin-top: 3px; }
#view-log .log-ev { padding: 3px 0; font-size: 12px; }
#view-log .log-ev em { font-size: 11px; }
#view-log .log-stats { margin-bottom: 6px; font-size: 11.5px; }
#view-log .db-svg { max-height: 172px; }
#view-log .log-detail { padding-bottom: 6px; }
#view-log .log-ev { padding: 2px 0; }

#font-btn.on { color: var(--amber); border-color: var(--amber); }

/* ---------- traffic source dropdown ---------- */
.tfc-wrap { padding: 0 !important; position: relative; }
.tfc-wrap > button {
  background: none; border: none; color: inherit; font: inherit;
  letter-spacing: inherit; padding: 8px 14px; cursor: pointer; width: 100%;
  text-align: left; white-space: nowrap;
}
.tfc-menu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 232px;
  background: rgba(6, 9, 14, 0.97); border: 1px solid var(--panel-edge);
  border-radius: 10px; overflow: hidden; z-index: 40;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}
.tfc-opt {
  display: block; width: 100%; text-align: left; background: none; border: none;
  color: var(--text-dim); font-family: var(--ui); font-size: 14px;
  letter-spacing: 1.1px; padding: 10px 14px; cursor: pointer;
  border-bottom: 1px solid #141a25;
}
.tfc-opt:last-child { border-bottom: none; }
.tfc-opt:hover { background: #131a26; color: var(--text); }
/* b333: the real world on the free plan, shown with a lock; a press goes to the upgrade */
.tfc-opt.locked, #board-src .src.locked { opacity: .55; }
.tfc-opt.locked::after, #board-src .src.locked::after { content: ' \1F512'; font-size: .85em; }
.tfc-opt.on { color: var(--amber); }
.tfc-opt em {
  display: block; font-style: normal; font-size: 11px; letter-spacing: 1px;
  color: #59637a; margin-top: 2px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}

/* ---------- top bar ---------- */

#topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: linear-gradient(180deg, #0c1017, #0a0d13);
  border-bottom: 1px solid var(--panel-edge);
  z-index: 30;
}

.brand {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 4px;
  color: var(--text);
}
.brand span { color: var(--amber); }
/* the mark beside the wordmark (b267) */
.brand { display:flex; align-items:center; gap:12px; }
.brand-mark { width:34px; height:34px; border-radius:9px; flex:0 0 auto; }

.top-right { display: flex; align-items: center; gap: 18px; }

#mus-btn.on { color: var(--amber); border-color: var(--amber); text-shadow: 0 0 8px color-mix(in srgb, var(--amber) 50%, transparent); }

#fs-btn, #cam-btn, #mus-btn {
  background: none;
  border: 1px solid #2a3345;
  border-radius: 8px;
  color: #7d8798;
  font-size: 18.5px;
  line-height: 1;
  padding: 4px 10px;
  cursor: pointer;
}
/* CAM carries more weight than the utility icons */
#cam-btn {
  font-family: var(--ui);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1.7px;
  padding: 7px 20px;
  border-radius: 11px;
  border-color: #38445c;
  color: #aab4c6;
  background: linear-gradient(180deg, rgba(28, 36, 50, 0.9), rgba(12, 16, 23, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: color .18s, border-color .18s, box-shadow .18s;
}
#cam-btn:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px color-mix(in srgb, var(--amber) 25%, transparent), 0 6px 18px rgba(0, 0, 0, 0.5);
}
#fs-btn:hover, #fs-btn:focus, #cam-btn:hover, #cam-btn:focus,
#mus-btn:hover, #mus-btn:focus { color: var(--amber); border-color: var(--amber); }

.dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
}
.dot.on { background: var(--green); box-shadow: 0 0 10px var(--green); }
.dot.off { background: var(--red); box-shadow: 0 0 10px var(--red); }
/* b284: amber, Airwing on the PC is reporting but the sim is not running; dim grey, no PC
   program or sim at all (the account still saves everything, so never red for that) */
.dot.idle { background: #ffb300; box-shadow: 0 0 10px rgba(255, 179, 0, 0.55); }
.dot.nosim { background: #3a4558; box-shadow: none; }
#conn-dot { cursor: pointer; }
#conn-dot:focus { outline: none; }
#conn-dot:focus-visible { outline: 2px solid rgba(130, 200, 255, 0.6); outline-offset: 3px; }

/* ---------- views ---------- */

#views {
  position: fixed;
  top: 120px; bottom: 0; left: 0; right: 0;
  overflow: hidden;
}

.view {
  position: absolute;
  inset: 0;
  display: none;
  padding: 4vh 5vw;
  flex-direction: column;
}
.view.active { display: flex; }

/* ---------- overview: LED matrix board ---------- */

#view-overview { padding: 2.5vh 3vw; }

.led-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}
/* never vertically squash a line into being half-visible — if space runs out,
   the compact media query below takes over instead */
.led-panel > * { flex-shrink: 0; }
.led-panel {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.045) 1px, transparent 1.6px) 0 0 / 7px 7px,
    #030405;
  border: 1px solid #202634;
  border-radius: 20px;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.9), 0 8px 40px rgba(0, 0, 0, 0.6);
  padding: 4vh 4vw;
  overflow: hidden;
}

.led-panel { position: relative; }

/* board clock: local + destination time, top-right of the panel */
.led-clock {
  position: absolute;
  top: 2.2vh;
  right: 2.5vw;
  text-align: right;
  z-index: 2;
}
/* The whole top-right block — both clocks and the city pair — is the half of
   the board a passenger can actually read. EGKK means nothing to anyone who is
   not a simmer, so this is where they find out it is Gatwick. It was sized like
   a footnote; it is now second only to the callsign. */
.lc-row {
  font-family: 'Rajdhani', var(--cond), sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 3.3vw, 55px);
  color: #f4f6f8;
  text-shadow: 0 0 10px rgba(244, 246, 248, 0.45);
  line-height: 1.32;
  white-space: nowrap;
}
.lc-label {
  font-size: 0.5em;
  color: #94a0b2;
  letter-spacing: 2.5px;
  margin-right: 12px;
  text-shadow: none;
}
.lc-cities {
  font-family: 'Rajdhani', var(--cond), sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2.9vw, 47px);
  color: #dbe3ec;
  text-shadow: 0 0 10px rgba(219, 227, 236, 0.35);
  letter-spacing: 0.5px;
  line-height: 1.3;
  margin-top: 5px;
  white-space: nowrap;
  /* SimBrief shouts its airport names and our own are written properly, so the
     board settles it rather than showing LONDON GATWICK > Dublin Intl */
  text-transform: uppercase;
}

.led-arr { color: #9aa4b2; }
.led-arr b { color: #f4f6f8; }

/* The rest of a rostered day, under the departure line: each leg with its
   planned departure, ticked off as it is flown, and how many minutes are being
   carried into the next one. Quiet — it is context, not the headline. */
.led-duty {
  font-size: clamp(13px, 1.5vw, 20px);
  color: #7d8798;
  letter-spacing: 1.5px;
  margin-top: 0.4vh;
  display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline;
}
.led-duty .dl { white-space: nowrap; }
.led-duty .dl.sec b { color: var(--amber, var(--amber)); letter-spacing: 1px; }
.led-duty .carry.sched { font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.led-duty .dl.next b { color: var(--amber, var(--amber)); }
.led-duty .dl b { color: #c9d0da; font-weight: 700; }
.led-duty .dl.done { color: #4f5a6c; }
.led-duty .dl.done b { color: #6f7a8c; text-decoration: line-through; text-decoration-color: #3a4558; }
.led-duty .dl.live b { color: var(--amber, var(--amber)); }
.led-duty .dl.live { color: #c9d0da; }
.led-duty .carry.ok { color: #2ee66b; }
.led-duty .carry.warn { color: #e5b567; }
.led-duty .carry.late { color: #ff6b64; }

.led-line {
  font-family: 'Rajdhani', var(--cond), sans-serif;
  font-weight: 700;
  color: #f4f6f8;
  line-height: 1.12;
  letter-spacing: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* tight glow — a wide halo blurs the dot matrix and reads as "soft" */
  text-shadow: 0 0 4px rgba(244, 246, 248, 0.28);
}

.led-head {
  display: flex;
  align-items: center;
  gap: 3.5vw;
  min-height: 0;
}

.led-logo {
  flex: 0 0 auto;
  width: clamp(100px, 15.5vw, 235px);
  height: clamp(100px, 15.5vw, 235px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.led-logo img {
  /* max-* alone never scales an image UP, and the logo files are only 128px
     square — so growing the box did nothing and the mark sat tiny in the
     middle of it. width/height make it fill the space it has been given. */
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.12));
}
.led-logo span {
  font-family: 'Rajdhani', var(--cond), sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4vw, 64px);
  color: var(--amber);
  text-shadow: 0 0 10px color-mix(in srgb, var(--amber) 50%, transparent);
  text-align: center;
  white-space: normal;
  line-height: 1.05;
}

.led-headlines { min-width: 0; }
.led-callsign { font-size: clamp(46px, 7vw, 100px); }
.led-route { font-size: clamp(42px, 6.3vw, 89px); display: flex; align-items: center; }
.led-chevron { color: var(--amber); margin: 0 0.35em; text-shadow: 0 0 10px color-mix(in srgb, var(--amber) 50%, transparent); }
.led-type { font-size: clamp(31px, 4.5vw, 61px); color: #c9d0da; }

.led-body { margin: 0.8vh 0; }
.led-phase { font-size: clamp(42px, 6.3vw, 87px); }
.led-over-row { display: flex; align-items: center; gap: 14px; min-width: 0; }
.led-over { font-size: clamp(26px, 4vw, 56px); color: #c9d0da; flex: 0 1 auto; min-width: 0; }

.led-wx {
  font-size: clamp(16px, 2.4vw, 32px);
  color: #9aa4b2;
  margin-top: 0.5vh;
  /* same reason as the city pair: the weather words are already shouted, so
     the airport beside them has to be too */
  text-transform: uppercase;
}

.gate-edit {
  flex: 0 0 auto;
  background: none;
  border: 1px solid #2a3345;
  border-radius: 8px;
  color: #7d8798;
  font-size: clamp(14px, 1.6vw, 20px);
  padding: 2px 10px;
  cursor: pointer;
}
.gate-edit:hover { color: var(--amber); border-color: var(--amber); }
/* not yet on the airline's schedule: the one button on the board that asks for something */
.ov-schedule { color: #0b0b0b; background: var(--amber); border-color: var(--amber); }
.ov-schedule:hover { color: #000; background: #ffc233; border-color: #ffc233; }
/* the map's look, top left so it never sits under the traffic panel */
.map-btn.map-btn-look { left: 14px; right: auto; font-size: 15px; }
/* the SimBrief plan, from the overview: the same quiet button, in words */
.ov-simbrief { font-family: var(--ui); font-weight: 700; letter-spacing: 1.4px;
  font-size: clamp(14px, 1.45vw, 20px); padding: 8px 18px; margin-left: 10px; border-radius: 10px; }

.led-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 1.4vw;
  font-size: clamp(21px, 3vw, 42px);
  color: #9aa4b2;
  text-shadow: 0 0 8px rgba(154, 164, 178, 0.35);
}
.led-stats b { color: #f4f6f8; font-weight: 700; }
.led-sep { color: var(--amber); }
.led-stats > span { display: inline-flex; align-items: baseline; gap: 1.6vw; }

/* live boarding/deboarding progress (right side of the pax/cargo/fuel line) */
.led-load {
  display: inline-flex;
  align-items: center !important;
  gap: 1vw;
  margin-left: auto;
}
.load-label {
  font-size: 0.72em;
  color: #7d8798;
  letter-spacing: 2px;
}
.load-bar {
  width: clamp(70px, 11vw, 190px);
  height: 11px;
  border: 1px solid #2a3345;
  border-radius: 7px;
  overflow: hidden;
  background: #0d1119;
}
.load-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--green);
  box-shadow: 0 0 10px rgba(46, 230, 107, 0.7);
  transition: width 0.8s ease;
}
#load-pct {
  color: var(--green);
  text-shadow: 0 0 10px rgba(46, 230, 107, 0.55);
}

/* departure time + on-time/delay chip */
.led-dep {
  display: flex;
  align-items: center;
  gap: 2vw;
  font-size: clamp(26px, 3.8vw, 53px);
  color: #c9d0da;
  margin-bottom: 0.8vh;
}
.led-chip {
  font-size: 0.72em;
  padding: 0.1em 0.5em;
  border-radius: 10px;
  border: 2px solid currentColor;
  letter-spacing: 3px;
}
.led-chip.ok      { color: var(--green); text-shadow: 0 0 12px rgba(46, 230, 107, 0.6); }
.led-chip.warn    { color: #ffd35c;      text-shadow: 0 0 12px rgba(255, 211, 92, 0.6); }
.led-chip.late    { color: var(--red);   text-shadow: 0 0 12px rgba(255, 77, 77, 0.6); }

/* ---------- flight-stage progress line ---------- */

.led-progress { position: relative; height: 86px; margin-top: 1.5vh; }
.prog-line, .prog-line-fill {
  position: absolute;
  top: 32px;
  left: 4%;
  right: 4%;
  height: 3px;
  background: #232b3b;
  border-radius: 2px;
}
.prog-line-fill {
  right: auto;
  width: 0;
  background: var(--green);
  box-shadow: 0 0 10px rgba(46, 230, 107, 0.55);
  transition: width 1s ease;
}
.prog-node {
  position: absolute;
  top: 26px;
  transform: translateX(-50%);
  text-align: center;
  width: max-content;
}
.prog-dot {
  width: 15px;
  height: 15px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #141a26;
  border: 2px solid #303a4e;
}
.prog-node.done .prog-dot {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 10px rgba(46, 230, 107, 0.6);
}
.prog-node.now .prog-dot {
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 12px color-mix(in srgb, var(--amber) 70%, transparent);
}
.prog-node.now.final .prog-dot {
  background: #6fc3ff;
  border-color: #6fc3ff;
  box-shadow: 0 0 12px rgba(111, 195, 255, 0.75);
}
.prog-node.now.final .prog-label { color: #6fc3ff; }
.prog-label {
  font-family: 'Rajdhani', var(--cond), sans-serif;
  font-weight: 700;
  font-size: clamp(9px, 1.15vw, 15px);
  letter-spacing: 1px;
  color: #677182;
  text-transform: uppercase;
}
.prog-node.done .prog-label { color: #7fcf9b; }
.prog-node.now .prog-label { color: var(--amber); }
.prog-plane {
  /* sits centred ON the current dot: line is at top 32px + 1.5px half-thickness,
     so a 34px icon centres at 33.5 - 17 ≈ 16px */
  position: absolute;
  top: 16px;
  left: 4%;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  color: #ffffff;
  /* crisp dark edge first, then a tight glow — makes it pop instead of haze */
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 6px rgba(255, 255, 255, 0.7));
  transition: left 1s ease;
}
.prog-plane svg { width: 100%; height: 100%; transform: rotate(90deg); }
.prog-plane.hidden { display: none; }

.phase-strip {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.phase-step {
  font-size: clamp(13px, 1.4vw, 18px);
  letter-spacing: 2px;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--panel-edge);
  background: var(--panel);
  text-transform: uppercase;
}
.phase-step.done { color: var(--green); border-color: rgba(46, 230, 107, 0.35); }
.phase-step.now {
  color: #000;
  background: var(--amber);
  border-color: var(--amber);
  font-weight: 600;
}
.phase-step.now.final {
  background: #6fc3ff;
  border-color: #6fc3ff;
}

/* ---------- departures / arrivals board ---------- */

#view-board { padding: 2.5vh 3vw; }
.board-panel { padding: 2.5vh 2.5vw; justify-content: flex-start; gap: 0; }

.board-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2vw;
  margin-bottom: 1.2vh;
}
#board-title {
  font-family: 'Rajdhani', var(--cond), sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 48px);
  letter-spacing: 6px;
  color: var(--amber);
  text-shadow: 0 0 6px color-mix(in srgb, var(--amber) 40%, transparent);
}
#board-airport {
  font-family: 'Rajdhani', var(--cond), sans-serif;
  font-weight: 700;
  font-size: clamp(16px, 2.2vw, 30px);
  letter-spacing: 3px;
  color: #c9d0da;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
/* the airport and, small beside it, the runway in use (b292) */
.board-where {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  flex-wrap: wrap;
  column-gap: 14px;
  row-gap: 2px;
  min-width: 0;
}
.board-rwy {
  font-family: 'Rajdhani', var(--cond), sans-serif;
  font-weight: 700;
  font-size: clamp(12px, 1.1vw, 16px);
  letter-spacing: 2px;
  color: #6fc3ff;
  white-space: nowrap;
}
.board-rwy:empty { display: none; }

/* The header and the rows are two separate grids, so their columns only line
   up if they resolve to the same widths. They used to be sized in `em` while
   the two elements had different font sizes, so every column drifted. In rem
   they measure the same in both. */
.board-cols, .board-row {
  display: grid;
  /* logo, time, origin/dest, pilot, flight, aircraft, gate, status.
     The logo column is wide enough for the tallest row the type scale can
     produce — it used to be narrower than the badge and clipped its right edge. */
  grid-template-columns: 3.4rem 5rem 1.5fr 1.5fr 1fr 4.5rem 3.5rem 1.6fr;
  gap: 1vw;
  align-items: center;
}
/* every title sits centred over its own column, and the values under it */
.board-cols > span, .board-row > span { text-align: center; }
.board-cols > span:first-child, .board-row > .br-logo-cell { text-align: left; }
.br-logo-cell { display: flex; align-items: center; overflow: visible; }
.br-logo {
  width: 1.5em;
  height: 1.5em;
  max-width: 100%;          /* can never grow past its column and get clipped */
  object-fit: contain;
  border-radius: 5px;
}
.board-cols {
  font-family: 'Rajdhani', var(--cond), sans-serif;
  font-weight: 700;
  font-size: clamp(10px, 1.2vw, 15px);
  letter-spacing: 2px;
  color: #5a6475;
  /* the rows below always reserve a scrollbar gutter, so the header reserves
     the same or every column drifts a few pixels further right than its title */
  padding: 0 calc(8px + var(--sbw)) 0.8vh 8px;
  border-bottom: 1px solid #1b2230;
}
/* Rows keep their own height and the panel scrolls when there are more than
   fit. They used to share the panel height evenly, which stretched three
   flights across the whole screen and squashed thirteen into slivers. */
.board-panel > .board-rows {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  scrollbar-gutter: stable;   /* same width whether it scrolls or not */
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: #2a3345 transparent;
}
.board-panel > .board-rows::-webkit-scrollbar { width: var(--sbw); }
.board-panel > .board-rows::-webkit-scrollbar-thumb { background: #2a3345; border-radius: 5px; }
.board-panel > .board-rows::-webkit-scrollbar-track { background: transparent; }
.board-row {
  flex: 0 0 auto;
  min-height: clamp(30px, 6.2vh, 62px);
  font-family: 'Rajdhani', var(--cond), sans-serif;
  font-weight: 700;
  font-size: clamp(15px, 2.9vh, 34px);
  line-height: 1;
  color: #d7dde6; /* soft white base — colour belongs to flight/gate/status */
  text-shadow: 0 0 4px rgba(215, 221, 230, 0.25);
  padding: 0 8px;
  white-space: nowrap;
}
.board-row > span { overflow: hidden; text-overflow: ellipsis; }
/* the real-world board's word when there are no rows to show (b294) */
.board-note {
  padding: 28px 12px; text-align: center;
  font-family: 'Rajdhani', var(--cond), sans-serif; font-size: 18px; letter-spacing: 2px;
  color: #7d8798;
}
.br-time { color: #f4f6f8; }
/* whoever is flying it — a VATSIM name, or a bare ID if that is all they use */
.br-pilot { color: #9aa4b2; font-size: 0.82em; }
/* no pilot column outside VATSIM: the destination and the aircraft take the room (b295) */
.board-panel.nopilot .board-cols, .board-panel.nopilot .board-row { grid-template-columns: 3.4rem 5rem 2fr 1fr 6rem 3.5rem 1.6fr; }
.board-panel.nopilot .board-cols > span:nth-child(4), .board-panel.nopilot .board-row > span:nth-child(4) { display: none; }
.br-type { color: #9aa4b2; font-size: 0.86em; }
.br-flight { color: var(--amber); text-shadow: 0 0 4px color-mix(in srgb, var(--amber) 35%, transparent); }
.br-gate { color: #6fc3ff; text-shadow: 0 0 4px rgba(111, 195, 255, 0.35); }
.br-status { color: #c9d0da; text-shadow: none; }
.br-status.st-green { color: var(--green); text-shadow: 0 0 6px rgba(46, 230, 107, 0.45); }
.br-status.st-amber { color: #ffd35c; text-shadow: 0 0 6px rgba(255, 211, 92, 0.45); }
.br-status.st-red   { color: var(--red); text-shadow: 0 0 6px rgba(255, 77, 77, 0.45); }
.br-status.st-dim   { color: #5a6475; }
.br-status.st-blink {
  color: #ffd35c;
  text-shadow: 0 0 6px rgba(255, 211, 92, 0.45);
  animation: st-pulse 1.1s ease-in-out infinite;
}
@keyframes st-pulse { 50% { opacity: 0.3; } }

.board-row.mine {
  background: color-mix(in srgb, var(--amber) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent);
  border-radius: 8px;
  box-shadow: 0 0 14px color-mix(in srgb, var(--amber) 12%, transparent) inset;
}
.board-row.mine .br-city, .board-row.mine .br-flight { color: #ffd35c; }

/* ---------- in-flight data (LED board) ---------- */

#view-data { padding: 2.5vh 3vw; }

/* tight stack from the top — bars sit close under the tiles instead of being
   spread to the bottom of the panel; the phase strip stays pinned at the base */
.led-panel-data { justify-content: flex-start; gap: 1.6vh; }
#view-data .phase-strip { margin-top: auto; }

.data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6vh 1.2vw;
}
@media (max-width: 820px), (orientation: portrait) {
  .data-grid { grid-template-columns: repeat(2, 1fr); }
}

.tile {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid #1b2230;
  border-radius: 14px;
  padding: 2vh 1.5vw;
  text-align: center;
}
.tile-label {
  font-family: var(--ui);
  font-weight: 700;
  font-size: clamp(11px, 1.3vw, 17px);
  letter-spacing: 1.7px;
  color: #7d8798;
  margin-bottom: 1vh;
}
.tile-value {
  font-family: var(--ui);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1;
  color: #f4f6f8;
  text-shadow: 0 0 4px rgba(244, 246, 248, 0.26);
}
.tile-unit {
  font-size: 0.38em;
  color: var(--amber);
  margin-left: 8px;
  letter-spacing: 2px;
  text-shadow: 0 0 8px color-mix(in srgb, var(--amber) 50%, transparent);
}

.tod-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid #1b2230;
  border-radius: 14px;
  padding: 1.8vh 2vw;
}
.tod-label {
  font-family: var(--ui);
  font-weight: 700;
  font-size: clamp(12px, 1.5vw, 20px);
  letter-spacing: 1.7px;
  color: #7d8798;
}
.tod-label em { font-style: normal; font-size: 0.72em; color: var(--amber-dim); letter-spacing: 1px; }
.tod-value {
  font-family: var(--ui);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 38px);
  color: var(--amber);
  text-shadow: 0 0 10px color-mix(in srgb, var(--amber) 50%, transparent);
}

/* raw METAR line — long string, smaller mono-ish rendering, may wrap */
.wx-bar { gap: 2vw; }
.wx-value {
  font-family: var(--ui);
  font-weight: 700;
  font-size: clamp(13px, 1.6vw, 22px);
  color: #f4f6f8;
  text-shadow: 0 0 8px rgba(244, 246, 248, 0.35);
  text-align: right;
  letter-spacing: 0.6px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* ---------- map ---------- */

#view-map { padding: 0; }
#map { position: absolute; inset: 0; }

.map-hud {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 2vw;
  padding: 10px 14px;
  background: rgba(3, 4, 5, 0.82);
  border-top: 1px solid #202634;
  backdrop-filter: blur(4px);
  font-family: var(--ui);
  font-weight: 700;
  font-size: clamp(12px, 1.5vw, 20px);
  color: #8b95a5;
  letter-spacing: 0.6px;
}
.hud-item b { color: #f4f6f8; text-shadow: 0 0 8px rgba(244, 246, 248, 0.4); font-weight: 700; }
.hud-route b { color: var(--amber); text-shadow: 0 0 8px color-mix(in srgb, var(--amber) 50%, transparent); }

.map-nokey {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--bg);
  z-index: 5;
  font-size: 34px;
  letter-spacing: 6px;
  color: var(--amber);
}
.map-nokey p { font-size: 18px; letter-spacing: 1px; color: var(--text-dim); font-family: var(--mono); }
.map-nokey code { color: var(--text); }
.hidden { display: none !important; }

/* planned waypoints with their altitude / speed restrictions */
.wpt-marker {
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  white-space: nowrap;
}
.wpt-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: #6fc3ff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(111, 195, 255, 0.9);
  transform: translateX(-3px);
}
.wpt-sidstar .wpt-dot { background: #c58cff; box-shadow: 0 0 6px rgba(197, 140, 255, 0.9); }
/* published restriction from the sim's navdata — amber, like a chart */
.wpt-restrict .wpt-dot { background: var(--amber); box-shadow: 0 0 7px color-mix(in srgb, var(--amber) 95%, transparent); }
.wpt-restrict .wpt-label em { color: #ffd35c; }
.wpt-label {
  font-family: var(--ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.6px;
  color: #cfe6ff;
  text-shadow: 0 0 3px #000, 0 0 6px #000;
  line-height: 1.1;
}
.wpt-label em {
  display: block;
  font-style: normal;
  font-size: 9.5px;
  color: #8fb4d4;
  letter-spacing: 0.5px;
}
#map.far .wpt-label { display: none; }
#map.near .wpt-label { font-size: 14.5px; letter-spacing: 0.8px; }
#map.near .wpt-label em { font-size: 14px; }
#map.near .wpt-dot { width: 10px; height: 10px; }

/* map overlay buttons (weather toggle) */
.map-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 6;
  font-family: var(--ui);
  font-weight: 700;
  font-size: 17.5px;
  letter-spacing: 1.1px;
  padding: 8px 16px;
  background: rgba(3, 4, 5, 0.85);
  color: #7d8798;
  border: 1px solid #2a3345;
  border-radius: 10px;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.map-btn:hover, .map-btn:focus { color: var(--amber); border-color: var(--amber); }
.map-btn.on {
  color: #6fc3ff;
  border-color: #6fc3ff;
  box-shadow: 0 0 14px rgba(111, 195, 255, 0.35);
}
/* the traffic button sits under the weather one */
.map-btn-2 { top: 62px; }
/* SayIntentions' refresh: small, under the traffic button, only with SayIntentions on (b294) */
.map-btn-3 { top: 110px; font-size: 13px; letter-spacing: 1.5px; padding: 6px 12px; }
.map-btn-3:disabled { opacity: 0.55; cursor: progress; }
@media (min-width: 641px) {
  #view-map.tfc-si .tfc-info { top: 152px; max-height: calc(100% - 172px); }
}
@media (max-width: 640px) {
  #map-ctrls #tfc-rescan { font-size: 13px; letter-spacing: 1px; white-space: normal; line-height: 1.2; padding: 6px 14px; }
}

/* ---------- the tapped aircraft's strip, under the traffic button ---------- */
.tfc-info {
  position: absolute;
  top: 110px;
  right: 14px;
  z-index: 6;
  width: min(330px, 38vw);
  max-height: calc(100% - 130px);
  overflow-y: auto;
  padding: 14px 16px 16px;
  background: rgba(3, 5, 10, 0.92);
  border: 1px solid #2a3345;
  border-radius: 12px;
  font-family: var(--ui);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.6);
}
.ti-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #1e2634;
}
.ti-close {
  position: absolute;
  top: 8px; right: 10px;
  background: none;
  border: 0;
  color: #59637a;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.ti-close:hover { color: var(--amber); }
/* a controller's frequency is the thing you actually came for */
.ti-freq {
  font-family: var(--mono);
  font-size: 27px;
  color: var(--green);
  margin: 8px 0 2px;
  letter-spacing: 1px;
}
.ti-fac {
  border: 1px solid #2a3345;
  border-radius: 5px;
  padding: 1px 7px;
  font-size: 12px !important;
  letter-spacing: 2px;
  color: var(--green) !important;
}
.ti-head b { font-size: 24px; letter-spacing: 2px; color: var(--amber); }
/* a tapped flight (b296): the airline's logo beside its callsign, a photo of the
   airframe, and how far along its route it is */
.ti-head-fl { align-items: center; padding-right: 22px; }
.ti-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ti-brand-t { min-width: 0; }
.ti-brand-t b { display: block; line-height: 1.05; }
.ti-brand-t em { display: block; font-style: normal; font-size: 13px; letter-spacing: 1px; color: #9aa4b2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ti-head-fl > span { flex: 0 0 auto; }
.ti-logo { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 8px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ti-logo img { width: 100%; height: 100%; object-fit: contain; }
.ti-logo-txt { background: #1b2433; border: 1px solid #2a3345; color: #dbe2ec; font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.ti-photo { display: block; margin-top: 10px; border-radius: 8px; overflow: hidden; background: #0b0f17; }
.ti-photo img { display: block; width: 100%; height: 150px; object-fit: cover; }
.ti-noroute { margin-top: 10px; }
.ti-prog { margin-top: 10px; }
.ti-bar { position: relative; height: 6px; border-radius: 3px; background: #1e2634; margin: 8px 6px 6px; }
.ti-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--amber); }
.ti-bar b { position: absolute; top: 50%; transform: translate(-50%, -52%) rotate(45deg); font-size: 15px; color: #e8ecf3; line-height: 1; letter-spacing: 0; }
.ti-prog-n { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; letter-spacing: 0.6px; color: #9aa4b2; white-space: nowrap; }
.ti-head span { font-size: 15px; letter-spacing: 1px; color: #9aa4b2; }
.ti-pilot { font-size: 14px; letter-spacing: 1px; color: #7d8798; margin-top: 6px; }
.ti-grid { margin-top: 10px; }
.ti-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 3px 0;
}
.ti-row span { font-size: 11.5px; letter-spacing: 2px; color: #59637a; }
.ti-row b { font-size: 16px; letter-spacing: 1px; color: #e8ecf3; font-weight: 700; }
.ti-row b.amber { color: var(--amber); }
.ti-row b.red { color: var(--red); }
.ti-leg {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #1e2634;
}
.ti-port { flex: 1 1 0; min-width: 0; }
.ti-port span { display: block; font-size: 10.5px; letter-spacing: 2px; color: #59637a; }
.ti-port b { display: block; font-size: 21px; letter-spacing: 2px; color: #e8ecf3; }
.ti-port i {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: #7d8798;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ti-port em {
  display: block;
  font-style: normal;
  font-size: 13px;
  letter-spacing: 1px;
  color: #6fc3ff;
  margin-top: 3px;
}
.ti-arrow { color: var(--amber); font-size: 19px; }
.ti-togo {
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 2px;
  color: #9aa4b2;
  text-align: right;
}
/* the frequency they are actually tuned to, from the transceivers feed */
.ti-com {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 12px;
  padding: 9px 12px;
  background: rgba(46, 230, 107, 0.07);
  border: 1px solid rgba(46, 230, 107, 0.35);
  border-radius: 10px;
}
.ti-com-ic { font-size: 15px; }
.ti-com b { font-family: var(--mono); font-size: 22px; color: var(--green); }
.ti-com-st { font-size: 14px; letter-spacing: 1px; color: #c9d0da; }

/* the filed route, waypoint by waypoint — airways and DCT read dim */
.ti-wps { line-height: 1.9; }
.ti-wps b { font-size: 13px; letter-spacing: 1px; color: #7d8798; margin-right: 9px; font-weight: 600; white-space: nowrap; }
.ti-wps b small { display: block; font-size: 10px; letter-spacing: 0.5px; color: #59637a; font-weight: 600; line-height: 1; margin-top: -1px; }
.ti-wps { display: flex; flex-wrap: wrap; align-items: flex-start; row-gap: 6px; }
.ti-wps i { font-style: normal; font-size: 12px; letter-spacing: 1px; color: #59637a; margin-right: 9px; }
.ti-wps-note { margin-top: 6px; font-size: 10.5px; letter-spacing: 0.4px; color: #59637a; }

/* the stations online for this flight — the network does not publish which one
   a pilot is actually tuned to, so these are the ones that are up */
.ti-atc {
  margin-top: 11px;
  padding-top: 9px;
  border-top: 1px solid #1e2634;
}
.ti-atc-h { font-size: 10.5px; letter-spacing: 2px; color: #59637a; margin-bottom: 5px; }
.ti-atc-r {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 2px 0;
}
.ti-atc-r span { font-size: 13.5px; letter-spacing: 1px; color: #c9d0da; }
.ti-atc-r em {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 1.5px;
  color: #59637a;
  margin-left: 7px;
}
.ti-atc-r b { font-family: var(--mono); font-size: 14px; color: var(--green); }

.ti-stn {
  padding: 9px 0;
  border-bottom: 1px solid #1a2231;
}
.ti-stn:last-of-type { border-bottom: 0; }
.ti-stn-cs { font-size: 16px; letter-spacing: 1px; color: #dbe2ec; }
.ti-stn-cs em { font-style: normal; font-size: 12px; letter-spacing: 1.5px; color: #b98cff; }
.ti-stn .ti-freq { font-size: 23px; margin: 2px 0 0; }
.ti-stn .ti-pilot { margin-top: 1px; }

.ti-route {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #1e2634;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.5;
  color: #59637a;
  word-break: break-word;
}

/* ---------- the hover card that follows the pointer ---------- */
#map-hover {
  display: none;
  position: absolute;
  z-index: 8;
  width: min(360px, 50%);
  padding: 14px 17px 15px;
  background: rgba(3, 5, 10, 0.96);
  border: 1px solid #39445a;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
  font-family: var(--ui);
  pointer-events: none;      /* never steals the hover it depends on */
}
#map-hover.on { display: block; }
/* a small caps divider between position groups on the full-airport card */
.sc-sub {
  font-size: 12.5px;
  letter-spacing: 3px;
  color: #59637a;
  margin-top: 9px;
}

/* ---------- a title pill for each staffed area ---------- */
.sec-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px 6px;
  border-radius: 999px;
  background: rgba(8, 20, 46, 0.92);
  border: 1.5px solid #3f6dbd;
  color: #9cc3f5;
  font-family: var(--ui);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.1px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.55);
  transition: border-color .12s, color .12s;
}
.sec-pill:hover { border-color: #7fb0f0; color: #d5e6fb; }
.sec-pill b {
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #3f6dbd;
  color: #05101f;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* an airport with no ATC still says what it is */
.ap-pop .maplibregl-popup-content {
  background: rgba(3, 5, 10, 0.94);
  border: 1px solid #2a3345;
  border-radius: 9px;
  padding: 8px 12px 9px;
  font-family: var(--ui);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}
.ap-pop .maplibregl-popup-tip { display: none; }
.ap-pop b {
  display: block;
  font-size: 17px;
  letter-spacing: 2px;
  color: #dbe2ec;
}
.ap-pop span { display: block; font-size: 13px; color: #7d8798; margin-top: 1px; }

/* ---------- who is controlling, at each airport ---------- */
.stn {
  position: relative;      /* the hover card hangs off this */
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--ui);
  line-height: 1;
  cursor: default;
}
.stn-code {
  padding: 4px 13px 5px;
  border-radius: 999px;
  background: rgba(3, 5, 10, 0.9);
  border: 1.5px solid #39445a;
  color: #dbe2ec;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 2px;
  white-space: nowrap;
  cursor: pointer;
}
/* amber when a centre or approach has this airport */
.stn-code.live {
  border-color: var(--amber);
  color: #ffd35c;
  box-shadow: 0 0 10px color-mix(in srgb, var(--amber) 30%, transparent);
}
.stn-row { display: flex; gap: 4px; margin-top: 4px; }
/* zoomed out, the badge is just the code so it stays small and centred */
#map.tight .stn-row { display: none; }
#map.tight .stn-code { font-size: 14px; padding: 2px 9px 3px; }
.stn-p {
  min-width: 27px;
  height: 27px;
  padding: 0 8px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  background: rgba(3, 5, 10, 0.9);
  border: 1.5px solid #2ee66b;
  color: #2ee66b;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.stn-p:hover { background: #2ee66b; color: #03050a; }
.p-app { border-color: #e0504a; color: #ff8a84; }
.p-app:hover { background: #e0504a; color: #fff; }
.p-ctr { border-color: #3f6dbd; color: #9cc3f5; }
.p-ctr:hover { background: #3f6dbd; color: #05101f; }
.p-atis { border-color: #b98cff; color: #b98cff; }
.p-atis:hover { background: #b98cff; }
/* the detail that appears on hover */
.stn-card {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 6px;
  min-width: 270px;
  max-width: 400px;
  padding: 10px 12px 11px;
  background: rgba(3, 5, 10, 0.96);
  border: 1px solid #39445a;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  z-index: 9;
  text-align: left;
  cursor: default;
}
.stn-card.on { display: block; }
.sc-head {
  font-size: 17px;
  letter-spacing: 2px;
  color: var(--amber);
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px solid #1e2634;
}
.sc-counts { display: flex; gap: 18px; margin-bottom: 9px; font-size: 18px; }
.sc-counts b { color: #9aa4b2; font-weight: 700; }
.sc-counts b.up { color: var(--green); }
.sc-counts b.dn { color: #ff8080; }
.sc-row { padding: 6px 0; border-bottom: 1px solid #141a26; }
.sc-row:last-of-type { border-bottom: 0; }
.sc-cs { font-size: 19px; letter-spacing: 1px; color: #e8ecf3; }
.sc-cs em { font-style: normal; font-size: 13px; color: #b98cff; letter-spacing: 1px; }
.sc-fq { font-family: var(--mono); font-size: 24px; color: var(--green); }
.sc-rt { font-style: normal; font-size: 13px; letter-spacing: 1px; color: var(--amber); margin-left: 8px; }
.sc-nm { font-size: 15px; color: #7d8798; }
.sc-info {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 9px;
}
.sc-info b {
  font-size: 58px;
  line-height: 1;
  color: #c9a6ff;
  font-weight: 700;
}
.sc-info span { font-size: 12px; letter-spacing: 3px; color: #7d8798; }
.sc-note {
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #59637a;
}
.sc-atis {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid #1e2634;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.6;
  color: #a5b0c2;
  white-space: pre-wrap;
}

/* ---------- live traffic contacts on the map ---------- */
.tfc-ac {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  color: #6fc3ff;
  line-height: 1;
}
.tfc-ac .tfc-plane {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.9));
  transform-origin: 50% 50%;
  transition: transform .4s linear;
}
.tfc-tag {
  margin-top: 2px;
  padding: 2px 8px 3px;
  border-radius: 6px;
  background: rgba(3, 5, 10, 0.72);
  font-family: var(--ui);
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}
.tfc-tag b {
  display: block;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 1px;
  color: #e8ecf3;
}
.tfc-tag i {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: #94a2b8;
}
/* on the ground: dimmed right down so the air picture stays readable */
.tfc-ac.ground { color: #4a5468; opacity: 0.65; }
.tfc-ac.ground .tfc-tag b { color: #9aa4b2; }
/* the one you tapped */
.tfc-ac.sel { color: var(--amber); z-index: 5; }
.tfc-ac.sel .tfc-plane { filter: drop-shadow(0 0 7px color-mix(in srgb, var(--amber) 85%, transparent)); }
.tfc-ac.sel .tfc-tag { background: color-mix(in srgb, var(--amber) 16%, transparent); }
.tfc-ac.sel .tfc-tag b { color: #ffd35c; }
.tfc-ac.sel .tfc-tag i { color: #d9c48d; }
/* labels get in each other's way when zoomed right out */
#map.far .tfc-tag { display: none; }

/* ---------- post-flight debrief ---------- */
.debrief-card { width: min(1000px, 100%); }
.debrief-btn {
  margin-top: 12px;
  font-family: var(--ui);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 1.1px;
  padding: 8px 20px;
  background: transparent;
  color: var(--amber);
  border: 1px solid var(--amber);
  border-radius: 999px;
  cursor: pointer;
}
.debrief-btn:hover { background: var(--amber); color: #000; }
.db-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; padding-bottom: 14px; border-bottom: 1px solid #1e2634;
}
.db-route { font-size: 30px; letter-spacing: 3px; }
.db-sub { font-size: 14px; letter-spacing: 2px; color: #7d8798; margin-top: 4px; }
.db-score { font-size: 46px; line-height: 1; }
.db-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 6px; }
.db-chip {
  flex: 1 1 116px; background: #0d1117; border: 1px solid #1e2634;
  border-radius: 10px; padding: 8px 12px;
}
.db-chip span { display: block; font-size: 11px; letter-spacing: 2px; color: #59637a; }
.db-chip b { font-size: 19px; letter-spacing: 1px; }
.db-wind { font-size: 14px; letter-spacing: 2px; color: #7d8798; margin: 8px 0 4px; }
.db-title {
  font-size: 13px; letter-spacing: 4px; color: var(--amber);
  margin: 22px 0 8px; padding-bottom: 5px; border-bottom: 1px solid #1e2634;
}
.db-svg { width: 100%; height: auto; display: block; }
.db-ax { font-family: var(--ui); font-size: 11px;
         letter-spacing: 0.8px; fill: #59637a; }
.db-ax.ok { fill: #2ee66b; } .db-ax.warn { fill: var(--amber); }
.db-none, .db-note {
  font-size: 14px; letter-spacing: 1px; color: #7d8798; padding: 10px 0;
}
.db-legend { display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
             font-size: 12px; letter-spacing: 2px; margin-top: 8px; }
.db-legend .db-note { padding: 0; margin-left: auto; }
.lg-h { color: #6fc3ff; fill: #6fc3ff; }
.lg-s { color: var(--amber); fill: var(--amber); }
.lg-v { color: #c07bff; fill: #c07bff; }

/* ---------- board traffic source ---------- */
.src-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px 10px;
  border-bottom: 1px solid #1a2231;
}
.src {
  font-family: var(--ui);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 1.1px;
  padding: 4px 14px;
  background: transparent;
  color: #59637a;
  border: 1px solid #263049;
  border-radius: 999px;
  cursor: pointer;
}
.src:hover { color: var(--amber); border-color: var(--amber); }
.src.on {
  color: #6fc3ff;
  border-color: #6fc3ff;
  box-shadow: 0 0 12px rgba(111, 195, 255, 0.3);
}
.src-note {
  font-family: var(--ui);
  font-size: 13px;
  letter-spacing: 1.1px;
  color: #59637a;
  margin-left: auto;
}

.tod-marker {
  font-family: var(--ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.6px;
  color: #000;
  background: var(--amber);
  border-radius: 6px;
  padding: 2px 7px;
  box-shadow: 0 0 10px color-mix(in srgb, var(--amber) 60%, transparent);
  transform: rotate(-45deg);
}

.plane-marker {
  width: 44px;
  height: 44px;
  color: #ffd35c;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.8));
}

/* ---------- pilot view ---------- */

#view-pilot { padding: 0; background: #000; }
#pilot-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.pilot-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--bg);
  z-index: 3;
}
.pp-title {
  font-family: var(--ui);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 60px);
  letter-spacing: 3.3px;
  color: #7d8798;
}
.pilot-placeholder p { font-size: clamp(15px, 1.8vw, 22px); color: #576172; letter-spacing: 1px; }
.pilot-placeholder .pp-sub {
  font-family: var(--mono);
  font-size: clamp(12px, 1.4vw, 16px);
  color: #8b95a5;
  letter-spacing: 2px;
}
.pilot-placeholder b { color: var(--amber); }
.pilot-unmute {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 4;
  font-family: var(--ui);
  font-weight: 700;
  font-size: 17.5px;
  letter-spacing: 1.1px;
  padding: 10px 20px;
  background: rgba(3, 4, 5, 0.85);
  color: var(--amber);
  border: 1px solid var(--amber);
  border-radius: 10px;
  cursor: pointer;
}

/* ---------- no-flight overlay ---------- */

.noflight {
  position: fixed;
  top: 120px; bottom: 0; left: 0; right: 0;
  background: rgba(7, 9, 13, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  opacity: 1;
  transition: opacity 0.4s;
}
.noflight.hidden { opacity: 0; pointer-events: none; display: flex !important; }

.noflight-inner { text-align: center; }
.nf-icon {
  width: 90px;
  color: var(--panel-edge);
  animation: nf-pulse 2.4s ease-in-out infinite;
}
@keyframes nf-pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
.nf-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: 10px;
  margin-top: 18px;
}
.nf-sub {
  font-family: var(--mono);
  font-size: clamp(15px, 1.8vw, 22px);
  color: var(--text-dim);
  margin-top: 12px;
  letter-spacing: 1px;
}

/* ---------- post-flight prompt + rating debrief ---------- */

/* b561 (John): Airwing's blue with a yellow accent (the old all-yellow look is gone) */
.fc-prompt {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 3vw;
  background: linear-gradient(135deg, rgba(18, 32, 54, 0.98), rgba(10, 15, 24, 0.98));
  border: 1px solid rgba(255, 179, 0, 0.55);
  border-radius: 16px;
  padding: 14px 22px;
  /* b563 (John): a thin, subtle edge in the app's own yellow, nothing more */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  animation: fcp-in 0.45s ease;
}
@keyframes fcp-in { from { opacity: 0; transform: translate(-50%, 24px); } }
.fcp-title {
  font-family: var(--ui);
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: 2.2px;
  color: #3fb6ff;
}
.fcp-sub {
  font-family: var(--ui);
  font-size: clamp(12px, 1.5vw, 17px);
  letter-spacing: 1.1px;
  color: #8b95a5;
}
.fcp-btns { display: flex; gap: 10px; }
.fcp-btn {
  font-family: var(--ui);
  font-weight: 700;
  font-size: clamp(13px, 1.6vw, 18px);
  letter-spacing: 1.1px;
  padding: 9px 18px;
  border-radius: 10px;
  border: 1px solid #2a3345;
  background: none;
  color: #8b95a5;
  cursor: pointer;
}
.fcp-btn { white-space: nowrap; }
.fc-prompt { width: max-content; max-width: calc(100% - 24px); }   /* b561: one line each, as wide as it needs */
.fcp-title { white-space: nowrap; }
.fcp-btn.primary { background: linear-gradient(135deg, #2b7fff, #3fb6ff); border-color: #3fb6ff; color: #fff; box-shadow: 0 0 0 1px rgba(255, 210, 63, 0.35) inset; }
.fcp-btn:hover { filter: brightness(1.15); }

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(3, 4, 6, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3vh 3vw;
  backdrop-filter: blur(3px);
}
.modal-card {
  position: relative;
  width: min(760px, 100%);
  max-height: 100%;
  overflow-y: auto;
  background: #0b0e14;
  border: 1px solid var(--panel-edge);
  border-radius: 20px;
  padding: 26px 28px 30px;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: #7d8798;
  font-size: 22px;
  cursor: pointer;
}
.modal-close:hover { color: var(--amber); }

/* virtual airline overlay */
/* the airline fills its own tab, like every other view */
#view-va { padding: 0; }
#va-frame { flex: 1; width: 100%; border: none; display: block; background: #07090d; }
/* b474 (John): on a desktop the airline is laid out at a set size and scaled to the window, bigger or smaller, as the
   overview is (app.js scaleVaFrame sets --vas) */
body.va-scaled #view-va { overflow: hidden; }
body.va-scaled #view-va #va-frame { flex: none; width: calc(100% / var(--vas, 1)); height: calc(100% / var(--vas, 1)); min-width: 0; max-width: none;
  transform: scale(var(--vas, 1)); transform-origin: 0 0; }
/* nothing overlays the airline — it is a working screen, not a board */
body.on-va .noflight, body.on-va .fc-prompt { display: none !important; }

.va-wrap {
  position: relative;
  width: min(1180px, 100%);
  height: 100%;
  background: #07090d;
  border: 1px solid var(--panel-edge);
  border-radius: 18px;
  overflow: hidden;
}
#va-frame { width: 100%; height: 100%; border: none; }
.va-wrap .modal-close {
  z-index: 3;
  background: rgba(8, 11, 16, 0.9);
  border: 1px solid var(--panel-edge);
  border-radius: 8px;
  width: 34px;
  height: 34px;
}

.rt-hero {
  position: relative;
  text-align: center;
  border-radius: 16px;
  padding: 22px 0 16px;
  margin-bottom: 16px;
}
.rt-hero.t-gold { background: radial-gradient(circle, rgba(255,199,0,0.18), transparent 70%); }
.rt-hero.t-green { background: radial-gradient(circle, rgba(46,230,107,0.13), transparent 70%); }
.rt-hero.t-amber { background: radial-gradient(circle, rgba(255,255,0,0.08), transparent 70%); }
.rt-hero.t-red { background: radial-gradient(circle, rgba(255,77,77,0.13), transparent 70%); }
.rt-score {
  font-family: var(--ui);
  font-weight: 700;
  font-size: clamp(64px, 12vw, 110px);
  line-height: 1;
  letter-spacing: 1.7px;
}
.t-gold .rt-score {
  background: linear-gradient(160deg, #fff2b8, #ffc400 45%, #b87b00);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 199, 0, 0.65));
}
.t-green .rt-score { color: var(--green); text-shadow: 0 0 20px rgba(46, 230, 107, 0.45); }
.t-amber .rt-score { color: #ffff00; text-shadow: none; }
.t-red .rt-score { color: var(--red); text-shadow: 0 0 20px rgba(255, 77, 77, 0.4); }
.rt-outof {
  font-family: var(--ui);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 3.3px;
  color: #7d8798;
}

/* gold sparks */
.sparks { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sparks i {
  position: absolute;
  top: 50%; left: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #ffdf6e;
  box-shadow: 0 0 10px #ffc400;
  transform: rotate(var(--a)) translateY(0);
  animation: spark 2.2s ease-out infinite;
  animation-delay: var(--d);
  opacity: 0;
}
@keyframes spark {
  0% { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(0.6); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(-135px) scale(0.2); }
}

.rt-title {
  font-family: var(--ui);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 30px);
  letter-spacing: 1.7px;
  color: var(--amber);
  text-align: center;
}
.rt-sub {
  font-family: var(--ui);
  font-size: clamp(13px, 1.6vw, 18px);
  letter-spacing: 1.1px;
  color: #8b95a5;
  text-align: center;
  margin-top: 4px;
}
.rt-section { margin-top: 18px; }
.rt-head {
  font-family: var(--ui);
  font-weight: 700;
  font-size: clamp(12px, 1.5vw, 16px);
  letter-spacing: 2.2px;
  color: #5a6475;
  border-bottom: 1px solid #1b2230;
  padding-bottom: 5px;
  margin-bottom: 8px;
}
.rt-money {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 2vw;
  font-family: var(--ui);
  font-weight: 700;
  font-size: clamp(13px, 1.6vw, 18px);
  letter-spacing: 0.6px;
  color: #8b95a5;
}
.rt-money b { color: #e8ecf3; }
.rt-money .pos b { color: var(--green); }
.rt-money .neg b { color: var(--red); }
.rt-awards { display: flex; flex-wrap: wrap; gap: 10px; }
.rt-award {
  display: flex;
  align-items: center;
  gap: 10px;
  background: color-mix(in srgb, var(--amber) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent);
  border-radius: 12px;
  padding: 8px 14px;
}
.rt-award span { font-size: 24px; }
.rt-award b {
  display: block;
  font-family: var(--ui);
  font-size: 14.5px;
  color: #ffd35c;
  letter-spacing: 0.6px;
}
.rt-award em {
  font-style: normal;
  font-family: var(--ui);
  font-size: 12px;
  color: #8b95a5;
}

/* ---------- tabs (top bar, under the header) ---------- */

#tabs {
  position: fixed;
  top: 64px; left: 0; right: 0;
  height: 56px;
  display: flex;
  background: #0a0d13;
  border-bottom: 1px solid var(--panel-edge);
  z-index: 30;
}
.tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--ui);
  font-size: 19.5px;
  font-weight: 600;
  letter-spacing: 2.2px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}
.tab.active { color: var(--amber); border-bottom-color: var(--amber); }

.tab-aux {
  flex: 0 0 56px;
  background: none;
  border: none;
  border-left: 1px solid var(--panel-edge);
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
}
.tab-aux.paused { color: var(--green); }
.tab-aux:hover, .tab-aux:focus { color: var(--amber); }

/* ---------- flight log ---------- */

#view-log { padding: 2.5vh 3vw; }
.log-panel { padding: 2.5vh 2.5vw; justify-content: flex-start; gap: 0; }
.log-panel > .log-rows { flex: 1 1 0; min-height: 0; overflow-y: auto; }

.log-empty {
  font-family: var(--ui);
  font-weight: 700;
  color: #7d8798;
  font-size: clamp(16px, 2vw, 24px);
  padding: 3vh 0;
  text-align: center;
}

.log-entry { border-bottom: 1px solid #161c28; }
.log-row {
  width: 100%;
  display: grid;
  grid-template-columns: 3.2em 5.5em 1.2fr 1fr 1.4fr;
  gap: 1vw;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--ui);
  font-weight: 700;
  font-size: clamp(15px, 2.4vh, 26px);
  color: #d7dde6;
  padding: 1.2vh 8px;
}
.log-row:hover, .log-row:focus { background: color-mix(in srgb, var(--amber) 5%, transparent); }
/* NewSky-style rating tiers */
.lg-rating {
  text-align: center;
  border-radius: 8px;
  padding: 2px 0;
  font-weight: 700;
  color: #000;
}
.t-gold  { background: linear-gradient(145deg, #ffe07a, #e8a600); color: #000;
           box-shadow: 0 0 12px rgba(255, 199, 0, 0.45); }
.t-green { background: var(--green); color: #000; }
/* b424 (John): amber a washed-out, flat yellow, so it never reads like the vivid gold (with its glow) of a 10 */
.t-amber { background: #ffff00; color: #000; box-shadow: none; }   /* b425: John's yellow */
.t-red   { background: var(--red); color: #fff; }
span.t-gold, span.t-green { background: none; box-shadow: none; }
/* b437 (sweep): as words (the awards' totals line) gold and green, not the pill's black text on the dark page */
span.t-gold { color: #ffd35c; }
span.t-green { color: var(--green); }
/* ...but the log's rating badge keeps its pill, or a green/gold score would be
   black text on a black background — i.e. invisible */
span.lg-rating.t-green { background: var(--green); color: #000; }
span.lg-rating.t-gold {
  background: linear-gradient(145deg, #ffe07a, #e8a600);
  color: #000;
  box-shadow: 0 0 12px rgba(255, 199, 0, 0.45);
}
span.t-gold b { color: #ffd35c; }
span.t-green b { color: var(--green); }
.lg-when { color: #8b95a5; }
.lg-route { color: var(--amber); }
.lg-ldg { color: #9aa4b2; text-align: right; }

.log-detail { display: none; padding: 0 8px 1.6vh 8px; }
.log-entry.open .log-detail { display: block; }
/* A perfect touchdown or a great take-off reads gold, and the conditions sit
   on a quieter second line underneath. */
.log-ev.ev-gold { color: #ffd35c; }
.log-ev.ev-none { color: #6e7787; }        /* recorded, but there was no data */
.log-ev em {
  display: block;
  font-style: normal;
  color: #7d8798;
  font-size: 0.86em;
  letter-spacing: 1px;
  padding-left: 14px;
}

.log-stats {
  font-family: var(--ui);
  font-weight: 700;
  font-size: clamp(13px, 1.9vh, 20px);
  color: #8b95a5;
  letter-spacing: 0.6px;
  margin-bottom: 0.8vh;
}
.log-ev {
  font-family: var(--ui);
  font-weight: 600;
  font-size: clamp(13px, 2vh, 21px);
  padding: 0.25vh 0;
}
.log-ev.ev-good { color: var(--green); }
.log-ev.ev-bad { color: #ff8f8f; }

/* log / awards switcher */
.log-head-right { display: flex; align-items: center; gap: 1vw; }
.log-tab {
  font-family: var(--ui);
  font-weight: 700;
  font-size: clamp(12px, 1.5vw, 19px);
  letter-spacing: 1.1px;
  background: none;
  border: 1px solid #2a3345;
  border-radius: 8px;
  color: #7d8798;
  padding: 3px 12px;
  cursor: pointer;
}
.log-tab.active { color: #000; background: var(--amber); border-color: var(--amber); }

/* awards */
.log-panel > .log-awards { flex: 1 1 0; min-height: 0; overflow-y: auto; }
/* How flights are scored — the LOG tab's SCORING page */
.log-panel > .log-rules { flex: 1 1 0; min-height: 0; overflow-y: auto; padding: 4px 2px 20px; }
.rules-intro { color: var(--text-dim); font-size: 15px; line-height: 1.5; margin: 6px 0 14px; }
.rules-intro span { display: block; font-size: 12px; letter-spacing: 1px; margin-top: 4px; }
.rules-sec { margin-bottom: 16px; }
.rules-h { font-family: var(--ui); color: var(--amber); letter-spacing: 1.7px; font-size: 13px;
  border-bottom: 1px solid var(--panel-edge); padding-bottom: 4px; margin-bottom: 4px; }
.rules-row { display: grid; grid-template-columns: minmax(150px, 22%) 1fr 150px; gap: 14px; padding: 6px 0;
  border-bottom: 1px solid #121824; font-size: 15px; align-items: baseline; }
.rules-row b { color: var(--text); font-weight: 600; }
.rules-row span { color: var(--text-dim); }
.rules-row em { font-style: normal; text-align: right; color: var(--red); font-family: var(--mono); font-size: 14px; }
.rules-row em.good { color: var(--green); }   /* b428: what costs nothing, or pays */
/* b438 (John): the nine touchdown bands as a table; on a phone each band is a card of its own */
.rules-tbl { display: grid; gap: 0; margin-top: 6px; }
.rules-tr { display: grid; grid-template-columns: minmax(150px, 17%) minmax(150px, 22%) minmax(110px, 13%) 90px 1fr; gap: 14px;
  padding: 7px 0; border-top: 1px solid rgba(130, 200, 255, 0.08); align-items: baseline; font-variant-numeric: tabular-nums; }
.rules-tr span { color: var(--text-dim); overflow-wrap: anywhere; }
.rules-tr span:first-child { color: var(--text); font-weight: 600; letter-spacing: 1px; overflow-wrap: normal; }
.rules-tr span.c-ok { color: var(--green); }
.rules-tr span.c-cost { color: var(--red); }
.rules-tr.ten span:first-child::after { content: 'can make a 10'; display: block; color: var(--green); font-weight: 500; letter-spacing: 0.4px; font-size: 0.82em; }
.rules-th { border-top: none; padding-top: 2px; }
.rules-th span { color: var(--text-dim) !important; font-size: 11px; letter-spacing: 2px; font-weight: 700; }
.rules-note { margin-top: 8px; color: var(--green); font-size: 14px; }
/* b443: the load sheet locked until the aircraft is loaded; AIRCRAFT BOARDED across its top; SEND TO MCDU */
.m-btn.m-ls.locked, .m-btn.m-ls:disabled { opacity: 0.45; cursor: not-allowed; }
.ls-boarded { display: flex; flex-direction: column; gap: 2px; margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: rgba(46, 204, 113, 0.12); border: 1px solid rgba(46, 204, 113, 0.45); }
.ls-boarded b { color: var(--green); letter-spacing: 0.06em; }
.ls-boarded span { font-size: 13px; color: var(--text-dim); }
.ls-mcdu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--text-dim); }
.ls-mcdu > span { flex: 1 1 200px; }
.ls-mcdu .ok { color: var(--green); }
.ls-mcdu .bad { color: var(--red, #ff5a5a); }
.ls-mcdu.ask > span { color: var(--text); }
.ls-mcdu .ls-b.go { border-color: var(--green); color: var(--green); }
.gsx-fenix.ok { border-color: rgba(46, 204, 113, 0.45); }
.gsx-fenix .gsx-link { display: block; margin: 10px 0 4px; }
.gsx-fenix-sub { display: block; font-size: 12px; color: var(--text-dim); }
/* b440: BOARD AIRCRAFT, across the top of the GSX buttons */
.gsx-board { margin: 0 0 10px; }
.gsx-board .gsx-board-btn { width: 100%; }
.gsx-board.on .gsx-board-btn { border-color: var(--amber, #ffb300); }
.gsx-board-note { margin-top: 6px; font-size: 13px; color: var(--text-dim); text-align: center; }
.gsx-fenix { margin-top: 12px; padding: 9px 12px; border-radius: 10px; background: rgba(63, 182, 255, 0.08); border: 1px solid rgba(63, 182, 255, 0.3); font-size: 13px; line-height: 1.45; color: var(--text); }
.gsx-fenix b { color: #ffd27a; letter-spacing: 1.4px; margin-right: 6px; }
/* b441: the final load sheet */
.modal-card.ls-card { width: min(680px, 100%); max-height: 100%; overflow-y: auto; }   /* b521: inside the room the modal leaves (an iPad's bars kept clear) */
.ls-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding-right: 34px; flex-wrap: wrap; }
.ls-h small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.6px; color: var(--text-dim); }
.ls-h b { display: block; font-size: 30px; font-weight: 800; letter-spacing: 2px; color: #ffd27a; line-height: 1.1; }
.ls-sec { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(130, 200, 255, 0.14); }
.ls-sh { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 1.8px; color: var(--amber, #3fb6ff); margin-bottom: 8px; }
.ls-b { padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(63, 182, 255, 0.45); background: rgba(63, 182, 255, 0.1); color: #cfe6ff; font: 700 11.5px var(--ui); letter-spacing: 1.3px; cursor: pointer; white-space: nowrap; }
/* b445: a step's button: a spinner while it works, then a green tick and the time */
.ls-step { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.ls-b { display: inline-flex; align-items: center; gap: 7px; }
.ls-b .gsx-spin, .ls-mcdu .gsx-spin { display: inline-block; flex: none; width: 12px; height: 12px; margin: 0 6px 0 0; vertical-align: -2px; }
.ls-b.ls-busy { opacity: 0.85; cursor: progress; }
.ls-b.ls-done { border-color: rgba(46, 230, 107, 0.6); background: rgba(46, 230, 107, 0.1); color: #c9f7d8; }
.ls-b.ls-fail { border-color: rgba(255, 90, 90, 0.6); }
.ls-tick { font-style: normal; color: var(--green); font-size: 13px; line-height: 1; }
.ls-when { font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: 0.6px; color: var(--green); }
.ls-when.bad { color: var(--red, #ff5a5a); }
.m-btn.m-gsx:disabled { opacity: 0.45; cursor: not-allowed; }
.ls-r { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: baseline; padding: 5px 0; font-variant-numeric: tabular-nums; }
.ls-r span { font-size: 12.5px; letter-spacing: 1.3px; color: var(--text-dim); font-weight: 700; }
.ls-r b { font-size: 17px; color: var(--text); }
.ls-r.ok b { color: #2ee66b; }
.ls-r em { font-style: normal; font-size: 12.5px; color: var(--text-dim); min-width: 120px; text-align: right; }
.ls-note, .ls-perf-f { font-size: 12.5px; color: var(--text-dim); margin-top: 6px; line-height: 1.45; }
.ls-metar { font-family: var(--mono, monospace); font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
.ls-wx { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 6px; font: 700 13px var(--ui); letter-spacing: 1px; color: var(--text); }
.ls-perf-h { display: flex; justify-content: space-between; font: 700 13px var(--ui); letter-spacing: 1.6px; color: var(--text); }
.ls-perf-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; margin-top: 8px; }
.ls-perf-g div { background: #0c1119; border: 1px solid #1a222f; border-radius: 10px; padding: 8px 10px; }
.ls-perf-g small { display: block; font-size: 10.5px; letter-spacing: 1.4px; color: var(--text-dim); font-weight: 700; }
.ls-perf-g b { display: block; font-size: 22px; font-weight: 800; color: #ffd27a; font-variant-numeric: tabular-nums; }
.ls-stale { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 179, 0, 0.1); border: 1px solid rgba(255, 179, 0, 0.4); color: #ffd27a; font-size: 13px; line-height: 1.4; }
.ls-fresh { margin-top: 8px; color: #2ee66b; font-size: 13px; }
/* b438: the reputation streak box (the LOG under the flight count, MY VA's hub) and the log's CANCELLED rows */
/* b460 (John): the log's head in two rows: FLIGHT LOG and MY FLIGHTS | ALL FLIGHTS, then the streak and PILOT | AIRLINE,
   the switches one above the other; the tabs on the right */
.log-head { align-items: flex-start; }
.log-hl { display: grid; grid-template-columns: max-content max-content; align-items: center; column-gap: 18px; row-gap: 8px; min-width: 0; }
.log-hl > #log-title { grid-column: 1; grid-row: 1; }
.log-hl > .log-whose { grid-column: 2; grid-row: 1; margin: 0; }
.log-streak-wrap { display: contents; }
.log-streak-wrap .aw-streak { display: contents; }
.log-streak-wrap .aw-streak-n { grid-column: 1; grid-row: 2; }
.log-streak-wrap .aw-streak-toggle { grid-column: 2; grid-row: 2; justify-self: stretch; }
.log-streak-wrap .aw-streak-toggle button { flex: 1 1 0; }
.log-streak-wrap .aw-streak-sub { grid-column: 1 / -1; grid-row: 3; }
.log-head-right { flex-wrap: wrap; justify-content: flex-end; }
/* b460: the whole log scrolls as one page (away from a phone, where a flight is a page of its own): the head goes up
   with the flights and comes back at the top */
@media (min-width: 641px) {
  #view-log .log-panel { overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
  #view-log .log-panel > .log-rows, #view-log .log-panel > .log-days, #view-log .log-panel > .log-awards, #view-log .log-panel > .log-rules { flex: 0 0 auto; min-height: auto; overflow: visible; }
}
@media (max-width: 640px) {
  .log-hl { grid-template-columns: max-content minmax(0, 1fr); column-gap: 12px; width: 100%; }
  .log-hl > .log-whose { justify-self: end; }
  .log-hl > .log-whose button { flex: 0 0 auto; padding: 6px 10px; }
  /* b474: an iPhone SE's width: ALL FLIGHTS ran off the side */
  .log-hl > .log-whose { max-width: 100%; min-width: 0; }
  @media (max-width: 400px) { .log-hl { column-gap: 8px; } .log-hl > .log-whose button { flex: 1 1 auto; min-width: 0; padding: 6px 7px; font-size: 10px; letter-spacing: .4px; } }
  .log-streak-wrap .aw-streak-toggle { justify-self: stretch; }
  /* the count's corner is the switch's now; each year and month says its own count */
  .log-head:has(.log-whose:not(.hidden)) #log-count { display: none; }
}
/* b460: EDIT PLAN, the schedule in a pop-up */
.modal-card.plan-card { width: min(1240px, 100%); height: calc(100vh - 40px); height: calc(100dvh - 40px); padding: 0; display: flex; flex-direction: column; overflow: hidden;
  background: radial-gradient(130% 60% at 50% -10%, rgba(120, 185, 255, .10), rgba(120, 185, 255, 0) 55%), linear-gradient(172deg, rgba(19, 38, 68, .98) 0%, rgba(11, 23, 44, .99) 46%, rgba(6, 13, 27, 1) 100%); }
.plan-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 26px 12px; font-family: var(--ui); }
.plan-bar small { display: block; font-size: 10.5px; letter-spacing: 2.2px; color: var(--text-dim); font-weight: 700; }
.plan-bar b { display: block; font-size: 18px; letter-spacing: 2px; color: #e8ecf3; }
.plan-bar .modal-close { position: static; }
.plan-holder { position: relative; flex: 1 1 auto; min-height: 0; }
.plan-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; opacity: 0; visibility: hidden; transition: opacity .22s ease; }
.plan-frame.ready { opacity: 1; visibility: visible; }
/* b481 (John): the load sheet wider on a desktop: the figures down the left (about 60%), the three steps as big stacked
   buttons on the right, ticked one after the other, and SEND TO MCDU under them */
.ls-rail { display: none; }
@media (min-width: 900px) {
  .modal-card.gsx-card.ls-card { width: min(1060px, 96vw); }
  .ls-split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 22px; align-items: start; }
  .ls-split .ls-sh .ls-step { display: none; }
  .ls-split .ls-main .ls-mcdu { display: none; }
  .ls-rail { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 0; padding-top: 16px; }
  .ls-rb { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 84px; padding: 14px 18px; border-radius: 16px; cursor: pointer; text-align: left;
    border: 1px solid rgba(63, 182, 255, .45); background: linear-gradient(180deg, rgba(43, 127, 255, .16), rgba(43, 127, 255, .06)); color: #e6f1ff; font-family: var(--ui); }
  .ls-rb:hover:not([disabled]) { background: linear-gradient(180deg, rgba(43, 127, 255, .26), rgba(43, 127, 255, .1)); }
  .ls-rb b { display: block; font-size: 15px; font-weight: 800; letter-spacing: 1.8px; }
  .ls-rb em { display: block; margin-top: 3px; font-style: normal; font-size: 12px; color: var(--text-dim); letter-spacing: .4px; }
  .ls-rb .ls-n { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-weight: 800; font-size: 15px; border: 1.5px solid rgba(63, 182, 255, .6); color: #6fc3ff; }
  .ls-rb .ls-tick { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(46, 230, 107, .15); color: #2ee66b; font-style: normal; font-size: 18px; }
  .ls-rb .gsx-spin { flex: none; width: 26px; height: 26px; margin: 4px; }
  .ls-rb.ls-done { border-color: rgba(46, 230, 107, .55); background: linear-gradient(180deg, rgba(46, 230, 107, .12), rgba(46, 230, 107, .04)); }
  .ls-rb.ls-fail { border-color: rgba(255, 90, 90, .6); }
  .ls-rail-send .ls-mcdu { display: flex; flex-direction: column; align-items: stretch; margin-top: 4px; }
  .ls-rail-send .ls-mcdu > span { flex: none; font-size: 12.5px; line-height: 1.45; }
  .ls-rail-send .ls-mcdu.ask .ls-b { min-height: 56px; }
  .ls-rail-send .ls-b, .ls-rail-send .ls-b.ls-mcdu-go { justify-content: center; min-height: 72px; font-size: 17px; letter-spacing: 2.4px; border-radius: 16px; }
  .ls-rail-send .ls-b.ls-mcdu-go:not([disabled]) { border-color: rgba(46, 230, 107, .7); background: linear-gradient(135deg, rgba(31, 157, 85, .55), rgba(46, 230, 107, .35)); color: #eafff1; }
  .ls-rail-note { font-size: 12.5px; line-height: 1.45; color: var(--text-dim); padding: 4px 2px; }
}
/* b480 (John): the take-off data as the MCDU's PERF TAKE OFF page */
.mcdu { margin: 10px 0 4px; padding: 10px; border-radius: 14px; background: linear-gradient(180deg, #2b2f35, #1c1f24); border: 1px solid #3a3f47; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 18px rgba(0,0,0,.45); }
.mcdu-scr { padding: 14px 16px 16px; border-radius: 6px; background: #0b0d0f; box-shadow: inset 0 0 0 1px #000, inset 0 0 22px rgba(0,0,0,.9);
  font-family: 'Consolas', 'Lucida Console', 'DejaVu Sans Mono', ui-monospace, monospace; color: #e8e8e8; }
.mc-title { text-align: center; font-size: 19px; letter-spacing: 2.5px; margin-bottom: 8px; }
.mc-grid { display: grid; grid-template-columns: 1fr 1.25fr 1.25fr; row-gap: 4px; column-gap: 8px; }
.mc-c { display: flex; flex-direction: column; min-width: 0; }
.mc-c i { font-style: normal; font-size: 12px; letter-spacing: 2.4px; color: #e8e8e8; opacity: .92; white-space: nowrap; }
.mc-c b { font-weight: 400; font-size: 22px; letter-spacing: 1.5px; line-height: 1.25; white-space: nowrap; }
.mc-c.l { align-items: flex-start; } .mc-c.l i { padding-left: 4px; }
.mc-c.m { align-items: center; } .mc-c.r { align-items: flex-end; text-align: right; }
.mc-c.w2 { grid-column: span 2; }
.mcdu .c { color: #2fb5ff; } .mcdu .g { color: #3ce06a; } .mcdu .w { color: #e8e8e8; }
.mcdu .sm { font-size: 17px; } .mcdu .mc-d { color: #8a8f96; letter-spacing: 2px; }
.ls-mcdu .ls-b.ls-mcdu-go { min-height: 52px; padding: 0 26px; font-size: 15px; letter-spacing: 2px; border-radius: 12px; }
.ls-mcdu { flex-wrap: wrap; }
@media (max-width: 640px) { .mc-c b { font-size: 18px; } .mcdu .sm { font-size: 14px; } .mc-c i { font-size: 10.5px; letter-spacing: 1.6px; } .mc-title { font-size: 16px; } .ls-mcdu .ls-b.ls-mcdu-go { width: 100%; } }
/* b476 (John): the log on a desktop: the flights run nearer the scrollbar on the right (a centimetre was spare) */
@media (min-width: 641px) and (hover: hover) and (pointer: fine) { body:not(.handheld) #view-log .log-panel { padding-right: 16px; } }
/* b475: END DAY's duty log over the overview */
.duty-pop { position: fixed; inset: 0; z-index: 3000; background: rgba(3, 6, 10, .62); display: grid; place-items: center; }
.duty-pop.ready { background: transparent; }
.duty-wait { display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-radius: 14px; background: #0b1424; border: 1px solid rgba(130, 200, 255, .25); font: 600 14px var(--ui); color: #cfe0f5; }
.duty-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.duty-pop.ready .duty-frame { opacity: 1; pointer-events: auto; }
.plan-wait { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; font: 600 14px var(--ui); color: var(--text-dim); }
@media (max-width: 640px) { .modal-card.plan-card { height: calc(100dvh - 16px); border-radius: 16px; } }
.aw-streak { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; max-width: 100%; }
.aw-streak-toggle { display: inline-flex; border: 1px solid rgba(63, 182, 255, 0.35); border-radius: 999px; overflow: hidden; }
.aw-streak-toggle button { background: none; border: none; color: var(--text-dim); font: 700 11px var(--ui); letter-spacing: 1.6px; padding: 5px 12px; cursor: pointer; }
.aw-streak-toggle button.on { background: rgba(63, 182, 255, 0.18); color: #cfe6ff; }
/* b532 (John): the log's PILOT | AIRLINE as the same sliding pill as MY VA's */
.aw-streak-toggle.pilltog { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; isolation: isolate; overflow: visible;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(130, 200, 255, 0.24); }
.aw-streak-toggle.pilltog button { position: relative; z-index: 1; border-radius: 999px; padding: 5px 14px; transition: color .25s ease; }
.aw-streak-toggle.pilltog button.on { background: transparent; color: #04101f; }
.aw-streak-toggle.pilltog button:not(.on):hover { color: var(--text); }
.aw-streak-toggle .pill-th { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 2); border-radius: 999px;
  background: #3fb6ff; box-shadow: 0 4px 14px rgba(63, 182, 255, 0.25); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .26s cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) { .aw-streak-toggle .pill-th { transition: none; } }
.aw-streak-n { font: 700 15px var(--ui); letter-spacing: 1.4px; color: var(--text); font-variant-numeric: tabular-nums; }
.aw-streak-n b { color: #ffd35c; font-size: 18px; }
.aw-streak-sub { font-size: 12.5px; color: var(--text-dim); letter-spacing: 0.3px; overflow-wrap: anywhere; }
@media (max-width: 640px) { .aw-streak { align-items: flex-start; text-align: left; } }
.ns-row { cursor: pointer; opacity: 0.92; }
.ns-na { font-size: 13px; letter-spacing: 1px; }
.ns-tag { color: var(--red) !important; font-weight: 700; letter-spacing: 1.6px; }
.ns-detail { display: none; padding: 4px 6px 12px; }
.ns-entry.open .ns-detail { display: block; }
/* b517: an emergency or a missed flight sits in the log in the same box as every other flight */
#view-log .ns-entry { border: 1px solid rgba(130,200,255,.26); border-radius: 14px; margin-bottom: 10px; overflow: hidden;
  background: linear-gradient(172deg, rgba(19,38,68,.72) 0%, rgba(10,21,40,.86) 100%); box-shadow: inset 0 1px 0 rgba(210,238,255,.16), 0 12px 30px -20px rgba(0,0,0,.75); }
#view-log .ns-entry.open { border-color: rgba(130,200,255,.6); }
#view-log .ns-entry .ns-detail { padding: 4px 14px 14px; }
@media (max-width: 640px) { #view-log .ns-entry { margin-bottom: 8px; } }
@media (max-width: 760px) {
  .rules-th { display: none; }
  .rules-tr { grid-template-columns: 1fr; gap: 3px; padding: 10px 0; }
  .rules-tr span[data-h]:not(:first-child)::before { content: attr(data-h) ': '; color: var(--text-dim); font-size: 11px; letter-spacing: 1.6px; font-weight: 700; }
}
@media (max-width: 700px) { .rules-row { grid-template-columns: 1fr; gap: 2px; } .rules-row em { text-align: left; } }
.aw-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6vh 2vw;
  font-family: var(--ui);
  font-weight: 700;
  font-size: clamp(13px, 1.8vh, 20px);
  color: #7d8798;
  letter-spacing: 1.1px;
  padding: 1vh 4px 1.6vh;
  border-bottom: 1px solid #1b2230;
}
.aw-summary b { color: #f4f6f8; }
.aw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  padding: 1.4vh 0;
}
.aw-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid #1b2230;
  border-radius: 12px;
  padding: 10px 12px;
  opacity: 0.45;
}
.aw-card.earned {
  opacity: 1;
  border-color: color-mix(in srgb, var(--amber) 50%, transparent);
  background: color-mix(in srgb, var(--amber) 6%, transparent);
}
.aw-icon { font-size: 26px; flex: 0 0 auto; filter: grayscale(1); }
.aw-card.earned .aw-icon { filter: none; }
.aw-text { flex: 1 1 auto; min-width: 0; }
.aw-name {
  font-family: var(--ui);
  overflow-wrap: anywhere;   /* b437 (sweep) */
  font-weight: 700;
  font-size: clamp(14px, 1.7vh, 19px);
  color: #e8ecf3;
  letter-spacing: 0.6px;
}
.aw-desc {
  font-family: var(--ui);
  font-size: clamp(11px, 1.4vh, 15px);
  color: #7d8798;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.aw-bar { display: block; height: 4px; background: #161c28; border-radius: 3px; margin-top: 5px; overflow: hidden; }
.aw-bar span { display: block; height: 100%; background: var(--amber); }
.aw-card.earned .aw-bar span { background: var(--green); }
.aw-prog {
  font-family: var(--ui);
  font-weight: 700;
  font-size: clamp(12px, 1.5vh, 17px);
  color: #7d8798;
  flex: 0 0 auto;
}
.aw-card.earned .aw-prog { color: var(--amber); }

/* ---------- short landscape viewports (Fire TV / TV browsers render ~960x540) ---------- */

@media (max-height: 660px) and (orientation: landscape) {
  #topbar { height: 44px; padding: 0 18px; }
  .brand { font-size: 22px; }
  .lc-row { font-size: clamp(19px, 5.7vh, 31px); }
  .lc-cities { font-size: clamp(17px, 5vh, 27px); }

  /* TV crispness: at ~540p the glow halo smears the dot matrix into blobs —
     hard, glow-free dots rasterise far sharper on a big panel */
  .led-line, .led-logo span, .lc-row, .lc-cities, .prog-label, .load-label,
  .tile-value, .tile-label, .tod-label, .tod-value, .wx-value, .map-hud,
  #board-title, #board-airport, .board-row, .br-time, .br-flight, .br-gate,
  .br-status, .led-chip, #load-pct, .pp-title {
    text-shadow: none !important;
  }
  #tabs { top: 44px; height: 40px; }
  .tab { font-size: 14px; letter-spacing: 1.1px; }
  #views { top: 84px; bottom: 0; }
  .noflight { top: 84px; bottom: 0; }

  #view-overview { padding: 1.5vh 2.5vw; }
  .led-panel { padding: 2vh 3vw; }
  .led-head { gap: 2.5vw; }
  .led-logo { width: clamp(60px, 17vh, 104px); height: clamp(60px, 17vh, 104px); }
  .led-logo img { border-radius: 12px; }
  .led-callsign { font-size: clamp(26px, 7.5vh, 42px); }
  .led-route { font-size: clamp(24px, 6.8vh, 38px); }
  .led-type { font-size: clamp(17px, 4.4vh, 26px); }
  .led-body { margin: 0.4vh 0; }
  .led-phase { font-size: clamp(24px, 6.2vh, 36px); }
  .led-over { font-size: clamp(15px, 4vh, 23px); }
  .led-dep { font-size: clamp(15px, 4vh, 23px); margin-bottom: 0.4vh; }
  .led-stats { font-size: clamp(13px, 3.2vh, 19px); }

  /* compact progress line: everything scaled to stay aligned */
  .led-progress { height: 56px; margin-top: 1vh; }
  .prog-line, .prog-line-fill { top: 21px; height: 2px; }
  .prog-node { top: 16px; }
  .prog-dot { width: 11px; height: 11px; margin-bottom: 9px; border-width: 2px; }
  .prog-label { font-size: 9px; letter-spacing: 0; }
  .prog-plane { width: 26px; height: 26px; top: 9px; }

  #view-board { padding: 1.5vh 2.5vw; }
  .board-row { font-size: clamp(11px, 3.3vh, 18px); padding: 0 6px; }
  #board-title { font-size: clamp(20px, 5.5vh, 30px); }

  #view-data { padding: 1.5vh 2.5vw; }
  .led-panel-data { gap: 1.2vh; }
  .tile { padding: 1.2vh 1vw; }
  .tile-value { font-size: clamp(22px, 6.5vh, 40px); }
  .tod-bar { padding: 1vh 2vw; }
  /* short TV screens: the overview progress line already covers the phases */
  #view-data .phase-strip { display: none; }
}

/* ---------- small screens (phones / portrait tablets) ---------- */

@media (max-width: 700px), (orientation: portrait) {
  .led-panel { padding: 2.5vh 4vw; }
  .led-head { gap: 4vw; }
  .led-logo { width: clamp(72px, 20vw, 130px); height: clamp(72px, 20vw, 130px); }
  .led-callsign { font-size: clamp(30px, 8vw, 52px); }
  .led-route { font-size: clamp(26px, 7vw, 46px); }
  .led-type { font-size: clamp(18px, 4.6vw, 30px); }
  .led-phase { font-size: clamp(26px, 6.5vw, 44px); }
  .led-over { font-size: clamp(16px, 4.2vw, 28px); }
  .led-dep { font-size: clamp(16px, 4.2vw, 28px); }
  .led-stats { font-size: clamp(12px, 3.2vw, 20px); flex-wrap: wrap; }
  .prog-label { font-size: 8px; letter-spacing: 0; }
  .led-progress { height: 74px; }
  #topbar { padding: 0 16px; }
  .brand { font-size: 22px; }
  .lc-row { font-size: 13px; }
}


/* ---------- touchdown card ---------- */
.td-card {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 60;
  min-width: 340px;
  padding: 26px 40px;
  text-align: center;
  background: linear-gradient(180deg, rgba(16, 22, 31, 0.97), rgba(8, 11, 16, 0.97));
  border: 1px solid var(--panel-edge);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75);
  opacity: 0;
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
.td-card.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.td-card.hidden { display: none; }
.td-verdict {
  font-family: var(--ui);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 3.3px;
  color: var(--text-dim);
}
.td-rate {
  font-family: var(--ui);
  font-weight: 700;
  font-size: 70px;
  line-height: 1.05;
  color: var(--text);
}
.td-rate .td-unit { font-size: 24px; color: var(--text-dim); margin-left: 10px; letter-spacing: 3px; }
.td-line { font-family: var(--ui); font-size: 15.5px;
           letter-spacing: 1.1px; color: var(--text-dim); margin-top: 6px; }
.td-card.t-perfect { border-color: var(--green); box-shadow: 0 0 0 1px rgba(46,230,107,.35), 0 30px 80px rgba(0,0,0,.75); }
.td-card.t-perfect .td-verdict, .td-card.t-perfect .td-rate { color: var(--green); }
.td-card.t-good .td-verdict, .td-card.t-good .td-rate { color: var(--green); }
.td-card.t-fair .td-verdict, .td-card.t-fair .td-rate { color: #ffd35c; }
.td-card.t-hard .td-verdict, .td-card.t-hard .td-rate { color: var(--red); }


/* ---------- logbook grouped by year and month ---------- */
.log-year { margin-bottom: 6px; }
.log-year-head, .log-month-head {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--panel-edge);
  color: var(--text);
  font-family: var(--ui);
  font-weight: 700;
  cursor: pointer;
  padding: 1vh 8px;
  transition: color .15s;
}
.log-year-head { font-size: clamp(17px, 1.9vw, 24px); letter-spacing: 2.2px; }
.log-month-head { font-size: clamp(14px, 1.5vw, 19px); letter-spacing: 1.7px; color: var(--text-dim); padding-left: 22px; }
.log-year-head:hover, .log-month-head:hover { color: var(--amber); }
.log-year-head .chev, .log-month-head .chev { font-size: 12px; color: var(--amber); transition: transform .18s; }
.log-year:not(.shut) > .log-year-head .chev { transform: rotate(90deg); }
.log-month.open > .log-month-head .chev { transform: rotate(90deg); }
.log-month.open > .log-month-head { color: var(--amber); }
.log-year.shut > .log-year-body { display: none; }
.log-month-body { display: none; }
.log-month.open > .log-month-body { display: block; }
.ly-name, .lm-name { flex: 0 0 auto; }
.lm-count { flex: 1 1 auto; color: var(--text-dim); font-size: 0.72em; letter-spacing: 2px; }
.lm-avg { font-size: 0.8em; padding: 1px 10px; border-radius: 7px; }

/* ===================================================================
   REFINED LOG + DEBRIEF
   Same dark board, same amber — but with room to breathe. Softer cards,
   lighter rules, a clear hierarchy, and the rating shown as a ring so
   the result reads before the number does.
   =================================================================== */

/* ---- the score ring ---- */
.db-ring { display: block; }
.db-ring-n {
  font-family: var(--ui);
  font-weight: 700; font-size: 27.5px; text-anchor: middle;
}
.db-ring-s {
  font-family: var(--ui);
  font-size: 11px; letter-spacing: 1.1px; text-anchor: middle; fill: #59637a;
}
#view-log .db-score { font-size: 0; }        /* the ring carries it now */

/* ---- the log list: cards, not a dense table ---- */
#view-log .log-entry {
  border-bottom: none;
  border: 1px solid #161d29;
  border-radius: 14px;
  background: #0a0e14;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .14s ease, background .14s ease;
}
#view-log .log-entry:hover { border-color: #26303f; }
#view-log .log-entry.open { border-color: #2c3852; background: #0b1017; }

#view-log .log-row {
  grid-template-columns: 4.2em 6em 1.3fr 1fr 1.5fr;
  gap: 18px;
  padding: 16px 18px;
  font-size: clamp(14px, 2.1vh, 22px);
}
#view-log .log-row:hover, #view-log .log-row:focus { background: transparent; }

/* the rating chip in the list keeps its grade colour but sits quieter */
#view-log .lg-rating {
  border-radius: 10px;
  padding: 7px 0;
  font-size: 0.92em;
  letter-spacing: 0.5px;
}
#view-log .lg-when { color: #6e7787; font-size: 0.78em; letter-spacing: 1.5px; }
#view-log .lg-route { letter-spacing: 2px; }
#view-log .lg-cs { color: #8c96a6; font-size: 0.82em; letter-spacing: 2px; }
#view-log .lg-ldg { color: #6e7787; font-size: 0.78em; letter-spacing: 1.5px; text-align: right; }

#view-log .log-detail { padding: 4px 18px 18px; }

/* ---- the debrief itself ---- */
#view-log .db-head {
  align-items: center;
  padding: 6px 0 18px;
  border-bottom: 1px solid #161d29;
}
#view-log .db-route { font-size: 26px; letter-spacing: 3px; }
#view-log .db-sub { font-size: 12.5px; letter-spacing: 2px; margin-top: 5px; }

/* chips: softer, roomier, and the sub-value no longer crowds the number */
#view-log .db-chips { gap: 9px; margin: 16px 0 8px; }
#view-log .db-chip {
  background: #0c1119;
  border: 1px solid #1a222f;
  border-radius: 12px;
  padding: 11px 14px;
  flex: 1 1 128px;
}
#view-log .db-chip span {
  font-size: 10px; letter-spacing: 2.5px; color: #59637a; margin-bottom: 3px;
}
#view-log .db-chip b { font-size: 18px; letter-spacing: 0.5px; font-weight: 600; }

/* section headings: a quiet rule rather than a hard line */
#view-log .db-title {
  font-size: 11px; letter-spacing: 3.5px; color: #7d8798;
  margin: 22px 0 10px; padding-bottom: 7px;
  border-bottom: 1px solid #161d29;
}

/* credits and deductions, given space to read as a list */
#view-log .log-ev {
  padding: 6px 0; font-size: 13px; letter-spacing: 0.4px; line-height: 1.5;
}
#view-log .log-ev em {
  display: block; font-size: 11.5px; color: #59637a;
  letter-spacing: 1px; margin-top: 1px;
}

/* the plus and minus points, sitting under the two figure blocks */
#view-log .db-events { margin-bottom: 4px; }

/* the take-off card and the charts sit in their own panels */
#view-log .db-block {
  background: #0c1119; border: 1px solid #1a222f;
  border-radius: 12px; padding: 14px 16px; margin: 14px 0 6px;
}
#view-log .db-block-h {
  font-size: 10.5px; letter-spacing: 3px; color: var(--amber); margin-bottom: 10px;
}
#view-log .db-grid { gap: 16px; }
#view-log .db-svg {
  border-radius: 10px; border: 1px solid #161d29; background: #080b11;
}
#view-log .db-legend { font-size: 10.5px; letter-spacing: 1.5px; margin-top: 6px; }
#view-log .db-note { font-size: 11px; color: #59637a; margin-top: 5px; }
#view-log .db-wind {
  font-size: 12px; letter-spacing: 2px; color: #7d8798; margin: 10px 0 2px;
}

/* the score sits to the right of the summary, level with the middle of it */
#view-log .ld-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
#view-log .ld-main { min-width: 0; }
#view-log .ld-score { align-self: center; justify-self: center; padding-right: 6px; }
@media (max-width: 780px) {
  #view-log .ld-top { grid-template-columns: 1fr; }
  #view-log .ld-score { justify-self: start; }
}
/* the number sits inside the ring with air around it, not filling it */
.db-ring-n { font-size: 23px; }
.db-ring-s { font-size: 10px; }
#view-log .db-head { padding-top: 14px; }

/* ===================================================================
   HELIX LOOK (b214)
   The look of the Helix Creator OS, brought across: navy depth under
   everything, cards that sit up off the page in a blue halo with a light
   along their top edge, and blue for the accent wherever the app speaks.
   The OVERVIEW and the DEPARTURES board keep their amber LED look - they
   are the departure-hall screens and read right as they are.
   =================================================================== */
:root {
  --amber: #3fb6ff; --amber-dim: #1d5a8a;
  --blue: #3fb6ff; --blue2: #2b7fff;
  --bg: #04070f; --panel: #081226; --panel-edge: rgba(130,200,255,.26);
  --text: #e6f1fc; --text-dim: rgba(205,228,250,.62);
  /* b517 (John): the big cards everywhere as the overview and MY VA's Full day card: dark navy, a fine blue edge,
     a soft shadow, no halo and no shine */
  --c-card: radial-gradient(260px 160px at 100% 0%, rgba(63,182,255,.14), transparent 70%), linear-gradient(160deg, #14233a 0%, #0c1320 60%, #0a0f18 100%);
  --c-glow: 0 20px 50px rgba(0,0,0,.45), 0 0 40px rgba(63,182,255,.08);
}
#view-overview, #view-board, .noflight, .td-card, .fc-prompt {
  --amber: #ffb300; --amber-dim: #7a5600; --panel: #0e1219; --panel-edge: #1a2130; --text: #e8ecf3; --text-dim: #7d8798;
}
body { background: radial-gradient(1400px 900px at 50% -260px, #081a38 0%, rgba(5,11,22,.9) 45%, rgba(4,8,16,0) 72%), radial-gradient(1000px 700px at 8% 34%, rgba(24,90,190,.11), rgba(24,90,190,0) 62%), radial-gradient(1000px 700px at 94% 66%, rgba(24,90,190,.09), rgba(24,90,190,0) 62%), #04070f; background-attachment: fixed; }
.view:not(#view-overview):not(#view-board) .led-panel {
  background: var(--c-card); border: 1px solid rgba(63,182,255,.3); box-shadow: var(--c-glow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.brand span { color: var(--blue); }
.map-btn, .gate-edit, .log-tab, .src { border-color: rgba(130,200,255,.3); }
.ov-schedule { background: linear-gradient(135deg, #2b7fff, #3fb6ff); border-color: transparent; color: #fff; box-shadow: 0 4px 16px rgba(43,127,255,.28); }
.ov-schedule:hover { background: linear-gradient(135deg, #3b8bff, #5cc3ff); color: #fff; }
.modal-card { background: var(--c-card); border: 1px solid rgba(63,182,255,.3); box-shadow: var(--c-glow); }
/* the logbook's own tiles and cards take the same depth */
#view-log .log-entry, .rp-tile, .rp-hero, .rp-box, .rp-side, .rp-stab, .rp-cmp, .rp-tab, .rp-panel, .rp-td, .rp-fold, .rp-seg,
.sb-tile, .sb-box, .sb-routebox {
  background: linear-gradient(172deg, rgba(19,38,68,.72) 0%, rgba(10,21,40,.86) 100%) !important;
  border-color: rgba(130,200,255,.26) !important;
  box-shadow: inset 0 1px 0 rgba(210,238,255,.16), 0 12px 30px -20px rgba(0,0,0,.75);
}
#view-log .log-entry.open, .rp-tab.on { border-color: rgba(130,200,255,.6) !important; }
.tfc-menu, .dd-panel { background: #0b1a33 !important; }

/* one map look now (b306): the CLASSIC / VATSIM RADAR switch is gone */
#look-btn { display: none !important; }

/* ---- the tabs: a size up, with a pill that slides to the chosen one ---- */
#tabs { position: fixed; height: 64px; padding: 7px 10px; gap: 0; align-items: stretch;
  background: linear-gradient(180deg, rgba(10,22,44,.98), rgba(5,11,22,.98)); border-bottom: 1px solid rgba(130,200,255,.18); }
#tabs::before { content: ""; position: absolute; left: 10px; right: 10px; top: 7px; bottom: 7px; border-radius: 999px;
  background: rgba(255,255,255,.045); box-shadow: inset 0 1px 2px rgba(0,0,0,.5), inset 0 0 0 1px rgba(130,200,255,.14); }
.tab { font-size: 21px; letter-spacing: 1.9px; padding: 0 12px; border-bottom: none !important; position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; line-height: 1; border-radius: 999px; transition: color .25s ease; }
.tab.active { color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.tab:hover:not(.active) { color: var(--text); }
.tab-pill { position: absolute; left: 0; top: 7px; height: 50px; border-radius: 999px; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, #4aa6ff, #2b7fff); box-shadow: 0 6px 18px rgba(43,127,255,.4), inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.25);
  transition: transform .42s cubic-bezier(.32,.72,0,1), width .42s cubic-bezier(.32,.72,0,1); }
main#views, #views { top: 128px; }
.noflight { top: 128px; }

/* b241: who is on the position, their rating, how long they have been on, what they wrote */
.sc-nm { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.sc-rank { font-style: normal; font-size: 11.5px; letter-spacing: 1.5px; padding: 1px 6px; border-radius: 4px; background: rgba(185, 140, 255, 0.14); color: #c9a6ff; border: 1px solid rgba(185, 140, 255, 0.35); }
.sc-onl { font-size: 12px; letter-spacing: 1.5px; color: #59637a; margin-left: auto; }
.sc-on { font-family: var(--mono); font-size: 13px; color: var(--green); margin-left: 5px; letter-spacing: 0; }
.sc-txt { margin-top: 6px; padding: 6px 8px; border-left: 2px solid #2a3447; font-size: 13px; line-height: 1.45; color: #a5b0c2; }
.ti-stn .sc-nm { margin-top: 3px; font-size: 14px; color: #7d8798; }

/* b242: a long ATIS card stays on the map */
#map-hover { max-height: calc(100% - var(--hud-h, 48px) - 12px); overflow: hidden; }

/* b246: the scoring page, off the scrollbar and at a size that reads */
.log-panel > .log-rules { padding: 8px 34px 28px 14px; }
.rules-intro { font-size: 17px; margin: 8px 0 18px; }
.rules-intro span { font-size: 13px; }
.rules-sec { margin-bottom: 22px; }
.rules-h { font-size: 14.5px; letter-spacing: 1.9px; padding-bottom: 6px; margin-bottom: 6px; }
.rules-row { grid-template-columns: minmax(190px, 24%) 1fr 170px; gap: 18px; padding: 9px 0; font-size: 17px; line-height: 1.45; }
.rules-row b { font-weight: 700; font-size: 17.5px; }
.rules-row em { font-size: 16px; font-weight: 700; }
/* the awards page gets the same room, and its cards say they open */
.log-panel > .log-awards { padding: 4px 30px 24px 10px; }
.aw-card { cursor: pointer; transition: border-color .15s, transform .15s; }
.aw-card:hover { border-color: var(--amber); transform: translateY(-1px); opacity: 1; }
.aw-hint { margin-left: auto; font-weight: 500; letter-spacing: 1px; text-transform: none; color: #59637a; }
/* one award, in the middle of the screen */
.modal-card.aw-pop { width: min(460px, 92vw); text-align: center; padding: 28px 30px 26px; }
.awp-head { font-family: var(--ui); font-size: 12px; letter-spacing: 2.2px; color: var(--amber); font-weight: 700; }
.awp-head.unlocked { color: var(--green); }
.awp-head.nudge { color: #b98cff; }
.awp-icon { font-size: 84px; line-height: 1.1; margin: 12px 0 6px; filter: drop-shadow(0 0 22px rgba(255,179,0,.45)); }
.awp-icon.dim { filter: grayscale(.7) opacity(.75); }
.awp-name { font-family: var(--ui); font-size: 27.5px; font-weight: 700; letter-spacing: 1.1px; color: #fff; }
.awp-desc { font-size: 16px; color: #9fb3c8; margin-top: 4px; }
.awp-when { margin-top: 14px; font-size: 15.5px; color: #dbe6f3; line-height: 1.5; }
.awp-bar { height: 10px; background: #161c28; border-radius: 6px; margin: 18px 10px 10px; overflow: hidden; }
.awp-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--amber), #ffd35c); border-radius: 6px; }
.awp-prog { font-size: 16px; color: #9fb3c8; }
.awp-prog b { color: #fff; font-size: 20px; }
.awp-next { margin-top: 20px; padding: 12px 30px; font-size: 15px; letter-spacing: 3px; border-radius: 10px; border: 0; background: linear-gradient(135deg, var(--amber), #ffd35c); color: #1a1200; font-weight: 800; cursor: pointer; }

/* b250: the award card with more to say */
.modal-card.aw-pop { position: relative; overflow: hidden; }
.modal-card.aw-pop .sparks i { background: var(--amber); }
.awp-blurb { margin-top: 12px; font-size: 16.5px; font-style: italic; color: #ffd35c; line-height: 1.45; padding: 0 6px; }
.awp-when { margin-top: 16px; text-align: left; border-top: 1px solid rgba(130,200,255,.15); padding-top: 6px; }
.awp-row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 2px; border-bottom: 1px solid rgba(130,200,255,.08); font-size: 15px; }
.awp-row span { font-family: var(--ui); letter-spacing: 1.4px; font-size: 11px; color: #7d8798; font-weight: 700; padding-top: 2px; white-space: nowrap; }
.awp-row b { color: #e8ecf3; font-weight: 600; text-align: right; }
.awp-row b i { font-style: normal; font-weight: 800; }
.awp-btns { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.awp-share { padding: 11px 18px; font-size: 13px; letter-spacing: 2.5px; border-radius: 10px; border: 1px solid rgba(255,211,92,.5); background: transparent; color: #ffd35c; font-weight: 700; cursor: pointer; }
.awp-share:hover { background: rgba(255,211,92,.1); }
.awp-next { margin-top: 0; }

/* b263: the board on a phone or a small tablet */
@media (max-width: 700px) {
  #tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  #tabs::-webkit-scrollbar { display: none; }
  .tab { font-size: 12px; letter-spacing: 0.6px; padding-left: 10px; padding-right: 10px; white-space: nowrap; }
  .log-row { grid-template-columns: 4.2em 1fr 1fr; row-gap: 2px; }
  .log-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .fc-prompt { flex-wrap: wrap; width: calc(100% - 24px); left: 12px; right: 12px; transform: none; gap: 8px; }
}

/* ---------- community (b268) ---------- */
/* Every airline on Airwing on one board: the same navy cards as the log,
   a sort row like the log's switcher, big figures in Inter, the airline page's face. */
#view-community { padding: 2.5vh 3vw; }
#community { flex: 1 1 0; min-height: 0; overflow-y: auto; padding: 2px 6px 28px 2px; font-family: 'Inter', sans-serif; color: var(--text); }
.cm-wait, .cm-empty { color: var(--text-dim); font-size: 18px; letter-spacing: 1px; padding: 40px 10px; text-align: center; }

/* the header strip and the detail head */
.cm-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 16px 22px; margin-bottom: 14px; border-radius: 18px;
  background: var(--c-card); border: 1px solid rgba(63,182,255,.3); box-shadow: var(--c-glow); }
.cm-title { font-family: 'Inter', sans-serif; font-weight: 700; font-size: clamp(18px, 2.1vw, 27px); letter-spacing: 4px; color: #fff; }
.cm-title i { font-style: normal; font-weight: 600; letter-spacing: 2px; font-size: .74em; color: var(--text-dim); }
.cm-status { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 17px; letter-spacing: .5px; color: var(--text-dim); }
.cm-status b { color: #fff; font-weight: 600; }
.cm-status a { color: var(--blue); text-decoration: none; font-weight: 600; letter-spacing: 2px; }
.cm-status a:hover { text-decoration: underline; }

/* the sort row, the log's switcher look */
.cm-sorts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 2px 14px; }
.cm-sort { font-family: 'Inter', sans-serif; font-weight: 700; font-size: clamp(12px, 1.4vw, 17px); letter-spacing: 2px;
  background: none; border: 1px solid rgba(130,200,255,.3); border-radius: 8px; color: var(--text-dim); padding: 4px 14px; cursor: pointer; transition: color .15s, border-color .15s; }
.cm-sort:hover { color: var(--text); border-color: rgba(130,200,255,.6); }
.cm-sort.active { color: #fff; background: linear-gradient(135deg, #2b7fff, #3fb6ff); border-color: transparent; box-shadow: 0 4px 14px rgba(43,127,255,.3); }

/* the leaderboard */
.cm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; }
.cm-card { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 14px; border-radius: 16px; cursor: pointer; outline: none;
  background: linear-gradient(172deg, rgba(19,38,68,.72) 0%, rgba(10,21,40,.86) 100%); border: 1px solid rgba(130,200,255,.26);
  box-shadow: inset 0 1px 0 rgba(210,238,255,.16), 0 12px 30px -20px rgba(0,0,0,.75); transition: border-color .15s, transform .15s; }
.cm-card:hover, .cm-card:focus-visible { border-color: rgba(130,200,255,.6); transform: translateY(-1px); }
.cm-card.cm-mine { border-color: rgba(255,211,92,.55); box-shadow: inset 0 1px 0 rgba(255,225,140,.2), 0 0 24px -8px rgba(255,199,0,.35), 0 12px 30px -20px rgba(0,0,0,.75); }
.cm-card.cm-flying { border-color: rgba(46,230,107,.5); }
.cm-top { display: flex; align-items: flex-start; gap: 14px; }
.cm-roundel { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif; font-weight: 800; font-size: 19px; letter-spacing: 1px; color: #fff;
  background: linear-gradient(180deg, #4aa6ff, #2b7fff); box-shadow: 0 6px 18px rgba(43,127,255,.35), inset 0 1px 0 rgba(255,255,255,.35); }
.cm-roundel.big { flex-basis: 64px; width: 64px; height: 64px; font-size: 25px; }
.cm-id { flex: 1 1 auto; min-width: 0; }
.cm-name { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 23px; letter-spacing: 1.5px; color: #fff; line-height: 1.15; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.cm-sub { margin-top: 3px; font-size: 15px; letter-spacing: .5px; color: var(--text-dim); }
.cm-sub b { color: var(--text); font-family: var(--mono); font-weight: 600; letter-spacing: 0; font-size: 14px; }
.cm-blurb { margin-top: 8px; font-size: 16px; font-style: italic; line-height: 1.45; color: #cfe0f2; }
.cm-tag { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 11.5px; letter-spacing: 2px; padding: 2px 7px; border-radius: 5px;
  background: rgba(255,211,92,.14); color: #ffd35c; border: 1px solid rgba(255,211,92,.4); }
.cm-tag.fly { background: rgba(46,230,107,.12); color: var(--green); border-color: rgba(46,230,107,.4); }
.cm-policy { flex: 0 0 auto; align-self: flex-start; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 2.5px; white-space: nowrap;
  padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(130,200,255,.35); color: var(--text-dim); background: rgba(130,200,255,.06); }
.cm-policy.open { color: var(--green); border-color: rgba(46,230,107,.4); background: rgba(46,230,107,.08); }
.cm-policy.approve { color: #c9a6ff; border-color: rgba(185,140,255,.4); background: rgba(185,140,255,.1); }
.cm-policy.rating, .cm-policy.hours { color: #ffd35c; border-color: rgba(255,211,92,.4); background: rgba(255,211,92,.08); }
.cm-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 10px 0 2px; border-top: 1px solid rgba(130,200,255,.12); }
.cm-fig { text-align: center; }
.cm-fig b, .cm-metric b { display: block; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 34px; line-height: 1; color: #fff; }
.cm-fig span, .cm-metric span { display: block; margin-top: 4px; font-size: 11.5px; letter-spacing: 2.5px; color: var(--text-dim); }
.cm-r-gold { color: #ffd35c !important; text-shadow: 0 0 18px rgba(255,199,0,.4); }
.cm-r-green { color: var(--green) !important; text-shadow: 0 0 18px rgba(46,230,107,.35); }
.cm-r-muted, .cm-r-none { color: var(--text-dim) !important; }
.cm-chips { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.cm-chip { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0; padding: 4px 9px; border-radius: 7px; color: var(--text);
  background: rgba(130,200,255,.07); border: 1px solid rgba(130,200,255,.16); white-space: nowrap; }
.cm-chip i { font-style: normal; color: var(--text-dim); }

/* the detail panel */
.cm-detail-head { align-items: center; }
.cm-metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 14px; }
.cm-metric { padding: 16px 14px 14px; text-align: center; border-radius: 14px;
  background: linear-gradient(172deg, rgba(19,38,68,.72) 0%, rgba(10,21,40,.86) 100%); border: 1px solid rgba(130,200,255,.26); box-shadow: inset 0 1px 0 rgba(210,238,255,.16); }
.cm-metric b { font-size: 30px; }
.cm-metric b i { display: block; margin-top: 5px; font-style: normal; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 13.5px; letter-spacing: .5px; color: var(--text-dim); text-shadow: none; }
.cm-panel { padding: 16px 20px 18px; margin-bottom: 14px; border-radius: 16px;
  background: linear-gradient(172deg, rgba(19,38,68,.72) 0%, rgba(10,21,40,.86) 100%); border: 1px solid rgba(130,200,255,.26); box-shadow: inset 0 1px 0 rgba(210,238,255,.16); }
.cm-panel-h { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 3.5px; color: var(--blue); padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid rgba(130,200,255,.15); }
.cm-panel-h i { font-style: normal; color: var(--text-dim); margin-left: 6px; }
.cm-action { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; font-size: 17px; color: var(--text); }
.cm-dim { color: var(--text-dim); font-size: 16px; margin: 2px 0; }

/* buttons, the schedule button's blue and the gate button's quiet outline */
.cm-btn { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 2.5px; padding: 10px 20px; border-radius: 10px; cursor: pointer;
  background: none; border: 1px solid rgba(130,200,255,.35); color: var(--text); transition: border-color .15s, color .15s, filter .15s; white-space: nowrap; }
.cm-btn:hover:not(:disabled) { border-color: var(--blue); color: #fff; }
.cm-btn.primary { background: linear-gradient(135deg, #2b7fff, #3fb6ff); border-color: transparent; color: #fff; box-shadow: 0 4px 16px rgba(43,127,255,.28); }
.cm-btn.primary:hover:not(:disabled) { filter: brightness(1.1); }
.cm-btn.small { font-size: 12.5px; letter-spacing: 2px; padding: 6px 12px; border-radius: 8px; }
.cm-btn:disabled { opacity: .45; cursor: default; }
.cm-acts { display: flex; gap: 6px; justify-content: flex-end; }

/* the owner's join-policy form */
.cm-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px; align-items: end; }
.cm-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; letter-spacing: 2.5px; color: var(--text-dim); font-weight: 600; }
.cm-form .cm-wide { grid-column: 1 / -1; }
.cm-form select, .cm-form textarea { font-family: 'Inter', sans-serif; font-size: 16px; letter-spacing: .5px; color: var(--text); padding: 8px 10px; border-radius: 8px;
  background: rgba(4,10,22,.7); border: 1px solid rgba(130,200,255,.3); outline: none; }
.cm-form select:focus, .cm-form textarea:focus { border-color: var(--blue); }
.cm-form select option { background: #0b1a33; color: var(--text); }
.cm-form textarea { resize: vertical; min-height: 64px; font-family: 'Inter', sans-serif; font-size: 15px; letter-spacing: 0; line-height: 1.4; }
.cm-form .cm-btn { justify-self: start; }

/* rosters and flights */
.cm-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cm-table { width: 100%; border-collapse: collapse; font-size: 18px; min-width: 520px; }
.cm-table th { text-align: left; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 2.5px; color: var(--text-dim); padding: 6px 10px 8px; border-bottom: 1px solid rgba(130,200,255,.15); white-space: nowrap; }
.cm-table td { padding: 11px 12px; border-bottom: 1px solid rgba(130,200,255,.08); color: var(--text); white-space: nowrap; font-size: 18px; }
.cm-table tr:last-child td { border-bottom: none; }
.cm-table td.mono { font-family: var(--mono); font-size: 16.5px; }
/* the pilots' board (b271) */
.cm-sec { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: 3px; color: #fff; margin: 18px 2px 10px; }
.cm-sec i { font-style: normal; font-weight: 600; letter-spacing: 2px; font-size: .74em; color: var(--text-dim); }
/* one row of notice-board tiles (b273): the leader large, the runners-up a line each */
/* b280: the two big boards take the left, two rows tall; the small tiles fill the rest */
.cm-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1.7fr)) repeat(3, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 12px; margin-bottom: 8px; }
.cm-tile { display: flex; flex-direction: column; min-width: 0; padding: 14px 14px 12px; border-radius: 14px;
  background: linear-gradient(172deg, rgba(19,38,68,.72) 0%, rgba(10,21,40,.86) 100%); border: 1px solid rgba(130,200,255,.22);
  box-shadow: inset 0 1px 0 rgba(210,238,255,.14), 0 12px 30px -20px rgba(0,0,0,.75); }
.cm-tile-t { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 2.5px; color: var(--blue); line-height: 1.2; }
.cm-tile-t span { display: block; font-family: 'Inter', sans-serif; font-weight: 400; letter-spacing: 0; font-size: 11.5px; color: var(--text-dim); margin-top: 2px; min-height: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-tile-lead { display: flex; align-items: center; gap: 9px; margin-top: 12px; min-width: 0; }
.cm-tile-medal { flex: 0 0 auto; font-size: 26px; line-height: 1; filter: drop-shadow(0 2px 8px rgba(255,199,0,.4)); }
.cm-tile-who { min-width: 0; flex: 1 1 auto; }
.cm-tile-name { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: 1px; color: #fff; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-tile-al { font-size: 12px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.cm-tile-v { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 19px; letter-spacing: .5px; color: #ffd35c; margin: 6px 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-tile-r { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 12.5px; padding-top: 6px; margin-top: 6px; border-top: 1px solid rgba(130,200,255,.1); }
.cm-tile-pos { flex: 0 0 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 50%; background: rgba(130,200,255,.14); font-size: 10.5px; font-weight: 700; color: var(--text); }
.cm-tile-rn { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-weight: 500; }
.cm-tile-r b { flex: 0 0 auto; font-weight: 600; color: var(--text-dim); font-size: 12px; }
.cm-tile-lead.me, .cm-tile-r.me { background: rgba(63,182,255,.14); box-shadow: inset 3px 0 0 var(--blue); border-radius: 8px; padding-left: 6px; padding-right: 6px; }
.cm-tile-lead.me { padding-top: 4px; padding-bottom: 4px; }
/* a small tile is one button: it opens its top ten in the pop-up (b282) */
.cm-small { cursor: pointer; transition: border-color .2s ease; }
.cm-small:hover { border-color: rgba(130,200,255,.55); }
.cm-small:focus { outline: none; }
.cm-small:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
/* the two big boards: the top five, a line each, the top ten a press away */
.cm-board { grid-row: span 3; padding: 16px 16px 12px; }
.cm-board .cm-rank { margin-bottom: 10px; }
.cm-board-more { margin-top: auto; padding: 10px 0 2px; background: none; border: none; border-top: 1px solid rgba(130,200,255,.1); cursor: pointer;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 10.5px; letter-spacing: 2px; color: var(--blue); text-align: center; transition: color .15s ease; }
.cm-board-more:hover { color: #fff; }
.cm-board-more:focus { outline: none; }
.cm-board-more:focus-visible { color: #fff; outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.cm-board .cm-tile-t { font-size: 15px; }
.cm-board .cm-tile-t span { font-size: 12.5px; }
.cm-rank { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; font-family: 'Inter', sans-serif; }
.cm-rank-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 6px 8px; border-top: 1px solid rgba(130,200,255,.1); border-radius: 8px; }
.cm-rank-row:first-child { border-top: none; }
.cm-rank-row.lead { padding: 8px 8px 10px; }
.cm-rank-pos { flex: 0 0 30px; text-align: center; font-weight: 700; font-size: 13px; color: var(--text-dim); }
.cm-rank-medal { font-size: 21px; line-height: 1; }
.cm-rank-row.lead .cm-rank-medal { font-size: 32px; filter: drop-shadow(0 2px 8px rgba(255,199,0,.4)); }
.cm-rank-who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.cm-rank-name { font-weight: 600; font-size: 16px; color: #fff; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-rank-row.lead .cm-rank-name { font-weight: 700; font-size: 24px; letter-spacing: .5px; line-height: 1.1; }
.cm-rank-al { font-size: 11.5px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.cm-rank-v { flex: 0 1 auto; max-width: 48%; font-weight: 700; font-size: 14px; color: var(--text); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-rank-row.lead { flex-wrap: wrap; }
.cm-rank-row.lead .cm-rank-who { flex: 1 1 calc(100% - 41px); }
.cm-rank-row.lead .cm-rank-v { font-size: 18px; color: #ffd35c; flex: 0 1 auto; max-width: calc(100% - 44px); text-align: left; padding-left: 40px; }
/* each pilot's movement since the day the server measures from (b282) */
.cm-rank-mv { flex: 0 0 34px; text-align: right; line-height: 1; }
.cm-rank-row.lead .cm-rank-mv { text-align: left; }
.cm-move { display: inline-block; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 10.5px; letter-spacing: .2px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cm-move.up { color: var(--green); }
.cm-move.down { color: #ff6b64; }
.cm-move.flat { color: var(--text-dim); opacity: .7; }
.cm-move.new { padding: 2px 6px 1px; border-radius: 999px; font-size: 9px; letter-spacing: 1.2px; color: #8fd3ff; background: rgba(63,182,255,.16); border: 1px solid rgba(63,182,255,.45); }
/* a small tile's figure may take two lines rather than be cut off */
.cm-small .cm-tile-v { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cm-rank-row.me { background: rgba(63,182,255,.14); box-shadow: inset 3px 0 0 var(--blue); }
@media (max-width: 1440px) { .cm-tiles { grid-template-columns: repeat(2, minmax(0, 1.5fr)) repeat(2, minmax(0, 1fr)); } .cm-board { grid-row: span 4; } }
/* the big boards go full width on top, the small tiles three across beneath */
@media (max-width: 1180px) {
  .cm-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cm-board { grid-column: span 3; grid-row: auto; }
  .cm-small { grid-column: span 2; }
}
/* a phone: everything stacks, the small tiles two by two */
@media (max-width: 640px) {
  .cm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cm-board { grid-column: 1 / -1; }
  .cm-small { grid-column: auto; }
  .cm-tile { padding: 12px 12px 10px; } .cm-tile-name { font-size: 19px; }
  .cm-rank-row.lead .cm-rank-name { font-size: 20px; }
}

/* ---- the account drawer (b282): hidden down the left edge on every tab but MY VA ----
   Closed, only a slim hover zone shows (a faint blue line at the very edge) and the
   page keeps its full width. The pointer on the zone, or the keyboard on the gear,
   slides the panel out OVER the page, the same navy and blue edge as the airline
   frame's rail; it slides back a moment after the pointer leaves. A phone keeps the chip. */
.acct-rail { display: none; position: fixed; left: 0; top: 128px; bottom: 0; width: 10px; z-index: 46; box-sizing: border-box;
  background: transparent; box-shadow: inset 1px 0 0 rgba(130,200,255,.16); }
.acct-rail-panel { position: absolute; left: 0; top: 0; bottom: 0; width: 220px; box-sizing: border-box;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 0 0 10px;
  background: linear-gradient(180deg, rgba(10,22,44,.98), rgba(5,11,22,.98)); border-right: 1px solid rgba(130,200,255,.22);
  box-shadow: 18px 0 34px rgba(0,0,0,.5), 1px 0 16px -4px rgba(64,156,255,.35);
  transform: translateX(-100%); opacity: 0; pointer-events: none;
  transition: transform .22s ease, opacity .22s ease; will-change: transform, opacity; }
.acct-rail.open .acct-rail-panel, .acct-rail:has(.acct-rail-btn:focus-visible) .acct-rail-panel { transform: none; opacity: 1; pointer-events: auto; }
.acct-rail-me { margin: 0 14px; padding: 10px 12px; border-radius: 10px; min-width: 0; font-family: 'Inter', sans-serif;
  background: rgba(63,182,255,.08); border: 1px solid rgba(130,200,255,.2); }
.acct-rail-me b { display: block; font-weight: 700; font-size: 13.5px; color: #fff; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-rail-me span { display: block; margin-top: 2px; font-weight: 600; font-size: 10px; letter-spacing: 2px; color: var(--blue); }
.acct-rail-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 14px 13px 11px; background: none; border: none; border-left: 3px solid transparent;
  color: rgba(205,228,250,.62); font-family: 'Inter', sans-serif; text-align: left; white-space: nowrap; cursor: pointer; transition: color .15s ease, background .15s ease; }
.acct-rail-btn i { flex: 0 0 26px; font-style: normal; font-size: 19px; line-height: 1; text-align: center; }
.acct-rail-btn span { font-weight: 600; font-size: 11.5px; letter-spacing: 2px; }
.acct-rail-btn:hover, .acct-rail-btn:focus-visible { background: rgba(63,182,255,.08); color: #3fb6ff; border-left-color: #3fb6ff; outline: none; }
@media (min-width: 641px) {
  body.acct-rail-on .acct-rail { display: block; }
}
@media (prefers-reduced-motion: reduce) { .acct-rail-panel { transition: none; } }

/* ---- the board pop-up (b282): any board's top ten, over the page ---- */
.cm-pop { display: none; position: fixed; inset: 0; z-index: 72; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box;
  background: rgba(2,6,14,.62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .18s ease;
  overscroll-behavior: contain; font-family: 'Inter', sans-serif; color: var(--text); }
.cm-pop.show { display: flex; }
.cm-pop.in { opacity: 1; }
.cm-pop-card { width: min(560px, 92vw); max-height: 86vh; overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; padding: 18px 18px 14px; border-radius: 16px;
  background: var(--c-card); border: 1px solid rgba(63,182,255,.3); box-shadow: var(--c-glow);
  transform: scale(.96); opacity: 0; transition: transform .18s ease, opacity .18s ease; }
.cm-pop.in .cm-pop-card { transform: none; opacity: 1; }
.cm-pop-card:focus { outline: none; }
.cm-pop-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.cm-pop-t { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: 15px; letter-spacing: 2.5px; color: var(--blue); line-height: 1.2; }
.cm-pop-t span { display: block; font-weight: 400; letter-spacing: 0; font-size: 12.5px; color: var(--text-dim); margin-top: 3px; }
.cm-pop-x { flex: 0 0 auto; width: 32px; height: 32px; margin: -4px -4px 0 0; border-radius: 8px; background: none; border: 1px solid transparent;
  color: var(--text-dim); font-size: 15px; line-height: 1; cursor: pointer; transition: color .15s ease, background .15s ease, border-color .15s ease; }
.cm-pop-x:hover, .cm-pop-x:focus-visible { color: #fff; background: rgba(63,182,255,.1); border-color: rgba(130,200,255,.35); outline: none; }
.cm-pop-list { list-style: none; margin: 0; padding: 0; }
.cm-pop-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 46px; align-items: center; gap: 12px; padding: 8px 8px; border-top: 1px solid rgba(130,200,255,.1); border-radius: 8px; }
.cm-pop-row:first-child { border-top: none; }
.cm-pop-row.me { background: rgba(63,182,255,.14); box-shadow: inset 3px 0 0 var(--blue); }
.cm-pop-pos { text-align: center; font-weight: 700; font-size: 13px; color: var(--text-dim); }
.cm-pop-medal { font-size: 22px; line-height: 1; }
.cm-pop-row:first-child .cm-pop-medal { filter: drop-shadow(0 2px 8px rgba(255,199,0,.4)); }
.cm-pop-who { min-width: 0; display: flex; flex-direction: column; }
.cm-pop-who b { font-weight: 700; font-size: 15px; color: #fff; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-pop-who small { font-size: 11.5px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.cm-pop-v { max-width: 190px; font-weight: 700; font-size: 14px; color: var(--text); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-pop-row:first-child .cm-pop-v { color: #ffd35c; }
.cm-pop-mv { text-align: right; line-height: 1; }
.cm-pop-mv .cm-move { font-size: 11.5px; }
.cm-pop-foot { margin-top: 10px; padding-top: 9px; border-top: 1px solid rgba(130,200,255,.1); font-size: 11.5px; color: var(--text-dim); }
#community.cm-lock { overflow-y: hidden; scrollbar-gutter: stable; }
@media (max-width: 640px) {
  .cm-pop-row { grid-template-columns: 28px minmax(0, 1fr) auto 40px; gap: 9px; padding: 7px 6px; }
  .cm-pop-v { max-width: 120px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .cm-pop, .cm-pop-card { transition: none; } }
/* an airline's own logo fills its roundel (b273) */
.cm-roundel:has(> .cm-logo) { background: #11151d; overflow: hidden; }
.cm-logo { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.cm-table td b { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 17px; }

/* the two gates: sign in, or upgrade */
.cm-gate { max-width: 560px; margin: 8vh auto 0; padding: 36px 32px 34px; text-align: center; border-radius: 20px;
  background: var(--c-card); border: 1px solid rgba(63,182,255,.3); box-shadow: var(--c-glow); }
.cm-gate-icon { font-size: 54px; line-height: 1.1; margin-bottom: 10px; filter: drop-shadow(0 0 18px rgba(63,182,255,.4)); }
.cm-gate-title { font-family: 'Inter', sans-serif; font-weight: 800; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: 4px; color: #fff; }
.cm-gate p { margin: 12px 0 0; font-size: 16.5px; line-height: 1.5; color: #9fb3c8; }
.cm-gate .cm-btn { margin-top: 22px; }

/* b557: a flight progress note, at the top like a phone's notification */
.fd-prog { position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 14px); z-index: 3000; width: min(92vw, 560px); transform: translate(-50%, -140%); opacity: 0;
  display: flex; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 20px; cursor: pointer;
  background: rgba(22,28,40,.92); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 16px 40px rgba(0,0,0,.5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-family: 'Inter', sans-serif; transition: transform .42s cubic-bezier(.34,1.4,.5,1), opacity .25s ease; }
.fd-prog.show { transform: translate(-50%, 0); opacity: 1; }
.fd-prog img { width: 42px; height: 42px; border-radius: 50%; flex: none; }
.fd-prog > div { flex: 1; min-width: 0; }
.fd-prog-hd { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .08em; color: rgba(205,228,250,.65); }
.fd-prog-hd b { font-weight: 800; color: rgba(205,228,250,.85); }
.fd-prog-tx { margin-top: 3px; font-size: 15.5px; font-weight: 600; line-height: 1.35; color: #fff; }

/* b570 (John): the day's line in two, and AIRCRAFT CONTROLS */
.m-duty-next { display: block; margin-top: 2px; color: #8fc8ff; }
.m-desk .m-duty, .m-duty { width: fit-content; max-width: 100%; }   /* b572 (John): the card ends where its words do */
.ac-modal { position: fixed; inset: 0; z-index: 3050; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(3, 6, 12, .66); }
.ac-card { width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 16px 20px 20px; border-radius: 20px; font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #122036, #0c1320 55%, #0a0f18); border: 1px solid rgba(63, 182, 255, .4); box-shadow: 0 30px 90px rgba(0, 0, 0, .6); }
.ac-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ac-hd b { font-size: 13px; font-weight: 800; letter-spacing: .12em; color: #3fb6ff; }
.ac-hd span { flex: 1; min-width: 0; font-size: 12px; color: #9aa4b2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #2a3345; background: transparent; color: #9aa4b2; font-size: 20px; cursor: pointer; }
.ac-note { margin: 6px 0; font-size: 12.5px; color: #ffb300; }
.ac-sec { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .07); }
.ac-k { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: #8e9ab0; margin-bottom: 8px; }
.ac-sl { display: block; margin: 8px 0 12px; }
.ac-sl > span { display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 700; color: #e8ecf3; margin-bottom: 6px; }
.ac-sl b { color: #3fb6ff; font-variant-numeric: tabular-nums; }
.ac-sl input[type=range] { width: 100%; height: 40px; accent-color: #3fb6ff; touch-action: none; cursor: pointer; }   /* b572: the finger's own */
.ac-modal { touch-action: none; overscroll-behavior: contain; }
.ac-card { touch-action: pan-y; overscroll-behavior: contain; }
/* b645 (John, at the gate): the panel scrolled slowly and stuck under a finger on the tablet. A finger going up or down
   on a slide scrolls the panel (the slide only moves for a finger going sideways, app.js), nothing over the panel stops
   the scroll, and the panel scrolls on its own layer */
.ac-modal { touch-action: pan-y; }
.ac-card { -webkit-overflow-scrolling: touch; transform: translateZ(0); will-change: scroll-position; contain: paint; }
.ac-sl { touch-action: pan-y; }
/* b645: the cabin lights as the Fenix's cabin crew panel has them, BRT, DIM 1, DIM 2, OFF */
.ac-row4 { flex-wrap: wrap; }
.ac-row4 .ac-pill { grid-template-columns: repeat(var(--n), minmax(58px, 1fr)); }
.ac-row4 .ac-pill button { padding: 9px 8px; white-space: nowrap; }
.ac-sl input[type=range] { touch-action: pan-y; pointer-events: none; }
.ac-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 12px 0; }   /* b571: room between SYS and PWS */
.ac-row + .ac-row { border-top: 1px solid rgba(255, 255, 255, .06); }
.ac-row > span { font-size: 13.5px; font-weight: 700; color: #e8ecf3; }
/* b571 (John): smooth pill toggles: the track, a thumb that slides to the choice */
.ac-pill { position: relative; display: inline-grid; grid-template-columns: repeat(var(--n), minmax(64px, 1fr)); padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(63, 182, 255, .3); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .35); }
.ac-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n)); border-radius: 999px;
  background: linear-gradient(135deg, #2b7fff, #3fb6ff); box-shadow: 0 4px 14px rgba(43, 127, 255, .45);
  transform: translateX(calc(var(--i) * 100%)); transition: transform .3s cubic-bezier(.4, 0, .2, 1), opacity .2s ease; }
.ac-thumb.none { opacity: 0; }
.ac-pill button { position: relative; z-index: 1; font: 800 12.5px 'Inter', sans-serif; letter-spacing: .06em; padding: 9px 14px; border: 0; background: transparent; color: #9aa4b2; cursor: pointer; border-radius: 999px; transition: color .25s ease; }
.ac-pill button.on { color: #fff; }
.ac-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
/* b585 (John): the pill toggles as an iPhone's: the thumb glides across, nothing sharp */
.ac-pill { min-width: 168px; }
.ac-thumb { transition: transform .32s cubic-bezier(.32, .72, 0, 1), opacity .2s ease; will-change: transform; }
.ac-pill button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.ac-door { padding: 10px 6px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .03); color: #e8ecf3; font: 800 12.5px 'Inter', sans-serif; cursor: pointer; }
.ac-door small { display: block; margin-top: 3px; font-size: 10.5px; color: #8e9ab0; }
.ac-door.open { border-color: rgba(255, 179, 0, .6); }
.ac-door.open small { color: #ffb300; }
.ac-small { margin-top: 8px; font-size: 12px; color: #7d8798; }

/* b568 (John): who is on the radios, and the frequency SayIntentions has you on */
.si-crew { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
/* b575 (John): NEW FLIGHT, beside the connection chip */
.si-head-r { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.si-newf { font: 800 12px 'Inter', sans-serif; letter-spacing: .08em; padding: 9px 16px; border-radius: 999px; cursor: pointer;
  color: #fff; background: linear-gradient(135deg, #2b7fff, #3fb6ff); border: 0; box-shadow: 0 4px 14px rgba(43, 127, 255, .35); }
.si-newf:disabled { opacity: .45; cursor: default; box-shadow: none; }
@media (max-width: 640px) { .si-head-r { align-self: flex-start; } }
.si-crew .si-gate { margin-left: auto; }
.si-chip.warn { color: #ffb300; border-color: rgba(255, 179, 0, .55); background: rgba(255, 179, 0, .08); }
.si-crew-t { display: inline-flex; border: 1px solid rgba(63,182,255,.45); border-radius: 999px; overflow: hidden; }
.si-crew-t button { font: 800 12px var(--ui, 'Inter', sans-serif); letter-spacing: .08em; padding: 8px 16px; border: 0; background: transparent; color: #9aa4b2; cursor: pointer; }
.si-crew-t button.on { background: linear-gradient(135deg, #2b7fff, #3fb6ff); color: #fff; }
.si-crew-t button:disabled { opacity: .45; cursor: default; }
.si-crew em { font-style: normal; font-size: 12.5px; color: #8e9ab0; }
.si-com:not(.si-right) b { color: #fff; }
.si-com.si-right b { color: #2ee66b; }
.si-should { margin-top: 8px; font-size: 13px; color: #ffb300; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.si-should-b { font: 800 11px var(--ui, 'Inter', sans-serif); letter-spacing: .06em; padding: 5px 10px; border-radius: 8px; border: 1px solid rgba(255,179,0,.55); background: rgba(255,179,0,.1); color: #ffd23f; cursor: pointer; }
.si-lf.now { border-color: rgba(46,230,107,.75) !important; background: rgba(46,230,107,.12) !important; box-shadow: 0 0 0 1px rgba(46,230,107,.35) inset; }
.si-lf.now span { color: #2ee66b !important; }
.si-lf.tuned:not(.now) { border-color: rgba(63,182,255,.7) !important; }

/* b561: the flight score card, as in the Fenix V3 film */
.fsc-modal { position: fixed; inset: 0; z-index: 3100; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(3, 6, 12, 0.72);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fsc-in .3s ease; }
.fsc-modal.out { opacity: 0; transition: opacity .25s ease; }
@keyframes fsc-in { from { opacity: 0; } }
.fsc-card { width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 16px 20px 20px; border-radius: 22px; font-family: 'Inter', sans-serif; text-align: center;
  background: linear-gradient(135deg, #122036, #0c1320 55%, #0a0f18); border: 1px solid rgba(63, 182, 255, .4); box-shadow: 0 30px 90px rgba(0, 0, 0, .6); animation: fsc-pop .38s cubic-bezier(.2,.9,.3,1.2); }
@keyframes fsc-pop { from { transform: scale(.92); opacity: 0; } }
.fsc-hd { display: flex; align-items: center; gap: 9px; text-align: left; }
.fsc-hd img { width: 30px; height: 30px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px rgba(63,182,255,.35); }   /* b562: round, no sharp corners */
.fsc-hdt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fsc-hd b { font-size: 12px; font-weight: 800; letter-spacing: .1em; color: #3fb6ff; white-space: nowrap; }
.fsc-hd span { font-size: 12px; font-weight: 700; color: #c9d3e0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* b564 (John): the screen-grab button the rest of the app has (the last flight card's) */
.fsc-snap { flex: none; width: 40px; height: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  border-radius: 9px; border: 1px solid rgba(130,170,220,.22); background: rgba(255,255,255,.03); color: #9aa4b2; transition: color .14s, border-color .14s; touch-action: manipulation; }
.fsc-snap svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.fsc-snap:hover { color: #e8ecf3; border-color: rgba(130,170,220,.45); }
.fsc-snap:disabled { opacity: .5; }
.fsc-t { text-wrap: balance; }
@media (max-width: 420px) {   /* b562: the narrowest phones: every line on one line */
  .fsc-card { padding: 14px 14px 16px; }
  .fsc-card .fsc-r { gap: 8px; padding: 9px 10px; grid-template-columns: minmax(0, 1fr) auto 100px; }
  .fsc-card .fsc-r span { font-size: 12.5px; white-space: normal; overflow: visible; line-height: 1.2; } .fsc-card .fsc-r b { font-size: 13.5px; } .fsc-card .fsc-r em { font-size: 10px; letter-spacing: 0; min-width: 0; }
}
/* b562: a perfect 10 in gold, the edge too, and the stardust */
.fsc-card { position: relative; }
.fsc-card.gold { border-color: rgba(255, 211, 92, .55); transition: border-color .5s ease; }   /* b563: subtle, no halo */
.fsc-dust { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.fsc-dust { overflow: hidden; border-radius: inherit; }
.fsc-dust i { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle, #fff3c4 0%, #ffd35c 60%, rgba(255, 211, 92, .35) 100%); will-change: transform, opacity;   /* b565: no per-speck shadow (the cost of a dropped frame) */
  opacity: 0; animation: fsc-dust var(--t) linear var(--d) forwards; }
/* b563 (John): fairy dust, falling over the whole card, twinkling, then gone */
@keyframes fsc-dust { 0% { opacity: 0; transform: translate(0, 0); } 10% { opacity: 1; } 40% { opacity: .55; } 55% { opacity: 1; } 80% { opacity: .8; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)); } }
.fsc-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #2a3345; background: rgba(255,255,255,.03); color: #9aa4b2; display: grid; place-items: center; cursor: pointer; padding: 0; }
.fsc-ic:hover { color: #fff; border-color: rgba(63,182,255,.6); }
.fsc-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fsc-g { position: relative; width: min(330px, 86%); margin: 10px auto 0; }
.fsc-g svg { display: block; width: 100%; height: auto; overflow: visible; }
.fsc-bg, .fsc-arc { fill: none; stroke-width: 14; stroke-linecap: round; }
.fsc-bg { stroke: rgba(63, 182, 255, .16); }
.fsc-arc { stroke: var(--fsc); stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.fsc-n { position: absolute; left: 0; right: 0; bottom: 4%; display: flex; justify-content: center; align-items: baseline; gap: 8px; color: var(--fsc); font-variant-numeric: tabular-nums; }
.fsc-n span { font-size: clamp(64px, 19vw, 86px); font-weight: 900; line-height: 1; letter-spacing: -.025em; transition: color .4s ease; }   /* b563: bigger, less space under the arc */
.fsc-n small { font-size: clamp(22px, 6vw, 28px); font-weight: 800; opacity: .6; }
.fsc-arc { transition: stroke .4s ease; }
.fsc-t { margin: 8px 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--fsc); }
.fsc-r { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(70px, auto); gap: 12px; align-items: center; margin-top: 7px; padding: 10px 14px; border-radius: 11px; background: rgba(63, 182, 255, .08); text-align: left; opacity: 0; }
.fsc-r span { font-size: 14.5px; font-weight: 600; color: rgba(205, 228, 250, .85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fsc-r b { font-size: 15.5px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fsc-r em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-align: right; white-space: nowrap; }
.fsc-m { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 16px; border-radius: 13px; background: rgba(46, 230, 107, .1); border: 1px solid rgba(46, 230, 107, .35); opacity: 0; }
.fsc-m span { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; color: rgba(205, 228, 250, .75); text-align: left; }
.fsc-m b { font-size: clamp(24px, 7vw, 30px); font-weight: 900; color: #2ee66b; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fsc-m b i { font-style: normal; }
.fsc-m.neg { background: rgba(255, 77, 77, .1); border-color: rgba(255, 77, 77, .35); }
.fsc-m.neg b { color: #ff4d4d; }

/* b558: the live loading counter, bottom left (above the phone's tab bar) */
.fd-load { position: fixed; left: 92px; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); z-index: 2990; cursor: pointer;   /* clear of MY VA's left rail */
  padding: 10px 16px 12px; border-radius: 14px; border: 1px solid rgba(61,139,255,.6); background: linear-gradient(135deg, rgba(18,32,54,.96), rgba(10,15,24,.96));
  box-shadow: 0 14px 34px rgba(0,0,0,.5); font-family: 'Inter', sans-serif; transform-origin: 0 100%;
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .35s ease, transform .4s cubic-bezier(.34,1.3,.5,1); }
.fd-load.show { opacity: 1; transform: none; pointer-events: auto; }
.fd-load.fold { opacity: 0; transform: scaleY(0); transition: opacity .8s ease .2s, transform .9s cubic-bezier(.5,0,.75,0); }
.fd-load.done { border-color: rgba(46,230,107,.6); }
.fd-load-hd { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.fd-load-hd img { width: 20px; height: 20px; border-radius: 50%; }
.fd-load-hd span { color: #3d8bff; }
.fd-load-hd span.ok { color: #2ee66b; }
.fd-load-hd em { font-style: normal; color: #c9d3e0; margin-left: 4px; }
.fd-load-r { display: flex; gap: 22px; margin-top: 7px; }
.fd-load-c { min-width: 82px; }
.fd-load-c small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .06em; color: #8e9ab0; }
.fd-load-c b { display: flex; align-items: center; gap: 6px; font-size: 19px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fd-load-c.done b { color: #2ee66b; }
.fd-load-c b i { font-style: normal; font-size: 15px; }
.fd-load-c em { display: block; font-style: normal; font-size: 11px; color: #7d8798; white-space: nowrap; }
@media (max-width: 760px) {
  .fd-load { left: 10px; right: 10px; bottom: calc(env(safe-area-inset-bottom, 0px) + 76px); padding: 9px 12px 10px; }
  .fd-load-r { gap: 10px; justify-content: space-between; }
  .fd-load-c { min-width: 0; }
  .fd-load-c b { font-size: 16px; }
}

/* the notice at the foot of the screen */
.fd-toast { position: fixed; left: 50%; bottom: 30px; z-index: 220; transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  max-width: min(92vw, 640px); padding: 12px 22px; border-radius: 12px; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 16px; letter-spacing: 1.5px; text-align: center;
  color: #fff; background: #0b1a33; border: 1px solid rgba(130,200,255,.5); box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 0 1px rgba(110,195,255,.2);
  transition: opacity .25s ease, transform .3s cubic-bezier(.32,.72,0,1); }
.fd-toast.show { opacity: 1; transform: translate(-50%, 0); }
.fd-toast.bad { border-color: rgba(255,77,77,.6); color: #ffb0b0; }

/* a phone or a small tablet: one column, cards wrap, tables scroll sideways */
@media (max-width: 760px) {
  #view-community { padding: 1.5vh 3vw; }
  .cm-grid { grid-template-columns: 1fr; }
  .cm-strip { padding: 14px 16px; gap: 8px 14px; }
  .cm-status { margin-left: 0; width: 100%; font-size: 15px; }
  .cm-metrics { grid-template-columns: repeat(2, 1fr); }
  .cm-fig b { font-size: 28px; }
  .cm-metric b { font-size: 26px; }
  .cm-policy { align-self: center; }
  .cm-detail-head .cm-policy { width: 100%; text-align: center; }
  .cm-form { grid-template-columns: 1fr; }
  .cm-action { flex-direction: column; align-items: stretch; text-align: center; }
  .cm-action .cm-btn { width: 100%; }
}

/* ===================================================================
   b284: THE BOARD ON A PHONE
   Everything below sits inside a phone or touch media query, so a desktop
   screen is drawn exactly as before. The LAYERS button exists on every
   screen but only shows at 640px and under.
   =================================================================== */
.layers-btn { display: none; }

/* the iPhone notch, status bar and home bar (with viewport-fit=cover the page runs under
   them; on a screen without them every inset is 0 and nothing moves). Margins rather than
   new sizes, so every existing height and top stays as it is. b342: on every screen, not only
   touch ones (an iPad with a trackpad reports a mouse, and its header went under the status bar). */
:root { --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); }
@media all {
  #topbar { box-sizing: content-box; padding-top: env(safe-area-inset-top, 0px);
    margin-left: env(safe-area-inset-left, 0px); margin-right: env(safe-area-inset-right, 0px); }
  #tabs, #views, .noflight, .acct-rail { margin-top: env(safe-area-inset-top, 0px); }
  #tabs, #views, .noflight { margin-left: env(safe-area-inset-left, 0px); margin-right: env(safe-area-inset-right, 0px); }
  /* every view but the map stops above the home bar; the map runs under it, its read-out padded */
  #views > .view:not(#view-map) { bottom: env(safe-area-inset-bottom, 0px); }
  .map-hud { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .fd-toast { bottom: calc(30px + env(safe-area-inset-bottom, 0px)); }
  .fc-prompt { bottom: calc(26px + env(safe-area-inset-bottom, 0px)); }
  .modal { padding-top: calc(3vh + env(safe-area-inset-top, 0px)); padding-bottom: calc(3vh + env(safe-area-inset-bottom, 0px)); }
  .cm-pop { padding-top: calc(16px + env(safe-area-inset-top, 0px)); padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}

/* a touch screen has no hover: a tapped tab or switch does not stay lit as if pointed at */
@media (hover: none) and (pointer: coarse) {
  .tab:hover:not(.active) { color: var(--text-dim); }
  .map-btn:hover:not(.on), .map-btn:focus:not(.on) { color: #7d8798; border-color: rgba(130, 200, 255, 0.3); }
  button, .tab, .map-btn, .log-tab, .src, [role="button"], a { -webkit-tap-highlight-color: transparent; }
}

@media (max-width: 640px) {
  button, .tab, [role="button"], a { -webkit-tap-highlight-color: transparent; }
  /* iOS zooms into any field under 16px when it is focused */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: 16px !important; }

  /* the top bar's buttons and the status dot, big enough for a thumb */
  #fs-btn, #mus-btn, #font-btn, #cam-btn { min-height: 40px; min-width: 40px; }
  .top-right { gap: 14px; }
  #conn-dot { position: relative; }
  #conn-dot::after { content: ""; position: absolute; inset: -13px; }

  /* ---- the tab strip: one smooth sideways strip ---- */
  #tabs { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
    scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x; scroll-padding-inline: 10px; }
  #tabs::-webkit-scrollbar { display: none; }
  /* the track behind the pill cannot scroll with the strip, so a phone goes without it; the pill follows the tab */
  #tabs::before { display: none; }
  /* every tab the same width (b298): the pill is the same size on MAP as on COMMUNITY, and the
     strip scrolls sideways to the ones off the edge */
  .tab { flex: 0 0 auto; width: 112px; padding: 0 6px; min-height: 44px; scroll-snap-align: center; touch-action: manipulation;
    font-size: 12px; letter-spacing: 0.7px; white-space: nowrap; }

  /* ---- the map's switches: one LAYERS button, a tidy panel under it ---- */
  #layers-btn { display: flex; align-items: center; justify-content: center; top: 10px; left: auto;
    right: calc(10px + env(safe-area-inset-right, 0px)); min-height: 44px; padding: 0 18px; font-size: 15px; letter-spacing: 2px; z-index: 9; }
  #map-ctrls { display: none; position: absolute; z-index: 9; top: 62px; right: calc(10px + env(safe-area-inset-right, 0px));
    width: min(280px, calc(100% - 20px)); max-height: calc(100vh - 230px); max-height: calc(100dvh - 230px); overflow-y: auto; overscroll-behavior: contain;
    flex-direction: column; gap: 8px; padding: 10px; box-sizing: border-box;
    background: rgba(3, 5, 10, 0.94); border: 1px solid #2a3345; border-radius: 12px; box-shadow: 0 10px 34px rgba(0, 0, 0, 0.6); }
  #view-map.layers-open #map-ctrls { display: flex; }
  #map-ctrls .map-btn { position: static; width: 100%; min-height: 44px; margin: 0; font-size: 14px; letter-spacing: 0.8px;
    padding: 0 14px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; flex: 0 0 auto; }
  #map-ctrls .tfc-wrap { display: block; position: relative; top: auto; right: auto; left: auto; bottom: auto; padding: 0 !important; overflow: visible; flex: 0 0 auto; }
  #map-ctrls .tfc-wrap > button { min-height: 44px; padding: 0 14px; overflow: hidden; text-overflow: ellipsis; }
  #map-ctrls .tfc-menu { position: static; min-width: 0; margin: 0; border: none; border-top: 1px solid #1e2634;
    border-radius: 0 0 10px 10px; box-shadow: none; }
  #map-ctrls .tfc-opt { min-height: 44px; }
  /* the tapped aircraft's strip: the full width, under the LAYERS button */
  .tfc-info { top: 62px; left: calc(10px + env(safe-area-inset-left, 0px)); right: calc(10px + env(safe-area-inset-right, 0px));
    width: auto; max-height: calc(100% - 170px); }

  /* ---- the departures board: the five columns that matter ---- */
  .board-cols, .board-row { grid-template-columns: 2rem 3.6rem minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px; }
  /* on a phone: logo, time, city, flight, aircraft (short), status; the pilot and the gate step aside (b295) */
  .board-cols > span:nth-child(4), .board-cols > span:nth-child(7),
  .board-row > span:nth-child(4), .board-row > span:nth-child(7),
  .board-panel.nopilot .board-cols > span:nth-child(4), .board-panel.nopilot .board-row > span:nth-child(4) { display: none; }
  .board-cols > span:nth-child(6), .board-row > span:nth-child(6) { display: block; }
  .board-head { flex-wrap: wrap; row-gap: 6px; min-width: 0; }
  .src-bar { flex-wrap: wrap; gap: 8px; }
  .src { min-height: 36px; }
  .src-note { margin-left: 0; flex-basis: 100%; }

  /* ---- flight data: the bars wrap rather than run off the side ---- */
  .tod-bar { flex-wrap: wrap; gap: 4px 12px; }
  .wx-value { text-align: left; min-width: 0; }

  /* ---- the log list: rating left, two short lines beside it ---- */
  #view-log { padding: 1.5vh 3vw; }
  .log-panel { padding: 14px 10px; }
  .log-panel > .board-head { align-items: center; }
  .log-head-right { flex-wrap: wrap; gap: 6px; min-width: 0; }
  .log-tab { min-height: 36px; padding: 4px 12px; }
  #view-log .log-row { grid-template-columns: 3.6em minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px; }
  #view-log .log-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #view-log .lg-rating { grid-row: span 2; align-self: center; }
  #view-log .lg-route, #view-log .lg-ldg { text-align: right; }
  #view-log .log-detail { padding: 4px 10px 14px; }
  #view-log .db-chip { min-width: 0; }
  .modal { padding-left: 8px; padding-right: 8px; }
  .modal-card { padding: 22px 14px 24px; }

  /* ---- nothing wider than the screen ---- */
  .td-card { min-width: 0; width: calc(100% - 24px); max-width: 340px; padding: 22px 18px; }
  .cm-pop-card { max-height: 86vh; max-height: 86dvh; }
  #view-log .log-detail svg, .modal-card .rp-wrap svg { max-width: 100%; }
}

/* b284: the flight summary on a phone. A label keeps its width and a long figure
   drops whole onto the line below rather than printing over it; the log row's
   route and landing wrap instead of being cut off */
@media (max-width: 640px) {
  .rp-mini > div { flex-wrap: wrap; column-gap: 12px; row-gap: 2px; }
  .rp-h { flex-wrap: wrap; row-gap: 2px; }
  .rp-h > b:first-child { white-space: nowrap; }
  .rp-mini > div > :first-child { flex: 0 0 auto; white-space: nowrap; }
  .rp-mini > div > :last-child { margin-left: auto; max-width: 100%; white-space: normal; text-align: right; }
  #view-log .log-row .lg-route { overflow: visible; text-overflow: clip; text-align: right; }
  #view-log .log-row .lg-when, #view-log .log-row .lg-cs { font-size: 12.5px; letter-spacing: 0.4px; }
  #view-log .log-row .lg-ldg { white-space: normal; overflow: visible; text-overflow: clip; word-break: normal; text-align: right; }
}

/* b289: the OVERVIEW on a phone. The board is built for a wide screen: the clocks
   and the city pair are pinned top right over the callsign, every line refuses to
   wrap, and the panel spreads its rows down a fixed height with the overflow
   hidden. Under 640px the clocks drop into the stack under the callsign, long
   lines wrap, the figures wrap item by item, the progress line names only the
   stage the flight is at, and the view scrolls if a phone is short on height. */
@media (max-width: 640px) {
  #view-overview { padding: 10px 12px; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
  #view-overview .led-panel { flex: 1 0 auto; justify-content: flex-start; gap: 14px; padding: 16px 14px 12px; border-radius: 16px; overflow: visible; min-width: 0; }
  #view-overview .led-panel > * { min-width: 0; max-width: 100%; }

  /* 1. airline badge beside the callsign, route and aircraft */
  #view-overview .led-head { order: 1; gap: 12px; align-items: center; }
  #view-overview .led-logo { width: 68px; height: 68px; }
  #view-overview .led-logo img { border-radius: 12px; }
  #view-overview .led-logo span { font-size: 15px; overflow-wrap: anywhere; }
  #view-overview .led-headlines { flex: 1 1 auto; }
  #view-overview .led-callsign { font-size: 30px; }
  #view-overview .led-route { font-size: 25px; }
  #view-overview .led-type { font-size: 18px; }

  /* 2. the clocks and the city pair: in the stack, not on top of it */
  #view-overview .led-clock { order: 2; position: static; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 18px;
    text-align: left; padding: 8px 0 0; border-top: 1px solid #1a2130; }
  #view-overview .lc-row { font-size: 22px; line-height: 1.2; }
  #view-overview .lc-label { font-size: 11px; letter-spacing: 1.5px; margin-right: 6px; }
  #view-overview .lc-cities { flex: 1 1 100%; font-size: 15px !important; line-height: 1.25; margin-top: 2px; white-space: normal; overflow-wrap: anywhere; }

  /* 3. phase, where the aircraft is (its buttons on their own line) and the weather */
  #view-overview .led-body { order: 3; margin: 0; }
  #view-overview .led-phase { font-size: 28px; }
  #view-overview .led-over-row { flex-wrap: wrap; gap: 8px; margin-top: 2px; }
  #view-overview .led-over { flex: 1 1 100%; font-size: 17px; white-space: normal; line-height: 1.2; }
  #view-overview .gate-edit { min-height: 36px; font-size: 14px; }
  #view-overview .ov-simbrief { margin-left: 0; padding: 6px 14px; }
  #view-overview .led-wx { font-size: 14px; white-space: normal; line-height: 1.3; letter-spacing: 1px; margin-top: 6px; }

  /* 4. departure line and the rest of the duty: they wrap */
  #view-overview .led-dep { order: 4; flex-wrap: wrap; gap: 6px 12px; font-size: 17px; margin: 0; white-space: normal; letter-spacing: 1px; }
  #view-overview .led-dep > span { white-space: nowrap; max-width: 100%; }
  #view-overview #ov-dep-time { white-space: normal; }
  #view-overview .led-chip { font-size: 12px; letter-spacing: 2px; border-width: 1.5px; }
  #view-overview .led-duty { order: 5; font-size: 13px; letter-spacing: 1px; white-space: normal; gap: 4px 12px; margin: 0; }

  /* 5. the figures: each one whole, wrapping onto the next line, no dots left hanging */
  #view-overview .led-stats { order: 6; font-size: 15px; letter-spacing: 1px; white-space: normal; overflow: visible; gap: 6px 14px; }
  #view-overview .led-stats > span { flex-wrap: wrap; gap: 4px 14px; max-width: 100%; }
  #view-overview .led-stats > span > span { white-space: nowrap; }
  #view-overview .led-stats .led-sep { display: none; }
  #view-overview .led-load { flex: 1 1 100%; margin-left: 0; gap: 10px; align-items: center; }
  #view-overview .load-bar { flex: 1 1 auto; width: auto; max-width: 220px; }
  #view-overview .load-label { font-size: 11px; }

  /* 6. the progress line: every stop, and the name of the one the flight is at */
  #view-overview .led-progress { order: 7; height: 62px; margin-top: auto; }
  #view-overview .prog-dot { width: 13px; height: 13px; margin-bottom: 10px; }
  #view-overview .prog-node { top: 27px; }
  #view-overview .prog-label { display: none; font-size: 11px; letter-spacing: 1px; }
  #view-overview .prog-node.now .prog-label { display: block; }
  #view-overview .prog-line-fill + .prog-node { transform: translateX(-6.5px); }
  #view-overview .prog-line-fill + .prog-node .prog-dot { margin-left: 0; }
  #view-overview .prog-node:nth-last-child(2) { transform: translateX(calc(-100% + 6.5px)); }
  #view-overview .prog-node:nth-last-child(2) .prog-dot { margin-right: 0; }
  #view-overview .prog-plane { width: 30px; height: 30px; top: 18px; }

  /* the no-flight cover: the title and its line inside the screen */
  .noflight { padding: 0 16px env(safe-area-inset-bottom, 0px); box-sizing: border-box; }
  .noflight-inner { max-width: 100%; }
  .nf-icon { width: 64px; }
  .nf-title { font-size: 30px; letter-spacing: 5px; margin-top: 12px; line-height: 1.2; }
  .nf-sub { font-size: 14px; }
  #nf-simbrief, #nf-schedule { margin-top: 18px !important; min-height: 40px; }
}

/* b290: DEPARTURES on a phone. Five columns (logo, time, destination, flight,
   status) all readable on a 375px screen: a 13px row, tight padding, no scrollbar
   gutter on a touch screen (it put the titles out of line with the rows), the
   destination wrapping onto a second line, the flight number whole and the status
   breaking at its space (DELAYED / 14:35) rather than being cut to two letters */
@media (max-width: 640px) {
  #view-board { padding: 8px; }
  #view-board .board-panel { padding: 12px 8px; }
  #view-board .board-head { margin-bottom: 8px; }
  #view-board .board-cols, #view-board .board-row,
  #view-board .board-panel.nopilot .board-cols, #view-board .board-panel.nopilot .board-row {
    grid-template-columns: 20px 38px minmax(0, 1.2fr) minmax(0, 0.8fr) 38px minmax(0, 0.95fr);
    gap: 5px;
  }
  #view-board .br-type { font-size: 11.5px; letter-spacing: 0; }
  #view-board .board-cols { font-size: 11px; letter-spacing: 1px; padding: 0 4px 6px; }
  #view-board .board-panel > .board-rows { scrollbar-gutter: auto; scrollbar-width: none; }
  #view-board .board-panel > .board-rows::-webkit-scrollbar { display: none; width: 0; }
  #view-board .board-row { font-size: 13px; line-height: 1.15; min-height: 36px; padding: 5px 4px; letter-spacing: 0.3px; }
  #view-board .br-logo { width: 20px; height: 20px; border-radius: 4px; }
  #view-board .br-time { font-size: 13px; }
  #view-board .br-city, #view-board .br-status {
    white-space: normal; overflow-wrap: normal; word-break: normal;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  }
  #view-board .br-flight { overflow: visible; text-overflow: clip; letter-spacing: 0; }
  #view-board .br-status { font-size: 12px; letter-spacing: 0.2px; }
}

/* b290: FLIGHT DATA on a phone. The panel had a fixed height with its overflow
   hidden, so the weather and the bars under the tiles were cut off. Under 640px
   the view scrolls to its end and the panel grows with what is in it; the spacer
   at the end clears the home bar and the post-flight prompt pinned at the bottom */
@media (max-width: 640px) {
  #view-data { padding: 10px 12px 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
  #view-data .led-panel { flex: 1 0 auto; min-height: auto; overflow: visible; min-width: 0; }
  #view-data .led-panel > * { min-width: 0; max-width: 100%; }
  #view-data::after { content: ""; display: block; flex: 0 0 calc(24px + env(safe-area-inset-bottom, 0px)); height: calc(24px + env(safe-area-inset-bottom, 0px)); }
}

/* b291: MY VA on a phone. The view ran only to the top of the home bar (every view
   but the map stops there), which left a strip of empty board under the airline's
   own tab bar. Here the view runs to the very foot of the screen and the frame's bar
   pads itself for the home bar (the board hands it the height, see tellVaInset).
   The frame is held to the screen's width: iOS widens a frame to fit anything wider
   inside it, which let the whole airline slide sideways. */
@media (max-width: 640px) {
  #views > .view#view-va { bottom: 0; overflow: hidden; }
  #view-va #va-frame { width: 1px; min-width: 100%; max-width: 100%; height: 100%; }
}

/* ---------- REAL WORLD on the map (b295) ---------- */
/* the sources named under the map-look switch while real-world traffic is on */
.tfc-attrib {
  position: absolute;
  top: 62px;
  left: 14px;
  z-index: 5;
  max-width: min(420px, calc(100% - 28px));
  padding: 5px 10px;
  background: rgba(3, 4, 5, 0.78);
  border: 1px solid #202634;
  border-radius: 8px;
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #8b95a5;
  pointer-events: none;
}
.tfc-attrib b { display: block; font-weight: 700; color: var(--amber); }
.tfc-attrib b:empty { display: none; }
@media (max-width: 640px) {
  .tfc-attrib { top: 10px; left: calc(10px + env(safe-area-inset-left, 0px)); max-width: calc(100% - 150px); font-size: 11px; }
}

/* ---------- REAL WORLD board: any airport, departures or arrivals (b295) ---------- */
.board-head { position: relative; }
.board-where.pick #board-airport {
  cursor: pointer;
  border-bottom: 1px dashed #3a4558;
}
.board-where.pick #board-airport::after { content: ' \25BE'; color: #6fc3ff; }
.board-where.pick #board-airport:hover,
.board-where.pick #board-airport:focus { color: var(--amber); border-bottom-color: var(--amber); outline: none; }
.rb-mode {
  display: inline-flex;
  align-self: center;
  border: 1px solid #263049;
  border-radius: 999px;
  overflow: hidden;
}
.rb-mode button {
  font-family: var(--ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.1px;
  padding: 4px 12px;
  background: transparent;
  color: #59637a;
  border: 0;
  cursor: pointer;
}
.rb-mode button + button { border-left: 1px solid #263049; }
.rb-mode button:hover { color: var(--amber); }
.rb-mode button.on { color: #6fc3ff; background: rgba(111, 195, 255, 0.1); }
.rb-reset {
  align-self: center;
  font-family: var(--ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  background: transparent;
  color: #7d8798;
  border: 1px solid #263049;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.rb-reset:hover { color: var(--amber); border-color: var(--amber); }
.rb-search {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 30;
  width: min(420px, 100%);
  padding: 10px;
  background: rgba(6, 9, 14, 0.98);
  border: 1px solid var(--panel-edge);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}
.rb-search input {
  width: 100%;
  font-family: var(--ui);
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: 1.1px;
  padding: 8px 10px;
  background: #0b0f16;
  color: var(--text);
  border: 1px solid #2a3345;
  border-radius: 8px;
  outline: none;
  text-transform: uppercase;
}
.rb-search input:focus { border-color: #6fc3ff; }
.rb-list { max-height: 50vh; overflow-y: auto; margin-top: 6px; }
.rb-item {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  column-gap: 8px;
  width: 100%;
  text-align: left;
  padding: 7px 8px;
  background: none;
  border: 0;
  border-bottom: 1px solid #141a25;
  color: #c9d0da;
  font-family: var(--ui);
  font-size: 14px;
  letter-spacing: 0.6px;
  cursor: pointer;
}
.rb-item:last-child { border-bottom: 0; }
.rb-item:hover, .rb-item:focus { background: #131a26; outline: none; }
.rb-item b { color: var(--amber); letter-spacing: 2px; }
.rb-item small { color: #6fc3ff; font-size: 12px; }
.rb-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rb-item em { grid-column: 1 / -1; font-style: normal; font-size: 12px; color: #59637a; }
.rb-hint { padding: 8px; font-family: var(--ui); font-size: 13px; letter-spacing: 0.6px; color: #59637a; }
@media (max-width: 640px) {
  .rb-mode button { min-height: 32px; padding: 4px 10px; font-size: 11px; }
  .rb-reset { min-height: 32px; }
  .rb-search { left: 0; right: 0; width: auto; }
}

/* ===================================================================
   b314: THE MAP ON A PHONE, CLEARER
   Phone width only; a wider screen is drawn exactly as before.
   =================================================================== */
@media (max-width: 640px) {
  /* LAYERS says it opens: an arrow that turns when it is open */
  #layers-btn::after { content: "\25BE"; margin-left: 10px; font-size: 14px; letter-spacing: 0; transition: transform .2s; }
  #view-map.layers-open #layers-btn::after { transform: rotate(180deg); }
  /* the traffic choices are in plain view while LAYERS is open: a heading, then each source
     with a round tick beside the one that is on, so nobody has to guess there is a list */
  #map-ctrls .tfc-wrap { border-color: #2a3345; }
  #map-ctrls .tfc-wrap > #tfc-btn { pointer-events: none; min-height: 0; padding: 10px 14px 6px; font-size: 0; letter-spacing: 2.4px; color: #8b95a5; }
  #map-ctrls .tfc-wrap > #tfc-btn::before { content: "TRAFFIC SOURCE \25BE"; font-size: 12px; color: #8b95a5; }
  #view-map.layers-open #map-ctrls .tfc-menu.hidden { display: block !important; }
  #map-ctrls .tfc-opt { display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; align-items: center; min-height: 48px; padding: 8px 14px; color: #c7d0dc; }
  #map-ctrls .tfc-opt::before { content: ""; grid-row: 1 / span 2; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #4a5468; box-sizing: border-box; }
  #map-ctrls .tfc-opt.on { color: var(--amber); }
  #map-ctrls .tfc-opt.on::before { border-color: var(--amber); background: radial-gradient(circle, var(--amber) 0 4px, transparent 4.5px); }
  #map-ctrls .tfc-opt em { grid-column: 2; margin-top: 0; }

  /* a tapped aircraft: a short panel at the foot of the map, above the read-out, so the
     aircraft and its path stay in view above it (the map moves the aircraft clear) */
  .tfc-info { top: auto; bottom: calc(var(--hud-h, 64px) + 8px); max-height: min(40%, 320px); padding: 12px 14px 12px; z-index: 8;
    /* nearly solid, blurred: a fully solid panel over the map made Chrome leave a dark box where it had been */
    background: rgba(4, 7, 13, 0.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .tfc-info .ti-photo img { height: 96px; }
  #view-map.tfc-si .tfc-info { top: auto; }
  /* the map's credits sit above the read-out, never on top of it */
  #view-map .maplibregl-ctrl-bottom-right, #view-map .maplibregl-ctrl-bottom-left { bottom: var(--hud-h, 64px); }
  /* the real-world sources: one short line beside LAYERS */
  .tfc-attrib { padding: 4px 8px; font-size: 10.5px; line-height: 1.3; }
}

/* =====================================================================
   b340: the phone app. One thing on the screen at a time, the way an
   iPhone app works: the log is a plain list, a flight opens as its own
   page over it with a back arrow, and a report opens as the next page
   over that, rather than each one inside a frame inside the last. The
   top bar and the tabs are smaller, a tap leaves no outline behind, and
   nothing is wider than the screen. Phones only: the desktop is as it was.
   ===================================================================== */
@media (max-width: 640px) {
  :root { --m-top: 98px; }
  button:focus:not(:focus-visible), [role="button"]:focus:not(:focus-visible), a:focus:not(:focus-visible), .tab:focus { outline: none; }

  /* the top bar and the tab strip, a size down */
  #topbar { height: 52px; padding-left: 14px; padding-right: 14px; }
  .brand { font-size: 19px; letter-spacing: 3px; gap: 10px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
  #fs-btn { min-height: 36px; min-width: 36px; font-size: 17px; padding: 2px 8px; }
  #tabs { top: 52px; height: 46px; padding: 4px 8px; }
  .tab { min-height: 38px; width: 100px; font-size: 11.5px; letter-spacing: 0.8px; }
  .tab-pill { top: 4px; height: 38px; }
  main#views, #views, .noflight { top: var(--m-top); }
  .acct-rail { top: var(--m-top); }

  /* ---- the log: a plain list on the page, no frame round it ---- */
  #view-log { padding: 0; }
  #view-log .led-panel.log-panel { background: none !important; border: none !important; border-radius: 0; box-shadow: none !important;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important; padding: 10px 12px 0; overflow: visible; }
  .log-panel > .board-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 10px; padding: 0 2px; }
  #log-title { font-size: 19px; letter-spacing: 2px; }
  /* FLIGHTS, AWARDS, SCORING as one segmented control across the screen */
  .log-head-right { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; order: 3; gap: 0; padding: 3px;
    border-radius: 11px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(130, 200, 255, .14); }
  .log-head-right .log-tab { min-height: 34px; margin: 0; padding: 0 4px; border: none; border-radius: 8px; background: transparent;
    font-size: 11px; letter-spacing: 0.9px; color: var(--text-dim); box-shadow: none; }
  .log-head-right .log-tab.active { background: linear-gradient(180deg, #4aa6ff, #2b7fff); color: #fff; box-shadow: 0 2px 8px rgba(43, 127, 255, .35); }
  #log-count { position: absolute; top: 12px; right: 14px; font-size: 12px; letter-spacing: 1.5px; color: var(--text-dim); }
  .log-panel > .log-rows, .log-panel > .log-awards, .log-panel > .log-rules { margin: 0 -12px; padding: 0 12px 28px; }
  #view-log .log-entry { margin-bottom: 8px; border-radius: 14px; }
  /* the year and the month over the list: plain headings */
  .log-year-head { font-size: 15.5px; letter-spacing: 1.1px; padding: 10px 2px; }
  .log-month-head { font-size: 13px; letter-spacing: 0.8px; padding: 8px 2px 8px 14px; }
  .lm-count { letter-spacing: .5px; }
  .lm-avg { color: var(--text); font-weight: 700; letter-spacing: .5px; }

  /* ---- a flight: its own page over the list ---- */
  @keyframes m-push { from { transform: translateX(28%); opacity: 0; } to { transform: none; opacity: 1; } }
  #view-log .log-entry.open { position: fixed; left: 0; right: 0; top: calc(var(--m-top) + var(--sat)); bottom: 0; z-index: 60; margin: 0;
    border: none !important; border-radius: 0; background: #050b16 !important; box-shadow: none !important;
    overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    padding-bottom: env(safe-area-inset-bottom, 0px); animation: m-push .24s cubic-bezier(.2, .8, .2, 1); }
  #view-log .log-entry.open > .log-row { position: sticky; top: 0; z-index: 5; border-radius: 0; padding: 10px 14px 10px 46px;
    background: #060d1a !important; border-bottom: 1px solid rgba(130, 200, 255, .16); }
  #view-log .log-entry.open > .log-row::before { content: "\2039"; position: absolute; left: 14px; top: 50%; transform: translateY(-54%);
    font-size: 40px; line-height: 1; color: #3fb6ff; font-family: -apple-system, system-ui, sans-serif; }
  #view-log .log-entry.open > .log-detail { padding: 12px 12px 30px; }

  /* ---- a report: the next page over the flight ---- */
  .rp-panel[data-open]:not([data-open=""]) { position: fixed; left: 0; right: 0; top: calc(var(--m-top) + var(--sat)); bottom: 0; z-index: 70; margin: 0 !important;
    border: none !important; border-radius: 0 !important; background: #050b16 !important; box-shadow: none !important;
    overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    padding: 0 12px calc(30px + env(safe-area-inset-bottom, 0px)) !important; animation: m-push .24s cubic-bezier(.2, .8, .2, 1); }
  .rp-mbar { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 10px; height: 50px; margin: 0 -12px 12px; padding: 0 14px 0 6px;
    background: #060d1a; border-bottom: 1px solid rgba(130, 200, 255, .16); }
  .rp-back { display: flex; align-items: center; gap: 2px; height: 44px; padding: 0 8px 0 4px; background: none; border: none; color: #3fb6ff;
    font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: .5px; white-space: nowrap; cursor: pointer; }
  .rp-back::before { content: "\2039"; font-size: 40px; line-height: 1; margin: -6px 4px 0 0; font-family: -apple-system, system-ui, sans-serif; }
  .rp-mbar b { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 12.5px; letter-spacing: 2.4px; color: var(--text-dim); }

  /* ---- SCORING: the rule, what is allowed and what it costs, one under the other ---- */
  #log-rules .rules-row { grid-template-columns: minmax(0, 1fr) !important; gap: 2px; padding: 9px 0; }
  #log-rules .rules-row em { text-align: left; }
  #log-rules .rules-intro { font-size: 15px; }
  #view-log .log-rules, #view-log .log-awards { overflow-x: hidden; }
}

/* b341: the open/close marks are a drawn chevron (a "play" triangle shows as an emoji on an iPhone) */
.chv { width:1.3em; height:1.3em; display:inline-block; vertical-align:-.25em; fill:none; stroke:currentColor; stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; }

/* b341: the narrowest phones (an iPhone SE): the departures board's column names set closer, each kept to its own column */
@media (max-width: 380px) {
  .board-cols > span { letter-spacing: .5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
}
@media (max-width: 640px) {
  /* a community tile's line under its title wraps rather than being cut */
  .cm-tile-t span { white-space: normal; }
}

/* =====================================================================
   b343: the flight on a phone or a tablet (body.handheld). The overview is
   one card in the landing page's style; the strip carries the flight on
   every other tab while the aeroplane moves. A desktop never gets the class.
   ===================================================================== */
.m-ov[hidden], .m-strip[hidden] { display: none !important; }
body.handheld #view-overview { padding: 14px 14px calc(24px + var(--sab)); overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain; }
body.handheld #view-overview.active { display: block; }
body.handheld #view-overview > .led-panel { display: none !important; }
body.handheld.on-ov .noflight { display: none !important; }
.m-ov { max-width: 620px; margin: 0 auto; }
.m-card { position: relative; border-radius: 20px; padding: 18px 16px 16px; overflow: hidden;
  background: linear-gradient(160deg, #122036 0%, #0c1320 55%, #0a0f18 100%); border: 1px solid rgba(63, 182, 255, .22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 50px rgba(63, 182, 255, .08); }
.m-top { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.m-logo { width: 48px; height: 48px; border-radius: 12px; flex: 0 0 auto; object-fit: contain; background: #0b1424; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.m-logo.txt { display: grid; place-items: center; font: 700 13.8px var(--ui); letter-spacing: 0.6px; color: var(--text); }
.m-id { flex: 1 1 auto; min-width: 0; }
.m-id b { display: block; font-family: var(--ui); font-weight: 700; font-size: 24px; letter-spacing: 0.8px; line-height: 1; color: #fff; }
.m-id small { display: block; margin-top: 4px; font-size: 13px; letter-spacing: .5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-live { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 1.6px;
  color: #2ee66b; border: 1px solid rgba(46, 230, 107, .4); background: rgba(46, 230, 107, .08); }
.m-live i { width: 7px; height: 7px; border-radius: 50%; background: #2ee66b; box-shadow: 0 0 8px #2ee66b; }
.m-route { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 16px 0 12px; }
.m-route b { display: block; font-family: var(--ui); font-weight: 700; font-size: 27.5px; letter-spacing: 0.6px; line-height: 1; color: #fff; }
.m-route small { display: block; max-width: 110px; margin-top: 4px; font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-route .r { text-align: right; }
.m-route .r small { margin-left: auto; }
.m-line { position: relative; height: 22px; }
.m-line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed rgba(130, 200, 255, .28); }
.m-flown { position: absolute; left: 0; top: calc(50% - 1px); height: 2px; background: #3fb6ff; border-radius: 2px; transition: width .6s ease; }
.m-plane { position: absolute; top: 50%; transform: translate(-50%, -50%) rotate(90deg); width: 20px; height: 20px; color: #fff; transition: left .6s ease;
  filter: drop-shadow(0 0 6px rgba(63, 182, 255, .8)); }
.m-plane svg { width: 100%; height: 100%; fill: currentColor; display: block; }
.m-phase { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.m-phase b { font-family: var(--ui); font-weight: 700; font-size: 24px; letter-spacing: .5px; color: #fff; }
.m-phase span { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; color: #2ee66b; text-transform: uppercase; }
.m-over { margin-top: 4px; font-size: 13px; color: var(--text-dim); }
.m-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.m-stats > div { min-width: 0; padding: 10px 10px 9px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); }
.m-stats small, .m-facts small, .m-score small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 1.4px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-stats b { display: block; margin-top: 3px; font-family: var(--ui); font-weight: 700; font-size: 20px; letter-spacing: .5px; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.m-stats b u, .ms-fig b u { text-decoration: none; font-size: .58em; margin-left: 3px; color: var(--text-dim); letter-spacing: 1px; }
.m-stats em { display: block; font-style: normal; font-size: 11.5px; color: #3fb6ff; margin-top: 1px; white-space: nowrap; }
.m-dots { display: flex; align-items: center; margin-top: 16px; }
.m-dots i { flex: 0 0 9px; height: 9px; border-radius: 50%; border: 2px solid rgba(130, 200, 255, .3); box-sizing: border-box; }
.m-dots i.on { background: #3fb6ff; border-color: #3fb6ff; }
.m-dots i.now { background: #fff; border-color: #3fb6ff; box-shadow: 0 0 0 4px rgba(63, 182, 255, .25); }
.m-dots s { flex: 1 1 auto; height: 2px; background: rgba(130, 200, 255, .2); }
.m-score { margin-top: 14px; padding: 12px; border-radius: 14px; background: rgba(46, 230, 107, .06); border: 1px solid rgba(46, 230, 107, .3); }
.m-score-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.m-score-h b { display: block; margin-top: 2px; font-family: var(--ui); font-size: 20px; font-weight: 700; letter-spacing: 0.6px; color: #2ee66b; }
.m-score-h span { font-family: var(--ui); font-size: 37px; font-weight: 700; color: #2ee66b; line-height: 1; font-variant-numeric: tabular-nums; }
.m-score .m-stats { margin-top: 10px; }
.m-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.m-facts > div { min-width: 0; padding: 11px 12px; border-radius: 14px; background: rgba(12, 19, 32, .8); border: 1px solid rgba(130, 200, 255, .14); }
.m-facts > div.w { grid-column: 1 / -1; }
.m-facts b { display: block; margin-top: 3px; font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.35; }
.m-empty { text-align: center; padding: 34px 20px; }
.m-empty-t { font-family: var(--ui); font-size: 22px; font-weight: 700; letter-spacing: 1.1px; color: #fff; }
.m-empty p { margin: 10px auto 0; max-width: 340px; font-size: 14px; line-height: 1.55; color: var(--text-dim); }

/* the strip: under the tabs on every other tab, while the aeroplane moves */
.m-strip { position: fixed; left: 0; right: 0; z-index: 80; top: calc(128px + var(--sat)); height: 56px; box-sizing: border-box;
  padding: 0 calc(10px + env(safe-area-inset-right, 0px)) 0 calc(12px + env(safe-area-inset-left, 0px));
  background: linear-gradient(180deg, #0f1d33, #0a1424); border-bottom: 1px solid rgba(63, 182, 255, .3);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45); cursor: pointer; -webkit-tap-highlight-color: transparent; }
@media (max-width: 640px) { .m-strip { top: calc(var(--m-top) + var(--sat)); } }
.ms-row { display: flex; align-items: center; gap: 10px; height: 53px; }
.ms-logo { width: 32px; height: 32px; border-radius: 8px; flex: 0 0 auto; object-fit: contain; background: #0b1424; }
.ms-logo.txt { display: grid; place-items: center; font: 700 11px var(--ui); color: var(--text); }
.ms-id { flex: 1 1 auto; min-width: 0; }
.ms-id b { display: block; font-family: var(--ui); font-size: 15.5px; font-weight: 700; letter-spacing: 0.6px; color: #fff; line-height: 1.1; }
.ms-id small { display: flex; align-items: center; gap: 2px; font-size: 11.5px; color: var(--text-dim); white-space: nowrap; overflow: hidden; }
.ms-id small .chv { width: 1.1em; height: 1.1em; color: #3fb6ff; }
.ms-fig { flex: 0 0 auto; text-align: right; }
.ms-fig b { display: block; font-family: var(--ui); font-size: 17.5px; font-weight: 700; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ms-fig small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 1.2px; color: #3fb6ff; white-space: nowrap; }
.ms-x { flex: 0 0 auto; width: 36px; height: 36px; margin-right: -6px; display: grid; place-items: center; background: none; border: none; color: var(--text-dim); cursor: pointer; }
.ms-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.ms-bar { height: 3px; background: rgba(130, 200, 255, .14); }
.ms-bar span { display: block; height: 100%; background: #3fb6ff; transition: width .6s ease; }
/* the views, and the pages over them, start under the strip while it shows */
body.m-strip-on { --strip: 56px; }
body.m-strip-on main#views, body.m-strip-on #views { margin-top: calc(var(--sat) + var(--strip)) !important; }
@media (max-width: 640px) {
  body.m-strip-on #view-log .log-entry.open, body.m-strip-on .rp-panel[data-open]:not([data-open=""]) { top: calc(var(--m-top) + var(--sat) + var(--strip)); }
}

/* b344: Inter is the interface face, with figures that line up in columns.
   The departures board and the overview's LED rows keep the board's own face. */
html, body { font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
#view-board, .led-panel { font-family: var(--cond); }
button, input, select, textarea { font-family: inherit; }
.tab { white-space: nowrap; }
/* the phone flight card in Inter: display figures sit tight, as the landing page sets them */
.m-id b, .m-route b, .m-phase b, .m-empty-t, .m-stats b, .m-score-h b, .m-score-h span, .ms-id b, .ms-fig b { letter-spacing: -.3px; }
.m-stats small, .m-facts small, .m-score small, .ms-fig small { letter-spacing: 1px; }
/* the tab row fits a tablet and a small laptop in one line, in Inter */
@media (min-width: 641px) and (max-width: 1100px) { .tab { font-size: 15px; letter-spacing: 1.2px; padding: 0 10px; } }
@media (min-width: 1101px) and (max-width: 1300px) { .tab { font-size: 18px; letter-spacing: 1.5px; } }
/* b345: the log while it loads, a quiet shimmer in the shape of the rows */
.log-skel-wrap { padding: 6px 0; }
.log-skel { height: 74px; margin: 10px 0; border-radius: 16px; border: 1px solid rgba(130, 200, 255, .1);
  background: linear-gradient(90deg, rgba(255, 255, 255, .025) 0%, rgba(130, 200, 255, .07) 50%, rgba(255, 255, 255, .025) 100%);
  background-size: 200% 100%; animation: log-skel 1.4s ease-in-out infinite; }
@keyframes log-skel { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .log-skel { animation: none; } }
/* b345: a long landing verdict never squeezes the date and callsign beside it; it wraps instead */
@media (max-width: 640px) {
  #view-log .log-row { grid-template-columns: 3.6em minmax(6.6em, 1fr) minmax(0, auto); }
  #view-log .log-row .lg-ldg, #view-log .log-row .lg-route { letter-spacing: .6px; }
  /* the back mark on a flight page is the app's drawn chevron */
  #view-log .log-entry.open > .log-row::before { content: ""; width: 22px; height: 22px; left: 12px; transform: translateY(-50%); background: #3fb6ff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5.5L8.5 12l6.5 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5.5L8.5 12l6.5 6.5'/%3E%3C/svg%3E") center / contain no-repeat; }
}
/* the narrowest phones (an iPhone SE): the row's figures come in a size so the route and the verdict fit whole */
@media (max-width: 380px) {
  #view-log .log-row { grid-template-columns: 3.1em minmax(6.4em, 1fr) minmax(0, auto); gap: 3px 9px; padding-left: 10px; padding-right: 10px; }
  #view-log .log-entry.open > .log-row { padding-left: 40px; padding-right: 10px; }
  #view-log .log-row .lg-route { font-size: 14px; letter-spacing: 0; }
  #view-log .log-row .lg-route .chv { width: 1.05em; height: 1.05em; }
  #view-log .log-row .lg-when, #view-log .log-row .lg-cs { font-size: 11.5px; letter-spacing: 0; }
  #view-log .log-row .lg-ldg { font-size: 10.5px; letter-spacing: .2px; }
  #view-log .log-row .lg-rating { font-size: 14px; }
}
/* b349: the date and time in a log row stay on one line on a wide screen */
@media (min-width: 641px) { #view-log .log-row .lg-when { white-space: nowrap; } }
/* b350: the sim PC's pairing code, while it waits to be linked */
.pair-card { position: fixed; left: 18px; bottom: calc(18px + var(--sab)); z-index: 300; width: 300px; padding: 14px 16px 14px; border-radius: 16px;
  background: linear-gradient(160deg, #13213a 0%, #0c1424 70%); border: 1px solid rgba(63, 182, 255, .4); box-shadow: 0 18px 50px rgba(0, 0, 0, .55); font-family: var(--ui); }
.pair-card[hidden] { display: none; }
.pair-card small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; color: #3fb6ff; }
.pair-card b { display: block; margin: 6px 0 4px; font-size: 34px; font-weight: 700; letter-spacing: 3px; color: #fff; font-variant-numeric: tabular-nums; }
.pair-card span { display: block; font-size: 13px; line-height: 1.45; color: #9aa4b2; }
.pair-x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: none; background: none; color: #7d8798; font-size: 20px; cursor: pointer; border-radius: 8px; }
.pair-x:hover { color: #fff; background: rgba(255, 255, 255, .06); }
/* b352: the map's credits and controls sit above the readout strip along the foot of the map, never under it */
#view-map .maplibregl-ctrl-bottom-right, #view-map .maplibregl-ctrl-bottom-left { bottom: var(--hud-h, 48px); }
/* b352: a tablet held upright has the board's height but not its width, so its lettering follows the width */
@media (orientation: portrait) and (min-width: 641px) {
  .board-row { font-size: clamp(14px, min(2.9vh, 2.1vw), 34px); min-height: clamp(30px, min(6.2vh, 5vw), 62px); }
}
/* b353: an open flight's header on a phone gives room to the back mark, so its figures come in a size as on the narrowest phones */
@media (max-width: 640px) {
  #view-log .log-entry.open > .log-row { grid-template-columns: 3.1em minmax(6.4em, 1fr) minmax(0, auto); gap: 3px 9px; padding-right: 10px; }
  #view-log .log-entry.open > .log-row .lg-route { font-size: 14px; letter-spacing: 0; }
  #view-log .log-entry.open > .log-row .lg-route .chv { width: 1.05em; height: 1.05em; }
  #view-log .log-entry.open > .log-row .lg-when, #view-log .log-entry.open > .log-row .lg-cs { font-size: 11.5px; letter-spacing: 0; }
  #view-log .log-entry.open > .log-row .lg-ldg { font-size: 10.5px; letter-spacing: .2px; }
}

/* =====================================================================
   b364: the overview is the phone's card on every screen. A desktop keeps
   the board's extras inside it (clocks, cities, buttons, the day's legs,
   the loads, the stage names) and draws it larger; the old LED board stays
   in the page, hidden, as the source the card reads from.
   ===================================================================== */
#view-overview.active { display: block; overflow-y: auto; overflow-x: hidden; }
#view-overview > .led-panel { display: none !important; }
body.on-ov .noflight { display: none !important; }
.m-ov:not(.m-desk) .m-d { display: none !important; }
.m-live.off { color: var(--text-dim); background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); }
.m-score.go { cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.m-score.go:hover { border-color: rgba(46, 230, 107, .6); background: rgba(46, 230, 107, .09); }
.m-score.go:focus-visible { outline: 2px solid #2ee66b; outline-offset: 3px; }
.m-go { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-style: normal; font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; color: rgba(46, 230, 107, .85); }
.m-go .chv { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* the desktop's card */
.m-ov.m-desk { max-width: 1180px; }
.m-desk .m-card { padding: clamp(22px, 2.4vw, 38px) clamp(24px, 2.8vw, 44px) clamp(20px, 2.2vw, 32px); border-radius: 26px; }
.m-desk .m-top { gap: 20px; padding-bottom: 22px; }
.m-desk .m-logo { width: clamp(64px, 5.6vw, 92px); height: clamp(64px, 5.6vw, 92px); border-radius: 18px; }
.m-desk .m-logo.txt { font-size: 20px; }
.m-desk .m-id b { font-size: clamp(32px, 3.2vw, 50px); }
.m-desk .m-id small { font-size: clamp(14px, 1.2vw, 18px); margin-top: 8px; }
.m-desk .m-live { font-size: 12px; padding: 7px 13px; }
.m-clock { display: flex; gap: clamp(16px, 2vw, 34px); margin-left: 18px; }
.m-clock > div { text-align: right; }
.m-clock small { display: block; font-size: 11px; font-weight: 600; letter-spacing: 1.4px; color: var(--text-dim); white-space: nowrap; }
.m-clock b { display: block; margin-top: 2px; font-family: var(--ui); font-weight: 700; font-size: clamp(24px, 2.4vw, 38px); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.m-cities { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 12px; font-size: 13px; font-weight: 700; letter-spacing: 2px; color: #ffb300; text-transform: uppercase; }
.m-cities .chv { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.m-desk .m-route { gap: 26px; margin: 18px 0 20px; }
.m-desk .m-route b { font-size: clamp(44px, 5vw, 80px); }
.m-desk .m-route small { max-width: none; font-size: clamp(14px, 1.3vw, 19px); margin-top: 8px; }
.m-desk .m-line { height: 36px; }
.m-desk .m-line::before { border-top-width: 3px; }
.m-desk .m-flown { height: 3px; top: calc(50% - 1.5px); }
.m-desk .m-plane { width: 32px; height: 32px; }
.m-desk .m-phase { gap: 6px 16px; align-items: center; }
.m-desk .m-phase b { font-size: clamp(28px, 2.8vw, 44px); }
.m-desk .m-phase > span { font-size: 14px; }
.m-btns { display: flex; gap: 10px; margin-left: auto; }
.m-btn { padding: 9px 16px; border-radius: 10px; font: 700 12.5px var(--ui); letter-spacing: 1.4px; color: #cfe6ff; cursor: pointer;
  background: rgba(63, 182, 255, .08); border: 1px solid rgba(63, 182, 255, .35); transition: background .15s ease, border-color .15s ease; }
.m-btn:hover { background: rgba(63, 182, 255, .18); border-color: #3fb6ff; }
.m-desk .m-over { margin-top: 8px; font-size: clamp(15px, 1.3vw, 19px); }
.m-duty { margin-top: 10px; padding: 9px 14px; border-radius: 10px; font-size: 14px; line-height: 1.45; color: #cfe6ff; background: rgba(63, 182, 255, .06); border: 1px solid rgba(63, 182, 255, .18); }
.m-desk .m-stats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; margin-top: 22px; }
.m-desk .m-stats > div { padding: 16px 18px 14px; border-radius: 16px; }
.m-desk .m-stats small, .m-desk .m-facts small, .m-desk .m-score small { font-size: 12px; }
.m-desk .m-stats b { font-size: clamp(26px, 2.5vw, 40px); margin-top: 6px; }
.m-desk .m-stats em { font-size: 14px; margin-top: 4px; }
.m-ground { margin-top: 12px !important; }
.m-load { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 10px; }
.m-load span { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.m-load span i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #3fb6ff, #2ee66b); }
.m-desk .m-score { margin-top: 22px; padding: 18px 22px; border-radius: 18px; }
.m-desk .m-score-h b { font-size: clamp(22px, 2.2vw, 32px); }
.m-desk .m-score-h span { font-size: clamp(48px, 5vw, 78px); }
.m-desk .m-go { font-size: 12px; margin-top: 8px; }
.m-desk .m-dots { margin-top: 26px; padding: 0 2px; }
.m-desk .m-dots i { flex-basis: 13px; height: 13px; }
.m-dlabels { display: flex; justify-content: space-between; margin-top: 10px; }
.m-dlabels span { flex: 0 0 0; display: flex; justify-content: center; white-space: nowrap; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; color: rgba(160, 180, 205, .55); }
.m-dlabels span:first-child { justify-content: flex-start; }
.m-dlabels span:last-child { justify-content: flex-end; }
.m-dlabels span.on { color: #8fcfff; }
.m-dlabels span.now { color: #fff; }
.m-desk .m-facts { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none; gap: 12px; margin-top: 14px; }
.m-desk .m-facts > div { padding: 16px 20px; border-radius: 18px; }
.m-desk .m-facts b { font-size: clamp(16px, 1.4vw, 21px); margin-top: 5px; }

/* the weather card, on every screen */
.m-wx[hidden] { display: none !important; }
.m-wx { max-width: 620px; margin: 10px auto 0; border-radius: 16px; background: rgba(12, 19, 32, .85); border: 1px solid rgba(130, 200, 255, .16); overflow: hidden; }
.m-ov.m-desk + .m-wx { max-width: 1180px; margin-top: 14px; border-radius: 18px; }
.m-wx-head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 14px 12px; margin: 0; background: none; border: none; color: inherit; text-align: left; cursor: pointer; font: inherit; letter-spacing: 0; }
.m-wx-ic { flex: 0 0 auto; width: 54px; height: 54px; display: grid; place-items: center; font-size: 36px; line-height: 1; border-radius: 14px; background: rgba(255, 255, 255, .04); }
.m-wx-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.m-wx-main small { font-size: 10.5px; font-weight: 600; letter-spacing: 1px; color: var(--text-dim); line-height: 1.35; }
.m-wx-main b { font-family: var(--ui); font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-wx-main em { font-style: normal; font-size: 13.5px; font-weight: 600; letter-spacing: .4px; color: #8fcfff; }
.m-wx-chev { flex: 0 0 auto; color: var(--text-dim); display: flex; transform: rotate(90deg); transition: transform .18s ease; }
.m-wx-chev .chv { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.m-wx.open .m-wx-chev { transform: rotate(-90deg); color: #3fb6ff; }
.m-wx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 14px; }
.m-wx-grid > div { min-width: 0; padding: 9px 11px; border-radius: 11px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .06); }
.m-wx-grid small { display: block; font-size: 10px; font-weight: 600; letter-spacing: 1px; color: var(--text-dim); }
.m-wx-grid b { display: block; margin-top: 3px; font-size: 14.5px; font-weight: 600; color: var(--text); line-height: 1.3; }
.m-wx-raw { margin: 10px 14px 14px; font: 12px/1.45 'IBM Plex Mono', ui-monospace, monospace; color: rgba(190, 205, 225, .7); overflow-wrap: anywhere; }
.m-wx-pick { border-top: 1px solid rgba(130, 200, 255, .14); padding: 12px 14px 14px; max-height: 360px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.m-wx-q { width: 100%; box-sizing: border-box; padding: 11px 12px; border-radius: 10px; font: 500 16px var(--ui); color: #fff; background: rgba(0, 0, 0, .3); border: 1px solid rgba(130, 200, 255, .25); outline: none; }
.m-wx-q:focus { border-color: #3fb6ff; }
.m-wx-g { margin-top: 12px; }
.m-wx-g > small { display: block; margin-bottom: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; color: var(--text-dim); }
.m-wx-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 10px; margin: 0; border: none; border-radius: 10px; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; letter-spacing: 0; }
.m-wx-opt:hover { background: rgba(63, 182, 255, .08); }
.m-wx-opt.on { background: rgba(63, 182, 255, .14); }
.m-wx-opt.follow { margin-top: 10px; }
.m-wx-opt b { flex: 0 0 52px; font-family: var(--ui); font-size: 15px; font-weight: 700; color: #fff; }
.m-wx-opt span { flex: 1 1 auto; min-width: 0; font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-wx-opt em { flex: 0 0 auto; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; color: #ffb300; }
.m-ov.m-desk + .m-wx .m-wx-head { padding: 18px 22px 14px; gap: 18px; }
.m-ov.m-desk + .m-wx .m-wx-ic { width: 70px; height: 70px; font-size: 46px; border-radius: 18px; }
.m-ov.m-desk + .m-wx .m-wx-main b { font-size: 26px; }
.m-ov.m-desk + .m-wx .m-wx-main em { font-size: 15px; }
.m-ov.m-desk + .m-wx .m-wx-main small { font-size: 12px; }
.m-ov.m-desk + .m-wx .m-wx-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 0 22px; }
.m-ov.m-desk + .m-wx .m-wx-grid b { font-size: 17px; }
.m-ov.m-desk + .m-wx .m-wx-raw { margin: 12px 22px 18px; font-size: 13px; }
.m-ov.m-desk + .m-wx .m-wx-pick { padding: 14px 22px 18px; max-height: 420px; }
@media (max-width: 380px) {
  .m-wx-ic { width: 46px; height: 46px; font-size: 30px; }
  .m-wx-main b { font-size: 18px; }
}
.m-wx-grid > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.m-ov.m-desk + .m-wx .m-wx-grid > div:last-child:nth-child(odd) { grid-column: auto; }

/* =====================================================================
   b365: the overview card fills a desktop and grows with the window, as
   the board did: one unit, --u, from the width and the height, and every
   size from it. The weather sits in the card under the buttons, closed to
   a line, opening as a panel. On a phone the weather is compact and the
   whole overview fits one screen; its airport list scrolls with the page.
   ===================================================================== */
.m-mid { display: block; }
body:not(.handheld) #view-overview.active { padding: 1.6vh 1.6vw; box-sizing: border-box; }
/* b517 (John): every size on the overview is a step of --u; --u0 is the step the window gives, and --ufit (set by
   ovFit in app.js) shrinks it when the card would run past the bottom, as it did on an iPad (its status bar and home
   bar take height the vh units do not know about) */
.m-ov.m-desk { --u: calc(var(--u0) * var(--ufit, 1)); }
.m-ov.m-desk { --u0: min(1vw, 1.55vh); max-width: none; min-height: 100%; display: flex; flex-direction: column; }
.m-ov.m-desk > .m-card { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: space-between; gap: calc(var(--u) * .8);
  padding: calc(var(--u) * 2) calc(var(--u) * 2.6) calc(var(--u) * 1.8); border-radius: calc(var(--u) * 1.8); }
.m-ov.m-desk .m-facts-out { display: none; }
.m-desk .m-top { gap: calc(var(--u) * 1.4); padding-bottom: calc(var(--u) * 1.4); }
.m-desk .m-logo { width: calc(var(--u) * 6); height: calc(var(--u) * 6); border-radius: calc(var(--u) * 1.2); }
.m-desk .m-logo.txt { font-size: calc(var(--u) * 1.4); }
.m-desk .m-id b { font-size: calc(var(--u) * 3.6); }
.m-desk .m-id small { font-size: calc(var(--u) * 1.25); margin-top: calc(var(--u) * .5); }
.m-desk .m-live { font-size: calc(var(--u) * .85); padding: calc(var(--u) * .45) calc(var(--u) * .9); }
.m-desk .m-live i { width: calc(var(--u) * .5); height: calc(var(--u) * .5); }
.m-desk .m-clock { gap: calc(var(--u) * 2.2); margin-left: calc(var(--u) * 1.4); }
.m-desk .m-clock small { font-size: calc(var(--u) * .8); }
.m-desk .m-clock b { font-size: calc(var(--u) * 3); margin-top: calc(var(--u) * .25); }
.m-desk .m-cities { font-size: calc(var(--u) * .95); margin-top: 0; }
.m-desk .m-cities .chv { width: calc(var(--u) * 1); height: calc(var(--u) * 1); }
.m-desk .m-route { gap: calc(var(--u) * 2); margin: 0; }
.m-desk .m-route b { font-size: calc(var(--u) * 6.6); }
.m-desk .m-route small { font-size: calc(var(--u) * 1.4); margin-top: calc(var(--u) * .5); }
.m-desk .m-line { height: calc(var(--u) * 2.6); }
.m-desk .m-plane { width: calc(var(--u) * 3.4); height: calc(var(--u) * 3.4); }   /* b566 (John): a bit bigger on a tablet */
/* the middle band: the phase, gate, legs and times left; the buttons and the weather right */
.m-desk .m-mid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, calc(var(--u) * 34)); gap: calc(var(--u) * 2.4); align-items: start; }   /* b570: the weather a little wider */
.m-desk .m-mid-r { display: flex; flex-direction: column; align-items: stretch; gap: calc(var(--u) * .9); }
.m-desk .m-phase b { font-size: calc(var(--u) * 3.3); }
.m-desk .m-phase > span { font-size: calc(var(--u) * 1); }
.m-desk .m-over { font-size: calc(var(--u) * 1.35); margin-top: calc(var(--u) * .5); }
.m-desk .m-duty { font-size: calc(var(--u) * 1.05); padding: calc(var(--u) * .6) calc(var(--u) * 1); margin-top: calc(var(--u) * .8); }
.m-times { display: flex; flex-wrap: wrap; gap: calc(var(--u) * .8); margin-top: calc(var(--u) * 1); }
.m-times > div { padding: calc(var(--u) * .6) calc(var(--u) * 1.1); border-radius: calc(var(--u) * .8); background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .07); }
.m-times small { display: block; font-size: calc(var(--u) * .78); font-weight: 600; letter-spacing: 1.2px; color: var(--text-dim); }
.m-times b { display: block; margin-top: calc(var(--u) * .2); font-family: var(--ui); font-size: calc(var(--u) * 1.4); font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.m-desk .m-btns { margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: calc(var(--u) * .7); }
.m-desk .m-btn { padding: calc(var(--u) * .95) calc(var(--u) * 1); font-size: calc(var(--u) * 1.05); border-radius: calc(var(--u) * .8); letter-spacing: 1.6px; white-space: nowrap; }
/* b431: three buttons (SCHEDULE FLIGHT, SIMBRIEF, GSX in flight) had run into each other on a narrower desktop: each is
   at least as wide as its words, the three share the row, tighter, and where even that will not fit they wrap */
.m-desk .m-btns { display: flex; flex-wrap: wrap; }
.m-desk .m-btns > .m-btn { flex: 1 1 0; min-width: max-content; }
.m-desk .m-btns:has(> .m-btn:nth-child(3)) > .m-btn { letter-spacing: .9px; padding-left: calc(var(--u) * .65); padding-right: calc(var(--u) * .65); font-size: calc(var(--u) * .98); }
.m-desk .m-stats { gap: calc(var(--u) * .9); margin-top: 0; }
.m-desk .m-stats > div { padding: calc(var(--u) * 1.1) calc(var(--u) * 1.3) calc(var(--u) * 1); border-radius: calc(var(--u) * 1.1); }
.m-desk .m-stats small, .m-desk .m-score small { font-size: calc(var(--u) * .85); }
.m-desk .m-stats b { font-size: calc(var(--u) * 3); margin-top: calc(var(--u) * .4); }
.m-desk .m-stats em { font-size: calc(var(--u) * 1); }
.m-desk .m-ground { margin-top: 0 !important; }
.m-desk .m-score { margin-top: 0; padding: calc(var(--u) * 1.3) calc(var(--u) * 1.6); border-radius: calc(var(--u) * 1.3); }
.m-desk .m-score-h b { font-size: calc(var(--u) * 2.3); }
.m-desk .m-score-h span { font-size: calc(var(--u) * 5.6); }
.m-desk .m-go { font-size: calc(var(--u) * .85); }
.m-desk .m-score .m-stats { margin-top: calc(var(--u) * 1); }
.m-desk .m-dots { margin-top: 0; }
.m-desk .m-dots i { flex-basis: calc(var(--u) * .95); height: calc(var(--u) * .95); }
.m-desk .m-dlabels { margin-top: calc(var(--u) * -.2); }
.m-desk .m-dlabels span { font-size: calc(var(--u) * .8); }

/* the weather in the desktop card: one line closed, a panel open */
.m-wx-sum { display: none; font-style: normal; }
/* b430 (John): refresh the weather now, top right of the card; the heading keeps clear of it */
.m-wx { position: relative; }
.m-wx-ref { position: absolute; top: 8px; right: 8px; z-index: 2; width: 30px; height: 30px; min-height: 0; padding: 0; margin: 0; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(130, 200, 255, .22); background: rgba(10, 16, 28, .7); color: #8fcfff; cursor: pointer; }
.m-wx-ref:hover { color: #fff; border-color: #3fb6ff; background: rgba(63, 182, 255, .14); }
.m-wx-ref svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.m-wx-ref.spin svg { animation: mwxspin .9s linear infinite; }
@keyframes mwxspin { to { transform: rotate(360deg); } }
.m-wx-head { padding-right: 46px !important; }
@media (prefers-reduced-motion: reduce) { .m-wx-ref.spin svg { animation: none; } }
.m-wx-slot { position: relative; }
.m-wx-slot .m-wx { max-width: none; margin: 0; border-radius: calc(var(--u) * 1); overflow: visible; background: rgba(255, 255, 255, .035); border-color: rgba(130, 200, 255, .2); }
.m-wx-slot .m-wx-head { padding: calc(var(--u) * .8) calc(var(--u) * 1); gap: calc(var(--u) * 1); }
.m-wx-slot .m-wx-ic { width: calc(var(--u) * 3.6); height: calc(var(--u) * 3.6); font-size: calc(var(--u) * 2.4); border-radius: calc(var(--u) * .8); }
.m-wx-slot .m-wx-main small { font-size: calc(var(--u) * .78); }
.m-wx-slot .m-wx-main b { font-size: calc(var(--u) * 1.5); }
.m-wx-slot .m-wx-main em { font-size: calc(var(--u) * .95); }
.m-wx-slot .m-wx-sum { display: block; font-size: calc(var(--u) * .9); font-weight: 600; color: var(--text); letter-spacing: .3px; }
.m-wx-slot .m-wx-chev .chv { width: calc(var(--u) * 1.3); height: calc(var(--u) * 1.3); }
.m-wx-slot .m-wx-more { display: none; }
.m-wx-slot .m-wx.open .m-wx-more { display: block; position: absolute; z-index: 20; right: 0; top: calc(100% + 8px); width: max(100%, 520px);
  max-height: 560px; overflow-y: auto; overscroll-behavior: contain; border-radius: 16px; padding-top: 14px;
  background: #0d1626; border: 1px solid rgba(63, 182, 255, .35); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.m-wx-slot .m-wx.open .m-wx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.m-wx-slot .m-wx.open .m-wx-grid > div:last-child:nth-child(odd) { grid-column: auto; }
.m-wx-slot .m-wx-pick { max-height: none; overflow: visible; }

/* the weather on a phone: compact, the whole overview on one screen; the METAR and the list when it is opened */
body.handheld:not(.ov-desk) .m-wx { margin-top: 8px; border-radius: 14px; }
body.handheld:not(.ov-desk) .m-wx-head { padding: 10px 12px 9px; gap: 12px; }
body.handheld:not(.ov-desk) .m-wx-ic { width: 44px; height: 44px; font-size: 28px; border-radius: 12px; }
body.handheld:not(.ov-desk) .m-wx-main b { font-size: 17px; }
body.handheld:not(.ov-desk) .m-wx-main em { font-size: 12.5px; }
body.handheld:not(.ov-desk) .m-wx-main small { font-size: 10px; }
body.handheld:not(.ov-desk) .m-wx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 0 12px 12px; }
body.handheld:not(.ov-desk) .m-wx-grid > div { padding: 6px 8px; border-radius: 9px; }
body.handheld:not(.ov-desk) .m-wx-grid > div:last-child:nth-child(odd) { grid-column: auto; }
body.handheld:not(.ov-desk) .m-wx-grid small { font-size: 9px; }
body.handheld:not(.ov-desk) .m-wx-grid b { font-size: 13px; margin-top: 2px; }
body.handheld:not(.ov-desk) .m-wx-raw { display: none; margin: 0 12px 12px; }
body.handheld:not(.ov-desk) .m-wx.open .m-wx-raw { display: block; }
/* the list is part of the page, so one swipe scrolls it: no box scrolling inside a scrolling page */
body.handheld:not(.ov-desk) .m-wx-pick { max-height: none; overflow: visible; padding: 10px 12px 12px; }
.m-ov.m-desk > .m-card { overflow: visible; }
.m-wx-slot .m-wx.open .m-wx-more.up { top: auto; bottom: calc(100% + 8px); }
/* b383: every reading shows closed */
body.handheld:not(.ov-desk) .m-facts { margin-top: 8px; }
body.handheld:not(.ov-desk) .m-facts > div { padding: 9px 12px; }
.m-wx-chk { margin: 0 14px 8px; font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; color: #2ee66b; }
body.handheld:not(.ov-desk) .m-wx:not(.open) .m-wx-chk { display: none; }
.m-wx-slot .m-wx-chk { margin: 0 14px 10px; }
.cm-policy.private { color: #9fb1c8; border-color: rgba(159,177,200,.4); background: rgba(159,177,200,.08); }

/* b368: the departures and arrivals board in the app's own face (Inter), set a touch tighter so the columns keep their width */
#view-board, #view-board * { font-family: var(--ui) !important; }
#view-board #board-title { letter-spacing: 4px; font-weight: 800; }
#view-board #board-airport { letter-spacing: 1.5px; font-weight: 700; }
#view-board .board-cols { letter-spacing: 1.2px; font-weight: 600; }
#view-board .board-row { letter-spacing: 0; font-weight: 600; }
#view-board .br-time { letter-spacing: 0; }
/* Inter runs wider than the old condensed face: the rows scale with the narrower of height and width */
#view-board .board-row { font-size: clamp(13px, min(2.6vh, 2.15vw), 30px); }
.noflight, .noflight * { font-family: var(--ui) !important; }
@media (min-width: 641px) {
  #view-board .board-panel.nopilot .board-cols, #view-board .board-panel.nopilot .board-row { grid-template-columns: 3.4rem 4.6rem minmax(0, 1.5fr) minmax(0, 1.25fr) 4.4rem 3.2rem minmax(0, 1.75fr); }
}
/* the narrowest phones (iPhone SE): Inter a size down so the time, flight and status keep whole */
@media (max-width: 360px) {
  #view-board .board-row { font-size: 11.5px; padding: 5px 2px; }
  #view-board .br-time, #view-board .br-status { font-size: 11px; }
  #view-board .board-cols { font-size: 9.5px; letter-spacing: .4px; }
}
@media (max-width: 480px) {
  /* on a phone the aircraft type gives way so the flight number never runs into it */
  #view-board .board-cols > :nth-child(6), #view-board .board-row > :nth-child(6) { display: none; }
  #view-board .board-cols, #view-board .board-row,
  #view-board .board-panel.nopilot .board-cols, #view-board .board-panel.nopilot .board-row { grid-template-columns: 20px 38px minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); }
}
/* b370: the weather's airport list is short, the first few airports and a scroll for the rest; its search stays
   at the head while the list scrolls (a phone: about four airports; a desktop: a little shorter than before) */
body.handheld:not(.ov-desk) .m-wx-pick { max-height: 290px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.m-wx-slot .m-wx-pick { max-height: min(46vh, 400px); overflow-y: auto; overscroll-behavior: contain; }
.m-wx-pick .m-wx-q { position: sticky; top: -12px; z-index: 1; box-shadow: 0 6px 10px -4px rgba(6, 10, 18, .9); background: #0d1626; }
body.handheld:not(.ov-desk) .m-wx-pick .m-wx-q { top: -10px; }

/* b372: the map's own panels and hover cards (VATSIM controllers, sectors, aircraft, the layer menu, the readout)
   in the app's one face, Inter; layout and sizes as they were. The chart labels drawn on the map itself are the
   map's lettering and stay as they are. */
#view-map, #view-map *, #map-hover, #map-hover *, #tfc-info, #tfc-info * { font-family: var(--ui) !important; }
#map-hover b, #tfc-info b, .ti-com b, .ti-atc-r b, .sc-fq { font-variant-numeric: tabular-nums; letter-spacing: 0; }

/* =====================================================================
   b375: the log's DAYS tab. One row a day (its average score, the date and how many sectors,
   the airports in the order flown, what it made); open, every sector with its passengers,
   money and bonuses, then the day's totals. The rows are the log's own cards.
   ===================================================================== */
.log-panel > .log-days { flex: 1 1 0; min-height: 0; overflow-y: auto; }
#view-log .log-row.ld-row { grid-template-columns: 4.2em minmax(11em, auto) minmax(0, 1fr) auto; }
#view-log .ld-row .lg-when { white-space: nowrap; }
#view-log .ld-row .ld-chain { letter-spacing: 1.2px; line-height: 1.35; }
#view-log .ld-row .ld-chain .chv { width: .9em; height: .9em; vertical-align: -.1em; }
#view-log .ld-row .ld-money { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: #e8ecf3; }
#view-log .ld-row .ld-money.g { color: var(--green); } #view-log .ld-row .ld-money.r { color: #ff6b64; }
.ld-short { display: none; }
.ldl { font-family: var(--ui); padding: 4px 0 2px; }
.ldl-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px 16px; padding: 4px 0 14px; margin-bottom: 12px; border-bottom: 1px solid #161d29; }
.ldl-chain { font-size: 22px; font-weight: 700; letter-spacing: 1.4px; line-height: 1.3; color: #fff; }
.ldl-chain .chv, .ldl-r b .chv { width: .85em; height: .85em; vertical-align: -.08em; color: #3fb6ff; }
.ldl-sub { margin-top: 5px; font-size: 13px; letter-spacing: .3px; color: #8c96a6; }
.ldl-tag { flex: 0 0 auto; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.ldl-tag.g { color: #2ee66b; background: rgba(46, 230, 107, .1); border: 1px solid rgba(46, 230, 107, .35); }
.ldl-tag.a { color: #ffb300; background: rgba(255, 179, 0, .08); border: 1px solid rgba(255, 179, 0, .35); }
.ldl-tag.r { color: #ff6b64; background: rgba(255, 107, 100, .08); border: 1px solid rgba(255, 107, 100, .35); }
.ldl-secs { display: flex; flex-direction: column; gap: 8px; }
.ldl-sec { display: grid; grid-template-columns: 30px minmax(0, 1.25fr) minmax(0, 1.75fr) 3.6em; align-items: center; gap: 14px; padding: 12px 14px;
  border-radius: 12px; background: #0c1119; border: 1px solid #1a222f; transition: border-color .14s ease; }
.ldl-sec.go { cursor: pointer; }
.ldl-sec.go:hover { border-color: rgba(63, 182, 255, .5); }
.ldl-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: #3fb6ff; background: rgba(63, 182, 255, .12); }
.ldl-r { min-width: 0; }
.ldl-r b { display: block; font-size: 16px; font-weight: 700; letter-spacing: 1px; color: #fff; white-space: nowrap; }
.ldl-r small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: #8c96a6; }
.ldl .ld-t { white-space: nowrap; }
.ldl .ld-t i { font-style: normal; }
.ldl i.g { color: #2ee66b; } .ldl i.a { color: #ffb300; } .ldl i.r { color: #ff6b64; }
.ldl-f { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; min-width: 0; }
.ldl-f span { display: flex; flex-direction: column; min-width: 0; font-size: 15px; font-weight: 600; color: #e8ecf3; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ldl-f i { font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; color: #7d8798; margin-bottom: 2px; }
.ldl-f b { font-weight: 600; } .ldl-f b.g { color: #2ee66b; } .ldl-f b.r { color: #ff6b64; }
#view-log .ldl-sc { font-size: 15px; text-align: center; }
.ldl-note { margin-top: 10px; font-size: 12.5px; color: #8c96a6; }
.ldl-tot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.ldl-tot > div { min-width: 0; padding: 11px 14px 10px; border-radius: 12px; background: #0c1119; border: 1px solid #1a222f; }
.ldl-tot > div.wide { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 14px;
  border-color: rgba(46, 230, 107, .35); background: rgba(46, 230, 107, .06); }
.ldl-tot span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 1.6px; color: #7d8798; }
.ldl-tot b { display: block; margin-top: 3px; font-size: 18px; font-weight: 700; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ldl-tot .wide b { margin: 0; font-size: 26px; }
.ldl-tot b.g { color: #2ee66b; } .ldl-tot b.a { color: #ffb300; } .ldl-tot b.r { color: #ff6b64; }
.ldl-tot em { display: block; margin-top: 2px; font-style: normal; font-size: 11.5px; line-height: 1.35; color: #7d8798; }
.ldl-tot .wide em { flex: 1 1 100%; margin: 0; }
/* a tablet: the airports along the top of the row, the date and the sectors under them, the money beside */
@media (min-width: 641px) and (max-width: 1100px) {
  #view-log .log-row.ld-row { grid-template-columns: 4.2em minmax(0, 1fr) auto; grid-template-areas: "r c m" "r w m"; row-gap: 4px; }
  #view-log .ld-row .lg-rating { grid-area: r; }
  #view-log .ld-row .ld-chain { grid-area: c; }
  #view-log .ld-row .lg-when { grid-area: w; }
  #view-log .ld-row .ld-money { grid-area: m; }
}
@media (max-width: 900px) {
  .ldl-sec { grid-template-columns: 28px minmax(0, 1fr) 3.4em; grid-template-areas: "n r sc" "f f f"; row-gap: 10px; }
  .ldl-n { grid-area: n; } .ldl-r { grid-area: r; } .ldl-f { grid-area: f; } #view-log .ldl-sec .ldl-sc { grid-area: sc; align-self: center; }
}
@media (max-width: 640px) {
  /* FLIGHTS, DAYS, AWARDS, SCORING across the screen */
  .log-head-right { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .log-panel > .log-days { margin: 0 -12px; padding: 0 12px 28px; }
  #view-log .log-row.ld-row { grid-template-columns: 3.6em minmax(0, 1fr) auto; grid-template-areas: "r c c" "r w m"; }
  #view-log .ld-row .lg-rating { grid-area: r; }
  #view-log .ld-row .ld-chain { grid-area: c; white-space: normal; overflow: visible; text-overflow: clip; text-align: left; font-size: 14.5px; letter-spacing: .4px; }
  #view-log .ld-row .lg-when { grid-area: w; font-size: 12px; letter-spacing: .4px; }
  #view-log .ld-row .ld-money { grid-area: m; font-size: 13px; letter-spacing: .2px; overflow: visible; }
  #view-log .ld-row .ld-wd, #view-log .ld-row .ld-yr { display: none; }
  #view-log .log-entry.open > .log-row.ld-row { grid-template-columns: 3.1em minmax(0, 1fr) auto; }
  .ldl-chain { font-size: 18px; letter-spacing: .6px; }
  .ldl-sec { padding: 11px 12px; gap: 10px; }
  .ldl-f span { font-size: 14px; }
  .ldl-tot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ldl-tot .wide b { font-size: 22px; }
}
@media (max-width: 380px) {
  #view-log .ld-row .ld-full { display: none; } #view-log .ld-row .ld-short { display: inline; }
  #view-log .ld-row .ld-chain { font-size: 13.5px; letter-spacing: 0; }
  .ldl-f span { font-size: 13px; }
  .ldl-f i { letter-spacing: .8px; }
}
/* b376: a tab the free plan does not include, with a small lock */
.tab.tier-locked { opacity: .55; }
.tab.tier-locked::after { content: "\1F512"; font-size: .7em; margin-left: 6px; vertical-align: 2px; }

/* b377: SayIntentions with no simulator says so inside the board, VATSIM and the real world a tap away above */
.board-note.board-nosim { max-width: 640px; margin: 0 auto; line-height: 1.5; letter-spacing: .5px; font-size: 16px; font-family: var(--ui); }
.board-note.board-nosim b { display: block; font-size: 20px; letter-spacing: 2px; color: #c9d0da; margin-bottom: 8px; font-weight: 700; }

/* ---- b377: the pilots' six boards, all one size, each with its period; the airlines as a ranked table ---- */
.cm-tiles6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 8px; }
.cm-b6 { grid-row: auto; grid-column: auto !important; padding: 16px 16px 12px; min-height: 360px; }
.cm-b6 .cm-tile-t { font-size: 15px; }
.cm-b6 .cm-tile-t span { font-size: 12.5px; }
.cm-seg { display: flex; gap: 0; margin-top: 10px; border: 1px solid rgba(130,200,255,.22); border-radius: 999px; padding: 3px; background: rgba(5,12,24,.45); width: max-content; max-width: 100%; }
.cm-seg button { appearance: none; border: 0; background: none; cursor: pointer; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 10.5px; letter-spacing: 1.6px;
  color: var(--text-dim); padding: 5px 11px; border-radius: 999px; white-space: nowrap; transition: color .15s ease, background .15s ease; }
.cm-seg button:hover { color: #fff; }
.cm-seg button.on { color: #fff; background: linear-gradient(135deg, #2b7fff, #3fb6ff); box-shadow: 0 2px 10px rgba(43,127,255,.3); }
.cm-seg button:focus { outline: none; }
.cm-seg button:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.cm-seg + .cm-seg { margin-top: 6px; }
.cm-b6-empty { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; text-align: center; padding: 26px 12px; color: var(--text-dim); font-size: 14px; line-height: 1.5; }
.cm-lab { display: flex; flex-direction: column; gap: 6px; font-size: 12px; letter-spacing: 2.5px; color: var(--text-dim); font-weight: 600; }
.cm-seg-wide button { font-size: 12px; padding: 7px 16px; }
.cm-hint { letter-spacing: 0; font-weight: 400; font-size: 13px; line-height: 1.5; color: var(--text-dim); text-transform: none; }
.cm-tag.hid { background: rgba(130,200,255,.08); color: var(--text-dim); border-color: rgba(130,200,255,.3); }
.cm-al-wrap { border-radius: 14px; border: 1px solid rgba(130,200,255,.18); background: linear-gradient(172deg, rgba(19,38,68,.5) 0%, rgba(10,21,40,.7) 100%); }
.cm-al-table { min-width: 760px; }
.cm-al-table th { padding: 12px 12px 10px; }
.cm-al-table th.sortable { cursor: pointer; }
.cm-al-table th.sortable:hover, .cm-al-table th.on { color: #fff; }
.cm-al-table th.on::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: translateY(-2px) rotate(45deg); }
.cm-al-row { cursor: pointer; transition: background .15s ease; }
.cm-al-row:hover, .cm-al-row:focus-visible { background: rgba(63,182,255,.08); outline: none; }
.cm-al-row.cm-mine { background: rgba(255,211,92,.06); }
.cm-al-row.cm-flying { background: rgba(46,230,107,.05); }
.cm-al-row td.on { color: #fff; }
.cm-al-pos { width: 44px; text-align: center !important; color: var(--text-dim); font-weight: 700; }
.cm-al-name { width: 100%; }
.cm-al-name, .cm-al-id { min-width: 0; }
.cm-al-name { display: flex; align-items: center; gap: 12px; }
.cm-roundel.sm { flex: 0 0 38px; width: 38px; height: 38px; font-size: 15px; }
.cm-al-id { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; white-space: normal; }
.cm-al-id b { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 17px; color: #fff; letter-spacing: .5px; }
.cm-al-id small { flex-basis: 100%; font-size: 12.5px; color: var(--text-dim); letter-spacing: .3px; }
.cm-al-id .cm-tag { font-size: 9.5px; padding: 1px 6px; }
td.cm-al-date { font-size: 15px !important; color: var(--text-dim) !important; }
.cm-b6-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 10px; min-width: 0; }
.cm-b6-head .cm-tile-t { min-width: 0; }
.cm-b6-head .cm-seg { margin-top: 0; flex: 0 0 auto; }
.cm-al-pol .cm-policy { font-size: 10.5px; padding: 3px 9px; }
@media (max-width: 1180px) { .cm-tiles6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .cm-tiles6 { grid-template-columns: 1fr; }
  .cm-b6 { min-height: 0; }
  .cm-seg button { padding: 5px 9px; letter-spacing: 1.2px; }
  .cm-al-table { min-width: 0; }
  .cm-al-table .cm-al-home, .cm-al-table .cm-al-date, .cm-al-table .cm-al-pol { display: none; }
  .cm-al-table td, .cm-al-table th { padding-left: 5px; padding-right: 5px; font-size: 15px; }
  .cm-al-table th { font-size: 9.5px; letter-spacing: 1px; }
  .cm-al-table th.on::after { width: 4px; height: 4px; margin-left: 3px; }
  .cm-al-id small { display: none; }
  .cm-al-table td.mono { font-size: 14.5px; }
  .cm-al-pos { width: 26px; }
  .cm-roundel.sm { flex-basis: 30px; width: 30px; height: 30px; font-size: 12px; }
  .cm-al-name { gap: 8px; }
  .cm-al-id b { font-size: 15px; }
}

/* ---- b379: the departures and arrivals board, every column whole at every size ----
   Every column is measured in the board's own type size (--bfs), so as the lettering grows on a big screen the
   time, the flight, the aircraft, the gate and the status grow with it and are never cut to "20..." (they had
   been fixed in rem while the type scaled with the screen). The type size follows the narrower of the height and
   the width, so all eight columns always fit. On a phone each flight takes two lines: time, flight and status on
   the first; aircraft, origin or destination, pilot and gate on the second. */
#view-board .board-panel { --bfs: clamp(12px, min(2.6vh, 1.95vw), 28px); }
@media (min-width: 641px) {
  #view-board .board-panel .board-row { font-size: var(--bfs) !important; min-height: calc(var(--bfs) * 2.15) !important; padding: 0 calc(var(--bfs) * .35) !important; }
  #view-board .board-panel .board-cols { font-size: max(10px, calc(var(--bfs) * .58)) !important; padding-left: calc(var(--bfs) * .35) !important; }
  #view-board .board-panel .board-cols, #view-board .board-panel .board-row {
    grid-template-columns: calc(var(--bfs) * 1.8) calc(var(--bfs) * 3.3) minmax(0, 1.3fr) minmax(0, 1.15fr) calc(var(--bfs) * 5.4) calc(var(--bfs) * 3.4) calc(var(--bfs) * 3.6) minmax(calc(var(--bfs) * 7.4), 1.3fr) !important;
    gap: calc(var(--bfs) * .6) !important;
  }
  #view-board .board-panel.nopilot .board-cols, #view-board .board-panel.nopilot .board-row {
    grid-template-columns: calc(var(--bfs) * 1.8) calc(var(--bfs) * 3.3) minmax(0, 1.9fr) calc(var(--bfs) * 5.4) calc(var(--bfs) * 3.4) calc(var(--bfs) * 3.6) minmax(calc(var(--bfs) * 7.4), 1.3fr) !important;
  }
  #view-board .board-panel .board-cols > span:nth-child(6), #view-board .board-panel .board-row > span:nth-child(6),
  #view-board .board-panel .board-cols > span:nth-child(7), #view-board .board-panel .board-row > span:nth-child(7) { display: block !important; }
  #view-board .br-logo { width: calc(var(--bfs) * 1.45); height: calc(var(--bfs) * 1.45); }
  #view-board .br-type { font-size: .9em; }
  /* a long status (DELAYED 14:35, APPROACHING) keeps whole on up to two lines */
  #view-board .board-row .br-status { white-space: normal; line-height: 1.05; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
}
@media (max-width: 640px) {
  #view-board .board-panel .board-cols, #view-board .board-panel .board-row,
  #view-board .board-panel.nopilot .board-cols, #view-board .board-panel.nopilot .board-row {
    grid-template-columns: 22px 44px minmax(0, 1fr) minmax(0, 1fr) 96px !important;
    grid-template-areas: "logo time flight flight status" "logo type city pilot gate";
    column-gap: 8px !important; row-gap: 3px !important; align-items: center;
  }
  #view-board .board-panel.nopilot .board-cols, #view-board .board-panel.nopilot .board-row {
    grid-template-areas: "logo time flight flight status" "logo type city city gate";
  }
  #view-board .board-panel .board-cols > span, #view-board .board-panel .board-row > span { display: block !important; min-width: 0; }
  #view-board .board-panel.nopilot .board-cols > span:nth-child(4), #view-board .board-panel.nopilot .board-row > span:nth-child(4) { display: none !important; }
  #view-board .board-cols > :nth-child(1), #view-board .board-row > :nth-child(1) { grid-area: logo; }
  #view-board .board-cols > :nth-child(2), #view-board .board-row > :nth-child(2) { grid-area: time; }
  #view-board .board-cols > :nth-child(3), #view-board .board-row > :nth-child(3) { grid-area: city; text-align: left !important; }
  #view-board .board-cols > :nth-child(4), #view-board .board-row > :nth-child(4) { grid-area: pilot; text-align: left !important; }
  #view-board .board-cols > :nth-child(5), #view-board .board-row > :nth-child(5) { grid-area: flight; text-align: left !important; }
  #view-board .board-cols > :nth-child(6), #view-board .board-row > :nth-child(6) { grid-area: type; }
  #view-board .board-cols > :nth-child(7), #view-board .board-row > :nth-child(7) { grid-area: gate; text-align: right !important; }
  #view-board .board-cols > :nth-child(8), #view-board .board-row > :nth-child(8) { grid-area: status; text-align: right !important; }
  #view-board .board-row .br-logo-cell { align-self: center; }
  #view-board .board-panel .board-row { font-size: 14px !important; min-height: 0 !important; padding: 7px 4px !important; line-height: 1.15; border-bottom: 1px solid rgba(255,255,255,.05); }
  #view-board .board-row .br-time, #view-board .board-row .br-flight { font-size: 14.5px; }
  #view-board .board-row .br-type, #view-board .board-row .br-city, #view-board .board-row .br-pilot, #view-board .board-row .br-gate { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: unset; display: block; }
  #view-board .board-row .br-city { color: #c9d0da; }
  #view-board .board-row .br-status { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  #view-board .board-row .br-gate:not(.nogate)::before { content: 'GATE '; color: #7d8798; font-size: 10px; letter-spacing: .5px; }
  #view-board .board-panel .board-cols { font-size: 9.5px !important; letter-spacing: .6px !important; row-gap: 2px !important; padding: 0 4px 6px !important; }
}
@media (max-width: 640px) {
  /* b379: the aircraft column's title in four letters on a phone, so it never runs into ORIGIN */
  #view-board .board-cols > span[data-short] { font-size: 0 !important; }
  #view-board .board-cols > span[data-short]::after { content: attr(data-short); font-size: 9.5px; }
}

/* ---- b379: the pilots' six boards to the left, narrower and a little shorter; the community overview on the right;
   the airlines' rows taller with more of each airline ---- */
.cm-pilots-wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(300px, 1fr); gap: 12px; align-items: stretch; margin-bottom: 8px; }
.cm-pilots-wrap .cm-tiles6 { margin-bottom: 0; }
.cm-b6 { min-height: 300px; padding: 14px 14px 10px; }
.cm-b6 .cm-rank-row { padding: 5px 6px; }
.cm-b6 .cm-rank-row.lead { padding: 6px 6px 8px; }
.cm-b6 .cm-rank-row.lead .cm-rank-name { font-size: 20px; }
.cm-b6 .cm-rank-row.lead .cm-rank-v { font-size: 16px; }
.cm-b6 .cm-rank-row.lead .cm-rank-medal { font-size: 28px; }
.cm-b6 .cm-tile-t { font-size: 13.5px; }
.cm-ov { padding: 16px; display: flex; flex-direction: column; background: linear-gradient(165deg, rgba(24,52,92,.8) 0%, rgba(10,21,40,.9) 100%); border-color: rgba(130,200,255,.32); }
.cm-ov .cm-tile-t { font-size: 14px; }
.cm-live { display: inline-flex; align-items: center; gap: 6px; font-family: 'Inter', sans-serif; font-weight: 800; font-size: 10.5px; letter-spacing: 2px; color: var(--green); }
.cm-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(46,230,107,.6); animation: cm-live 1.8s ease-out infinite; }
@keyframes cm-live { 0% { box-shadow: 0 0 0 0 rgba(46,230,107,.55); } 100% { box-shadow: 0 0 0 9px rgba(46,230,107,0); } }
.cm-ov-figs { flex: 1 1 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; align-content: start; }
.cm-ov-fig { padding: 10px 12px; border-radius: 12px; background: rgba(5,12,24,.45); border: 1px solid rgba(130,200,255,.14); min-width: 0; }
.cm-ov-fig.big { grid-column: 1 / -1; padding: 14px 14px 12px; }
.cm-ov-fig b { display: block; font-family: 'Inter', sans-serif; font-weight: 800; font-size: 22px; color: #fff; letter-spacing: .3px; font-variant-numeric: tabular-nums; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .4s ease; }
.cm-ov-fig.big b { font-size: 34px; color: #ffd35c; }
.cm-ov-fig b.bump { color: #8fd3ff; }
.cm-ov-fig.big b.bump { color: #ffe9a8; }
.cm-ov-fig span { display: block; margin-top: 4px; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 10.5px; letter-spacing: 1.6px; color: var(--text-dim); }
/* the airlines, a size up */
.cm-al-table td { padding-top: 15px; padding-bottom: 15px; }
.cm-roundel.sm { flex: 0 0 46px; width: 46px; height: 46px; font-size: 17px; }
.cm-al-id b { font-size: 19px; }
.cm-al-id small { font-size: 13px; margin-top: 2px; }
.cm-al-table td.mono { font-size: 18px; }
.cm-al-table { min-width: 960px; }
@media (max-width: 1279px) {
  .cm-pilots-wrap .cm-tiles6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .cm-pilots-wrap { grid-template-columns: 1fr; }
  .cm-pilots-wrap .cm-ov { order: -1; }
  .cm-ov-figs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cm-ov-fig.big { grid-column: span 2; }
}
@media (max-width: 640px) {
  .cm-pilots-wrap .cm-tiles6 { grid-template-columns: 1fr; }
  .cm-ov-figs { grid-template-columns: 1fr 1fr; }
  .cm-ov-fig.big { grid-column: 1 / -1; }
  .cm-ov-fig b { font-size: 19px; }
  .cm-ov-fig.big b { font-size: 28px; }
  .cm-al-table { min-width: 0; }
  .cm-al-table .cm-al-x { display: none; }
  .cm-roundel.sm { flex-basis: 32px; width: 32px; height: 32px; font-size: 12px; }
  .cm-al-id b { font-size: 15px; }
  .cm-al-table td { padding-top: 10px; padding-bottom: 10px; }
  .cm-al-table td.mono { font-size: 14.5px; }
}
@media (min-width: 641px) and (max-width: 1180px) {
  /* b379: on a tablet the airline list keeps its main columns whole; hours and distance are in each airline's page */
  .cm-al-table { min-width: 0; }
  .cm-al-table .cm-al-x, .cm-al-table .cm-al-date { display: none; }
}

/* ---- b380: each airline a thicker row, every figure in Inter, twenty to a page ---- */
#community .cm-al-table, #community .cm-al-table th, #community .cm-al-table td, #community .cm-al-table td.mono, #community .cm-al-table b { font-family: 'Inter', var(--ui), sans-serif !important; }
#community .cm-al-table td { padding-top: 22px; padding-bottom: 22px; font-variant-numeric: tabular-nums; font-weight: 600; }
#community .cm-al-table td.mono { font-size: 19px; letter-spacing: 0; }
#community .cm-al-table .cm-roundel.sm { flex-basis: 54px; width: 54px; height: 54px; font-size: 19px; }
#community .cm-al-id b { font-size: 21px; }
#community .cm-al-id small { font-size: 13.5px; margin-top: 4px; }
.cm-al-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 12px 0 4px; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 1px; color: var(--text-dim); }
.cm-al-pager .cm-btn[disabled] { opacity: .4; cursor: default; }
@media (max-width: 640px) {
  #community .cm-al-table td { padding-top: 14px; padding-bottom: 14px; }
  #community .cm-al-table td.mono { font-size: 15px; }
  #community .cm-al-table .cm-roundel.sm { flex-basis: 36px; width: 36px; height: 36px; font-size: 13px; }
  #community .cm-al-id b { font-size: 16px; }
}

/* b380: a flight flown on VATSIM, marked in the log between the callsign and the landing */
.lg-vat { display: inline-block; margin-right: 10px; padding: 2px 8px 1px; border: 1.5px solid var(--green); border-radius: 6px; color: var(--green);
  font-family: 'Inter', var(--ui), sans-serif !important; font-weight: 800; font-size: 0.82em; letter-spacing: 1.5px; line-height: 1.3; vertical-align: 1px;
  background: rgba(46, 230, 107, .08); box-shadow: 0 0 10px rgba(46, 230, 107, .18); text-shadow: none; }
@media (max-width: 640px) { .lg-vat { margin-right: 6px; padding: 1px 5px 0; letter-spacing: .8px; font-size: 9.5px; } }
/* b382: the VATSIM mark sits just after the callsign, in the space before the landing; the callsign keeps a set width
   (room for eight characters on a wide screen, seven on a phone) so the marks line up down the whole log */
.lg-cs .lg-csn { display: inline-block; min-width: calc(8 * (1.08ch + 2px)); vertical-align: baseline; }
.lg-cs .lg-vat { margin: 0 0 0 14px; }
/* on a phone the date and callsign column keeps room for the callsign and its mark side by side, the route keeps its own */
@media (max-width: 640px) {
  .lg-cs .lg-csn { min-width: calc(7 * (1.1ch + 0.4px)); }
  .lg-cs .lg-vat { margin-left: 5px; padding: 1px 3px 0; letter-spacing: .4px; font-size: 8.5px; border-width: 1.2px; border-radius: 4px; }
  #view-log .log-row:not(.ld-row), #view-log .log-entry.open > .log-row:not(.ld-row) { grid-template-columns: 3.6em minmax(120px, 1fr) minmax(0, auto); }
}
@media (max-width: 380px) {
  .lg-cs .lg-csn { min-width: calc(7 * 1.1ch); }
  #view-log .log-row:not(.ld-row), #view-log .log-entry.open > .log-row:not(.ld-row) { grid-template-columns: 3.1em minmax(112px, 1fr) minmax(0, auto); }
}
/* b383: the board's sources bigger and more finished on a wide screen: a soft fill, the chosen one lit in the
   app's blue; on the First Officer plan VATSIM and the real world carry a padlock and open the upgrade */
@media (min-width: 641px) {
  #board-src { gap: 12px; padding: 8px 4px 14px; }
  #board-src .src { font-size: 15.5px; letter-spacing: 1.6px; padding: 9px 22px; min-height: 42px; border-radius: 999px;
    color: #8ea0b8; background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); border: 1px solid rgba(130, 200, 255, .22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); transition: color .15s, border-color .15s, background .15s, box-shadow .15s; }
  #board-src .src:hover { color: #e8ecf3; border-color: rgba(130, 200, 255, .5); }
  #board-src .src.on { color: #fff; border-color: transparent; background: linear-gradient(135deg, #2b7fff, #3fb6ff); box-shadow: 0 4px 18px rgba(43, 127, 255, .35); }
}
#board-src .src.locked, .tfc-opt.locked, #wx-btn.locked { opacity: 1; color: #6f7c90; }
#board-src .src.locked::after, .tfc-opt.locked::after, #wx-btn.locked::after { content: ' \1F512'; font-size: .95em; }
#board-src .src.locked:hover, #wx-btn.locked:hover { color: #ffd35c; border-color: rgba(255, 211, 92, .5); }
/* b383: the weather on a phone shows all five readings closed: wind, visibility, cloud, temperature, QNH */
body.handheld:not(.ov-desk) .m-wx:not(.open) .m-wx-grid { padding-bottom: 12px; }
/* b384: the ATC on the map. The ATIS information letter (and the INFO letter beside an ATIS callsign) in an off-yellow,
   and each position's lines given room: the callsign, the frequency, then the controller, on desktop and phone */
.sc-info b { color: #f2cd5c; text-shadow: 0 0 18px rgba(242, 205, 92, .25); }
.ti-stn-cs em { color: #f2cd5c; }
.sc-row { padding: 10px 0; }
.sc-cs { line-height: 1.25; margin-bottom: 5px; }
.sc-fq { line-height: 1.15; margin-bottom: 6px; }
.sc-nm { line-height: 1.35; row-gap: 6px; }
.sc-txt { margin-top: 8px; }
.ti-stn { padding: 12px 0; }
.ti-stn-cs { line-height: 1.25; margin-bottom: 5px; }
.ti-stn .ti-freq { line-height: 1.15; margin: 0 0 6px; }
.ti-stn .sc-nm { margin-top: 0; line-height: 1.35; }
.sc-head { margin-bottom: 8px; }
.sc-sub { margin-top: 12px; }
/* b384: a flight on the VATSIM or real-world board opens on the map */
.board-row.br-tap { cursor: pointer; transition: background .12s ease; }
.board-row.br-tap:hover { background: rgba(63, 182, 255, .07); }
.board-row.br-tap:focus-visible { outline: 2px solid #3fb6ff; outline-offset: -2px; }
/* b386: the board's flight column wider (room for an eight-character callsign such as BAW 17AW, whole) and set a
   little further left, the origin or destination and the pilot giving up the room; a long VATSIM pilot name keeps
   whole on two lines rather than being cut. Every source: SayIntentions, VATSIM, the real world. */
@media (min-width: 641px) {
  #view-board .board-panel .board-cols, #view-board .board-panel .board-row {
    grid-template-columns: calc(var(--bfs) * 1.8) calc(var(--bfs) * 3.3) minmax(0, 1.2fr) minmax(0, 1.1fr) calc(var(--bfs) * 6.9) calc(var(--bfs) * 3.4) calc(var(--bfs) * 3.6) minmax(calc(var(--bfs) * 7.4), 1.3fr) !important;
  }
  #view-board .board-panel.nopilot .board-cols, #view-board .board-panel.nopilot .board-row {
    grid-template-columns: calc(var(--bfs) * 1.8) calc(var(--bfs) * 3.3) minmax(0, 1.8fr) calc(var(--bfs) * 6.9) calc(var(--bfs) * 3.4) calc(var(--bfs) * 3.6) minmax(calc(var(--bfs) * 7.4), 1.3fr) !important;
  }
  #view-board .board-panel:not(.nopilot) .board-row .br-pilot { white-space: normal; line-height: 1.05; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; }
}
@media (max-width: 640px) {
  #view-board .board-panel:not(.nopilot) .board-row .br-pilot { white-space: normal; line-height: 1.1; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: anywhere; font-size: 11px; }
}

/* b387: MY FLIGHTS | ALL <AIRLINE> FLIGHTS in the log, and the airline's own list (read only, no reports) */
.log-whose { display: inline-flex; width: max-content; max-width: 100%; align-self: flex-start; gap: 4px; margin: 4px 0 10px; padding: 4px; border-radius: 999px; background: #0a0e15; border: 1px solid #1a2230; }
.log-whose.hidden { display: none; }
.log-whose button { appearance: none; border: 0; background: none; color: #8ea0b8; font: 700 12px var(--ui); letter-spacing: 1.4px; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.log-whose button.on { color: #fff; background: linear-gradient(135deg, #2b7fff, #3fb6ff); }
.va-log-note { font-size: 12.5px; color: var(--text-dim); margin: 2px 2px 10px; }
.va-entry .log-row { cursor: default; }
.va-entry + .va-entry { margin-top: 6px; }
.va-you { font-size: .85em; letter-spacing: 1px; color: #3fb6ff; margin-left: 4px; }
@media (max-width: 640px) { .log-whose { display: flex; width: 100%; } .log-whose button { flex: 1 1 0; font-size: 11px; padding: 7px 6px; letter-spacing: .8px; } }

/* b389: one ATC position tapped on a phone (or clicked), with the way to the whole airport under it */
#tfc-info .ti-one { margin-top: 10px; }
.ti-all { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(63, 182, 255, .35); background: rgba(63, 182, 255, .1); color: #6fc3ff;
  font: 700 11.5px var(--ui); letter-spacing: 1.4px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ti-all:hover { background: rgba(63, 182, 255, .18); color: #fff; }
.ti-all .chv { width: 13px; height: 13px; }

/* b390 (John): on a phone the board's source is one dropdown (desktop keeps its three buttons) */
.src-sel-wrap { display: none; }
@media (max-width: 640px) {
  #board-src .src { display: none; }
  #board-src { flex-wrap: nowrap; gap: 10px; padding: 4px 2px 8px; }
  .src-sel-wrap { display: block; position: relative; flex: 0 0 auto; }
  .src-sel-wrap::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -6px;
    border-right: 2px solid #6fc3ff; border-bottom: 2px solid #6fc3ff; transform: rotate(45deg); pointer-events: none; }
  .src-sel { appearance: none; -webkit-appearance: none; min-height: 40px; padding: 0 38px 0 16px; border-radius: 999px;
    border: 1px solid rgba(63, 182, 255, .45); background: linear-gradient(135deg, rgba(43, 127, 255, .22), rgba(63, 182, 255, .12));
    color: #fff; font: 700 13px var(--ui); letter-spacing: 1.4px; cursor: pointer; }
  .src-sel:focus-visible { outline: 2px solid #3fb6ff; outline-offset: 2px; }
  .src-sel option { color: #0b1424; }
  #board-src .src-note.dup { visibility: hidden; }
  #board-src .src-note { flex: 1 1 auto; flex-basis: auto; min-width: 0; margin-left: 0; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* b474: the count in full on a phone (it was cut off), on two lines if it must */
  #board-src .src-note { white-space: normal; overflow: visible; text-overflow: clip; font-size: 11px; letter-spacing: .7px; line-height: 1.25; }
}

/* b390 (John): the community on a phone, PILOTS | AIRLINES (a desktop shows both, one under the other) */
.cm-part-sw { display: none; }
@media (max-width: 640px) {
  .cm-part-sw { display: flex; gap: 4px; margin: 4px 0 12px; padding: 4px; border-radius: 999px; background: #0a0e15; border: 1px solid #1a2230; }
  .cm-part-sw button { flex: 1 1 0; appearance: none; border: 0; background: none; color: #8ea0b8; font: 700 12.5px var(--ui); letter-spacing: 1.6px; padding: 9px 8px; border-radius: 999px; cursor: pointer; }
  .cm-part-sw button.on { color: #fff; background: linear-gradient(135deg, #2b7fff, #3fb6ff); }
  #community.cm-show-airlines .cm-part-pilots, #community:not(.cm-show-airlines) .cm-part-airlines { display: none; }
}
/* the awards pilots have shared */
.cm-awfeed { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 0 2px 8px; }
.cm-aw { display: flex; gap: 12px; align-items: flex-start; min-width: 0; padding: 12px 14px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(20, 34, 58, .7), rgba(10, 18, 32, .7)); border: 1px solid rgba(130, 200, 255, .16); }
.cm-aw-i { flex: 0 0 auto; font-size: 30px; line-height: 1.1; }
.cm-aw-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cm-aw-t b { font: 700 15px var(--ui); color: #fff; letter-spacing: .3px; }
.cm-aw-t small { font: 600 12.5px var(--ui); color: #6fc3ff; overflow-wrap: anywhere; }
.cm-aw-t em { font: 500 12px var(--ui); font-style: normal; color: var(--text-dim); line-height: 1.4; overflow-wrap: anywhere; }
.cm-aw-none { margin: 0 2px 8px; color: var(--text-dim); font-size: 13.5px; }
.awp-share.comm { border-color: rgba(63, 182, 255, .55); color: #6fc3ff; }
.awp-share.comm:hover { background: rgba(63, 182, 255, .12); }
.awp-share:disabled { opacity: .75; cursor: default; }

/* b392 (John): a tablet has the desktop's overview card, the weather inside it; upright it is sized from the width
   a little more boldly, so the card fills the screen rather than spreading small figures over it */
body.ov-desk #view-overview.active { padding: 1.6vh 1.6vw calc(1.6vh + var(--sab)); box-sizing: border-box; }
@media (orientation: portrait) {
  body.ov-desk .m-ov.m-desk { --u0: min(1.42vw, 1.15vh); }
  /* b437 (sweep): a phone turned sideways (under 420 tall) keeps its writing readable */
  @media (max-height: 420px) { body.ov-desk .m-ov.m-desk { --u0: max(min(1.42vw, 1.15vh), 6.5px); } }
  body.ov-desk .m-desk .m-mid { grid-template-columns: minmax(0, 1fr) minmax(0, calc(var(--u) * 34)); }
  /* the spare height goes round the route, not between the stage dots and their names */
  body.ov-desk .m-ov.m-desk > .m-card { justify-content: flex-start; gap: calc(var(--u) * 1.8); }
  body.ov-desk .m-desk .m-route { flex: 1 1 auto; align-items: center; }
  body.ov-desk .m-desk .m-dlabels { margin-top: calc(var(--u) * -1.2); }
}

/* b392 (John): the departures and arrivals on a tablet: bigger lettering and taller rows so the board fills the
   screen, and room between the source buttons' rule and the column names (they sat squashed under it) */
@media (min-width: 641px) {
  body.handheld #view-board .board-panel { --bfs: clamp(14px, min(2.9vh, 2.15vw), 30px); }
  body.handheld #view-board .board-panel .board-row { min-height: calc(var(--bfs) * 2.6) !important; }
  body.handheld #view-board #board-src { padding-bottom: calc(var(--bfs) * .7); }
  body.handheld #view-board .board-panel .board-cols { padding-top: calc(var(--bfs) * .55) !important; padding-bottom: calc(var(--bfs) * .45) !important; }
  body.handheld #view-board .board-panel:not(.nopilot) .board-cols, body.handheld #view-board .board-panel:not(.nopilot) .board-row {
    grid-template-columns: calc(var(--bfs) * 1.8) calc(var(--bfs) * 3.3) minmax(calc(var(--bfs) * 5.2), 1.1fr) minmax(0, 1.4fr) calc(var(--bfs) * 6.9) calc(var(--bfs) * 3.4) calc(var(--bfs) * 3.6) minmax(calc(var(--bfs) * 7.4), 1.3fr) !important;
  }
  body.handheld #view-board .board-panel:not(.nopilot) .board-row .br-pilot { font-size: .82em; -webkit-line-clamp: 3; line-clamp: 3; }
  /* a long city or pilot keeps whole on two lines rather than being cut */
  body.handheld #view-board .board-row .br-city { white-space: normal; line-height: 1.05; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: normal; word-break: normal; }
  body.handheld #view-board .board-panel:not(.nopilot) .board-row .br-pilot { overflow-wrap: normal; word-break: normal; }
}
@media (min-width: 641px) and (orientation: portrait) {
  body.handheld #view-board .board-panel { --bfs: clamp(14px, min(3vh, 2.1vw), 30px); }
  body.handheld #view-board .board-row .br-city { font-size: .9em; }
  body.handheld #view-board .board-panel:not(.nopilot) .board-cols, body.handheld #view-board .board-panel:not(.nopilot) .board-row {
    grid-template-columns: calc(var(--bfs) * 1.8) calc(var(--bfs) * 3.1) minmax(calc(var(--bfs) * 5), 1fr) minmax(0, 1.7fr) calc(var(--bfs) * 6.4) calc(var(--bfs) * 3.3) calc(var(--bfs) * 2.9) minmax(calc(var(--bfs) * 6.4), 1fr) !important;
    gap: calc(var(--bfs) * .5) !important;
  }
  body.handheld #view-board .board-panel .board-row { min-height: calc(var(--bfs) * 3.1) !important; }
}

/* b392 (John): the log on a tablet: its lettering follows the narrower side, so an upright tablet keeps each route
   on one line (it was sized from the height and wrapped to three) */
@media (min-width: 641px) {
  body.handheld #view-log .log-row { font-size: clamp(14px, min(2.1vh, 2.25vw), 22px); }
  body.handheld #view-log .log-row .lg-route { white-space: nowrap; }
}
@media (min-width: 641px) {
  body.handheld #view-log .log-row .lg-when { overflow: visible; text-overflow: clip; }
}

/* b394 (John): the wordmark in the website's own type (Jost, as on airwinghq.com's header), on every screen */
.brand { font-family: 'Jost', sans-serif; font-weight: 700; letter-spacing: .06em; }

/* b394 (John): a tablet's header is one bar, the mark (a size up, no wordmark) with the tabs beside it up to the
   status dot and buttons, so the page starts a whole bar higher; and every view runs to the foot of the screen,
   only a little clear of the home bar. Phones and desktops unchanged. */
/* b394 fix (John, an iPad Pro): the bar keeps the status bar's height above it (the shorthand had taken it away, so
   on a real iPad the mark and the bar's rule sat a status bar higher than the tabs, the rule through them) */
body.ov-desk #topbar { height: 60px; padding: env(safe-area-inset-top, 0px) 14px 0 16px; border-bottom: none; }
/* the fullscreen button does nothing in a tablet's home-screen app; the status dot sits beside COMMUNITY */
body.ov-desk #fs-btn { display: none; }
/* the live flight's strip sits under the one bar */
body.ov-desk .m-strip { top: calc(60px + var(--sat)); }
body.ov-desk .brand { font-size: 0; letter-spacing: 0; gap: 0; }
body.ov-desk .brand span { display: none; }
body.ov-desk .brand-mark { width: 44px; height: 44px; border-radius: 11px; }
body.ov-desk #tabs { top: 0; left: calc(16px + 44px + 14px); right: calc(14px + var(--tr-w, 90px) + 12px); height: 60px; padding: 6px 4px;
  background: none; border-bottom: none; z-index: 31; }
body.ov-desk #tabs::before { left: 4px; right: 4px; top: 6px; bottom: 6px; }
body.ov-desk .tab { flex: 1 1 auto; min-width: 0; padding: 0 6px; font-size: clamp(11px, 1.4vw, 17px); letter-spacing: .6px; white-space: nowrap; }
body.ov-desk main#views, body.ov-desk #views, body.ov-desk .noflight, body.ov-desk .acct-rail { top: 60px; }
body.ov-desk #views > .view:not(#view-map) { bottom: 0; }
/* b394 fix: the pages run right down to the home bar's own edge (its inset, at most 14px, and no more) */
body.ov-desk #view-board, body.ov-desk #view-data, body.ov-desk #view-log, body.ov-desk #view-community { padding-bottom: max(6px, min(14px, var(--sab))); }
body.ov-desk #view-overview.active { padding-bottom: max(6px, min(14px, var(--sab))); }
body.ov-desk .noflight { padding-bottom: max(6px, min(14px, var(--sab))); }

/* b394: the radar's credit, top left over the map (clear of the map's own credits and the switches) while the live weather is on */
.wx-credit { position: absolute; z-index: 8; left: calc(16px + env(safe-area-inset-left, 0px)); top: 14px;
  padding: 5px 11px; border-radius: 999px; background: rgba(6, 12, 24, .82); border: 1px solid rgba(130, 200, 255, .35);
  color: #cfe6ff; font-size: 12px; font-weight: 600; letter-spacing: .6px; text-decoration: none; }
.wx-credit:hover { color: #fff; border-color: rgba(130, 200, 255, .7); }

/* b397 (John, a tablet): the open weather panel scrolls as one. The airport list was a scroller of its own inside the
   panel's scroller, and on a touch screen, once the list had been scrolled, a swipe back up stayed in the list, so
   the weather above it could not be reached again without closing the panel */
body.ov-desk .m-wx-slot .m-wx-pick { max-height: none; overflow: visible; }
body.ov-desk .m-wx-slot .m-wx.open .m-wx-more { max-height: min(560px, 68vh); -webkit-overflow-scrolling: touch; }
body.ov-desk .m-wx-slot .m-wx-pick .m-wx-q { top: -14px; }

/* b397 (John): your own aeroplane a bright light blue (it was yellow), brighter than every other aircraft, with a glow;
   tap it for your flight's card */
.plane-marker { color: #5cf0ff; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .9)) drop-shadow(0 0 8px rgba(92, 240, 255, .75)); cursor: pointer; }
/* the departure and arrival procedures' waypoints purple, their published height and speed in light purple */
.wpt-sidstar .wpt-dot, .wpt-sidstar.wpt-restrict .wpt-dot { background: #b77cff; box-shadow: 0 0 7px rgba(183, 124, 255, .95); }
.wpt-sidstar .wpt-label em, .wpt-sidstar.wpt-restrict .wpt-label em { color: #e2c8ff; }
/* your flight's card on the map */
.own-cs { color: #5cf0ff !important; }
.own-tag { color: #5cf0ff !important; border-color: rgba(92, 240, 255, .45) !important; }
.own-route { display: flex; align-items: center; gap: 6px; margin: 4px 0 2px; font-size: 17px; font-weight: 700; letter-spacing: 1px; color: #fff; }
.own-route .chv { width: 15px; height: 15px; fill: none; stroke: #5cf0ff; stroke-width: 2.4; }
.own-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; margin-top: 10px; }
.own-r { padding: 7px 9px; border-radius: 9px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(92, 240, 255, .14); min-width: 0; }
.own-r small { display: block; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; color: #8aa3bd; }
.own-r b { display: block; margin-top: 2px; font-size: 15px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* b397: on a tablet the loading figures (passengers, cargo, fuel planned and on board, and the loading bar) a size
   down and free to take a second line, so a fuel figure such as 4,920 / 4,909 KG never runs into LOADING beside it */
body.ov-desk .m-desk .m-ground > div { min-width: 0; }
/* b398 (John, a tablet with a flight on): the figure cards a size down so the whole card fits the screen without
   scrolling and the stages along the foot have their room; the loading figures (cargo, fuel planned and on board)
   on one line, smaller, and only on a second line when a narrow upright tablet truly has no room */
body.ov-desk .m-desk .m-stats { gap: calc(var(--u) * .7); }
body.ov-desk .m-desk .m-stats > div { padding: calc(var(--u) * .75) calc(var(--u) * .9) calc(var(--u) * .7); border-radius: calc(var(--u) * .9); }
body.ov-desk .m-desk .m-stats small { font-size: calc(var(--u) * .78); }
body.ov-desk .m-desk .m-stats b { font-size: calc(var(--u) * 2.35); margin-top: calc(var(--u) * .25); }
body.ov-desk .m-desk .m-stats b u { font-size: .5em; }
body.ov-desk .m-desk .m-ground b { font-size: calc(var(--u) * 1.75); line-height: 1.15; white-space: nowrap; }
body.ov-desk .m-desk .m-ground .m-load b { font-size: calc(var(--u) * 1.9); }
@media (orientation: portrait) {
  body.ov-desk .m-desk .m-ground b { font-size: calc(var(--u) * 1.6); white-space: normal; overflow-wrap: break-word; }
}
body.ov-desk .m-desk .m-stats + .m-stats { margin-top: calc(var(--u) * .6) !important; }

/* b400 (John, a phone with a flight on): the flight card and the weather under it fit one screen without scrolling.
   A little less space round the card's parts, the departure and arrival boxes on one line, and the weather, closed,
   shows its first row (wind, visibility, cloud); opened, it shows every reading, the report and the airports, and the
   page scrolls cleanly */
@media (max-width: 640px) {
  body.handheld:not(.ov-desk) #view-overview { padding-top: 10px; padding-bottom: calc(14px + var(--sab)); }
  body.handheld:not(.ov-desk) .m-ov:not(.m-desk) > .m-card { padding-top: 14px; padding-bottom: 12px; }
  body.handheld:not(.ov-desk) .m-ov:not(.m-desk) .m-top { padding-bottom: 10px; }
  body.handheld:not(.ov-desk) .m-ov:not(.m-desk) .m-route { margin-top: 10px; }
  body.handheld:not(.ov-desk) .m-ov:not(.m-desk) .m-stats.m-fly { margin-top: 10px; }
  body.handheld:not(.ov-desk) .m-ov:not(.m-desk) .m-dots { margin-top: 12px; }
  body.handheld:not(.ov-desk) .m-facts > div { padding: 7px 11px; }
  body.handheld:not(.ov-desk) .m-facts b { font-size: clamp(12px, 3.45vw, 14px); letter-spacing: .1px; }
  body.handheld:not(.ov-desk) .m-wx-head { padding: 8px 12px 7px; }
  body.handheld:not(.ov-desk) .m-wx-ic { width: 38px; height: 38px; font-size: 24px; }
  body.handheld:not(.ov-desk) .m-wx-main em { font-size: 12px; }
  body.handheld:not(.ov-desk) .m-wx:not(.open) .m-wx-grid > div:nth-child(n+4) { display: none; }
  body.handheld:not(.ov-desk) .m-wx:not(.open) .m-wx-grid { padding-bottom: 10px; }
}
/* the shortest phones (an iPhone SE): the closed weather is its heading line alone */
@media (max-width: 640px) and (max-height: 700px) {
  body.handheld:not(.ov-desk) .m-wx:not(.open) .m-wx-grid { display: none; }
}

/* b400: a waypoint already passed steps aside, so the map shows the route still to fly */
.wpt-marker.wpt-passed { display: none; }

/* b401 (John): your own aeroplane a subtle light blue, a touch brighter than the traffic (#5fa9ff), with only a soft
   glow (the b397 aquamarine was too loud); your card's accents the same */
.plane-marker { color: #9ad8ff; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .9)) drop-shadow(0 0 4px rgba(154, 216, 255, .45)); }
.own-cs, .own-tag { color: #9ad8ff !important; }
/* b573 (John): Navigraph-bright: you a pink arrow with a soft glow, the route's waypoints a vivid blue, the
   procedures' a vivid purple, their names white */
.plane-marker.own-arrow { width: 34px; height: 34px; color: #ff7fd4; filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, .95)) drop-shadow(0 0 7px rgba(255, 110, 205, .7)); }
.wpt-dot { background: #2f9dff; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85), 0 0 8px rgba(47, 157, 255, .95); }
.wpt-sidstar .wpt-dot, .wpt-sidstar.wpt-restrict .wpt-dot { background: #b65cff; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85), 0 0 8px rgba(182, 92, 255, .95); }
.wpt-label { color: #fff; text-shadow: 0 0 2px #000, 0 0 5px #000, 0 0 9px rgba(0, 0, 0, .8); }
.wpt-label em { color: #9fd0ff; }
.own-tag { border-color: rgba(154, 216, 255, .4) !important; }
.own-route .chv { stroke: #9ad8ff; }
.own-r { border-color: rgba(154, 216, 255, .14); }
/* b401: the route ahead on your flight's card */
.own-ahead-h { margin-top: 12px; }
.own-ahead { display: grid; gap: 3px; margin-top: 4px; max-height: 260px; overflow-y: auto; }
.own-wp { display: flex; justify-content: space-between; gap: 10px; padding: 5px 9px; border-radius: 7px; background: rgba(255, 255, 255, .03); font-size: 13px; }
.own-wp b { color: #fff; letter-spacing: .6px; }
.own-wp span { color: #b7c6d8; font-weight: 600; font-variant-numeric: tabular-nums; }
.own-wp.proc b, .own-wp.proc span { color: #d9c2ff; }

/* =====================================================================
   b402 (John): the overview on a desktop window that is not full screen. The card scales with the height of the
   window as well as its width, so it always fits without scrolling, and each figure is sized to its own card (the
   figures ran into each other). On the ground the cards are one row: passengers, cargo, fuel, then the loading,
   the speed while taxiing or the miles to go; what is planned sits under each figure in small.
   ===================================================================== */
body:not(.handheld) .m-ov.m-desk { --u0: min(1vw, 1.55vh, calc((100vh - 168px) / 57)); }
.m-ov.m-desk .m-stats > div { container-type: inline-size; min-width: 0; }
body .m-ov.m-desk .m-stats > div > b { font-size: min(calc(var(--u) * 3), 18cqw); white-space: nowrap; }
body.ov-desk .m-ov.m-desk .m-stats > div > b { font-size: min(calc(var(--u) * 2.35), 18cqw); }
.m-ov.m-desk .m-ground em { display: block; font-style: normal; font-size: calc(var(--u) * .9); font-weight: 600; letter-spacing: .6px; color: var(--text-dim); margin-top: calc(var(--u) * .3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-ov.m-desk .m-ground .m-load { align-content: end; }

/* GSX beside SIMBRIEF; on a phone the two sit in a row under the phase */
.m-btn.m-gsx { color: #ffd27a; border-color: rgba(255, 179, 0, .45); background: rgba(255, 179, 0, .08); }
.m-btn.m-gsx:hover { background: rgba(255, 179, 0, .16); border-color: #ffb300; }
.m-pbtns { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin-top: 12px; }
.m-pbtns .m-btn { padding: 11px 10px; font-size: 13px; text-align: center; }
.m-ov.m-desk .m-pbtns { display: none; }

/* b455: the score in the left column (it ends where the weather begins), START NEXT SECTOR or END DAY and ADD MORE
   SECTORS under the weather */
.m-endrow { display: block; }
/* b601 (John): the same two columns as the row above (m-mid), so the flight score ends where the briefing and the weather begin */
.m-desk .m-endrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, calc(var(--u) * 34)); gap: calc(var(--u) * 2.4); align-items: stretch; margin-top: calc(var(--u) * 1.4); }
.m-desk .m-endrow-r { display: flex; flex-direction: column; gap: calc(var(--u) * .9); justify-content: flex-start; }
.m-dayacts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.m-desk .m-dayacts { margin-top: 0; grid-template-columns: 1fr 1fr; gap: calc(var(--u) * .9); }
/* b457 (John): EDIT PLAN and END DAY square, side by side; the score card beside them stretched to the same top and bottom */
.m-desk .m-endrow .m-dayacts .m-day { aspect-ratio: 7 / 5; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: calc(var(--u) * .8); }
.m-desk .m-endrow-l { display: flex; }
.m-desk .m-endrow-l > .m-score { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.m-day { padding: 12px 14px; border-radius: 14px; cursor: pointer; text-align: left; color: #fff; font-family: var(--ui); border: 1px solid rgba(120, 200, 255, .35); background: rgba(63, 182, 255, .1); animation: m-next-in .5s cubic-bezier(.2, .8, .2, 1) both; }
.m-day.end { background: linear-gradient(135deg, #1fa85a, #2ee66b); border-color: transparent; color: #04140a; }
.m-day:hover { filter: brightness(1.08); }
.m-day:disabled { opacity: .38; cursor: not-allowed; filter: grayscale(.6); }
.m-mid-r .m-dayacts { grid-template-columns: 1fr 1fr; }
.m-day-gap { display: block; }   /* b459: END DAY's place, kept empty in the air so EDIT PLAN stays on the right */
.m-desk .m-mid-r .m-dayacts { margin-top: calc(var(--u) * .9); }
.day-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(63, 182, 255, .16); }
.ls-b.bad { border-color: rgba(255, 90, 90, .5); color: #ffb3b3; }
.day-legs { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 4px; }
.day-leg { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(63, 182, 255, .06); border: 1px solid rgba(63, 182, 255, .18); font: 700 13.5px var(--ui); color: #e3eefc; }
.day-leg b { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 50%; background: #2b7fff; color: #fff; font-size: 11px; }
.day-leg em { font-style: normal; font-weight: 600; color: var(--text-dim); margin-left: 6px; }
.day-st { font-style: normal; font-size: 11px; letter-spacing: 1.2px; color: #8fd0ff; }
.day-st.flown { color: var(--green); }
.day-st.cancelled, .day-st.noshow { color: var(--red, #ff5a5a); }
.m-day small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; opacity: .85; }
.m-day b { display: block; margin-top: 2px; font-size: 16px; font-weight: 800; letter-spacing: 1.1px; }
.m-desk .m-day { padding: calc(var(--u) * 1) calc(var(--u) * 1.4); border-radius: calc(var(--u) * 1.2); }
.m-desk .m-day small { font-size: calc(var(--u) * .8); }
.m-desk .m-day b { font-size: calc(var(--u) * 1.6); }
/* b455: the ground handling guide */
.gh-card { width: min(980px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; }
.gh-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.gh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin-top: 10px; }
@media (max-width: 760px) { .gh-grid { grid-template-columns: 1fr; } }
.gh-sec { padding: 12px 14px; border-radius: 12px; background: rgba(63, 182, 255, .06); border: 1px solid rgba(63, 182, 255, .2); }
.gh-h { display: flex; align-items: center; gap: 9px; font: 800 12.5px var(--ui); letter-spacing: 1.6px; color: #cfe6ff; }
.gh-h i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-style: normal; font-size: 12px; background: #2b7fff; color: #fff; }
.gh-sec ul { margin: 8px 0 0; padding-left: 18px; }
.gh-sec li { margin: 4px 0; font-size: 13.5px; line-height: 1.45; color: var(--text-dim); }
.gh-sec li b { color: var(--text); }
.gsx-foot .gh-open { display: inline-block; margin: 6px 0 0; }
.day-p { margin: 12px 0; font-size: 14px; line-height: 1.5; color: var(--text-dim); }
.day-p b { color: var(--text); }
.day-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.day-sel { flex: 1 1 220px; min-width: 0; padding: 9px 10px; border-radius: 10px; border: 1px solid rgba(63, 182, 255, .45); background: rgba(10, 20, 36, .9); color: #cfe6ff; font: 600 13px var(--ui); }
/* START NEXT SECTOR, under the score */
.m-next { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; margin-top: 10px; padding: 13px 16px;
  border-radius: 14px; border: 1px solid transparent; cursor: pointer; text-align: left; color: #fff;
  background: linear-gradient(135deg, #2b7fff, #3fb6ff); box-shadow: 0 6px 22px rgba(43, 127, 255, .3);
  font-family: var(--ui); animation: m-next-in .5s cubic-bezier(.2, .8, .2, 1) both; }
.m-next:hover { background: linear-gradient(135deg, #3b8bff, #5cc3ff); }
.m-next:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.m-next small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; opacity: .85; }
.m-next b { display: block; margin-top: 2px; font-size: 18px; font-weight: 800; letter-spacing: 1.2px; }
.m-next em { display: flex; align-items: center; gap: 6px; font-style: normal; font-size: 16px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.m-next em .chv { width: 15px; height: 15px; }
.m-desk .m-next { margin-top: 0; padding: calc(var(--u) * 1.1) calc(var(--u) * 1.6); border-radius: calc(var(--u) * 1.2); }
.m-desk .m-next small { font-size: calc(var(--u) * .8); }
.m-desk .m-next b { font-size: calc(var(--u) * 1.9); }
.m-desk .m-next em { font-size: calc(var(--u) * 1.5); }
.m-desk .m-next em .chv { width: calc(var(--u) * 1.3); height: calc(var(--u) * 1.3); }
@keyframes m-next-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* the GSX pop-up */
.modal-card.gsx-card { width: min(620px, 100%); padding: 24px 24px 20px; font-family: var(--ui); }
.gsx-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; padding-right: 34px; }
.gsx-h small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.6px; color: var(--text-dim); }
.gsx-h b { display: block; font-size: 30px; font-weight: 800; letter-spacing: 2px; color: #ffd27a; line-height: 1.1; }
.gsx-now { font-size: 13px; font-weight: 600; color: #cfe6ff; text-align: right; }
.gsx-why { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45; color: #ffd27a; background: rgba(255, 179, 0, .07); border: 1px solid rgba(255, 179, 0, .3); }
.gsx-quick { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.gsx-q { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 6px; min-height: 60px; padding: 10px 10px;
  border-radius: 12px; cursor: pointer; text-align: left; color: #fff; font-family: var(--ui);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(130, 200, 255, .22); transition: background .15s ease, border-color .15s ease, transform .1s ease; }
.gsx-q b { font-size: 12.5px; font-weight: 800; letter-spacing: .8px; white-space: nowrap; }
.gsx-q:hover:not(:disabled) { background: rgba(63, 182, 255, .14); border-color: #3fb6ff; }
.gsx-q:active:not(:disabled) { transform: scale(.98); }
.gsx-q.on { border-color: #ffb300; background: rgba(255, 179, 0, .12); }
.gsx-q:disabled, .gsx-i:disabled, .gsx-open:disabled, .gsx-link:disabled { opacity: .45; cursor: default; }
.gsx-st { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: 1px; padding: 3px 7px; border-radius: 999px; white-space: nowrap; }
.gsx-st.req { color: #ffd27a; background: rgba(255, 179, 0, .14); }
.gsx-st.now { color: #8fd3ff; background: rgba(63, 182, 255, .16); }
.gsx-st.done { color: #2ee66b; background: rgba(46, 230, 107, .13); }
.gsx-menu { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.gsx-mt small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px; color: var(--text-dim); }
.gsx-mt b { display: block; margin-top: 3px; font-size: 16px; font-weight: 700; color: #fff; }
.gsx-items { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; }
.gsx-i { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 11px; cursor: pointer; text-align: left; color: #e8f2ff; font-family: var(--ui);
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08); transition: background .15s ease, border-color .15s ease; }
.gsx-i:hover:not(:disabled) { background: rgba(63, 182, 255, .12); border-color: rgba(63, 182, 255, .6); }
.gsx-i span { flex: 0 0 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #ffd27a; background: rgba(255, 179, 0, .1); }
.gsx-i b { flex: 1 1 auto; font-size: 14.5px; font-weight: 600; }
.gsx-open { width: 100%; padding: 14px; border-radius: 12px; cursor: pointer; font: 800 14px var(--ui); letter-spacing: 1.6px; color: #0b0b0b; background: #ffb300; border: 0; }
.gsx-open:hover:not(:disabled) { background: #ffc233; }
.gsx-link { margin-top: 10px; padding: 6px 0; background: none; border: 0; cursor: pointer; font: 700 12px var(--ui); letter-spacing: 1.3px; color: var(--text-dim); }
.gsx-link:hover:not(:disabled) { color: #fff; }
.gsx-note { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; color: #cfe6ff; background: rgba(63, 182, 255, .08); }
.gsx-note.ok { color: #2ee66b; background: rgba(46, 230, 107, .08); }
.gsx-note.bad { color: #ffb3b3; background: rgba(255, 90, 90, .08); }
.gsx-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); border-top-color: #ffb300; animation: gsx-spin .8s linear infinite; }
@keyframes gsx-spin { to { transform: rotate(360deg); } }
.gsx-foot { margin-top: 14px; font-size: 12px; line-height: 1.45; color: var(--text-dim); }
@media (max-width: 640px) {
  .modal-card.gsx-card { padding: 20px 16px 16px; border-radius: 18px; }
  .gsx-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gsx-quick .gsx-q:first-child { grid-column: 1 / -1; }
  .gsx-h b { font-size: 26px; }
  .gsx-now { font-size: 12px; }
}
/* the score and START NEXT SECTOR together are taller than the figures: a little smaller so they still fit */
body:not(.handheld) .m-ov.m-desk:has(.m-next) { --u0: min(1vw, 1.55vh, calc((100vh - 168px) / 66)); }
/* b402: on a phone the buttons are a slim row, START NEXT SECTOR one line, and the GSX pop-up stacks its heading */
body.handheld:not(.ov-desk) .m-pbtns { margin-top: 10px; gap: 6px; }
body.handheld:not(.ov-desk) .m-pbtns .m-btn { padding: 8px 6px; font-size: 12px; letter-spacing: 1px; border-radius: 9px; }
@media (max-width: 640px) {
  .m-next { padding: 11px 14px; gap: 10px; }
  .m-next b { font-size: 15px; letter-spacing: .6px; white-space: nowrap; }
  .m-next em { font-size: 13.5px; letter-spacing: .4px; }
  .m-next em .chv { width: 12px; height: 12px; }
  .gsx-h { flex-direction: column; align-items: flex-start; gap: 6px; }
  .gsx-h small { white-space: nowrap; }
  .gsx-now { text-align: left; }
  .gsx-q { min-height: 52px; padding: 9px 10px; }
  .gsx-i b { font-size: 14px; }
}
body.ov-desk .m-ov.m-desk:has(.m-next) { --u0: min(1.42vw, 1.05vh); }

/* b488 (John): MY VA over the whole window while GENERATE PLAN or the briefing is up (the sidebar and header hidden
   under it), the frame at its own size, not scaled */
body.va-full #view-va { position: fixed !important; inset: 0 !important; z-index: 9000; display: flex !important; background: #05080d; overflow: hidden; }
body.va-full #view-va #va-frame { flex: 1 1 auto !important; width: 100% !important; height: 100% !important; transform: none !important; max-width: none; border: 0; }
body.va-full #views { z-index: 9000 !important; inset: 0 !important; top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important; }
body.va-full #topbar, body.va-full #tabs, body.va-full #mtabs { visibility: hidden; }
/* b490 (John): the weather refreshed: the button flashes a green tick */
.m-wx-ref.done { color: #2ee66b; border-color: rgba(46, 230, 107, .7); background: rgba(46, 230, 107, .14); animation: mwxdone .5s ease; }
.m-wx-ref.done svg { stroke-width: 2.8; }
@keyframes mwxdone { 0% { transform: scale(.7); } 60% { transform: scale(1.15); } 100% { transform: none; } }

/* b496: the streak switch fits the smallest phones (AIRLINE was clipped on an iPhone SE) */
@media (max-width: 380px) { .aw-streak-toggle button { padding: 5px 8px; letter-spacing: 1px; } }

/* b498 (John, 11" iPad): the log and the departures board take the width of the screen, as the map does */
body.handheld.ov-desk #view-log, body.handheld.ov-desk #view-board { padding: 12px 12px 6px; }
body.handheld.ov-desk .log-panel, body.handheld.ov-desk .board-panel { padding: 16px 20px; }
/* b498: the community overview's THIS MONTH | 3 MONTHS | ALL TIME inside its narrow card */
.cm-ov .cm-seg { width: 100%; box-sizing: border-box; }
.cm-ov .cm-seg button { flex: 1 1 0; min-width: 0; padding-left: 4px; padding-right: 4px; letter-spacing: 1px; white-space: nowrap; }

/* b500 (John): BRIEFING and GROUND CREW on the overview bigger, easy to hit on a tablet beside the sim */
.m-desk .m-btn { padding: calc(var(--u) * 1.35) calc(var(--u) * 1.2); font-size: calc(var(--u) * 1.22); border-radius: calc(var(--u) * .95); min-height: calc(var(--u) * 4.2); }
.m-desk .m-btns:has(> .m-btn:nth-child(3)) > .m-btn { font-size: calc(var(--u) * 1.1); padding-left: calc(var(--u) * .8); padding-right: calc(var(--u) * .8); }
.m-pbtns .m-btn { padding: 14px 10px; font-size: 14px; min-height: 48px; }

/* b502 (John): END DAY alone now (EDIT PLAN gone): on the right, the width of a button in the row above it (LOAD
   SHEET's), flush with its right edge, the same height */
.m-mid-r .m-dayacts { display: flex; justify-content: flex-end; }
.m-mid-r .m-dayacts > * { flex: 0 0 calc((100% - var(--u, 10px) * 1.4) / 3); max-width: calc((100% - var(--u, 10px) * 1.4) / 3); }
.m-desk .m-mid-r .m-day { padding: calc(var(--u) * .9) calc(var(--u) * .8); text-align: center; min-height: calc(var(--u) * 4.2); display: flex; flex-direction: column; justify-content: center; align-items: center; aspect-ratio: auto; }
.m-desk .m-mid-r .m-day small { display: none; }
.m-desk .m-mid-r .m-day b { margin-top: 0; font-size: calc(var(--u) * 1.1); letter-spacing: 1.4px; white-space: nowrap; }

/* b504 (John): END DAY in the app's own blue, quieter than the green it was */
.m-day.end { background: linear-gradient(160deg, rgba(63, 182, 255, .24), rgba(30, 90, 170, .2)); border: 1px solid rgba(120, 205, 255, .55); color: #e3f3ff; box-shadow: inset 0 1px 0 rgba(210, 238, 255, .18); }
.m-day.end:hover { filter: none; background: linear-gradient(160deg, rgba(63, 182, 255, .34), rgba(30, 90, 170, .28)); }
.m-day.end:disabled { filter: none; opacity: .45; }

/* b515 (John): DECLARE EMERGENCY beside END DAY, red, the same size */
.m-mid-r .m-dayacts { gap: calc(var(--u, 10px) * .7); }
.m-day.emerg { background: linear-gradient(160deg, rgba(220, 50, 60, .32), rgba(120, 20, 30, .3)); border: 1px solid rgba(255, 110, 110, .6); color: #ffe1e1; }
.m-day.emerg:hover { filter: none; background: linear-gradient(160deg, rgba(235, 60, 70, .42), rgba(140, 24, 36, .38)); }
.m-day.emerg:disabled { opacity: .5; }
/* b516: DECLARE EMERG on one line, sized to its box */
.m-day.emerg b { margin-top: 0; white-space: nowrap; font-size: 15px; letter-spacing: .8px; }
.m-desk .m-mid-r .m-day.emerg b { font-size: calc(var(--u) * .95); letter-spacing: .6px; }
/* b516: an emergency's briefing, a press from its line in the log */
.em-acts { margin-top: 10px; display: flex; }
.em-brief { padding: 10px 16px; border-radius: 12px; border: 1px solid rgba(120, 200, 255, .35); background: rgba(63, 182, 255, .1); color: #fff; font-family: var(--ui); font-size: 12px; font-weight: 800; letter-spacing: 1.4px; cursor: pointer; }
.em-brief:hover { background: rgba(63, 182, 255, .18); }
.em-brief:disabled { opacity: .5; }
/* b521 (John): the load sheet on a tablet sideways (a wide, short screen): tighter rows, a slimmer BOARDED line and
   shorter step buttons, so it fits the screen with little or no shrinking */
@media (min-width: 900px) and (max-height: 900px) {
  .ls-boarded { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 7px 12px; margin: 0 40px 8px 0; }
  .ls-h b { font-size: 26px; }
  .ls-sec { margin-top: 10px; padding-top: 8px; }
  .ls-r { padding: 3px 0; }
  .ls-rail { gap: 9px; padding-top: 10px; }
  .ls-rb { min-height: 62px; padding: 9px 16px; }
  .mcdu-scr { padding: 10px 14px 12px; }
  .mc-c b { font-size: 19px; }
}
/* b522 (John): the load sheet on a wide screen: WEATHER top right, the four steps and SEND TO MCDU down the right
   with their foot level with the take-off data's, the MCDU narrower and taller, its notes under both columns */
.ls-perf-notes, .ls-wx-r { display: none; }
@media (min-width: 900px) {
  .ls-split { align-items: stretch; }
  .ls-split .ls-main .ls-wxsec { display: none; }
  .ls-split .ls-main .ls-perf-f, .ls-split .ls-main .ls-stale, .ls-split .ls-main .ls-fresh { display: none; }
  .ls-perf-notes { display: block; margin-top: 4px; }
  .ls-rail { position: static; padding-top: 0; justify-content: space-between; }
  .ls-rail .ls-wx-r { display: block; }
  .ls-rail .ls-wx-r .ls-metar { overflow-wrap: anywhere; }
  .ls-rail-steps { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
  .ls-split .mcdu { max-width: 520px; margin: 10px auto 0; }
  .ls-split .mcdu-scr { padding: 18px 20px 20px; }
  .ls-split .mc-title { margin-bottom: 14px; }
  .ls-split .mc-grid { row-gap: 14px; }
}
@media (min-width: 900px) and (max-height: 900px) {
  .ls-rail-steps { gap: 9px; }
  .ls-split .mcdu-scr { padding: 14px 18px 16px; }
  .ls-split .mc-grid { row-gap: 10px; }
}

/* b524 (John): the phone overview's row of buttons (SCHEDULE FLIGHT, BRIEFING, GROUND CREW, LOAD SHEET, EDIT GATE) ran
   out of their boxes and into each other at 390 px wide. Each label now wraps onto two lines inside its own button and
   its size follows the width each button really gets (container queries on the card and on the row), so it holds
   from 320 to 480 px. Too narrow for five in a row they sit three over two */
body.handheld:not(.ov-desk) .m-ov .m-card { container: m-card / inline-size; }
body.handheld:not(.ov-desk) .m-pbtns { --n: 1; --gap: 5px; container-type: inline-size; gap: var(--gap); }
body.handheld:not(.ov-desk) .m-pbtns:has(> .m-btn:nth-child(2)) { --n: 2; }
body.handheld:not(.ov-desk) .m-pbtns:has(> .m-btn:nth-child(3)) { --n: 3; }
body.handheld:not(.ov-desk) .m-pbtns:has(> .m-btn:nth-child(4)) { --n: 4; }
body.handheld:not(.ov-desk) .m-pbtns:has(> .m-btn:nth-child(5)) { --n: 5; }
body.handheld:not(.ov-desk) .m-pbtns .m-btn {
  display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 46px; padding: 6px 3px;
  overflow: hidden; white-space: normal; text-align: center; line-height: 1.2; letter-spacing: .15px;
  /* one button's share of the row, and a longest word (SCHEDULE, BRIEFING) that fits in it */
  font-size: clamp(9px, calc((100cqi - (var(--n) - 1) * var(--gap)) / var(--n) / 5.9 - 1.2px), 12.5px);
}
@container m-card (max-width: 318px) {
  body.handheld:not(.ov-desk) .m-pbtns:has(> .m-btn:nth-child(5)) { --n: 3; grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  body.handheld:not(.ov-desk) .m-pbtns:has(> .m-btn:nth-child(5)) > .m-btn { grid-column: span 2; min-height: 40px; }
  body.handheld:not(.ov-desk) .m-pbtns:has(> .m-btn:nth-child(5)) > .m-btn:nth-child(n+4) { grid-column: span 3; }
}

/* b525 (John): REFRESH at the overview's top right (phone, tablet, desktop): the weather card's own round button and
   motion (.m-wx-ref: it turns while the overview reads the latest flight and day, then a green tick) */
.m-ref-slot { position: absolute; top: 10px; right: 10px; z-index: 4; line-height: 0; }
.m-ref-slot .ov-ref { position: static; width: 28px; height: 28px; opacity: .85; }
.m-ref-slot .ov-ref:hover, .m-ref-slot .ov-ref.spin, .m-ref-slot .ov-ref.done { opacity: 1; }
.m-ref-slot .ov-ref svg { width: 14px; height: 14px; }
/* on the desktop and tablet card the clocks sit at the top right: the button tucked into the corner above them */
.m-desk .m-ref-slot { top: 6px; right: 6px; }
.m-desk .m-ref-slot .ov-ref { width: 24px; height: 24px; }
.m-desk .m-ref-slot .ov-ref svg { width: 12px; height: 12px; }
/* b525 (John, phone): the briefing over MY VA keeps the frame to the screen's width. The full-window rule (b488) had
   lifted the phone's width hold (b291), so iOS widened the frame to the OFP's longest line and the page slid sideways */
@media (max-width: 640px) {
  body.va-full #view-va #va-frame { width: 1px !important; min-width: 100% !important; max-width: 100% !important; }
  body.va-full #view-va { overflow-x: hidden; }
}
/* b525: the pilots' boards locked on the First Officer plan, inside COMMUNITY (the airlines open beside it) */
.cm-gate.cm-gate-in { margin-top: 24px; }
.cm-part-sw button.cm-locked { color: #8d97a8; }
/* b525: the overview's weather on the First Officer plan: a padlock line in the weather card's place */
.m-wx-lock { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 14px 16px; cursor: pointer; font-size: 13px; color: #9fb0c8; }
.m-wx-lock b { letter-spacing: 2px; color: #e8ecf3; font-size: 12px; }
.m-wx-lock span { flex: 1 1 200px; min-width: 0; }
.m-wx-lock em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: 1.6px; color: #ffd23f; border: 1px solid rgba(255, 210, 63, .45); border-radius: 999px; padding: 5px 10px; }
/* b530: the PC copy out of date (or an update waiting for the flight to end), at the head of the overview */
.aw-pcup { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; max-width: 1100px; margin: 0 auto 12px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 210, 63, .08); border: 1px solid rgba(255, 210, 63, .4); color: #e8ecf3; font-size: 13px; }
.aw-pcup b { color: #ffd23f; letter-spacing: 1.6px; font-size: 12px; }
.aw-pcup span { flex: 1 1 260px; min-width: 0; color: #c9d4e3; }
.aw-pcup .btn { padding: 7px 14px; border-radius: 999px; border: 1px solid #ffd23f; color: #ffd23f; text-decoration: none; font-weight: 800; letter-spacing: 1.4px; font-size: 11.5px; }

/* b544 (John): the MAP tab's own map in the briefing's FLIGHT OVERVIEW (moved in while the briefing is open) */
.sbx-dock { position: relative; width: 100%; height: 100%; min-height: 360px; border-radius: inherit; overflow: hidden; background: #07090d; }
.sbx-dock > #map { position: absolute; inset: 0; }
.sbx-ctrl { position: absolute; top: 10px; left: 10px; z-index: 7; display: inline-flex; gap: 0; padding: 3px; border-radius: 999px;
  background: rgba(4, 7, 12, 0.88); border: 1px solid rgba(130, 200, 255, 0.28); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45); backdrop-filter: blur(6px); }
.sbx-ctrl button { border: 0; background: transparent; color: #9aa6b8; font: 800 11px var(--ui, Inter, sans-serif); letter-spacing: 1.4px; padding: 7px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.sbx-ctrl button:hover { color: #e8ecf3; }
.sbx-ctrl button.on { background: #3fb6ff; color: #04101f; }
.sbx-ctrl button.locked { opacity: 0.55; }
.sbx-ctrl button.locked::after { content: ' \1F512'; font-size: 10px; }
.sbx-fit { position: absolute; top: 10px; right: 10px; z-index: 7; width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(130, 200, 255, 0.28);
  background: rgba(4, 7, 12, 0.88); color: #cfe6ff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.sbx-fit svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sbx-dock .tfc-info { top: 54px; right: 10px; left: auto; bottom: auto; width: min(320px, calc(100% - 20px)); max-height: calc(100% - 64px); z-index: 8; }
@media (max-width: 640px) { .sbx-ctrl button { padding: 6px 9px; font-size: 10px; letter-spacing: 1px; } }

/* ======== b545 (John): ATC: SAYINTENTIONS | DEPARTURES & ARRIVALS ======== */
.atc-bar { display: flex; justify-content: center; flex: 0 0 auto; margin: 0 0 14px; }
.atc-pill { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; width: min(560px, 100%); height: 46px; padding: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(130, 200, 255, 0.24); isolation: isolate; box-sizing: border-box; }
.atc-pill button { position: relative; z-index: 1; border: 0; background: transparent; border-radius: 999px; color: #9aa6b8; cursor: pointer;
  font: 800 12.5px var(--ui) !important; letter-spacing: 1.8px; display: flex; align-items: center; justify-content: center; white-space: nowrap; transition: color .25s ease; }
.atc-pill button.on { color: #04101f; }
.atc-th { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 2); border-radius: 999px; background: #3fb6ff;
  box-shadow: 0 4px 14px rgba(63, 182, 255, 0.25); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) { .atc-th { transition: none; } }
#view-board:not(.atc-si) .si-panel { display: none; }
#view-board.atc-si .board-panel { display: none; }
.si-panel { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding-bottom: 18px; }
.si-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0 0 14px; }
.si-title { font: 800 22px var(--ui) !important; letter-spacing: 3px; color: #e8b84a; }
.si-title span { color: #cfd6e2; letter-spacing: 1px; }
.si-sub { margin-top: 4px; font-size: 13.5px; color: #8e9ab0; max-width: 720px; line-height: 1.45; }
.si-chip { flex: 0 0 auto; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); font: 800 11px var(--ui) !important; letter-spacing: 1.6px; color: #9aa6b8; white-space: nowrap; }
.si-chip.on { border-color: rgba(46, 230, 107, 0.5); color: #2ee66b; background: rgba(46, 230, 107, 0.08); }
.si-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.si-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.si-card { background: linear-gradient(160deg, #0f1a2c, #0a111d); border: 1px solid rgba(130, 200, 255, 0.2); border-radius: 14px; padding: 14px 16px; min-width: 0; }
.si-k2 { font: 800 11px var(--ui) !important; letter-spacing: 2.2px; color: #3fb6ff; margin-bottom: 10px; }
.si-empty { color: #8e9ab0; font-size: 13.5px; line-height: 1.45; }
.si-com { display: grid; grid-template-columns: 60px auto 1fr auto; align-items: baseline; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(130, 200, 255, 0.1); }
.si-com:last-of-type { border-bottom: 0; }
.si-k { font: 800 11px var(--ui) !important; letter-spacing: 1.6px; color: #8e9ab0; }
.si-com b { font: 800 24px var(--ui) !important; color: #2ee66b; font-variant-numeric: tabular-nums; }
.si-com em { font-style: normal; font-size: 12px; color: #9aa6b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.si-stb { font-size: 14px; color: #cfd6e2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.si-stb small { display: block; font-size: 9.5px; letter-spacing: 1.4px; color: #6c7890; }
.si-stb button { margin-left: 6px; border: 1px solid rgba(130, 200, 255, 0.3); background: transparent; color: #cfe6ff; border-radius: 8px; padding: 2px 8px; cursor: pointer; }
.si-acts { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.si-acts .btn { height: 38px; font-size: 12px; letter-spacing: 1.4px; }
.si-gate { font: 700 12px var(--ui) !important; letter-spacing: 1.4px; color: #9aa6b8; }
.si-gate b { color: #ffd23f; margin-left: 6px; font-size: 15px; }
.si-ap-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.si-ap-h > b { font: 800 22px var(--ui) !important; letter-spacing: 2px; color: #e8ecf3; }
.si-rwy { font: 700 12px var(--ui) !important; letter-spacing: 1.4px; color: #9aa6b8; }
.si-info { margin-left: auto; width: 30px; height: 30px; border-radius: 8px; background: #ffd23f; color: #0a0d13; display: flex; align-items: center; justify-content: center; font: 900 17px var(--ui) !important; }
.si-metar { font-size: 12.5px; color: #8e9ab0; margin: 0 0 8px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.si-freqs { display: flex; flex-direction: column; }
.si-f { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid rgba(130, 200, 255, 0.08); }
.si-ft { font: 800 10.5px var(--ui) !important; letter-spacing: 1.4px; color: #6fc3ff; }
.si-fn { font-size: 13px; color: #cfd6e2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.si-f > b { font: 800 16px var(--ui) !important; color: #e8ecf3; font-variant-numeric: tabular-nums; }
.si-tune { display: inline-flex; gap: 4px; }
.si-tune button { border: 1px solid rgba(63, 182, 255, 0.45); background: rgba(63, 182, 255, 0.1); color: #cfe6ff; border-radius: 8px; padding: 5px 8px; font: 800 10.5px var(--ui) !important; letter-spacing: 1px; cursor: pointer; }
.si-tune button:hover { background: #3fb6ff; color: #04101f; }
.si-atis { margin-top: 8px; }
.si-atis summary { cursor: pointer; font: 800 11px var(--ui) !important; letter-spacing: 1.6px; color: #ffd23f; }
.si-atis p { font-size: 13px; color: #cfd6e2; line-height: 1.5; margin: 6px 0 0; }
.si-link b { font: 800 13px var(--ui) !important; letter-spacing: 2px; color: #e8ecf3; }
.si-link p { font-size: 14px; color: #b8c2d4; line-height: 1.5; margin: 8px 0 12px; }
.si-link small, .si-foot { display: block; font-size: 11.5px; color: #6c7890; margin-top: 10px; line-height: 1.45; }
.si-link-row, .si-say { display: flex; gap: 8px; }
.si-link-row input, .si-say input { flex: 1 1 auto; min-width: 0; height: 42px; border-radius: 10px; border: 1px solid rgba(130, 200, 255, 0.28); background: #070b12; color: #e8ecf3; padding: 0 12px; font: 600 14px var(--ui) !important; }
.si-link-row .btn, .si-say .btn { height: 42px; padding: 0 18px; }
.si-tx { display: flex; flex-direction: column; }
.si-log { max-height: min(56vh, 520px); min-height: 180px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding-right: 4px; margin-bottom: 10px; }
.si-msg { border-left: 2px solid rgba(130, 200, 255, 0.25); padding-left: 10px; }
.si-mt { font: 700 11px var(--ui) !important; color: #6c7890; margin-right: 8px; }
.si-ms { font: 800 11px var(--ui) !important; letter-spacing: 1.2px; color: #6fc3ff; }
.si-me { margin-top: 3px; font-size: 14px; color: #e8ecf3; }
.si-me::before { content: "YOU  "; font-size: 10px; letter-spacing: 1.4px; color: #2ee66b; font-weight: 800; }
.si-atc { margin-top: 3px; font-size: 14px; color: #ffd23f; }
.si-atc::before { content: "ATC  "; font-size: 10px; letter-spacing: 1.4px; color: #ffb300; font-weight: 800; }
.si-note { padding: 10px 12px; border-radius: 10px; font-size: 13.5px; }
.si-note.ok { background: rgba(46, 230, 107, 0.08); color: #2ee66b; border: 1px solid rgba(46, 230, 107, 0.3); }
.si-note.bad { background: rgba(255, 77, 77, 0.08); color: #ff8a8a; border: 1px solid rgba(255, 77, 77, 0.3); }
.si-unlink { border: 0; background: none; color: #8e9ab0; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
@media (max-width: 900px) { .si-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .atc-pill { height: 42px; } .atc-pill button { font-size: 11px !important; letter-spacing: 1px; } .si-f { grid-template-columns: 74px minmax(0, 1fr) auto; } .si-f .si-tune { grid-column: 1 / -1; justify-self: end; } .si-com { grid-template-columns: 52px auto 1fr; } .si-stb { grid-column: 1 / -1; } }
.si-link-row .btn, .si-say .btn { background: #3fb6ff; color: #04101f; border: 0; font-weight: 800; letter-spacing: 1.6px; border-radius: 10px; cursor: pointer; }
.si-acts .btn { background: transparent; color: #cfe6ff; border: 1px solid rgba(130, 200, 255, 0.35); border-radius: 10px; padding: 0 14px; cursor: pointer; font-weight: 800; }

/* ======== b546 (John): SAYINTENTIONS as one column: the radios, then ON FREQUENCY (the local frequencies at its top,
   the calls, the reply), then the airports folded away ======== */
.si-wrap { width: 100%; max-width: 980px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.si-wrap > .si-head { margin: 0; }
.si-radios .si-com { padding: 6px 0; }
.si-onfreq { display: flex; flex-direction: column; border-color: rgba(63, 182, 255, 0.4); box-shadow: 0 0 0 1px rgba(63, 182, 255, 0.08), 0 18px 40px rgba(0, 0, 0, 0.35); }
.si-local { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid rgba(130, 200, 255, 0.14); }
.si-lf-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.si-lf-h .si-k2 { margin: 0; }
.si-lfmode { display: inline-flex; padding: 2px; border-radius: 999px; border: 1px solid rgba(130, 200, 255, 0.28); background: rgba(255, 255, 255, 0.03); }
.si-lfmode button { border: 0; background: transparent; color: #9aa6b8; border-radius: 999px; padding: 4px 10px; font: 800 10.5px var(--ui) !important; letter-spacing: 1.2px; cursor: pointer; }
.si-lfmode button.on { background: #3fb6ff; color: #04101f; }
.si-lfs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.si-lf { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; text-align: left; padding: 9px 11px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(130, 200, 255, 0.22); background: rgba(255, 255, 255, 0.03); color: #e8ecf3; transition: border-color .15s, background .15s; }
.si-lf:hover, .si-lf:active { border-color: #3fb6ff; background: rgba(63, 182, 255, 0.12); }
.si-lf span { font: 800 9.5px var(--ui) !important; letter-spacing: 1.4px; color: #6fc3ff; }
.si-lf b { font: 700 12.5px var(--ui) !important; color: #cfd6e2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.si-lf em { font: 800 17px var(--ui) !important; font-style: normal; color: #2ee66b; font-variant-numeric: tabular-nums; }
.si-lf-none { padding: 4px 0 2px; }
.si-of-h { margin-bottom: 8px; }
.si-onfreq .si-log { max-height: min(48vh, 460px); }
.si-ap > summary, .si-find > summary { list-style: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; cursor: pointer; }
.si-ap > summary::-webkit-details-marker, .si-find > summary::-webkit-details-marker { display: none; }
.si-ap > summary > b, .si-find > summary > b { font: 800 19px var(--ui) !important; letter-spacing: 2px; color: #e8ecf3; }
.si-ap-l { font: 800 10.5px var(--ui) !important; letter-spacing: 1.8px; color: #3fb6ff; min-width: 84px; }
.si-ap > summary .si-info { margin-left: 0; }
.si-chev { margin-left: auto; width: 10px; height: 10px; border-right: 2px solid #8e9ab0; border-bottom: 2px solid #8e9ab0; transform: rotate(-45deg); transition: transform .2s; }
details[open] > summary .si-chev { transform: rotate(45deg); }
.si-ap[open] > summary, .si-find[open] > summary { margin-bottom: 10px; }
.si-ap .si-atis { margin-top: 10px; }
.si-ap .si-atis p { margin-top: 4px; }
@media (max-width: 640px) {
  .si-lfs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .si-lf em { font-size: 15.5px !important; }
  .si-ap-l { min-width: 0; }
}
@media (max-width: 640px) { .si-head { flex-direction: column; gap: 8px; } .si-head .si-chip { align-self: flex-start; } }

/* b547 (John): the briefing's map maximised over FLIGHT OVERVIEW's left side, and back */
.sbp-ov.map-big { position: relative; }
.sbp-ov.map-big > .sbp-r { position: absolute; top: 0; bottom: 0; right: 0; left: 0; z-index: 6; }
.sbp-ov.map-big > .sbp-r > .sbp-map { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.sbx-max.on { border-color: #3fb6ff; color: #3fb6ff; }
@media (max-width: 980px) {
  .sbp-ov > .sbp-r > .sbp-map { transition: height .38s cubic-bezier(.2, .8, .2, 1), min-height .38s cubic-bezier(.2, .8, .2, 1); }
  .sbp-ov.map-big > .sbp-r { position: static; }
  .sbp-ov.map-big > .sbp-r > .sbp-map { height: min(78vh, 760px); min-height: min(78vh, 760px); }
}

/* b547 (John): BOARDING COMPLETE, over the briefing; the take-off data (the load sheet) over the briefing too */
#ls-modal { z-index: 450; }
.aw-boarded { position: fixed; inset: 0; z-index: 470; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(3, 6, 12, 0.78); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: awBdIn .22s ease; }
.aw-bd-box { width: min(460px, 100%); text-align: center; padding: 26px 26px 22px; border-radius: 22px; background: #0b1424;
  border: 1px solid rgba(46, 230, 107, 0.45); box-shadow: 0 0 0 1px rgba(46, 230, 107, 0.08), 0 30px 80px rgba(0, 0, 0, 0.6); animation: awBdPop .34s cubic-bezier(.2, .9, .25, 1.15); }
.aw-bd-tick { width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(46, 230, 107, 0.14); border: 2px solid #2ee66b; }
.aw-bd-tick svg { width: 30px; height: 30px; fill: none; stroke: #2ee66b; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 24; stroke-dashoffset: 24; animation: awBdTick .5s .18s ease forwards; }
.aw-bd-h { font: 800 19px var(--ui, Inter, sans-serif); letter-spacing: 3px; color: #2ee66b; margin-bottom: 12px; }
.aw-bd-box p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.55; color: #dfe6f0; }
.aw-bd-box .aw-bd-note { font-size: 13px; color: #9aa6b8; }
.aw-bd-ok { margin-top: 8px; min-width: 150px; padding: 13px 26px; border-radius: 999px; border: 0; cursor: pointer; background: #2ee66b; color: #04140a;
  font: 800 13px var(--ui, Inter, sans-serif); letter-spacing: 2px; }
.aw-bd-ok:hover { filter: brightness(1.08); }
@keyframes awBdIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes awBdPop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes awBdTick { to { stroke-dashoffset: 0; } }

/* b555 (John): the take-off data's MCDU squarer and bigger, as the real one is; SimBrief's notes on the figures at the
   top of the right-hand column, above the weather (they had sat under both columns) */
.ls-rail-notes { display: none; }
@media (min-width: 900px) {
  .ls-rail-notes { display: block; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(130, 200, 255, .16); }
  .ls-rail-notes .ls-perf-f, .ls-rail-notes .ls-stale, .ls-rail-notes .ls-fresh { display: block !important; margin: 0; font-size: 12.5px; line-height: 1.5; }
  .ls-rail-notes .ls-perf-f + .ls-stale, .ls-rail-notes .ls-perf-f + .ls-fresh { margin-top: 8px; }
  .ls-split .mcdu { width: min(100%, 470px); max-width: 470px; margin: 12px auto 0; padding: 12px; }
  .ls-split .mcdu-scr { aspect-ratio: 1 / 0.92; display: flex; flex-direction: column; padding: 20px 22px 18px; }
  .ls-split .mc-title { font-size: 22px; margin-bottom: 6px; }
  .ls-split .mc-grid { flex: 1 1 auto; align-content: space-evenly; row-gap: 0; }
  .ls-split .mc-c i { font-size: 13px; }
  .ls-split .mc-c b { font-size: 26px; }
  .ls-split .mcdu .sm { font-size: 19px; }
}
@media (min-width: 900px) and (max-height: 900px) {
  .ls-split .mcdu { width: min(100%, 430px); max-width: 430px; }
  .ls-split .mcdu-scr { padding: 16px 18px 14px; }
  .ls-split .mc-c b { font-size: 23px; }
}
.led-chip.stale { color: var(--text-dim, #8e9ab0); text-shadow: none; }   /* b556: an old plan, not a late flight */


/* ---------- b611 (John): the overview's buttons as cards (the desk card: a computer or a tablet). BRIEFING and GROUND
   SERVICES in the weather card's own look, stacked over it; the smaller cards (load sheet, aircraft controls, schedule,
   edit gate, emergency, end day) under the times on the left. Sizes are steps of --u, as the rest of the overview ---------- */
.m-desk .m-ocs { display: flex; flex-direction: column; gap: calc(var(--u) * .6); }
.m-desk .m-oc, .m-desk .m-act { display: flex; align-items: center; gap: calc(var(--u) * 1); width: 100%; margin: 0; padding: calc(var(--u) * .65) calc(var(--u) * 1); text-align: left; cursor: pointer;
  color: inherit; font: inherit; letter-spacing: 0; border-radius: calc(var(--u) * 1); background: rgba(255, 255, 255, .035); border: 1px solid rgba(130, 200, 255, .2);
  transition: border-color .15s ease, background .15s ease, transform .07s ease-out; -webkit-tap-highlight-color: transparent; }
.m-desk .m-oc:hover:not(:disabled), .m-desk .m-act:hover:not(:disabled) { border-color: rgba(63, 182, 255, .55); background: rgba(63, 182, 255, .07); }
.m-desk .m-oc:not(:disabled):active, .m-desk .m-act:not(:disabled):active { transform: translateY(1px) scale(.985); background: rgba(63, 182, 255, .1); }
.m-desk .m-oc:disabled, .m-desk .m-act:disabled { cursor: default; }
.m-desk .m-oc-ic { flex: none; display: grid; place-items: center; width: calc(var(--u) * 3.6); height: calc(var(--u) * 3.6); border-radius: calc(var(--u) * .8); background: rgba(255, 255, 255, .04); }
.m-desk .m-oc-ic svg { width: 56%; height: 56%; fill: none; stroke: #5cc4ff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.m-desk .oc-gs .m-oc-ic svg { stroke: #2ee66b; }
.m-desk .m-oc-tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.m-desk .m-oc-tx small { font-size: calc(var(--u) * .78); font-weight: 600; letter-spacing: 1px; color: var(--text-dim); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-desk .m-oc-tx b { font-family: var(--ui); font-size: calc(var(--u) * 1.5); font-weight: 700; color: #fff; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-desk .m-oc-tx em { font-style: normal; font-size: calc(var(--u) * .95); font-weight: 600; letter-spacing: .4px; color: #8fcfff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-desk .m-oc-tx em.g { color: #2ee66b; } .m-desk .m-oc-tx em.a { color: #ffc24d; } .m-desk .m-oc-tx em.d { color: #7d8aa0; }
.m-desk .m-oc-chev { flex: none; display: flex; color: var(--text-dim); } .m-desk .m-oc-chev .chv { width: calc(var(--u) * 1.3); height: calc(var(--u) * 1.3); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.m-desk .m-oc:disabled .m-oc-chev { opacity: .35; }
.m-desk .m-oc.hot { border-color: rgba(255, 194, 77, .6); box-shadow: 0 0 0 3px rgba(255, 194, 77, .08); }
.m-desk .m-oc-go { flex: none; padding: calc(var(--u) * .55) calc(var(--u) * 1.1); border-radius: calc(var(--u) * .7); font-size: calc(var(--u) * .9); font-weight: 800; letter-spacing: 1.4px; color: #1d1404; background: linear-gradient(180deg, #ffd36b, #f2a93b); }
/* b614 (John): the score figure in its own colour (the log's: gold 10, green 8 and over, yellow 5 and over, red) */
.m-score-h span.m-sc-gold { color: #ffd23f; } .m-score-h span.m-sc-green { color: #2ee66b; } .m-score-h span.m-sc-amber { color: #ffe14d; } .m-score-h span.m-sc-red { color: #ff6b6b; }
/* greyed cards and list items: there, in their place, not pressable */
.m-desk .m-oc.off { opacity: .55; } .m-desk .m-oc.off .m-oc-ic svg { stroke: #6f7d92; }
.m-desk .m-act.oc-em.off { border-color: rgba(130, 200, 255, .18); background: rgba(255, 255, 255, .03); } .m-desk .m-act.oc-em.off .m-oc-ic svg { stroke: #8a6f78; }
/* b612 (John): MORE on the left of the cards, a proper button as tall as BRIEFING; the cards a touch narrower. The list
   folds out of MORE to the left, over the left of the card, one item after another */
.m-desk .m-mid:has(> .m-ocgrid) { grid-template-columns: minmax(0, 1fr) minmax(0, calc(var(--u) * 37)); margin-bottom: calc(var(--u) * 1); }
.m-desk .m-mid-r.m-ocgrid { display: grid; grid-template-columns: calc(var(--u) * 7) minmax(0, 1fr); gap: calc(var(--u) * .6); align-items: start; }
.m-desk .m-mid-r.m-ocgrid.solo { grid-template-columns: minmax(0, 1fr); }
.m-desk .m-ocol { display: flex; flex-direction: column; gap: calc(var(--u) * .6); min-width: 0; }
/* the MY VA hub tiles' shading (va.html b517): the soft blue light in the top corner, dark navy, a fine blue edge, a deep shadow */
.m-desk .m-oc, .m-desk .m-more-b, .m-desk .m-ocgrid .m-wx-slot .m-wx, .m-desk .m-acts-end .m-act {
  background: radial-gradient(calc(var(--u) * 22) calc(var(--u) * 13) at 100% 0%, rgba(63, 182, 255, .14), transparent 70%), linear-gradient(160deg, #14233a 0%, #0c1320 60%, #0a0f18 100%);
  border: 1px solid rgba(63, 182, 255, .3); box-shadow: 0 calc(var(--u) * 1.2) calc(var(--u) * 3) rgba(0, 0, 0, .45), 0 0 calc(var(--u) * 2.5) rgba(63, 182, 255, .08); }
.m-desk .m-oc:hover:not(:disabled), .m-desk .m-more-b:hover, .m-desk .m-acts-end .m-act:hover:not(:disabled) { border-color: rgba(63, 182, 255, .6);
  background: radial-gradient(calc(var(--u) * 22) calc(var(--u) * 13) at 100% 0%, rgba(63, 182, 255, .22), transparent 70%), linear-gradient(160deg, #172840 0%, #0e1624 60%, #0b111b 100%); }
.m-desk .m-oc.hot { border-color: rgba(255, 194, 77, .65); box-shadow: 0 0 0 3px rgba(255, 194, 77, .08), 0 calc(var(--u) * 1.2) calc(var(--u) * 3) rgba(0, 0, 0, .45); }
/* b613 (John): MORE opens within itself: the panel grows down from the button to the bottom of the weather, then out to
   the left; its X folds it back the same way, into MORE. The panel is set on the cards' column (the grid), right edge on
   MORE's, and only its clip moves, so nothing under it is pushed about */
.m-desk .m-ocgrid { position: relative; }
.m-desk .m-more { position: static; }
.m-desk .m-ocgrid.landed { align-items: stretch; }
.m-desk .m-ocgrid.landed .m-more-b { height: 100%; min-height: calc(var(--u) * 5.9); }
.m-desk .m-more-b { width: 100%; height: calc(var(--u) * 5.9); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--u) * .35); position: relative;
  cursor: pointer; color: #dbeaf8; font: inherit; border-radius: calc(var(--u) * 1); transition: border-color .15s ease, background .15s ease, transform .07s ease-out; -webkit-tap-highlight-color: transparent; }
.m-desk .m-more-b svg { width: calc(var(--u) * 1.9); height: calc(var(--u) * 1.9); fill: none; stroke: #5cc4ff; stroke-width: 2; stroke-linecap: round; }
.m-desk .m-more-b span { font-size: calc(var(--u) * .82); font-weight: 800; letter-spacing: 1.6px; }
.m-desk .m-more-b b { position: absolute; top: calc(var(--u) * -.55); right: calc(var(--u) * -.55); min-width: calc(var(--u) * 1.6); height: calc(var(--u) * 1.6); padding: 0 calc(var(--u) * .4); border-radius: 999px;
  display: grid; place-items: center; font-size: calc(var(--u) * .8); font-weight: 800; color: #04101f; background: #5cc4ff; box-shadow: 0 0 0 2px #0a0f18; }
.m-desk .m-more-b.hot { border-color: rgba(255, 194, 77, .7); box-shadow: 0 0 0 3px rgba(255, 194, 77, .1), 0 calc(var(--u) * 1.2) calc(var(--u) * 3) rgba(0, 0, 0, .45); }
.m-desk .m-more-b.hot b { background: #ffc24d; color: #1d1404; } .m-desk .m-more-b.hot svg { stroke: #ffc24d; }
.m-desk .m-more-b:active { transform: translateY(1px) scale(.97); }
.m-desk .m-more-p { --w: calc(var(--u) * 27); --bw: calc(var(--u) * 7); --bh: calc(var(--u) * 5.9);
  position: absolute; top: 0; bottom: 0; left: calc(var(--bw) - var(--w)); width: var(--w); box-sizing: border-box; z-index: 30; overflow: hidden;
  display: flex; flex-direction: column; gap: calc(var(--u) * .5); padding: calc(var(--u) * .8); border-radius: calc(var(--u) * 1);
  background: radial-gradient(calc(var(--u) * 22) calc(var(--u) * 13) at 100% 0%, rgba(63, 182, 255, .16), transparent 70%), linear-gradient(160deg, #15253d 0%, #0c1320 60%, #0a0f18 100%);
  border: 1px solid rgba(63, 182, 255, .5); box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  clip-path: inset(0 0 calc(100% - var(--bh)) calc(100% - var(--bw)) round calc(var(--u) * 1)); visibility: hidden; pointer-events: none; }
.m-desk .m-more.open .m-more-p { visibility: visible; pointer-events: auto; animation: m-more-in .46s cubic-bezier(.3, .8, .25, 1) forwards; }
.m-desk .m-more.open.shut .m-more-p { pointer-events: none; animation: m-more-out .4s cubic-bezier(.5, 0, .7, .4) forwards; }
@keyframes m-more-in {
  0% { clip-path: inset(0 0 calc(100% - var(--bh)) calc(100% - var(--bw)) round calc(var(--u) * 1)); }
  45% { clip-path: inset(0 0 0 calc(100% - var(--bw)) round calc(var(--u) * 1)); }
  100% { clip-path: inset(0 0 0 0 round calc(var(--u) * 1)); } }
@keyframes m-more-out {
  0% { clip-path: inset(0 0 0 0 round calc(var(--u) * 1)); }
  55% { clip-path: inset(0 0 0 calc(100% - var(--bw)) round calc(var(--u) * 1)); }
  100% { clip-path: inset(0 0 calc(100% - var(--bh)) calc(100% - var(--bw)) round calc(var(--u) * 1)); } }
/* the items come in once it has opened, one after another; they go first as it shuts */
.m-desk .m-more-p > .m-act, .m-desk .m-more-h { opacity: 0; transform: translateX(calc(var(--u) * 1)); transition: opacity .18s ease, transform .22s cubic-bezier(.2, .8, .2, 1); }
.m-desk .m-more.open .m-more-p > .m-act, .m-desk .m-more.open .m-more-h { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 50ms + 260ms); }
.m-desk .m-more.open .m-more-h { transition-delay: 220ms; }
.m-desk .m-more.open.shut .m-more-p > .m-act, .m-desk .m-more.open.shut .m-more-h { opacity: 0; transform: translateX(calc(var(--u) * 1)); transition-delay: 0ms; transition-duration: .12s; }
.m-desk .m-more.open .m-more-p > .m-act:disabled { opacity: .5; }
.m-desk .m-more-h { display: flex; align-items: center; justify-content: space-between; padding: 0 0 calc(var(--u) * .2) calc(var(--u) * .4); font-size: calc(var(--u) * .72); font-weight: 800; letter-spacing: 1.6px; color: var(--text-dim); }
.m-desk .m-more-x { flex: none; width: calc(var(--u) * 2.6); height: calc(var(--u) * 2.6); border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #dbeaf8;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(130, 200, 255, .3); transition: transform .18s ease, background .15s ease; -webkit-tap-highlight-color: transparent; }
.m-desk .m-more-x svg { width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.m-desk .m-more-x:hover { background: rgba(63, 182, 255, .14); transform: rotate(90deg); }
.m-desk .m-more-x:active { transform: rotate(90deg) scale(.86); }
.m-desk .m-more-p .m-act { padding: calc(var(--u) * .45) calc(var(--u) * .9); flex: 1 1 0; min-height: 0; max-height: calc(var(--u) * 4.6); }
/* landed the column is only the weather: the list as tall as it needs, over the space below */
.m-desk .m-ocgrid.landed .m-more-p { padding: calc(var(--u) * .5); gap: calc(var(--u) * .3); }
.m-desk .m-ocgrid.landed .m-more-x { width: calc(var(--u) * 2.1); height: calc(var(--u) * 2.1); }
.m-desk .m-ocgrid.landed .m-more-h { padding-bottom: 0; }
.m-desk .m-more.open .m-more-b b { opacity: 0; }
.m-desk .m-more-p .m-act .m-oc-ic { width: calc(var(--u) * 2.5); height: calc(var(--u) * 2.5); }
.m-desk .m-more-p .m-act .m-oc-tx b { font-size: calc(var(--u) * 1.3); }
/* b615 (John): the options share the list's height and scale to it: each is a size container, its icon and words
   grow with the room it has (never smaller than before, capped so a short list does not balloon) */
.m-desk .m-more-p .m-act { container-type: size; max-height: calc(var(--u) * 8); gap: calc(var(--u) * 1); padding-block: calc(var(--u) * .3); }
.m-desk .m-more-p .m-act .m-oc-ic { width: clamp(calc(var(--u) * 2.5), 72cqh, calc(var(--u) * 3.6)); height: clamp(calc(var(--u) * 2.5), 72cqh, calc(var(--u) * 3.6)); }
.m-desk .m-more-p .m-act .m-oc-tx b { font-size: clamp(calc(var(--u) * 1.3), 38cqh, calc(var(--u) * 1.7)); }
.m-desk .m-more-p .m-act .m-oc-tx small { font-size: clamp(calc(var(--u) * .7), 19cqh, calc(var(--u) * .9)); }
/* b667 (John, LEVC 6 Nov): once the flight was complete the column is only the weather card, and the list was held to
   its height, so Aircraft controls and End day came out squashed (19 px high on the tablet). Landed, the list now
   hangs down over the cards below at its full size, with the room each option has before the flight */
.m-desk .m-ocgrid.landed .m-more-p { bottom: auto; padding: calc(var(--u) * .8); gap: calc(var(--u) * .5); }
.m-desk .m-ocgrid.landed .m-more-x { width: calc(var(--u) * 2.6); height: calc(var(--u) * 2.6); }
.m-desk .m-ocgrid.landed .m-more-h { padding-bottom: calc(var(--u) * .2); }
.m-desk .m-ocgrid.landed .m-more-p .m-act { flex: none; height: calc(var(--u) * 3.8); max-height: none; }
@media (prefers-reduced-motion: reduce) { .m-desk .m-more.open .m-more-p, .m-desk .m-more.open.shut .m-more-p { animation-duration: .01s; } .m-desk .m-more-p > .m-act, .m-desk .m-more-h { transition: none; } }
/* the weather, a touch narrower beside MORE: its lines stay one line each (cut short if they must), so it never grows */
.m-desk .m-ocgrid .m-wx-main small, .m-desk .m-ocgrid .m-wx-main em, .m-desk .m-ocgrid .m-wx-sum { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the smaller cards under the times: up to three to a row */
.m-desk .m-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--u) * .45) calc(var(--u) * .7); margin-top: calc(var(--u) * .7); }
.m-desk .m-acts.n1 { grid-template-columns: minmax(0, calc(var(--u) * 22)); } .m-desk .m-acts.n2 { grid-template-columns: repeat(2, minmax(0, calc(var(--u) * 22))); }
.m-desk .m-act { padding: calc(var(--u) * .4) calc(var(--u) * .7); gap: calc(var(--u) * .7); }
.m-desk .m-act .m-oc-ic { width: calc(var(--u) * 2.4); height: calc(var(--u) * 2.4); }
.m-desk .m-act .m-oc-tx b { font-size: calc(var(--u) * 1.2); }
.m-desk .m-act .m-oc-tx small { font-size: calc(var(--u) * .7); line-height: 1.25; }
.m-desk .m-act .m-oc-tx { gap: 0; }
.m-desk .m-act:disabled { opacity: .5; }
.m-desk .m-act.oc-ls.ready { border-color: rgba(46, 230, 107, .5); } .m-desk .m-act.oc-ls.ready .m-oc-ic svg { stroke: #2ee66b; }
.m-desk .m-act.oc-em { border-color: rgba(255, 110, 110, .5); background: rgba(220, 50, 60, .08); } .m-desk .m-act.oc-em .m-oc-ic svg { stroke: #ff7a7a; }
.m-desk .m-act.oc-em:hover:not(:disabled) { border-color: rgba(255, 120, 120, .8); background: rgba(220, 50, 60, .16); }
.m-desk .m-act.oc-end.ready { border-color: rgba(120, 205, 255, .6); } .m-desk .m-act.oc-end .m-oc-ic svg { stroke: #8fd3ff; }
/* once landed: END DAY beside the score, as a card the width of its column */
.m-desk .m-acts.m-acts-end { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
.m-desk .m-acts-end .m-act { padding: calc(var(--u) * .8) calc(var(--u) * 1); }
.m-desk .m-acts-end .m-act .m-oc-ic { width: calc(var(--u) * 3.2); height: calc(var(--u) * 3.2); }
.m-desk .m-acts-end .m-act .m-oc-tx b { font-size: calc(var(--u) * 1.5); }
/* the live loading counter: on a computer's or a tablet's overview the passengers, cargo and fuel cards already count
   up, so it shows only on the other tabs (and on a phone) */
body.on-ov:has(#m-ov.m-desk:not([hidden])) .fd-load { display: none; }
/* ---------- b616 (John, the new design pack, GSX Pages): GROUND SERVICES as the five renders, full screen. Every size is
   the render's own (its 1210 x 834 points) times --u (the screen's width over 1210 or its height over 834, whichever is
   smaller), so on the iPad Pro 11" it is the render and on the 13", an Android tablet or a computer it is the render
   scaled. The real Inter. Photos under a scrim, each tile in its own colour. A phone gets its own stacked layout ---------- */
.gc-modal { padding: 0; background: rgba(2, 4, 9, .8); }
.gc-modal.gc-in { animation: gc-fade .16s ease-out; }
.gc-modal.gc-in .gc-card { animation: gc-rise .22s cubic-bezier(.2, .9, .3, 1.1); }
.gc-modal.gc-out { animation: gc-fade-out .18s ease-in forwards; }
.gc-modal.gc-out .gc-card { transition: transform .18s ease-in; transform: scale(.98); }
@keyframes gc-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gc-fade-out { to { opacity: 0; } }
@keyframes gc-rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-card.gsx-card.gc-card { width: 100%; height: 100%; max-width: none; max-height: 100%; margin: 0; border: 0; border-radius: 0; overflow: hidden; box-sizing: border-box;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  container-type: size; display: flex; flex-direction: column; color: #edf4fa; box-shadow: none;
  background: radial-gradient(ellipse at 64% -25%, rgba(32, 56, 75, .38), transparent 65%), #050d16; }
#gsx-body { --u: min(calc(100cqw / 1210), calc(100cqh / 834));
  font-family: 'Inter Var', var(--ui); font-synthesis: none; letter-spacing: 0; color: #edf4fa;
  flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; box-sizing: border-box;
  width: calc(var(--u) * 1210); max-width: 100%; margin: 0 auto; padding: calc(var(--u) * 24) calc(var(--u) * 24) calc(var(--u) * 40); }
#gsx-body > * { flex-shrink: 0; }
#gsx-body button { font: inherit; color: inherit; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .12s cubic-bezier(.2, .9, .3, 1.2), filter .12s ease, border-color .15s ease; }
#gsx-body button:disabled { cursor: default; }
#gsx-body h2, #gsx-body p { margin: 0; }
#gsx-body svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
/* the photos and their scrims: the photo is the first thing in each card, the scrim over it, the words and icons over both */
.g6-art { position: absolute; inset: 0; background: center / cover no-repeat; pointer-events: none; }
.g6-info::after, .gs-tile::after, .gc-opt::after, .gs-dir::after { content: ""; position: absolute; inset: 0; pointer-events: none; }

/* ---- the header: the title (or BACK), then the stand, GSX's link and the X ---- */
#gsx-body .gs-top { height: calc(var(--u) * 48); display: flex; align-items: center; justify-content: space-between; gap: calc(var(--u) * 20); }
#gsx-body .gs-h { font-size: calc(var(--u) * 28); line-height: calc(var(--u) * 34); letter-spacing: -.02em; font-weight: 600; }
#gsx-body .gs-meta { display: flex; align-items: center; gap: calc(var(--u) * 22); margin-left: auto; font-size: calc(var(--u) * 15); font-weight: 500; }
#gsx-body .gs-stand { color: #edf4fa; white-space: nowrap; }
#gsx-body .gs-stand-b { display: flex; align-items: center; gap: calc(var(--u) * 8); min-height: calc(var(--u) * 44); padding: 0 calc(var(--u) * 6); border: 0; background: none; font-size: inherit; font-weight: 500; }
#gsx-body .gs-stand-b svg { width: calc(var(--u) * 15); height: calc(var(--u) * 15); stroke: #91cff7; stroke-width: 1.8; }
#gsx-body .gs-conn { display: flex; align-items: center; gap: calc(var(--u) * 9); color: #b8cbd9; white-space: nowrap; }
#gsx-body .gs-conn i { width: calc(var(--u) * 9); height: calc(var(--u) * 9); border-radius: 50%; background: #66dfa8; box-shadow: 0 0 calc(var(--u) * 12) rgba(100, 223, 168, .25); }
#gsx-body .gs-conn.off i { background: #e8a948; box-shadow: 0 0 calc(var(--u) * 12) rgba(232, 169, 72, .25); }
#gsx-body .gc-x { flex: none; width: calc(var(--u) * 48); height: calc(var(--u) * 48); border-radius: 50%; border: 1px solid rgba(159, 185, 204, .58); background: rgba(21, 38, 51, .38);
  display: grid; place-items: center; padding: 0; }
#gsx-body .gc-x svg { width: calc(var(--u) * 25); height: calc(var(--u) * 25); stroke-width: 1.7; }
#gsx-body .gc-back { height: calc(var(--u) * 48); min-width: calc(var(--u) * 108); padding: 0 calc(var(--u) * 14) 0 calc(var(--u) * 4); display: flex; align-items: center; gap: calc(var(--u) * 8);
  border: 0; background: none; color: #91cff7; font-size: calc(var(--u) * 18); font-weight: 500; }
#gsx-body .gc-back svg { width: calc(var(--u) * 23); height: calc(var(--u) * 23); stroke-width: 1.8; }

/* ---- the main screen: the two workflows ---- */
#gsx-body .gs-heroes { margin-top: calc(var(--u) * 28); display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--u) * 16); }
#gsx-body .gs-heroes.one { grid-template-columns: 1fr; }
.g6-flow { min-width: 0; }
.g6-info { position: relative; overflow: hidden; height: calc(var(--u) * 160); border: 1px solid rgba(120, 149, 172, .45); border-radius: calc(var(--u) * 14); background: #0a1723; }
.g6-info::after { background: linear-gradient(90deg, rgba(6, 17, 27, .96) 0%, rgba(6, 17, 27, .86) 30%, rgba(6, 17, 27, .44) 59%, transparent 88%); }
.g6-info-t { position: relative; z-index: 1; padding: calc(var(--u) * 24); max-width: 64%; }
.g6-info-t b { display: block; font-size: calc(var(--u) * 24); line-height: calc(var(--u) * 30); font-weight: 600; letter-spacing: -.02em; }
#gsx-body .g6-info-t > span { display: block; margin-top: calc(var(--u) * 14); font-size: calc(var(--u) * 16); line-height: calc(var(--u) * 23); color: #bed0de; }
.g6-info-t .gs-lock { color: #f3c56b; }
.g6-bar { position: relative; overflow: hidden; height: calc(var(--u) * 84); margin-top: calc(var(--u) * 12); border: 1px solid; border-radius: calc(var(--u) * 13);
  box-shadow: inset 0 1px 1px rgba(179, 230, 255, .33), 0 calc(var(--u) * 4) calc(var(--u) * 18) rgba(0, 0, 0, .5);
  transition: transform .12s cubic-bezier(.2, .9, .3, 1.2), filter .12s ease; }
.g6-bar.blue { background: linear-gradient(135deg, #148be4, #0878cb); border-color: rgba(142, 220, 255, .85); }
.g6-bar.green { background: linear-gradient(135deg, #13af67, #078d50); border-color: rgba(113, 233, 172, .8); }
.g6-bar.off { filter: saturate(.3) brightness(.62); }
.g6-bar-art { position: absolute; inset: 0; background: center / cover no-repeat; opacity: .17; pointer-events: none; }
#gsx-body .g6-bar .gs-cta { position: relative; width: 100%; height: 100%; border: 0; background: transparent; display: flex; align-items: center; gap: calc(var(--u) * 18);
  padding: 0 calc(var(--u) * 22); text-align: left; color: #fff; font-size: calc(var(--u) * 21); line-height: calc(var(--u) * 26); font-weight: 600; letter-spacing: -.015em;
  white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 27, 43, .33); }
#gsx-body .g6-bar.wx .gs-cta { width: calc(100% - var(--u) * 60); padding-right: calc(var(--u) * 8); }
#gsx-body .g6-bar .gs-cta:disabled { transform: none; }
.g6-sym { display: grid; flex: none; width: calc(var(--u) * 32); height: calc(var(--u) * 32); color: #e1f4ff; }
.g6-bar.green .g6-sym { color: #e1ffeb; }
#gsx-body .g6-sym svg { width: 100%; height: 100%; stroke-width: 1.6; }
.g6-lab { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#gsx-body .gs-chev { flex: none; margin-left: auto; width: calc(var(--u) * 24); height: calc(var(--u) * 24); stroke-width: 2; }
.g6-check { flex: none; margin-left: auto; width: calc(var(--u) * 40); height: calc(var(--u) * 40); border-radius: 50%; background: #65e49d; color: #062a1a; display: grid; place-items: center;
  box-shadow: 0 0 calc(var(--u) * 18) rgba(98, 231, 157, .16); }
#gsx-body .g6-check .gc-tick { width: calc(var(--u) * 26); height: calc(var(--u) * 26); stroke: currentColor; stroke-width: 2.6; }
#gsx-body .g6-bar .gs-cancel { position: absolute; right: calc(var(--u) * 10); top: calc(50% - var(--u) * 22); width: calc(var(--u) * 44); height: calc(var(--u) * 44); padding: 0;
  display: grid; place-items: center; border-radius: 50%; background: rgba(16, 47, 49, .77); border: 1px solid rgba(167, 226, 208, .42); color: #d5eee4; }
#gsx-body .g6-bar .gs-cancel svg { width: calc(var(--u) * 22); height: calc(var(--u) * 22); stroke-width: 1.9; }
/* the ring while it goes (the render's continuous circular spinner) */
.gs-wheel { flex: none; margin-left: auto; box-sizing: border-box; width: calc(var(--u) * 42); height: calc(var(--u) * 42); border-radius: 50%;
  border: calc(var(--u) * 3.5) solid rgba(138, 180, 211, .26); border-top-color: #92ddff; animation: gs-spin .8s linear infinite; }
.g6-bar.green .gs-wheel { border-top-color: #91edda; }
.gs-wheel.sm { width: calc(var(--u) * 22); height: calc(var(--u) * 22); border-width: calc(var(--u) * 2.5); }
@keyframes gs-spin { to { transform: rotate(360deg); } }
/* the line under each bar, and its thin bar while it goes */
.g6-fb { height: calc(var(--u) * 52); padding: calc(var(--u) * 12) calc(var(--u) * 4) 0; color: #b4c9db; font-size: calc(var(--u) * 14); line-height: calc(var(--u) * 19); min-width: 0; box-sizing: border-box; }
.g6-fb > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g6-fb.ok { color: #77e6ac; } .g6-fb.bad { color: #ff9b8f; }
.g6-prog { display: block; height: calc(var(--u) * 3); margin-top: calc(var(--u) * 8); border-radius: 5px; background: rgba(38, 63, 81, .4); overflow: hidden; }
.g6-prog b { display: block; width: 45%; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #299fea, #88d7ff); animation: g6-prog 1.4s ease-in-out infinite; }
.g6-flow:has(.g6-bar.green) .g6-prog b { background: linear-gradient(90deg, #2ab8b5, #95eee0); }
@keyframes g6-prog { 0% { transform: translateX(-100%); } 100% { transform: translateX(225%); } }

/* ---- INDIVIDUAL SERVICES: six photo tiles ---- */
#gsx-body .gs-sec { margin: calc(var(--u) * 20) 0 calc(var(--u) * 13); font-size: calc(var(--u) * 19); line-height: calc(var(--u) * 26); font-weight: 500; color: #c0d0dc; }
#gsx-body .gs-grid { flex: 1 1 auto; min-height: 0; max-height: calc(var(--u) * 330); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: calc(var(--u) * 14); }
#gsx-body .gs-tile { position: relative; overflow: hidden; min-height: 0; padding: 0; text-align: left; border-radius: calc(var(--u) * 13);
  border: 1px solid color-mix(in srgb, var(--acc) 52%, #172637); background: #081624;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .07), 0 calc(var(--u) * 5) calc(var(--u) * 18) rgba(0, 0, 0, .33); }
.gs-tile .g6-art { opacity: .84; }
.gs-tile::after { background: linear-gradient(90deg, rgba(7, 19, 29, .96) 0%, rgba(7, 19, 29, .86) 35%, rgba(7, 19, 29, .25) 82%, rgba(7, 19, 29, .47)); }
.gs-tile > *:not(.g6-art) { position: absolute; z-index: 1; }
.gs-tile .g6-sym { left: calc(var(--u) * 18); top: calc(var(--u) * 30); width: calc(var(--u) * 30); height: calc(var(--u) * 30); color: var(--acc); }
.g6-tt { left: calc(var(--u) * 65); top: calc(var(--u) * 33); right: calc(var(--u) * 36); }
.g6-tt b { display: block; font-size: calc(var(--u) * 20); line-height: calc(var(--u) * 25); font-weight: 600; letter-spacing: -.015em; text-shadow: 0 2px 6px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g6-st { display: block; margin-top: calc(var(--u) * 14); font-size: calc(var(--u) * 14); line-height: calc(var(--u) * 19); color: #b5c9da; }
.g6-st.g { color: #77e6ac; } .g6-st.a { color: #f3d58b; } .g6-st.b { color: #9ed8ff; } .g6-st.o { color: #8a9aab; }
#gsx-body .gs-tile .gs-chev, #gsx-body .gs-tile .gc-tick, #gsx-body .gs-tile .gs-wheel { right: calc(var(--u) * 12); top: calc(50% - var(--u) * 11); width: calc(var(--u) * 21); height: calc(var(--u) * 21); margin: 0; color: #b9cad7; }
#gsx-body .gs-tile .gc-tick { stroke: #77e6ac; stroke-width: 2.6; }
#gsx-body .gs-tile.sel { border-color: var(--acc); }
#gsx-body .gs-tile:disabled:not(.sel):not(.hold) { opacity: .5; }
#gsx-body .gs-tile.hold { cursor: wait; }

/* ---- the push-back and GSX-menu screens: an intro with its photo, then the cards, then the foot ---- */
.g6-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: calc(var(--u) * 24); margin-top: calc(var(--u) * 30); }
.g6-intro-t { min-width: 0; padding-top: calc(var(--u) * 3); }
#gsx-body .g6-intro-t h2 { font-size: calc(var(--u) * 30); line-height: calc(var(--u) * 38); font-weight: 600; letter-spacing: -.02em; }
#gsx-body .g6-intro-t p { margin-top: calc(var(--u) * 10); font-size: calc(var(--u) * 17); line-height: calc(var(--u) * 24); color: #b8cddd; }
.g6-intro-t em { display: block; margin-top: calc(var(--u) * 6); font-style: normal; font-size: calc(var(--u) * 14); line-height: calc(var(--u) * 20); color: #829caf; }
.g6-intro-t small { display: block; margin-bottom: calc(var(--u) * 6); font-size: calc(var(--u) * 14); line-height: calc(var(--u) * 20); color: #9abed6; }
#gsx-body[data-screen="gsx"] .g6-intro-t h2 { font-size: calc(var(--u) * 29); line-height: calc(var(--u) * 37); }
#gsx-body[data-screen="gsx"] .g6-intro-t p { margin-top: calc(var(--u) * 7); font-size: calc(var(--u) * 15); line-height: calc(var(--u) * 21); }
.g6-hero { position: relative; flex: none; overflow: hidden; width: calc(var(--u) * 360); height: calc(var(--u) * 112); border: 1px solid rgba(121, 156, 177, .31); border-radius: calc(var(--u) * 13);
  background: center / cover no-repeat; opacity: .85; }
.g6-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 19, 27, .79), transparent); }
#gsx-body[data-screen="gsx"] .g6-hero { width: calc(var(--u) * 420); height: calc(var(--u) * 100); opacity: 1; margin-top: calc(var(--u) * -3); }
.g6-foot { margin-top: auto; min-height: calc(var(--u) * 72); padding-top: calc(var(--u) * 12); box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: calc(var(--u) * 16); }
.g6-foot.c { justify-content: center; }
#gsx-body .gs-pfoot { font-size: calc(var(--u) * 16); line-height: calc(var(--u) * 24); color: #a8c4d8; }
#gsx-body .gs-more { display: flex; gap: calc(var(--u) * 12); min-width: 0; }
#gsx-body .gs-pill { height: calc(var(--u) * 48); min-width: calc(var(--u) * 200); max-width: calc(var(--u) * 420); padding: 0 calc(var(--u) * 18); display: flex; align-items: center; justify-content: center; gap: calc(var(--u) * 10);
  border: 1px solid rgba(123, 170, 194, .54); border-radius: calc(var(--u) * 12); background: linear-gradient(135deg, rgba(22, 59, 80, .7), rgba(11, 37, 55, .85));
  box-shadow: inset 0 1px 0 rgba(182, 220, 233, .14), 0 calc(var(--u) * 4) calc(var(--u) * 15) rgba(0, 0, 0, .25); font-size: calc(var(--u) * 16); line-height: calc(var(--u) * 22); font-weight: 500; color: #d8ecfa; }
#gsx-body .gs-pill svg { flex: none; width: calc(var(--u) * 22); height: calc(var(--u) * 22); stroke: #92d3ed; stroke-width: 1.7; }
#gsx-body .gs-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#gsx-body .gs-pill.sel { border-color: #3fc4ff; } #gsx-body .gs-pill.done { border-color: #61d39a; }
/* the three directions: the 3D A320, nose up, turned for nose left and nose right (the straight-back arrow its own drawing) */
#gsx-body .gs-dirs { flex: 1 1 auto; min-height: 0; margin-top: calc(var(--u) * 32); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--u) * 16); }
#gsx-body .gs-dirs.n1 { grid-template-columns: minmax(0, calc(var(--u) * 380)); justify-content: center; }
#gsx-body .gs-dirs.n2 { grid-template-columns: repeat(2, minmax(0, calc(var(--u) * 380))); justify-content: center; }
#gsx-body .gs-dirs.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#gsx-body .gs-dir { position: relative; overflow: hidden; min-height: 0; padding: calc(var(--u) * 26) calc(var(--u) * 14) calc(var(--u) * 10); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center;
  border: 1px solid rgba(146, 186, 213, .55); border-radius: calc(var(--u) * 16); background: #0b1c2d;
  box-shadow: inset 0 1px 0 rgba(217, 239, 255, .12), 0 calc(var(--u) * 8) calc(var(--u) * 30) rgba(0, 0, 0, .33); }
.gs-dir .g6-art { opacity: .075; }
.gs-dir::after { background: linear-gradient(rgba(7, 19, 27, .25), rgba(7, 19, 27, .8)); }
.gs-dir > *:not(.g6-art) { position: relative; z-index: 1; }
.g6-model { flex: 0 1 auto; width: calc(var(--u) * 260); height: calc(var(--u) * 260); min-height: 0; max-height: 58%; aspect-ratio: 1; }
.g6-model img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 calc(var(--u) * 10) calc(var(--u) * 12) rgba(0, 0, 0, .44)); }
.g6-model.left img { transform: rotate(-90deg); } .g6-model.right img { transform: rotate(90deg); }
#gsx-body .g6-model svg { position: absolute; left: 0; top: 0; width: 100%; height: 107.7%; stroke: #3fc4ff; stroke-width: 6; filter: drop-shadow(0 1px 3px rgba(3, 34, 58, .6)); }
#gsx-body .gs-dir b { margin-top: calc(var(--u) * 14); font-size: calc(var(--u) * 24); line-height: calc(var(--u) * 30); font-weight: 600; letter-spacing: -.017em; }
#gsx-body .gs-dir em { display: block; margin-top: calc(var(--u) * 15); font-style: normal; font-size: calc(var(--u) * 17); line-height: calc(var(--u) * 24); color: #bed1df; }
#gsx-body .gs-det { display: block; max-width: calc(var(--u) * 300); margin-top: calc(var(--u) * 22); font-size: calc(var(--u) * 17); line-height: calc(var(--u) * 25); color: #a7c7df; text-wrap: balance; }
#gsx-body .gs-dir-st { margin-top: calc(var(--u) * 12); display: flex; align-items: center; gap: calc(var(--u) * 8); font-size: calc(var(--u) * 14); font-weight: 700; color: #9ed8ff; }
#gsx-body .gs-dir-st .gs-wheel { margin: 0; }
#gsx-body .gs-dir-st.ok { color: #77e6ac; }
#gsx-body .gs-dir-st .gc-tick { width: calc(var(--u) * 20); height: calc(var(--u) * 20); stroke: #77e6ac; stroke-width: 2.6; }
#gsx-body .gs-dir.sel { border-color: #3fc4ff; } #gsx-body .gs-dir.done { border-color: #61d39a; }
#gsx-body .gs-dir:disabled:not(.sel):not(.done) { filter: saturate(.7); }
/* GSX's own menu: two columns of photo rows, numbered as GSX numbers them */
#gsx-body .gc-opts { --rows: 5; flex: 1 1 auto; min-height: 0; margin-top: calc(var(--u) * 26); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(var(--rows), minmax(0, 1fr)); gap: calc(var(--u) * 12); max-height: calc(var(--rows) * var(--u) * 100 + (var(--rows) - 1) * var(--u) * 12); }
#gsx-body .gc-opts.none { display: flex; align-items: center; justify-content: center; }
#gsx-body .gc-opt { position: relative; overflow: hidden; min-height: 0; padding: 0 calc(var(--u) * 18); display: flex; align-items: center; gap: calc(var(--u) * 18); text-align: left;
  border: 1px solid color-mix(in srgb, var(--acc) 47%, #1c2d42); border-radius: calc(var(--u) * 13); background: #0a1926; }
.gc-opt .g6-art { opacity: .72; }
.gc-opt::after { background: linear-gradient(90deg, rgba(6, 19, 27, .97) 15%, rgba(6, 19, 29, .86) 50%, rgba(6, 19, 29, .44)); }
.gc-opt > *:not(.g6-art) { position: relative; z-index: 1; }
#gsx-body .gc-n { flex: none; width: calc(var(--u) * 40); height: calc(var(--u) * 40); border-radius: 50%; box-sizing: border-box; border: 1px solid var(--acc); color: var(--acc); background: rgba(7, 24, 34, .66);
  display: grid; place-items: center; font-size: calc(var(--u) * 17); font-weight: 600; }
#gsx-body .gc-opt b { flex: 1; min-width: 0; font-size: calc(var(--u) * 18); line-height: calc(var(--u) * 23); font-weight: 600; letter-spacing: -.015em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#gsx-body .gc-opt .gs-chev { width: calc(var(--u) * 20); height: calc(var(--u) * 20); color: #b5cbd8; }
#gsx-body .gc-opt .gs-wheel { margin-left: auto; }
#gsx-body .gsx-st { flex: none; margin-left: auto; height: calc(var(--u) * 26); padding: 0 calc(var(--u) * 9); box-sizing: border-box; border-radius: calc(var(--u) * 13); display: flex; align-items: center;
  font-style: normal; font-size: calc(var(--u) * 10); line-height: 1; letter-spacing: .06em; font-weight: 700; text-transform: uppercase; white-space: nowrap;
  background: rgba(60, 50, 28, .87); color: #f3d58b; border: 1px solid rgba(212, 180, 107, .31); }
#gsx-body .gsx-st.done { background: rgba(11, 60, 43, .87); color: #86edae; border-color: rgba(97, 211, 154, .31); }
#gsx-body .gc-opt.sel { border-color: #3fc4ff; } #gsx-body .gc-opt.done { border-color: #61d39a; }
#gsx-body .gc-wait { display: flex; align-items: center; gap: calc(var(--u) * 14); font-size: calc(var(--u) * 18); color: #b8cddd; }
#gsx-body .gc-wait .gs-wheel { margin: 0; }

/* ---- the notices: GSX not running, the plan for another aircraft, a press answered, a thing to put right on this PC ---- */
#gsx-body .gsx-why, #gsx-body .gsx-note { margin-top: calc(var(--u) * 12); padding: calc(var(--u) * 9) calc(var(--u) * 14); border-radius: calc(var(--u) * 10); font-size: calc(var(--u) * 14); line-height: calc(var(--u) * 19);
  background: rgba(240, 180, 80, .09); border: 1px solid rgba(240, 180, 80, .32); color: #f3d58b; }
#gsx-body .gsx-note { display: flex; align-items: center; gap: calc(var(--u) * 10); background: rgba(63, 182, 255, .07); border-color: rgba(63, 182, 255, .28); color: #cfe6f7; }
#gsx-body .gsx-note.ok { background: rgba(101, 228, 157, .07); border-color: rgba(101, 228, 157, .3); color: #9df0c1; }
#gsx-body .gsx-note.bad { background: rgba(255, 107, 107, .07); border-color: rgba(255, 107, 107, .3); color: #ffb0a6; }
#gsx-body .gsx-spin { flex: none; width: calc(var(--u) * 14); height: calc(var(--u) * 14); border-radius: 50%; border: 2px solid rgba(138, 180, 211, .3); border-top-color: #92ddff; animation: gs-spin .8s linear infinite; }
#gsx-body .gs-now { margin-top: calc(var(--u) * 8); font-size: calc(var(--u) * 14); color: #9ed8ff; }
#gsx-body .gs-need { margin-top: calc(var(--u) * 12); display: flex; align-items: center; justify-content: space-between; gap: calc(var(--u) * 12); padding: calc(var(--u) * 8) calc(var(--u) * 8) calc(var(--u) * 8) calc(var(--u) * 14);
  border-radius: calc(var(--u) * 10); background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .11); font-size: calc(var(--u) * 14); line-height: calc(var(--u) * 19); color: #c9d8e4; }
#gsx-body .gs-needb { flex: none; min-height: calc(var(--u) * 40); padding: 0 calc(var(--u) * 14); border: 0; border-radius: calc(var(--u) * 10); background: #148be4; color: #fff; font-size: calc(var(--u) * 14); font-weight: 600; }

/* touch: never under 44 points, whatever the screen */
#gsx-body .gc-x, #gsx-body .gc-back, #gsx-body .gs-stand-b, #gsx-body .g6-bar .gs-cancel { min-width: 44px; min-height: 44px; }
#gsx-body .g6-bar .gs-cancel { top: calc(50% - max(22px, var(--u) * 22)); }
/* ---- the press: every button sinks the moment a finger lands (.down, added on pointerdown), springs back on release ---- */
#gsx-body .down:not(:disabled), #gsx-body .g6-bar:has(> .gs-cta.down:not(:disabled)) { transform: translateY(calc(var(--u) * 2)) scale(.985); filter: brightness(1.12); transition: transform 45ms ease-out, filter 45ms ease-out; }
#gsx-body .g6-bar .gs-cta.down { transform: none; }
#gsx-body .gc-x.down, #gsx-body .gs-cancel.down:not(:disabled) { transform: scale(.88); }
#gsx-body .gc-back.down { transform: translateX(calc(var(--u) * -3)); }
@media (prefers-reduced-motion: reduce) { .gs-wheel, .g6-prog b, #gsx-body .gsx-spin { animation-duration: 2.4s; } }

/* ---- a phone: the same parts stacked, the screen scrolls ---- */
@media (max-width: 760px) {
  #gsx-body { --u: min(calc(100cqw / 430), 1.2px); width: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: calc(var(--u) * 16) calc(var(--u) * 16) calc(var(--u) * 28); }
  #gsx-body .gs-top { gap: calc(var(--u) * 10); }
  #gsx-body .gs-h { font-size: calc(var(--u) * 23); line-height: calc(var(--u) * 28); white-space: nowrap; }
  #gsx-body .gs-meta { gap: calc(var(--u) * 12); font-size: calc(var(--u) * 14); }
  #gsx-body .gs-conn { font-size: 0; gap: 0; }   /* the green dot says it */
  #gsx-body .gs-heroes { grid-template-columns: 1fr; gap: calc(var(--u) * 6); margin-top: calc(var(--u) * 16); }
  .g6-info { height: calc(var(--u) * 120); }
  .g6-info-t { padding: calc(var(--u) * 16); max-width: 70%; }
  .g6-fb { height: calc(var(--u) * 44); }
  #gsx-body .g6-bar { height: calc(var(--u) * 66); }
  #gsx-body .g6-bar .gs-cta { font-size: calc(var(--u) * 18); gap: calc(var(--u) * 12); padding: 0 calc(var(--u) * 16); }
  #gsx-body .gs-grid { flex: none; max-height: none; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: calc(var(--u) * 112); }
  .g6-tt { left: calc(var(--u) * 52); top: calc(var(--u) * 24); }
  .gs-tile .g6-sym { left: calc(var(--u) * 14); top: calc(var(--u) * 22); width: calc(var(--u) * 26); height: calc(var(--u) * 26); }
  .g6-tt b { font-size: calc(var(--u) * 17); }
  .g6-st { margin-top: calc(var(--u) * 8); }
  .g6-intro { margin-top: calc(var(--u) * 16); }
  .g6-hero { display: none; }
  #gsx-body .g6-intro-t h2 { font-size: calc(var(--u) * 24); line-height: calc(var(--u) * 30); }
  #gsx-body .gs-dirs { flex: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--u) * 8); margin-top: calc(var(--u) * 18); }
  #gsx-body .gs-dir { min-height: calc(var(--u) * 300); padding: calc(var(--u) * 12) calc(var(--u) * 6); }
  .g6-model { width: calc(var(--u) * 116); height: calc(var(--u) * 116); max-height: none; }
  #gsx-body .gs-dir b { font-size: calc(var(--u) * 17); line-height: calc(var(--u) * 22); }
  #gsx-body .gs-dir em, #gsx-body .gs-det { font-size: calc(var(--u) * 14); line-height: calc(var(--u) * 19); margin-top: calc(var(--u) * 8); }
  #gsx-body .gc-opts { flex: none; max-height: none; grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: calc(var(--u) * 64); margin-top: calc(var(--u) * 18); }
  .g6-foot { flex-wrap: wrap; margin-top: calc(var(--u) * 14); }
  #gsx-body .gs-more { flex-wrap: wrap; width: 100%; } #gsx-body .gs-pill { flex: 1 1 auto; min-width: 0; }
}

/* ---------- b600 (John): a press you can feel on every button in the app: a quick squeeze and a flash as it lands
   (scale composes with each button's own transform, so nothing that is placed by a transform moves) ---------- */
@keyframes aw-press { 0% { scale: 1; filter: brightness(1); } 30% { scale: .94; filter: brightness(1.25); } 100% { scale: 1; filter: brightness(1); } }
.aw-tap { animation: aw-press .3s cubic-bezier(.3, .7, .4, 1.35); }
button:not(:disabled):active, .btn:not(:disabled):active, [role="button"]:active { scale: .97; }
@media (prefers-reduced-motion: reduce) { .aw-tap { animation: none; } button:not(:disabled):active, .btn:not(:disabled):active, [role="button"]:active { scale: none; } }

/* ===================== b616 (John): the new design pack (Downloads/AirWing Renders), stage 1: the bar and the Overview
   The Overview's words keep their face and sizes (John: Inter everywhere but the Overview); this is surfaces, light and art */
/* the tab bar: one straight strip, edge to edge, no capsule round the tabs; only the chosen tab is a pill */
#tabs::before, body.ov-desk #tabs::before { display: none; }
#tabs { background: linear-gradient(180deg, #1c2b3e 0%, #152338 42%, #101c2d 100%); border-top: 1px solid rgba(179, 212, 237, .07);
  border-bottom: 1px solid rgba(131, 171, 207, .15); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 3px 12px rgba(0, 0, 0, .15); }
body.ov-desk #topbar { background: linear-gradient(180deg, #1c2b3e 0%, #152338 42%, #101c2d 100%); border-bottom: 1px solid rgba(131, 171, 207, .15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 3px 12px rgba(0, 0, 0, .15); }
body.ov-desk #tabs { background: none; border: 0; box-shadow: none; }
.tab { font-family: 'Inter Var', var(--ui); font-weight: 650; color: #9cacc1; text-shadow: 0 1px 1px rgba(0, 0, 0, .27); }
.tab.active { color: #fff; font-weight: 700; text-shadow: 0 1px 2px rgba(16, 62, 124, .5); }
.tab-pill { background: linear-gradient(180deg, #4393db 0%, #3581c9 38%, #2d77be 70%, #286cb0 100%); border: 1px solid rgba(182, 220, 250, .2);
  box-shadow: inset 0 1px 0 rgba(240, 250, 255, .23), inset 0 -1px 1px rgba(8, 45, 98, .17), 0 2px 6px rgba(0, 22, 41, .17); box-sizing: border-box; }

/* the flight card: the aircraft at the gate behind its top right, under a navy wash, as the render */
.m-card { isolation: isolate; }
.m-art { position: absolute; z-index: -1; top: 0; right: 0; width: 73%; height: 63%; pointer-events: none;
  background: url(img/d-ov-gate.webp) center / cover no-repeat; opacity: .55; }
.m-art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #101c2d 0%, rgba(16, 28, 45, .55) 30%, rgba(16, 28, 45, .45) 70%, rgba(16, 28, 45, .7) 100%), linear-gradient(0deg, #0c1523 4%, transparent 75%); }
.m-card.m-empty .m-art { display: none; }
.m-card { background: linear-gradient(145deg, #142237 0%, #0c1523 100%); border-color: rgba(107, 147, 173, .35); }
/* on a phone the card is tall: the art takes the top of it only */
.m-ov:not(.m-desk) .m-art { width: 100%; height: 300px; opacity: .5; }

/* BRIEFING, GROUND SERVICES, the weather and MORE: the render's subtle depth (a gentle top-lit gradient, a fine top highlight, a soft
   contact shadow) in place of the hub tiles' glow */
.m-desk .m-oc, .m-desk .m-more-b, .m-desk .m-ocgrid .m-wx-slot .m-wx, .m-desk .m-acts-end .m-act, .m-desk .m-endrow-r .m-oc {
  background: linear-gradient(180deg, rgba(37, 58, 80, .87) 0%, rgba(28, 46, 68, .9) 45%, rgba(20, 35, 55, .94) 100%);
  border: 1px solid rgba(85, 126, 156, .37); box-shadow: inset 0 1px 0 rgba(212, 234, 255, .15), inset 0 -1px 1px rgba(4, 17, 30, .17), 0 2px 5px rgba(0, 0, 0, .16); }
.m-desk .m-oc:hover:not(:disabled), .m-desk .m-more-b:hover, .m-desk .m-acts-end .m-act:hover:not(:disabled) { border-color: rgba(110, 160, 200, .55);
  background: linear-gradient(180deg, rgba(43, 66, 90, .9) 0%, rgba(32, 52, 76, .92) 45%, rgba(22, 38, 60, .95) 100%); }
.m-desk .m-oc.off, .m-desk .m-oc:disabled { opacity: 1; background: linear-gradient(180deg, rgba(30, 46, 64, .87) 0%, rgba(23, 38, 58, .9) 45%, rgba(18, 31, 49, .94) 100%); border-color: rgba(64, 93, 117, .29); }
.m-desk .m-oc.off > *, .m-desk .m-oc:disabled > * { opacity: .48; }
.m-desk .m-oc.hot { border-color: rgba(255, 194, 77, .65); box-shadow: 0 0 0 3px rgba(255, 194, 77, .08), inset 0 1px 0 rgba(212, 234, 255, .15), 0 2px 5px rgba(0, 0, 0, .16); }
.m-desk .m-more-b.hot { border-color: rgba(255, 194, 77, .7); box-shadow: 0 0 0 3px rgba(255, 194, 77, .1), inset 0 1px 0 rgba(212, 234, 255, .15), 0 2px 5px rgba(0, 0, 0, .16); }
/* the four figures: quieter tiles, as the render */
.m-desk .m-stats > div { background: rgba(26, 35, 49, .72); border: 1px solid rgba(103, 118, 138, .19); box-shadow: inset 0 1px 0 rgba(212, 234, 255, .05); }

/* MORE's list, as the render's THIS FLIGHT: a blue-edged panel, each option a row with its chevron, the ready one green.
   It now opens at once (a 140ms fade and settle from MORE's corner, nothing clipped): the b613 fold animated the clip of a
   big shadowed panel, slow on an iPad and showing a cut-off strip of the card while it ran */
.m-desk .m-more-p { clip-path: none !important; animation: none !important; opacity: 0; transform: scale(.97); transform-origin: calc(100% - var(--bw) / 2) calc(var(--bh) / 2);
  visibility: hidden; will-change: opacity, transform; transition: opacity .1s ease, transform .14s cubic-bezier(.2, .9, .3, 1), visibility 0s linear .14s;
  background: linear-gradient(145deg, rgba(25, 57, 86, .97), rgba(12, 22, 36, .98)); border: 1px solid rgba(66, 127, 175, .56);
  box-shadow: inset 0 1px 0 rgba(196, 230, 255, .08), 0 14px 34px rgba(0, 0, 0, .5); }
.m-desk .m-more.open .m-more-p { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .1s ease, transform .14s cubic-bezier(.2, .9, .3, 1), visibility 0s; }
.m-desk .m-more.open.shut .m-more-p { opacity: 0; transform: scale(.97); pointer-events: none; }
.m-desk .m-more-p > .m-act, .m-desk .m-more-h, .m-desk .m-more.open .m-more-p > .m-act, .m-desk .m-more.open .m-more-h,
.m-desk .m-more.open.shut .m-more-p > .m-act, .m-desk .m-more.open.shut .m-more-h { opacity: 1; transform: none; transition: none; transition-delay: 0ms; }
.m-desk .m-more.open .m-more-p > .m-act:disabled { opacity: 1; }
.m-desk .m-more-p .m-act { border: 1px solid rgba(83, 110, 137, .37); border-radius: calc(var(--u) * .75); background: rgba(17, 27, 42, .85); box-shadow: none; }
.m-desk .m-more-p .m-act:disabled > :not(.m-oc-ic) { opacity: .5; } .m-desk .m-more-p .m-act:disabled .m-oc-ic { opacity: .55; }
.m-desk .m-more-p .m-act.ready { border-color: rgba(39, 188, 118, .48); background: rgba(17, 43, 40, .74); }
.m-desk .m-more-p .m-act.ready .m-oc-ic svg { stroke: #37df8e; }
.m-desk .m-more-p .m-act.oc-em:not(:disabled) { border-color: rgba(255, 107, 107, .45); background: rgba(48, 20, 26, .7); }
.m-act .m-oc-tx { margin-right: auto; }
.m-act-go { flex: none; width: 14px; height: 14px; fill: none; stroke: #a6bfd3; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: none; }
.m-desk .m-more-p .m-act-go { display: block; width: calc(var(--u) * 1.1); height: calc(var(--u) * 1.1); }

/* ===================== b618 (John): THE LOG, as the new design pack's renders (Downloads/AirWing Renders/The Log).
   Every size is the render's own, in its points, times --lu: the Log's width over 1210 or its height over 728 (the
   render's canvas under its two bars), whichever is smaller, so on the iPad Pro 11" it is the render and it grows with a
   bigger screen or window. The reports are full screen on their own 1210 x 834. The rating colours are as they were ===== */
@property --lu { syntax: '<length>'; inherits: true; initial-value: 1px; }
#view-log.lg6 { container-type: size; container-name: awlog; padding: 0 !important; overflow: hidden; letter-spacing: 0;
  background: radial-gradient(ellipse at 85% -20%, rgba(33, 66, 103, .19), transparent 58%), #0a101a; }
#view-log.lg6 > * { --lu: min(calc(100cqw / 1210), calc(100cqh / 728)); }
body #view-log.lg6 [class], body #view-log.lg6, #lg-rep, #lg-rep [class], #lg-side, #lg-side [class] { font-family: 'Inter Var', var(--ui); font-synthesis: none; }
#view-log.lg6 .mono, #lg-rep .mono { font-family: var(--mono); }
/* the header photo, under the tab bar, the navy fade over it */
#view-log.lg6 .lg-art { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--lu) * 148); overflow: hidden; pointer-events: none; }
#view-log.lg6 .lg-art::before { content: ""; position: absolute; inset: 0; background: url(img/d-log-header.webp) 50% 50% / cover no-repeat; opacity: .58; }
#view-log.lg6 .lg-art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 16, 26, .85), rgba(10, 16, 26, .57) 32%, rgba(10, 16, 26, .27) 64%, rgba(10, 16, 26, .69)), linear-gradient(180deg, rgba(10, 16, 26, .14) 15%, rgba(10, 16, 26, .27) 62%, #0a101a 100%); }
/* the page: the heading, the switches, then the list and the card side by side */
#view-log.lg6 .log-panel { position: relative; z-index: 1; box-sizing: border-box; width: min(100%, calc(var(--lu) * 1210)); height: 100%; margin: 0 auto;
  padding: calc(var(--lu) * 20) calc(var(--lu) * 24) calc(var(--lu) * 26); background: none !important; border: 0 !important; border-radius: 0; box-shadow: none !important; overflow: visible;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); column-gap: calc(var(--lu) * 18); }
#view-log.lg6 .log-head { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: calc(var(--lu) * 57) calc(var(--lu) * 66);
  align-items: center; column-gap: calc(var(--lu) * 16); margin: 0 0 calc(var(--lu) * 5); padding: 0; border: 0; background: none; min-height: 0; }
#view-log.lg6 .log-hl { display: contents; }
#view-log.lg6 .lg-ttl { grid-row: 1; grid-column: 1; min-width: 0; }
#view-log.lg6 .lg-ttl small { display: block; font-size: calc(var(--lu) * 9.5); line-height: calc(var(--lu) * 14); font-weight: 650; letter-spacing: .2em; color: #b4c6d8; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
#view-log.lg6 #log-title { display: block; font-size: calc(var(--lu) * 27); line-height: calc(var(--lu) * 34); font-weight: 600; letter-spacing: -.025em; color: #f3f8fc; text-transform: none; text-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
#view-log.lg6 #log-streak { grid-row: 1; grid-column: 2; justify-self: end; margin: 0; }
#view-log.lg6 #log-whose { grid-row: 2; grid-column: 1; justify-self: start; margin: 0; }
#view-log.lg6 .log-head-right { grid-row: 2; grid-column: 2; display: flex; align-items: center; gap: calc(var(--lu) * 16); margin: 0; }
#view-log.lg6 #log-count { font-size: calc(var(--lu) * 13); font-weight: 500; letter-spacing: 0; color: #c3d1df; text-transform: lowercase; white-space: nowrap; padding: 0 calc(var(--lu) * 4); }
/* the switches, as the render's pills: a dark track, the chosen one a blue pill */
#view-log.lg6 .log-whose, #view-log.lg6 .log-head-right .lg-tabs, #view-log.lg6 .aw-streak-toggle.pilltog { display: inline-flex; align-items: center; gap: calc(var(--lu) * 2);
  box-sizing: border-box; height: calc(var(--lu) * 48); padding: calc(var(--lu) * 2); border: 1px solid rgba(74, 104, 132, .32); border-radius: 999px;
  background: linear-gradient(180deg, rgba(20, 35, 55, .92), rgba(11, 23, 39, .94)); box-shadow: inset 0 1px 1px rgba(190, 223, 255, .05); }
#view-log.lg6 .log-whose button, #view-log.lg6 .log-tab, #view-log.lg6 .aw-streak-toggle.pilltog button { position: relative; z-index: 1; box-sizing: border-box; height: calc(var(--lu) * 44); min-height: 44px;
  min-width: calc(var(--lu) * 92); padding: 0 calc(var(--lu) * 20); margin: 0; border: 1px solid transparent; border-radius: 999px; background: transparent; box-shadow: none;
  color: #a9bdd1; font-size: calc(var(--lu) * 13.5); font-weight: 550; letter-spacing: 0; text-transform: none; white-space: nowrap; cursor: pointer; line-height: 1; }
#view-log.lg6 .log-whose button.on, #view-log.lg6 .log-tab.active, #view-log.lg6 .aw-streak-toggle.pilltog button.on { color: #f5fbff; border-color: rgba(119, 184, 235, .42);
  background: linear-gradient(180deg, #4191d6, #337fc5 48%, #2868aa); box-shadow: inset 0 1px 1px rgba(200, 232, 255, .25), 0 2px 4px rgba(0, 0, 0, .2); }
#view-log.lg6 .log-whose button:not(.on):hover, #view-log.lg6 .log-tab:not(.active):hover, #view-log.lg6 .aw-streak-toggle.pilltog button:not(.on):hover { color: #e6f1fa; }
#view-log.lg6 .aw-streak-toggle.pilltog .pill-th { display: none; }
#view-log.lg6 .aw-streak { display: flex; flex-direction: row-reverse; align-items: center; gap: calc(var(--lu) * 14); margin: 0; padding: 0; border: 0; background: none; }
#view-log.lg6 .aw-streak-n { display: flex; align-items: center; gap: calc(var(--lu) * 6); font-size: calc(var(--lu) * 13.5); font-weight: 500; letter-spacing: 0; color: #c0d0df; text-transform: none; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
#view-log.lg6 .aw-streak-n b { font-size: calc(var(--lu) * 19); font-weight: 700; color: #f4cc76; }
#view-log.lg6 .aw-streak-sub { display: none; }
/* ---- the list, on the left ---- */
#view-log.lg6 .log-panel > #log-rows, #view-log.lg6 .log-panel > #log-days, #view-log.lg6 .log-panel > #log-awards, #view-log.lg6 .log-panel > #log-rules {
  grid-row: 2; min-height: 0; overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; padding: 0 calc(var(--lu) * 13) calc(var(--lu) * 8);
  border: 1px solid rgba(61, 96, 127, .41); border-radius: calc(var(--lu) * 13); background: linear-gradient(150deg, #17273b, #122036 52%, #101b2c);
  box-shadow: inset 0 1px 0 rgba(199, 227, 255, .09), 0 4px 12px rgba(0, 0, 0, .08); scrollbar-width: thin; scrollbar-color: #4c7398 transparent; }
#view-log.lg6 .log-panel > #log-rows { grid-column: 1; }
#view-log.lg6 .log-panel > #log-days, #view-log.lg6 .log-panel > #log-awards, #view-log.lg6 .log-panel > #log-rules { grid-column: 1 / -1; padding-top: calc(var(--lu) * 10); }
#view-log.lg6 .log-panel > .hidden { display: none !important; }
#view-log.lg6 .log-panel:has(> #log-rows.hidden) > #lg-side, #view-log.lg6 .log-panel:has(#log-rows .va-entry) > #lg-side, #view-log.lg6 .log-panel:has(#log-rows .log-empty) > #lg-side { display: none; }
#view-log.lg6 .log-panel:has(#log-rows .va-entry) > #log-rows, #view-log.lg6 .log-panel:has(#log-rows .log-empty) > #log-rows { grid-column: 1 / -1; }
#view-log.lg6 .log-year { border: 0; margin: 0; }
#view-log.lg6 .log-year-head { display: none; }
#view-log.lg6 .log-month { border: 0; margin: 0; }
#view-log.lg6 .log-month-head { display: flex; align-items: center; gap: calc(var(--lu) * 10); width: 100%; height: calc(var(--lu) * 56); min-height: 44px; padding: 0 calc(var(--lu) * 4); margin: 0;
  border: 0; border-bottom: 1px solid rgba(115, 146, 181, .17); background: none; color: #edf4fa; cursor: pointer; text-align: left; letter-spacing: 0; text-transform: none; }
#view-log.lg6 .log-month-head .chev { display: grid; place-items: center; width: calc(var(--lu) * 16); color: #6bc4ff; font-size: 0; transform: none !important; }
#view-log.lg6 .log-month-head .chv { width: calc(var(--lu) * 14); height: calc(var(--lu) * 14); stroke: #6bc4ff; transform: none; transition: transform .18s ease; }
#view-log.lg6 .log-month.open > .log-month-head .chv { transform: rotate(90deg); }
#view-log.lg6 .lm-name { font-size: calc(var(--lu) * 17); font-weight: 600; letter-spacing: -.01em; color: #f0f6fb; }
#view-log.lg6 .lm-count { font-size: calc(var(--lu) * 12.5); font-weight: 450; letter-spacing: 0; color: #9db1c6; margin-left: calc(var(--lu) * 8); text-transform: none; }
#view-log.lg6 .lm-avl { margin-left: auto; font-size: calc(var(--lu) * 11.5); color: #93a9bf; }
#view-log.lg6 .log-month-head .lm-avg { margin-left: calc(var(--lu) * 6); font-size: calc(var(--lu) * 22); font-weight: 600; letter-spacing: -.01em; background: none; box-shadow: none; padding: 0; }
#view-log.lg6 .log-month-head .lm-avg.t-amber { color: #ffe14d; } #view-log.lg6 .log-month-head .lm-avg.t-red { color: #ff6b6b; }
/* a flight: the score, the route over its day and callsign, the touchdown, the chevron */
#view-log.lg6 #log-rows .log-entry { border: 0; border-bottom: 1px solid rgba(115, 146, 181, .13); border-radius: 0; background: none; box-shadow: none; margin: 0; padding: 0; }
#view-log.lg6 #log-rows .log-entry > .log-detail { display: none !important; }
#view-log.lg6 #log-rows .log-entry > .log-row { display: flex; align-items: center; gap: calc(var(--lu) * 16); width: 100%; box-sizing: border-box; height: calc(var(--lu) * 57); min-height: 44px;
  padding: 0 calc(var(--lu) * 8); margin: 0; border: 0; border-radius: calc(var(--lu) * 9); background: none; color: #edf4fa; text-align: left; cursor: pointer; font: inherit;
  transition: background .15s ease, box-shadow .15s ease, transform .1s ease; }
#view-log.lg6 #log-rows .log-entry > .log-row:hover { background: rgba(80, 137, 186, .08); }
#view-log.lg6 #log-rows .log-entry.chosen { border-bottom-color: transparent; }
#view-log.lg6 #log-rows .log-entry.chosen > .log-row { background: linear-gradient(100deg, rgba(44, 82, 121, .5), rgba(34, 64, 91, .5)); box-shadow: inset 0 0 0 1px rgba(108, 188, 243, .45); }
#view-log.lg6 #log-rows .log-row .lg-rating { flex: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: calc(var(--lu) * 56); height: calc(var(--lu) * 29);
  padding: 0; margin: 0; border-radius: calc(var(--lu) * 8); font-size: calc(var(--lu) * 20); font-weight: 700; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
#view-log.lg6 .lg-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: calc(var(--lu) * 4); }
#view-log.lg6 .lg-main .lg-route { display: flex; align-items: center; gap: calc(var(--lu) * 11); font-size: calc(var(--lu) * 15); font-weight: 650; letter-spacing: .03em; color: #77c9ff; white-space: nowrap; }
#view-log.lg6 .lg-main .lg-route .chv { width: calc(var(--lu) * 13); height: calc(var(--lu) * 13); stroke: #58baff; flex: none; }
#view-log.lg6 .lg-sub { display: flex; align-items: center; gap: 0; font-size: calc(var(--lu) * 10.5); font-weight: 450; color: #a7bbd0; white-space: nowrap; overflow: hidden; letter-spacing: 0; }
#view-log.lg6 .lg-sub .lg-when, #view-log.lg6 .lg-sub .lg-cs { font: inherit; color: inherit; letter-spacing: 0; padding: 0; }
#view-log.lg6 .lg-sub .lg-cs { color: #8aa1b9; }
#view-log.lg6 .lg-sub .lg-vat { margin-left: calc(var(--lu) * 9); padding: calc(var(--lu) * 2) calc(var(--lu) * 6); border: 1px solid rgba(36, 217, 114, .44); border-radius: calc(var(--lu) * 5); background: rgba(18, 63, 42, .33);
  color: #35e57f; font-size: calc(var(--lu) * 8.5); font-weight: 650; letter-spacing: .05em; line-height: 1.2; }
#view-log.lg6 #log-rows .log-entry .lg-ldg { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: calc(var(--lu) * 4); text-align: right; letter-spacing: 0; color: #a9bccf; }
#view-log.lg6 #log-rows .log-entry .lg-ldg b { font-size: calc(var(--lu) * 12.5); font-weight: 600; color: #e6eef7; }
#view-log.lg6 #log-rows .log-entry .lg-ldg b small { font-size: calc(var(--lu) * 8.5); font-weight: 500; color: #91a8c1; letter-spacing: .03em; }
#view-log.lg6 #log-rows .log-entry .lg-ldg > small { font-size: calc(var(--lu) * 11); color: #a9bccf; text-transform: none; }
#view-log.lg6 .lg-go { flex: none; width: calc(var(--lu) * 14); height: calc(var(--lu) * 14); fill: none; stroke: #8db4d5; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* a no-show and an emergency, in their months: the same line, its own words */
#view-log.lg6 .ns-entry { border-bottom: 1px solid rgba(115, 146, 181, .13); }
#view-log.lg6 .ns-row { display: flex; align-items: center; gap: calc(var(--lu) * 14); min-height: calc(var(--lu) * 57); padding: 0 calc(var(--lu) * 8); border: 0; background: none; flex-wrap: wrap; row-gap: 2px; }
#view-log.lg6 .ns-row .lg-rating { flex: none; width: calc(var(--lu) * 56); height: calc(var(--lu) * 29); display: inline-flex; align-items: center; justify-content: center; border-radius: calc(var(--lu) * 8); font-size: calc(var(--lu) * 14); padding: 0; }
#view-log.lg6 .ns-row .lg-when { font-size: calc(var(--lu) * 10.5); color: #a7bbd0; letter-spacing: 0; }
#view-log.lg6 .ns-row .lg-route { display: flex; align-items: center; gap: calc(var(--lu) * 9); font-size: calc(var(--lu) * 14); font-weight: 650; color: #77c9ff; letter-spacing: .03em; }
#view-log.lg6 .ns-row .lg-route .chv { width: calc(var(--lu) * 12); height: calc(var(--lu) * 12); }
#view-log.lg6 .ns-row .lg-ldg { margin-left: auto; font-size: calc(var(--lu) * 11); color: #a9bccf; letter-spacing: 0; }
#view-log.lg6 .ns-row .lg-cs { font-size: calc(var(--lu) * 9); letter-spacing: .06em; }
/* the airline's own flights (ALL FLIGHTS) use the same rows without the card */
#view-log.lg6 .va-log-note { padding: calc(var(--lu) * 12) calc(var(--lu) * 4); font-size: calc(var(--lu) * 11.5); color: #9db1c6; letter-spacing: 0; border-bottom: 1px solid rgba(115, 146, 181, .17); }
#view-log.lg6 .va-row { display: flex; align-items: center; gap: calc(var(--lu) * 16); min-height: calc(var(--lu) * 52); padding: 0 calc(var(--lu) * 8); border-bottom: 1px solid rgba(115, 146, 181, .13); }
#view-log.lg6 .va-row .lg-rating { flex: none; width: calc(var(--lu) * 56); height: calc(var(--lu) * 29); display: inline-flex; align-items: center; justify-content: center; border-radius: calc(var(--lu) * 8); font-size: calc(var(--lu) * 18); padding: 0; }
#view-log.lg6 .va-row .lg-when { font-size: calc(var(--lu) * 11); color: #a7bbd0; letter-spacing: 0; min-width: calc(var(--lu) * 90); }
#view-log.lg6 .va-row .lg-route { display: flex; align-items: center; gap: calc(var(--lu) * 9); font-size: calc(var(--lu) * 14); font-weight: 650; color: #77c9ff; min-width: calc(var(--lu) * 170); }
#view-log.lg6 .va-row .lg-route .chv { width: calc(var(--lu) * 12); height: calc(var(--lu) * 12); }
#view-log.lg6 .va-row .lg-cs { font-size: calc(var(--lu) * 11); color: #b1c3d8; letter-spacing: .05em; }
#view-log.lg6 .va-row .lg-ldg { margin-left: auto; font-size: calc(var(--lu) * 11.5); color: #c3d1df; letter-spacing: 0; }
#view-log.lg6 .log-empty { font-size: calc(var(--lu) * 15); font-weight: 600; letter-spacing: 0; color: #9db1c6; padding: calc(var(--lu) * 40) 0; }
/* the days: the same rows (the score, the day, its chain of airports, what it made), a press opens the day under it */
#view-log.lg6 #log-days .log-entry { border: 0; border-bottom: 1px solid rgba(115, 146, 181, .13); border-radius: 0; background: none; box-shadow: none; margin: 0; padding: 0; }
#view-log.lg6 #log-days .ld-row { display: flex; align-items: center; gap: calc(var(--lu) * 16); width: 100%; box-sizing: border-box; min-height: max(44px, calc(var(--lu) * 57)); padding: 0 calc(var(--lu) * 8);
  margin: 0; border: 0; border-radius: calc(var(--lu) * 9); background: none; color: #edf4fa; text-align: left; cursor: pointer; font: inherit; }
#view-log.lg6 #log-days .ld-row:hover { background: rgba(80, 137, 186, .08); }
#view-log.lg6 #log-days .log-entry.open > .ld-row { background: linear-gradient(100deg, rgba(44, 82, 121, .5), rgba(34, 64, 91, .5)); box-shadow: inset 0 0 0 1px rgba(108, 188, 243, .45); }
#view-log.lg6 #log-days .ld-row .lg-rating { flex: none; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: calc(var(--lu) * 56); height: calc(var(--lu) * 29); padding: 0;
  border-radius: calc(var(--lu) * 8); font-size: calc(var(--lu) * 20); font-weight: 700; letter-spacing: -.02em; line-height: 1; }
#view-log.lg6 #log-days .ld-row .lg-when { flex: none; min-width: calc(var(--lu) * 190); font-size: calc(var(--lu) * 11.5); font-weight: 500; letter-spacing: .04em; color: #a7bbd0; }
#view-log.lg6 #log-days .ld-row .ld-chain { display: flex; align-items: center; gap: calc(var(--lu) * 9); min-width: 0; font-size: calc(var(--lu) * 15); font-weight: 650; letter-spacing: .03em; color: #77c9ff; white-space: nowrap; overflow: hidden; }
#view-log.lg6 #log-days .ld-row .ld-chain .chv { width: calc(var(--lu) * 12); height: calc(var(--lu) * 12); stroke: #58baff; flex: none; }
#view-log.lg6 #log-days .ld-row .ld-money { flex: none; margin-left: auto; font-size: calc(var(--lu) * 15); font-weight: 600; letter-spacing: 0; }
#view-log.lg6 #log-days .log-entry > .log-detail { padding: calc(var(--lu) * 6) calc(var(--lu) * 8) calc(var(--lu) * 16); }
#view-log.lg6 .log-panel:has(> #log-rules:not(.hidden)) #log-count { visibility: hidden; }
#lg-rep .rp-fold-h { min-height: 44px; }
/* ---- the selected flight's card, on the right: the in-game pop-up, sized into the panel ---- */
#view-log.lg6 #lg-side { grid-column: 2; grid-row: 2; min-height: 0; display: flex; flex-direction: column; container-type: size; }
#lg-side .fsc-card.fsc-emb { position: relative; flex: 1 1 auto; width: 100%; max-height: none; box-sizing: border-box; display: flex; flex-direction: column; overflow: hidden; cursor: pointer;
  padding: calc(var(--lu) * 15) calc(var(--lu) * 16) calc(var(--lu) * 15); border-radius: calc(var(--lu) * 13); border: 1px solid rgba(60, 108, 145, .37);
  background: linear-gradient(150deg, #101e31, #0c1421 58%, #0a111b); box-shadow: inset 0 1px 0 rgba(199, 227, 255, .09), 0 4px 12px rgba(0, 0, 0, .08); animation: lg-cin .32s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes lg-cin { from { opacity: 0; transform: translateY(calc(var(--lu) * 8)); } }
#lg-side .fsc-card.fsc-emb.gold { border-color: rgba(223, 192, 84, .41); }
#lg-side .fsc-emb .fsc-hd { flex: none; min-height: calc(var(--lu) * 44); gap: calc(var(--lu) * 8); }
#lg-side .fsc-emb .fsc-hd img { width: calc(var(--lu) * 28); height: calc(var(--lu) * 28); }
#lg-side .fsc-emb .fsc-hd b { font-size: calc(var(--lu) * 9.5); letter-spacing: .09em; }
#lg-side .fsc-emb .fsc-hd span { font-size: calc(var(--lu) * 9.5); font-weight: 650; color: #c3cedd; }
#lg-side .fsc-emb .fsc-snap, #lg-side .fsc-emb .fsc-ic { position: relative; width: max(44px, calc(var(--lu) * 44)); height: max(44px, calc(var(--lu) * 44)); border: 0; background: none; color: #93a3b5; display: grid; place-items: center; padding: 0; border-radius: 0; }
#lg-side .fsc-emb .fsc-snap::before, #lg-side .fsc-emb .fsc-ic::before { content: ""; position: absolute; inset: calc(var(--lu) * 7); border: 1px solid rgba(96, 123, 155, .3); border-radius: calc(var(--lu) * 8); background: rgba(37, 51, 72, .22); }
#lg-side .fsc-emb .fsc-ic::before { border-radius: 50%; }
#lg-side .fsc-emb .fsc-snap svg, #lg-side .fsc-emb .fsc-ic svg { position: relative; width: calc(var(--lu) * 17); height: calc(var(--lu) * 17); }
#lg-side .fsc-emb .fsc-g { flex: none; width: min(calc(var(--lu) * 286), 46cqh); margin: calc(var(--lu) * 6) auto 0; }
#lg-side .fsc-emb .fsc-bg, #lg-side .fsc-emb .fsc-arc { stroke-width: 13; }
#lg-side .fsc-emb .fsc-n span { font-size: calc(var(--lu) * 60); }
#lg-side .fsc-emb .fsc-n small { font-size: calc(var(--lu) * 23); }
#lg-side .fsc-emb .fsc-t { flex: none; margin: calc(var(--lu) * 6) 0 calc(var(--lu) * 6); font-size: calc(var(--lu) * 9.5); letter-spacing: .1em; }
#lg-side .fsc-emb .fsc-r { flex: none; min-height: calc(var(--lu) * 35); box-sizing: border-box; margin-top: calc(var(--lu) * 7); padding: calc(var(--lu) * 5) calc(var(--lu) * 12); gap: calc(var(--lu) * 8);
  grid-template-columns: minmax(0, 1fr) auto minmax(calc(var(--lu) * 84), auto); border-radius: calc(var(--lu) * 9); border: 1px solid rgba(103, 131, 160, .05); background: linear-gradient(180deg, #14273b, #112132); }
#lg-side .fsc-emb .fsc-r span { font-size: calc(var(--lu) * 12.5); font-weight: 550; color: #a9bfd3; }
#lg-side .fsc-emb .fsc-r b { font-size: calc(var(--lu) * 13.5); font-weight: 650; }
#lg-side .fsc-emb .fsc-r em { font-size: calc(var(--lu) * 9); font-weight: 750; letter-spacing: .02em; }
#lg-side .fsc-emb .fsc-m { flex: none; min-height: calc(var(--lu) * 52); box-sizing: border-box; margin-top: calc(var(--lu) * 12); padding: calc(var(--lu) * 6) calc(var(--lu) * 14); border-radius: calc(var(--lu) * 10);
  background: linear-gradient(180deg, #123025, #0c271d); border-color: rgba(39, 141, 82, .37); }
#lg-side .fsc-emb .fsc-m.neg { background: linear-gradient(180deg, #33161b, #261013); border-color: rgba(255, 77, 77, .35); }
#lg-side .fsc-emb .fsc-m span { font-size: calc(var(--lu) * 8.5); letter-spacing: .1em; color: #a2bcc0; }
#lg-side .fsc-emb .fsc-m b { font-size: calc(var(--lu) * 25); font-weight: 700; letter-spacing: -.02em; }
#lg-side .fsc-open { flex: none; display: flex; align-items: center; justify-content: space-between; gap: calc(var(--lu) * 10); width: 100%; box-sizing: border-box; height: calc(var(--lu) * 44); min-height: 44px;
  margin-top: auto; padding: 0 calc(var(--lu) * 14); border: 1px solid rgba(120, 188, 236, .36); border-radius: calc(var(--lu) * 10);
  background: linear-gradient(180deg, #2e6e9f, #1d4b73); box-shadow: inset 0 1px 0 rgba(197, 229, 255, .13); color: #f2f8fd; font-size: calc(var(--lu) * 13); font-weight: 600; cursor: pointer; }
#lg-side .fsc-emb > div:last-of-type { margin-bottom: calc(var(--lu) * 10); }
/* b668 (John): a fifth row, ON BLOCKS against the day's schedule: the rows a little closer and the gauge a little smaller,
   so the card with its button still fits the column it had */
@container awlog (max-width: 960px) {
  #lg-side .fsc-emb:has(.fsc-r + .fsc-r + .fsc-r + .fsc-r + .fsc-r) .fsc-g { width: min(calc(var(--lu) * 250), 40cqh); }
  #lg-side .fsc-emb:has(.fsc-r + .fsc-r + .fsc-r + .fsc-r + .fsc-r) .fsc-r { min-height: calc(var(--lu) * 32); margin-top: calc(var(--lu) * 5); }
}
#lg-side .fsc-open svg { width: calc(var(--lu) * 18); height: calc(var(--lu) * 18); fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
#lg-side .lg-pick { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--lu) * 8); padding: calc(var(--lu) * 30); text-align: center;
  border: 1px dashed rgba(96, 140, 180, .35); border-radius: calc(var(--lu) * 13); color: #9db1c6; }
#lg-side .lg-pick b { font-size: calc(var(--lu) * 16); font-weight: 600; color: #e6eef7; } #lg-side .lg-pick span { font-size: calc(var(--lu) * 12); line-height: 1.45; max-width: 26em; }
/* ---- the instant press: every button sinks the moment a finger lands, springs back on release ---- */
#view-log.lg6 button.lg-dn, #lg-rep button.lg-dn, #lg-side button.lg-dn { transform: translateY(1px) scale(.975); filter: brightness(1.12); transition: transform 40ms ease-out, filter 40ms ease-out; }
#view-log.lg6 button.lg-up, #lg-rep button.lg-up, #lg-side button.lg-up { transition: transform .22s cubic-bezier(.3, 1.6, .5, 1), filter .2s ease; }
#view-log.lg6 #log-rows .log-entry > .log-row.lg-dn { transform: scale(.99); }

/* ===================== the report, full screen ===================== */
.lg-rep { position: fixed; inset: 0; z-index: 300; display: none; container-type: size; background: radial-gradient(ellipse at 85% -20%, rgba(33, 66, 103, .19), transparent 58%), #0a101a; color: #edf4fa; letter-spacing: 0; }
.lg-rep.on { display: block; }
.lg-rep.in { animation: lg-rin .24s cubic-bezier(.2, .9, .3, 1); } .lg-rep.out { animation: lg-rout .18s ease-in forwards; }
@keyframes lg-rin { from { opacity: 0; transform: scale(.985); } } @keyframes lg-rout { to { opacity: 0; transform: scale(.99); } }
html.lg-rep-open, html.lg-rep-open body { overflow: hidden; }
.lg-rep > .lg-rep-in { --lu: min(calc(100cqw / 1210), calc(100cqh / 834)); position: absolute; inset: 0; display: flex; flex-direction: column;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px); }
.lg-rep .lg-top { flex: none; position: relative; display: flex; align-items: center; justify-content: space-between; height: calc(var(--lu) * 56); padding: 0 calc(var(--lu) * 20);
  border-bottom: 1px solid rgba(87, 116, 145, .21); background: linear-gradient(180deg, #111e30, #0d1726); }
.lg-rep .lg-back { display: flex; align-items: center; gap: calc(var(--lu) * 8); min-height: 44px; height: calc(var(--lu) * 44); padding: 0 calc(var(--lu) * 10) 0 calc(var(--lu) * 2); border: 0; background: none; color: #8bd3ff; font-size: calc(var(--lu) * 14); font-weight: 500; cursor: pointer; }
.lg-rep .lg-back svg, .lg-rep .lg-tool svg { width: calc(var(--lu) * 19); height: calc(var(--lu) * 19); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lg-rep .lg-ttl { position: absolute; left: 50%; transform: translateX(-50%); font-size: calc(var(--lu) * 15); font-weight: 550; color: #d3e1ee; white-space: nowrap; }
.lg-rep .lg-tools { display: flex; gap: calc(var(--lu) * 8); }
.lg-rep .lg-tool { width: max(44px, calc(var(--lu) * 44)); height: max(44px, calc(var(--lu) * 44)); display: grid; place-items: center; padding: 0; color: #a9c1d6; cursor: pointer;
  border: 1px solid rgba(75, 105, 133, .3); border-radius: calc(var(--lu) * 9); background: rgba(23, 42, 60, .4); }
.lg-rep .lg-tool.lg-x { border-radius: 50%; background: rgba(19, 32, 51, .4); }
.lg-rep .lg-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; outline: none; scrollbar-width: thin; scrollbar-color: #4c7398 transparent; -webkit-overflow-scrolling: touch; }
.lg-rep .lg-pagein { box-sizing: border-box; width: min(100%, calc(var(--lu) * 1210)); margin: 0 auto; padding: 0 calc(var(--lu) * 24) calc(var(--lu) * 26 + env(safe-area-inset-bottom, 0px)); }
/* the flight, at the top */
.lg-rep .lg-id { display: flex; align-items: center; justify-content: space-between; gap: calc(var(--lu) * 20); min-height: calc(var(--lu) * 102); padding: calc(var(--lu) * 8) 0; box-sizing: border-box; border-bottom: 1px solid rgba(87, 116, 145, .19); }
.lg-rep .lg-pg-takeoff .lg-id, .lg-rep .lg-pg-landing .lg-id, .lg-rep .lg-pg-flight .lg-id { min-height: calc(var(--lu) * 78); }
.lg-rep .lg-eb { font-size: calc(var(--lu) * 10); letter-spacing: .1em; font-weight: 650; color: #9ab3cb; }
.lg-rep .lg-id h1 { display: flex; align-items: center; gap: calc(var(--lu) * 16); margin: calc(var(--lu) * 6) 0 calc(var(--lu) * 4); font-size: calc(var(--lu) * 34); line-height: 1.1; font-weight: 650; letter-spacing: .02em; color: #f4f9fd; }
.lg-rep .lg-pg-takeoff .lg-id h1, .lg-rep .lg-pg-landing .lg-id h1, .lg-rep .lg-pg-flight .lg-id h1 { font-size: calc(var(--lu) * 29); margin: calc(var(--lu) * 3) 0; }
.lg-rep .lg-id h1 .lg-rt { width: calc(var(--lu) * 26); height: calc(var(--lu) * 26); fill: none; stroke: #5dbfff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lg-rep .lg-id p { margin: 0; font-size: calc(var(--lu) * 12.5); color: #a9bdd0; }
.lg-rep .lg-res { display: flex; align-items: center; gap: calc(var(--lu) * 14); flex: none; }
.lg-rep .lg-res .lg-rating { display: inline-flex; align-items: center; justify-content: center; width: calc(var(--lu) * 68); height: calc(var(--lu) * 42); padding: 0; border-radius: calc(var(--lu) * 10); font-size: calc(var(--lu) * 25); font-weight: 700; letter-spacing: -.02em; }
.lg-rep .lg-res > div { display: flex; flex-direction: column; gap: calc(var(--lu) * 5); }
.lg-rep .lg-res strong { font-size: calc(var(--lu) * 16.5); font-weight: 550; }
.lg-rep .lg-res > div > span { font-size: calc(var(--lu) * 11); color: #a6bcd1; }
/* the three reports, along the top of each */
.lg-rep .lg-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--lu) * 12); padding: calc(var(--lu) * 12) 0 calc(var(--lu) * 2); }
.lg-rep .lg-navb, .lg-rep .lg-rbtn { display: flex; align-items: center; justify-content: center; gap: calc(var(--lu) * 11); min-height: 44px; height: calc(var(--lu) * 46); box-sizing: border-box; padding: 0 calc(var(--lu) * 14);
  border: 1px solid rgba(73, 106, 137, .33); border-radius: calc(var(--lu) * 10); background: linear-gradient(180deg, rgba(34, 56, 79, .66), rgba(21, 38, 59, .86)); box-shadow: inset 0 1px 0 rgba(189, 220, 255, .09);
  color: #e4f0fa; font-size: calc(var(--lu) * 13); font-weight: 550; cursor: pointer; }
.lg-rep .lg-navb.on { border-color: rgba(111, 180, 224, .45); background: linear-gradient(180deg, #326f9f, #23547f); box-shadow: inset 0 1px 0 rgba(196, 230, 255, .16); color: #fff; }
.lg-rep .lg-ic { width: calc(var(--lu) * 19); height: calc(var(--lu) * 19); fill: none; stroke: #8ac8f0; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lg-rep .lg-arr { width: calc(var(--lu) * 15); height: calc(var(--lu) * 15); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lg-rep .lg-rbtn { justify-content: flex-start; margin-top: calc(var(--lu) * 10); border-radius: calc(var(--lu) * 11); background: linear-gradient(180deg, #254561, #19334c); }
.lg-rep .lg-rbtn span { flex: 1; text-align: left; }
.lg-rep .lg-body { padding-top: calc(var(--lu) * 16); }
/* the cards the reports are made of: the app's subtle depth */
.lg-rep .lg-panel { position: relative; box-sizing: border-box; border: 1px solid rgba(61, 96, 127, .41); border-radius: calc(var(--lu) * 13); background: linear-gradient(150deg, #17273b, #122036 52%, #101b2c);
  box-shadow: inset 0 1px 0 rgba(199, 227, 255, .09), 0 4px 12px rgba(0, 0, 0, .08); padding: calc(var(--lu) * 16); min-width: 0; }
.lg-rep .lg-panel h2 { margin: 0 0 calc(var(--lu) * 10); font-size: calc(var(--lu) * 17); line-height: 1.3; font-weight: 550; letter-spacing: -.01em; color: #eef5fb; }
.lg-rep .lg-dr { display: flex; align-items: center; justify-content: space-between; gap: calc(var(--lu) * 10); min-height: calc(var(--lu) * 31); padding: calc(var(--lu) * 5) 0; border-bottom: 1px solid rgba(87, 120, 152, .14); }
.lg-rep .lg-dr > span { font-size: calc(var(--lu) * 12); color: #a2b7cb; }
.lg-rep .lg-dr > strong { font-size: calc(var(--lu) * 13); font-weight: 600; color: #e2ecf6; text-align: right; }
.lg-rep .pos { color: #2ee68a !important; } .lg-rep .neg { color: #ff747a !important; } .lg-rep .amb { color: #ffc14d !important; } .lg-rep .gold { color: #f4cb69 !important; }
.lg-rep .lg-ceb { font-size: calc(var(--lu) * 10); line-height: 1.4; letter-spacing: .1em; font-weight: 650; color: #a6bbd0; }
.lg-rep .lg-sh { display: flex; align-items: center; justify-content: space-between; gap: calc(var(--lu) * 12); margin-bottom: calc(var(--lu) * 8); }
.lg-rep .lg-sh h2 { margin: 0; } .lg-rep .lg-sh > span, .lg-rep .lg-sh > div > span { font-size: calc(var(--lu) * 11); color: #98aec4; }
.lg-rep .lg-sh > div { display: flex; align-items: center; gap: calc(var(--lu) * 12); }
.lg-rep .lg-mnote { margin: calc(var(--lu) * 10) 0 0; font-size: calc(var(--lu) * 11.5); line-height: 1.5; color: #93abc2; }
/* the overview: the summary on the left, the three cards, the score and the captain's log */
.lg-rep .lg-sumgrid { display: grid; grid-template-columns: calc(var(--lu) * 211) minmax(0, 1fr); gap: calc(var(--lu) * 16); align-items: start; }
.lg-rep .lg-fs { padding: calc(var(--lu) * 14) calc(var(--lu) * 12); }
.lg-rep .lg-fs h2 { color: #7dceff; font-size: calc(var(--lu) * 15); }
.lg-rep .lg-fs .lg-dr > span { font-size: calc(var(--lu) * 11); }
.lg-rep .lg-fs .lg-dr > strong { font-size: calc(var(--lu) * 12.5); max-width: 62%; }
.lg-rep .lg-bal { display: flex; align-items: center; justify-content: space-between; margin: calc(var(--lu) * 12) 0 calc(var(--lu) * 14); }
.lg-rep .lg-bal span { font-size: calc(var(--lu) * 12.5); font-weight: 550; color: #c2d3e3; }
.lg-rep .lg-bal strong { font-size: calc(var(--lu) * 23); font-weight: 650; letter-spacing: -.02em; color: #2ee68a; }
.lg-rep .lg-brief { display: flex; align-items: center; gap: calc(var(--lu) * 10); width: 100%; min-height: calc(var(--lu) * 72); box-sizing: border-box; padding: calc(var(--lu) * 10) calc(var(--lu) * 12);
  border: 1px solid rgba(91, 159, 205, .4); border-radius: calc(var(--lu) * 11); background: linear-gradient(160deg, #20456a, #142941); box-shadow: inset 0 1px 0 rgba(173, 218, 255, .12); color: #eaf4fc; text-align: left; cursor: pointer; }
.lg-rep .lg-brief > span { flex: 1; min-width: 0; }
.lg-rep .lg-brief strong { display: block; font-size: calc(var(--lu) * 13); font-weight: 600; }
.lg-rep .lg-brief small { display: block; margin-top: calc(var(--lu) * 3); font-size: calc(var(--lu) * 10.5); line-height: 1.35; color: #b2cade; }
.lg-rep .lg-brief .lg-ic { stroke: #75ccff; width: calc(var(--lu) * 22); height: calc(var(--lu) * 22); }
.lg-rep .lg-mainc { display: flex; flex-direction: column; gap: calc(var(--lu) * 16); min-width: 0; }
.lg-rep .lg-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--lu) * 12); }
.lg-rep .lg-cg { display: flex; flex-direction: column; min-width: 0; }
.lg-rep .lg-card { flex: 1; padding: calc(var(--lu) * 14) calc(var(--lu) * 12); }
.lg-rep .lg-card h3 { margin: calc(var(--lu) * 5) 0 calc(var(--lu) * 8); font-size: calc(var(--lu) * 19); line-height: 1.25; font-weight: 600; letter-spacing: -.015em; color: #f4cb69; }
.lg-rep .lg-card .lg-dr > span { font-size: calc(var(--lu) * 11); max-width: 62%; }
.lg-rep .lg-card .lg-dr > strong { font-size: calc(var(--lu) * 12); max-width: 50%; }
.lg-rep .lg-tnote { margin-top: calc(var(--lu) * 4); font-size: calc(var(--lu) * 10.5); color: #2ee68a; }
.lg-rep .lg-inset { margin: calc(var(--lu) * 9) 0 calc(var(--lu) * 4); padding: calc(var(--lu) * 9) calc(var(--lu) * 10); font-size: calc(var(--lu) * 11); line-height: 1.45; color: #b7cee3;
  border: 1px solid rgba(78, 133, 170, .21); border-radius: calc(var(--lu) * 8); background: rgba(22, 50, 75, .47); }
.lg-rep .lg-strip { margin-top: calc(var(--lu) * 12); }
.lg-rep .lg-strip .rp-stripw { margin: 0; }
.lg-rep .lg-skey { display: flex; flex-wrap: wrap; align-items: center; gap: calc(var(--lu) * 12); margin-top: calc(var(--lu) * 2); font-size: calc(var(--lu) * 9); color: #93adc5; }
.lg-rep .lg-skey span { display: flex; align-items: center; gap: calc(var(--lu) * 4); }
.lg-rep .lg-skey i { width: calc(var(--lu) * 8); height: calc(var(--lu) * 8); border-radius: 2px; background: #28724d; } .lg-rep .lg-skey i.t { border-radius: 50%; background: #ffcc3e; }
.lg-rep .lg-big { margin-top: calc(var(--lu) * 6); font-size: calc(var(--lu) * 32); line-height: 1.1; font-weight: 650; letter-spacing: -.02em; }
.lg-rep .lg-bigs { margin-bottom: calc(var(--lu) * 8); font-size: calc(var(--lu) * 11.5); color: #95adc4; }
.lg-rep .lg-acc { padding-top: calc(var(--lu) * 12); font-size: calc(var(--lu) * 11); color: #99b2ca; }
.lg-rep .lg-acc p { margin: calc(var(--lu) * 5) 0 0; font-size: calc(var(--lu) * 12); line-height: 1.45; color: #cfdeeb; }
.lg-rep .lg-pen h2 { color: #f0ce76; }
.lg-rep .lg-pr { display: flex; align-items: flex-start; justify-content: space-between; gap: calc(var(--lu) * 16); min-height: calc(var(--lu) * 44); padding: calc(var(--lu) * 8) 0; border-bottom: 1px solid rgba(103, 134, 160, .14); }
.lg-rep .lg-pr p { margin: 0; font-size: calc(var(--lu) * 13.5); line-height: 1.4; color: #d3e0ed; }
.lg-rep .lg-pr small { display: block; margin-top: calc(var(--lu) * 3); font-size: calc(var(--lu) * 11); line-height: 1.4; color: #93abc3; }
.lg-rep .lg-pr > strong { flex: none; font-size: calc(var(--lu) * 15); font-weight: 650; color: #ff747a; }
.lg-rep .lg-pen .rp-pen-row { display: flex; justify-content: space-between; gap: calc(var(--lu) * 16); padding: calc(var(--lu) * 9) 0; border-bottom: 1px solid rgba(103, 134, 160, .14); font-size: calc(var(--lu) * 12.5); letter-spacing: 0; color: #c9d8e6; border-top: 0; }
.lg-rep .lg-pen .rp-pen-row span { font-size: inherit; letter-spacing: 0; text-transform: none; color: inherit; }
.lg-rep .lg-pen .rp-pen-row b { font-size: calc(var(--lu) * 13.5); font-weight: 650; color: #ff747a; white-space: nowrap; }
.lg-rep .lg-pen .rp-pen-row.bonus b { color: #2ee68a; } .lg-rep .lg-pen .rp-pen-row.theirs { color: #8fa4b9; }
.lg-rep .lg-ptot { display: flex; align-items: center; justify-content: space-between; gap: calc(var(--lu) * 12); padding-top: calc(var(--lu) * 12); font-size: calc(var(--lu) * 11.5); color: #93aac1; }
.lg-rep .lg-ptot strong { font-size: calc(var(--lu) * 28); font-weight: 650; letter-spacing: -.02em; margin-right: calc(var(--lu) * 10); }
.lg-rep .lg-ptot > span:last-child { display: flex; align-items: baseline; }
.lg-rep .lg-ptot small { font-size: calc(var(--lu) * 12); color: #93aac1; }
.lg-rep .lg-clog .lg-sh h2 { color: #7dceff; }
.lg-rep .lg-clog p { margin: calc(var(--lu) * 10) 0 0; font-size: calc(var(--lu) * 14); line-height: 1.7; color: #c5d4e5; }
.lg-rep .lg-lock { display: flex; flex-direction: column; align-items: center; gap: calc(var(--lu) * 8); padding: calc(var(--lu) * 24) calc(var(--lu) * 6); text-align: center; color: #d3e0ed; }
.lg-rep .lg-lock span { font-size: calc(var(--lu) * 30); } .lg-rep .lg-lock b { color: #ffd35c; font-size: calc(var(--lu) * 15); } .lg-rep .lg-lock p { margin: 0; font-size: calc(var(--lu) * 12); line-height: 1.5; color: #a9bdd0; }
.lg-rep .rp-locked { cursor: pointer; }
/* the take-off report */
.lg-rep .lg-togrid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: calc(var(--lu) * 16); align-items: start; }
.lg-rep .lg-col { display: flex; flex-direction: column; gap: calc(var(--lu) * 13); min-width: 0; }
.lg-rep .lg-tohero { padding: calc(var(--lu) * 22); }
.lg-rep .lg-tohero h2 { margin: calc(var(--lu) * 8) 0 0; font-size: calc(var(--lu) * 30); line-height: 1.2; font-weight: 600; color: #f1cd71; }
.lg-rep .lg-tohero > p { margin: calc(var(--lu) * 8) 0 0; font-size: calc(var(--lu) * 13.5); color: #2ee68a; }
.lg-rep .lg-tline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: calc(var(--lu) * 26); }
.lg-rep .lg-tline::before { content: ""; position: absolute; top: calc(var(--lu) * 6); left: calc(var(--lu) * 8); right: calc(var(--lu) * 8); border-top: 1px solid #517c9e; }
.lg-rep .lg-tline > div { position: relative; display: flex; flex-direction: column; gap: calc(var(--lu) * 6); }
.lg-rep .lg-tline > div:nth-child(2) { align-items: center; } .lg-rep .lg-tline > div:last-child { align-items: flex-end; }
.lg-rep .lg-tline i { width: calc(var(--lu) * 12); height: calc(var(--lu) * 12); box-sizing: border-box; border: 2px solid #7ccaff; border-radius: 50%; background: #214867; }
.lg-rep .lg-tline span { margin-top: calc(var(--lu) * 4); font-size: calc(var(--lu) * 11.5); color: #9ab4cc; }
.lg-rep .lg-tline strong { font-size: calc(var(--lu) * 22); font-weight: 550; }
.lg-rep .lg-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--lu) * 12); }
.lg-rep .lg-stat { padding: calc(var(--lu) * 16); min-height: calc(var(--lu) * 88); }
.lg-rep .lg-stat span { display: block; font-size: calc(var(--lu) * 11.5); color: #9ab3cc; }
.lg-rep .lg-stat strong { display: block; margin-top: calc(var(--lu) * 6); font-size: calc(var(--lu) * 29); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.lg-rep .lg-acc2, .lg-rep .lg-crew, .lg-rep .lg-rec { padding: calc(var(--lu) * 18) calc(var(--lu) * 20); }
.lg-rep .lg-acc2 .lg-dr, .lg-rep .lg-crew .lg-dr { min-height: calc(var(--lu) * 36); }
/* the landing report */
.lg-rep .lg-ldcol { display: flex; flex-direction: column; gap: calc(var(--lu) * 12); }
.lg-rep .lg-rwy { padding: calc(var(--lu) * 12) calc(var(--lu) * 14) calc(var(--lu) * 10); }
.lg-rep .lg-tsum { display: grid; grid-template-columns: 1.05fr 1.5fr 1fr; align-items: center; gap: calc(var(--lu) * 16); }
.lg-rep .lg-tsum h2 { margin: calc(var(--lu) * 3) 0; font-size: calc(var(--lu) * 22); font-weight: 600; color: #f3ce72; }
.lg-rep .lg-tsum p { margin: 0; font-size: calc(var(--lu) * 10.5); line-height: 1.4; color: #96adc4; }
.lg-rep .lg-tmid { display: flex; flex-direction: column; gap: calc(var(--lu) * 4); text-align: center; }
.lg-rep .lg-tmid strong { font-size: calc(var(--lu) * 15); font-weight: 600; }
.lg-rep .lg-tmid span { font-size: calc(var(--lu) * 12); color: #d6e4f1; } .lg-rep .lg-tmid small { font-size: calc(var(--lu) * 11); color: #a0b7cd; } .lg-rep .lg-tmid small b { color: #f0c96e; font-weight: 600; }
.lg-rep .lg-tx { padding-left: calc(var(--lu) * 12); border-left: 1px solid rgba(82, 112, 140, .2); }
.lg-rep .lg-tx .lg-dr { min-height: calc(var(--lu) * 22); padding: calc(var(--lu) * 2) 0; border: 0; } .lg-rep .lg-tx .lg-dr > span { font-size: calc(var(--lu) * 10.5); } .lg-rep .lg-tx .lg-dr > strong { font-size: calc(var(--lu) * 11.5); }
.lg-rep .lg-rleg { display: flex; align-items: center; gap: calc(var(--lu) * 16); min-height: calc(var(--lu) * 26); margin-top: calc(var(--lu) * 6); font-size: calc(var(--lu) * 11); }
.lg-rep .lg-rleg > strong { margin-right: auto; font-size: calc(var(--lu) * 12.5); font-weight: 600; color: #2ee68a; }
.lg-rep .lg-gk { display: flex; align-items: center; gap: calc(var(--lu) * 6); } .lg-rep .lg-gk::before { content: ""; width: calc(var(--lu) * 18); border-top: 2px dotted currentColor; }
.lg-rep .lg-gk.n { color: #2ee68a; } .lg-rep .lg-gk.c { color: #eace7d; }
.lg-rep .lg-vac { margin-left: auto; min-width: calc(var(--lu) * 60); text-align: right; font-size: calc(var(--lu) * 10.5); letter-spacing: .07em; color: #c597f1; text-transform: uppercase; }
.lg-rep .lg-rwy .rp-td.bare { margin: calc(var(--lu) * 2) calc(var(--lu) * -4) 0; padding: 0; border: 0; background: none; }
.lg-rep .lg-rwy .rp-td.bare .rp-svg, .lg-rep .lg-rwy .rp-zw .rp-svg { display: block; width: 100%; height: auto; max-height: none; border-radius: calc(var(--lu) * 8); }
.lg-rep .lg-rfoot { display: flex; align-items: center; gap: calc(var(--lu) * 14); margin-top: calc(var(--lu) * 4); font-size: calc(var(--lu) * 10); color: #8aa5bf; }
.lg-rep .lg-rfoot > strong { font-size: calc(var(--lu) * 11.5); font-weight: 600; white-space: nowrap; } .lg-rep .lg-rfoot > span:nth-child(2) { margin-left: auto; text-align: right; } .lg-rep .lg-rfoot > span:last-child { color: #6d8aa8; white-space: nowrap; }
.lg-rep .lg-appr { padding: calc(var(--lu) * 12) calc(var(--lu) * 14) calc(var(--lu) * 10); background: linear-gradient(160deg, #122238, #0d1828); }
.lg-rep .lg-appr .lg-sh h2 { font-size: calc(var(--lu) * 15); color: #cce7fb; }
.lg-rep .lg-aleg { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: calc(var(--lu) * 14); }
.lg-rep .lg-aleg span { display: flex; align-items: center; gap: calc(var(--lu) * 6); font-size: calc(var(--lu) * 10.5); color: #9ab3cb; white-space: nowrap; }
.lg-rep .lg-aleg i { width: calc(var(--lu) * 16); border-top: 2px solid #6fc3ff; } .lg-rep .lg-aleg i.g { border-top: 2px dashed #7de3a0; } .lg-rep .lg-aleg i.s { border-color: #ffb300; } .lg-rep .lg-aleg i.r { border-color: #c07bff; }
.lg-rep .lg-appr .rp-svg { display: block; width: 100%; height: auto; max-height: none; }
.lg-rep .lg-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--lu) * 12); align-items: start; }
/* the old report's own parts, inside the new cards: the same surfaces, the real Inter, a size up */
.lg-rep .lg-old { padding: calc(var(--lu) * 14) calc(var(--lu) * 16); }
.lg-rep .lg-ffl { display: flex; flex-direction: column; gap: calc(var(--lu) * 14); }
.lg-rep .lg-old .rp-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: calc(var(--lu) * 18) 0 calc(var(--lu) * 10); padding: 0 0 calc(var(--lu) * 6); border-bottom: 1px solid rgba(87, 120, 152, .18); }
.lg-rep .lg-old > .rp-h:first-child { margin-top: 0; }
.lg-rep .lg-old .rp-h b { font-size: calc(var(--lu) * 14); font-weight: 600; letter-spacing: .06em; color: #7dceff; }
.lg-rep .lg-old .rp-h span { font-size: calc(var(--lu) * 11); letter-spacing: .06em; color: #93abc2; }
.lg-rep .lg-old .rp-tile, .lg-rep .lg-old .rp-box, .lg-rep .lg-old .rp-bal, .lg-rep .lg-old .rp-gate, .lg-rep .lg-old .rp-cmp-row { border: 1px solid rgba(85, 119, 155, .27) !important; border-radius: calc(var(--lu) * 11) !important;
  background: linear-gradient(150deg, rgba(44, 62, 85, .43), rgba(25, 42, 64, .44)) !important; box-shadow: inset 0 1px 0 rgba(197, 229, 255, .07) !important; }
.lg-rep .lg-old .rp-note { font-size: calc(var(--lu) * 12); color: #9ab1c7; letter-spacing: 0; }
.lg-rep .lg-old .rp-tile > span { white-space: normal; overflow: visible; text-overflow: clip; }
.lg-rep .lg-old .rp-svg { border-radius: calc(var(--lu) * 8); }
.lg-rep .lg-wait { display: flex; align-items: center; justify-content: center; gap: calc(var(--lu) * 12); padding: calc(var(--lu) * 60) 0; font-size: calc(var(--lu) * 14); color: #9db1c6; }
.lg-rep .lg-spin { width: calc(var(--lu) * 20); height: calc(var(--lu) * 20); box-sizing: border-box; border: 2px solid rgba(138, 180, 211, .28); border-top-color: #92ddff; border-radius: 50%; animation: gs-spin .8s linear infinite; }
@keyframes gs-spin { to { transform: rotate(360deg); } }

/* b673 (John, 6 Nov, on the iPad): the Log had grown (touchdown zone, centreline, rate, G, on blocks, the money, the full
   report) and the card on the right looked squashed. On a tablet across and on a desktop every switch goes up into the
   heading's one row: FLIGHT LOG, then MY FLIGHTS | ALL FLIGHTS, then FLIGHTS DAYS AWARDS SCORING, then the streak and
   PILOT | AIRLINE. The row that freed makes the list and the card taller, and the card's rows, figures and money bigger.
   A narrower screen (an iPad upright) keeps the two rows */
@container awlog (min-width: 961px) {
  #view-log.lg6 .log-head { position: relative; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-rows: calc(var(--lu) * 60); column-gap: calc(var(--lu) * 14); margin-bottom: calc(var(--lu) * 12); }
  #view-log.lg6 .lg-ttl { grid-row: 1; grid-column: 1; }
  /* b674 (John): the three switches on one line, the same height, their middles level (MY FLIGHTS sat at the top of the
     row), and FLIGHTS DAYS AWARDS SCORING in the middle of the screen, the count of flights just after it */
  #view-log.lg6 #log-whose { grid-row: 1; grid-column: 2; align-self: center; }
  #view-log.lg6 #log-streak, #view-log.lg6 #log-streak > .aw-streak { grid-row: 1; grid-column: 4; align-self: center; justify-self: end; }
  #view-log.lg6 .log-head-right { grid-row: 1; grid-column: 1 / -1; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; }
  #view-log.lg6 .log-head-right #log-count { position: absolute; left: 100%; top: 50%; transform: translateY(-50%); margin-left: calc(var(--lu) * 10); }
  #view-log.lg6 .log-whose button, #view-log.lg6 .log-tab, #view-log.lg6 .aw-streak-toggle.pilltog button { min-width: calc(var(--lu) * 64); padding: 0 calc(var(--lu) * 15); }
  #view-log.lg6 .aw-streak { gap: calc(var(--lu) * 10); }
  /* the card, with the room: bigger rows, figures and money */
  #lg-side .fsc-emb .fsc-g { width: min(calc(var(--lu) * 260), 38cqh); }
  #lg-side .fsc-emb .fsc-t { margin: calc(var(--lu) * 8) 0; font-size: calc(var(--lu) * 10.5); }
  #lg-side .fsc-emb .fsc-r { min-height: calc(var(--lu) * 41); margin-top: calc(var(--lu) * 7); padding: calc(var(--lu) * 6) calc(var(--lu) * 14); }
  #lg-side .fsc-emb .fsc-r span { font-size: calc(var(--lu) * 14); }
  #lg-side .fsc-emb .fsc-r b { font-size: calc(var(--lu) * 15.5); }
  #lg-side .fsc-emb .fsc-r em { font-size: calc(var(--lu) * 10.5); }
  #lg-side .fsc-emb .fsc-m { min-height: calc(var(--lu) * 60); margin-top: calc(var(--lu) * 12); }
  #lg-side .fsc-emb .fsc-m span { font-size: calc(var(--lu) * 9.5); }
  #lg-side .fsc-emb .fsc-m b { font-size: calc(var(--lu) * 28); }
}

/* ===================== a phone: the list, the card as a sheet over it, the reports stacked ===================== */
@media (max-width: 640px) {
  #view-log.lg6 { container-type: normal; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  #view-log.lg6 > * { --lu: 1px; }
  #view-log.lg6 .lg-art { height: 150px; }
  #view-log.lg6 .log-panel { display: flex; flex-direction: column; height: auto; min-height: 100%; padding: 14px 12px 20px; }
  #view-log.lg6 .log-head { display: flex; flex-wrap: wrap; gap: 10px 10px; margin-bottom: 12px; }
  #view-log.lg6 .lg-ttl { flex: 1 1 auto; }
  #view-log.lg6 .lg-ttl small, #view-log.lg6 #log-title { display: table; }
  #view-log.lg6 #log-streak { flex: 0 0 auto; }
  #view-log.lg6 #log-whose { flex: 1 1 100%; }
  #view-log.lg6 #log-whose button { flex: 1; }
  #view-log.lg6 .log-head-right { flex: 1 1 100%; flex-wrap: wrap; gap: 8px; display: flex; width: 100%; order: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  #view-log.lg6 .log-head-right .lg-tabs { display: flex; flex: 1 1 100%; }
  #view-log.lg6 .log-panel > #log-rows, #view-log.lg6 .log-panel > #log-days, #view-log.lg6 .log-panel > #log-awards, #view-log.lg6 .log-panel > #log-rules { margin: 0; }
  #view-log.lg6 .log-head-right .log-tab { min-width: 0; flex: 1 1 0; padding: 0 6px; font-size: 13px; }
  #view-log.lg6 .log-whose, #view-log.lg6 .aw-streak-toggle.pilltog { height: 48px; }
  #view-log.lg6 .aw-streak-toggle.pilltog button { min-width: 64px; padding: 0 12px; }
  #view-log.lg6 #log-count { flex: 1 1 100%; text-align: right; font-size: 12px; }
  #view-log.lg6 .log-panel > #log-rows, #view-log.lg6 .log-panel > #log-days, #view-log.lg6 .log-panel > #log-awards, #view-log.lg6 .log-panel > #log-rules { overflow: visible; padding: 0 8px 6px; }
  #view-log.lg6 #log-rows .log-entry > .log-row { gap: 10px; height: 62px; padding: 0 6px; }
  #view-log.lg6 #log-rows .log-row .lg-rating { width: 50px; height: 30px; font-size: 18px; }
  #view-log.lg6 .lg-main .lg-route { font-size: 14.5px; gap: 7px; }
  #view-log.lg6 .lg-sub { font-size: 11px; }
  #view-log.lg6 #log-rows .log-entry .lg-ldg b { font-size: 12.5px; }
  #view-log.lg6 #log-rows .log-entry .lg-ldg > small { font-size: 11px; }
  #view-log.lg6 .lg-go { display: none; }
  /* the card: a sheet from the foot of the screen, over the list */
  #view-log.lg6 #lg-side { position: fixed; inset: 0; z-index: 250; display: none; align-items: flex-end; justify-content: center; padding: 12px 10px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(3, 6, 12, .66); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); --lu: 0.92px; }
  body.lg-sheet #view-log.lg6 .log-panel:not(:has(> #log-rows.hidden)):not(:has(#log-rows .va-entry)) > #lg-side { display: flex; flex-direction: column; justify-content: flex-end; }
  body.lg-sheet #view-log.lg6 #lg-side .fsc-card.fsc-emb { flex: none; max-height: calc(100dvh - 40px); overflow-y: auto; animation: lg-sheet .3s cubic-bezier(.2, .9, .3, 1.05); }
  @keyframes lg-sheet { from { transform: translateY(40px); opacity: 0; } }
  #view-log.lg6 #lg-side .fsc-open { margin-top: 12px; height: 48px; font-size: 14px; }
  #view-log.lg6 #lg-side .lg-pick { display: none; }
  /* the reports: one column, the whole page scrolls under the bar */
  .lg-rep > .lg-rep-in { --lu: 1px; }
  .lg-rep .lg-top { height: 54px; padding: 0 8px; }
  .lg-rep .lg-ttl { font-size: 14px; }
  .lg-rep .lg-back span { font-size: 14px; }
  .lg-rep .lg-pagein { padding: 0 12px calc(24px + env(safe-area-inset-bottom, 0px)); }
  .lg-rep .lg-id { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 0; }
  .lg-rep .lg-id h1, .lg-rep .lg-pg-takeoff .lg-id h1, .lg-rep .lg-pg-landing .lg-id h1, .lg-rep .lg-pg-flight .lg-id h1 { font-size: 27px; }
  .lg-rep .lg-nav { grid-template-columns: 1fr; gap: 8px; }
  .lg-rep .lg-navb { justify-content: flex-start; height: 48px; font-size: 14px; } .lg-rep .lg-navb span { flex: 1; }
  .lg-rep .lg-sumgrid, .lg-rep .lg-togrid, .lg-rep .lg-three, .lg-rep .lg-two, .lg-rep .lg-stats { grid-template-columns: 1fr; }
  .lg-rep .lg-tsum { grid-template-columns: 1fr; text-align: left; } .lg-rep .lg-tmid { text-align: left; } .lg-rep .lg-tx { padding: 8px 0 0; border: 0; border-top: 1px solid rgba(82, 112, 140, .2); }
  .lg-rep .lg-rleg { flex-wrap: wrap; } .lg-rep .lg-rleg > strong { flex: 1 1 100%; }
  .lg-rep .lg-rfoot { flex-wrap: wrap; } .lg-rep .lg-rfoot > span:nth-child(2) { margin-left: 0; text-align: left; flex: 1 1 100%; order: 3; }
  .lg-rep .lg-sh { flex-wrap: wrap; } .lg-rep .lg-aleg { justify-content: flex-start; }
  .lg-rep .lg-dr > span, .lg-rep .lg-card .lg-dr > span, .lg-rep .lg-fs .lg-dr > span { font-size: 13px; }
  .lg-rep .lg-dr > strong, .lg-rep .lg-card .lg-dr > strong, .lg-rep .lg-fs .lg-dr > strong { font-size: 14px; }
  .lg-rep .lg-rbtn { height: 50px; font-size: 14px; }
}

/* ===================== b619 (John): richer shading, everywhere. The surfaces were washed out (grey-blue, see-through); now
   they take the Briefing pack's own buttons (briefing.js .sbp-btn): deep navy gradients with a crisp blue edge, a fine top
   highlight and a firm contact shadow; fields a dark inset well; the greens as vibrant as VIEW FULL BRIEFING. One set of
   tokens, used by the Overview, Ground Services, the Log and its reports. Rating colours are untouched */
:root {
  --aw-surf: linear-gradient(160deg, #13294a 0%, #0d1d36 52%, #091527 100%);
  --aw-surf-edge: rgba(63, 182, 255, .3);
  --aw-surf-sh: inset 0 1px 0 rgba(150, 210, 255, .12), inset 0 -1px 0 rgba(0, 0, 0, .35), 0 8px 22px rgba(0, 0, 0, .45), 0 1px 2px rgba(0, 0, 0, .5);
  --aw-btn: linear-gradient(180deg, #17406f 0%, #10294d 55%, #0d2140 100%);
  --aw-btn-hi: linear-gradient(180deg, #1c4a80 0%, #133060 55%, #0f264a 100%);
  --aw-btn-edge: rgba(63, 182, 255, .48);
  --aw-btn-sh: inset 0 1px 0 rgba(160, 215, 255, .22), inset 0 -2px 0 rgba(0, 0, 0, .28), 0 3px 9px rgba(0, 0, 0, .45);
  --aw-tile: linear-gradient(180deg, #11284a 0%, #0b1c36 100%);
  --aw-tile-edge: rgba(63, 182, 255, .26);
  --aw-tile-sh: inset 0 1px 0 rgba(150, 210, 255, .1), 0 2px 6px rgba(0, 0, 0, .35);
  --aw-well: linear-gradient(180deg, #060f1f 0%, #0a1830 100%);
  --aw-well-edge: rgba(63, 182, 255, .28);
  --aw-well-sh: inset 0 2px 5px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(0, 0, 0, .15), 0 1px 0 rgba(150, 210, 255, .07);
  --aw-blue: linear-gradient(180deg, #4fb2ff 0%, #2a86ea 55%, #1f6fd0 100%);
  --aw-blue-edge: rgba(150, 210, 255, .45);
  --aw-blue-sh: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 1px rgba(0, 30, 80, .3), 0 3px 10px rgba(31, 126, 232, .4);
  --aw-green: linear-gradient(180deg, #2ee66b 0%, #1db454 100%);
  --aw-green-ink: #04140a;
  --aw-green-sh: inset 0 1px 0 rgba(255, 255, 255, .38), inset 0 -2px 0 rgba(0, 70, 25, .3), 0 4px 14px rgba(46, 230, 107, .26), 0 2px 4px rgba(0, 0, 0, .4);
  --aw-red: linear-gradient(180deg, #4a1820 0%, #2e0d13 100%);
  --aw-red-edge: rgba(255, 90, 90, .55);
}
/* the tab bar's pill, saturated */
.tab-pill { background: var(--aw-blue); border: 1px solid var(--aw-blue-edge); box-shadow: var(--aw-blue-sh); }

/* ---- the Overview ---- */
.m-card { background: linear-gradient(160deg, #122a4b 0%, #0b1a31 55%, #08121f 100%); border-color: var(--aw-surf-edge); box-shadow: 0 24px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(150, 210, 255, .1); }
.m-desk .m-oc, .m-desk .m-more-b, .m-desk .m-ocgrid .m-wx-slot .m-wx, .m-desk .m-acts-end .m-act, .m-desk .m-endrow-r .m-oc {
  background: var(--aw-btn); border: 1px solid var(--aw-btn-edge); box-shadow: var(--aw-btn-sh); }
.m-desk .m-oc:hover:not(:disabled), .m-desk .m-more-b:hover, .m-desk .m-acts-end .m-act:hover:not(:disabled) { background: var(--aw-btn-hi); border-color: rgba(100, 200, 255, .65); }
.m-desk .m-oc.off, .m-desk .m-oc:disabled { background: linear-gradient(180deg, #102440 0%, #0b1b33 100%); border-color: rgba(63, 182, 255, .2); box-shadow: inset 0 1px 0 rgba(150, 210, 255, .06), 0 2px 6px rgba(0, 0, 0, .35); }
.m-desk .m-oc.hot { border-color: rgba(255, 194, 77, .75); box-shadow: 0 0 0 3px rgba(255, 194, 77, .1), var(--aw-btn-sh); }
.m-desk .m-more-b.hot { border-color: rgba(255, 194, 77, .8); box-shadow: 0 0 0 3px rgba(255, 194, 77, .12), var(--aw-btn-sh); }
.m-desk .m-oc .m-oc-ic, .m-desk .m-act .m-oc-ic { background: rgba(5, 14, 28, .55); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .45); }
.m-desk .m-stats > div, .m-stats > div { background: var(--aw-tile); border: 1px solid var(--aw-tile-edge); box-shadow: var(--aw-tile-sh); }
.m-facts > div { background: var(--aw-tile); border-color: var(--aw-tile-edge); }
/* MORE's list: the panel a surface, each option a button, the ready one the briefing's green */
.m-desk .m-more-p { background: var(--aw-surf); border: 1px solid rgba(63, 182, 255, .5); box-shadow: var(--aw-surf-sh), 0 14px 34px rgba(0, 0, 0, .55); }
.m-desk .m-more-p .m-act { background: var(--aw-btn); border: 1px solid var(--aw-btn-edge); box-shadow: var(--aw-btn-sh); }
.m-desk .m-more-p .m-act:disabled { background: linear-gradient(180deg, #0f223d, #0a182d); border-color: rgba(63, 182, 255, .18); box-shadow: none; }
.m-desk .m-more-p .m-act.ready { background: var(--aw-green); border-color: transparent; box-shadow: var(--aw-green-sh); }
.m-desk .m-more-p .m-act.ready .m-oc-tx b, .m-desk .m-more-p .m-act.ready .m-oc-tx small { color: var(--aw-green-ink); }
.m-desk .m-more-p .m-act.ready .m-act-go { stroke: var(--aw-green-ink); }
.m-desk .m-more-p .m-act.ready .m-oc-ic { background: rgba(4, 20, 10, .16); box-shadow: none; }
.m-desk .m-more-p .m-act.ready .m-oc-ic svg { stroke: var(--aw-green-ink); }
.m-desk .m-more-p .m-act.oc-em:not(:disabled) { background: var(--aw-red); border-color: var(--aw-red-edge); }
/* the phone's buttons, no longer see-through */
.m-btn { background: var(--aw-btn); border-color: var(--aw-btn-edge); box-shadow: var(--aw-btn-sh); }
.m-btn:hover { background: var(--aw-btn-hi); }
.m-day { background: var(--aw-btn); border-color: var(--aw-btn-edge); box-shadow: var(--aw-btn-sh); }
.m-day.end { background: var(--aw-green); border-color: transparent; box-shadow: var(--aw-green-sh); }
.m-day.end:hover { background: linear-gradient(180deg, #45ee7d, #22c35d); }
.m-day.end, .m-day.end b, .m-day.end small, .m-day.end span { color: var(--aw-green-ink); }
.m-day.emerg { background: var(--aw-red); border-color: var(--aw-red-edge); }
.m-next { background: var(--aw-blue); border: 1px solid var(--aw-blue-edge); box-shadow: var(--aw-blue-sh); }

/* ---- Ground Services: the bars more vibrant (white words stay readable), the edges crisper, the secondary pills as the
   OFP button ---- */
.g6-bar.green { background: linear-gradient(180deg, #1fc65f 0%, #0f9a48 100%); border-color: rgba(120, 245, 165, .85); }
.g6-bar.blue { background: linear-gradient(180deg, #2a9cf5 0%, #1673d0 100%); border-color: rgba(150, 220, 255, .85); }
#gsx-body .gs-tile, #gsx-body .gc-opt { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -1px 0 rgba(0, 0, 0, .35), 0 6px 18px rgba(0, 0, 0, .45); }
.g6-info { border-color: rgba(63, 182, 255, .38); box-shadow: inset 0 1px 0 rgba(150, 210, 255, .1), 0 6px 18px rgba(0, 0, 0, .4); }
#gsx-body .gs-dir { background: #0b1d33; border-color: rgba(63, 182, 255, .45); box-shadow: inset 0 1px 0 rgba(150, 210, 255, .12), 0 8px 26px rgba(0, 0, 0, .45); }
#gsx-body .gs-pill { background: var(--aw-btn); border-color: var(--aw-btn-edge); box-shadow: var(--aw-btn-sh); }
#gsx-body .gc-x { background: var(--aw-btn); border-color: var(--aw-btn-edge); box-shadow: var(--aw-btn-sh); }

/* ---- the Log ---- */
#view-log.lg6 .log-panel > #log-rows, #view-log.lg6 .log-panel > #log-days, #view-log.lg6 .log-panel > #log-awards, #view-log.lg6 .log-panel > #log-rules {
  background: var(--aw-surf); border-color: var(--aw-surf-edge); box-shadow: var(--aw-surf-sh); }
#view-log.lg6 .log-whose, #view-log.lg6 .log-head-right .lg-tabs, #view-log.lg6 .aw-streak-toggle.pilltog { background: var(--aw-well); border-color: var(--aw-well-edge); box-shadow: var(--aw-well-sh); }
#view-log.lg6 .log-whose button.on, #view-log.lg6 .log-tab.active, #view-log.lg6 .aw-streak-toggle.pilltog button.on, #view-log.lg6 .aw-streak-toggle.pilltog .pill-th { background: var(--aw-blue); border-color: var(--aw-blue-edge); box-shadow: var(--aw-blue-sh); }
#view-log.lg6 #log-rows .log-entry.chosen > .log-row, #view-log.lg6 #log-days .log-entry.open > .ld-row { background: linear-gradient(100deg, rgba(36, 100, 170, .55), rgba(22, 64, 116, .5)); box-shadow: inset 0 0 0 1px rgba(90, 185, 255, .55), inset 0 1px 0 rgba(160, 215, 255, .15); }
#lg-side .fsc-card.fsc-emb { background: var(--aw-surf); border-color: var(--aw-surf-edge); box-shadow: var(--aw-surf-sh); }
#lg-side .fsc-emb .fsc-r { background: var(--aw-tile); border-color: var(--aw-tile-edge); }
#lg-side .fsc-emb .fsc-m { background: linear-gradient(180deg, #0e4a2a, #0a3520); border-color: rgba(46, 230, 107, .55); box-shadow: inset 0 1px 0 rgba(120, 255, 170, .14); }
#lg-side .fsc-open { background: var(--aw-blue); border-color: var(--aw-blue-edge); box-shadow: var(--aw-blue-sh); }
.lg-rep .lg-top { background: linear-gradient(180deg, #11264a, #0b1a33); border-bottom: 1px solid rgba(63, 182, 255, .25); }
.lg-rep .lg-panel, .lg-rep .lg-appr { background: var(--aw-surf); border-color: var(--aw-surf-edge); box-shadow: var(--aw-surf-sh); }
.lg-rep .lg-navb, .lg-rep .lg-rbtn { background: var(--aw-btn); border-color: var(--aw-btn-edge); box-shadow: var(--aw-btn-sh); }
.lg-rep .lg-navb.on { background: var(--aw-blue); border-color: var(--aw-blue-edge); box-shadow: var(--aw-blue-sh); }
.lg-rep .lg-tool { background: var(--aw-btn); border-color: var(--aw-btn-edge); box-shadow: var(--aw-btn-sh); }
.lg-rep .lg-brief { background: linear-gradient(180deg, #1b4d82, #11305a); border-color: rgba(100, 195, 255, .55); box-shadow: var(--aw-btn-sh); }
.lg-rep .lg-inset { background: var(--aw-well); border-color: var(--aw-well-edge); box-shadow: var(--aw-well-sh); }
.lg-rep .lg-old .rp-tile, .lg-rep .lg-old .rp-box, .lg-rep .lg-old .rp-bal, .lg-rep .lg-old .rp-gate { background: var(--aw-tile) !important; border-color: var(--aw-tile-edge) !important; }
/* the small round buttons on the Overview (the weather's refresh, MORE's X): a 44 point touch area round them, the look as it was */
.m-wx-ref.ov-ref, .m-desk .m-more-x { position: relative; }
.m-wx-ref::after, .m-desk .m-more-x::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; }
/* a phone: the Log's lists as tall as what is in them (the Days list had kept the tablet's height, its last rows below its
   edge), and a day's row narrows its date so the money is never pushed off the right */
@media (max-width: 640px) {
  #view-log.lg6 .log-panel > #log-rows, #view-log.lg6 .log-panel > #log-days, #view-log.lg6 .log-panel > #log-awards, #view-log.lg6 .log-panel > #log-rules { flex: none; height: auto; max-height: none; min-height: 0; }
  #view-log.lg6 #log-days .ld-row { gap: 10px; padding: 0 6px; }
  #view-log.lg6 #log-days .ld-row .lg-when { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #view-log.lg6 #log-days .ld-row .ld-chain { display: none; }
  #view-log.lg6 #log-days .ld-row .ld-money { flex: none; }
}
/* a phone: the refresh in the card's corner sat on the LIVE pill; the top row keeps clear of it */
.m-ov:not(.m-desk) .m-top { padding-right: 34px; }

/* ===================== b621 (John): the intro and the logo that opens the side menu ===================== */
/* the intro: the short videos' end card (their ground, brackets, the mark with its glow, AIRWING HQ in Jost, the
   line in Inter with its blue words), over the app while it loads; it leaves in about 400 ms as the app settles in */
html.aw-intro-on body { overflow: hidden; }
#aw-intro { position: fixed; inset: 0; z-index: 9990; display: grid; place-items: center; overflow: hidden; color: #e6f1fc;
  font-family: 'Inter Var', var(--ui); font-synthesis: none; background: #04070f; cursor: default;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
#aw-intro .awi-ground { position: absolute; inset: 0;
  background: linear-gradient(rgba(63, 182, 255, .05) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, rgba(63, 182, 255, .05) 1px, transparent 1px) 0 0 / 56px 56px,
    radial-gradient(110vmax 80vmax at 50% -10%, #0b2350 0%, rgba(8, 26, 56, .5) 42%, rgba(4, 7, 15, 0) 75%), radial-gradient(110vmax 60vmax at 50% 112%, rgba(43, 127, 255, .16), rgba(4, 7, 15, 0) 70%), #04070f;
  animation: awi-ground 2.1s ease-out both; }
#aw-intro .awi-brk { position: absolute; width: min(7vmin, 64px); height: min(7vmin, 64px); border: 0 solid rgba(63, 182, 255, .5); animation: awi-fade .5s .15s ease-out both; }
#aw-intro .awi-brk.a { left: 5vmin; top: calc(5vmin + env(safe-area-inset-top, 0px)); border-width: 2px 0 0 2px; }
#aw-intro .awi-brk.b { right: 5vmin; top: calc(5vmin + env(safe-area-inset-top, 0px)); border-width: 2px 2px 0 0; }
#aw-intro .awi-brk.c { left: 5vmin; bottom: calc(5vmin + env(safe-area-inset-bottom, 0px)); border-width: 0 0 2px 2px; }
#aw-intro .awi-brk.d { right: 5vmin; bottom: calc(5vmin + env(safe-area-inset-bottom, 0px)); border-width: 0 2px 2px 0; }
#aw-intro .awi-in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 6vw; max-width: 1100px; }
#aw-intro .awi-markw { position: relative; width: clamp(96px, 17vmin, 190px); aspect-ratio: 1; animation: awi-mark .75s cubic-bezier(.2, .9, .25, 1.15) both; }
#aw-intro .awi-mark { position: relative; display: block; width: 100%; height: 100%; border-radius: 18%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 80px rgba(63, 182, 255, .25), 0 0 0 1px rgba(63, 182, 255, .3); }
#aw-intro .awi-halo { position: absolute; left: 50%; top: 50%; width: 260%; height: 260%; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(63, 182, 255, .26) 0%, rgba(43, 127, 255, .09) 40%, rgba(43, 127, 255, 0) 70%); animation: awi-halo 2.1s ease-out both; }
#aw-intro .awi-sweep { position: absolute; inset: 0; border-radius: 18%; overflow: hidden; pointer-events: none; }
#aw-intro .awi-sweep::after { content: ""; position: absolute; top: -20%; bottom: -20%; width: 45%; left: -60%; transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .42), transparent); animation: awi-sweep .9s .5s cubic-bezier(.45, 0, .2, 1) both; }
#aw-intro .awi-wm { margin-top: clamp(18px, 3.6vmin, 40px); font-family: 'Jost', 'Inter Var', sans-serif; font-weight: 700; letter-spacing: .08em; font-size: clamp(30px, 6.4vmin, 76px);
  line-height: 1; color: #f4f8ff; animation: awi-rise .5s .32s cubic-bezier(.2, .8, .2, 1) both; }
#aw-intro .awi-wm b, #aw-intro .awi-cta b { background: linear-gradient(135deg, #2b7fff, #3fb6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
#aw-intro .awi-cta { margin-top: clamp(14px, 2.6vmin, 30px); font-weight: 800; font-size: clamp(17px, 3.1vmin, 36px); line-height: 1.2; letter-spacing: -.02em;
  animation: awi-rise .45s .62s cubic-bezier(.2, .8, .2, 1) both; }
#aw-intro .awi-sub { margin-top: clamp(8px, 1.4vmin, 16px); max-width: 30em; font-weight: 700; font-size: clamp(13px, 2.1vmin, 24px); line-height: 1.3; letter-spacing: -.01em;
  color: rgba(222, 236, 252, .88); animation: awi-rise .45s .88s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes awi-ground { from { opacity: .4; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes awi-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes awi-mark { from { opacity: 0; transform: scale(.78) translateY(10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes awi-halo { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 45% { opacity: 1; } 100% { opacity: .85; transform: translate(-50%, -50%) scale(1.05); } }
@keyframes awi-sweep { from { left: -60%; } to { left: 120%; } }
@keyframes awi-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
/* the way out: the card lifts and fades, the app comes up from just behind it */
#aw-intro.out { pointer-events: none; animation: awi-out .4s cubic-bezier(.4, 0, .2, 1) forwards; }
#aw-intro.out .awi-in { animation: awi-in-out .4s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes awi-out { to { opacity: 0; } }
@keyframes awi-in-out { to { transform: scale(1.06); filter: blur(2px); } }
html.aw-intro-out #topbar, html.aw-intro-out #tabs, html.aw-intro-out #views { animation: awi-app .42s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes awi-app { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  #aw-intro *, #aw-intro .awi-ground { animation: awi-fade .3s ease-out both !important; }
  #aw-intro .awi-sweep { display: none; }
  #aw-intro.out { animation: awi-out .3s ease-out forwards; }
  #aw-intro.out .awi-in { animation: none; }
  html.aw-intro-out #topbar, html.aw-intro-out #tabs, html.aw-intro-out #views { animation: awi-fade .3s ease-out both; }
}

/* the logo button: the mark with a small chevron, left of OVERVIEW in the tab strip (tablet and computer; a phone keeps
   its own bar). It presses at once, pulses, and opens the side menu */
#aw-logo { display: none; }
@media (min-width: 641px) {
  #aw-logo { position: relative; z-index: 2; flex: 0 0 auto; display: flex; align-items: center; gap: 5px; align-self: center; height: 50px; margin: 0 6px 0 2px; padding: 0 8px 0 4px;
    border: 1px solid transparent; border-radius: 14px; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: transform .12s cubic-bezier(.2, .9, .3, 1.2), background .15s ease, border-color .15s ease; }
  #aw-logo img { display: block; width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, .45), 0 0 0 1px rgba(63, 182, 255, .3); transition: box-shadow .2s ease; }
  #aw-logo svg { width: 14px; height: 14px; fill: none; stroke: #8fd0ff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .16s cubic-bezier(.2, .9, .3, 1); }
  #aw-logo:hover { background: rgba(63, 182, 255, .08); border-color: rgba(63, 182, 255, .25); }
  #aw-logo.open svg { transform: rotate(180deg); }
  #aw-logo.open img { box-shadow: 0 4px 14px rgba(0, 0, 0, .45), 0 0 0 2px rgba(79, 178, 255, .75), 0 0 18px rgba(63, 182, 255, .45); }
  #aw-logo.down { transform: translateY(1px) scale(.93); transition-duration: 45ms; }
  #aw-logo.pulse img { animation: awl-pulse .3s cubic-bezier(.2, .9, .3, 1); }
  @keyframes awl-pulse {
    0% { transform: scale(1); }
    35% { transform: scale(1.14); box-shadow: 0 6px 18px rgba(0, 0, 0, .45), 0 0 0 2px rgba(120, 200, 255, .9), 0 0 30px rgba(63, 182, 255, .8); }
    100% { transform: scale(1); } }
  /* the wordmark keeps the top bar on a computer; its mark moves to the button */
  body.aw-logo-on #topbar .brand-mark { display: none; }
  /* the tablet's one bar: the button where the mark was, the tabs from just after it */
  body.ov-desk.aw-logo-on #topbar .brand { visibility: hidden; pointer-events: none; }   /* kept in place: the status dot stays on the right */
  body.ov-desk.aw-logo-on #tabs { left: calc(10px + env(safe-area-inset-left, 0px)); }
  body.ov-desk #aw-logo { height: 48px; }
  body.ov-desk #aw-logo img { width: 42px; height: 42px; border-radius: 11px; }
}

/* the side menu on the tabs other than MY VA (which has its own): the same rail, sliding in from the left and moving
   the page right by its width so nothing is under it */
#aw-rail { display: none; }
@media (min-width: 641px) {
  #aw-rail { display: flex; flex-direction: column; align-items: stretch; gap: 6px; position: fixed; left: 0; top: var(--awr-top, 128px); bottom: 0; width: 76px; z-index: 47;
    box-sizing: border-box; padding: 10px 7px calc(12px + env(safe-area-inset-bottom, 0px)); font-family: 'Inter Var', var(--ui); font-synthesis: none;
    background: linear-gradient(180deg, #0c1a30 0%, #08111f 100%); border-right: 1px solid rgba(63, 182, 255, .22); box-shadow: 8px 0 24px rgba(0, 0, 0, .35);
    transform: translateX(-102%); visibility: hidden; will-change: transform; transition: transform .16s cubic-bezier(.2, .9, .3, 1), visibility 0s linear .16s; }
  body.aw-rail-open:not(.aw-on-vatab) #aw-rail { transform: none; visibility: visible; transition: transform .16s cubic-bezier(.2, .9, .3, 1), visibility 0s; }
  #aw-rail button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 60px; padding: 6px 2px; border-radius: 12px;
    border: 1px solid transparent; background: none; color: #a9bdd0; font: inherit; font-size: 11px; font-weight: 600; letter-spacing: .01em; cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: transform .12s cubic-bezier(.2, .9, .3, 1.2), background .15s ease, color .15s ease, border-color .15s ease; }
  #aw-rail button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
  #aw-rail button:hover { color: #e6f3ff; background: var(--aw-tile); border-color: var(--aw-tile-edge); }
  #aw-rail button.down { transform: translateY(1px) scale(.94); transition-duration: 45ms; color: #fff; background: var(--aw-blue); border-color: var(--aw-blue-edge); box-shadow: var(--aw-blue-sh); }
  #aw-rail .awr-acct { margin-top: auto; }
  body.ov-desk #aw-rail { --awr-top: calc(60px + env(safe-area-inset-top, 0px)); }
  /* the page moves over for it */
  /* b622: the page takes its place at once and slides there by a transform (app.js), never animating its left edge */
  body.aw-rail-open:not(.aw-on-vatab) #views, body.aw-rail-open:not(.aw-on-vatab) .noflight, body.aw-rail-open:not(.aw-on-vatab) .m-strip { left: 76px; }
  body.aw-rail-open:not(.aw-on-vatab) .acct-rail { display: none; }
  /* the overview's sizes come from the window's width: with the menu open, from the width that is left */
  body.aw-rail-open:not(.aw-on-vatab) .m-ov.m-desk { --u: calc(var(--u0) * var(--ufit, 1) * var(--awr-k, 1)); }
}
@media (prefers-reduced-motion: reduce) { #aw-rail, #aw-logo svg { transition: none !important; } #aw-logo.pulse img { animation: none; } }

/* ===================== b622 (John): a step darker, as the intro and the briefing pack; the Log's list five to a screen ==
   the surfaces and the Overview's card nearer the intro's navy (#04070f), so the blues and the greens stand out more */
:root {
  --aw-surf: linear-gradient(160deg, #102443 0%, #0a182e 52%, #07101e 100%);
  --aw-surf-sh: inset 0 1px 0 rgba(150, 210, 255, .11), inset 0 -1px 0 rgba(0, 0, 0, .4), 0 8px 22px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .55);
  --aw-tile: linear-gradient(180deg, #0f2443 0%, #091730 100%);
}
.m-card { background: linear-gradient(160deg, #0e2342 0%, #08152a 55%, #050c17 100%); box-shadow: 0 24px 60px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(150, 210, 255, .09); }
.m-art { opacity: .42; }
.m-ov:not(.m-desk) .m-art { opacity: .4; }
.m-art::after { background: linear-gradient(90deg, #0b1729 0%, rgba(10, 21, 38, .58) 30%, rgba(10, 21, 38, .5) 70%, rgba(10, 21, 38, .74) 100%), linear-gradient(0deg, #08111f 4%, transparent 75%); }
#view-log.lg6 { background: radial-gradient(ellipse at 85% -20%, rgba(28, 58, 96, .2), transparent 58%), #070c16; }
#view-log.lg6 .lg-art::after { background: linear-gradient(90deg, rgba(7, 12, 22, .86), rgba(7, 12, 22, .58) 32%, rgba(7, 12, 22, .28) 64%, rgba(7, 12, 22, .7)), linear-gradient(180deg, rgba(7, 12, 22, .14) 15%, rgba(7, 12, 22, .28) 62%, #070c16 100%); }

/* ---- the Log's list (and the Days): five rows fill the list, so each is taller with bigger words; the rest scroll inside
   the panel. A row is the list's height (less its month heading and foot) over five. VATSIM has its own place mid row ---- */
@media (min-width: 641px) {
  #view-log.lg6 .log-panel > #log-rows, #view-log.lg6 .log-panel > #log-days { container-type: size; }
  /* the list's own height (its content box: the padding is outside it), less the month's heading and its rule */
  #view-log.lg6 #log-rows { --lg-row: calc((100cqh - max(44px, var(--lu) * 56) - 1px) / 5 - 1px); }
  #view-log.lg6 #log-days { --lg-row: calc(100cqh / 5 - 1px); }
  #view-log.lg6 #log-rows .log-entry > .log-row { height: max(56px, var(--lg-row)); gap: calc(var(--lu) * 20); padding: 0 calc(var(--lu) * 12); }
  #view-log.lg6 #log-rows .log-row .lg-rating, #view-log.lg6 #log-days .ld-row .lg-rating { width: calc(var(--lu) * 72); height: calc(var(--lu) * 40); border-radius: calc(var(--lu) * 10); font-size: calc(var(--lu) * 25); }
  #view-log.lg6 #log-rows .lg-main { flex: 1 1 0; gap: calc(var(--lu) * 6); }
  #view-log.lg6 #log-rows .lg-main .lg-route { font-size: calc(var(--lu) * 20); gap: calc(var(--lu) * 13); }
  #view-log.lg6 #log-rows .lg-main .lg-route .chv { width: calc(var(--lu) * 16); height: calc(var(--lu) * 16); }
  #view-log.lg6 #log-rows .lg-sub { font-size: calc(var(--lu) * 13.5); }
  #view-log.lg6 #log-rows .lg-mid { flex: 0 0 auto; display: flex; justify-content: center; min-width: calc(var(--lu) * 96); }
  #view-log.lg6 #log-rows .lg-mid .lg-vat { margin: 0; padding: calc(var(--lu) * 5) calc(var(--lu) * 11); border: 1px solid rgba(36, 217, 114, .55); border-radius: calc(var(--lu) * 8);
    background: rgba(18, 63, 42, .45); color: #3ff08a; font-size: calc(var(--lu) * 12); font-weight: 700; letter-spacing: .07em; line-height: 1.2; box-shadow: inset 0 1px 0 rgba(140, 255, 190, .1); }
  #view-log.lg6 #log-rows .log-entry .lg-ldg { flex: 1 1 0; gap: calc(var(--lu) * 6); }
  #view-log.lg6 #log-rows .log-entry .lg-ldg b { font-size: calc(var(--lu) * 17); }
  #view-log.lg6 #log-rows .log-entry .lg-ldg b small { font-size: calc(var(--lu) * 11); }
  #view-log.lg6 #log-rows .log-entry .lg-ldg > small { font-size: calc(var(--lu) * 14); }
  #view-log.lg6 #log-rows .lg-go { width: calc(var(--lu) * 18); height: calc(var(--lu) * 18); }
  #view-log.lg6 #log-days .ld-row { height: max(56px, var(--lg-row)); min-height: 0; gap: calc(var(--lu) * 20); padding: 0 calc(var(--lu) * 12); }
  #view-log.lg6 #log-days .ld-row .lg-when { min-width: calc(var(--lu) * 230); font-size: calc(var(--lu) * 14); }
  #view-log.lg6 #log-days .ld-row .ld-chain { font-size: calc(var(--lu) * 20); gap: calc(var(--lu) * 11); }
  #view-log.lg6 #log-days .ld-row .ld-chain .chv { width: calc(var(--lu) * 15); height: calc(var(--lu) * 15); }
  #view-log.lg6 #log-days .ld-row .ld-money { font-size: calc(var(--lu) * 20); }
}
/* a phone: the rows a little taller, the words a little bigger; the list scrolls with the page as before */
@media (max-width: 640px) {
  #view-log.lg6 #log-rows .log-entry > .log-row { height: 72px; gap: 10px; }
  #view-log.lg6 #log-rows .log-row .lg-rating { width: 56px; height: 34px; font-size: 20px; }
  #view-log.lg6 .lg-main .lg-route { font-size: 16px; }
  #view-log.lg6 .lg-sub { font-size: 12px; }
  /* the phone's row is narrow: VATSIM sits at the end of the route's line, clear of the day and the callsign under it */
  #view-log.lg6 #log-rows .log-entry > .log-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 10px; }
  #view-log.lg6 #log-rows .log-row > .lg-rating { grid-column: 1; grid-row: 1; }
  #view-log.lg6 #log-rows .log-row > .lg-main { grid-column: 2; grid-row: 1; }
  #view-log.lg6 #log-rows .log-row > .lg-mid { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; transform: translateY(-11px); display: flex; }
  #view-log.lg6 #log-rows .lg-mid:empty { display: none; }
  #view-log.lg6 #log-rows .log-row > .lg-ldg { grid-column: 3; grid-row: 1; }
  #view-log.lg6 #log-rows .lg-mid .lg-vat { margin: 0; padding: 2px 6px; font-size: 10px; border-radius: 6px; }
  #view-log.lg6 #log-rows .log-entry .lg-ldg b { font-size: 14px; }
  #view-log.lg6 #log-rows .log-entry .lg-ldg > small { font-size: 12px; }
  #view-log.lg6 #log-days .ld-row { min-height: 64px; }
}

/* b623: the PC's link card has a button straight to the site's sign-in (past its sales page) */
.pair-card .pair-go { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 10px; border-radius: 12px; font-weight: 700; font-size: 14px;
  color: #fff; text-decoration: none; background: linear-gradient(180deg, #4393db, #286cb0); border: 1px solid rgba(182, 220, 250, .25); box-shadow: inset 0 1px 0 rgba(240, 250, 255, .23), 0 2px 6px rgba(0, 22, 41, .25); }
.pair-card .pair-go:active { transform: translateY(1px) scale(.98); }

/* ===================== b624 (John): the Log's toggles as fluid pills. Before, each chosen button painted its own blue
   face the instant it was pressed (no slide at all), and Pilot | Airline drew a sliding thumb under that face as well,
   redrawn on every press, so it jumped and doubled. Now only one thumb paints, moved by logbook.js to the chosen button */
#view-log [data-glide] { position: relative; isolation: isolate; }
#view-log [data-glide] > button { position: relative; z-index: 1; transition: color .15s ease !important; }
#view-log [data-glide] > button:is(.on, .active, .primary) { background: transparent !important; background-image: none !important; border-color: transparent !important; box-shadow: none !important; }
#view-log [data-glide] > .pill-th { display: none !important; }
#view-log [data-glide] > .glide-th { position: absolute; left: 0; top: 0; z-index: 0; box-sizing: border-box; border-radius: 999px; pointer-events: none; opacity: 0;
  background: var(--aw-blue, linear-gradient(180deg, #4191d6, #337fc5 48%, #2868aa)); border: 1px solid var(--aw-blue-edge, rgba(119, 184, 235, .42)); box-shadow: var(--aw-blue-sh, inset 0 1px 1px rgba(200, 232, 255, .25), 0 2px 4px rgba(0, 0, 0, .2));
  transition: transform .2s cubic-bezier(.3, .8, .3, 1), width .2s cubic-bezier(.3, .8, .3, 1), height .2s cubic-bezier(.3, .8, .3, 1), opacity .12s ease; will-change: transform; }
@media (prefers-reduced-motion: reduce) { #view-log [data-glide] > .glide-th { transition: none; } }

/* b624 (John): the weather dropdown scrolls once. Beside the overview card the airport list inside it scrolled on its own
   as well (a second scrollbar inside the first); the list now runs the panel's length and the panel scrolls */
.m-wx-slot .m-wx.open .m-wx-pick { max-height: none !important; overflow: visible !important; }
.m-wx-slot .m-wx.open .m-wx-pick .m-wx-q { top: -14px; }
/* and on a phone, where the overview itself scrolls, the airport list runs its length rather than scrolling inside it */
body.handheld:not(.ov-desk) .m-wx.open .m-wx-pick { max-height: none !important; overflow: visible !important; }

/* ===================== b626 (John): the weather opens as MORE does. Beside the cards, to the LEFT of the weather card,
   over MORE and the space to its left, from the top of BRIEFING to the foot of the weather card (placed by wxPlace): the
   reading on the left, the airports on the right, the airport list the one scroller; a quick fade and settle in and out */
.m-wx-slot .m-wx.open .m-wx-more.side { right: auto; bottom: auto; max-height: none !important; overflow: hidden; padding: 0; box-sizing: border-box;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); border-radius: calc(var(--u, 10px) * 1.1);
  background: linear-gradient(145deg, rgba(25, 57, 86, .98), rgba(12, 22, 36, .99)); border: 1px solid rgba(66, 127, 175, .6);
  box-shadow: inset 0 1px 0 rgba(196, 230, 255, .08), 0 18px 44px rgba(0, 0, 0, .55);
  transform-origin: 100% 0; animation: m-wx-in .16s cubic-bezier(.2, .9, .3, 1) both; will-change: opacity, transform; }
/* the cards' column lifts above the rest of the overview while it is open (the phase, the times and the figures to its
   left draw on layers of their own) */
.m-desk .m-ocgrid:has(.m-wx.open) { z-index: 60; }
.m-wx-slot .m-wx.open.shutting .m-wx-more.side { animation: m-wx-out .14s cubic-bezier(.5, 0, .7, .4) both; pointer-events: none; }
@keyframes m-wx-in { from { opacity: 0; transform: translateX(14px) scale(.975); } to { opacity: 1; transform: none; } }
@keyframes m-wx-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(14px) scale(.975); } }
.m-wx-more.side > .m-wx-now { min-height: 0; overflow: hidden; padding: 14px 4px 14px 0; border-right: 1px solid rgba(130, 200, 255, .12); display: flex; flex-direction: column; }
.m-wx-slot .m-wx.open .m-wx-more.side .m-wx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding: 0 12px 0 14px; }
.m-wx-slot .m-wx.open .m-wx-more.side .m-wx-grid > div:last-child:nth-child(odd) { grid-column: auto; }
.m-wx-more.side .m-wx-grid > div { padding: 7px 9px; }
.m-wx-more.side .m-wx-grid b { font-size: 13.5px; line-height: 1.25; }
.m-desk .m-ocgrid:has(.m-wx.open) .m-more-b b { opacity: 0; }   /* MORE's count, under the panel's corner */
.m-wx-more.side .m-wx-grid > div { background: rgba(9, 18, 33, .7); border-color: rgba(103, 150, 190, .2); }
.m-wx-more.side .m-wx-raw { margin: 10px 12px 0 14px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; font-size: 11.5px; }
.m-wx-more.side > .m-wx-pick, .m-wx-slot .m-wx.open .m-wx-more.side > .m-wx-pick { min-height: 0; max-height: none !important; overflow-y: auto !important; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; border-top: 0; padding: 12px 14px 14px; }
.m-wx-more.side > .m-wx-pick .m-wx-q { position: sticky; top: -12px !important; }
.m-wx-more.side .m-wx-opt { min-height: 44px; }
@media (prefers-reduced-motion: reduce) { .m-wx-slot .m-wx.open .m-wx-more.side, .m-wx-slot .m-wx.open.shutting .m-wx-more.side { animation: none; } }

/* b628 (John): the weather opens within the cards' column (placed by wxPlace, class col): stacked, the reading on top, the
   airports below it (the one scroller), an X top right like MORE's; it grows up out of the weather card and folds back into it */
.m-wx-more .m-wx-x { display: none; }
.m-wx-slot .m-wx.open .m-wx-more.side.col { display: flex; flex-direction: column; transform-origin: 50% 100%; animation: m-wx-col-in .18s cubic-bezier(.2, .9, .3, 1) both; }
.m-wx-slot .m-wx.open.shutting .m-wx-more.side.col { animation: m-wx-col-out .14s cubic-bezier(.5, 0, .7, .4) both; }
@keyframes m-wx-col-in { from { opacity: 0; transform: translateY(16px) scaleY(.94); } to { opacity: 1; transform: none; } }
@keyframes m-wx-col-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(16px) scaleY(.94); } }
.m-wx-more.side.col > .m-wx-now { flex: none; border-right: 0; border-bottom: 1px solid rgba(130, 200, 255, .12); padding: 12px 0 12px; }
.m-wx-more.side.col > .m-wx-now .m-wx-chk { padding-right: 52px; }
.m-wx-slot .m-wx.open .m-wx-more.side.col .m-wx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 0 12px; }
.m-wx-more.side.col .m-wx-grid > div { padding: 6px 8px; }
.m-wx-more.side.col .m-wx-grid b { font-size: 12.5px; }
.m-wx-more.side.col .m-wx-raw { margin: 8px 12px 0; -webkit-line-clamp: 2; }
.m-wx-more.side.col > .m-wx-pick, .m-wx-slot .m-wx.open .m-wx-more.side.col > .m-wx-pick { flex: 1 1 auto; min-height: 0; }
.m-wx-more.side.col .m-wx-x { display: grid; place-items: center; position: absolute; top: 8px; right: 8px; z-index: 2; width: 36px; height: 36px; padding: 0; border-radius: 50%; cursor: pointer;
  color: #dbeaf8; background: rgba(255, 255, 255, .05); border: 1px solid rgba(130, 200, 255, .3); transition: transform .15s ease, background .15s ease; -webkit-tap-highlight-color: transparent; }
.m-wx-more.side.col .m-wx-x::after { content: ""; position: absolute; inset: -4px; }   /* a 44 pt touch area */
.m-wx-more.side.col .m-wx-x svg { width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.m-wx-more.side.col .m-wx-x:active { transform: scale(.88); }
@media (hover: hover) { .m-wx-more.side.col .m-wx-x:hover { background: rgba(63, 182, 255, .14); } }
@media (prefers-reduced-motion: reduce) { .m-wx-slot .m-wx.open .m-wx-more.side.col, .m-wx-slot .m-wx.open.shutting .m-wx-more.side.col { animation: none; } }

/* b628 (John): a FREE FLIGHT in the log, beside (or instead of) VATSIM, in blue */
.lg-vat.lg-ff { border-color: #77cfff; color: #77cfff; }

/* b628: who works an airport top-down, under its name on the map */
.ap-pop .ap-cover { display: block; margin-top: 4px; font-style: normal; font-size: 12px; color: #9fd0f5; white-space: nowrap; }
.ap-pop .ap-cover b { color: #2ee66b; font-weight: 700; }

/* b630 (John): the First Officer plan's score card in the Log: the full report button padlocked, as the app's other
   Captain-only buttons (gold lock), and the pilot's own pay under the airline's earnings */
#lg-side .fsc-open.fsc-locked { background: linear-gradient(180deg, rgba(40, 46, 60, .95), rgba(24, 29, 40, .98)); border-color: rgba(255, 179, 0, .45); box-shadow: none; color: #e6ecf3; }
#lg-side .fsc-open.fsc-locked .fsc-lock { flex: none; font-size: 12px; font-weight: 800; letter-spacing: 1.2px; color: #ffd35c; white-space: nowrap; }
#lg-side .fsc-open.fsc-locked:hover { border-color: #ffd35c; }
.fsc-m .fsc-pay { display: block; margin-top: 3px; font-size: 11px; font-weight: 600; letter-spacing: .2px; text-transform: none; color: #a9c0d6; }

/* ===================== b640 (sweep): fixes found at every tablet, computer and phone size ===================== */
/* the Log on a tablet held upright: its scale was set by the width alone (the kicker came out at 6.5 px) and the five
   rows were stretched to a fifth of the tall list each (190 px a row). The scale has a floor there, a row is never
   taller than the render's own, and the route and callsign take the room the empty middle held */
@media (min-width: 641px) and (orientation: portrait) {
  #view-log.lg6 > * { --lu: max(min(calc(100cqw / 1210), calc(100cqh / 728)), calc(100cqw / 1010)); }
  #view-log.lg6 #log-rows .log-entry > .log-row, #view-log.lg6 #log-days .ld-row { height: clamp(56px, var(--lg-row), calc(var(--lu) * 80)); }
  #view-log.lg6 #log-rows .lg-main { flex: 1.8 1 0; min-width: 0; }
  #view-log.lg6 #log-rows .lg-mid { min-width: 0; }
}
/* the Overview once landed with a next sector (GENERATE NEXT FLIGHT): an old rule (from before BRIEFING and GROUND SERVICES
   went beside the score) still shrank every size by a quarter on a tablet lying flat and by a seventh on a computer, so
   the card came out small with empty room in its middle. Its sizes are now the gate's; the card's own fitter (b517)
   still shrinks it, by just enough, if a flight ever needs more room than the screen has */
@media (orientation: landscape) { body.ov-desk .m-ov.m-desk:has(.m-next) { --u0: min(1vw, 1.55vh); } }
body:not(.handheld) .m-ov.m-desk:has(.m-next) { --u0: min(1vw, 1.55vh, calc((100vh - 168px) / 57)); }
/* the weather panel, open over the cards: its face was 98% solid, so BRIEFING, GROUND SERVICES and the figures under it
   showed through as ghost words behind the readings. Solid now, the same navy */
.m-wx-slot .m-wx.open .m-wx-more.side { background: linear-gradient(145deg, #193956, #0c1624); }
/* ---- the pop-up cards still in the old look (the load sheet, finish or plan your day, the ground guide, a flight's
   rating, the edit plan): the new design's navy surface with its blue edge and contact shadow, the round X of Ground
   Services and MORE, white Inter headings as the Log and Ground Services (were amber and widely spaced), and the
   buttons as the Overview's (raised navy, the YES the briefing's green) at least 40 points tall, 44 on a touch screen
   (they were 30) ---- */
.modal-card:not(.gc-card):not(.aw-pop) { background: var(--aw-surf); border: 1px solid var(--aw-surf-edge); box-shadow: var(--aw-surf-sh), 0 24px 60px rgba(0, 0, 0, .55); font-family: 'Inter Var', var(--ui); }
.modal-card:not(.gc-card) > .modal-close, .plan-bar .modal-close { display: grid; place-items: center; top: 12px; right: 12px; width: 40px; height: 40px; padding: 0; z-index: 3;
  border-radius: 50%; background: var(--aw-btn); border: 1px solid var(--aw-btn-edge); box-shadow: var(--aw-btn-sh); color: #dbeaf8; font-size: 15px; line-height: 1;
  transition: transform .1s ease, background .15s ease; -webkit-tap-highlight-color: transparent; }
.plan-bar .modal-close { position: relative; top: auto; right: auto; flex: none; }
.modal-card:not(.gc-card) > .modal-close::after, .plan-bar .modal-close::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; }
.plan-bar .modal-close:hover, .modal-card:not(.gc-card) > .modal-close:hover { color: #fff; background: var(--aw-btn-hi); }
.plan-bar .modal-close.down, .plan-bar .modal-close:active, .modal-card:not(.gc-card) > .modal-close.down, .modal-card:not(.gc-card) > .modal-close:active { transform: scale(.9); }
.ls-h b, .gsx-h b { font-family: 'Inter Var', var(--ui); font-size: 28px; font-weight: 650; letter-spacing: -.015em; color: #f3f8fc; }
.ls-h small, .gsx-h small { font-weight: 650; letter-spacing: .2em; color: #8fd0ff; }
.plan-bar small { font-weight: 650; letter-spacing: .2em; color: #8fd0ff; }
.plan-bar b { font-family: 'Inter Var', var(--ui); font-size: 22px; font-weight: 650; letter-spacing: -.01em; color: #f3f8fc; }
.ls-sh { font-family: 'Inter Var', var(--ui); font-weight: 650; letter-spacing: .16em; color: #6cc4ff; }
.ls-b { justify-content: center; min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--aw-btn); border: 1px solid var(--aw-btn-edge); box-shadow: var(--aw-btn-sh);
  color: #e6f1fb; font: 650 12.5px 'Inter Var', var(--ui); letter-spacing: .06em; transition: transform .1s ease, background .15s ease, filter .15s ease; }
.ls-b:hover:not(:disabled) { background: var(--aw-btn-hi); }
.ls-b.go, .ls-mcdu .ls-b.go { background: var(--aw-green); border-color: transparent; box-shadow: var(--aw-green-sh); color: var(--aw-green-ink); }
.ls-b.go:hover:not(:disabled) { background: linear-gradient(180deg, #45ee7d, #22c35d); }
.ls-b.ls-done { background: linear-gradient(180deg, #0e4a2a, #0a3520); border-color: rgba(46, 230, 107, .6); color: #c9f7d8; }
.ls-b.bad { background: var(--aw-red); border-color: var(--aw-red-edge); color: #ffd0d0; }
.ls-b:disabled { opacity: .55; cursor: default; }
.ls-b.down, .ls-b:active:not(:disabled) { transform: translateY(1px) scale(.97); filter: brightness(.92); }
body.handheld .ls-b { min-height: 44px; }
.day-leg { background: var(--aw-tile); border-color: var(--aw-tile-edge); box-shadow: var(--aw-tile-sh); }
.day-sel { background: var(--aw-well); border-color: var(--aw-well-edge); box-shadow: var(--aw-well-sh); min-height: 40px; }
/* a load sheet figure not in yet is a dot alone, not "· kg" */
.ls-r b.ls-nil { color: var(--text-dim); }
/* the briefing pack on a touch screen: its tabs (35 points), the map's OFF | SAYINTENTIONS | VATSIM (28), GROUND CHART (22)
   and the OFP's tools (32) keep their look but take a finger's worth round them */
body.handheld .sbp-tabs [data-sbp-tab], body.handheld .sbx-ctrl button, body.handheld .sb-chart, body.handheld .sbp-tool { position: relative; }
body.handheld .sbp-tabs [data-sbp-tab]::after, body.handheld .sbx-ctrl button::after, body.handheld .sb-chart::after, body.handheld .sbp-tool::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
/* FLIGHT COMPLETE (the bar after a flight): the new design's surface and Inter, its yellow edge kept (b563), VIEW FLIGHT
   SCORE the saturated blue pill, DISMISS the raised navy; both 44 points tall */
.fc-prompt { background: var(--aw-surf); border-color: rgba(255, 194, 77, .55); box-shadow: var(--aw-surf-sh), 0 14px 40px rgba(0, 0, 0, .6); font-family: 'Inter Var', var(--ui); }
.fcp-title { font-family: 'Inter Var', var(--ui); font-weight: 650; letter-spacing: -.01em; color: #f3f8fc; }
.fcp-sub { font-family: 'Inter Var', var(--ui); font-weight: 550; letter-spacing: .04em; color: #9fb4c9; }
.fcp-btn { font-family: 'Inter Var', var(--ui); font-weight: 650; letter-spacing: .04em; min-height: 44px; border-radius: 999px; background: var(--aw-btn); border: 1px solid var(--aw-btn-edge); box-shadow: var(--aw-btn-sh); color: #e6f1fb;
  transition: transform .1s ease, filter .15s ease; }
.fcp-btn.primary { background: var(--aw-blue); border-color: var(--aw-blue-edge); box-shadow: var(--aw-blue-sh); color: #fff; }
.fcp-btn.down, .fcp-btn:active { transform: translateY(1px) scale(.97); filter: brightness(.92); }
/* the sign-in card: the new design's surface, Inter for the words (the wordmark stays as the intro's), the fields dark
   wells, SIGN IN the saturated blue; the small links take a finger's worth on a touch screen */
body #fd-gate { font-family: 'Inter Var', 'Inter', system-ui, sans-serif; background: radial-gradient(ellipse at 50% 30%, #0e2342 0%, #04070f 70%); }
body #fd-gate .logo { font-family: 'Jost', 'Inter', system-ui, sans-serif; }
body #fd-gate .card { background: var(--aw-surf); border-color: var(--aw-surf-edge); box-shadow: var(--aw-surf-sh), 0 24px 60px rgba(0, 0, 0, .55), 0 0 60px -20px rgba(63, 182, 255, .45); }
body #fd-gate input { background: var(--aw-well); border-color: var(--aw-well-edge); box-shadow: var(--aw-well-sh); min-height: 46px; }
body #fd-gate .p { background: var(--aw-blue); border: 1px solid var(--aw-blue-edge); box-shadow: var(--aw-blue-sh); min-height: 46px; letter-spacing: .06em; }
body #fd-gate .g { min-height: 46px; }
body #fd-gate .or { letter-spacing: .2em; font-weight: 600; }
body.handheld #fd-gate .l { min-height: 40px; padding: 0 6px; }
/* the walkthrough's CONTENTS and X (34 points) take a finger's worth round them on a touch screen */
body.handheld .awt .awt-cbtn, body.handheld .awt .awt-x { position: relative; }
body.handheld .awt .awt-cbtn::after, body.handheld .awt .awt-x::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 46px; transform: translateY(-50%); }
/* ---- COMMUNITY in the new design's type: its headings as the Log's and Ground Services' (The Community, The Pilots, The
   Airlines, Latest Awards: Inter, no wide spacing; were capitals spaced 3 to 4 points apart), the airline sorts as the Log's
   pill toggle (a dark well, the chosen one the saturated blue), and the period toggles (kept small, b624) take a finger's
   worth round them on a touch screen ---- */
#view-community .cm-title { font-family: 'Inter Var', var(--ui); font-weight: 650; font-size: clamp(21px, 2.1vw, 28px); letter-spacing: -.015em; }
#view-community .cm-title i { font-weight: 500; letter-spacing: 0; font-size: .62em; color: #a9bdd1; }
#view-community .cm-sec { font-family: 'Inter Var', var(--ui); font-weight: 650; font-size: 20px; letter-spacing: -.01em; }
#view-community .cm-sec i { font-weight: 500; letter-spacing: 0; font-size: .7em; color: #a9bdd1; }
#view-community .cm-sorts { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 2px; border-radius: 26px; background: var(--aw-well); border: 1px solid var(--aw-well-edge); box-shadow: var(--aw-well-sh); max-width: 100%; box-sizing: border-box; }
#view-community .cm-sort { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; background: transparent; box-shadow: none; color: #a9bdd1;
  font-family: 'Inter Var', var(--ui); font-weight: 550; font-size: 13.5px; letter-spacing: 0; text-transform: none; transition: background .15s ease, color .15s ease, transform .1s ease; }
#view-community .cm-sort:hover { color: #e6f1fb; }
#view-community .cm-sort.active { color: #fff; background: var(--aw-blue); border-color: var(--aw-blue-edge); box-shadow: var(--aw-blue-sh); }
#view-community .cm-sort.down, #view-community .cm-sort:active { transform: scale(.97); }
body.handheld #view-community .cm-seg button { position: relative; }
body.handheld #view-community .cm-seg button::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 40px; transform: translateY(-50%); }
/* ---- the MAP's switches and its foot in the new design (they were the old black boxes with grey capitals): WEATHER,
   TRAFFIC and LAYERS raised navy with the blue edge (lit the saturated blue when on), the traffic list and the tapped
   aircraft on the navy surface, the foot a deep navy bar in Inter; every place and function as it was ---- */
#view-map .map-btn { font-family: 'Inter Var', var(--ui); font-weight: 650; font-size: 14.5px; letter-spacing: .05em; color: #e6f1fb; min-height: 44px;
  background: var(--aw-btn); border: 1px solid var(--aw-btn-edge); box-shadow: var(--aw-btn-sh); border-radius: 12px; backdrop-filter: none;
  transition: background .15s ease, transform .1s ease, filter .15s ease; }
#view-map .map-btn:not(.tfc-wrap):not(#layers-btn) { padding: 0 16px; display: inline-flex; align-items: center; }
#view-map .map-btn.hidden { display: none !important; }
#view-map .map-btn-2 { top: 68px; }
#view-map .map-btn-3 { top: 122px; min-height: 40px; font-size: 12.5px; }
@media (min-width: 641px) { #view-map.tfc-si .tfc-info { top: 172px; max-height: calc(100% - 192px); } .tfc-info { top: 122px; max-height: calc(100% - 142px); } }
#view-map .map-btn:hover, #view-map .map-btn:focus { color: #fff; border-color: rgba(100, 200, 255, .65); background: var(--aw-btn-hi); }
#view-map .map-btn.on { color: #fff; background: var(--aw-blue); border-color: var(--aw-blue-edge); box-shadow: var(--aw-blue-sh); }
#view-map .map-btn.down, #view-map .map-btn:active, #view-map .tfc-wrap > button.down { transform: translateY(1px) scale(.98); filter: brightness(.94); }
#view-map .tfc-wrap > button { min-height: 44px; padding: 0 16px; }
.tfc-menu { background: var(--aw-surf) !important; border: 1px solid rgba(63, 182, 255, .45); box-shadow: var(--aw-surf-sh), 0 14px 34px rgba(0, 0, 0, .55); border-radius: 12px; }
.tfc-opt { font-family: 'Inter Var', var(--ui); font-weight: 600; letter-spacing: .04em; color: #c8d8e8; border-bottom-color: rgba(63, 182, 255, .12); min-height: 44px; }
.tfc-opt:hover { background: rgba(63, 182, 255, .1); color: #fff; }
.tfc-opt.on { color: #6cc4ff; }
.tfc-opt em { letter-spacing: 0; color: #8aa0b8; }
.tfc-info { background: var(--aw-surf); border-color: var(--aw-surf-edge); box-shadow: var(--aw-surf-sh), 0 14px 34px rgba(0, 0, 0, .55); }
#view-map .map-hud { font-family: 'Inter Var', var(--ui); font-weight: 600; letter-spacing: .04em; color: #9fb4c9;
  background: linear-gradient(180deg, rgba(13, 29, 54, .92), rgba(7, 16, 30, .95)); border-top: 1px solid rgba(63, 182, 255, .28); box-shadow: inset 0 1px 0 rgba(150, 210, 255, .08); }
#view-map .map-hud .hud-item b { text-shadow: none; font-weight: 700; }
@media (max-width: 640px) {
  #map-ctrls { background: var(--aw-surf); border-color: var(--aw-surf-edge); box-shadow: var(--aw-surf-sh), 0 14px 34px rgba(0, 0, 0, .55); }
  #view-map #map-ctrls .map-btn { font-size: 14px; letter-spacing: .03em; }
  #view-map #layers-btn { letter-spacing: .08em; }
}
/* COMMUNITY's LIVE dot: its pulse animated a shadow, which repainted and restyled the page sixty times a second for as
   long as the tab was open (611 style passes and half a second of work every ten seconds on an iPad). The same ring is
   now a layer that grows and fades on the graphics chip */
#view-community .cm-live i { position: relative; animation: none; box-shadow: none; }
#view-community .cm-live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(46, 230, 107, .55); animation: cm-live-ring 1.8s ease-out infinite; will-change: transform, opacity; }
@keyframes cm-live-ring { from { transform: scale(1); opacity: 1; } to { transform: scale(3.25); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #view-community .cm-live i::after { animation: none; opacity: 0; } }
/* the Log's full reports on a tablet held upright, the same: a floor on their scale (the eyebrows were 6.9 points and the
   rows 7.6); the page scrolls as it does on a phone */
@media (min-width: 641px) and (orientation: portrait) {
  .lg-rep > .lg-rep-in { --lu: max(min(calc(100cqw / 1210), calc(100cqh / 834)), calc(100cqw / 1010)); }
}
/* Ground Services on a tablet held upright: the same floor (its words were 9.6 points over half an empty screen); the
   cards fill the width and the page scrolls if a step needs more height */
@media (min-width: 641px) and (orientation: portrait) {
  #gsx-body { --u: max(min(calc(100cqw / 1210), calc(100cqh / 834)), calc(100cqw / 1010)); overflow-y: auto; }
}
/* the weather card's heading on the Overview (WEATHER · EGGW · 01:50Z · THIS FLIGHT) lost its end to an ellipsis on
   every tablet and on 1280 and 1440 computers: the same size, set a little tighter (its spacing was a full point a
   letter), so it fits in one line; the report time now comes before THIS FLIGHT */
.m-desk .m-ocgrid .m-wx-main small { letter-spacing: .02em; }
/* a disabled END DAY on a phone looked ready: its slide-in held it at full strength after it finished */
.m-day:disabled, .m-next:disabled { animation-fill-mode: backwards; }
@media (orientation: portrait) { .m-desk .m-ocgrid .m-wx-main small { white-space: normal; overflow: visible; text-overflow: clip; } }
/* the landed score's TOUCHDOWN label was cut to TOUCHD... on a tablet held upright and on a phone: the same size, set tighter */
.m-score .m-stats small { letter-spacing: .03em; }
/* and where a tile is narrower still (an upright tablet, a small phone) TOUCHDOWN breaks as TOUCH-DOWN rather than being cut */
@media (max-width: 640px), (orientation: portrait) { .m-score .m-stats small { letter-spacing: 0; white-space: normal; overflow: visible; text-overflow: clip; hyphens: manual; overflow-wrap: normal; } }
/* the Log on the narrowest phones (an iPhone SE, 320 wide): the callsign was cut off every row and the month's average
   ran 10 points past the list. The callsign drops under the date (its dot dropped with it), the route, the rating box
   and the gaps come in a touch, and the month's heading fits */
#view-log.lg6 .lg-csd { font-style: normal; }
@media (max-width: 360px) {
  #view-log.lg6 #log-rows .log-entry > .log-row { gap: 7px; padding: 0 4px; }
  #view-log.lg6 #log-rows .log-row .lg-rating { width: 44px; font-size: 16.5px; }
  #view-log.lg6 #log-rows .lg-main .lg-route { font-size: 13.5px; gap: 5px; }
  #view-log.lg6 #log-rows .lg-sub { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; white-space: nowrap; line-height: 1.25; }
  #view-log.lg6 #log-rows .lg-sub .lg-cs { display: block; }
  #view-log.lg6 #log-rows .lg-sub .lg-csd { display: none; }
  #view-log.lg6 .log-month-head { gap: 5px; padding: 0 2px; }
  #view-log.lg6 .lm-name { font-size: 14.5px; white-space: nowrap; }
  #view-log.lg6 .lm-count { margin-left: 2px; white-space: nowrap; }
  #view-log.lg6 .lm-avl { white-space: nowrap; font-size: 10.5px; }
  #view-log.lg6 .log-month-head .lm-avg { margin-left: 3px; font-size: 18px; }
}
/* the Log's ALL FLIGHTS on a phone: each row ran off the right of the screen, so the callsign, the pilot and what the
   flight made were never seen (and the rows stood 90 points tall). Two lines now: the route and the callsign over the
   time, then the pilot with what it made, beside the rating */
@media (max-width: 640px) {
  #view-log.lg6 #log-rows .va-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "r route cs" "r when when" "r ldg ldg";
    align-items: center; gap: 2px 10px; min-height: 58px; height: auto; padding: 8px 6px; }
  #view-log.lg6 #log-rows .va-row > .lg-rating { grid-area: r; width: 50px; height: 30px; font-size: 18px; }
  #view-log.lg6 #log-rows .va-row > .lg-route { grid-area: route; min-width: 0; font-size: 14.5px; gap: 6px; }
  #view-log.lg6 #log-rows .va-row > .lg-when { grid-area: when; min-width: 0; font-size: 11px; white-space: nowrap; }
  #view-log.lg6 #log-rows .va-row > .lg-cs { grid-area: cs; justify-self: end; font-size: 11px; }
  #view-log.lg6 #log-rows .va-row > .lg-cs .lg-csn { min-width: 0; }
  #view-log.lg6 #log-rows .va-row > .lg-ldg { grid-area: ldg; justify-self: start; min-width: 0; margin-left: 0; font-size: 11px; text-align: left; white-space: normal; line-height: 1.25; }
}
