/* ============================================================
   CLINIQ public site (patients + clinic sign-up). Loads after theme.css and
   uses its tokens, so dark mode and brand colours come for free.
   Everything here is prefixed .s- and never touches the staff shell.

   Design intent: quiet surfaces and one memorable object. The "ticket" is
   the waiting-room screen shrunk into a chip. It carries the queue number
   wherever a patient meets it (home, clinic page, booking confirmation).
   ============================================================ */
:root {
  --s-max: 1120px;
  --s-gutter: clamp(16px, 4.5vw, 40px);
  --s-header-h: 64px;
  --s-accent: var(--color-primary);
  --s-accent-text: var(--color-primary);
  --s-ticket-bg: #0b1220;
  --s-ticket-ink: #e2e8f0;
  --s-ticket-dim: #94a3b8;
  --s-ticket-num: #2dd4bf;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --s-accent-text: #2dd4bf; --s-ticket-bg: #060b16; } }
:root[data-theme="dark"] { --s-accent-text: #2dd4bf; --s-ticket-bg: #060b16; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--s-header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.s-body { background: var(--color-bg); color: var(--color-text); line-height: 1.55; -webkit-font-smoothing: antialiased; font-family: var(--font-sans); }
.s-wrap { width: 100%; max-width: var(--s-max); margin-inline: auto; padding-inline: var(--s-gutter); }
.s-narrow { max-width: 760px; }
.s-section { padding-block: clamp(40px, 6vw, 72px); }
.s-muted { color: var(--color-muted); }
.s-small { font-size: var(--text-sm); }
.s-num { font-variant-numeric: tabular-nums; }
.s-h1 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; font-size: clamp(2.25rem, 5.6vw, 3.75rem); margin: 0 0 16px; text-wrap: balance; }
.s-h2 { font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; font-size: clamp(1.5rem, 3.2vw, 2.125rem); margin: 0 0 8px; text-wrap: balance; }
.s-lead { font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); color: var(--color-text-secondary); max-width: 36em; margin: 0; }
.s-head { margin-bottom: clamp(20px, 3vw, 32px); }
.s-head p { margin: 0; color: var(--color-text-secondary); max-width: 40em; }
a.s-link { color: var(--s-accent-text); font-weight: 600; text-underline-offset: 3px; }

