* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f8fafc;
  color: #0f172a;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: #0f172a;
  color: #fff;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.hero,
.card {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.hero h1,
.card h1,
.card h2 {
  margin-top: 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2563eb;
}

.hero-actions,
.card-grid,
.split-grid {
  display: grid;
  gap: 16px;
}

.card-grid,
.split-grid {
  margin-top: 16px;
}

.button,
button {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.primary,
button.primary {
  background: #2563eb;
  color: #fff;
}

.button.secondary {
  background: #e2e8f0;
  color: #0f172a;
}

.button.ghost {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

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

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 16px;
  background: #fff;
}

select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 16px;
  background: #fff;
}

.helper {
  margin: 0;
  font-size: 14px;
  color: #475569;
}

.alert {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 600;
}

.alert.success {
  background: #dcfce7;
  color: #166534;
}

.alert.error {
  background: #fee2e2;
  color: #991b1b;
}

.divider {
  height: 1px;
  background: #e2e8f0;
  margin: 8px 0;
}

.form-section {
  display: grid;
  gap: 14px;
  padding-top: 8px;
}

.guest-grid {
  display: grid;
  gap: 14px;
}

.guest-block {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.check-grid {
  display: grid;
  gap: 10px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.checkbox input {
  width: 20px;
  min-height: 20px;
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
  text-align: left;
}

.status {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-processing {
  background: #e0f2fe;
  color: #075985;
}

.status-sent {
  background: #dcfce7;
  color: #166534;
}

.status-failed {
  background: #fee2e2;
  color: #991b1b;
}

.inline-form {
  display: inline;
}

@media (min-width: 720px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-actions {
    grid-auto-flow: column;
    justify-content: start;
  }

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

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