/* ============================================================================
   redesign:web-WS6a-fly — Fly › Ground preview, Fly › Checklists (launcher, run, history),
   Fly › Live sessions, and the live-share card.
   Loaded after kit.css (index.html). Built from the --c-* tokens + kit classes only: no hex
   literals, no rgb(), radius 0, nothing animates, nothing flashes (scripts/fly_preview_test.js lints
   this file). The one named colour is the QR code's white quiet zone: a QR code must be dark on
   light in every theme or phone cameras cannot read it.
   Prefixes: .fp-  ground preview   .cll-  checklist launcher   .clr-  checklist run   .ls-  live share / sessions
   ============================================================================ */

/* ---- Fly › Ground preview ---------------------------------------------------------------- */
.fp .fp-head .fp-ro {
  display: inline-flex; align-items: center; height: 34px; padding: 0 12px; box-sizing: border-box;
  border: 1px dashed var(--c-ink-3); color: var(--c-ink-2);
  font: 600 12px/1 var(--font-heading); letter-spacing: .08em; text-transform: uppercase;
}
.fp > .notice { margin-top: 14px; margin-bottom: 8px; }
.fp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 22px; margin-top: 18px; align-items: start; }
.fp-main, .fp-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 1199.98px) { .fp-grid { grid-template-columns: minmax(0, 1fr); } }

/* state strip: seven cells, each draws its own right / bottom rule (the strip overhangs the frame by 1px so the outer rules coincide with the frame) */
.fp-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0 -1px -1px 0; overflow: hidden; }
.fp-cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 14px 8px; border-right: 1px solid var(--c-line-2); border-bottom: 1px solid var(--c-line-2); }
.fp-k { font: 600 11px/1.2 var(--font-heading); letter-spacing: .1em; text-transform: uppercase; color: var(--c-ink-2); }
.fp-v { display: flex; align-items: center; min-height: 30px; font: 600 24px/1.1 var(--font-heading); color: var(--c-ink); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.fp-v-lines { flex-direction: column; align-items: flex-start; justify-content: center; font-size: 20px; line-height: 1.15; }
.fp-s { font: 400 12px/1.35 var(--font-body); color: var(--c-ink-2); overflow-wrap: anywhere; }
.fp-cell[data-fresh="aging"] .fp-s { color: var(--c-advisory); }
.fp-cell[data-fresh="stale"] .fp-s { color: var(--c-caution); }
.fp-why { margin-top: auto; padding-top: 2px; }
.fp-why .btn { padding-inline: 0; min-height: 28px; }
.fp-switch { margin-bottom: 6px; }

/* the track frame: a plain ground, a 40px grid, a track — never a chart */
.fp-map { background: var(--c-map); }
.fp-map-in {
  position: relative; display: grid; min-height: 240px; overflow: hidden;
  background-image: linear-gradient(var(--c-line-2) 1px, transparent 1px), linear-gradient(90deg, var(--c-line-2) 1px, transparent 1px);
  background-size: 40px 40px;
}
.fp-svg { display: block; width: 100%; height: auto; }
.fp-track { fill: none; stroke: var(--c-accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.fp-start { fill: var(--c-bg); stroke: var(--c-ink); stroke-width: 2; }
.fp-last circle { fill: var(--c-bg); stroke: var(--c-ink); stroke-width: 2; }
.fp-last path, .fp-scale path, .fp-north path { fill: none; stroke: var(--c-ink); stroke-width: 2; }
.fp-lbl { font: 600 12px var(--font-heading); letter-spacing: .06em; fill: var(--c-map-ink); }
.fp-map-msg { align-self: center; justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 540px; padding: 30px 22px; text-align: center; color: var(--c-ink); }
.fp-map-msg p { margin: 0; font-size: 14px; }
.fp-map-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.fp-map-note { padding: 7px 12px; font-size: 12px; color: var(--c-ink-2); background: var(--c-map); border-top: 1px solid var(--c-line-2); }

/* side cards */
.fp-card h6 { margin: 0 0 8px; }
.fp-radio { display: flex; gap: 10px; align-items: flex-start; }
.fp-radio p, .fp-line { margin: 0; font-size: 13px; }
.fp-fine { margin: 8px 0 0; font-size: 12px; color: var(--c-ink-3); }
.fp-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 13px; }
.fp-aw, .fp-ck { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--c-line-2); }
.fp-aw-main, .fp-ck-main { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.fp-aw-main span, .fp-ck-main span { font-size: 12px; color: var(--c-ink-2); }
.fp-ck-prog { color: var(--c-accent-ink); font-weight: 700; }
.fp-linklist { display: flex; flex-direction: column; }
.fp-link { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 9px 0; border-bottom: 1px solid var(--c-line-2); color: inherit; text-decoration: none; }
.fp-link:hover { background: var(--c-hover-row); text-decoration: none; }
.fp-link-t { font: 600 16px/1.2 var(--font-heading); color: var(--c-accent-ink); }
.fp-link-s { font-size: 12px; color: var(--c-ink-2); }

/* radio notes */
#fpNotes { margin-top: 8px; }
.fp-notes-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fp-notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 12px; }
.fp-notes-grid > .state-band { grid-column: 1 / -1; }
.fp-note h3 { margin: 0 0 8px; font: 600 18px/1.2 var(--font-heading); letter-spacing: 0; }
.fp-note-actions { gap: 6px; margin-top: 10px; }
.fp-steps { margin: 6px 0 0 18px; padding: 0; font-size: 14px; }

/* ---- live share (Fly card + Flight operations card) ---------------------------------------------- */
.ls-title { margin: 0 0 6px; font: 600 18px/1.2 var(--font-heading); letter-spacing: 0; }
.fp-card .ls-title { margin: 0 0 8px; font: 600 13px/1.2 var(--font-heading); letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink-2); }   /* same section-label voice as the other Fly cards */
.ls-text { margin: 0 0 6px; font-size: 13px; color: var(--c-ink-2); }
.ls-state { margin: 6px 0 0; font-size: 13px; }
.ls-gate { font-size: 12px; color: var(--c-ink-2); }
.ls-result { margin-top: 4px; }
/* a QR code must be dark modules on a light ground in every theme, with a quiet zone */
.ls-qr { display: inline-block; margin-top: 10px; padding: 8px; line-height: 0; background: white; }

