.sched-public {
  --sched-ink: #0a2540;
  --sched-muted: #64748b;
  --sched-border: #e6e9ef;
  --sched-accent: #0069ff;
  --sched-accent-soft: #e6f0ff;
  --sched-accent-hover: #0052cc;
  --sched-success: #0d9488;
  --sched-success-bg: #ccfbf1;
  --sched-page: #f5f7fa;
  min-height: 100vh;
  background: var(--sched-page);
  font-family: "Source Sans 3", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--sched-ink);
  padding: 40px 20px 72px;
  box-sizing: border-box;
}

.sched-public *,
.sched-public *::before,
.sched-public *::after {
  box-sizing: border-box;
}

.sched-public-shell {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--sched-border);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 40px rgba(15, 23, 42, 0.06);
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  min-height: 560px;
  overflow: hidden;
}

@media (max-width: 820px) {
  .sched-public-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}

.sched-public-aside {
  padding: 36px 32px;
  border-right: 1px solid var(--sched-border);
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  min-height: 100%;
}

.sched-public-aside-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
}

.sched-public-aside-logo {
  margin-top: auto;
  padding-top: 8px;
  max-width: 160px;
}

.sched-public-aside-logo img {
  display: block;
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 820px) {
  .sched-public-aside {
    border-right: none;
    border-bottom: 1px solid var(--sched-border);
    padding-bottom: 28px;
  }

  .sched-public-aside-logo {
    margin-top: 4px;
  }
}

.sched-public-avatar,
.sched-public-avatar-img {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  flex-shrink: 0;
  object-fit: cover;
}

.sched-public-avatar {
  background: linear-gradient(145deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sched-public-avatar-img {
  display: block;
  border: 1px solid var(--sched-border);
  background: #f1f5f9;
}

.sched-public-host {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--sched-muted);
  margin: 0;
}

.sched-public-brand {
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
}

.sched-public-aside h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 4px 0 2px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--sched-ink);
}

.sched-public-meta-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.sched-public-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--sched-accent);
  margin: 0;
}

.sched-public-meta svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.9;
}

.sched-public-meta.is-muted {
  color: var(--sched-muted);
  font-weight: 400;
}

.sched-public-desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.55;
  margin: 8px 0 0;
}

.sched-public-main {
  padding: 36px 36px 40px;
  min-width: 0;
}

.sched-public-main h2 {
  margin: 0 0 28px;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sched-ink);
}

.sched-back {
  border: none;
  background: none;
  color: var(--sched-accent);
  cursor: pointer;
  padding: 0;
  margin: 0 0 8px;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
}

.sched-back:hover {
  color: var(--sched-accent-hover);
}

.sched-back-circle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--sched-border);
  background: #fff;
  color: var(--sched-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  margin-bottom: 4px;
  padding: 0;
}

.sched-back-circle:hover {
  border-color: var(--sched-accent);
  color: var(--sched-accent);
}

.sched-eyebrow {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sched-accent);
}

.sched-former-time {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sched-former-time-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sched-muted);
}

.sched-former-time.is-struck .sched-public-meta span,
.sched-former-time.is-struck .sched-public-meta {
  text-decoration: line-through;
  color: var(--sched-muted);
  font-weight: 400;
}

.sched-former-time.is-struck .sched-former-time-label {
  text-decoration: none;
}

.sched-powered {
  position: absolute;
  top: 0;
  right: 0;
  background: #334155;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px 7px 18px;
  border-bottom-left-radius: 8px;
  z-index: 2;
  pointer-events: none;
}

.sched-public-footer {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 20px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px 8px;
}

.sched-public-footer-logo img {
  display: block;
  max-height: 36px;
  max-width: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.sched-public-footer-text {
  margin: 0;
  max-width: 42rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.sched-public-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
}

.sched-public-footer-links a {
  color: #64748b;
  text-decoration: none;
}

.sched-public-footer-links a:hover {
  color: #0f172a;
  text-decoration: underline;
}

.sched-location-fieldset {
  margin: 4px 0 0;
  padding: 0;
  border: none;
  min-width: 0;
}

.sched-location-fieldset legend {
  padding: 0;
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sched-ink);
}

.sched-location-options {
  display: grid;
  gap: 10px;
}

.sched-location-option {
  border: 1px solid var(--sched-border);
  border-radius: 8px;
  padding: 10px 12px;
}

.sched-location-option-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

.sched-location-option-label svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--sched-accent);
}

.sched-location-nested {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--sched-border);
  display: grid;
  gap: 6px;
}

