:root {
  color-scheme: light;
  --ink: #17233f;
  --muted: #64708a;
  --line: #d9e0ea;
  --panel: #ffffff;
  --page: #f3f7fb;
  --blue: #1687d9;
  --orange: #ff7d17;
  --green: #20b990;
  --danger: #d83c3c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.eyebrow,
.label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 18px;
}

.supplier-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 10px 14px;
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}

.workspace {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
  box-shadow: 0 8px 24px rgba(23, 35, 63, 0.06);
}

.controls {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.passenger-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
}

button {
  border: 0;
  border-radius: 6px;
  padding: 13px 16px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.status {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.error-detail {
  display: grid;
  gap: 8px;
  border: 1px solid #f2b7b7;
  border-radius: 8px;
  background: #fff6f6;
  padding: 12px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.error-detail strong {
  color: var(--danger);
}

.error-detail p {
  margin: 0;
}

.stale-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stale-slots span {
  border: 1px solid #f2b7b7;
  border-radius: 999px;
  background: #fff;
  padding: 4px 8px;
}

.summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.summary.single {
  grid-template-columns: minmax(220px, 320px);
}

.is-hidden {
  display: none;
}

.summary div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  min-height: 112px;
}

.summary strong {
  display: block;
  margin-top: 16px;
  color: var(--blue);
  font-size: 34px;
  line-height: 1;
}

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

.section-heading span {
  color: var(--muted);
  font-size: 13px;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.sessions {
  display: grid;
  gap: 10px;
}

.session-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 90px 90px;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
}

.session-head {
  border-color: transparent;
  padding-top: 0;
  padding-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.session-row strong {
  color: var(--blue);
}

.sold-out {
  border: 1px solid #f2b7b7;
  border-radius: 8px;
  background: #fff6f6;
  padding: 14px;
  color: var(--danger);
  font-weight: 800;
}

.day {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
  min-height: 86px;
  padding: 10px;
}

.day strong {
  display: block;
  margin-bottom: 14px;
  font-size: 14px;
}

.day span {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.day.empty span {
  background: #e6ebf3;
  color: #8792aa;
}

@media (max-width: 850px) {
  .topbar,
  .workspace {
    display: grid;
    grid-template-columns: 1fr;
  }

  .summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .session-row {
    grid-template-columns: 88px minmax(0, 1fr) 64px 68px;
    gap: 8px;
    padding: 10px;
    font-size: 13px;
  }
}
