/* Brand colours and font. The public layout overrides them with the clinic's own (BrandPalette.Css); the portal keeps these. */
:root { --brand: #3E6B64; --brand-light: #5A8A82; --brand-dark: #2C4F4A; --brand-tint: #E8F0EE; --brand-glow: #DDEBE7; --brand-footer: #1F3834; --accent: #C47A5A; --accent-glow: #F6E7DE; --brand-font: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
html, body { font-family: var(--brand-font); }
h1:focus { outline: none; }
a { text-decoration: none; }

/* ---------- Brand ---------- */
.brand { color: inherit; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: var(--accent); }
.brand-logo { height: 40px; width: auto; max-width: 180px; object-fit: contain; display: block; }
/* On the dark footer and drawer, a logo drawn for a white page sits on a white card. */
.brand-logo.light { background: #fff; border-radius: 10px; padding: 4px 8px; box-sizing: content-box; }
.brand-text { font-weight: 800; letter-spacing: -0.01em; font-size: 1.05rem; color: #0F172A; }
.brand-text span { color: var(--brand); font-weight: 600; }
.brand-text.light { color: #fff; }
.brand-text.light span { color: var(--accent); }

/* ---------- Public site ---------- */
.public-shell { min-height: 100vh; display: flex; flex-direction: column; background: #fff; color: #0F172A; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.public-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); background: rgba(255,255,255,.88); border-bottom: 1px solid #E2E8F0; }
.public-header .container { height: 64px; }
.public-nav { gap: 4px; margin-left: 20px; }
.public-nav a { padding: 8px 12px; border-radius: 8px; color: #334155; font-weight: 500; }
.public-nav a:hover, .public-nav a.active { background: var(--brand-tint); color: var(--brand); }
.public-nav-mobile { display: flex; flex-direction: column; padding: 4px 20px 12px; }
.public-nav-mobile a { padding: 12px 0; color: #334155; border-bottom: 1px solid #E2E8F0; font-weight: 500; }
.public-main { flex: 1; }
.public-footer { background: var(--brand-footer); color: rgba(255,255,255,.75); padding: 48px 0 24px; margin-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; }
.footer-grid h6 { color: #fff; margin: 0 0 12px; font-size: .95rem; }
.footer-grid a { display: block; color: rgba(255,255,255,.75); padding: 4px 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: .85rem; }
.footer-demo { color: rgba(255,255,255,.55); font-size: .8rem; line-height: 1.5; margin-bottom: 10px; max-width: 70ch; }
.footer-build { color: rgba(255,255,255,.4); font-variant-numeric: tabular-nums; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.hero { position: relative; overflow: hidden; background: radial-gradient(1000px 500px at 0% -10%, var(--brand-glow) 0%, transparent 60%), radial-gradient(800px 450px at 100% 0%, var(--accent-glow) 0%, transparent 55%), #F8FAFC; }
.hero.has-image { background-size: cover; background-position: center; }
.hero .container { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: start; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: 3rem; line-height: 1.05; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 16px; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--brand), var(--brand-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.15rem; color: #475569; max-width: 520px; margin-bottom: 24px; }
.hero-points { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 10px; align-items: center; color: #334155; }
.hero-points .mud-icon-root { color: #16A34A; }
.hero-card { background: #fff; border: 1px solid #E2E8F0; border-radius: 20px; padding: 20px; box-shadow: 0 30px 60px -30px rgba(15,23,42,.35); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); background: var(--brand-tint); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.section { padding: 56px 0; }
.section-title { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 8px; }
.section-sub { color: #64748B; max-width: 640px; margin: 0 0 32px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 22px; transition: transform .2s, box-shadow .2s; color: inherit; display: block; }
.feature:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(15,23,42,.3); }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: #fff; background: var(--brand); }
.feature h4 { margin: 0 0 6px; font-size: 1.05rem; }
.feature p { margin: 0; color: #64748B; font-size: .92rem; }
.feature .price { display: block; margin-top: 10px; font-weight: 700; color: var(--brand); }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 8px 0; border-bottom: 1px solid #E2E8F0; }
.hours-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours-table tr.today td { font-weight: 700; color: var(--brand); }
.cta-band { background: linear-gradient(120deg, var(--brand), var(--brand-dark)); color: #fff; border-radius: 24px; padding: 40px; display: flex; align-items: center; gap: 32px; }
.cta-band h3 { margin: 0 0 8px; font-size: 1.7rem; }
.cta-band p { margin: 0; opacity: .85; }
.prose { max-width: 760px; color: #334155; line-height: 1.7; font-size: 1.05rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2rem; color: #0F172A; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team-card { background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 22px; text-align: center; }
.team-card .mud-avatar { margin: 0 auto 12px; width: 64px; height: 64px; font-size: 1.4rem; }
@media (max-width: 900px) {
    .hero .container { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 32px; }
    .hero h1 { font-size: 2.2rem; }
    .feature-grid, .team-grid { grid-template-columns: 1fr 1fr; }
    .cta-band { flex-direction: column; text-align: center; padding: 28px; }
}
@media (max-width: 600px) { .feature-grid, .team-grid { grid-template-columns: 1fr; } .section { padding: 36px 0; } }

/* ---------- Booking form (public) ---------- */
.booking-steps { display: flex; gap: 8px; margin-bottom: 16px; }
.booking-steps span { flex: 1; height: 4px; border-radius: 2px; background: #E2E8F0; }
.booking-steps span.done { background: var(--brand); }
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.service-option { border: 1px solid #E2E8F0; border-radius: 12px; padding: 12px 14px; cursor: pointer; background: #fff; text-align: left; font: inherit; color: inherit; display: flex; flex-direction: column; gap: 2px; min-height: 64px; }
.service-option:hover { border-color: var(--brand); }
.service-option.selected { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }
.service-option b { font-size: .95rem; }
.service-option small { color: #64748B; }
@media (max-width: 480px) { .service-list { grid-template-columns: 1fr; } }

/* The slot picker: a strip of days, then the times of the chosen day. Big touch targets on purpose. */
.day-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
/* Day, number, month stacked (explicit flex column: a block child inside a button is not enough in every browser). */
.day-chip { flex: 0 0 auto; scroll-snap-align: start; min-width: 72px; padding: 10px 8px; border-radius: 12px; border: 1px solid #E2E8F0; background: #fff; text-align: center; cursor: pointer; font: inherit; color: inherit; line-height: 1.2; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.day-chip small { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #64748B; }
.day-chip b { font-size: 1.25rem; line-height: 1; }
.day-chip em { font-style: normal; font-size: .7rem; color: #16A34A; }
.day-chip.selected { border-color: var(--brand); background: var(--brand); color: #fff; }
.day-chip.selected small, .day-chip.selected em { color: rgba(255,255,255,.85); }
.day-chip.closed, .day-chip.full { opacity: .45; cursor: not-allowed; }
.day-chip.full em { color: #DC2626; }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.time-slot { padding: 10px 6px; border-radius: 10px; border: 1px solid #E2E8F0; background: #fff; text-align: center; cursor: pointer; font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; color: inherit; }
.time-slot:hover { border-color: var(--brand); }
.time-slot.selected { background: var(--brand); border-color: var(--brand); color: #fff; }
.code-input input { letter-spacing: .5em; font-size: 1.5rem; text-align: center; font-variant-numeric: tabular-nums; }
.booking-summary { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; }
.booking-summary b { color: var(--brand); }
.debug-code { background: var(--accent-glow); border: 1px dashed var(--accent); border-radius: 8px; padding: 8px 12px; font-size: .9rem; }
.mud-picker-container, .mud-input-control { max-width: 100%; }

/* Portal (dark mode aware) versions of the picker */
.mud-theme-dark .day-chip, .mud-theme-dark .time-slot, .mud-theme-dark .service-option { background: var(--mud-palette-surface); border-color: var(--mud-palette-lines-default); color: var(--mud-palette-text-primary); }
.mud-theme-dark .day-chip.selected, .mud-theme-dark .time-slot.selected { background: var(--mud-palette-primary); color: #0F1614; }
.mud-theme-dark .booking-summary { background: var(--mud-palette-surface); border-color: var(--mud-palette-lines-default); }

/* ---------- Portal ---------- */
.portal-appbar { border-bottom: 1px solid var(--mud-palette-lines-default); }
.portal-drawer .mud-drawer-content { display: flex; flex-direction: column; }
.portal-nav .mud-nav-link { margin: 2px 12px; border-radius: 8px; }
.portal-nav .mud-nav-link.active { background: rgba(196,122,90,.22) !important; color: #fff !important; }
.portal-nav .mud-nav-link.active .mud-icon-root { color: var(--accent) !important; }
.nav-section { padding: 18px 24px 6px; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.drawer-build { margin-top: auto; padding: 12px 24px 16px; font-size: .68rem; letter-spacing: .04em; color: rgba(255,255,255,.28); font-variant-numeric: tabular-nums; }
.drawer-build:hover { color: rgba(255,255,255,.55); }
.portal-main { background: var(--mud-palette-background); min-height: 100vh; }
.status-chip { font-weight: 600; }
.mud-table-cell, .mud-table-head .mud-table-cell { font-size: .875rem; }
.stat-card { display: flex; flex-direction: column; gap: 4px; }
.stat-card b { font-size: 2rem; font-weight: 800; line-height: 1; }
.stat-card span { color: var(--mud-palette-text-secondary); font-size: .85rem; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.stat-link { cursor: pointer; }
.stat-link:hover { border-color: var(--mud-palette-primary); }
.stat-card.attention { border-color: var(--mud-palette-error); }

/* Appointment cards (customer portal, manage page, dashboard lists) */
.appt-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--mud-palette-lines-default); border-radius: 14px; background: var(--mud-palette-surface); }
.appt-when { min-width: 60px; text-align: center; background: var(--mud-palette-background); border-radius: 12px; padding: 8px 4px; }
.appt-when b { display: block; font-size: 1.4rem; line-height: 1; color: var(--mud-palette-primary); }
.appt-when span { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mud-palette-text-secondary); }
.appt-when em { display: block; font-style: normal; font-weight: 600; font-size: .85rem; margin-top: 4px; }
.appt-body { flex: 1; min-width: 0; }
.appt-body h4 { margin: 0 0 2px; font-size: 1rem; }
.appt-body p { margin: 0; color: var(--mud-palette-text-secondary); font-size: .9rem; }
.appt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.appt-card.past { opacity: .75; }
/* Day headings on the shop's appointment lists. */
.list-day { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mud-palette-text-secondary); padding: 10px 2px 2px; }
.list-day.today { color: var(--mud-palette-primary); }
.list-day.past { opacity: .7; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--mud-palette-lines-default); font-size: .88rem; }
.timeline li time { color: var(--mud-palette-text-secondary); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; gap: 0; } }

/* Week calendar (admin). One column per open day, rows per slot; blocks positioned by grid rows. */
.week-cal { display: grid; grid-template-columns: 56px repeat(var(--days), minmax(120px, 1fr)); gap: 4px; min-width: 0; }
/* Not sticky: .week-scroll is a scroll container, so a sticky header would sit 64px down inside the grid. */
.week-cal .head { background: var(--mud-palette-background); font-weight: 700; text-align: center; padding: 6px 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mud-palette-text-secondary); }
.week-cal .head.today { color: var(--mud-palette-primary); }
.week-cal .time { font-size: .72rem; color: var(--mud-palette-text-secondary); text-align: right; padding-right: 6px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.week-cal .cell { min-height: 28px; border-radius: 6px; border: 1px dashed var(--mud-palette-lines-default); cursor: pointer; }
.week-cal .cell:hover { border-style: solid; border-color: var(--mud-palette-primary); }
.week-cal .cell.closed { border: 0; background: repeating-linear-gradient(45deg, transparent, transparent 6px, var(--mud-palette-lines-default) 6px, var(--mud-palette-lines-default) 7px); cursor: default; }
.week-cal .cell.blackout { background: rgba(220,38,38,.12); border-color: rgba(220,38,38,.3); }
.week-cal .cell.partial { background: rgba(245,158,11,.14); }
.week-cal .block { border-radius: 8px; padding: 4px 8px; color: #fff; font-size: .78rem; line-height: 1.2; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-start; gap: 1px; }
.week-cal .block small { opacity: .9; }
.week-cal .block.requested { background: #C9822B; }
.week-cal .block.confirmed { background: var(--brand); }
.week-cal .block.changerequested { background: #2563EB; }
.week-cal .block.completed { background: #64748B; }
.week-cal .block.noshow { background: #334155; }
.week-cal .block.cancelled, .week-cal .block.declined { background: #CBD5E1; color: #334155; text-decoration: line-through; }
.week-cal .block.draggable { cursor: grab; }
.week-cal .block.dragging { opacity: .45; cursor: grabbing; }
.week-cal .cell.drop-target { border: 2px solid var(--mud-palette-primary); background: rgba(62,107,100,.12); }
.week-cal .block.ghost { background: transparent; border: 2px dashed #2563EB; color: #2563EB; }
.week-scroll { overflow-x: auto; padding-bottom: 8px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .8rem; color: var(--mud-palette-text-secondary); }
.cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }

/* Opening hours editor */
/* Opening hours: [day + switch] [opens | closes] [break from | break to] on one line per day on a laptop; on a
   phone the day heads its block and each pair is a line of two. A closed day shows "Closed" instead of the fields. */
.hours-editor { display: grid; gap: 8px; }
.hours-row { display: grid; grid-template-columns: 170px 1fr 1fr; gap: 8px 16px; align-items: center; min-height: 48px; }
.hours-row .day-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hours-row .day-name { font-weight: 600; }
.hours-row .time-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hours-row .closed-note { grid-column: 2 / -1; font-style: italic; }
.hours-row .mud-input-control { min-width: 0; margin-top: 0; }
.hours-row .mud-input-adornment { display: none; } /* the clock icon costs 32px per picker; the field is obviously a time */
@media (max-width: 800px) {
  .hours-row { grid-template-columns: 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--mud-palette-lines-default); }
  .hours-row:first-child { border-top: none; padding-top: 0; }
  .hours-row .closed-note { grid-column: auto; margin-top: -6px; }
}

/* Services: the table on a laptop, cards on a phone (MudTable's own stacked mode squeezed the service cell). */
.service-cards { display: none; flex-direction: column; gap: 8px; }
.service-card { padding: 12px 14px; cursor: pointer; }
.service-card:hover, .service-card:focus-visible { background: var(--mud-palette-action-default-hover); outline: none; }
.service-status { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; white-space: nowrap; color: var(--mud-palette-text-secondary); }
.service-facts { font-weight: 600; font-size: .9rem; }
@media (max-width: 959.98px) { .services-table { display: none; } .service-cards { display: flex; } }

/* Shop settings, administrators: the table on a laptop, a card each on a phone (the table overflowed sideways). */
.admin-cards { display: none; flex-direction: column; gap: 8px; }
.admin-card { padding: 10px 12px; }
.admin-card .admin-email { font-size: .85rem; overflow-wrap: anywhere; }
@media (max-width: 959.98px) { .admins-table { display: none; } .admin-cards { display: flex; } }

/* Closures list: icon in a narrow column, the text right after it. */
.closure-row { display: flex; align-items: flex-start; gap: 12px; padding: 8px; border-radius: 8px; cursor: pointer; }
.closure-row:hover, .closure-row:focus-visible { background: var(--mud-palette-action-default-hover); outline: none; }

/* Error UI from template */
#blazor-error-ui { color-scheme: light only; background: lightyellow; bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,.2); box-sizing: border-box; display: none; left: 0; padding: .6rem 1.25rem .7rem 1.25rem; position: fixed; width: 100%; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }
.blazor-error-boundary { background: #b32121; padding: 1rem 1rem 1rem 3.7rem; color: white; }
.blazor-error-boundary::after { content: "An error has occurred."; }

/* Forms shown as a page instead of a modal (phones and small tablets) — see ResponsiveDialog. */
.form-page { position: fixed; inset: 0; z-index: var(--mud-zindex-dialog, 1400); display: flex; flex-direction: column; background: var(--mud-palette-surface); }
.form-page-bar { display: flex; align-items: center; gap: 4px; padding: 6px 12px 6px 4px; border-bottom: 1px solid var(--mud-palette-lines-default); }
.form-page-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.form-page-content { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 16px; }
.form-page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--mud-palette-lines-default); }

/* An expanded detail row inside a MudTable (Customers): on a phone the table stacks every cell as a flex row with
   its data-label on the left, which laid the whole panel out side by side, wider than the screen. Plain block.
   Phone widths only (the table's Breakpoint.Sm): on a laptop a block cell drops its colspan and the panel was
   squeezed into the Name column. */
@media (max-width: 959.98px) {
  .mud-table .mud-table-cell.table-detail-cell { display: block; width: 100%; box-sizing: border-box; }
  .mud-table .mud-table-cell.table-detail-cell::before { content: none; display: none; }
}

/* ---------- HealthBook: booking wizard ---------- */
.min-w-0 { min-width: 0; }
.wizard-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.wizard-count { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%; border: 3px solid var(--brand); display: flex; align-items: center; justify-content: center; color: var(--brand); }
.wizard-count span { font-size: 1.3rem; font-weight: 800; line-height: 1; }
.wizard-count small { font-size: .75rem; margin-left: 2px; color: #64748B; }
.wizard-title { font-size: 1.25rem; font-weight: 700; line-height: 1.25; }
.wizard-next { color: #64748B; font-size: .9rem; }
.wizard-crumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.crumb { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #DDE5E3; background: #F4F8F7; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: .85rem; cursor: pointer; color: inherit; }
.crumb .mud-icon-root { font-size: .9rem; opacity: .6; }
.crumb:hover { border-color: var(--brand); }

.choice-list { display: grid; gap: 10px; }
/* Many disciplines (the booking's first step): two columns from tablet width, descriptions kept to two lines. */
@media (min-width: 640px) {
  .choice-list.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-list.two-col .choice-text small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
.choice { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; border: 1px solid #E2E8F0; border-radius: 14px; padding: 14px 16px; background: #fff; font: inherit; color: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.choice:hover { border-color: var(--brand); box-shadow: 0 10px 24px -18px rgba(15,23,42,.45); transform: translateY(-1px); }
.choice.selected { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }
.choice-icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-tint); color: var(--brand); }
.choice-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.choice-text b { font-size: 1rem; }
.choice-text small { color: #64748B; font-size: .85rem; line-height: 1.35; }
.choice-text small.choice-facts { color: var(--brand); font-weight: 600; margin-top: 2px; }
.choice-arrow { color: #94A3B8; }

.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.option-card { border: 1px solid #E2E8F0; border-radius: 14px; padding: 18px 12px; background: #fff; font: inherit; color: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.option-card b { font-size: 1.2rem; }
.option-card span { color: var(--brand); font-weight: 600; }
.option-card:hover { border-color: var(--brand); }
.option-card.selected { border-color: var(--brand); background: var(--brand); color: #fff; }
.option-card.selected span { color: var(--accent-glow); }

.practitioner-list { display: flex; flex-wrap: wrap; gap: 8px; }
.practitioner-chip { display: inline-flex; align-items: center; gap: 10px; border: 1px solid #E2E8F0; border-radius: 999px; padding: 6px 14px 6px 6px; background: #fff; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.practitioner-chip b { display: block; font-size: .92rem; line-height: 1.2; }
.practitioner-chip small { display: block; color: #64748B; font-size: .75rem; line-height: 1.2; }
.practitioner-chip:hover { border-color: var(--brand); }
.practitioner-chip.selected { border-color: var(--brand); background: var(--brand-tint); box-shadow: inset 0 0 0 1px var(--brand); }
.practitioner-chip .avatar { width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 700; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; }
.practitioner-chip .avatar.any { background: #94A3B8; }
.time-group-label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #64748B; margin: 10px 0 6px; }
.booking-card { border-radius: 20px !important; }
.booking-section { padding-top: 40px; }
.booking-footer { border-top: 1px solid #E2E8F0; padding: 18px 0 24px; color: #64748B; font-size: .85rem; text-align: center; }
.booking-footer .footer-demo { color: #94A3B8; margin: 6px auto 0; }
.mini-avatar { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: .62rem; font-weight: 700; vertical-align: middle; flex: 0 0 auto; }
.mud-theme-dark .choice, .mud-theme-dark .option-card, .mud-theme-dark .practitioner-chip, .mud-theme-dark .crumb { background: var(--mud-palette-surface); border-color: var(--mud-palette-lines-default); color: var(--mud-palette-text-primary); }
.mud-theme-dark .choice.selected, .mud-theme-dark .practitioner-chip.selected { background: rgba(140,199,188,.12); }

/* ---------- Public site (clinic) ---------- */
.team-card { display: block; color: inherit; transition: transform .2s, box-shadow .2s; }
a.team-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(15,23,42,.3); }
.team-avatar { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 1.4rem; margin: 0 auto 12px; }
.team-avatar.small { width: 48px; height: 48px; font-size: 1rem; margin: 0; flex: 0 0 auto; }
.team-card h4 { margin: 0; font-size: 1.1rem; }
.team-title { color: var(--brand); font-weight: 600; margin: 2px 0 8px; }
.team-card p.mud-text-secondary { font-size: .9rem; margin: 0 0 10px; }
.team-book { display: inline-block; margin-top: 6px; color: var(--accent); font-weight: 700; }
.team-services { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin: 6px 0; }
.team-services span { font-size: .72rem; background: var(--brand-tint); color: var(--brand-dark); border-radius: 999px; padding: 2px 8px; }
.team-services span.off { opacity: .5; text-decoration: line-through; }
.catalogue-category { margin-bottom: 36px; }
.catalogue-title { font-size: 1.5rem; font-weight: 800; margin: 0; }
.catalogue-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.price-list span { font-size: .8rem; font-weight: 600; color: var(--brand-dark); background: var(--brand-tint); border-radius: 8px; padding: 3px 8px; }
.home-bottom { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: stretch; }
.home-bottom .cta-band { flex-direction: column; align-items: flex-start; }
.home-hours { background: #fff; }
@media (max-width: 900px) { .catalogue-grid { grid-template-columns: 1fr 1fr; } .home-bottom { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .catalogue-grid { grid-template-columns: 1fr; } }
.booking-link { background: var(--mud-palette-background); border: 1px solid var(--mud-palette-lines-default); border-radius: 8px; padding: 4px 10px; font-size: .9rem; overflow-wrap: anywhere; }

/* ---------- Admin: services ---------- */
.catalogue-admin { overflow: hidden; }
.catalogue-admin.off { opacity: .7; }
.catalogue-admin-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--mud-palette-lines-default); background: var(--mud-palette-background); }
.service-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--mud-palette-lines-default); }
.service-row:hover { background: var(--mud-palette-action-default-hover); }
.service-row.off b { text-decoration: line-through; opacity: .6; }
.service-row-facts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.length-chip { font-size: .75rem; font-weight: 600; border-radius: 6px; padding: 2px 7px; background: rgba(62,107,100,.12); color: var(--mud-palette-primary); }
.length-chip.off { opacity: .45; text-decoration: line-through; }
.service-row-people { display: flex; gap: 3px; margin-top: 5px; font-size: .8rem; }
.option-editor { display: flex; flex-direction: column; gap: 6px; }
.option-editor-row { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 8px; align-items: center; }
@media (max-width: 600px) { .option-editor-row { grid-template-columns: 1fr 1fr; } }

/* ---------- Admin: practitioners ---------- */
.practitioner-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.practitioner-admin { padding: 16px; }
.practitioner-admin.off { opacity: .6; }
.practitioner-admin-body { margin-top: 10px; }
.practitioner-admin .team-services { justify-content: flex-start; }
.week-summary { border-collapse: collapse; font-size: .85rem; margin-top: 8px; }
.week-summary td { padding: 2px 10px 2px 0; vertical-align: top; }
.week-summary td:first-child { font-weight: 600; text-transform: capitalize; width: 48px; }
.week-editor { display: flex; flex-direction: column; gap: 6px; }
.week-editor-day { display: grid; grid-template-columns: 110px 1fr auto; gap: 8px; align-items: start; padding: 6px 0; border-bottom: 1px dashed var(--mud-palette-lines-default); }
.week-editor-name { font-weight: 600; padding-top: 10px; text-transform: capitalize; }
.week-editor-periods { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.week-editor-periods > .mud-text-secondary { padding-top: 6px; }
.week-editor-period { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; align-items: center; }
.week-editor-period .mud-input-adornment { display: none; }
@media (max-width: 600px) { .week-editor-day { grid-template-columns: 1fr auto; } .week-editor-name { grid-column: 1 / -1; padding-top: 0; } }
.color-dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.color-dot.selected { border-color: var(--mud-palette-text-primary); box-shadow: 0 0 0 2px var(--mud-palette-surface) inset; }

/* ---------- Admin: calendar with practitioners ---------- */
.practitioner-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--mud-palette-lines-default); border-radius: 999px; padding: 3px 12px 3px 4px; background: var(--mud-palette-surface); font: inherit; font-size: .85rem; color: var(--mud-palette-text-primary); cursor: pointer; }
.pf-chip.off { opacity: .45; }
.pf-chip.selected { border-color: var(--mud-palette-primary); box-shadow: inset 0 0 0 1px var(--mud-palette-primary); }
.week-cal { gap: 0 4px; }
.week-cal .cell { min-height: 20px; border-radius: 0; border: 0; border-top: 1px dotted var(--mud-palette-lines-default); background: var(--mud-palette-surface); }
.week-cal .cell.hour { border-top: 1px solid var(--mud-palette-lines-default); }
.week-cal .cell:hover { outline: 2px solid var(--mud-palette-primary); outline-offset: -2px; }
.week-cal .cell.off { background: repeating-linear-gradient(45deg, var(--mud-palette-surface), var(--mud-palette-surface) 6px, var(--mud-palette-lines-default) 6px, var(--mud-palette-lines-default) 7px); }
.week-cal .time { font-size: .7rem; }
.week-cal .head { display: flex; align-items: center; justify-content: center; gap: 6px; text-transform: none; letter-spacing: 0; font-size: .85rem; }
.week-cal .block { box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.room-chip { display: inline-flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--mud-palette-lines-default); border-radius: 10px; padding: 6px 12px; background: var(--mud-palette-surface); font: inherit; color: var(--mud-palette-text-primary); cursor: pointer; }
.room-chip small { color: var(--mud-palette-text-secondary); font-size: .75rem; }
.room-chip:hover { border-color: var(--mud-palette-primary); }
.room-chip.off { opacity: .5; }
.service-row-rooms { font-size: .8rem; color: var(--mud-palette-text-secondary); margin-top: 3px; display: flex; align-items: center; gap: 4px; }

/* ---------- Settings: look of the public site ---------- */
.branding-image { min-height: 56px; display: flex; align-items: center; }
.color-field { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; cursor: pointer; }
.color-field input[type=color] { width: 44px; height: 32px; padding: 0; border: 1px solid var(--mud-palette-lines-default); border-radius: 8px; background: none; cursor: pointer; }
