/* Base look for the preview scheduler. Each design restyles it by setting these variables on
   [data-scheduler] (or any ancestor), and may add its own rules on the .sch-* classes. */
.sch {
  --sch-accent: #2f6b57; --sch-accent-ink: #ffffff; --sch-accent-soft: #e3eee8;
  --sch-ink: #1d2a2f; --sch-muted: #5d6b70; --sch-surface: #ffffff; --sch-bg: #f4f6f5;
  --sch-line: #d8dfdc; --sch-radius: 14px; --sch-radius-sm: 10px;
  --sch-font: inherit; --sch-display: inherit;
  font-family: var(--sch-font); color: var(--sch-ink);
  background: var(--sch-surface); border: 1px solid var(--sch-line); border-radius: var(--sch-radius);
  padding: clamp(16px, 2.6vw, 28px); display: grid; gap: 18px; text-align: left;
}
.sch *, .sch *::before, .sch *::after { box-sizing: border-box; }
.sch p { margin: 0; max-width: none; }
.sch :where(button) { font: inherit; color: inherit; cursor: pointer; }
.sch button:focus-visible, .sch input:focus-visible { outline: 3px solid var(--sch-accent); outline-offset: 2px; }
.sch-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding-bottom: 14px; border-bottom: 1px solid var(--sch-line); }
.sch-kicker { font-family: var(--sch-display); font-weight: 700; font-size: 1.15rem; }
.sch-tz { color: var(--sch-muted); font-size: .88rem; }
.sch-steps { display: grid; gap: 16px; }
.sch--split .sch-steps { grid-template-columns: auto 1fr; align-items: start; column-gap: 32px; }
.sch-label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sch-muted); margin-bottom: 8px; }
.sch-seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.sch-seg--small { margin-top: 10px; }
.sch-chip {
  border: 1.5px solid var(--sch-line); background: var(--sch-surface); border-radius: 999px;
  padding: 9px 16px; min-height: 44px; font-weight: 600; font-size: .95rem;
}
.sch-seg--small .sch-chip { min-height: 38px; padding: 6px 14px; font-size: .88rem; }
.sch-chip[aria-pressed="true"] { background: var(--sch-accent); border-color: var(--sch-accent); color: var(--sch-accent-ink); }
.sch-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.sch-type {
  display: grid; text-align: left; gap: 1px;
  border: 1.5px solid var(--sch-line); background: var(--sch-surface); border-radius: var(--sch-radius-sm); padding: 10px 14px;
}
.sch-type-name { font-weight: 700; font-size: .98rem; }
.sch-type-len { color: var(--sch-muted); font-size: .85rem; }
.sch-type[aria-pressed="true"] { border-color: var(--sch-accent); background: var(--sch-accent-soft); box-shadow: inset 0 0 0 1px var(--sch-accent); }
.sch-note { margin-top: 8px !important; color: var(--sch-muted); font-size: .92rem; }

.sch-body { display: grid; gap: 18px; }
.sch--split .sch-body { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.sch-cal { background: var(--sch-bg); border-radius: var(--sch-radius-sm); padding: 14px; }
.sch-cal.is-waiting .sch-grid { opacity: .55; }
.sch-cal-nav { display: grid; gap: 4px; margin-bottom: 8px; }
.sch-cal-navr { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sch-month { font-family: var(--sch-display); font-weight: 700; font-size: 1.1rem; }
.sch-nav-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--sch-line); background: var(--sch-surface); font-size: 1.3rem; line-height: 1; }
.sch-nav-btn:disabled { opacity: .35; cursor: default; }
.sch-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.sch-dow { text-align: center; font-size: .75rem; font-weight: 700; color: var(--sch-muted); padding: 4px 0; }
.sch-day {
  position: relative; height: clamp(40px, 4.2vw, 50px); border: 0; border-radius: var(--sch-radius-sm);
  background: transparent; display: grid; place-items: center; align-content: center; gap: 2px; padding: 0;
}
.sch-day-n { font-weight: 600; font-size: .95rem; line-height: 1; }
.sch-day:disabled { color: var(--sch-muted); opacity: .5; cursor: default; }
.sch-day.is-open { background: var(--sch-surface); box-shadow: inset 0 0 0 1px var(--sch-line); }
.sch-day.is-open:hover { box-shadow: inset 0 0 0 1.5px var(--sch-accent); }
.sch-day[aria-pressed="true"] { background: var(--sch-accent); color: var(--sch-accent-ink); box-shadow: none; }
.sch-day.is-today .sch-day-n { text-decoration: underline; text-underline-offset: 3px; }
.sch-day.is-holiday { text-decoration: line-through; }
.sch-day-dots { display: flex; gap: 2px; height: 4px; }
.sch-day-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--sch-accent); }
.sch-day[aria-pressed="true"] .sch-day-dots i { background: var(--sch-accent-ink); }
.sch-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px !important; font-size: .8rem; color: var(--sch-muted); }
.sch-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sch-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sch-lg-open { background: var(--sch-surface); box-shadow: inset 0 0 0 1px var(--sch-accent); }
.sch-lg-closed { background: var(--sch-line); }

.sch-side { display: grid; gap: 14px; align-content: start; }
.sch-hint { color: var(--sch-muted); font-size: .95rem; border: 1.5px dashed var(--sch-line); border-radius: var(--sch-radius-sm); padding: 18px; }
.sch-part { font-size: .85rem; font-weight: 600; color: var(--sch-muted); margin: 6px 0 6px !important; }
.sch-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.sch-slot { min-height: 42px; border: 1.5px solid var(--sch-accent); color: var(--sch-accent) !important; background: var(--sch-surface); border-radius: var(--sch-radius-sm); font-weight: 700; font-size: .92rem; }
.sch-slot[aria-pressed="true"] { background: var(--sch-accent); color: var(--sch-accent-ink) !important; }
.sch-confirm { display: grid; gap: 12px; border-top: 1px solid var(--sch-line); padding-top: 14px; }
.sch-summary { line-height: 1.5; }
.sch-fields { display: grid; gap: 8px; }
.sch-field { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--sch-muted); }
.sch-field input { font: inherit; font-weight: 400; color: var(--sch-ink); min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--sch-line); border-radius: var(--sch-radius-sm); background: var(--sch-surface); }
.sch-go { min-height: 48px; border: 0; border-radius: var(--sch-radius-sm); background: var(--sch-accent); color: var(--sch-accent-ink) !important; font-weight: 700; font-size: 1rem; }
.sch-fine { font-size: .85rem; color: var(--sch-muted); }
.sch-done { font-size: .92rem; font-weight: 600; padding: 12px 14px; border-radius: var(--sch-radius-sm); background: var(--sch-accent-soft); color: var(--sch-ink); }
@media (prefers-reduced-motion: reduce) { .sch * { transition: none !important; scroll-behavior: auto !important; } }
