/* AAA AI Meet scheduling — Calendly-style booking and host cockpit.
   Palette and type follow the AAA AI brand tokens in brand.css.
   Accent lime is reserved for availability, confirmation and primary CTAs. */

:root {
  --s-ink: #151713;
  --s-ink-soft: #3f423f;
  --s-paper: #f2f2ec;
  --s-card: #fbfbf8;
  --s-white: #ffffff;
  --s-line: rgba(22,22,22, 0.13);
  --s-line-strong: rgba(22,22,22, 0.24);
  --s-muted: #6f6f6f;
  --s-muted-soft: #949494;
  --s-soft: #e9e9e9;
  --s-accent: #e5e5e5;
  --s-accent-deep: #c4c4c4;
  --s-success: #595959;
  --s-danger: #5c5c5c;
  --s-radius: 26px;
  --s-radius-md: 17px;
  --s-radius-sm: 12px;
  --s-font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --s-mono: "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
  --s-shadow: 0 40px 120px rgba(31,31,31, 0.16), 0 8px 30px rgba(31,31,31, 0.06);
  --s-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

.sched-page {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 55% 45% at 82% -6%, rgba(229,229,229, 0.32), transparent 62%),
    radial-gradient(ellipse 40% 38% at 0% 100%, rgba(22,22,22, 0.055), transparent 65%),
    var(--s-paper);
  color: var(--s-ink);
  font-family: var(--s-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.sched-page a { color: inherit; }
.sched-page button, .sched-page input, .sched-page select, .sched-page textarea { font: inherit; }
.sched-page button { color: inherit; }

.sched-skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--s-ink);
  color: var(--s-white) !important;
  text-decoration: none;
  transform: translateY(-180%);
  opacity: 0;
  transition: transform 0.2s var(--s-ease), opacity 0.2s var(--s-ease);
}
.sched-skip:focus { transform: translateY(0); opacity: 1; }

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

/* ---------------------------------------------------------------- public nav */

.sched-public-nav {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.sched-brand {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  color: var(--s-ink);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
  text-decoration: none;
}
.sched-brand-rule { color: var(--s-muted-soft); font-weight: 300; }
.sched-brand-ai {
  margin-top: -1px;
  color: var(--s-muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.sched-public-nav__right {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--s-muted);
  font-size: 13px;
}
.sched-nav-label {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 600;
}
.sched-help-link {
  color: var(--s-ink) !important;
  text-decoration: none;
  border-bottom: 1px solid var(--s-line);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.sched-help-link:hover { border-color: var(--s-ink); }

.sched-lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--s-line);
  border-radius: 999px;
  background: rgba(255,255,255, 0.18);
}
.sched-lang button {
  min-width: 30px;
  padding: 4px 7px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--s-muted);
  font-family: var(--s-font);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.sched-lang button:hover { color: var(--s-ink); }
.sched-lang button.is-active {
  background: var(--s-ink);
  color: var(--s-paper);
}

/* -------------------------------------------------------------- booking shell */

.sched-booking-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 6px 0 64px;
}

.sched-booking-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.83fr) minmax(0, 1.55fr);
  min-height: 700px;
  border: 1px solid rgba(22,22,22, 0.16);
  border-radius: var(--s-radius);
  background: var(--s-card);
  box-shadow: var(--s-shadow);
  overflow: hidden;
  animation: sched-rise 0.6s var(--s-ease) both;
}

@keyframes sched-rise {
  from { opacity: 0; transform: translateY(16px) scale(0.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.sched-host-panel {
  position: relative;
  overflow: hidden;
  padding: 42px 42px 34px;
  background:
    radial-gradient(ellipse 80% 65% at 105% 0%, rgba(229,229,229, 0.16), transparent 55%),
    radial-gradient(ellipse 90% 55% at -20% 105%, rgba(255,255,255, 0.085), transparent 58%),
    #161814;
  color: #f6f7f1;
  isolation: isolate;
}

.sched-host-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.24;
  background-image: radial-gradient(rgba(255,255,255, 0.34) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 70% 35%, #000000 0%, transparent 72%);
}

.sched-host-panel::after {
  content: "";
  position: absolute;
  inset: auto -60px -150px auto;
  z-index: -1;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(229,229,229, 0.22);
  border-radius: 50%;
}

.sched-host-panel__inner {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.sched-host-topline {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 54px;
  color: rgba(246,246,246, 0.52);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sched-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--s-accent);
  box-shadow: 0 0 0 5px rgba(229,229,229, 0.09);
}

.sched-host {
  margin-bottom: 30px;
}
.sched-avatar {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--s-accent);
  color: var(--s-ink);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  box-shadow: 0 0 0 1px rgba(255,255,255, 0.18);
}
.sched-host__name {
  margin: 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.sched-host__role {
  margin: 3px 0 0;
  color: rgba(246,246,246, 0.46);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.sched-event-title {
  max-width: 360px;
  margin: 0 0 22px;
  font-size: clamp(34px, 3.3vw, 46px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.sched-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.sched-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255, 0.12);
  border-radius: 999px;
  color: rgba(246,246,246, 0.8);
  font-size: 12px;
  font-weight: 400;
  background: rgba(255,255,255, 0.03);
}
.sched-meta-item svg { color: var(--s-accent); }

.sched-event-description {
  max-width: 370px;
  margin: 0 0 24px;
  color: rgba(246,246,246, 0.58);
  font-size: 14px;
  line-height: 1.62;
}

.sched-host-note {
  display: flex;
  gap: 11px;
  max-width: 345px;
  margin-top: 4px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255, 0.1);
  color: rgba(246,246,246, 0.46);
  font-size: 12px;
  line-height: 1.55;
}
.sched-host-note svg { flex: 0 0 auto; margin-top: 1px; color: var(--s-accent); }
.sched-host-note p { margin: 0; }

.sched-host-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 56px;
  color: rgba(246,246,246, 0.3);
  font-size: 10px;
  letter-spacing: 0.04em;
}
.sched-mini-mark {
  color: rgba(246,246,246, 0.68);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.05em;
}
.sched-mini-mark span { color: rgba(246,246,246, 0.24); }
.sched-mini-mark .sched-mini-ai { color: var(--s-accent); font-size: 7px; vertical-align: super; letter-spacing: 0.02em; }

.sched-host-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.sched-orbit {
  position: absolute;
  border: 1px solid rgba(255,255,255, 0.07);
  border-radius: 50%;
}
.sched-orbit--one { width: 330px; height: 330px; right: -170px; bottom: 70px; }
.sched-orbit--two { width: 480px; height: 480px; right: -260px; bottom: -30px; }
.sched-art-spark {
  position: absolute;
  right: 24px;
  bottom: 26px;
  color: var(--s-accent);
  font-size: 22px;
  opacity: 0.46;
  transform: rotate(12deg);
}

/* ---------------------------------------------------------------- flow */

.sched-flow {
  position: relative;
  scroll-margin-top: 14px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 30px 38px 22px;
  background:
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(229,229,229, 0.1), transparent 65%),
    var(--s-card);
}

.sched-flow-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 30px;
}

