:root {
  --bg: #f3f5f7;
  --bg-strong: #ffffff;
  --ink: #132235;
  --muted: #617184;
  --line: rgba(19, 34, 53, 0.1);
  --brand: #134f8a;
  --brand-deep: #0b3259;
  --brand-soft: #d8e9f8;
  --sand: #f4efe6;
  --green: #1e7d50;
  --red: #b94844;
  --shadow: 0 24px 52px rgba(12, 29, 54, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;
  --shell: calc(100% - 24px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top left, rgba(19, 79, 138, 0.18), transparent 26%),
    radial-gradient(circle at top right, rgba(244, 239, 230, 0.95), transparent 22%),
    linear-gradient(180deg, #fbfcfd 0%, var(--bg) 100%);
  color: var(--ink);
}

button,
input,
textarea {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
}

.client-shell {
  width: var(--shell);
  margin: 0 auto;
  padding: 10px 0 28px;
}

.hero {
  display: block;
  margin-bottom: 14px;
}

.hero__brand,
.toolbar,
.flight-card,
.empty-state,
.dialog__card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero__brand {
  display: block;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.94)),
    linear-gradient(140deg, rgba(19, 79, 138, 0.04), transparent 60%);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  font-family: "Segoe UI", Arial, sans-serif;
}

.hero h1,
.section-head h2,
.empty-state h3,
.dialog__head h2 {
  margin: 0;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero h1 span {
  color: var(--brand);
}

.hero__copy,
.section-head__copy,
.muted,
.flight-card__meta,
.dialog__note {
  color: var(--muted);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.search-field,
.toggle-field,
.form-grid label {
  display: grid;
  gap: 8px;
}

.passenger-intake {
  display: grid;
  gap: 10px;
}

.passenger-intake__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.passenger-intake__head span {
  font-size: 0.9rem;
  font-weight: 600;
  font-family: "Segoe UI", Arial, sans-serif;
}

.passenger-intake__list {
  display: grid;
  gap: 10px;
}

.passenger-card {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.8fr);
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fbfcfe;
}

.passenger-card__title {
  grid-column: 1 / -1;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand);
  font-family: "Segoe UI", Arial, sans-serif;
}

.search-field {
  flex: 1 1 auto;
}

.search-field span,
.form-grid span {
  font-size: 0.9rem;
  font-weight: 600;
  font-family: "Segoe UI", Arial, sans-serif;
}

.search-field input,
.form-grid input,
.form-grid textarea {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  padding: 12px 14px;
}

.toggle-field {
  grid-auto-flow: column;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
  font-weight: 600;
  font-family: "Segoe UI", Arial, sans-serif;
}

.section-head {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  align-items: end;
  margin-bottom: 12px;
}

.flight-grid {
  display: grid;
  gap: 12px;
}

.flight-card {
  padding: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 253, 0.95));
}

.flight-card__head,
.dialog__actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.flight-card__head {
  align-items: start;
  margin-bottom: 12px;
}

.flight-card h3 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  line-height: 1.08;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  font-size: 0.84rem;
  font-weight: 600;
  font-family: "Segoe UI", Arial, sans-serif;
}

.badge--requestable {
  background: rgba(30, 125, 80, 0.12);
  color: var(--green);
}

.badge--closed {
  background: rgba(185, 72, 68, 0.12);
  color: var(--red);
}

.segment-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.segment {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 11px 12px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.segment__route {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 6px;
}

.segment__route strong {
  font-size: 1rem;
  font-family: "Segoe UI", Arial, sans-serif;
}

.segment__meta {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.92rem;
  font-family: "Segoe UI", Arial, sans-serif;
}

.flight-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.summary-chip {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
}

.summary-chip span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-family: "Segoe UI", Arial, sans-serif;
}

.summary-chip strong {
  display: block;
  margin-top: 3px;
  font-size: 0.98rem;
  line-height: 1.25;
}

.flight-card__actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.availability-note strong {
  font-size: 1rem;
  font-family: "Segoe UI", Arial, sans-serif;
}

.button,
.dialog__close {
  border: none;
  cursor: pointer;
}

.button {
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  padding: 10px 16px;
  font-weight: 700;
  font-family: "Segoe UI", Arial, sans-serif;
}

.button:hover {
  background: var(--brand-deep);
}

.button[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.button--disabled {
  background: #f5f6f8;
  color: #7e8794;
  border: 1px solid var(--line);
}

.button--disabled:hover {
  background: #f5f6f8;
}

.button--ghost {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.button--ghost:hover {
  background: #f5f9ff;
}

.empty-state {
  text-align: center;
  padding: 34px 22px;
}

.dialog {
  border: none;
  padding: 0;
  background: transparent;
}

.dialog::backdrop {
  background: rgba(12, 23, 38, 0.45);
}

.dialog__card {
  width: min(720px, calc(100vw - 24px));
  padding: 18px;
}

.dialog__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.dialog__close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #eef4fb;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.full-width {
  grid-column: 1 / -1;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100vw - 36px));
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: #102033;
  color: #ffffff;
  box-shadow: var(--shadow);
  font-family: "Segoe UI", Arial, sans-serif;
}

@media (max-width: 920px) {
  .section-head,
  .flight-card__head,
  .flight-card__actions,
  .toolbar,
  .dialog__actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero__brand {
    align-items: start;
  }

  .toolbar {
    align-items: stretch;
  }

  .flight-card__stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .client-shell {
    width: calc(100% - 12px);
  }

  .hero__brand {
    grid-template-columns: 1fr;
    display: grid;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .passenger-card {
    grid-template-columns: 1fr;
  }
}
