/* Shared appearance controls. Layout and motion belong to the page stylesheets. */
.theme-toggle { --thumb-travel: 22px; display: grid; place-items: center; flex: none; width: 52px; height: 40px; padding: 0; border: 0; border-radius: 999px; background: transparent; cursor: pointer; visibility: hidden; }
.theme-ready .theme-toggle { visibility: visible; }
.theme-track { display: block; position: relative; width: 100%; height: 30px; border: 1px solid var(--line); border-radius: inherit; background: #39304d; }
.theme-thumb { position: absolute; top: 3px; left: 3px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #c5bff9; color: #39304d; box-shadow: 0 1px 3px #0002; transition: transform 150ms ease; }
.theme-toggle[aria-checked="true"] .theme-thumb { transform: translateX(var(--thumb-travel)); }
.theme-toggle:hover .theme-track { border-color: var(--accent); }
:root[data-theme="light"] .theme-track { background: #e6e0f2; }
:root[data-theme="light"] .theme-thumb { background: #fff; color: #6f64a9; }
.theme-toggle .theme-sun { display: none; }
:root[data-theme="light"] .theme-toggle .theme-sun { display: block; }
:root[data-theme="light"] .theme-toggle .theme-moon { display: none; }
.site-header .button-nav { white-space: nowrap; flex: none; }
.theme-logo-light { display: none; }
:root[data-theme="light"] .theme-logo-dark { display: none; }
:root[data-theme="light"] .theme-logo-light { display: block; }

/* Account surfaces, inputs, validation, dashboard and password dialog. */
:root[data-theme="dark"] .account-google-button { background: #131314; border-color: #8e918f; color: #e3e3e3; }
:root[data-theme="dark"] .account-google-button:hover { background: #232324; }
:root[data-theme="light"] :focus-visible { outline-color: #6753c0; }
:root[data-theme="light"] :is(.account-card, .dashboard-panel, .dashboard-detail-panel, .dashboard-password) { background: #ffffffed; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }
:root[data-theme="light"] .account-field { color: var(--ink); }
:root[data-theme="light"] .account-field input { color: var(--ink); background: #fcfbff; border-color: #898397; }
:root[data-theme="light"] .account-field input:hover { border-color: var(--accent); }
:root[data-theme="light"] .account-field input::placeholder { color: var(--subtle); }
:root[data-theme="light"] .account-field input[aria-invalid="true"] { border-color: var(--error); }
:root[data-theme="light"] :is(.account-field small, .account-retention-notice, .account-session-options small, .account-footer, .account-legal a, .account-back, .account-auth-divider, .account-feedback p, .account-oauth-status, .account-security-check p, .account-cooldown) { color: var(--muted); }
:root[data-theme="light"] :is(.account-text-link, .account-password button, .dashboard-change-action) { color: var(--accent); }
:root[data-theme="light"] .account-text-link { text-decoration-color: #5140a555; }
:root[data-theme="light"] :is(.account-text-link:hover, .account-back:hover, .account-legal a:hover) { color: var(--ink); }
:root[data-theme="light"] .account-password button:hover { background: var(--control-hover); }
:root[data-theme="light"] :is(.account-field small.account-field-error, .account-oauth-status[data-state="error"]) { color: var(--error); }
:root[data-theme="light"] .account-feedback[data-state="error"] { border-color: var(--error); }
:root[data-theme="light"] :is(.account-form-foot, .dashboard-rail, .dashboard-facts > div, .dashboard-empty, .dashboard-account-removal) { border-color: var(--line); }
:root[data-theme="light"] .account-auth-divider::before, :root[data-theme="light"] .account-auth-divider::after { background: var(--line); }
:root[data-theme="light"] .account-scene-icon { color: var(--accent); background: #ede8ff; border-color: #6753c044; }
:root[data-theme="light"] .dashboard-rail { background: #edeaf578; }
:root[data-theme="light"] :is(.dashboard-tabs button, .dashboard-exit, .dashboard-account-email, .dashboard-facts dt, .dashboard-device-count, .dashboard-empty, .dashboard-privacy, .dashboard-privacy .icon, .dashboard-password-intro, .dashboard-password-help p, .dashboard-password-row, .dashboard-account-removal > summary, .dashboard-download small) { color: var(--muted); }
:root[data-theme="light"] :is(.dashboard-tabs button:hover, .dashboard-exit:hover, .dashboard-password-close:hover) { background: var(--control-hover); color: var(--ink); }
:root[data-theme="light"] .dashboard-tabs button[aria-selected="true"] { background: #e7e1fa; color: #41317e; border-color: #6753c044; }
:root[data-theme="light"] .dashboard-facts dd { color: var(--ink); }
:root[data-theme="light"] .account-status { color: #514572; background: #eee9f8; border-color: var(--line); }
:root[data-theme="light"] .dashboard-download { background: linear-gradient(125deg,#eee8ff,#fff8f5); }
:root[data-theme="light"] [data-account-screen="dashboard"] button:disabled { color: #6c647c; background: #eae5f0; border-color: #c3bacf; }
:root[data-theme="light"] .dashboard-password-close { color: var(--muted); }
:root[data-theme="light"] .dashboard-password::backdrop { background: #25213880; }

/* Navigation and shared website controls. Primary logos use explicit light/dark artwork. */
:root[data-theme="light"] .site-header[data-state="scrolled"] { background: #f7f6fcec; box-shadow: 0 4px 24px #51407810; }
:root[data-theme="light"] :is(.main-nav > a, .language-switch a, .footer-top nav, .footer-bottom, .back-link) { color: var(--muted); }
:root[data-theme="light"] :is(.main-nav > a:hover, .footer-top nav > a:hover, .privacy-link:hover) { color: var(--ink); }
:root[data-theme="light"] .main-nav > :is(.nav-product, .nav-company) { background: #eae7f9; border-color: #8678bd66; }
:root[data-theme="light"] .main-nav > :is(.nav-product, .nav-company):hover { background: #e2dcf5; }
:root[data-theme="light"] :is(.language-switch, .menu-button) { background: #ffffffa8; border-color: var(--line); }
:root[data-theme="light"] .language-switch a[aria-current] { color: #41317e; background: #ddd7f5; }
:root[data-theme="light"] :is(.button-primary, .button-nav, .button-flow.button-primary, .button-flow.button-nav) { color: #fff; background: #6552ba; border-color: #6552ba; }
:root[data-theme="light"] :is(.button-primary:hover, .button-nav:hover, .button-flow.button-primary:hover, .button-flow.button-nav:hover) { background: #51409f; border-color: #51409f; }
:root[data-theme="light"] :is(.button-secondary, .button-flow.button-secondary) { background: #fff9; color: var(--ink); border-color: #776b9c80; }
:root[data-theme="light"] :is(.button-secondary:hover, .button-flow.button-secondary:hover) { background: #eee8ff; }
:root[data-theme="light"] :is(.eyebrow, .micro-label, .section-kicker, .murmur-kicker, .murmur-small-kicker) { color: var(--accent); }
:root[data-theme="light"] :is(.hero-description, .logo-header > p, .product-mention-copy p, .product-copy > p:not(.eyebrow), .product-features, .product-preview figcaption) { color: var(--muted); }
:root[data-theme="light"] .hero::after { background: linear-gradient(0deg,var(--bg),transparent 30%); }
:root[data-theme="light"] :is(.hero h1, .murmur-page .murmur-hero h1) { color: #4b4268; }
:root[data-theme="light"] :is(.hero h1 > span, .muted-heading) { background-image: linear-gradient(110deg,#8276c5 5%,#ba669d 65%,#bc7750); background-clip: text; -webkit-background-clip: text; }
:root[data-theme="light"] :is(.hero-flow, .about-wave, .contact-wave, .projects-wave, .murmur-hero > .murmur-wave) { opacity: .26; }
:root[data-theme="light"] :is(.product-mention-card, .product-detail-grid article, .product-launch-note) { background: linear-gradient(120deg,#ede7fc,#fff2ed); border-color: var(--line); }
:root[data-theme="light"] .murmur-page .site-footer { background: var(--bg); }
:root[data-theme="light"] .privacy-dialog { background: var(--surface); color: var(--ink); border-color: var(--line); }
:root[data-theme="light"] .client-catzo img { filter: brightness(0) opacity(.8); }
:root[data-theme="light"] .client-millenium img { filter: brightness(.35); }
:root[data-theme="light"] .client-rightsized > span:first-child { color: #117caa; }
:root[data-theme="light"] .client-rightsized > span:last-child { color: #11775a; }

/* Eunoia services, projects, process, About, FAQ and contact preview. */
:root[data-theme="light"] :is(.solutions-section, .service-tab, .service-tone-0) { --service-accent: #5c4aaa; --service-tint: #eae4fb; }
:root[data-theme="light"] :is(.service-tab:nth-child(2), .service-tone-1) { --service-accent: #a23468; --service-tint: #f8e5ef; }
:root[data-theme="light"] :is(.service-tab:nth-child(3), .service-tone-2) { --service-accent: #9b5025; --service-tint: #f9e9d9; }
:root[data-theme="light"] :is(.service-tab:nth-child(4), .service-tone-3) { --service-accent: #34679a; --service-tint: #e1effb; }
:root[data-theme="light"] .service-tab { background: #fff9; border-color: var(--line); }
:root[data-theme="light"] .service-tab[aria-selected="true"] { background: linear-gradient(110deg,var(--service-tint),#fff); border-color: var(--service-accent); }
:root[data-theme="light"] .service-panel { background: radial-gradient(ellipse at 100% 0%,var(--service-tint),transparent 70%),#ffffffd9; }
:root[data-theme="light"] :is(.service-tab strong, .service-example strong, .process-card h3, .faq > summary) { color: var(--ink); }
:root[data-theme="light"] :is(.service-body, .service-scope li, .service-example li p, .process-content > p, .about-description, .about-experience, .about-section .section-kicker, .faq-intro, .faq > p, .contact-copy > p, .contact-form-footer > p) { color: var(--muted); }
:root[data-theme="light"] .service-example { background: #fff9; box-shadow: var(--shadow); }
:root[data-theme="light"] .service-example li > div { background: #f3f0f9; border-color: var(--line); }
:root[data-theme="light"] .workflow-bubble { --bubble-accent: #5c4aaa; --bubble-tint: #eae4fb; --bubble-surface: #fff; color: var(--ink); box-shadow: var(--shadow); }
:root[data-theme="light"] .workflow-tone-1 .workflow-bubble { --bubble-accent: #a23468; --bubble-tint: #f8e5ef; --bubble-surface: #fff; }
:root[data-theme="light"] .workflow-tone-2 .workflow-bubble { --bubble-accent: #34679a; --bubble-tint: #e1effb; --bubble-surface: #fff; }
:root[data-theme="light"] .workflow-tone-3 .workflow-bubble { --bubble-accent: #9b5025; --bubble-tint: #f9e9d9; --bubble-surface: #fff; }
:root[data-theme="light"] .workflow-detail-title { color: var(--ink); }
:root[data-theme="light"] .workflow-description { color: var(--muted); }
:root[data-theme="light"] .process-step { --step-accent: #5c4aaa; --step-tint: #eae4fb; }
:root[data-theme="light"] .process-step:nth-child(2) { --step-accent: #a23468; --step-tint: #f8e5ef; }
:root[data-theme="light"] .process-step:nth-child(3) { --step-accent: #9b5025; --step-tint: #f9e9d9; }
:root[data-theme="light"] .process-step:nth-child(4) { --step-accent: #34679a; --step-tint: #e1effb; }
:root[data-theme="light"] .process-card { background: radial-gradient(ellipse at 100% 0%,var(--step-tint),#ffffff 85%); border-color: var(--line); }
:root[data-theme="light"] .process-node { background: var(--bg); box-shadow: 0 0 0 7px var(--bg); }
:root[data-theme="light"] :is(.about-principles li, .faq) { background: #ffffffbf; color: var(--ink); border-color: var(--line); }
:root[data-theme="light"] .faq[open] { background: #f0eafa; border-color: #8a77bc; }
:root[data-theme="light"] .faq-toggle { color: var(--accent); background: #eae4f8; }
:root[data-theme="light"] .about-principles .icon { color: var(--accent); }
:root[data-theme="light"] .about-principles li:nth-child(2) .icon { color: #a23468; }
:root[data-theme="light"] .about-principles li:nth-child(3) .icon { color: #9b5025; }
:root[data-theme="light"] .contact-section::after { background: none; }
:root[data-theme="light"] .contact-email { color: var(--accent); }
:root[data-theme="light"] .contact-form { background: #ffffffdf; border-color: var(--line); box-shadow: var(--shadow); }
:root[data-theme="light"] .contact-preview { background: #f8e5ef; color: #92335e; }
:root[data-theme="light"] .contact-fields label { color: var(--ink); }
:root[data-theme="light"] .contact-fields :is(input,textarea) { background: #fcfbff; color: var(--ink); border-color: #898397; }
:root[data-theme="light"] .contact-fields :is(input,textarea)::placeholder { color: var(--subtle); }

/* Murmur's explanatory surfaces. The simulations use product-demo-light.css. */
:root[data-theme="light"] .murmur-page { --product-copy: var(--muted); --product-border: var(--line); --product-shadow: var(--shadow); }
:root[data-theme="light"] .murmur-page :is(.murmur-intro,.murmur-meta li,.demo-caption-label,.feature-scene-copy > p,.feature-scene-detail,.feature-tool-descriptions p,.feature-tool-descriptions small,.workspace-chapters small,.workspace-remembered,.workspace-film-label,.murmur-faq-list p) { color: var(--muted); }
:root[data-theme="light"] .murmur-page :is(.feature-scene-copy h3,.feature-tool-descriptions h3,.murmur-final h2) { color: var(--ink); }
:root[data-theme="light"] .murmur-page :is(.murmur-kicker,.feature-tools-copy > .murmur-kicker,.workspace-story-copy > .murmur-kicker) { color: var(--accent); }
:root[data-theme="light"] .feature-scenes-layout { --scene-accent: #5c4aaa; --scene-tint: #ece6fb; }
:root[data-theme="light"] :is([data-feature-scene="glossary"],[data-feature-scene-panel="glossary"]) { --scene-accent: #34679a; --scene-tint: #e1effb; }
:root[data-theme="light"] :is([data-feature-scene="details"],[data-feature-scene-panel="details"]) { --scene-accent: #8a591b; --scene-tint: #f6ead3; }
:root[data-theme="light"] :is([data-feature-scene="translation"],[data-feature-scene-panel="translation"]) { --scene-accent: #7a4099; --scene-tint: #f1e4fa; }
:root[data-theme="light"] .murmur-page .feature-scene-tabs button { background: #ffffffbf; color: var(--ink); }
:root[data-theme="light"] .murmur-page .feature-scene-tabs [aria-selected="true"] { background: radial-gradient(ellipse at 0 0,var(--scene-tint),transparent 90%),#fff; }
:root[data-theme="light"] .murmur-page .feature-scene-panel { background: radial-gradient(ellipse at 90% 0,var(--scene-tint),transparent 65%),#ffffffe8; border-color: var(--line); }
:root[data-theme="light"] .feature-highlight-types mark { background: #f3e5c6; color: #784a10; border-color: #a16c28; }
:root[data-theme="light"] .murmur-page .feature-tool-descriptions { background: radial-gradient(ellipse at 0 0,#f6e4f4,transparent 80%),#ffffffe0; border-color: var(--line); border-left-color: #a05d8f; }
:root[data-theme="light"] .feature-description-label { color: var(--accent); }
:root[data-theme="light"] .murmur-page .feature-tools-figure > .feature-tool-invitation { background: linear-gradient(125deg,#eee6fa,#fff4ee); color: #514078; border-color: #8670ad; }
:root[data-theme="light"] .feature-tool-invitation strong { color: #514078; }
:root[data-theme="light"] .feature-tool-invitation :is(.feature-hover-hint,.feature-touch-hint) { color: #615477; }
:root[data-theme="light"] .feature-invitation-cursor { background: #e0d6ef; color: #67508b; }
:root[data-theme="light"] .feature-invitation-arrow { color: #8463aa; }
:root[data-theme="light"] .murmur-page .feature-tools-figure > .feature-tool-invitation:hover { background: linear-gradient(125deg,#e7dcf7,#ffefe7); border-color: #8463aa; }
:root[data-theme="light"] .murmur-page .workspace-chapters button { background: #ffffffbf; color: var(--ink); }
:root[data-theme="light"] .murmur-page .workspace-chapters button[aria-selected="true"] { background: linear-gradient(120deg,#f3e3f0,#eee9fa); border-color: #9874ae; box-shadow: inset 3px 0 #a26d99; }
:root[data-theme="light"] .murmur-page .workspace-movie { background: #eeeaf8; border-color: var(--line); }
:root[data-theme="light"] .murmur-page .workspace-chapters button > .icon { color: var(--accent); }
:root[data-theme="light"] .workspace-playback button, :root[data-theme="light"] .workspace-step-navigation button { color: var(--accent); background: #ffffffb8; border-color: var(--line); }
:root[data-theme="light"] .workspace-step-position { color: var(--muted); }
:root[data-theme="light"] .murmur-page .murmur-faq-list { background: #ffffffc9; }
:root[data-theme="light"] .murmur-faq-list summary .icon { color: var(--accent); }
:root[data-theme="light"] .murmur-page .murmur-faq-list summary:hover { color: var(--accent); }
:root[data-theme="light"] .murmur-page :is(.product-ribbons,.product-atmosphere) { opacity: .3; }
:root[data-theme="light"] .demo-playback button { background: #ffffffb8; color: var(--accent); border-color: var(--line); }
:root[data-theme="light"] .demo-step { color: var(--muted); }

/* Privacy bento and the public legal documents. */
:root[data-theme="light"] .privacy-protection { color: var(--ink); background: #ffffffeb; border-color: var(--line); --protection-color: #686075; }
:root[data-theme="light"] .privacy-protection-0 { background: #eaeafd; border-color: #6a7cff58; --protection-color: #5045a3; }
:root[data-theme="light"] .privacy-protection-4 { background: #f7eaf0; border-left-color: #ae6a89; --protection-color: #a23468; }
:root[data-theme="light"] :is(.privacy-protection h3,.privacy-commitment h3,.privacy-responsibility-grid h4,.privacy-library-entry strong) { color: var(--ink); }
:root[data-theme="light"] :is(.privacy-protection > p,.privacy-detail-label,.privacy-library-entry span,.privacy-library-status,.privacy-commitment-heading p,.privacy-responsibilities > summary,.privacy-responsibility-grid p) { color: var(--muted); }
:root[data-theme="light"] :is(.privacy-commitment-icon,.privacy-source,.privacy-responsibilities > summary:hover) { color: var(--accent); }
:root[data-theme="light"] .legal-page { background: radial-gradient(ellipse at 4% 0%,#d8cef540,transparent 30%),var(--bg); }
:root[data-theme="light"] :is(.legal-draft,.legal-contact,.legal-review) { background: #ffffffcc; border-color: var(--line); }
:root[data-theme="light"] :is(.legal-draft strong,.legal-scope strong,.legal-toc h2,.legal-contact strong,.legal-contact dd,.legal-mobile-toc summary) { color: var(--ink); }
:root[data-theme="light"] :is(.legal-draft p,.legal-scope p,.legal-document-nav a,.legal-heading > span,.legal-heading > p,.legal-toc a,.legal-mobile-toc a,.legal-section p,.legal-contact dt,.legal-review li) { color: var(--muted); }
:root[data-theme="light"] :is(.legal-section a,.legal-toc a:hover,.legal-mobile-toc a:hover,.legal-document-nav a:hover) { color: var(--accent); }
:root[data-theme="light"] .legal-document-nav a[aria-current] { background: #e8e0f8; color: #514078; border-color: #8b77b366; }

@media (max-width: 1050px) {
  :root[data-theme="light"] .main-nav { background: #f7f6fcfa; }
}
@media (min-width: 1051px) and (max-width: 1350px) {
  .site-header .nav-wrap { display: flex; gap: 22px; }
  .site-header .main-nav { gap: 18px; margin-left: auto; }
  .site-header .brand { flex: none; width: 135px; }
  .site-header .nav-actions { flex: none; }
}
@media (max-width: 600px) {
  .theme-toggle { --thumb-travel: 14px; width: 40px; height: 36px; }
  .theme-track { height: 26px; }
  .theme-thumb { width: 18px; height: 18px; }
  .theme-thumb svg { width: 12px; height: 12px; }
  .site-header .nav-wrap { gap: 8px; }
  .site-header .nav-actions { gap: 6px; }
  .site-header .brand { width: 104px; min-width: 88px; }
  .site-header .language-switch a { min-width: 30px; }
  .site-header .button-nav { display: none; }
  .account-header-actions { gap: 10px; }
}
@media (forced-colors: active) {
  .theme-track { border: 1px solid ButtonText; background: Canvas; }
  .theme-thumb { background: ButtonText; color: Canvas; }
  :root[data-theme="light"] :is(.hero h1 > span,.muted-heading) { background: none; color: CanvasText; -webkit-text-fill-color: CanvasText; }
}
@media (prefers-reduced-motion: reduce) {
  .theme-thumb { transition: none; }
}