.sched-steps {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--s-muted-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.sched-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.sched-step b {
  font-family: var(--s-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.7;
}
.sched-step.is-active { color: var(--s-ink); border-bottom-color: var(--s-ink); }
.sched-step.is-complete { color: var(--s-ink-soft); }

.sched-tz {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 210px;
}
.sched-tz__label {
  color: var(--s-muted-soft);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sched-tz select {
  width: 230px;
  max-width: 100%;
  appearance: none;
  padding: 7px 28px 7px 0;
  border: 0;
  border-bottom: 1px solid var(--s-line);
  border-radius: 0;
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23151713' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 2px center;
  color: var(--s-ink-soft);
  font-size: 12px;
  cursor: pointer;
  text-overflow: ellipsis;
  outline: none;
}
.sched-tz select:focus { border-bottom-color: var(--s-ink); }

.sched-view { animation: sched-fade 0.32s var(--s-ease) both; }
@keyframes sched-fade {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.sched-view-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.sched-eyebrow {
  margin: 0 0 5px;
  color: var(--s-muted-soft);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sched-view-title {
  margin: 0;
  font-size: clamp(25px, 2.4vw, 31px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.045em;
}
.sched-view-hint {
  margin: 0 0 3px;
  color: var(--s-muted-soft);
  font-size: 11px;
}

.sched-calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 0.78fr);
  gap: 26px;
  min-height: 330px;
  flex: 1;
}

.sched-calendar-card {
  min-width: 0;
  padding: 18px 19px 16px;
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius-md);
  background: var(--s-white);
}
.sched-month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}
.sched-month-label {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-align: center;
}
.sched-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--s-line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, opacity 0.18s;
}
.sched-icon-btn:hover:not(:disabled) { background: var(--s-soft); border-color: var(--s-line-strong); }
.sched-icon-btn:disabled { opacity: 0.3; cursor: default; }

.sched-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 7px;
}
.sched-weekdays span {
  color: var(--s-muted-soft);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.sched-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px 2px;
}
.sched-day {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.12 / 1;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--s-ink-soft);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, transform 0.17s;
}
.sched-day:hover:not(:disabled) { background: var(--s-soft); }
.sched-day:focus-visible { outline: 2px solid var(--s-ink); outline-offset: 2px; }
.sched-day.is-empty { visibility: hidden; }
.sched-day.is-past, .sched-day:disabled { color: var(--s-muted-soft); opacity: 0.4; cursor: default; }
.sched-day.is-available { color: var(--s-ink); }
.sched-day.is-available::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--s-accent-deep);
  transform: translateX(-50%);
}
.sched-day.is-today { box-shadow: inset 0 0 0 1px var(--s-line-strong); }
.sched-day.is-selected {
  background: var(--s-ink);
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(22,22,22, 0.16);
}
.sched-day.is-selected::after { background: var(--s-accent); }
.sched-day--skeleton {
  display: block;
  aspect-ratio: 1.12 / 1;
  min-height: 34px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--s-soft) 25%, #f5f5ef 37%, var(--s-soft) 63%);
  background-size: 400% 100%;
  animation: sched-shimmer 1.3s ease infinite;
  animation-delay: calc(var(--i, 0) * 1ms);
}
.sched-calendar-error {
  grid-column: 1 / -1;
  margin: 22px 4px;
  color: var(--s-muted);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}
.sched-calendar-error .sched-text-link { display: inline; margin-left: 3px; font-size: 11px; }

.sched-calendar-legend {
  display: flex;
  gap: 15px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--s-line);
  color: var(--s-muted-soft);
  font-size: 9px;
}
.sched-calendar-legend span { display: inline-flex; align-items: center; gap: 5px; }
.sched-legend-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--s-accent-deep); }
.sched-legend-dot--muted { background: var(--s-muted-soft); opacity: 0.5; }

.sched-slots-panel {
  min-width: 0;
  padding: 18px 0 0 22px;
  border-left: 1px solid var(--s-line);
}
.sched-slots-head { margin-bottom: 14px; }
.sched-slots-date {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.sched-slots-tz {
  margin: 3px 0 0;
  color: var(--s-muted-soft);
  font-size: 10px;
}
.sched-slots-scroll {
  max-height: 358px;
  overflow: auto;
  scrollbar-width: thin;
  padding-right: 3px;
}
.sched-slots-placeholder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 24px 5px;
  color: var(--s-muted-soft);
}
.sched-slots-placeholder p { margin: 0; font-size: 12px; line-height: 1.5; max-width: 150px; }
.sched-placeholder-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--s-line);
  border-radius: 50%;
  font-size: 14px;
}

.sched-slot-group { margin-bottom: 18px; }
.sched-slot-group__label {
  margin: 0 0 7px;
  color: var(--s-muted-soft);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sched-slot-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.sched-slot {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--s-line);
  border-radius: 8px;
  background: transparent;
  color: var(--s-ink);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, color 0.16s;
}
.sched-slot:hover { border-color: var(--s-ink); background: var(--s-ink); color: #ffffff; }
.sched-slot:focus-visible { outline: 2px solid var(--s-ink); outline-offset: 2px; }
.sched-slot.is-selected { background: var(--s-ink); color: #ffffff; border-color: var(--s-ink); }

.sched-fineprint {
  margin: 22px 0 0;
  color: var(--s-muted-soft);
  font-size: 10px;
  line-height: 1.5;
}

.sched-flow-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--s-line);
  color: var(--s-muted-soft);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.sched-flow-footer__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--s-accent-deep); }

