/* Shared theme layer. Original page styles remain unchanged. */
:root { color-scheme: light; --theme-focus:#087c9d; }
.theme-control { flex:0 0 auto; }

.theme-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
:focus-visible { outline:2px solid var(--theme-focus); outline-offset:3px; }
:root[data-theme=dark] { color-scheme:dark; --theme-focus:#80d9f0; --ink:#e6eef2; --muted:#aabcc6; --soft:#142630; --line:#344955; --white:#1b303b; --shadow:0 20px 60px #0005; --navy:#8dd5e8; --navy2:#c5e7f0; --pink:#c6004f; --surface:#1b303b; --canvas:#101e27; --field:#142630; --accent:#efb99a; }
html[data-theme=dark], html[data-theme=dark] body { background:var(--canvas); color:var(--ink); }
[data-theme=dark] :is(.site-header,.quick-strip,.doctor-badge,.about-point,.feature-card,.contact-card,.mobile-nav.open,.booking-topbar,.step,.scheduler-card,.tracking-card,.success-modal,.medical-item,.slot-button) { background:var(--surface); border-color:var(--line); }
[data-theme=dark] .hero { background:linear-gradient(180deg,var(--canvas),var(--soft)); }
[data-theme=dark] :is(.desktop-nav a,.about-point,.brand,.booking-intro h1,.field span,.slot-button) { color:var(--ink); }
[data-theme=dark] :is(.quick-icon,.step b) { background:#263f4c; color:#c5e7f0; }
[data-theme=dark] .feature-icon { background:#443821; color:#f4d480; }
[data-theme=dark] .about-point:before { background:#173e32; color:#8ce0b0; }
[data-theme=dark] :is(.section-kicker,.contact-number) { color:#ff91b8; }
[data-theme=dark] :is(.topbar,.site-footer) { background:#092330; }
[data-theme=dark] .cta-box { background:linear-gradient(120deg,#042b3b,#0a5069); }
[data-theme=dark] .cta-box .primary-btn { color:#042b3b; }
[data-theme=dark] :is(.menu-toggle,.ci.call,.float-call,.hero-card) { background:#07516a; color:white; }
[data-theme=dark] :is(.brand-logo,.booking-topbar .brand img,.footer-brand img) { background:#fff; border-radius:8px; padding:3px; }
[data-theme=dark] :is(.booking-intro>p,.step,.section-head p,.availability-status,.approval-note,.success-modal p,.phone-clinic-hint) { color:var(--muted); }
[data-theme=dark] :is(.language,.section-number,.reference-box) { background:#3c302c; color:var(--accent); border-color:#805c4a; }
[data-theme=dark] :is(.booking-intro .eyebrow,.reference-box small,.step.active) { color:var(--accent); }
[data-theme=dark] .step.active { border-color:#b8876b; }
[data-theme=dark] .step.active b { background:#8d6249; color:#fff; }
[data-theme=dark] :is(.field input,.field textarea,.field select) { background:var(--field); border-color:var(--line); color:var(--ink); }
[data-theme=dark] :is(.field input,.field textarea,.field select):focus { background:#1c3441; border-color:var(--accent); box-shadow:0 0 0 3px #efb99a30; }
[data-theme=dark] :is(input,textarea)::placeholder { color:#9aafb9; opacity:1; }
[data-theme=dark] .divider { background:var(--line); }
[data-theme=dark] .empty-slots { background:var(--field); color:var(--muted); border-color:var(--line); }
[data-theme=dark] .slot-button small { color:#85dfb3; }
[data-theme=dark] .slot-button.selected { background:#17627b; border-color:#80d9f0; color:#fff; }
[data-theme=dark] :is(.primary-button,.back-home) { background:#17627b; color:#fff; }
[data-theme=dark] .secondary-button { background:#8d6249; color:#fff; }
[data-theme=dark] :is(.selected-appointment,.success-icon,.success) { background:#153d30!important; color:#a3ebc2!important; border-color:#387b5d!important; }
[data-theme=dark] :is(.error,.remove-phone) { background:#49262d!important; color:#ffc0c8!important; border-color:#90505b!important; }
[data-theme=dark] .info { background:#193a52!important; color:#b9ddff!important; border-color:#416c8e!important; }
[data-theme=dark] .api-alert:not(.error):not(.success):not(.info) { background:#443321; color:#ffd6a2; border-color:#88613b; }
[data-theme=dark] .add-phone-button { color:#d0b5ff; }
[data-theme=dark] .medical-item input { accent-color:#a788ed; }
[data-theme=dark] .modal-backdrop { background:#000b; }
.success-modal { max-height:calc(100dvh - 40px); overflow:auto; }
@media(max-width:800px) { .booking-topbar { flex-wrap:wrap; gap:8px; } .top-actions { flex-wrap:wrap; align-items:center; justify-content:flex-end; flex:1; } }
@media(max-width:700px) { .header-main { gap:8px; } .header-actions { gap:5px; }  }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }

/* Icon-only appearance toggle. */
.theme-toggle { display:inline-grid; place-items:center; width:44px; height:44px; padding:0; border:1px solid #dfe5e8; border-radius:12px; background:#fff; color:#07394d; cursor:pointer; flex-shrink:0; transition:background .18s,color .18s,border-color .18s; }
.theme-toggle svg { width:22px; height:22px; pointer-events:none; }
.theme-toggle:hover { background:#edf5f7; border-color:#9abcc8; }
.theme-toggle .theme-sun { display:none; }
[data-theme=dark] .theme-toggle { background:var(--field); color:#f4d480; border-color:var(--line); }
[data-theme=dark] .theme-toggle:hover { background:#263f4c; border-color:#80d9f0; }
[data-theme=dark] .theme-toggle .theme-moon { display:none; }
[data-theme=dark] .theme-toggle .theme-sun { display:block; }
@media(prefers-reduced-motion:reduce) { .theme-toggle { transition:none; } }
