/* Website palette based on Murmur's light desktop colors, from
   murmur-build/src/interpreter_tool/ui/frontend/rounded-ui.css.
   No dependency on the desktop checkout. Dark demos retain their own styles. */
:root[data-theme="light"] .murmur-page {
  --app-bg: #eef1f7;
  --app-panel: #ffffff;
  --app-surface-2: #f5f7fb;
  --app-surface-3: #e9edf5;
  --app-border: #d9dfeb;
  --app-border-strong: #b8c3d5;
  --app-fg: #202b40;
  --app-fg-strong: #142039;
  --app-muted: #617089;
  --app-subtle: #697992;
  --app-accent: #6864d8;
  --app-en: #6864d8;
  --app-es: #96601e;
  --app-en-bg: rgba(104,100,216,.07);
  --app-es-bg: rgba(174,91,25,.07);
  --app-data: #8a6106;
  --app-data-bg: #fbebba;
  --app-shadow: 0 12px 32px #25345124;
}

:root[data-theme="light"] .murmur-hero-transcription { --hero-highlight-tint: #fff1b4; color: #f2b600; }
:root[data-theme="light"] .murmur-hero-audience { --hero-highlight-tint: #dedbfa; color: #625dc3; }

/* The main window and its chrome, in the hero and both walkthroughs. */
:root[data-theme="light"] .murmur-page :is(.demo-desktop-window,.feature-reading-window,.feature-tools-window,.demo-dictionary-window,.workspace-murmur,.workspace-demo-tools) {
  color-scheme: light; color: var(--app-fg); border-color: var(--app-border-strong); box-shadow: var(--app-shadow);
}
:root[data-theme="light"] :is(.demo-desktop-window,.feature-reading-window) { background: var(--app-bg); }
:root[data-theme="light"] :is(.demo-dictionary-window,.feature-tools-window,.workspace-demo-tools) { background: var(--app-panel); }
:root[data-theme="light"] .workspace-murmur { background: rgb(238 241 247 / var(--app-opacity)); }
:root[data-theme="light"] :is(.demo-app-toolbar,.demo-app-bottom,.demo-dictionary-heading,.feature-window-bar,.feature-window-footer,.feature-tool-heading,.workspace-app-bar,.workspace-app-footer,.workspace-tools-bar) { background: var(--app-panel); border-color: var(--app-border); color: var(--app-muted); }
:root[data-theme="light"] .murmur-page :is(.demo-app-toolbar,.feature-window-bar,.workspace-main-title) img { content: url("/assets/brand/murmur-app-logo-light.svg"); }
:root[data-theme="light"] :is(.demo-app-actions,.demo-tools-toggle,.demo-mic .icon,.demo-dictionary-heading > button,.demo-dictionary-heading > span,.feature-language-pair,.feature-window-footer,.feature-tool-heading small,.workspace-language-pair,.workspace-pin,.workspace-toolbar-control,.workspace-footer-timer,.workspace-footer-actions > i,.workspace-tools-bar > .icon) { color: var(--app-muted); }
:root[data-theme="light"] :is(.demo-desktop-window,.feature-reading-window,.workspace-murmur) .mock-window-controls { color: var(--app-muted); }
:root[data-theme="light"] :is(.demo-desktop-window,.feature-reading-window,.workspace-murmur) .mock-window-close { color: var(--app-muted); }
:root[data-theme="light"] :is(.demo-dictionary-heading > strong,.feature-tool-heading strong,.workspace-tools-bar > strong) { color: var(--app-fg-strong); }

/* Captions, translations, glossary and yellow data highlights. */
:root[data-theme="light"] :is(.demo-turn,.feature-call-bubble,.workspace-app-transcript article) { background: var(--app-en-bg); border-color: var(--app-border); }
:root[data-theme="light"] :is(.demo-turn-es,.feature-call-es,.workspace-app-transcript .workspace-bubble-es) { background: var(--app-es-bg); }
:root[data-theme="light"] :is(.demo-turn p,.feature-call-bubble p,.workspace-app-transcript p) { color: var(--app-fg-strong); }
:root[data-theme="light"] :is(.demo-below-translation,.feature-target) { border-color: var(--app-border-strong); }
:root[data-theme="light"] :is(.demo-below-translation p,.feature-target p,.feature-bubble-translate) { color: var(--app-muted); }
:root[data-theme="light"] :is(.demo-lang-en,.feature-en) { color: var(--app-en); }
:root[data-theme="light"] :is(.demo-lang-es,.feature-es,.demo-meaning-equivalent[lang="es"],.feature-equivalent strong,.workspace-reference-panel > b) { color: var(--app-es); }
:root[data-theme="light"] :is(.demo-word.demo-glossary-term,.feature-glossary-word,.workspace-app-transcript mark) { color: var(--app-accent); background: var(--app-en-bg); border-color: var(--app-accent); }
:root[data-theme="light"] :is(.demo-word.demo-date-term,.feature-data-word,.workspace-app-transcript b) { color: var(--app-data); background: var(--app-data-bg); border-color: currentColor; }
:root[data-theme="light"] :is(.demo-translate-control,.feature-translation-state,.feature-window-footer > button) { background: var(--app-surface-2); color: var(--app-muted); border-color: var(--app-border-strong); }
:root[data-theme="light"] :is([data-translation-hover="true"] .demo-translate-control,[data-translation-enabled="true"] .demo-translate-control,.feature-translation-state[aria-pressed="true"],.feature-translation-state[aria-pressed="false"]) { background: var(--app-en-bg); border-color: var(--app-accent); color: var(--app-accent); }
:root[data-theme="light"] .feature-translation-state[aria-pressed="true"] { background: var(--app-accent); color: #fff; }
:root[data-theme="light"] .feature-translation-state[aria-pressed="true"]::after { background: #fff; border-color: #fff; }
:root[data-theme="light"] .feature-translation-state[aria-pressed="false"]::after { border-color: var(--app-accent); }
:root[data-theme="light"] :is(.feature-translation-state::before,.feature-bubble-translate::after,.feature-glossary-word::after) { border-color: var(--app-accent); }
:root[data-theme="light"] :is(.feature-bubble-translate:hover,.feature-bubble-translate:focus-visible) { color: var(--app-accent); outline-color: var(--app-accent); }

/* Transient reference cards stay readable during the animated and interactive states. */
:root[data-theme="light"] :is(.demo-glossary-tip,.demo-translate-tip,.feature-definition-popover,.feature-definition-popover::before,.workspace-settings-popover) { background: var(--app-panel); border-color: var(--app-border-strong); color: var(--app-fg); box-shadow: var(--app-shadow); }
:root[data-theme="light"] :is(.demo-tip-pair,.feature-definition-popover > div,.workspace-settings-popover > strong) { color: var(--app-fg-strong); }
:root[data-theme="light"] :is(.demo-tip-pair > span,.demo-tip-pair .icon,.feature-definition-popover > div > .icon) { color: var(--app-accent); }
:root[data-theme="light"] :is(.feature-definition-popover > p,.feature-definition-popover > div > span,.demo-dictionary-local,.demo-part-of-speech,.demo-sample-note,.demo-not-found) { color: var(--app-muted); }
:root[data-theme="light"] :is([data-mode="movie"][data-dictionary="true"] .demo-lookup-term,[data-mode="interactive"] button.demo-word:hover:not(.demo-glossary-term),.demo-word[data-selected="true"]) { background: #6864d81c; outline-color: var(--app-accent); }
:root[data-theme="light"] [data-emphasis="definition"] [data-demo-target="definition"] { background: #6864d81c; color: var(--app-fg-strong); }
:root[data-theme="light"] [data-emphasis="equivalent"] [data-demo-target="equivalent"] { background: var(--app-data-bg); }

/* The tool windows: dictionary, glossary, scripts, notes and timers. */
:root[data-theme="light"] :is(.feature-tool-tabs,.demo-tool-tabs,.demo-glossary-entry,.feature-glossary-entry) { border-color: var(--app-border); }
:root[data-theme="light"] :is(.feature-tool-tabs button,.demo-tool-tabs button,.demo-word-suggestions button,.feature-meaning-options button,.feature-script-choices button,.demo-script-languages button,.feature-script-language button,.demo-script-back,.demo-timer-actions button,.feature-timer-actions button,.workspace-preset,.workspace-detach) { background: var(--app-surface-2); color: var(--app-muted); border-color: var(--app-border-strong); }
:root[data-theme="light"] :is(.feature-tool-tabs button:is(:hover,:focus-visible),.feature-tool-tabs [aria-selected="true"],.demo-tool-tabs [aria-selected="true"],.demo-tools-toggle[aria-expanded="true"],.feature-meaning-options [aria-pressed="true"],.feature-script-choices [aria-pressed="true"],.demo-script-languages [aria-pressed="true"],.feature-script-language [aria-pressed="true"],.demo-script-library [data-demo-script-open]:hover) { background: var(--app-en-bg); color: var(--app-accent); border-color: var(--app-accent); }
:root[data-theme="light"] :is(.feature-meaning-options button::after,.feature-script-choices button::after,.feature-timer-actions button::after) { border-color: var(--app-accent); }
:root[data-theme="light"] :is(.demo-dictionary-search,.feature-query,.demo-script-search,.feature-script-search,.workspace-note-panel,.workspace-reference-panel) { color: var(--app-fg); background: var(--app-bg); border-color: var(--app-border-strong); }
:root[data-theme="light"] :is(.demo-dictionary-search input,.demo-script-search input,.feature-script-search input) { color: var(--app-fg); }
:root[data-theme="light"] :is(.demo-script-search input::placeholder,.feature-script-search input::placeholder,.demo-notes-wrap textarea::placeholder,.feature-notes-wrap textarea::placeholder) { color: var(--app-muted); }
:root[data-theme="light"] :is(.demo-dictionary-search:focus-within,.demo-script-search:focus-within,.feature-script-search:focus-within) { border-color: var(--app-accent); outline-color: var(--app-accent); }
:root[data-theme="light"] :is(.demo-dictionary-search .icon,.demo-dictionary-search > button,.feature-query .icon,.feature-tool-heading .icon,.demo-dictionary-heading > .icon,.demo-script-search .icon,.feature-script-search,.demo-script-library [data-demo-script-open] .icon) { color: var(--app-accent); }
:root[data-theme="light"] :is(.demo-meaning,.feature-dictionary-sense) { background: var(--app-surface-2); border-color: var(--app-border); }
:root[data-theme="light"] :is(.demo-meaning > strong,.feature-dictionary-word,.demo-script-library [data-demo-script-open],.workspace-reference-panel > strong) { color: var(--app-fg-strong); }
:root[data-theme="light"] :is(.demo-meaning p,.feature-dictionary-sense p,.demo-glossary-entry p,.feature-glossary-entry p,.demo-script-text,.feature-script-body,.workspace-note-panel p) { color: var(--app-fg); }
:root[data-theme="light"] :is(.demo-meaning-equivalent,.feature-glossary-entry strong,.demo-glossary-entry > strong) { color: var(--app-en); }
:root[data-theme="light"] .demo-glossary-entry > span { color: var(--app-es); }
:root[data-theme="light"] :is(.feature-dictionary-term small,.feature-tool-eyebrow,.feature-glossary-entry > div > span,.feature-script-empty,.feature-script-choices small,.demo-script-library summary,.workspace-note-panel > span,.workspace-reference-tabs,.workspace-reference-panel > strong > small) { color: var(--app-muted); }
:root[data-theme="light"] :is(.demo-notes-wrap textarea,.feature-notes-wrap textarea) { background: var(--app-panel); color: var(--app-fg); border-color: var(--app-border-strong); }
:root[data-theme="light"] :is(.demo-notes-wrap > button,.feature-notes-wrap > button) { color: var(--app-muted); background: var(--app-panel); }
:root[data-theme="light"] :is(.demo-timer-label,.demo-timer-state,.feature-timer h4,.feature-timer > p) { color: var(--app-muted); }
:root[data-theme="light"] :is(.demo-timer-display,.feature-countdown) { color: var(--app-accent); }
:root[data-theme="light"] .feature-timer-icon { background: var(--app-en-bg); color: var(--app-accent); border-color: var(--app-border-strong); }
:root[data-theme="light"] .feature-timer[data-status="done"] :is(.feature-countdown,p) { color: var(--app-data); }

/* Workspace settings and docked tools. The simulated call platform stays unchanged. */
:root[data-theme="light"] :is(.workspace-opacity-setting > span,.workspace-ghost-setting,.workspace-ghost-setting kbd,.workspace-timer-panel) { color: var(--app-muted); border-color: var(--app-border-strong); }
:root[data-theme="light"] :is(.workspace-opacity-setting b,.workspace-timer-panel strong) { color: var(--app-accent); }
:root[data-theme="light"] .workspace-opacity-track { background: var(--app-border-strong); }
:root[data-theme="light"] :is(.workspace-opacity-track > i,.workspace-opacity-track > span) { background: var(--app-accent); }
:root[data-theme="light"] :is(.workspace-ghost-setting kbd,.workspace-timer-panel,.workspace-preset-menu) { background: var(--app-surface-2); }
:root[data-theme="light"] .workspace-preset-menu { border-color: var(--app-border-strong); }
:root[data-theme="light"] .workspace-preset-menu > span { color: var(--app-muted); }
:root[data-theme="light"] .workspace-preset-menu > span:nth-child(2) { background: var(--app-en-bg); color: var(--app-accent); }
:root[data-theme="light"] .workspace-footer-actions > b { background: var(--app-accent); color: #fff; border-color: var(--app-accent); }
:root[data-theme="light"] :is([data-state="pinned"],[data-state="settings"],[data-state="opacity"],[data-state="opacity-full"],[data-state="ghost"],[data-state="ghost-done"],[data-state="restored"],[data-scene="layout"]) .workspace-pin { color: var(--app-accent); background: var(--app-en-bg); border-color: var(--app-border-strong); }
:root[data-theme="light"] :is([data-state="settings"],[data-state="opacity"],[data-state="opacity-full"]) .workspace-control-settings { color: var(--app-accent); background: var(--app-en-bg); border-color: var(--app-accent); }
