:root {
  --background: #ffffff;
  --foreground: #0f172a;
  --card: #ffffff;
  --card-foreground: #0f172a;
  --primary: #0f172a;
  --primary-foreground: #ffffff;
  --secondary: #f1f5f9;
  --secondary-foreground: #0f172a;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --input: #e2e8f0;
  --ring: #94a3b8;
  --accent: #f1f5f9;
  --destructive: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;
  --radius: 0.375rem;
  --radius-lg: 0.75rem;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.08);
  --shadow-md: 0 4px 12px rgb(0 0 0 / 0.08);
}

[data-theme="dark"] {
  --background: #020617;
  --foreground: #f8fafc;
  --card: #0f172a;
  --card-foreground: #f8fafc;
  --primary: #f8fafc;
  --primary-foreground: #0f172a;
  --secondary: #1e293b;
  --secondary-foreground: #f8fafc;
  --muted: #1e293b;
  --muted-foreground: #94a3b8;
  --border: #334155;
  --input: #334155;
  --ring: #64748b;
  --accent: #1e293b;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; font-family: var(--font); background: var(--background); color: var(--foreground);
  line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeIn 0.3s ease-out; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
  padding: 0 1rem; font-size: 0.875rem; font-weight: 500; line-height: 1.25rem;
  height: 2.25rem; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: color 0.15s, background 0.15s, border-color 0.15s, opacity 0.15s;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { opacity: 0.9; }
.btn-secondary { background: var(--background); color: var(--foreground); border-color: var(--input); }
.btn-secondary:hover { background: var(--accent); }
.btn-destructive { background: var(--destructive); color: white; }
.btn-lg { height: 2.75rem; padding: 0 2rem; font-size: 0.875rem; }
.btn-sm { padding: 0 0.75rem; font-size: 0.8125rem; height: 2rem; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--muted); color: var(--foreground); }
.btn-outline-danger { background: var(--background); border-color: var(--destructive); color: var(--destructive); }
.btn-outline-danger:hover { background: color-mix(in srgb, var(--destructive) 10%, transparent); }
.text-destructive { color: var(--destructive); }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
}
.card-hover { transition: box-shadow 0.2s, border-color 0.2s; }
.card-hover:hover { box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 20%, var(--border)); }
.card-sticky { position: sticky; top: 1rem; }
.card-title { font-size: 1.125rem; font-weight: 600; margin: 0 0 0.5rem; }
.card-desc { color: var(--muted-foreground); font-size: 0.875rem; margin: 0; }

.input, .select, .textarea {
  width: 100%; padding: 0.5rem 0.75rem; font-size: 0.875rem;
  border: 1px solid var(--input); border-radius: var(--radius);
  background: var(--background); color: var(--foreground);
}
.input:focus, .select:focus, .textarea:focus {
  outline: 2px solid var(--ring); outline-offset: 2px;
}
.label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; }
.form-group { margin-bottom: 1rem; }
.textarea { min-height: 100px; resize: vertical; }

