/* Shared theme tokens. Screenshots and exported documents are never filtered. */
:root{--body-size:14px;--surface:#fff;--surface-soft:#f0f5f2;--button-ink:#fff;--accent-ink:#176d59}
html[data-seeva-text=large]{--body-size:16px}html[data-seeva-text=larger]{--body-size:18px}
html[data-seeva-accent=blue]{--green:#1858ae;--soft:#e9f0fc;--accent-ink:#1858ae}
html[data-seeva-accent=violet]{--green:#7041a3;--soft:#f0eafb;--accent-ink:#7041a3}
html[data-seeva-accent=copper]{--green:#975020;--soft:#fbefe4;--accent-ink:#975020}
html[data-seeva-theme=dark]{color-scheme:dark;--bg:#121b19;--paper:#1c2925;--surface:#1c2925;--surface-soft:#263932;--ink:#e8f0ec;--muted:#b1c3ba;--line:#435b50;--green:#87d9bb;--soft:#263e33;--accent-ink:#87d9bb;--button-ink:#102a20;--shadow:0 12px 35px #0003}
html[data-seeva-theme=dark][data-seeva-accent=blue]{--green:#94c0ff;--accent-ink:#94c0ff;--soft:#26374e}
html[data-seeva-theme=dark][data-seeva-accent=violet]{--green:#d4b2ff;--accent-ink:#d4b2ff;--soft:#392d48}
html[data-seeva-theme=dark][data-seeva-accent=copper]{--green:#f1b78a;--accent-ink:#f1b78a;--soft:#463426}
body{font-size:var(--body-size)}main p,.work-message,.chat-bubble,.chat-instruction{font-size:var(--body-size)}input,textarea,select{font-size:var(--body-size)}
.appearance-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:18px}.appearance-fields label{display:grid;gap:7px}.appearance-preview{border:1px solid var(--line);border-radius:14px;padding:20px;margin:24px 0;background:var(--soft)}
html[data-seeva-theme=dark] :is(.panel,.button.ghost,.item,.step,.chat-conversation,.chat-draft,.work-chat-context[open],.work-source,.work-message,.work-email-reply,.work-reply-editor,.seeva-composer,.seeva-attach-menu,.seeva-chat-manage,.work-length-options,.frame-card,.guide-step,.cardmenu,dialog){background:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-seeva-theme=dark] :is(input,textarea,select,#workChatPrompt,#chatPrompt){background-color:var(--surface);color:var(--ink);border-color:var(--line)}
html[data-seeva-theme=dark] :is(.work-message.user,.chat-bubble.user,.chat-bubble,.item.selected,.settings-overview,.notice,#chatDrop,.studio-stage,.studio-workspace,.studio-source-picker,.capture-method,.screen,.work-chat-related,.work-length-options button[aria-pressed=true]){background:var(--surface-soft);color:var(--ink);border-color:var(--line)}
html[data-seeva-theme=dark] :is(.library-card,.library-card .item,.library-catalog,.seeva-icon-button,#settings .settings-section-link){background:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-seeva-theme=dark] :is(.library-card strong,.library-card .item strong,.library-card small,.work-chat-welcome h3,.settings-sections strong,.fold-title,.chat-intro h2){color:var(--ink)}
html[data-seeva-theme=dark] .button:not(.ghost):not(.danger){background:var(--green);border-color:var(--green);color:var(--button-ink)}
html[data-seeva-theme=dark] :is(.seeva-send-arrow,.seeva-live-button){background:var(--green);color:var(--button-ink)}
html[data-seeva-theme=dark] .notice.warn{background:#3b311c;color:#f1d9a1;border-color:#ddb56b}
html[data-seeva-theme=dark] .tag{background:#30483d;color:#d0e5d9}html[data-seeva-theme=dark] .tag.draft{background:#49381c;color:#f4d294}html[data-seeva-theme=dark] .tag.review{background:#343556;color:#d9dcff}
html[data-seeva-theme=dark] #workflowImageViewport{background:#101815}html[data-seeva-theme=dark] #workflowImageTitle{color:var(--ink)}
html[data-seeva-density=compact] :is(.panel,.chat-conversation,.chat-draft){padding:16px}html[data-seeva-density=compact] .work-message{padding:12px;margin-block:8px}
html[data-seeva-motion=reduce] *,html[data-seeva-motion=reduce] *::before,html[data-seeva-motion=reduce] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

html[data-seeva-theme=dark] input::placeholder,html[data-seeva-theme=dark] textarea::placeholder{color:var(--muted);opacity:1}
html[data-seeva-theme=dark] #settings .settings-section-link svg{color:var(--green)}
html[data-seeva-theme=dark] .seeva-memory-indicator{background:var(--soft);color:var(--ink)}
html[data-seeva-theme=dark] #library .library-toolbar{background:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-seeva-theme=dark] :is(.cardtools .iconbtn,.cardmenu button){color:var(--ink);background:transparent}
html[data-seeva-theme=dark] .cardtools .delete{color:#ffada3}
html[data-seeva-theme=dark] .favourite-card[aria-pressed=true]{color:var(--green);background:var(--soft)}
html[data-seeva-theme=dark] #seevaHelp{color:var(--button-ink)}
html[data-seeva-theme=dark] :is(.kpi,.assistant-mode-bar,.backup-email,#backupGmailSetup,#assistantEmail,#chatMaterials,.badgebox,.capture-summary,.source-original){background:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-seeva-theme=dark] .assistant-mode-bar{background:var(--surface-soft)}
html[data-seeva-theme=dark] :is(.kpi strong,.kpi small){color:var(--ink)}
html[data-seeva-theme=dark] #assistantReply{background:var(--paper);color:var(--ink)}

html[data-seeva-theme=dark] .seeva-floating-launcher{background:#285d4b;border-color:#77b99d;box-shadow:0 8px 25px #0005}
html[data-seeva-theme=dark] .seeva-bot-face{fill:#285d4b}

html[data-seeva-theme=dark] #libraryPreviewDialog{background:var(--bg);color:var(--ink)}
html[data-seeva-theme=dark] #libraryPreviewDialog .preview-step-navigation{background:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-seeva-theme=dark] #workflowImageDialog{background:var(--paper);color:var(--ink)}
html[data-seeva-theme=dark] .workflow-image-open{background:var(--surface-soft);color:var(--ink);border-color:var(--line)}
/* Keep native select semantics with a consistently inset chevron. */
select:not([multiple]){appearance:none;-webkit-appearance:none;padding-inline-end:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23465f54' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:16px}
html[data-seeva-theme=dark] select:not([multiple]){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23e8f0ec' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:16px;padding-inline-end:40px}
@media(forced-colors:active){select:not([multiple]){appearance:auto;-webkit-appearance:auto;background-image:none}}
@media(forced-colors:active){html[data-seeva-theme] body select:not([multiple]){appearance:auto;-webkit-appearance:auto;background-image:none}}
/* Import targets inherit the theme instead of retaining pale inline backgrounds. */
html[data-seeva-theme=dark] :is(#dropzone,#packageDrop,.video-drop){background:var(--surface-soft)!important;color:var(--ink);border-color:var(--line)}
html[data-seeva-theme=dark] :is(#dropzone,#packageDrop,.video-drop):is(:hover,:focus-visible){background:var(--soft)!important;color:var(--ink)}