/* ----------------------------------------------------------------- details */

.sched-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: -5px 0 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--s-muted);
  font-size: 11px;
  cursor: pointer;
}
.sched-back:hover { color: var(--s-ink); }

.sched-view-head--details { margin-bottom: 20px; }

.sched-selected-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding: 17px 19px;
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius-sm);
  background: var(--s-white);
}
.sched-selected-date {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.sched-selected-time { margin: 3px 0 0; color: var(--s-muted); font-size: 12px; }
.sched-selected-badge {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--s-accent);
  color: var(--s-ink);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.sched-form { margin-top: 2px; }
.sched-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sched-field { display: block; margin-bottom: 15px; }
.sched-field > span {
  display: block;
  margin-bottom: 6px;
  color: var(--s-ink-soft);
  font-size: 11px;
  font-weight: 500;
}
.sched-field > span small { color: var(--s-muted-soft); font-weight: 400; }
.sched-field input,
.sched-field select,
.sched-field textarea {
  width: 100%;
  border: 1px solid var(--s-line);
  border-radius: 9px;
  background: var(--s-white);
  color: var(--s-ink);
  padding: 11px 13px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.sched-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23151713' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 30px;
  cursor: pointer;
}
.sched-field textarea { resize: vertical; min-height: 96px; }
.sched-field input::placeholder,
.sched-field textarea::placeholder { color: var(--s-muted-soft); }
.sched-field input:focus,
.sched-field textarea:focus {
  border-color: var(--s-ink);
  box-shadow: 0 0 0 3px rgba(22,22,22, 0.06);
}
.sched-field input[aria-invalid="true"],
.sched-field textarea[aria-invalid="true"] { border-color: var(--s-danger); }
.sched-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sched-form-error {
  margin: 0 0 13px;
  padding: 10px 12px;
  border: 1px solid rgba(92,92,92, 0.24);
  border-radius: 9px;
  background: rgba(92,92,92, 0.06);
  color: var(--s-danger);
  font-size: 11px;
  line-height: 1.45;
}

.sched-form-submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sched-form-submit .sched-fineprint { margin: 0; max-width: 280px; }

.sched-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--s-ease), color 0.2s, border-color 0.2s, transform 0.2s;
}
.sched-btn:hover { transform: translateY(-1px); }
.sched-btn:focus-visible { outline: 2px solid var(--s-ink); outline-offset: 2px; }
.sched-btn--dark { background: var(--s-ink); color: #ffffff; }
.sched-page .sched-btn--dark { color: #ffffff; }
.sched-btn--dark:hover { background: #2d302b; }
.sched-btn--outline { border-color: var(--s-line-strong); background: transparent; color: var(--s-ink); }
.sched-btn--outline:hover { background: var(--s-soft); }
.sched-btn--accent { background: var(--s-accent); color: var(--s-ink); }
.sched-btn--accent:hover { background: var(--s-accent-deep); }
.sched-btn--small { min-height: 35px; padding: 0 13px; font-size: 11px; }
.sched-btn:disabled { opacity: 0.65; cursor: wait; transform: none; }
.sched-btn .sched-spinner {
  width: 13px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: sched-spin 0.7s linear infinite;
}
@keyframes sched-spin { to { transform: rotate(360deg); } }

.sched-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 44px));
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--s-ink);
  color: #ffffff;
  font-size: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0, 0.2);
  animation: sched-toast-in 0.24s var(--s-ease) both;
}
.sched-toast.is-error { background: var(--s-danger); }
@keyframes sched-toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.sched-noscript {
  max-width: 760px;
  margin: 0 auto 30px;
  padding: 14px 18px;
  border: 1px solid var(--s-line);
  border-radius: 10px;
  background: var(--s-white);
  font-size: 13px;
  text-align: center;
}

.sched-skeleton {
  display: block;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--s-soft) 25%, #f6f6f1 37%, var(--s-soft) 63%);
  background-size: 400% 100%;
  animation: sched-shimmer 1.3s ease infinite;
}
@keyframes sched-shimmer {
  from { background-position: 100% 50%; }
  to { background-position: 0 50%; }
}

/* ------------------------------------------------------------- confirmation */

.sched-confirm-wrap {
  width: min(1000px, calc(100% - 48px));
  margin: 0 auto;
  padding: 16px 0 64px;
}
.sched-confirm-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.78fr);
  border: 1px solid rgba(22,22,22, 0.15);
  border-radius: var(--s-radius);
  background: var(--s-card);
  box-shadow: var(--s-shadow);
  overflow: hidden;
  animation: sched-rise 0.6s var(--s-ease) both;
}
.sched-confirm-main { padding: 44px 48px 40px; }
.sched-confirm-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 23px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(89,89,89, 0.08);
  color: var(--s-success);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sched-confirm-status.is-cancelled { background: rgba(92,92,92, 0.08); color: var(--s-danger); }
