:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #2f5bff;
  --accent-dark: #1f46d6;
  --accent-soft: #eef2ff;
  --success: #027a48;
  --success-soft: #ecfdf3;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 10% -10%, #e9edff 0%, transparent 60%),
    radial-gradient(900px 500px at 100% 0%, #e9f7f1 0%, transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.site-header {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-meta {
  font-size: 13px;
  color: var(--muted);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--ink);
}

.link-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.link-btn:hover {
  color: var(--ink);
}

.shell {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 64px;
  flex: 1;
}

.shell-narrow {
  max-width: 780px;
}

.shell-booking {
  max-width: 1060px;
}

.page-head {
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
}

h1,
h2,
h3 {
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 44px);
}

h2 {
  margin: 0;
  font-size: clamp(19px, 2.6vw, 24px);
}

.lede {
  margin: 0;
  max-width: 64ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.lede strong {
  color: var(--ink);
}

.muted {
  color: var(--muted);
}

.back-link {
  margin-top: 20px;
  font-size: 14px;
}

.back-link a {
  color: var(--muted);
  text-decoration: none;
}

.back-link a:hover {
  color: var(--ink);
}

.alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #fecdca;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 14px;
}

.alert-success {
  background: var(--success-soft);
  border-color: #abefc6;
  color: var(--success);
}

.notice {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid #c7d7fe;
  background: var(--accent-soft);
  font-size: 14px;
}

.notice p {
  margin: 0 0 4px;
}

.notice p:last-child {
  margin-bottom: 0;
}

.booking-app {
  background: transparent;
}

.booking-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.booking-info {
  padding: 28px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcff 0%, #ffffff 100%);
}

.host-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
}

.host-name {
  margin: 12px 0 4px;
  color: var(--muted);
  font-size: 14px;
}

.event-title {
  margin: 0 0 12px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.event-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.event-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.event-description {
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
  margin: 0 0 18px;
}

.timezone-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
}

.timezone-box strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.how-it-works {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.how-it-works ol {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.how-it-works li {
  display: flex;
  gap: 10px;
  align-items: center;
}

.how-it-works li span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}

.hint-text {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  margin: 14px 0 0;
}

.booking-picker {
  padding: 28px;
}

.picker-head {
  margin-bottom: 10px;
}

.picker-head h2 {
  font-size: 20px;
}

.picker-head-slots {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.calendar {
  min-height: 240px;
}

.cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cal-head strong {
  font-size: 14px;
  text-transform: capitalize;
}

.cal-nav {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--ink);
}

.cal-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.cal-weekdays,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-weekdays span {
  text-align: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 6px 0;
}

.cal-day {
  aspect-ratio: 1;
  border: 0;
  background: transparent;
  border-radius: 50%;
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  cursor: default;
}

.cal-day.has-slots {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 700;
  cursor: pointer;
}

.cal-day.has-slots:hover {
  background: #dfe6ff;
}

.cal-day.selected {
  background: var(--accent);
  color: #fff;
}

.cal-day.today:not(.selected) {
  box-shadow: inset 0 0 0 1px var(--accent);
  color: var(--accent);
}

.cal-day:disabled {
  opacity: 0.35;
}

.cal-blank {
  aspect-ratio: 1;
}

.slot-list {
  min-height: 100px;
}

.day-heading {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
  text-transform: capitalize;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}

.slot-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 10px 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.slot-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.slot-btn.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.empty {
  padding: 24px 16px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background: #fff;
}

.slot-form {
  margin-top: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.slot-form-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.slot-form-head h2 {
  font-size: 18px;
  margin: 4px 0;
}

.slot-form-head .muted {
  margin: 0;
  font-size: 13px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

.field em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted);
}

.field-wide {
  grid-column: 1 / -1;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 91, 255, 0.16);
}

.field textarea {
  resize: vertical;
  min-height: 84px;
}

.field small.muted {
  display: block;
  margin-top: 6px;
  font-weight: 400;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 18px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.primary-btn {
  background: var(--accent);
  color: #fff;
}

.primary-btn:hover {
  background: var(--accent-dark);
}

.primary-btn.danger {
  background: var(--danger);
}

.secondary-btn {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.secondary-btn:hover {
  border-color: #b9c0ff;
}

.ghost-btn {
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
}

.ghost-btn:hover {
  color: var(--ink);
  background: #f2f4f7;
}

.ghost-btn.danger {
  color: var(--danger);
  background: transparent;
}

.ghost-btn.danger:hover {
  background: var(--danger-soft);
}

.success-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.success-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.success-badge .icon {
  width: 28px;
  height: 28px;
}

.success-badge-warning {
  background: var(--danger-soft);
  color: var(--danger);
}

.success-badge-neutral {
  background: var(--accent-soft);
  color: var(--accent);
}

.details {
  margin: 20px 0;
  display: grid;
  gap: 12px;
}

.detail-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
  line-height: 1.5;
}

.detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-row dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 3px;
}

.detail-row dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.detail-row a {
  color: var(--accent);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.card-spaced {
  margin-top: 20px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.card-head h2 {
  font-size: 20px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}

.agenda-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.agenda-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.agenda-card:hover {
  border-color: #b9c0ff;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.07);
}

.agenda-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.agenda-card h2 {
  margin: 4px 0 8px;
  font-size: 22px;
}

.agenda-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.agenda-card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.hint {
  background: #f8faff;
  border: 1px solid #dbe3ff;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.hint strong {
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.hint ol {
  margin: 8px 0;
  padding-left: 18px;
  line-height: 1.7;
}

.hint p {
  margin: 8px 0 0;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.admin-row-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.admin-row-main span {
  font-size: 13px;
}

.admin-row-actions,
.admin-row-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-row-side form {
  display: inline;
}

.status {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 999px;
}

.status-confirmed {
  background: var(--success-soft);
  color: var(--success);
}

.status-cancelled {
  background: var(--danger-soft);
  color: var(--danger);
}

code {
  background: #f2f4f7;
  border-radius: 6px;
  padding: 1px 5px;
  font-size: 0.9em;
}

.site-footer {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 32px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .booking-card {
    grid-template-columns: 1fr;
  }

  .booking-info {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .booking-picker {
    padding-top: 22px;
  }

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

  .slot-form-head {
    flex-direction: column;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .form-actions {
    justify-content: stretch;
  }

  .form-actions .primary-btn {
    width: 100%;
  }

  .header-right {
    justify-content: flex-start;
  }

  .admin-row {
    align-items: flex-start;
  }

  .success-card {
    padding: 26px;
  }
}

.cohosts {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.cohosts .eyebrow {
  margin-bottom: 6px;
}

.cohosts ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cohosts li {
  font-size: 12px;
  color: var(--muted);
  background: var(--accent-soft);
  padding: 4px 8px;
  border-radius: 999px;
}

.invite-banner {
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid #c7d7fe;
  color: var(--accent-dark);
  font-size: 14px;
}

.checkbox {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
}

.checkbox input {
  width: auto;
}

.message-preview-wrap {
  margin-top: 20px;
}

.message-preview {
  white-space: pre-wrap;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  max-height: 320px;
  overflow: auto;
  margin: 0;
}

.copy-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: var(--muted);
  background: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


.google-btn {
  width: 100%;
}

.login-key {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.login-key summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
}

.login-key form {
  margin-top: 14px;
}
