:root {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #14213d;
  background: #f4f7fb;
  --navy: #13294b;
  --navy-2: #1e3a5f;
  --orange: #f28c28;
  --line: #dce4ef;
  --muted: #66758a;
  --good: #1f7a4d;
  --bad: #a63a3a;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f4f7fb; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1120px, 94vw); margin: 0 auto; padding: 28px 0 60px; }
.hero { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 22px; }
.brand { font-size: 1.15rem; font-weight: 800; color: var(--navy); letter-spacing: .02em; }
h1 { margin: 8px 0 8px; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.02; }
h2 { margin: 0 0 10px; font-size: 1.22rem; }
p { margin: 0; color: var(--muted); line-height: 1.5; }
.card { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 8px 24px rgba(18, 41, 75, .06); margin-bottom: 18px; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.compact { gap: 12px; margin-top: 14px; }
.row { display: flex; gap: 12px; align-items: end; margin-top: 16px; }
.grow { flex: 1; }
label { display: grid; gap: 7px; color: var(--navy); font-weight: 650; }
input, select { width: 100%; min-height: 46px; border: 1px solid #bac7d8; border-radius: 10px; padding: 10px 12px; background: #fff; color: #14213d; }
input:focus, select:focus { outline: 3px solid rgba(30, 58, 95, .12); border-color: var(--navy-2); }
button { min-height: 46px; border-radius: 10px; border: 0; padding: 0 18px; font-weight: 750; transition: transform .08s ease, opacity .15s ease; }
button:active { transform: translateY(1px); }
button:disabled { opacity: .58; cursor: wait; }
.primary { background: var(--orange); color: #1c2430; }
.secondary { background: var(--navy); color: white; }
.text-button { width: 100%; margin-top: 10px; background: transparent; color: var(--navy); text-decoration: underline; }
.danger { background: #fff3f3; color: var(--bad); border: 1px solid #efc3c3; }
.badge { border-radius: 999px; padding: 8px 12px; font-weight: 700; white-space: nowrap; }
.badge.neutral { background: #e9eef5; color: #536174; }
.badge.good { background: #e6f5ed; color: var(--good); }
.message { min-height: 20px; margin-top: 12px; font-weight: 650; }
.message.error { color: var(--bad); }
.message.good { color: var(--good); }
.hidden { display: none !important; }
.quick-card { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; border-width: 2px; }
.quick-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.quick-actions button { min-width: 165px; }
.quick-card .message { grid-column: 1 / -1; margin-top: 0; }
.mode-picker { display: grid; gap: 10px; margin-top: 12px; }
.mode { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 13px; cursor: pointer; }
.mode input { width: auto; min-height: 0; margin-top: 3px; }
.mode span { display: grid; gap: 4px; }
.mode small { color: var(--muted); font-weight: 500; line-height: 1.35; }
.status-box { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #f6f8fb; color: #42516a; }
details { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
summary { cursor: pointer; font-weight: 700; }
.muted { margin: 10px 0; }
.section-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 16px; }
.airport-search-wrap { position: relative; margin-bottom: 16px; }
.airport-search-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(18, 41, 75, .16); max-height: 350px; overflow-y: auto; padding: 6px; }
.airport-result { width: 100%; min-height: 0; padding: 11px 12px; background: #fff; color: var(--navy); border-radius: 8px; text-align: left; display: grid; gap: 3px; }
.airport-result:hover, .airport-result:focus { background: #f2f6fb; outline: none; }
.airport-result span { color: var(--muted); font-weight: 500; font-size: .9rem; }
.empty-result { cursor: default; color: var(--muted); }
.airport-list { display: grid; gap: 10px; }
.airport-chip { display: flex; justify-content: space-between; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.airport-chip > div { display: grid; gap: 3px; min-width: 0; }
.airport-title { overflow-wrap: anywhere; }
.airport-codes { color: var(--muted); font-size: .92rem; }
.save-card { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.save-card button { min-width: 150px; }
.toggle { display: flex; align-items: center; gap: 9px; margin-top: 14px; }
.toggle input { width: auto; min-height: 0; }

@media (max-width: 820px) {
  .grid.two, .quick-card, .save-card { grid-template-columns: 1fr; }
  .quick-actions { justify-content: stretch; }
  .quick-actions button { flex: 1 1 180px; }
  .save-card button { width: 100%; }
}

@media (max-width: 560px) {
  .shell { width: min(94vw, 680px); padding-top: 18px; }
  .hero, .row, .section-head { flex-direction: column; align-items: stretch; }
  .hero .badge { align-self: flex-start; }
  .row button { width: 100%; }
  .card { padding: 18px; border-radius: 14px; }
  .quick-actions { display: grid; grid-template-columns: 1fr; }
  .quick-actions button { width: 100%; }
  .airport-chip { align-items: flex-start; }
  .airport-chip .remove-airport { min-width: 88px; padding: 0 12px; }
}