/* ---- Buttons and fields ---- */
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font: 600 var(--text-md)/1 var(--font-sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.s-btn--primary { background: var(--color-primary); color: #fff; }
.s-btn--primary:hover { background: var(--color-primary-dark); color: #fff; }
.s-btn--ghost { background: transparent; color: var(--color-text); border-color: var(--color-border-strong); }
.s-btn--ghost:hover { border-color: var(--s-accent); color: var(--s-accent-text); }
.s-btn--quiet { background: var(--color-primary-soft); color: var(--s-accent-text); }
.s-btn--quiet:hover { background: color-mix(in srgb, var(--color-primary) 18%, transparent); color: var(--s-accent-text); }
.s-btn--lg { min-height: 52px; padding: 0 28px; font-size: 1rem; }
.s-btn--sm { min-height: 36px; padding: 0 14px; font-size: var(--text-sm); }
.s-btn--block { width: 100%; }
.s-btn[disabled], .s-btn.is-busy { opacity: .6; cursor: progress; }
.s-btn:focus-visible, .s-nav a:focus-visible, .s-icon-btn:focus-visible, .s-chip:focus-visible, .s-slot input:focus-visible + span, .s-day:focus-visible { outline: 2px solid var(--color-primary-light); outline-offset: 3px; }
.s-field { margin-bottom: 18px; }
.s-field label { display: block; font-weight: 600; font-size: var(--text-md); margin-bottom: 6px; }
.s-field .form-control, .s-field .form-select { min-height: 48px; border-radius: 12px; }
.s-hint { margin: 6px 0 0; font-size: var(--text-sm); color: var(--color-muted); }
.s-optional { font-weight: 400; color: var(--color-muted); }
.s-alert { border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; font-size: var(--text-md); border: 1px solid; }
.s-alert--error { color: var(--color-danger); background: var(--color-danger-soft); border-color: color-mix(in srgb, var(--color-danger) 30%, transparent); }
.s-alert--info { color: var(--color-info); background: var(--color-info-soft); border-color: color-mix(in srgb, var(--color-info) 30%, transparent); }
.s-alert--ok { color: var(--color-success); background: var(--color-success-soft); border-color: color-mix(in srgb, var(--color-success) 30%, transparent); }
.s-alert ul { margin: 0; padding-left: 1.1em; }
.s-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Header ---- */
.s-header { position: sticky; top: 0; z-index: 50; height: var(--s-header-h); background: color-mix(in srgb, var(--color-bg) 90%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--color-border); padding-top: env(safe-area-inset-top, 0px); box-sizing: content-box; }
.s-header .s-wrap { height: 100%; display: flex; align-items: center; gap: 20px; }
.s-brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--color-text); flex: none; }
.s-brand:hover { color: var(--color-text); }
.s-nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.s-nav a { padding: 8px 14px; border-radius: 999px; color: var(--color-text-secondary); text-decoration: none; font-weight: 600; font-size: var(--text-md); }
.s-nav a:hover { background: var(--color-surface-2); color: var(--color-text); }
.s-nav a[aria-current="page"] { color: var(--s-accent-text); background: var(--color-primary-soft); }
.s-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.s-icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--color-border-strong); background: transparent; color: var(--color-text-secondary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.s-icon-btn:hover { color: var(--s-accent-text); border-color: var(--s-accent); }
.s-menu-btn { display: none; }
.s-mobile { display: none; }
@media (max-width: 820px) {
  .s-nav, .s-actions .s-hide-sm { display: none; }
  .s-menu-btn { display: inline-flex; }
  .s-mobile { position: absolute; top: 100%; left: 0; right: 0; background: var(--color-surface); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow); padding: 8px var(--s-gutter) 20px; }
  .s-mobile.open { display: block; }
  .s-mobile a.s-m-link { display: block; padding: 14px 2px; font-weight: 600; color: var(--color-text); text-decoration: none; border-bottom: 1px solid var(--color-border); }
  .s-mobile .s-btn { width: 100%; margin-top: 12px; }
}

