:root {
  color-scheme: light;
  --ink: #1f2933;
  --muted: #667085;
  --line: #d8dee8;
  --paper: #f8fafc;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --alert: #b42318;
  --amber: #b54708;
  --blue: #2563eb;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.09);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  cursor: pointer;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 700;
}

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

button.secondary {
  background: #eef4ff;
  color: var(--blue);
}

button.danger {
  background: #fef3f2;
  color: var(--alert);
}

.icon-button {
  width: 44px;
  padding: 0;
  font-size: 1.35rem;
}

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

.topbar,
.panel-heading,
.calendar-row,
.departure-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar {
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 0.98;
}

h2 {
  font-size: 1.05rem;
}

.panel,
.notice,
.departure-banner,
.demo-details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel,
.notice,
.demo-details {
  padding: 18px;
}

.panel-heading p,
.calendar-row p,
.departure-row p,
label,
.muted,
.notice p {
  color: var(--muted);
  font-size: 0.9rem;
}

.notice {
  margin-bottom: 18px;
}

.notice strong {
  display: block;
  margin-bottom: 6px;
}

.departure-banner {
  min-height: 420px;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(28px, 7vw, 72px);
  margin: 18px 0;
  border-color: #99f6e4;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(37, 99, 235, 0.08)),
    white;
}

.banner-kicker {
  color: var(--accent);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 850;
  text-transform: uppercase;
}

.departure-banner h2 {
  max-width: 900px;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.95;
}

.banner-date {
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  font-weight: 800;
}

.banner-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.banner-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  background: #e6fffb;
  color: var(--accent-strong);
  font-weight: 800;
}

.departure-banner button {
  width: fit-content;
  min-height: 52px;
  padding: 0 22px;
}

.demo-details {
  margin-top: 18px;
}

.demo-details summary {
  cursor: pointer;
  font-weight: 850;
}

.demo-details[open] summary {
  margin-bottom: 18px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: start;
}

.side-stack,
.form-stack,
.departure-list,
.calendar-list,
.alert-deck,
.recipient-list {
  display: grid;
  gap: 12px;
}

.panel-heading {
  margin-bottom: 14px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: white;
  color: var(--ink);
}

.departure-row,
.calendar-row,
.recipient-pill {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdff;
}

.departure-row.today {
  border-color: #f79009;
  background: #fffbeb;
}

.row-title {
  font-weight: 800;
  margin-bottom: 4px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: #e6fffb;
  color: #0f766e;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: capitalize;
}

.chip.warn {
  background: #fffaeb;
  color: var(--amber);
}

.row-actions,
.recipient-pill {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.recipient-pill {
  min-height: 38px;
  padding: 8px 8px 8px 12px;
  font-size: 0.9rem;
  font-weight: 700;
}

.recipient-pill button {
  width: 30px;
  min-height: 30px;
  padding: 0;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .app-shell {
    width: min(100% - 20px, 1360px);
    padding-top: 18px;
  }

  .topbar,
  .departure-row,
  .calendar-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
