:root {
  color-scheme: light dark;
  --green: #2e7d32;
  --amber: #b26a00;
  --red: #c62828;
  --border: #ccc;
}

body {
  font-family: system-ui, sans-serif;
  max-width: 60rem;
  margin: 0 auto;
  padding: 1rem;
  line-height: 1.5;
}

fieldset {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  padding: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
}

input, select, textarea, button {
  font: inherit;
}

.legs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.wizard-nav ol {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  flex-wrap: wrap;
}

.wizard-nav .active a {
  font-weight: bold;
  text-decoration: underline;
}

.badge {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.85em;
}

.badge-green { background: var(--green); color: #fff; }
.badge-amber { background: var(--amber); color: #fff; }

.night-ledger {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
}

.night {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.85em;
}

.night-booked { background: #90caf9; }
.night-pending { background: #ffe0b2; }
.night-flight { background: #ce93d8; }
.night-unaccounted { background: var(--red); color: #fff; }

.alerts { border: 2px solid var(--red); border-radius: 0.5rem; padding: 1rem; }
.alert-red { color: var(--red); }

small { color: #666; display: block; }