.sched-confirm-status.is-cancelled .sched-check-icon { background: var(--s-danger); font-size: 14px; }
.sched-check-icon {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--s-success);
  color: #ffffff;
}
.sched-confirm-title {
  margin: 0 0 10px;
  font-size: clamp(36px, 4.7vw, 54px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.sched-confirm-lead {
  margin: 0 0 28px;
  max-width: 500px;
  color: var(--s-muted);
  font-size: 14px;
  line-height: 1.6;
}
.sched-when-block {
  margin-bottom: 24px;
  padding: 23px 25px;
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius-md);
  background: var(--s-white);
}
.sched-when-date {
  margin: 0 0 4px;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.sched-when-time { margin: 0; color: var(--s-muted); font-size: 13px; }
.sched-when-tz { margin: 7px 0 0; color: var(--s-muted-soft); font-size: 10px; }
.sched-confirm-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.sched-confirm-subactions { display: flex; gap: 18px; flex-wrap: wrap; }
.sched-calendar-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 0 0 22px;
  padding: 13px 0 0;
  border-top: 1px solid var(--s-line);
}
.sched-calendar-actions__label {
  margin-right: 4px;
  color: var(--s-muted-soft);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sched-calendar-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid var(--s-line);
  border-radius: 999px;
  color: var(--s-ink-soft) !important;
  font-size: 10px;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s;
}
.sched-calendar-chip:hover { background: var(--s-soft); border-color: var(--s-line-strong); }
.sched-next {
  margin-top: 28px;
  padding-top: 21px;
  border-top: 1px solid var(--s-line);
}
.sched-next__label {
  margin: 0 0 12px;
  color: var(--s-muted-soft);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sched-next ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sched-next li { display: flex; gap: 9px; align-items: flex-start; }
.sched-next li > span {
  flex: 0 0 auto;
  padding-top: 2px;
  color: var(--s-muted-soft);
  font-family: var(--s-mono);
  font-size: 8px;
}
.sched-next li p { margin: 0; color: var(--s-muted); font-size: 10px; line-height: 1.45; }
.sched-next li strong { color: var(--s-ink-soft); font-weight: 500; }
.sched-text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--s-muted);
  font-size: 11px;
  text-decoration: none;
  cursor: pointer;
}
.sched-text-link:hover { color: var(--s-ink); text-decoration: underline; text-underline-offset: 3px; }

.sched-confirm-side {
  padding: 44px 34px 34px;
  background: #161814;
  color: #f6f7f1;
}
.sched-confirm-host { margin-bottom: 30px; }
.sched-confirm-host .sched-avatar { width: 44px; height: 44px; font-size: 13px; margin-bottom: 12px; }
.sched-confirm-host__name { margin: 0; font-size: 14px; font-weight: 500; }
.sched-confirm-host__role { margin: 2px 0 0; color: rgba(246,246,246, 0.44); font-size: 11px; }
.sched-side-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255, 0.1); }
.sched-side-list li { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255, 0.1); }
.sched-side-label {
  display: block;
  margin-bottom: 4px;
  color: rgba(246,246,246, 0.38);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sched-side-value {
  color: rgba(246,246,246, 0.88);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.sched-side-note {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255, 0.1);
  color: rgba(246,246,246, 0.4);
  font-size: 10px;
  line-height: 1.55;
}

.sched-confirm-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1000px, calc(100% - 48px));
  margin: 0 auto;
  padding: 21px 0 0;
  color: var(--s-muted-soft);
  font-size: 10px;
}
.sched-confirm-footer a { color: var(--s-muted); text-decoration: none; }
.sched-confirm-footer a:hover { color: var(--s-ink); }

/* --------------------------------------------------------------- dashboard */

.sched-page--dashboard { background: #f1f1eb; }

.sched-dash-nav {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.sched-dash-nav__links { display: flex; align-items: center; gap: 22px; font-size: 12px; color: var(--s-muted); }
.sched-dash-nav__links a { text-decoration: none; }
.sched-dash-nav__links a:hover { color: var(--s-ink); }
.sched-account-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 230px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--s-line);
  border-radius: 999px;
  background: rgba(255,255,255, 0.42);
  font-size: 11px;
}
.sched-account-chip__avatar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--s-ink);
  color: #ffffff;
  font-size: 9px;
  font-weight: 600;
}
.sched-account-chip__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--s-ink-soft); }

.sched-dash-wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 12px 0 68px; }

.sched-dash-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.65fr);
  gap: 30px;
  min-height: 260px;
  padding: 38px 42px;
  border-radius: var(--s-radius);
  background:
    radial-gradient(ellipse 65% 90% at 105% 0%, rgba(229,229,229, 0.2), transparent 62%),
    #161814;
  color: #f6f7f1;
  box-shadow: 0 20px 50px rgba(26,26,26, 0.12);
}
.sched-dash-hero::after {
  content: "✳";
  position: absolute;
  right: 39%;
  bottom: -24px;
  color: rgba(229,229,229, 0.12);
  font-size: 190px;
  line-height: 1;
  transform: rotate(13deg);
  pointer-events: none;
}
.sched-dash-hero__copy { position: relative; z-index: 1; align-self: center; }
.sched-dash-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: rgba(246,246,246, 0.42);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sched-dash-eyebrow .sched-live-dot { width: 5px; height: 5px; }
.sched-dash-title {
  max-width: 600px;
  margin: 0 0 13px;
  color: #ffffff;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 300;
  line-height: 0.94;
  letter-spacing: -0.065em;
}
.sched-dash-title em { color: var(--s-accent); font-style: normal; }
.sched-dash-lead {
  max-width: 485px;
  margin: 0 0 22px;
  color: rgba(246,246,246, 0.52);
  font-size: 13px;
  line-height: 1.55;
}
.sched-dash-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sched-dash-hero .sched-btn--accent { background: var(--s-accent); color: var(--s-ink); }
.sched-dash-hero .sched-btn--ghost {
  border-color: rgba(255,255,255, 0.18);
  background: rgba(255,255,255, 0.04);
  color: rgba(246,246,246, 0.85);
}
.sched-dash-hero .sched-btn--ghost:hover { background: rgba(255,255,255, 0.1); }