.badge {
  display: inline-flex; align-items: center; padding: 0.125rem 0.625rem; font-size: 0.75rem;
  font-weight: 600; border-radius: 9999px; border: 1px solid transparent;
}
.badge-success { background: #dcfce7; color: #047857; border-color: #bbf7d0; }
.badge-warning { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.badge-muted { background: var(--muted); color: var(--muted-foreground); border-color: var(--border); }
.badge-destructive { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.badge-rating { background: var(--background); color: var(--muted-foreground); border-color: var(--border); }
.badge-rating-high { background: #fffbeb; color: #d97706; border-color: #fde68a; }

.table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.table th, .table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.table th { font-weight: 500; color: var(--muted-foreground); }
.table-wrap .table th { background: var(--muted); }
.table-wrap .table tbody tr:hover { background: color-mix(in srgb, var(--muted) 50%, transparent); }
.table tbody tr:last-child td { border-bottom: none; }

.alert {
  padding: 0.75rem 1rem; border-radius: var(--radius); font-size: 0.875rem; margin-bottom: 1rem;
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

.impersonation-bar {
  display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap;
  padding: 0.5rem 1rem; background: #fef3c7; color: #92400e; font-size: 0.875rem;
  border-bottom: 1px solid #fcd34d;
}
.header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 95%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.brand-mark {
  width: 2rem; height: 2rem; border-radius: var(--radius);
  background: var(--primary); color: var(--primary-foreground);
  display: flex; align-items: center; justify-content: center; font-size: 0.875rem; font-weight: 700;
}
.brand-mark-lg { width: 3rem; height: 3rem; border-radius: var(--radius-lg); font-size: 1.25rem; }
.nav { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.nav a, .nav button { font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); transition: color 0.15s; }
.nav a:hover, .nav button:hover { color: var(--foreground); }
.nav-main { display: flex; gap: 1.5rem; align-items: center; }
@media (max-width: 768px) {
  .nav-main { display: none; }
}

.sidebar-layout { display: flex; min-height: calc(100vh - 3.5rem); }
.sidebar {
  width: 260px; border-right: 1px solid var(--border); padding: 1rem 0.75rem;
  background: var(--background); flex-shrink: 0;
}
.sidebar-brand {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--muted-foreground); padding: 0.5rem 0.75rem 1rem;
}
.sidebar-group { margin-bottom: 1rem; }
.sidebar-group-label {
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted-foreground); padding: 0 0.75rem 0.375rem;
}
.sidebar > a,
.sidebar-nav a {
  display: block; padding: 0.5rem 0.75rem; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); margin-bottom: 2px;
  transition: background 0.15s, color 0.15s;
}
.sidebar > a:hover,
.sidebar-nav a:hover { background: color-mix(in srgb, var(--muted) 50%, transparent); color: var(--foreground); }
.sidebar > a.active,
.sidebar-nav a.active { background: var(--muted); color: var(--foreground); font-weight: 600; }
.main-content { flex: 1; padding: 2rem 1.75rem; max-width: 80rem; }
.sidebar-toggle { display: none; margin-bottom: 1rem; }
.sidebar-overlay { display: none; }
.page-header {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.page-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.025em; margin: 0; line-height: 1.25; }
.page-title-lg { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.page-description { color: var(--muted-foreground); font-size: 0.9375rem; margin: 0.375rem 0 0; max-width: 42rem; }
.layout-split { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; align-items: start; }
.layout-split-wide { grid-template-columns: 1fr 300px; }
@media (max-width: 960px) {
  .layout-split, .layout-split-wide { grid-template-columns: 1fr; }
  .card-sticky { position: static; }
}
.stack { display: flex; flex-direction: column; }
.gap-3 { gap: 0.75rem; }
.checkbox-label { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; cursor: pointer; }
.input-sm { padding: 0.375rem 0.625rem; font-size: 0.8125rem; width: auto; }
.week-template { display: flex; flex-direction: column; gap: 0.5rem; }
.week-row { display: grid; grid-template-columns: 2rem 7rem 1fr auto 1fr; gap: 0.5rem; align-items: center; }
@media (max-width: 640px) { .week-row { grid-template-columns: 1fr 1fr; } .week-day { grid-column: 1 / -1; } }
.week-day { font-weight: 600; font-size: 0.875rem; }
.empty-state { text-align: center; padding: 2.5rem 1.5rem; }
.empty-state-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.onboarding-card { border-color: color-mix(in srgb, var(--primary) 25%, var(--border)); }
.onboarding-progress { height: 4px; background: var(--muted); border-radius: 999px; overflow: hidden; margin: 1rem 0; }
.onboarding-progress-bar { height: 100%; background: var(--primary); transition: width 0.3s; }
.onboarding-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
@media (max-width: 640px) { .onboarding-steps { grid-template-columns: repeat(2, 1fr); } }
.onboarding-step {
  display: flex; flex-direction: column; align-items: center; gap: 0.375rem; padding: 0.75rem;
  border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.8125rem; text-align: center;
}
.onboarding-step:hover { background: var(--muted); }
.onboarding-step.done { border-color: #bbf7d0; background: #f0fdf4; }
.onboarding-step-num {
  width: 1.75rem; height: 1.75rem; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: var(--muted); font-weight: 600; font-size: 0.75rem;
}
.onboarding-step.done .onboarding-step-num { background: #22c55e; color: white; }
.calendar-grid-modern .cal-day { text-decoration: none; color: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 3rem; }
.cal-selected { outline: 2px solid var(--primary); outline-offset: -2px; font-weight: 700; }
.cal-today { box-shadow: inset 0 0 0 1px var(--primary); }
.cal-num { font-size: 0.875rem; }
.section-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-foreground); margin: 0 0 0.5rem; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline-item { display: flex; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.timeline-time { font-weight: 600; min-width: 3rem; color: var(--muted-foreground); }
.slots-compact { display: flex; flex-direction: column; gap: 0.375rem; max-height: 280px; overflow-y: auto; }
.slot-chip {
  display: grid; grid-template-columns: 3rem 1fr auto; gap: 0.5rem; align-items: center;
  padding: 0.5rem 0.625rem; border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px); font-size: 0.8125rem;
}
.slot-chip.slot-full { opacity: 0.5; }
.auth-body {
  background: var(--background); min-height: 100vh;
  display: flex; align-items: center; justify-content: center; padding: 2rem 1rem;
}
.auth-card { width: 100%; max-width: 24rem; }
.auth-brand { text-align: center; margin-bottom: 2rem; }
.auth-brand .brand-mark { margin: 0 auto 1rem; }
.auth-brand h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.auth-brand p { font-size: 0.875rem; color: var(--muted-foreground); margin: 0.25rem 0 0; }
@media (max-width: 768px) {
  .sidebar-toggle { display: inline-flex; }
  .sidebar {
    position: fixed; left: 0; top: 3.5rem; bottom: 0; z-index: 60;
    transform: translateX(-100%); transition: transform 0.2s; box-shadow: var(--shadow-md);
  }
  .sidebar.sidebar-open { transform: translateX(0); }
  .sidebar-overlay {
    display: block; position: fixed; inset: 3.5rem 0 0 0; background: rgb(0 0 0 / 0.4); z-index: 55;
  }
  .main-content { padding: 1rem; }
}

.hero-home {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--muted) 50%, var(--background));
  padding: 6rem 0;
}
@media (min-width: 1024px) { .hero-home { padding: 8rem 0; } }
.hero-home-inner { max-width: 42rem; }
.hero-home .lead { color: var(--muted-foreground); font-size: 1.125rem; line-height: 1.7; margin: 0 0 2rem; }
.hero-home-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; gap: 1rem; }
.section-head h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.section-head a { font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); }
.section-head a:hover { color: var(--foreground); }
.home-section { padding: 4rem 0; }
.home-section.bordered { border-top: 1px solid var(--border); }