.sched-location-nested label {
  margin: 0;
}

/* Event list (host landing) */
.sched-event-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sched-event-list a {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--sched-border);
  border-left: 4px solid var(--sched-accent);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sched-event-list a:hover {
  background: var(--sched-accent-soft);
  border-color: #bfdbfe;
  box-shadow: 0 2px 8px rgba(0, 105, 255, 0.06);
}

.sched-event-list strong {
  display: block;
  font-size: 1.05rem;
}

.sched-event-list span {
  font-size: 0.85rem;
  color: var(--sched-muted);
}

/* Date picker */
.sched-picker {
  display: grid;
  grid-template-columns: minmax(280px, 320px) 1fr;
  gap: 32px;
  align-items: start;
}

.sched-picker.is-calendar-only {
  grid-template-columns: minmax(280px, 340px);
  justify-content: start;
}

@media (max-width: 640px) {
  .sched-picker,
  .sched-picker.is-calendar-only {
    grid-template-columns: 1fr;
  }
}

.sched-cal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 8px;
}

.sched-cal-nav strong {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sched-ink);
}

.sched-cal-nav-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 999px;
  color: var(--sched-ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  line-height: 1;
  transition: background 0.12s ease;
}

.sched-cal-nav-btn:hover {
  background: #f1f5f9;
}

.sched-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px 4px;
  text-align: center;
  font-size: 0.9rem;
}

.sched-cal-head {
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 8px 0;
  text-transform: none;
}

.sched-cal-day {
  position: relative;
  border: none;
  background: transparent;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  margin: 0 auto;
  cursor: pointer;
  color: #cbd5e1;
  font: inherit;
  font-weight: 500;
  transition: background 0.12s ease, color 0.12s ease;
}

.sched-cal-day:disabled {
  color: #cbd5e1;
  cursor: default;
  background: transparent;
}

.sched-cal-day.is-available {
  font-weight: 600;
  color: var(--sched-accent);
  background: var(--sched-accent-soft);
}

.sched-cal-day.is-available:hover {
  background: #d6e7ff;
}

.sched-cal-day.is-today:not(.is-selected)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--sched-accent);
  transform: translateX(-50%);
}

.sched-cal-day.is-selected {
  background: var(--sched-accent);
  color: #fff;
  font-weight: 700;
}

.sched-cal-day.is-selected:hover {
  background: var(--sched-accent-hover);
}

.sched-timezone {
  position: relative;
  margin-top: 28px;
  padding-top: 4px;
}

.sched-timezone-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sched-ink);
  margin-bottom: 8px;
}

.sched-timezone-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: #f2f4f7;
  color: var(--sched-ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

.sched-timezone-trigger:hover {
  background: #e8ebf0;
}

.sched-timezone-trigger svg {
  width: 18px;
  height: 18px;
  color: var(--sched-muted);
  flex-shrink: 0;
}

.sched-timezone-trigger-text {
  min-width: 0;
}

.sched-timezone-caret {
  margin-left: 2px;
  color: var(--sched-muted);
  font-size: 0.75rem;
  line-height: 1;
}

.sched-timezone-popover {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 40;
  width: min(360px, calc(100vw - 32px));
  max-height: min(360px, 55vh);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.16);
  overflow: hidden;
}

.sched-timezone-popover-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid #eef0f3;
}

.sched-timezone-search {
  position: relative;
  display: block;
}

.sched-timezone-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sched-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.sched-timezone-search input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 12px 9px 30px;
  border: 1px solid #cfd6e0;
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  outline: none;
}

.sched-timezone-search input:focus {
  border-color: var(--sched-accent, #0069ff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sched-accent, #0069ff) 20%, transparent);
}

.sched-timezone-format {
  display: inline-flex;
  align-self: flex-end;
  border: 1px solid #d7dde7;
  border-radius: 999px;
  overflow: hidden;
}

.sched-timezone-format button {
  border: 0;
  background: transparent;
  padding: 5px 10px;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sched-muted);
  cursor: pointer;
}

.sched-timezone-format button.is-active {
  background: var(--sched-accent, #0069ff);
  color: #fff;
}

.sched-timezone-list {
  overflow: auto;
  padding: 6px 0 10px;
}

.sched-timezone-group-label {
  padding: 10px 14px 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sched-muted);
}

.sched-timezone-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sched-timezone-group button {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: transparent;
  padding: 9px 14px;
  font: inherit;
  font-size: 0.9rem;
  color: var(--sched-ink);
  cursor: pointer;
  text-align: left;
}

