:root {
  color-scheme: light;
  --bg: #f7fbf5;
  --ink: #213225;
  --muted: #60705f;
  --line: #d7e3d0;
  --panel: #ffffff;
  --accent: #1f7a4d;
  --accent-dark: #145534;
  --soft: #e8f5dd;
  --warn: #9f3412;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

.hero {
  min-height: 430px;
  background:
    linear-gradient(90deg, rgba(10, 35, 22, 0.76), rgba(10, 35, 22, 0.32)),
    url("https://images.unsplash.com/photo-1596991414025-30b7f233e411?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: white;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 20px;
}

.topbar a {
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.version-badge {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  padding: 5px 9px;
  font-size: 0.82rem;
  font-weight: 800;
}

.version-badge.is-visible {
  display: inline-flex;
}

.nav-actions button {
  width: auto;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
  color: white;
  padding: 8px 12px;
}

.nav-actions button:hover {
  background: rgba(255, 255, 255, 0.24);
}

.hero-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 20px 96px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 6vw, 4.6rem);
  line-height: 0.98;
}

.hero-intro {
  max-width: 680px;
  margin-bottom: 0;
  font-size: 1.12rem;
  line-height: 1.65;
}

.route-note {
  display: inline-flex;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  padding: 11px 13px;
}

main {
  max-width: 1120px;
  margin: -58px auto 64px;
  padding: 0 20px;
}

.summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.summary div,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(39, 61, 37, 0.08);
}

.summary div {
  padding: 20px;
}

.summary span {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 2.15rem;
  font-weight: 850;
}

.summary span.is-shortage {
  color: var(--warn);
}

.summary p {
  margin: 0;
  color: var(--muted);
}

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

.forms {
  align-items: start;
  margin-bottom: 36px;
}

.panel {
  padding: 24px;
}

label,
legend {
  display: block;
  margin-bottom: 8px;
  font-weight: 750;
}

input,
textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(31, 122, 77, 0.16);
}

fieldset {
  margin: 18px 0;
  border: 0;
  padding: 0;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 9px 0;
  color: var(--ink);
  font-weight: 650;
}

.check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

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

button {
  width: 100%;
  margin-top: 18px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  padding: 13px 18px;
}

button:hover {
  background: var(--accent-dark);
}

button.secondary {
  width: auto;
  margin: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 7px 10px;
  font-size: 0.88rem;
}

button.secondary:hover {
  border-color: #f0c6b8;
  background: #fff3ed;
  color: var(--warn);
}

.message {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--accent-dark);
  font-weight: 700;
}

.message.error {
  color: var(--warn);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
}

.section-heading span {
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  font-weight: 850;
}

.cards {
  display: grid;
  gap: 12px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 18px;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.card h3 {
  margin: 0 0 10px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.tag {
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  padding: 6px 10px;
  font-size: 0.88rem;
  font-weight: 800;
}

.note,
.empty {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 780px) {
  .summary,
  .forms,
  .lists {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-content {
    padding-top: 54px;
  }

  main {
    margin-top: -34px;
  }
}

@media (max-width: 480px) {
  .topbar {
    align-items: flex-start;
    gap: 14px;
  }

  .nav-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

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

  h1 {
    font-size: 2.35rem;
  }
}
