:root {
  color-scheme: dark;
  --bg: #0b1017;
  --panel: #101720;
  --raised: #141e29;
  --line: #273340;
  --text: #f1f4f3;
  --soft: #a7b4c0;
  --muted: #92a2b0;
  --lime: #d8f779;
  --lime-ink: #1a260c;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --sans: Geist, Inter, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.48 var(--sans); }
body:has(.compare-tray:not([hidden])) { padding-bottom: 86px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:disabled { cursor: default; opacity: .55; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(1264px, calc(100% - 80px)); margin-inline: auto; }
.top { border-bottom: 1px solid #1c2732; }
.top-inner { min-height: 67px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 650 13px var(--mono); letter-spacing: .06em; white-space: nowrap; }
.brand strong { color: var(--lime); }
.brand-mark { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 8px; background: var(--lime); color: #18200f; font: 23px/1 var(--sans); }
.top nav { display: flex; align-items: center; gap: 24px; margin-left: auto; color: var(--soft); font-size: 13px; }
.top nav a:hover, .text-button:hover { color: var(--lime); }
.text-button { color: var(--soft); background: transparent; border: 0; padding: 3px 0; font-size: 13px; }
.snapshot-dot, .overline i { background: var(--lime); width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex: none; }
.hero {
  position: relative; margin-top: 27px; overflow: hidden; isolation: isolate; border: 1px solid #2c3a49; border-radius: 19px;
  background: #111d2a url("runway.webp") 70% 58% / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0e1721 3%, #0e1721f7 23%, #0e1721a8 50%, #0e17211c 77%), linear-gradient(0deg, #0e1721c9, #0e172100 38%); }
.hero-content { padding: 41px 46px 40px; }
.overline { display: flex; align-items: center; gap: 9px; color: var(--lime); font: 600 11px/1.3 var(--mono); letter-spacing: .13em; }
.overline span { color: #788b9c; }
.hero h1 { margin-top: 13px; font-size: clamp(53px, 7vw, 95px); font-weight: 730; letter-spacing: -.085em; line-height: .91; }
.hero h1 em { color: var(--lime); font-style: normal; }
.hero p { margin-top: 19px; max-width: 390px; color: #c4ced6; font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 8px 13px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 680; white-space: nowrap; }
.button.primary { color: var(--lime-ink); background: var(--lime); }
.button.primary:hover { background: #e7ffa4; }
.button.secondary { background: #131d27e8; color: var(--text); border-color: #384956; }
.button.secondary:hover { border-color: var(--lime); }
.snapshot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.snapshot > div { display: flex; align-items: center; gap: 7px; }
.snapshot strong { color: #d7e1e6; font-weight: 650; }
.snapshot-dot { background: #e9ba72; }
#snapshot-date { font-family: var(--mono); }
.source-button { margin-left: auto; font-size: 12px; }
.finder { padding-top: 33px; scroll-margin-top: 12px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.section-heading h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -.055em; margin-top: 7px; }
.section-heading p { color: var(--soft); font-size: 12px; }
.section-heading p span { color: var(--lime); margin-inline: 2px; }
.finder-grid { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 17px; align-items: start; }
.filter-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 15px; }
.filter-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.filter-header h3 { font-size: 15px; }
.filter-header button { text-decoration: underline; text-underline-offset: 3px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset legend, .field-label { padding: 0; margin: 16px 0 6px; color: var(--muted); text-transform: uppercase; font: 600 10px/1.4 var(--mono); letter-spacing: .075em; }
.field-label { display: block; margin-top: 11px; }
.airport { display: flex; align-items: center; gap: 7px; min-height: 31px; font-size: 12px; cursor: pointer; }
.airport input, .compare-choice input { accent-color: var(--lime); margin: 0; width: 15px; height: 15px; flex: none; cursor: pointer; }
.airport-code { font: 600 11px var(--mono); color: var(--lime); background: #232d22; border-radius: 4px; padding: 3px 5px; }
select, input[type="date"], input[type="number"] { width: 100%; min-height: 36px; border: 1px solid var(--line); border-radius: 7px; background: #0d141d; color: var(--text); padding: 6px 9px; font-size: 12px; }
select { padding-right: 14px; }
.date-fields { display: grid; gap: 7px; margin-top: 9px; }
.date-fields label, .quote-form label { display: grid; gap: 4px; color: var(--soft); font-size: 12px; }
.error { color: #ffad9d; font-size: 12px; }
.error:empty { display: none; }
.results-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.search { display: flex; align-items: center; gap: 10px; min-width: 0; padding-left: 13px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.search:focus-within { border-color: var(--lime); }
.search-icon { width: 13px; height: 13px; border: 1.6px solid var(--soft); border-radius: 50%; position: relative; flex: none; }
.search-icon::after { content: ""; position: absolute; width: 5px; height: 1.5px; background: var(--soft); transform: rotate(45deg); right: -4px; bottom: -2px; }
.search input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 10px 10px 10px 2px; background: transparent; color: var(--text); }
.search input::placeholder { color: var(--muted); }
.sort select { height: 100%; background: var(--panel); }
.results-meta { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.segments { display: flex; align-items: center; gap: 3px; }
.segments label { position: relative; }
.segments input { position: absolute; opacity: 0; width: 1px; }
.segments span { display: block; color: var(--soft); padding: 5px 9px; border: 1px solid transparent; border-radius: 6px; cursor: pointer; font-size: 12px; }
.segments input:checked + span { color: var(--lime); background: #242f20; border-color: #3b4d2f; }
.segments input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.mono { font: 11px var(--mono); color: var(--muted); }
.fare-board { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.fare-grid { display: grid; grid-template-columns: minmax(120px, 1.34fr) minmax(115px, 1.17fr) minmax(78px, .76fr) minmax(98px, .91fr) minmax(74px, .62fr); gap: 9px; align-items: center; padding: 0 13px; }
.board-head { min-height: 33px; background: #151f2a; font: 600 9px var(--mono); letter-spacing: .075em; color: #aab9c6; }
.fare-row { min-height: 83px; border-top: 1px solid var(--line); padding-block: 10px; }
.fare-row:hover { background: #151f2a; }
.route { display: block; margin-bottom: 3px; color: #b3c0c8; font: 10px var(--mono); letter-spacing: .045em; }
.route b { color: var(--lime); font-weight: 550; }
.fare-row h3 { font-size: 16px; line-height: 1.2; letter-spacing: -.025em; }
.trip-dates { font-weight: 620; font-size: 12px; }
.sub { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.fare-price { font-size: 22px; letter-spacing: -.045em; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; }
.score { display: inline-flex; align-items: center; gap: 3px; background: #273624; border-radius: 6px; color: var(--lime); font: 650 12px var(--mono); padding: 5px 7px; white-space: nowrap; }
.score.moderate { color: #e9cc8f; background: #372d20; }
.score.neutral { color: #c5d1db; background: #263442; }
.row-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.details-button { border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: #18232e; min-height: 29px; padding: 3px 6px; white-space: nowrap; font-size: 11px; }
.details-button:hover { border-color: var(--lime); }
.compare-choice { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 10px; cursor: pointer; }
.compare-choice input { width: 12px; height: 12px; }
.empty, .live-search { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--panel); }
.empty { padding: 25px 19px; }
.empty h3, .live-search h3 { font-size: 15px; }
.empty p, .live-search p { color: var(--soft); font-size: 12px; margin-top: 3px; }
.empty .button { margin-top: 13px; }
.live-search { margin-top: 13px; display: flex; gap: 11px; justify-content: space-between; align-items: center; }
#live-links { display: flex; gap: 6px; flex-wrap: wrap; }
#live-links .button { min-height: 32px; padding: 5px 8px; font-size: 11px; }
.footer { margin: 38px 0 0; padding: 15px 0 22px; display: flex; flex-wrap: wrap; gap: 7px 20px; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font: 10px var(--mono); }
.compare-tray { z-index: 2; position: fixed; bottom: 15px; left: 50%; transform: translateX(-50%); width: min(580px, calc(100% - 30px)); display: flex; gap: 13px; align-items: center; padding: 9px 12px; border: 1px solid #4f6244; border-radius: 10px; background: #182421; box-shadow: 0 10px 30px #0009; }
.compare-tray > div { flex: 1; min-width: 0; }
.compare-tray strong, .compare-tray div span { display: block; }
.compare-tray div span { color: var(--soft); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
dialog { width: min(660px, calc(100% - 28px)); max-height: min(84dvh, 770px); background: var(--panel); color: var(--text); border: 1px solid #435364; border-radius: 14px; padding: 0; box-shadow: 0 24px 80px #000a; }
dialog::backdrop { background: #060a12be; }
.dialog-inner { padding: 19px; }
.dialog-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 14px; }
.dialog-top h2 { font-size: 25px; letter-spacing: -.04em; }
.close { border: 1px solid var(--line); background: var(--raised); color: var(--text); border-radius: 7px; width: 34px; height: 34px; font-size: 23px; line-height: 1; }
.dialog-copy { color: var(--soft); font-size: 13px; }
.dialog-copy p + p { margin-top: 9px; }
.dialog-copy strong { color: var(--text); }
.stat-grid { margin: 13px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 7px; }
.stat-grid > div { background: var(--raised); border: 1px solid var(--line); border-radius: 7px; padding: 9px; }
.stat-grid dt { color: var(--muted); font-size: 11px; }
.stat-grid dd { margin: 3px 0 0; font-weight: 680; font-variant-numeric: tabular-nums; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.compare-table th, .compare-table td { border-bottom: 1px solid var(--line); text-align: left; padding: 7px 5px; vertical-align: top; }
.compare-table th { color: var(--soft); font-weight: 560; }
.compare-table thead th { color: var(--text); }
.quote-form { display: grid; gap: 10px; margin-top: 14px; }
.quote-form .button { justify-self: start; }
.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 1010px) {
  .shell { width: calc(100% - 44px); }
  .finder-grid { grid-template-columns: 192px minmax(0, 1fr); gap: 12px; }
  .fare-grid { grid-template-columns: minmax(96px, 1.18fr) minmax(99px, 1.12fr) minmax(64px, .72fr) minmax(77px, .85fr) 59px; padding-inline: 9px; gap: 6px; }
}
@media (max-width: 770px) {
  .finder-grid { grid-template-columns: 1fr; }
  #filters { display: grid; grid-template-columns: 1fr 1fr; gap: 0 13px; }
  .hero-content { padding: 33px 28px; }
  .hero::before { background: linear-gradient(90deg, #0e1721 0%, #0e1721d9 39%, #0e172146 100%), linear-gradient(0deg, #0e1721a8, transparent 47%); }
  .snapshot p { order: 3; width: 100%; }
}
@media (max-width: 520px) {
  .shell { width: calc(100% - 26px); }
  .top-inner { min-height: 55px; gap: 9px; }
  .top nav { display: none; }
  .hero { margin-top: 15px; }
  .hero-content { padding: 26px 17px; }
  .hero h1 { font-size: clamp(44px, 13.4vw, 66px); }
  .hero p { max-width: 270px; font-size: 13px; }
  .hero-actions { margin-top: 15px; }
  .section-heading { align-items: start; flex-direction: column; gap: 4px; }
  .results-tools { grid-template-columns: minmax(0, 1fr) 117px; }
  .search input, .sort select { font-size: 11px; }
  .sort select { padding-left: 4px; }
  .results-meta { flex-wrap: wrap; padding-block: 6px; }
  .fare-board { background: transparent; border: 0; overflow: visible; }
  .board-head { display: none; }
  .fare-row { grid-template-columns: minmax(0,1fr) auto auto; align-items: start; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); gap: 8px; padding: 9px; margin-bottom: 7px; }
  .fare-row > :nth-child(1) { grid-area: 1 / 1; }
  .fare-row > :nth-child(2) { grid-area: 2 / 1; }
  .fare-row > :nth-child(3) { grid-area: 1 / 2; }
  .fare-row > :nth-child(4) { grid-area: 1 / 3; }
  .fare-row > :nth-child(5) { grid-area: 2 / 2 / 3 / 4; flex-direction: row-reverse; align-items: center; align-self: end; }
  .live-search { align-items: start; flex-direction: column; }
  .quote-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.compare-scroll { overflow-x: auto; }
.compare-table { min-width: 330px; }