.sched-dash-preview {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: end;
  width: min(100%, 300px);
  padding: 17px;
  border: 1px solid rgba(255,255,255, 0.12);
  border-radius: 16px;
  background: rgba(255,255,255, 0.055);
  backdrop-filter: blur(8px);
}
.sched-preview-top { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.sched-preview-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--s-accent);
  color: var(--s-ink);
  font-size: 10px;
  font-weight: 600;
}
.sched-preview-name { margin: 0; color: #ffffff; font-size: 11px; }
.sched-preview-role { margin: 1px 0 0; color: rgba(246,246,246, 0.38); font-size: 9px; }
.sched-preview-card {
  padding: 14px;
  border-radius: 10px;
  background: rgba(12,12,12, 0.4);
}
.sched-preview-label { margin: 0 0 4px; color: var(--s-accent); font-size: 8px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.sched-preview-title { margin: 0 0 5px; color: #ffffff; font-size: 14px; font-weight: 500; letter-spacing: -0.02em; }
.sched-preview-meta { margin: 0; color: rgba(246,246,246, 0.4); font-size: 9px; }
.sched-preview-days { display: flex; gap: 3px; margin-top: 12px; }
.sched-preview-days span { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255, 0.12); }
.sched-preview-days span.is-on { background: var(--s-accent); }

.sched-dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 15px;
  border: 1px solid var(--s-line);
  border-radius: 16px;
  background: var(--s-card);
  overflow: hidden;
}
.sched-stat { padding: 17px 20px; border-right: 1px solid var(--s-line); }
.sched-stat:last-child { border-right: 0; }
.sched-stat__label { display: block; margin-bottom: 5px; color: var(--s-muted-soft); font-size: 9px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.sched-stat__value { display: flex; align-items: baseline; gap: 7px; font-size: 22px; font-weight: 400; letter-spacing: -0.04em; }
.sched-stat__value small { color: var(--s-muted-soft); font-size: 10px; letter-spacing: 0; }
.sched-stat__value .sched-stat-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--s-accent-deep); }

.sched-dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 16px;
  margin-top: 16px;
  align-items: stretch;
}
.sched-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--s-line);
  border-radius: 16px;
  background: var(--s-card);
  overflow: hidden;
}
.sched-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--s-line);
}
.sched-panel__title { margin: 0; font-size: 14px; font-weight: 500; letter-spacing: -0.02em; }
.sched-panel__count {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--s-soft);
  color: var(--s-muted);
  font-size: 9px;
  vertical-align: 1px;
}
.sched-panel__action {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--s-muted);
  font-size: 10px;
  cursor: pointer;
}
.sched-panel__action:hover { color: var(--s-ink); text-decoration: underline; text-underline-offset: 3px; }

.sched-event-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 8px;
}
.sched-event-item {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  gap: 13px;
  padding: 14px;
  border-radius: 11px;
  transition: background 0.18s;
}
.sched-event-item + .sched-event-item { border-top: 1px solid var(--s-line); border-radius: 0; }
.sched-event-item:hover { background: rgba(233,233,233, 0.48); }
.sched-event-swatch {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--s-accent-deep);
}
.sched-event-swatch.is-off { background: var(--s-muted-soft); opacity: 0.45; }
.sched-event-copy { min-width: 0; flex: 1; }
.sched-event-title-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.sched-event-name { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: -0.015em; }
.sched-event-link { margin: 3px 0 0; color: var(--s-muted-soft); font-size: 10px; overflow-wrap: anywhere; }
.sched-event-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.sched-event-actions .sched-text-link { font-size: 10px; }
.sched-event-more {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--s-line);
  border-radius: 50%;
  background: transparent;
  color: var(--s-muted);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.sched-event-more:hover { background: var(--s-soft); color: var(--s-ink); }
.sched-mini-badge {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--s-soft);
  color: var(--s-muted);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.sched-mini-badge--on { background: rgba(89,89,89, 0.08); color: var(--s-success); }
.sched-mini-badge--off { background: rgba(111,111,111, 0.08); color: var(--s-muted-soft); }
.sched-event-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 13px 22px;
  border-top: 1px solid var(--s-line);
  color: var(--s-muted-soft);
  font-size: 9px;
}
.sched-event-footer .sched-live-dot { width: 4px; height: 4px; background: var(--s-success); box-shadow: none; }

.sched-booking-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 4px 0;
  max-height: 470px;
  overflow: auto;
}
.sched-booking-item { display: flex; flex: 0 0 auto; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--s-line); }
.sched-booking-item:last-child { border-bottom: 0; }
.sched-booking-datebox {
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  min-height: 44px;
  border-radius: 9px;
  background: var(--s-soft);
  text-align: center;
}
.sched-booking-datebox b { font-size: 14px; font-weight: 600; line-height: 1; }
.sched-booking-datebox span { color: var(--s-muted); font-size: 8px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.sched-booking-copy { min-width: 0; flex: 1; }
.sched-booking-title-row { display: flex; align-items: center; gap: 6px; }
.sched-booking-name { margin: 0; font-size: 12px; font-weight: 500; }
.sched-booking-meta { margin: 3px 0 0; color: var(--s-muted); font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.sched-email-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--s-muted-soft);
}
.sched-email-dot.is-sent { background: var(--s-success); }
.sched-email-dot.is-off { background: var(--s-muted-soft); opacity: 0.55; }
.sched-email-dot.is-failed { background: var(--s-danger); }
.sched-booking-open {
  display: inline-block;
  margin-top: 7px;
  color: var(--s-muted);
  font-size: 9px;
  text-decoration: none;
}
.sched-booking-open:hover { color: var(--s-ink); text-decoration: underline; text-underline-offset: 3px; }
.sched-booking-status {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(89,89,89, 0.08);
  color: var(--s-success);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.sched-booking-status.is-cancelled { background: rgba(92,92,92, 0.07); color: var(--s-danger); }
.sched-empty {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 42px 24px;
  text-align: center;
  color: var(--s-muted-soft);
}
.sched-empty__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  border: 1px solid var(--s-line);
  border-radius: 50%;
  color: var(--s-muted);
  font-size: 16px;
}
.sched-empty p { margin: 0 auto; max-width: 260px; font-size: 11px; line-height: 1.55; }
.sched-empty .sched-btn { margin-top: 16px; }

.sched-smtp-note {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 13px 16px;
  border: 1px solid rgba(196,196,196, 0.44);
  border-radius: 10px;
  background: rgba(229,229,229, 0.12);
  color: var(--s-ink-soft);
  font-size: 10px;
  line-height: 1.5;
}
.sched-smtp-note strong { font-weight: 600; }