/* ---- The ticket: the waiting-room screen as a chip ---- */
.s-ticket { --notch: 9px; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 26px; color: var(--s-ticket-ink); background: var(--s-ticket-bg); border-radius: 14px;
  -webkit-mask: radial-gradient(circle var(--notch) at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle var(--notch) at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat; }
.s-ticket__who { min-width: 0; }
.s-ticket__label { display: block; font-size: var(--text-sm); color: var(--s-ticket-dim); }
.s-ticket__who b { display: block; font-weight: 600; font-size: var(--text-md); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-ticket__num { font-weight: 800; font-size: 2.5rem; line-height: 1; letter-spacing: -0.02em; color: var(--s-ticket-num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.s-ticket__num.is-idle { color: var(--s-ticket-dim); font-weight: 400; }
.s-ticket--lg .s-ticket__num { font-size: clamp(2.75rem, 7vw, 3.75rem); }
.s-ticket--sm { --notch: 6px; padding: 7px 16px; gap: 10px; border-radius: 10px; }
.s-ticket--sm .s-ticket__num { font-size: 1.25rem; }
.s-ticket--sm .s-ticket__label { font-size: var(--text-xs); }
.s-ticket-stack { display: grid; gap: 12px; }
.s-ticket-stack .s-ticket { box-shadow: none; }
.s-example-note { margin: 10px 0 0; font-size: var(--text-sm); color: var(--color-muted); }

/* ---- Landing hero ---- */
.s-hero .s-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 72px); align-items: center; padding-block: clamp(36px, 6vw, 72px) clamp(24px, 4vw, 40px); }
.s-search { display: flex; gap: 8px; margin: 28px 0 14px; padding: 6px; background: var(--color-surface); border: 1px solid var(--color-border-strong); border-radius: 999px; box-shadow: var(--shadow-sm); }
.s-search:focus-within { border-color: var(--s-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary-light) 28%, transparent); }
.s-search svg { flex: none; align-self: center; margin-left: 14px; color: var(--color-muted); }
.s-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--color-text); font: 500 1rem/1 var(--font-sans); padding: 0 6px; min-height: 46px; }
.s-search input::placeholder { color: var(--color-muted); }
.s-search-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.s-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--color-border-strong); background: var(--color-surface); color: var(--color-text-secondary); font: 600 var(--text-sm)/1 var(--font-sans); cursor: pointer; text-decoration: none; }
.s-chip:hover { border-color: var(--s-accent); color: var(--s-accent-text); }
.s-chip[aria-pressed="true"] { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.s-chip--locate { color: var(--s-accent-text); border-color: color-mix(in srgb, var(--color-primary) 40%, transparent); }
@media (max-width: 900px) { .s-hero .s-wrap { grid-template-columns: 1fr; } .s-ticket-stack { max-width: 460px; } }
@media (max-width: 520px) { .s-search { border-radius: 20px; flex-wrap: wrap; } .s-search svg { display: none; } .s-search input { padding: 0 12px; flex-basis: 100%; } .s-search .s-btn { flex: 1; } }

/* ---- Finder ---- */
.s-finder { border-top: 1px solid var(--color-border); background: var(--color-surface-2); }
.s-finder-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 14px; }
.s-finder-bar .s-note { flex: 1 1 260px; min-height: 1.5em; margin: 0; color: var(--color-text-secondary); font-size: var(--text-md); }
.s-radius { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-sm); font-weight: 600; color: var(--color-text-secondary); }
.s-radius[hidden] { display: none; }
.s-radius select { min-height: 36px; border-radius: 999px; border: 1px solid var(--color-border-strong); background: var(--color-surface); color: var(--color-text); padding: 0 12px; font: 600 var(--text-sm) var(--font-sans); }
.s-viewtoggle { display: none; gap: 2px; padding: 3px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 999px; }
.s-viewtoggle button { min-height: 32px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--color-text-secondary); font: 600 var(--text-sm)/1 var(--font-sans); cursor: pointer; }
.s-viewtoggle button[aria-pressed="true"] { background: var(--color-primary); color: #fff; }
.s-finder-body { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.s-mapwrap { display: none; }
.s-map { height: min(74vh, 640px); min-height: 340px; border-radius: 18px; border: 1px solid var(--color-border); overflow: hidden; background: var(--color-surface); }
.s-finder.has-map .s-mapwrap { position: sticky; top: calc(var(--s-header-h) + 16px); align-self: start; }
@media (min-width: 960px) { .s-finder.has-map .s-finder-body { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } .s-finder.has-map .s-mapwrap { display: block; } }
@media (max-width: 959.98px) {
  .s-finder.has-map .s-viewtoggle { display: inline-flex; }
  .s-finder.has-map[data-view-now="map"] .s-mapwrap { display: block; }
  .s-finder.has-map[data-view-now="map"] .s-results { display: none; }
}
.s-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: start; }
.s-clinic { padding: 20px; border-radius: 18px; background: var(--color-surface); border: 1px solid var(--color-border); scroll-margin-top: 96px; }
.s-clinic.is-flash { outline: 3px solid var(--color-primary-light); outline-offset: 2px; }
.s-clinic__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.s-clinic__logo { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; overflow: hidden; background: var(--color-primary-soft); color: var(--s-accent-text); font-weight: 800; }
.s-clinic__logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.s-clinic__title h3 { margin: 0; font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.s-clinic__title h3 a { color: inherit; text-decoration: none; }
.s-clinic__title h3 a:hover { color: var(--s-accent-text); text-decoration: underline; text-underline-offset: 3px; }
.s-clinic__title p { margin: 2px 0 0; color: var(--color-muted); font-size: var(--text-sm); overflow-wrap: anywhere; }
.s-clinic__dist { text-align: right; color: var(--color-muted); font-size: var(--text-sm); white-space: nowrap; }
.s-clinic__dist b { font-size: var(--text-xl); color: var(--color-text); font-weight: 800; letter-spacing: -0.02em; }
.s-state-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 14px; }
.s-state { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: var(--text-sm); }
.s-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.s-state--open { color: var(--color-success); }
.s-state--closed, .s-state--unknown { color: var(--color-muted); }
.s-docs { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--color-border); }
.s-doc { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.s-doc__who { flex: 1; min-width: 0; }
.s-doc__who b { display: block; font-weight: 600; font-size: var(--text-md); }
.s-doc__who span { display: block; color: var(--color-muted); font-size: var(--text-sm); }
.s-doc__wait { font-size: var(--text-sm); color: var(--color-muted); white-space: nowrap; }
.s-doc__wait b { color: var(--color-text); }
@media (max-width: 560px) { .s-doc { flex-wrap: wrap; } .s-doc__who { flex-basis: 100%; } .s-doc .s-ticket { order: 2; } .s-clinic__head { grid-template-columns: auto minmax(0, 1fr); } .s-clinic__dist { grid-column: 2; text-align: left; } }
.s-clinic__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.s-more-docs { font-size: var(--text-sm); margin-top: 10px; }
.s-empty { padding: 32px 20px; border: 1px dashed var(--color-border-strong); border-radius: 18px; text-align: center; color: var(--color-text-secondary); background: var(--color-surface); }
.s-empty strong { display: block; color: var(--color-text); font-size: var(--text-lg); margin-bottom: 4px; }
.s-empty p { margin: 0 auto 14px; max-width: 42ch; }
.s-skel { display: grid; gap: 12px; }
.s-skel i { display: block; height: 16px; border-radius: 8px; background: linear-gradient(90deg, var(--color-border) 25%, var(--color-surface-2) 37%, var(--color-border) 63%); background-size: 400% 100%; animation: skeleton-loading 1.4s ease infinite; }
.s-skel i:first-child { width: 55%; height: 20px; } .s-skel i:last-child { width: 80%; }
@media (prefers-reduced-motion: reduce) { .s-skel i { animation: none; } }
.s-fine { margin: 18px 0 0; color: var(--color-muted); font-size: var(--text-sm); max-width: 75ch; }
.s-pin { display: block; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--color-primary); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(15,23,42,.35); }
.s-pin--open { background: #15803d; } .s-pin--closed, .s-pin--unknown { background: #64748b; }

/* ---- Patient steps (a real sequence) ---- */
.s-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 48px); counter-reset: s; }
.s-step { counter-increment: s; padding-top: 18px; border-top: 2px solid var(--color-border-strong); }
.s-step::before { content: counter(s); display: block; font-weight: 800; font-size: var(--text-xl); color: var(--s-accent-text); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.s-step h3 { font-size: 1.0625rem; font-weight: 700; margin: 0 0 4px; }
.s-step p { margin: 0; color: var(--color-text-secondary); }
@media (max-width: 760px) { .s-steps { grid-template-columns: 1fr; } }

/* ---- Clinic strip + footer ---- */
.s-band { border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
.s-band .s-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: 28px; }
.s-band p { margin: 0; max-width: 46em; color: var(--color-text-secondary); }
.s-band strong { color: var(--color-text); }
.s-footer { padding: 36px 0 calc(36px + env(safe-area-inset-bottom, 0px)); }
.s-footer .s-wrap { display: flex; flex-wrap: wrap; gap: 20px 48px; justify-content: space-between; align-items: flex-start; }
.s-footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.s-footer nav a { color: var(--color-text-secondary); text-decoration: none; font-weight: 600; font-size: var(--text-md); padding: 6px 0; }
.s-footer nav a:hover { color: var(--s-accent-text); }
.s-footer .s-fine-print { width: 100%; padding-top: 20px; border-top: 1px solid var(--color-border); font-size: var(--text-sm); color: var(--color-muted); margin: 0; }

/* ---- Clinic page ---- */
.s-crumb { font-size: var(--text-sm); margin: 20px 0 0; }
.s-crumb a { color: var(--color-muted); text-decoration: none; } .s-crumb a:hover { color: var(--s-accent-text); }
.s-profile-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; padding-block: 20px 28px; }
.s-profile-head .s-clinic__logo { width: 64px; height: 64px; border-radius: 18px; font-size: 1.25rem; }
.s-profile-head h1 { font-size: clamp(1.625rem, 3.6vw, 2.375rem); font-weight: 800; letter-spacing: -0.03em; margin: 0; line-height: 1.1; overflow-wrap: anywhere; }
.s-profile-head p { margin: 4px 0 0; color: var(--color-text-secondary); }
.s-profile-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.s-profile-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 40px); align-items: start; padding-bottom: 56px; }
@media (max-width: 900px) { .s-profile-grid { grid-template-columns: 1fr; } }
.s-panel { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 18px; padding: clamp(18px, 3vw, 26px); }
.s-panel + .s-panel { margin-top: 16px; }
.s-panel h2 { font-size: var(--text-lg); font-weight: 700; margin: 0 0 14px; letter-spacing: -0.01em; }
.s-livehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.s-livehead h2 { margin: 0; }
.s-live-dot { display: inline-flex; align-items: center; gap: 7px; font-size: var(--text-sm); color: var(--color-muted); }
.s-live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-success); animation: s-pulse 2s ease-in-out infinite; }
.s-live-dot.is-stale::before { background: var(--color-muted); animation: none; }
@keyframes s-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .s-live-dot::before { animation: none; } }
.s-livedoc { padding: 16px 0; border-top: 1px solid var(--color-border); }
.s-livedoc:first-of-type { border-top: 0; padding-top: 0; }
.s-livedoc__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 10px; }
.s-livedoc__top b { font-size: var(--text-md); } .s-livedoc__top span { display: block; color: var(--color-muted); font-size: var(--text-sm); }
.s-livedoc__next { margin: 10px 0 0; font-size: var(--text-sm); color: var(--color-muted); }
.s-livedoc__next b { color: var(--color-text); font-weight: 600; }
.s-livedoc__actions { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.s-defs { margin: 0; display: grid; gap: 14px; }
.s-defs dt { font-size: var(--text-sm); color: var(--color-muted); font-weight: 600; }
.s-defs dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.s-week { list-style: none; margin: 0; padding: 0; }
.s-week li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 8px; border-radius: 8px; font-size: var(--text-sm); color: var(--color-text-secondary); }
.s-week li.is-today { background: var(--color-primary-soft); color: var(--color-text); font-weight: 700; }
.s-minimap { height: 220px; border-radius: 14px; overflow: hidden; border: 1px solid var(--color-border); margin-top: 16px; background: var(--color-surface-2); }

