/* FL-11: flights in the chat — Quiet Desk tokens only (docs/design/QUIET_DESIGN.md): one accent, --need only for what
   waits for Yitzhak, no new colors, no gradients. Cards like the money and Kerestir cards; 360px first; 130% text safe. */
.num { font-variant-numeric: tabular-nums; }
.fl-results, .fl-step, .fl-options, .fl-status { display: grid; gap: 10px; margin-top: 10px; min-width: 0; }
.fl-list { display: grid; gap: 8px; }
.fl-card { display: grid; gap: 6px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.fl-card.is-recommended { border-color: var(--accent); }
.fl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.fl-logo { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 20px; }
.fl-logo img { display: block; max-width: 60px; height: 20px; object-fit: contain; }
.fl-logo.is-code { padding: 0 6px; border-radius: var(--r-mark); background: var(--sunk); color: var(--muted); font-size: var(--text-meta); font-weight: 600; }
.fl-airline { font-size: var(--text-card); font-weight: 600; }
.fl-tag { max-width: 100%; overflow-wrap: anywhere; margin-inline-start: auto; padding: 2px 8px; border-radius: var(--r-chip); background: var(--accent-soft); color: var(--accent); font-size: var(--text-meta); font-weight: 500; }
.fl-leg { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
.fl-leg-label { color: var(--muted); font-size: var(--text-meta); min-width: 32px; }
.fl-times { font-size: var(--text-body); font-weight: 500; overflow-wrap: anywhere; }
.fl-sub { color: var(--muted); font-size: var(--text-small); overflow-wrap: anywhere; }
.fl-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; font-size: var(--text-card); }
.fl-price b { font-size: var(--text-section); font-weight: 600; }
.fl-bags { color: var(--muted); font-size: var(--text-small); }
.fl-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fl-btn { min-height: var(--tap); }
.fl-wide { min-height: var(--tap); width: 100%; }
.fl-link { justify-self: start; min-height: var(--tap); color: var(--accent); }
.fl-src { color: var(--faint); font-size: var(--text-meta); }
.fl-test { margin: 0; color: var(--muted); font-size: var(--text-small); }
.fl-lead { margin: 0; font-size: var(--text-card); font-weight: 500; }
.fl-lead.is-need { color: var(--need); }
.fl-msg { margin: 0; color: var(--muted); font-size: var(--text-small); }
.fl-msg.is-bad { color: var(--bad); }
.fl-warn { color: var(--need); font-size: var(--text-small); }
.fl-outbound { display: grid; gap: 4px; padding: 10px 14px; border-radius: var(--r-card); background: var(--sunk); }
.fl-rows { margin: 0; padding: 0; list-style: none; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.fl-rows > li { display: grid; gap: 4px; padding: 12px 14px; border-top: 1px solid var(--line); }
.fl-rows > li:first-child { border-top: 0; }
.fl-rows > li.is-suggested { box-shadow: inset 3px 0 0 var(--accent); }
[dir="rtl"] .fl-rows > li.is-suggested { box-shadow: inset -3px 0 0 var(--accent); }
.fl-row-top { display: flex; justify-content: space-between; gap: 8px; font-size: var(--text-card); }
.fl-rows .fl-btn { justify-self: start; margin-top: 4px; }
.fl-steps { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; padding: 0; list-style: none; color: var(--faint); font-size: var(--text-meta); }
.fl-steps .is-done { color: var(--good); }
.fl-steps .is-waiting { color: var(--need); font-weight: 600; }
.fl-status { padding: 12px 14px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.fl-checkout { display: grid; gap: 10px; }
.fl-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: var(--text-small); }
.fl-facts dt { color: var(--muted); }
.fl-facts dd { margin: 0; overflow-wrap: anywhere; }
.fl-pick { display: grid; gap: 4px; }
.fl-choice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: var(--tap); padding: 6px 0; border-top: 1px solid var(--line); font-size: var(--text-card); }
.fl-choice input { width: 20px; height: 20px; accent-color: var(--accent); }
.fl-kind { min-height: 36px; margin-inline-start: auto; border: 1px solid var(--field-line); border-radius: var(--r-control); background: var(--surface); color: var(--ink); font: inherit; }
@media (prefers-color-scheme: dark) { .fl-card, .fl-rows, .fl-status { border-color: var(--line); } }
/* §17: a booking that waits for him on Today — the "צריך אותך" card pattern (a 3px --need bar at the start). */
.fl-today { display: grid; gap: 8px; margin: 8px 0; }
.fl-today-row { display: grid; gap: 2px; width: 100%; min-height: var(--tap); padding: 12px 14px; border: 0; border-inline-start: 3px solid var(--need); border-radius: var(--r-card);
  background: var(--surface); box-shadow: var(--shadow); color: var(--ink); font: inherit; font-size: var(--text-card); text-align: start; cursor: pointer; }
.fl-household { display: grid; gap: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.fl-household summary { min-height: var(--tap); display: flex; align-items: center; cursor: pointer; }
.fl-field { display: grid; gap: 4px; font-size: var(--text-small); color: var(--muted); }
.fl-field input { min-height: var(--tap); padding: 0 12px; border: 1px solid var(--field-line); border-radius: var(--r-control); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--text-body); }
/* FS-1: the results table in the bubble — AnswerCard's table (answer-table), wider than the bubble at 360px, so it
   scrolls sideways inside its own wrap, never the page. The recommended row: the accent bar and the "מומלצת" tag. */
.fl-table-wrap { max-inline-size: 100%; overscroll-behavior-inline: contain; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); }
.fl-table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fl-table { min-inline-size: 560px; }
.fl-table th, .fl-table td { padding: .55rem .5rem; white-space: nowrap; }
.fl-table tbody th { min-inline-size: 7rem; }
.fl-cell-airline span { white-space: nowrap; }
.fl-table tbody tr { cursor: pointer; }
.fl-table tbody tr:hover, .fl-table tbody tr:focus-visible { background: var(--sunk); outline: none; }
.fl-table tbody tr.is-recommended th:first-child { box-shadow: inset -3px 0 0 var(--accent); }
[dir="ltr"] .fl-table tbody tr.is-recommended th:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.fl-table tbody tr.is-busy { opacity: .6; }
/* Day session 4.10 (Yitzhak's screenshot: the hours cut at the bubble's edge, the price out of sight): on a phone every
   result is one compact block — the airline and the price per person, the hours and the length, the stops and the bags. */
