@font-face { font-family: 'MeuRobo Inter'; src: url('/assets/ui/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

/* Charcoal and silver; dark is the default, explicit light remains available. */
:root {
  --canvas: oklch(98% .004 265); --surface: oklch(99.3% .003 265);
  --surface-muted: oklch(95% .005 265); --ink: oklch(23% .009 265);
  --ink-soft: oklch(39% .01 265); --muted: oklch(48% .01 265);
  --line: oklch(87% .007 265); --line-strong: oklch(73% .014 265);
  --accent: oklch(43% .025 265); --accent-strong: oklch(29% .014 265);
  --accent-soft: oklch(92% .009 265); --radius: 12px;
  --theme-control-bg: var(--surface); --theme-control-ink: var(--ink-soft);
  --theme-control-line: var(--line); --shadow: 0 16px 48px oklch(22% .01 265 / .05);
}
:root[data-theme='dark'] {
  --canvas: oklch(14% .006 265); --surface: oklch(17.2% .007 265);
  --surface-muted: oklch(21.5% .008 265); --ink: oklch(95% .005 265);
  --ink-soft: oklch(81% .008 265); --muted: oklch(66% .011 265);
  --line: oklch(28% .008 265); --line-strong: oklch(42% .014 265);
  --accent: oklch(78% .022 265); --accent-strong: oklch(91% .01 265);
  --accent-soft: oklch(25% .014 265);
  --success: oklch(79% .015 250); --success-soft: oklch(23% .01 250);
  --theme-control-bg: var(--surface-muted); --theme-control-ink: var(--ink-soft);
  --theme-control-line: var(--line-strong); --shadow: 0 18px 50px oklch(8% .006 265 / .2);
}
body { isolation: isolate; background: var(--canvas); color: var(--ink); font-family: 'MeuRobo Inter', Inter, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.space-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.space-toggle { position: fixed; bottom: 14px; right: 16px; z-index: 35; display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 15px; border: 1px solid var(--line-strong); border-radius: 40px; background: var(--surface); color: var(--ink-soft); font: 500 11px 'MeuRobo Inter', sans-serif; cursor: pointer; box-shadow: var(--shadow); }
.space-toggle::before { content: ''; width: 7px; height: 9px; border-inline: 2px solid currentColor; }
.space-toggle[aria-pressed='true']::before { width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 50%; }
.space-toggle:hover { border-color: var(--accent); }
.space-toggle:disabled { cursor: default; }
body :is(button, a, input, select, textarea, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
body .button { border-radius: 999px; min-height: 44px; transition: transform 180ms cubic-bezier(.22,1,.36,1), background 180ms ease-out, border-color 180ms ease-out; }
body .button:active { transform: scale(.96); }
body .button.primary { color: var(--surface); background: var(--accent-strong); }
body .eyebrow { font-weight: 500; letter-spacing: .16em; font-size: 10px; }
body h1, body h2, body h3 { text-wrap: balance; }
body p { text-wrap: pretty; }
.brand-live { display: inline-flex; align-items: center; gap: 9px; width: auto; color: var(--ink); font-size: 25px; font-weight: 600; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.brand-live svg { flex: none; width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.logo.brand-live { width: auto; }

/* Sign-in retains every existing auth state and its accessible live region. */
.login-header, .topbar { height: 88px; background: transparent; padding-inline: max(28px, calc((100vw - 1200px) / 2)); }
.login-shell { width: min(1200px, calc(100% - 64px)); grid-template-columns: 1fr 1fr; gap: 100px; min-height: 630px; margin: 66px auto 40px; background: transparent; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.login-panel { order: 2; align-self: center; padding: 42px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.login-copy h1 { font-size: 38px; font-weight: 450; line-height: 1.08; letter-spacing: -.055em; margin: 20px 0 18px; }
.login-copy > p:last-child { font-size: 14px; color: var(--muted); }
.google-area { margin: 28px 0 18px; }
.login-help p, .login-help a { font-size: 12px; }
.demo-link { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 22px; font-size: 12px; }
.login-context { order: 1; padding: 25px 0; background: transparent; border: 0; }
.context-heading { border: 0; padding-bottom: 25px; }
.context-icon { display: none; }
.context-heading .eyebrow { margin-bottom: 25px; }
.context-heading h2 { max-width: 460px; font-size: 62px; line-height: 1.04; font-weight: 450; letter-spacing: -.064em; }
.context-list { margin: 0 0 28px; }
.context-list li { padding: 20px 0; grid-template-columns: 30px 1fr; }
.context-list strong { font-size: 14px; font-weight: 550; margin-bottom: 6px; }
.context-list p { font-size: 12px; line-height: 1.6; max-width: 42ch; }
.security-note { background: transparent; padding: 0; }
.security-note p { font-size: 11px; max-width: 45ch; }
.login-footer { width: min(1200px, calc(100% - 64px)); padding: 22px 0 64px; border-top: 1px solid var(--line); font-size: 11px; }

/* Both the email/Google entry point and the legacy Google entry share the brand. */
.setup-shell { width: min(1200px, calc(100% - 64px)); margin-top: 56px; grid-template-columns: 1fr 1fr; background: transparent; box-shadow: none; border: 0; overflow: visible; gap: 70px; }
.setup-rail { background: transparent; border: 0; padding: 28px 0; }
.setup-rail h1 { font-size: 46px; line-height: 1.08; letter-spacing: -.06em; font-weight: 450; }
.setup-rail .eyebrow { margin-bottom: 26px; }
.setup-content { background: var(--surface); padding: 40px; border: 1px solid var(--line); border-radius: 24px; align-self: start; box-shadow: var(--shadow); }
.step-heading h2 { font-size: 34px; font-weight: 450; letter-spacing: -.05em; }
body[data-auth-mode='signin']:has(#auth-step:not([hidden])) :is(.progress-list, .rail-note) { display: none; }
body[data-auth-mode='signin']:has(#auth-step:not([hidden])) .setup-rail { align-self: center; }

/* A quieter work surface carries the same typography and mint vocabulary. */
.sidebar { background: color-mix(in oklch, var(--surface) 96%, transparent); padding-top: 28px; overflow-y: auto; }
.sidebar .logo { margin-bottom: 30px; font-size: 24px; }
.workspace-switcher { border-radius: 14px; background: var(--surface-muted); border-color: transparent; }
.workspace-mark { border-radius: 50%; }
.side-nav { gap: 5px; }
.nav-item { min-height: 44px; border-radius: 24px; font-size: 13px; }
.nav-item.active { background: var(--accent-strong); color: var(--surface); }
.nav-item.active .nav-count { background: color-mix(in oklch, var(--surface) 15%, transparent); color: inherit; }
.sidebar-bottom { padding-top: 28px; min-width: 0; }
.sidebar-bottom > .ui-preferences { flex-wrap: wrap; justify-content: flex-start; gap: 10px; padding-inline: 5px; }
.preference-theme-slider[data-value] { background: var(--surface-muted); }
.demo-note { background: transparent; border: 0; padding-inline: 8px; }
.main-content { padding-top: 48px; padding-bottom: 100px; }
.page-header { align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.page-header h1 { font-size: 46px; font-weight: 450; line-height: 1.08; letter-spacing: -.06em; margin-top: 14px; }
.page-subtitle { font-size: 14px; }
.header-actions { flex-wrap: wrap; justify-content: flex-end; }
.header-actions .button { font-size: 12px; padding-inline: 16px; }
.appointment-search-surface { background: transparent; border: 0; border-radius: 0; padding-inline: 0; }
.agenda-toolbar { border-radius: 18px; box-shadow: var(--shadow); }
.agenda-professional-filter { background: transparent; }
.date-tab { border-radius: 15px; }
.date-tab.active { background: var(--accent-strong); color: var(--surface); border-color: transparent; }
.date-tab.active :is(span, strong, small) { color: inherit; }
.schedule-panel { box-shadow: var(--shadow); }
.schedule-head { padding-block: 23px; }
.schedule-head h2 { font-size: 20px; font-weight: 550; }
.appointment:hover { background: var(--surface-muted); }
.appointment-time, .nav-count, .stat, .date-tab { font-variant-numeric: tabular-nums; }
.mobile-bar { background: var(--surface); }
.mobile-bar .brand-live { margin: 0; }

@media (max-width: 1100px) {
  .login-shell { gap: 48px; }
  .context-heading h2 { font-size: 52px; }
  .setup-shell { gap: 36px; grid-template-columns: .85fr 1.15fr; }
  .page-header { align-items: flex-start; flex-direction: column; gap: 20px; }
  .header-actions { justify-content: flex-start; }
}
@media (max-width: 780px) {
  .login-header, .topbar { height: auto; min-height: 76px; padding: 16px 20px; gap: 16px; flex-wrap: wrap; }
  .brand-live { font-size: 23px; }
  .login-shell { width: calc(100% - 36px); display: flex; flex-direction: column; gap: 36px; min-height: 0; margin: 36px auto; }
  .login-panel { order: 0; width: 100%; padding: 28px 24px; min-height: 0; }
  .login-copy h1 { font-size: 34px; }
  .login-context { display: block; padding: 12px 8px; }
  .context-heading h2 { font-size: 42px; max-width: 340px; }
  .login-footer { display: flex; flex-wrap: wrap; gap: 12px; width: calc(100% - 44px); }
  .setup-shell { display: flex; flex-direction: column; width: calc(100% - 36px); gap: 26px; margin: 30px auto 80px; }
  .setup-rail { padding: 0 8px; }
  .setup-rail h1 { font-size: 34px; }
  .setup-content { width: 100%; padding: 28px 24px; }
  .step-heading h2 { font-size: 30px; }
  .page-header h1 { font-size: 36px; }
  .space-toggle { bottom: 10px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) { .space-canvas { opacity: .6; } }

/* A user motion preference covers decorative CSS effects as well as canvases. */
html[data-motion="paused"] *, html[data-motion="paused"] *::before, html[data-motion="paused"] *::after {
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .01ms !important;
  scroll-behavior: auto !important;
}