.sched-timezone-group button:hover,
.sched-timezone-group button.is-selected {
  background: color-mix(in srgb, var(--sched-accent, #0069ff) 10%, #fff);
}

.sched-timezone-option-label {
  min-width: 0;
}

.sched-timezone-option-clock {
  flex-shrink: 0;
  color: var(--sched-muted);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
}

.sched-timezone-empty {
  margin: 0;
  padding: 16px;
  color: var(--sched-muted);
  font-size: 0.9rem;
}

.sched-slots-pane {
  min-width: 0;
}

.sched-slots-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sched-ink);
  margin: 0 0 14px;
}

.sched-slots-empty {
  color: var(--sched-muted);
  font-size: 0.95rem;
  margin: 48px 0 0;
  line-height: 1.45;
}

.sched-slot-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.sched-slot {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.sched-slot button.time {
  flex: 1 1;
  border: 1px solid #93c5fd;
  background: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--sched-accent);
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.sched-slot button.time:hover {
  background: var(--sched-accent-soft);
}

.sched-slot button.time.is-selected {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: var(--sched-ink);
  flex: 0 1 55%;
}

.sched-slot button.next {
  border: none;
  background: var(--sched-accent);
  color: #fff;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  flex: 1 1;
}

.sched-slot button.next:hover {
  background: var(--sched-accent-hover);
}

/* Form */
.sched-form label:not(.sched-sms-optin) {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 16px 0 6px;
  color: var(--sched-ink);
}

.sched-form input:not([type="checkbox"]):not([type="radio"]),
.sched-form textarea,
.sched-form select {
  width: 100%;
  border: 1px solid var(--sched-border);
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  color: var(--sched-ink);
  background: #fff;
}

.sched-form input:not([type="checkbox"]):not([type="radio"]):focus,
.sched-form textarea:focus,
.sched-form select:focus {
  outline: 2px solid rgba(0, 105, 255, 0.2);
  border-color: var(--sched-accent);
}

.sched-sms-optin {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--sched-border);
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--sched-ink);
}

.sched-sms-optin input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--sched-accent);
  cursor: pointer;
}

.sched-sms-optin-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.sched-sms-optin-title {
  font-weight: 600;
}

.sched-sms-optin-hint {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--sched-muted);
  line-height: 1.4;
}

.sched-form .btn-schedule,
.sched-confirm .btn-schedule {
  margin-top: 24px;
  width: 100%;
  border: none;
  background: var(--sched-accent);
  color: #fff;
  border-radius: 8px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.sched-form .btn-schedule:hover:not(:disabled),
.sched-confirm .btn-schedule:hover:not(:disabled) {
  background: var(--sched-accent-hover);
}

.sched-form .btn-schedule:disabled {
  opacity: 0.6;
  cursor: default;
}

.sched-confirm {
  text-align: center;
  padding: 48px 24px;
  max-width: 520px;
  margin: 0 auto;
}

.sched-confirm-check {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
}

.sched-confirm h1 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.sched-confirm-card {
  text-align: left;
  border: 1px solid var(--sched-border);
  border-radius: 10px;
  padding: 20px;
  margin-top: 24px;
}

.sched-cancel-confirm {
  max-width: 520px;
  margin: 48px auto 0;
  text-align: left;
}

.sched-cancel-confirm-host {
  margin: 0 0 28px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--sched-ink);
}

.sched-cancel-confirm-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 8px;
}

.sched-cancel-confirm-header .sched-confirm-check {
  margin: 2px 0 0;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
}

.sched-cancel-confirm-header h1 {
  margin: 0 0 6px;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sched-ink);
}

.sched-cancel-confirm-header p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--sched-muted);
  line-height: 1.45;
}

.sched-cancel-confirm .sched-confirm-card {
  margin-top: 28px;
}

.sched-public-meta.is-struck,
.sched-public-meta.is-struck span {
  text-decoration: line-through;
  color: var(--sched-muted);
  font-weight: 400;
}

.sched-public-meta.is-struck svg {
  opacity: 0.7;
}

.sched-sms-banner {
  background: var(--sched-success-bg);
  color: #115e59;
  padding: 10px 14px;
  border-radius: 8px 8px 0 0;
  font-weight: 600;
  font-size: 0.9rem;
}

.sched-error {
  color: #b91c1c;
  font-size: 0.9rem;
  margin-top: 12px;
}

.sched-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

.sched-link-btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--sched-accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.sched-link-btn.is-muted {
  background: #fff;
  color: var(--sched-ink);
  border: 1px solid var(--sched-border);
}