@media (max-width: 600px) {
  .fl-table, .answer-table.is-flights { min-inline-size: 0; inline-size: 100%; display: block; }
  .fl-table thead, .answer-table.is-flights thead { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }
  .fl-table tbody, .answer-table.is-flights tbody { display: block; }
  .fl-table tbody tr, .answer-table.is-flights tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: .75rem; row-gap: 3px; padding: .65rem .75rem; border-block-end: 1px solid var(--line); }
  .fl-table tbody tr:last-child, .answer-table.is-flights tbody tr:last-child { border-block-end: 0; }
  .fl-table th, .answer-table.is-flights th, .fl-table td, .answer-table.is-flights td { padding: 0; white-space: normal; border: 0; }
  .fl-table tbody th, .answer-table.is-flights tbody th { grid-column: 1; grid-row: 1; min-inline-size: 0; white-space: nowrap; }
  .fl-table tbody td:nth-child(5), .answer-table.is-flights tbody td:nth-child(5) { grid-column: 2; grid-row: 1; font-weight: 700; text-align: end; }
  .fl-table tbody td:nth-child(2), .answer-table.is-flights tbody td:nth-child(2) { grid-column: 1; grid-row: 2; font-size: var(--text-body); white-space: nowrap; }
  .fl-table tbody td:nth-child(4), .answer-table.is-flights tbody td:nth-child(4) { grid-column: 2; grid-row: 2; text-align: end; color: var(--muted); }
  .fl-table tbody td:nth-child(3), .answer-table.is-flights tbody td:nth-child(3) { grid-column: 1 / -1; grid-row: 3; font-size: var(--text-small); color: var(--muted); }
  .fl-table tbody td:nth-child(7), .answer-table.is-flights tbody td:nth-child(7) { grid-column: 1 / -1; grid-row: 4; font-size: var(--text-small); color: var(--muted); }
  .fl-table tbody td:nth-child(6), .answer-table.is-flights tbody td:nth-child(6) { display: none; }
  .fl-table tbody tr.is-recommended th:first-child, .answer-table.is-flights tbody tr.is-recommended th:first-child, [dir="ltr"] .fl-table tbody tr.is-recommended th:first-child, [dir="ltr"] .answer-table.is-flights tbody tr.is-recommended th:first-child { box-shadow: none; }
  .fl-table tbody tr.is-recommended, .answer-table.is-flights tbody tr.is-recommended, .answer-table.is-flights tbody tr.is-highlight { box-shadow: inset -3px 0 0 var(--accent); }
}
.fl-cell-airline { display: inline-flex; align-items: center; gap: 6px; }
.fl-table .fl-tag { display: block; inline-size: max-content; margin: 4px 0 0; }
.fl-table .is-number { text-align: end; }
.fl-insights { display: grid; gap: 6px; }
.fl-insight { margin: 0; padding: 8px 12px; border-radius: var(--r-control); background: var(--sunk); font-size: var(--text-small); }
.fl-cell-airline .fl-logo { flex: none; }
.fl-cell-airline .fl-logo img { max-width: 44px; height: 16px; }

/* Y8-5 (run 8b): his airline pinned at the end of the table, and "עוד 10" under it. */
.fl-table tr.is-pinned { border-top: 1px dashed var(--line); }
.fl-tag.is-mine { background: var(--sunk); color: var(--ink); }
.fl-more-rows { display: grid; gap: .5rem; margin-top: .5rem; }