/* ---- Booking ---- */
.s-days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin: 0 -2px 6px; scroll-snap-type: x proximity; }
.s-day { flex: none; width: 66px; padding: 10px 0; border-radius: 14px; border: 1px solid var(--color-border-strong); background: var(--color-surface); color: var(--color-text); text-align: center; text-decoration: none; scroll-snap-align: start; line-height: 1.2; }
.s-day span { display: block; font-size: var(--text-xs); color: var(--color-muted); font-weight: 600; }
.s-day b { display: block; font-size: var(--text-xl); font-weight: 800; letter-spacing: -0.02em; }
.s-day small { display: block; font-size: var(--text-xs); color: var(--color-muted); }
a.s-day:hover { border-color: var(--s-accent); }
.s-day[aria-current="date"] { background: var(--color-primary); border-color: var(--color-primary); color: #fff; } .s-day[aria-current="date"] span, .s-day[aria-current="date"] small { color: rgba(255,255,255,.85); }
.s-day.is-off { opacity: .45; pointer-events: none; }
.s-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; }
.s-slotgroup { border: 0; padding: 0; margin: 0 0 16px; }
.s-slotgroup legend { float: none; width: auto; padding: 0; margin: 0 0 8px; font-size: var(--text-sm); font-weight: 700; color: var(--color-muted); }
.s-slot { position: relative; }
.s-slot input { position: absolute; opacity: 0; inset: 0; }
.s-slot span { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px; border: 1px solid var(--color-border-strong); background: var(--color-surface); font-weight: 600; font-size: var(--text-md); cursor: pointer; font-variant-numeric: tabular-nums; }
.s-slot input:checked + span { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.s-slot input:disabled + span { opacity: .4; text-decoration: line-through; cursor: not-allowed; background: var(--color-surface-2); }
.s-slot input:not(:disabled):hover + span { border-color: var(--s-accent); }
.s-summary { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--color-primary-soft); margin-bottom: 20px; }
.s-summary b { font-size: var(--text-lg); } .s-summary span { color: var(--color-text-secondary); font-size: var(--text-md); }
.s-confirm { text-align: center; padding-block: 8px 4px; }
.s-confirm .s-check { width: 56px; height: 56px; border-radius: 50%; background: var(--color-success-soft); color: var(--color-success); display: inline-grid; place-items: center; margin-bottom: 10px; }
.s-confirm.is-cancelled .s-check { background: var(--color-surface-2); color: var(--color-muted); }