.spec-card-featured {
  overflow: hidden; padding: 0; cursor: pointer;
}
.spec-card-featured .spec-cover {
  height: 12rem; background: linear-gradient(135deg, var(--muted), color-mix(in srgb, var(--muted) 50%, var(--background)));
  position: relative; display: flex; align-items: center; justify-content: center;
}
.spec-card-featured .spec-avatar {
  width: 5rem; height: 5rem; border-radius: 999px; background: var(--background);
  border: 4px solid var(--background); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center; font-size: 1.75rem; font-weight: 600;
  color: var(--muted-foreground); overflow: hidden;
}
.spec-card-featured .spec-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px; }
.spec-card-featured .spec-rating {
  position: absolute; top: 1rem; right: 1rem;
}
.spec-card-featured .spec-body { padding: 1.25rem; }
.spec-card-featured h3 { margin: 0; font-size: 1.125rem; font-weight: 600; }
.spec-card-featured .spec-sub { color: var(--muted-foreground); font-size: 0.875rem; margin: 0.25rem 0 0; }
.spec-card-featured .spec-tags { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
.spec-price-tag {
  display: inline-flex; align-items: center; padding: 0.25rem 0.625rem;
  border-radius: var(--radius); background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary); font-size: 0.75rem; font-weight: 600;
}