.sched-guest-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 16px;
  margin-top: 16px;
}
.sched-guest-card { padding: 30px; }
.sched-guest-card h2 { max-width: 430px; margin: 0 0 13px; font-size: 31px; font-weight: 400; line-height: 1; letter-spacing: -0.05em; }
.sched-guest-card p { max-width: 470px; margin: 0 0 20px; color: var(--s-muted); font-size: 12px; line-height: 1.55; }
.sched-demo-preview { padding: 27px; background: #161814; color: #f6f7f1; }
.sched-demo-preview h3 { margin: 0 0 7px; color: #ffffff; font-size: 17px; font-weight: 500; letter-spacing: -0.03em; }
.sched-demo-preview p { margin: 0 0 16px; color: rgba(246,246,246, 0.42); font-size: 10px; line-height: 1.55; }
.sched-demo-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
  padding: 10px 11px;
  border: 1px solid rgba(255,255,255, 0.12);
  border-radius: 8px;
  background: rgba(255,255,255, 0.04);
  color: rgba(246,246,246, 0.75);
  font-family: var(--s-mono);
  font-size: 10px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.sched-demo-link:hover { border-color: rgba(229,229,229, 0.4); color: #ffffff; }

/* ------------------------------------------------------------------ dialog */

.sched-dialog {
  width: min(640px, calc(100% - 32px));
  max-height: calc(100vh - 42px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--s-line-strong);
  border-radius: 20px;
  background: var(--s-card);
  color: var(--s-ink);
  box-shadow: 0 40px 120px rgba(22,22,22, 0.32);
}
.sched-dialog::backdrop { background: rgba(22,22,22, 0.45); backdrop-filter: blur(3px); }
.sched-dialog[open] { animation: sched-dialog-in 0.25s var(--s-ease) both; }
@keyframes sched-dialog-in {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.sched-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px 17px;
  border-bottom: 1px solid var(--s-line);
}
.sched-dialog__head h2 { margin: 0 0 3px; font-size: 21px; font-weight: 500; letter-spacing: -0.04em; }
.sched-dialog__head p { margin: 0; color: var(--s-muted); font-size: 10px; }
.sched-dialog__close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--s-line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.sched-dialog__close:hover { background: var(--s-soft); }
.sched-dialog__body { max-height: calc(100vh - 200px); overflow: auto; padding: 21px 26px 24px; }
.sched-dialog__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 15px 26px;
  border-top: 1px solid var(--s-line);
  background: rgba(233,233,233, 0.3);
}

.sched-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.sched-form-row--three { grid-template-columns: 1.25fr 1fr 1fr; }
.sched-form .sched-field { margin-bottom: 14px; }
.sched-form .sched-field > span { font-size: 10px; }
.sched-form .sched-field input,
.sched-form .sched-field select,
.sched-form .sched-field textarea { font-size: 12px; padding: 9px 11px; }
.sched-form .sched-field select {
  appearance: none;
  background: var(--s-white)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%23151713' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 10px center;
}
.sched-slug-field { position: relative; }
.sched-slug-field .sched-slug-prefix {
  position: absolute;
  left: 11px;
  bottom: 10px;
  color: var(--s-muted-soft);
  font-family: var(--s-mono);
  font-size: 10px;
  pointer-events: none;
}
.sched-slug-field input { padding-left: 100px; font-family: var(--s-mono); font-size: 11px !important; }
.sched-form .sched-slug-field input { padding-left: 96px; }
.sched-day-picker { display: flex; gap: 5px; flex-wrap: wrap; }
.sched-day-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 30px;
  border: 1px solid var(--s-line);
  border-radius: 7px;
  background: var(--s-white);
  color: var(--s-muted);
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
}
.sched-day-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.sched-day-toggle:has(input:checked) { border-color: var(--s-ink); background: var(--s-ink); color: #ffffff; }
.sched-day-toggle:focus-within { outline: 2px solid var(--s-ink); outline-offset: 2px; }
.sched-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0 4px;
  border-top: 1px solid var(--s-line);
}
.sched-toggle-row p { margin: 0; font-size: 11px; font-weight: 500; }
.sched-toggle-row small { display: block; margin-top: 2px; color: var(--s-muted-soft); font-size: 9px; font-weight: 400; }
.sched-switch { position: relative; flex: 0 0 auto; width: 34px; height: 20px; }
.sched-switch input { position: absolute; opacity: 0; }
.sched-switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--s-soft);
  cursor: pointer;
  transition: background 0.18s;
}
.sched-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0, 0.15);
  transition: transform 0.18s var(--s-ease);
}
.sched-switch input:checked + span { background: var(--s-ink); }
.sched-switch input:checked + span::after { transform: translateX(14px); }
.sched-switch input:focus-visible + span { outline: 2px solid var(--s-ink); outline-offset: 2px; }
.sched-form-note { margin: 4px 0 0; color: var(--s-muted-soft); font-size: 9px; }

/* -------------------------------------------------------------- Slack alerts */

.sched-slack-panel { margin-top: 16px; }
.sched-slack-title-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 6px;
  border: 1px solid var(--s-line);
  border-radius: 7px;
  color: var(--s-muted);
  vertical-align: -7px;
}
.sched-slack-badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(89,89,89, 0.08);
  color: var(--s-success);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sched-slack-badge.is-off {
  background: var(--s-soft);
  color: var(--s-muted);
}
.sched-slack-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 24px;
  padding: 22px;
  align-items: center;
}
.sched-slack-copy { min-width: 0; }
.sched-slack-loading { margin: 0; color: var(--s-muted); font-size: 11px; }
.sched-slack-lead {
  max-width: 460px;
  margin: 0 0 16px;
  color: var(--s-muted);
  font-size: 12px;
  line-height: 1.55;
}
.sched-slack-state {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 14px;
}
.sched-slack-state__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--s-line);
  border-radius: 9px;
  color: var(--s-muted);
}
.sched-slack-state__icon.is-on {
  border-color: rgba(89,89,89, 0.28);
  background: rgba(89,89,89, 0.07);
  color: var(--s-success);
}
.sched-slack-state__copy { min-width: 0; }
.sched-slack-state__title { margin: 0 0 2px; font-size: 12px; font-weight: 500; }
.sched-slack-state__url {
  margin: 0;
  color: var(--s-muted-soft);
  font-family: var(--s-mono);
  font-size: 9px;
  overflow-wrap: anywhere;
}
.sched-slack-state__line {
  margin: 4px 0 0;
  color: var(--s-muted-soft);
  font-size: 9px;
  line-height: 1.45;
}
.sched-slack-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sched-slack-actions .sched-btn { min-height: 34px; padding: 0 13px; font-size: 10px; }
.sched-slack-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--s-muted);
  font-size: 9px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sched-slack-link:hover { color: var(--s-ink); }