/* ---- Fly › Checklists launcher --------------------------------------------------------------------- */
.cll-search { margin-top: 16px; }
.cll-search input { margin-top: 6px; }
.cll-hits { display: flex; flex-direction: column; margin-top: 8px; border-top: 1px solid var(--c-line-2); }
.cll-hit { position: relative; display: flex; flex-direction: column; gap: 1px; min-height: 44px; padding: 8px 4px; border-bottom: 1px solid var(--c-line-2); color: inherit; text-decoration: none; }
.cll-hit:hover { background: var(--c-hover-row); text-decoration: none; }
.cll-hit-t { font: 600 16px/1.2 var(--font-heading); }
.cll-hit-s { font-size: 12px; color: var(--c-ink-2); }
.cll-bar { margin-top: 16px; }
.cll-bar input { width: 260px; max-width: 100%; }
.cll-bar select { width: auto; max-width: 200px; }
.cll-rows { margin-top: 4px; }
.cll-row { grid-template-columns: minmax(0, 1fr) auto; min-height: 72px; }
.cll-main { min-width: 0; }
.cll-prog { color: var(--c-accent-ink); font-weight: 700; }
.cll-last { color: var(--c-ink-2); }

/* ---- Fly › Checklist run ---------------------------------------------------------------------------- */
.clr-status { margin: 4px 0 0; font-size: 13px; color: var(--c-ink-2); }
.clr-progress { margin-top: 14px; }
.clr-progress-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.clr-progress-row b { font: 600 20px/1.1 var(--font-heading); }
.clr-pct { font-size: 13px; color: var(--c-ink-2); }
.clr-bar { height: 6px; margin-top: 8px; background: var(--c-line-2); border: 1px solid var(--c-line); box-sizing: border-box; }
.clr-bar > i { display: block; height: 100%; background: var(--c-accent); }
.clr-emg { margin-top: 14px; }
.clr-emg input { margin-top: 6px; }
.clr-emg-hits { display: flex; flex-direction: column; margin-top: 8px; border-top: 1px solid var(--c-line-2); }
.clr-hit { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-height: 44px; padding: 8px 4px; text-align: left; font: inherit; color: var(--c-ink); background: transparent; border: 0; border-bottom: 1px solid var(--c-line-2); border-radius: 0; cursor: pointer; }
.clr-hit:hover { background: var(--c-hover-row); }
.clr-hit-t { font: 600 16px/1.2 var(--font-heading); }
.clr-hit-s { font-size: 12px; color: var(--c-ink-2); white-space: nowrap; }
.clr-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.clr-tools .seg-wrap { margin: 0; padding: 0; }
.clr-tools label { display: inline; margin: 0; }
.clr-tools select { width: auto; }
.clr-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; margin-top: 14px; align-items: start; }
.clr-aside { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (max-width: 1199.98px) { .clr-cols { grid-template-columns: minmax(0, 1fr); } }
.clr-sechead { display: flex; align-items: center; gap: 10px; padding: 7px 12px; background: var(--c-surface); border-bottom: 1px solid var(--c-line-2); font: 600 13px/1.2 var(--font-heading); letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink-2); }
.clr-sechead .clr-count { margin-left: auto; }
.clr-list > .clr-sechead:first-child { border-top: 0; }
.clr .cl-item {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  min-height: 56px; padding: 6px 14px; border-bottom: 1px solid var(--c-line-2); border-radius: 0;
}
.clr .cl-item.label { display: block; min-height: 0; padding: 10px 14px; color: var(--c-ink-2); font-style: italic; }
.clr .cl-item .ck {
  position: relative; display: grid; place-items: center; width: 28px; height: 28px; box-sizing: border-box;
  border: 2px solid var(--c-line-control); border-radius: 0; background: transparent; color: var(--c-on-accent);
  font: 600 16px/1 var(--font-heading); cursor: pointer;
}
.clr .cl-item .ck::before { content: ""; position: absolute; inset: -8px; }   /* 44px touch target around the 28px box */
.clr .cl-item .ck:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.clr .cl-item.checked .ck { background: var(--c-accent-solid); border-color: var(--c-accent-solid); color: var(--c-on-accent); }
.clr .cl-item[data-kind="link"] .ck { color: var(--c-accent-ink); }
.clr .cl-item[data-kind="link"].checked .ck { color: var(--c-on-accent); }
.clr .cl-item.clr-next, .clr .cl-item.cl-active { background: var(--c-accent-tint); border-radius: 0; box-shadow: inset 3px 0 0 var(--c-accent); }
.clr .cl-item .resp { margin: 0; text-align: right; font: 600 17px/1.2 var(--font-heading); color: var(--c-accent-ink); }
.clr .cl-item .cl-yn { margin: 0; }
.clr .cl-item .cl-form-input { margin: 0; max-width: 220px; }
.clr-challenge { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font: 600 17px/1.25 var(--font-heading); }
.clr-kind, .clr-req, .clr-nextw { padding: 3px 6px; font: 600 11px/1 var(--font-heading); letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink-2); border: 1px solid var(--c-line-control); }
.clr-req { color: var(--c-caution); border-color: var(--c-caution); }
.clr-nextw { color: var(--c-accent-ink); border-color: var(--c-accent); }
.clr-secrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 0; text-align: left; font: inherit; font-size: 14px; color: var(--c-ink-2); background: transparent; border: 0; border-bottom: 1px solid var(--c-line-2); border-radius: 0; cursor: pointer; }
.clr-secrow:hover { background: var(--c-hover-row); }
.clr-secrow[data-cur="true"] { color: var(--c-accent-ink); }
.clr-secrow .n { font: 600 12px/1 var(--font-heading); letter-spacing: .06em; white-space: nowrap; }
.clr-note { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--c-ink-2); }
.clr-fail { margin-top: 12px; }
.clr-blocking-list { margin: 6px 0 0 18px; padding: 0; font-size: 13px; }

/* ---- Fly › Live sessions / history headers ------------------------------------------------------------ */
.ls-bulk { margin-top: 18px; max-width: 560px; }
.ls-bulk h3 { margin: 0 0 6px; font: 600 18px/1.2 var(--font-heading); letter-spacing: 0; }
.ls-bulk .ls-dates { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.ls-bulk .ls-dates input { flex: 1 1 140px; width: auto; }
.ls-live-banner { margin-top: 18px; }
.ls-live-banner .sec-head { margin-top: 0; }
.clr-history .datatable-wrap { margin-top: 14px; }
.cll-main .row-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