.specialist-list { display: flex; flex-direction: column; gap: 1rem; }
.specialist-list-item {
  display: flex; flex-direction: column; gap: 1.25rem; padding: 1.25rem;
  border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--card);
  transition: box-shadow 0.2s, border-color 0.2s; color: inherit;
}
@media (min-width: 640px) {
  .specialist-list-item { flex-direction: row; align-items: center; }
}
.specialist-list-item:hover { box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 20%, var(--border)); }
.specialist-list-avatar {
  width: 5rem; height: 5rem; border-radius: 999px; background: var(--muted); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 1.5rem; font-weight: 600; color: var(--muted-foreground);
}
.specialist-list-avatar img { width: 100%; height: 100%; object-fit: cover; }
.specialist-list-main { flex: 1; min-width: 0; }
.specialist-list-main h3 { margin: 0; font-size: 1.125rem; font-weight: 600; }
.specialist-list-bio { font-size: 0.875rem; color: var(--muted-foreground); margin: 0.5rem 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.specialist-list-meta { display: flex; align-items: center; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; font-size: 0.75rem; color: var(--muted-foreground); }
.specialist-list-action { flex-shrink: 0; align-self: center; }

.specialist-card { cursor: pointer; }
.specialist-card img { width: 100%; height: 180px; object-fit: cover; border-radius: var(--radius); background: var(--muted); }
.specialist-card h3 { margin: 0.75rem 0 0.25rem; font-size: 1rem; font-weight: 600; }
.specialist-card .meta { color: var(--muted-foreground); font-size: 0.8125rem; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card { padding: 1.25rem; }
.stat-value { font-size: 1.875rem; font-weight: 700; letter-spacing: -0.02em; }
.stat-label { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.25rem; }

.chip-nav { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.chip-nav a, .chip-nav button {
  display: inline-flex; align-items: center; padding: 0.25rem 0.75rem;
  border-radius: 9999px; border: 1px solid var(--border); font-size: 0.75rem; font-weight: 600;
  background: var(--background); color: var(--foreground); transition: background 0.15s;
}
.chip-nav a:hover, .chip-nav button:hover { background: var(--accent); }
.chip-nav a.active, .chip-nav button.active { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day {
  padding: 0.5rem; text-align: center; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 0.8125rem; min-height: 48px;
}
.cal-day.off { background: var(--muted); color: var(--muted-foreground); }
.cal-day.work { background: #dcfce7; }
.cal-day.partial { background: #fef3c7; }

.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.bar { background: var(--primary); border-radius: 4px 4px 0 0; min-width: 32px; flex: 1; }

.slot-btn {
  padding: 0.5rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--background); cursor: pointer; font-size: 0.8125rem; text-align: center;
}
.slot-btn:hover, .slot-btn.selected { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 0.5rem; }

.text-muted { color: var(--muted-foreground); }
.text-sm { font-size: 0.875rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.w-full { width: 100%; }

.card-link {
  display: block; color: inherit; transition: box-shadow 0.15s, border-color 0.15s;
  font-weight: 500;
}
.card-link:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-color: var(--primary); }

.pagination {
  display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap;
}

.cal-header {
  padding: 0.5rem; text-align: center; font-size: 0.75rem; font-weight: 600;
  color: var(--muted-foreground);
}
.cal-day.cal-empty { visibility: hidden; }
.cal-day.cal-clickable { cursor: pointer; position: relative; }
.cal-day.cal-clickable:hover { outline: 2px solid var(--ring); }
.cal-day.has-bookings { box-shadow: inset 0 -3px 0 var(--primary); }
.cal-badge {
  font-size: 0.625rem; background: var(--primary); color: var(--primary-foreground);
  border-radius: 999px; padding: 0 0.35rem; margin-top: 2px; display: inline-block;
}

[x-cloak] { display: none !important; }

.notif-badge {
  position: absolute; top: -6px; right: -10px; font-size: 0.625rem;
  background: var(--destructive); color: white; border-radius: 999px;
  padding: 0 0.35rem; min-width: 1rem; text-align: center;
}

/* Public pages */
.public-body { background: var(--background); }
.public-main { min-height: calc(100vh - 8rem); }
.public-page { padding: 2rem 1rem 3rem; }
.public-page.narrow { max-width: 760px; margin: 0 auto; }
.public-footer {
  border-top: 1px solid var(--border); padding: 2rem 0; margin-top: 2rem;
  text-align: center; color: var(--muted-foreground); font-size: 0.875rem;
}
.back-link { display: inline-block; margin-bottom: 0.5rem; }
.back-link:hover { color: var(--foreground); }
.booking-hero { padding: 1.25rem 1.5rem; }
.booking-hero-inner { display: flex; align-items: center; gap: 1rem; }
.booking-avatar {
  width: 4rem; height: 4rem; border-radius: 999px; object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--border);
}
.booking-avatar-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--muted); font-weight: 700; font-size: 1.25rem; color: var(--muted-foreground);
}
.booking-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem;
}
.booking-step {
  text-align: center; padding: 0.625rem 0.5rem; font-size: 0.8125rem; font-weight: 500;
  border: 1px solid var(--border); border-radius: var(--radius); color: var(--muted-foreground);
  background: var(--card);
}
.booking-step.active { border-color: var(--primary); color: var(--foreground); background: var(--secondary); }
.booking-step.done { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.service-pick-grid { display: grid; gap: 0.75rem; }
.service-pick {
  text-align: left; width: 100%; cursor: pointer; border: 1px solid var(--border);
  background: var(--card); padding: 1rem; font: inherit;
}
.service-pick.selected {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 5%, var(--card));
}
.font-medium { font-weight: 600; }
.profile-hero { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 768px) { .profile-hero { grid-template-columns: 1fr; } }
.profile-photo { width: 100%; border-radius: calc(var(--radius) + 4px); object-fit: cover; max-height: 360px; }
.profile-photo-placeholder { width: 100%; aspect-ratio: 4/3; background: var(--muted); border-radius: calc(var(--radius) + 4px); }
.section-title { font-size: 1.25rem; font-weight: 700; margin: 2rem 0 1rem; letter-spacing: -0.02em; }
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }

.filters-bar { margin-bottom: 0; }
.filters-grid { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 1rem; align-items: end; }
@media (max-width: 768px) { .filters-grid { grid-template-columns: 1fr; } }
.specialist-photo-placeholder { height: 160px; background: var(--muted); border-radius: var(--radius); }

.detail-list { margin: 0; }
.detail-list > div { display: grid; grid-template-columns: 140px 1fr; gap: 0.5rem 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; }
.detail-list > div:last-child { border-bottom: none; }
.detail-list dt { color: var(--muted-foreground); margin: 0; }
.detail-list dd { margin: 0; }

.success-card { padding: 2rem 1.5rem; }
.success-icon {
  width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem; border-radius: 999px;
  background: #dcfce7; color: #166534; font-size: 1.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.table-wrap { padding: 0; overflow-x: auto; }
.table-wrap .table { margin: 0; }
.table-wrap .table th:first-child, .table-wrap .table td:first-child { padding-left: 1.25rem; }
.table-wrap .table th:last-child, .table-wrap .table td:last-child { padding-right: 1.25rem; }

.auth-panel {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.booking-row { padding: 1.25rem !important; }
.booking-row-avatar {
  width: 3.5rem; height: 3.5rem; border-radius: 999px; background: var(--muted);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.25rem;
}
.account-booking-card {
  display: flex; flex-direction: column; gap: 1rem; padding: 1.25rem;
}
@media (min-width: 640px) {
  .account-booking-card { flex-direction: row; align-items: center; }
}
.card-highlight { border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }

.settings-stack { display: grid; gap: 1rem; }
.settings-section .card-title { margin-bottom: 1rem; }
.org-logo-placeholder {
  height: 120px; background: var(--muted); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.role-checklist { display: grid; gap: 0.5rem; }
.role-check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; cursor: pointer; }