/* ---- Auth + sign-up (clinic side) ---- */
.s-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(28px, 6vw, 80px); align-items: start; padding-block: clamp(28px, 5vw, 64px); }
.s-auth--center { grid-template-columns: minmax(0, 440px); justify-content: center; }
.s-auth aside h1 { margin-top: 0; }
.s-auth ul.s-points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.s-auth ul.s-points li { display: flex; gap: 12px; color: var(--color-text-secondary); }
.s-auth ul.s-points svg { flex: none; margin-top: 2px; color: var(--s-accent-text); }
.s-auth ul.s-points b { display: block; color: var(--color-text); font-weight: 700; }
.s-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 20px; padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow-sm); }
.s-card h2 { font-size: var(--text-xl); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 4px; }
.s-card > p.s-sub { margin: 0 0 20px; color: var(--color-muted); }
.s-pw { position: relative; }
.s-pw button { position: absolute; right: 6px; top: 6px; min-height: 36px; padding: 0 12px; border: 0; background: transparent; color: var(--s-accent-text); font: 600 var(--text-sm) var(--font-sans); cursor: pointer; border-radius: 8px; }
.s-pw .form-control { padding-right: 72px; }
@media (max-width: 880px) { .s-auth { grid-template-columns: 1fr; } .s-auth--center { grid-template-columns: minmax(0, 1fr); } .s-auth aside { order: 2; } }

/* ---- For clinics ---- */
.s-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.s-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(28px, 6vw, 72px); }
.s-role h3 { font-size: var(--text-lg); font-weight: 800; margin: 0 0 4px; letter-spacing: -0.01em; }
.s-role > p { margin: 0 0 6px; color: var(--color-muted); font-size: var(--text-md); }
.s-role ul { list-style: none; margin: 0; padding: 0; }
.s-role li { padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.s-role li:last-child { border-bottom: 0; }
.s-role li b { display: block; font-size: var(--text-md); }
.s-role li span { color: var(--color-text-secondary); font-size: var(--text-md); }
@media (max-width: 820px) { .s-roles { grid-template-columns: 1fr; } }
.s-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 820px) { .s-split { grid-template-columns: 1fr; } }
.s-setup { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; }
.s-setup li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.s-setup li::before { content: counter(s); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--color-primary); color: var(--s-accent-text); display: grid; place-items: center; font-weight: 800; }
.s-setup li b { font-size: var(--text-md); } .s-setup li span { color: var(--color-text-secondary); }
.s-setup li:last-child { border-bottom: 0; }
