:root{--surface:#fff;--raised:#edf5fc}
:root[data-theme=dark]{--ink:#e3eaf9;--sub:#abb9cc;--paper:#0b1220;--line:#293a50;--emphasis:#43b4e4;--kicker:#43b4e4;--selection:#173f58;--surface:#131e2e;--raised:#1b2a3c;color-scheme:dark}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:84px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:5px;background:var(--surface);color:var(--ink);font:700 14px/1.4 var(--font-body);cursor:pointer;flex-shrink:0}
.theme-toggle [data-theme-icon]{font-size:21px;line-height:1}
.theme-toggle:hover{border-color:var(--accent)}
.theme-toggle:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.admin-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.support-theme{position:absolute;top:16px;right:20px;z-index:30}
[data-theme=dark] .site-header{background:var(--paper)}
[data-theme=dark] :is(.white,.service-card,.credential-card,.testimonial-card,.filter-button,.sidebar,.panel,.overview-card,.summary-card,.secondary-button,.account-badge,.appointment-destination,.inquiry-preview,.attachment-upload,.media-card-body){background:var(--surface);color:var(--ink)}
[data-theme=dark] :is(input,textarea,select){background:#101c2c;color:var(--ink);border-color:#40536c}
[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#94a7be;opacity:1}
[data-theme=dark] :is(.dark,.appointment-panel,.preview-strip,.noscript-note,.login-intro){background:#12243d;color:#edf4ff}
[data-theme=dark] :is(.dark .intro,.dark .fine,.dark .eyebrow,.appointment-panel p:not(.eyebrow),.appointment-panel .eyebrow){color:#c6d7eb}
[data-theme=dark] :is(.appointment-unavailable,.status-pill,.pill,.gallery-image,.editor-image-preview){background:var(--raised);color:var(--sub)}
[data-theme=dark] :is(.button,.floating-contact,.filter-button[aria-pressed=true],.sidebar nav a[aria-current]){background:var(--accent);color:#fff;border-color:var(--accent)}
[data-theme=dark] :is(.button:hover,.floating-contact:hover){background:#176591;color:#fff;border-color:#43b4e4}
[data-theme=dark] :is(.secondary-button:hover,.filter-button:hover){border-color:var(--accent)}
[data-theme=dark] .sidebar nav a:not([aria-current]):hover{background:var(--raised)}
[data-theme=dark] .brand-logo text,[data-theme=dark] .brand-logo g{fill:var(--ink)}
[data-theme=dark] .brand-logo circle:first-of-type{fill:var(--surface)}
[data-theme=dark] .notice.error,[data-theme=dark] .danger-button{background:#3c1926;color:#ffb8c7;border-color:#8a4055}
[data-theme=dark] .field-error{color:#ffb8c7}
[data-theme=dark] .notice.success,[data-theme=dark] .pill.published{background:#12352c;color:#a3e6c3;border-color:#346551}
[data-theme=dark] .notice.warning{background:#382c17;color:#f2d29a;border-color:#78603b}
[data-theme=dark] .image-viewer figure img{background:var(--surface)}
[data-theme=dark] input[type=file]::file-selector-button{background:var(--raised);color:var(--ink);border-color:var(--line)}
@media(max-width:1050px){.site-header .theme-toggle{min-width:44px;padding:8px}.site-header .theme-toggle [data-theme-label]{display:none}}
@media(max-width:360px){.site-header .brand-logo{width:140px}.nav-wrap{gap:8px}.menu-toggle{padding-inline:10px}}

@media(max-width:600px){.site-header .menu-toggle{font-size:0;line-height:1;width:44px;min-height:44px;padding:8px;flex-shrink:0}.site-header .menu-toggle::after{content:'☰';font-size:20px;line-height:1}}

/* Raised sections must follow the active palette, including testimonials. */
[data-theme=dark] .tinted{background:var(--raised);color:var(--ink);border-color:var(--line)}
[data-theme=dark] .tinted :is(h2,h3,.eyebrow){color:var(--ink)}
[data-theme=dark] .tinted .intro{color:var(--sub)}
[data-theme=dark] .testimonial-card{background:var(--surface);border-color:#344961;color:var(--ink)}
[data-theme=dark] .testimonial-card figcaption p{color:var(--sub)}
[data-theme=dark] .certificate-image{background:var(--surface);color:var(--ink);border-color:var(--line)}
[data-theme=dark] .gallery-empty{background:linear-gradient(125deg,var(--raised),var(--surface));border-color:#40536c;color:var(--ink)}
[data-theme=dark] .skip-link{background:var(--surface);color:var(--ink);border:1px solid var(--accent)}
/* Shared brand scrollbars: preserve native keyboard, wheel and touch scrolling. */
:root{--scroll-track:#edf5fc;--scroll-thumb:#2697cd;--scroll-hover:#30327e}
:root[data-theme=dark]{--scroll-track:#0b1220;--scroll-thumb:#2697cd;--scroll-hover:#43b4e4}
*{scrollbar-width:thin;scrollbar-color:var(--scroll-thumb) var(--scroll-track)}
html{scrollbar-gutter:stable}
@supports selector(::-webkit-scrollbar){
 *{scrollbar-width:auto;scrollbar-color:auto}
 ::-webkit-scrollbar{width:9px;height:9px}
 ::-webkit-scrollbar-track{background:var(--scroll-track);border-radius:12px}
 ::-webkit-scrollbar-thumb{background:var(--scroll-thumb);border:2px solid var(--scroll-track);border-radius:12px;min-height:40px}
 ::-webkit-scrollbar-thumb:hover{background:var(--scroll-hover)}
 ::-webkit-scrollbar-button{display:none;width:0;height:0}
 ::-webkit-scrollbar-corner{background:var(--scroll-track)}
}
@media(forced-colors:active){*{scrollbar-width:auto;scrollbar-color:auto}}