.sched-slack-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  color: var(--s-muted-soft);
  font-size: 9px;
}
.sched-slack-status.is-ok { color: var(--s-success); }
.sched-slack-status.is-error { color: var(--s-danger); }
.sched-slack-preview {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255,255,255, 0.1);
  border-radius: 12px;
  background: #0b0b0d;
  color: #f2f3f5;
  box-shadow: 0 10px 24px rgba(0,0,0, 0.15);
}
.sched-slack-preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255, 0.09);
}
.sched-slack-channel { color: #d6d6d6; font-size: 10px; font-weight: 600; }
.sched-slack-app {
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(255,255,255, 0.1);
  color: #949494;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.sched-slack-message { display: flex; gap: 10px; padding-top: 13px; }
.sched-slack-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #f2f3f5;
  color: #08090b;
  font-size: 10px;
  font-weight: 700;
}
.sched-slack-message__body { min-width: 0; }
.sched-slack-message__meta {
  margin: 0 0 6px;
  color: #949494;
  font-size: 8px;
  line-height: 1.3;
}
.sched-slack-message__meta strong { color: #f2f3f5; font-size: 9px; }
.sched-slack-message__time { margin-left: 4px; color: #707070; }
.sched-slack-message__title { margin: 0 0 8px; color: #f2f3f5; font-size: 11px; font-weight: 600; line-height: 1.3; }
.sched-slack-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 12px;
  margin-bottom: 10px;
}
.sched-slack-fields p { margin: 0; }
.sched-slack-fields span { display: block; color: #707070; font-size: 7px; text-transform: uppercase; letter-spacing: 0.08em; }
.sched-slack-fields b { display: block; margin-top: 2px; color: #d6d6d6; font-size: 8px; font-weight: 500; line-height: 1.35; }
.sched-slack-buttons { display: flex; gap: 5px; flex-wrap: wrap; }
.sched-slack-buttons span {
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255, 0.16);
  border-radius: 4px;
  color: #d6d6d6;
  font-size: 8px;
  font-weight: 600;
}
.sched-slack-buttons span:first-child { background: #f2f3f5; color: #08090b; border-color: #f2f3f5; }
.sched-slack-message__footer { margin: 9px 0 0; color: #707070; font-size: 7px; }
.sched-slack-help {
  margin-bottom: 15px;
  padding: 11px 12px;
  border: 1px solid var(--s-line);
  border-radius: 9px;
  background: rgba(255,255,255, 0.02);
}
.sched-slack-help p { margin: 0 0 5px; color: var(--s-muted); font-size: 10px; line-height: 1.5; }
.sched-slack-help code { font-family: var(--s-mono); font-size: 9px; color: var(--s-ink-soft); }
.sched-slack-help a { color: var(--s-ink); font-size: 9px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.sched-slack-hint { display: block; margin-top: 5px; color: var(--s-muted-soft); font-size: 9px; line-height: 1.45; }
.sched-slack-fixed-event {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: var(--s-ink-soft);
  font-size: 11px;
}
.sched-slack-fixed-event svg { color: var(--s-success); }
.sched-slack-copy .sched-empty { padding: 8px 0; text-align: left; }
.sched-slack-copy .sched-empty__mark { margin: 0 0 9px; }

/* ------------------------------------------------------------------- error */

.sched-error-wrap {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 60px 0 40px;
}
.sched-error-card {
  padding: 46px 44px;
  border: 1px solid var(--s-line);
  border-radius: var(--s-radius);
  background: var(--s-card);
  box-shadow: var(--s-shadow-soft, 0 12px 32px rgba(42,42,42, 0.08));
  animation: sched-rise 0.5s var(--s-ease) both;
}
.sched-error-code {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--s-muted-soft);
  font-family: var(--s-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
}
.sched-error-card h1 {
  max-width: 470px;
  margin: 0 0 13px;
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.055em;
}
.sched-error-card p {
  max-width: 500px;
  margin: 0 0 24px;
  color: var(--s-muted);
  font-size: 13px;
  line-height: 1.6;
}
.sched-error-wrap .sched-confirm-footer { width: 100%; }

/* ---------------------------------------------------------------- utilities */

.sched-hidden { display: none !important; }
.sched-muted { color: var(--s-muted); }
.sched-mono { font-family: var(--s-mono); }

/* ------------------------------------------------------------- responsive */

@media (max-width: 1040px) {
  .sched-booking-shell { grid-template-columns: 340px minmax(0, 1fr); }
  .sched-host-panel { padding: 34px 30px 28px; }
  .sched-flow { padding: 27px 28px 20px; }
  .sched-calendar-layout { grid-template-columns: minmax(0, 1fr) 190px; gap: 18px; }
  .sched-slots-panel { padding-left: 17px; }
  .sched-dash-grid { grid-template-columns: 1fr; }
  .sched-dash-hero { grid-template-columns: minmax(0, 1.2fr) minmax(210px, 0.6fr); }
}

@media (max-width: 860px) {
  .sched-booking-shell { grid-template-columns: 1fr; }
  .sched-host-panel { padding: 28px 28px 25px; }
  .sched-host-topline { margin-bottom: 26px; }
  .sched-host { display: flex; align-items: center; gap: 11px; margin-bottom: 19px; }
  .sched-host .sched-avatar { width: 40px; height: 40px; margin: 0; font-size: 12px; }
  .sched-host__name { font-size: 14px; }
  .sched-host__role { font-size: 10px; }
  .sched-event-title { max-width: 540px; font-size: clamp(31px, 7vw, 42px); margin-bottom: 15px; }
  .sched-event-meta { margin-bottom: 16px; }
  .sched-event-description { max-width: 620px; margin-bottom: 16px; }
  .sched-host-note { max-width: none; padding-top: 15px; }
  .sched-host-panel__footer { padding-top: 22px; }
  .sched-flow { padding: 25px 25px 20px; }
  .sched-calendar-layout { grid-template-columns: 1fr; }
  .sched-slots-panel { padding: 17px 0 0; border-top: 1px solid var(--s-line); border-left: 0; }
  .sched-slots-scroll { max-height: 240px; }
  .sched-slot-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sched-confirm-shell { grid-template-columns: 1fr; }
  .sched-confirm-side { padding: 30px 34px; }
  .sched-confirm-side .sched-side-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
  .sched-dash-hero { grid-template-columns: 1fr; }
  .sched-dash-preview { justify-self: stretch; width: 100%; }
  .sched-dash-hero::after { right: -10px; bottom: -20px; font-size: 140px; }
  .sched-guest-panel { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .sched-public-nav { width: calc(100% - 32px); padding: 20px 0 14px; }
  .sched-nav-label { display: none; }
  .sched-public-nav__right { gap: 14px; font-size: 11px; }
  .sched-booking-wrap { width: calc(100% - 24px); padding: 2px 0 34px; }
  .sched-booking-shell { border-radius: 19px; min-height: 0; }
  .sched-host-panel { padding: 23px 21px 22px; }
  .sched-host-topline { margin-bottom: 22px; font-size: 9px; }
  .sched-event-title { font-size: clamp(29px, 8.6vw, 38px); }
  .sched-event-description { font-size: 12px; }
  .sched-host-note { font-size: 10px; }
  .sched-host-panel__footer { display: none; }
  .sched-art-spark { display: none; }
  .sched-flow { padding: 21px 17px 17px; }
  .sched-flow-head { display: block; margin-bottom: 22px; }
  .sched-steps { margin-bottom: 15px; }
  .sched-tz { align-items: flex-start; min-width: 0; }
  .sched-tz select { width: 100%; font-size: 11px; }
  .sched-view-head { display: block; margin-bottom: 16px; }
  .sched-view-hint { margin-top: 5px; }
  .sched-calendar-card { padding: 14px 12px 13px; }
  .sched-calendar-grid { gap: 1px; }
  .sched-day { aspect-ratio: 1.18 / 1; font-size: 11px; min-height: 30px; }
  .sched-slot-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sched-slots-scroll { max-height: none; overflow: visible; }
  .sched-field-grid { grid-template-columns: 1fr; gap: 0; }
  .sched-form-submit { display: block; }
  .sched-form-submit .sched-btn { width: 100%; }
  .sched-form-submit .sched-fineprint { margin-top: 10px; max-width: none; }
  .sched-flow-footer { font-size: 8px; padding-top: 18px; }
  .sched-fineprint { margin-top: 17px; }
  .sched-confirm-wrap { width: calc(100% - 24px); padding-top: 2px; }
  .sched-confirm-shell { border-radius: 19px; }
  .sched-confirm-main { padding: 27px 21px 28px; }
  .sched-confirm-title { font-size: 38px; }
  .sched-when-block { padding: 17px; }
  .sched-when-date { font-size: 19px; }
  .sched-confirm-side { padding: 26px 21px; }
  .sched-confirm-side .sched-side-list { grid-template-columns: 1fr; }
  .sched-next ol { grid-template-columns: 1fr; gap: 10px; }
  .sched-confirm-footer { width: calc(100% - 32px); flex-wrap: wrap; gap: 8px; }
  .sched-dash-nav { width: calc(100% - 28px); padding: 14px 0; }
  .sched-dash-nav__links { gap: 10px; }
  .sched-dash-nav__links a:first-child { display: none; }
  .sched-dash-nav__links a[href="/"] { display: none; }
  .sched-dash-wrap { width: calc(100% - 24px); padding-top: 6px; }
  .sched-dash-hero { padding: 27px 21px; border-radius: 19px; gap: 24px; }
  .sched-dash-preview { display: none; }
  .sched-dash-title { font-size: 42px; }
  .sched-dash-stats { grid-template-columns: 1fr; }
  .sched-stat { border-right: 0; border-bottom: 1px solid var(--s-line); }
  .sched-stat:last-child { border-bottom: 0; }
  .sched-dash-grid { gap: 12px; }
  .sched-slack-body { grid-template-columns: 1fr; gap: 18px; padding: 16px; }
  .sched-panel { border-radius: 14px; }
  .sched-panel__head { padding: 16px 16px 13px; }
  .sched-event-list { padding: 6px; }
  .sched-event-item { padding: 12px 10px; }
  .sched-event-footer { padding: 11px 16px; }
  .sched-booking-item { padding: 12px 14px; }
  .sched-guest-card { padding: 22px; }
  .sched-guest-card h2 { font-size: 27px; }
  .sched-dialog__head { padding: 19px 18px 14px; }
  .sched-dialog__body { padding: 17px 18px 19px; }
  .sched-dialog__footer { padding: 12px 18px; }
  .sched-error-wrap { width: calc(100% - 28px); padding-top: 28px; }
  .sched-error-card { padding: 28px 21px; border-radius: 19px; }
  .sched-form-row, .sched-form-row--three { grid-template-columns: 1fr; gap: 0; }
  .sched-slug-field .sched-slug-prefix { bottom: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body.sched-page--dashboard .sched-slack-preview { background: #08090b; }
body.sched-page--dashboard .sched-slack-badge { background: rgba(255,255,255, 0.1); color: #c6c6c6; }
body.sched-page--dashboard .sched-slack-badge.is-off { background: rgba(255,255,255, 0.05); color: #949494; }
body.sched-page--dashboard .sched-slack-state__icon { border-color: rgba(255,255,255, 0.14); color: #949494; }
body.sched-page--dashboard .sched-slack-state__icon.is-on { border-color: rgba(255,255,255, 0.28); background: rgba(255,255,255, 0.08); color: #f2f3f5; }
body.sched-page--dashboard .sched-slack-help { border-color: rgba(255,255,255, 0.12); background: rgba(255,255,255, 0.03); }
body.sched-page--dashboard .sched-slack-help a { color: #f2f3f5; }
body.sched-page--dashboard .sched-slack-help code { color: #c6c6c6; }
body.sched-page--dashboard .sched-slack-status.is-ok { color: #f2f3f5; }
body.sched-page--dashboard .sched-slack-status.is-error { color: #c6c6c6; }
