/* Account appearance. Light deliberately has no overrides: original values remain exact.
   Components consume shared semantic tokens, with their existing light colors as fallbacks.
   This file changes colors only; dimensions and typography belong to the existing system. */
:root[data-theme="dark"] {
    color-scheme: dark;
    --appearance-canvas: #0d1720;
    --appearance-surface: #14212b;
    --appearance-subtle: #192833;
    --appearance-hover: #20313e;
    --appearance-border: #2b3d4d;
    --appearance-border-soft: #233441;
    --appearance-text: #ccd6e2;
    --appearance-heading: #eef2f7;
    --appearance-muted: #a1afc0;
    --appearance-disabled: #8c9bad;
    --appearance-purple: #b79bea;
    --appearance-purple-bg: #29243e;
    --appearance-purple-hover: #352c4d;
    --appearance-purple-border: #655285;
    --appearance-blue: #8ab6ed;
    --appearance-blue-bg: #1e3248;
    --appearance-blue-border: #3b5e84;
    --appearance-green: #91c9a9;
    --appearance-green-bg: #1c352d;
    --appearance-green-border: #3b6653;
    --appearance-gold: #e1c77e;
    --appearance-gold-bg: #363121;
    --appearance-gold-border: #75643a;
    --appearance-pink: #dfa9c1;
    --appearance-pink-bg: #382834;
    --appearance-pink-border: #785066;
    --appearance-red: #eca4aa;
    --appearance-red-bg: #3a272f;
    --appearance-red-border: #83515c;
    --appearance-teal: #89c5c4;
    --appearance-teal-bg: #1e3439;
    --appearance-teal-border: #3e6569;
    --appearance-action: #7541d4;
    --appearance-action-hover: #6333ba;
    --appearance-on-accent: #ffffff;
    --appearance-shadow: #030a1240;
    --appearance-overlay: #050d16b3;
    --nav-active-ink: #172033;
    --ui-shadow: 0 2px 8px #030a1220;
    --ui-shadow-floating: 0 12px 32px #030a1260;
    --ui-focus: 0 0 0 3px #a78bea30;
}

/* The document canvas and delivered email are content, not application surfaces. */
:root[data-theme="dark"] .email-content-surface {
    color-scheme: light;
    --appearance-surface: initial;
    --appearance-subtle: initial;
    --appearance-border: initial;
    --appearance-border-soft: initial;
    --appearance-text: initial;
    --appearance-heading: initial;
    --appearance-muted: initial;
    --ui-surface: #ffffff;
    --ui-subtle: #f8fafc;
    --ui-border: #e0e5ef;
    --ui-text: #34435b;
    --ui-ink: #101b32;
    --ui-muted: #637189;
    background: #ffffff;
    color: #34435b;
}
:root[data-theme="dark"] :is(.document-editor,.email-body,.signature-preview) {
    color-scheme: light;
    --ui-text: #34435b;
    --ui-ink: #101b32;
    --ui-muted: #637189;
    color: #34435b;
}
:root[data-theme="dark"] :is(.document-editor,.email-body,.signature-preview) a { color: #6d35dc; }
/* Native menus/date controls inherit color-scheme from the document. */
:root[data-theme="dark"] :is(input,textarea,select)::placeholder { color: var(--ui-muted); }

/* A single tour definition; theme changes only inherited presentation tokens. */
:root{--tour-surface:#fff;--tour-ink:#202a3b;--tour-muted:#5f6c82;--tour-dim:rgba(20,32,51,.38);--tour-highlight:rgba(255,255,255,.1);--tour-divider:rgba(100,116,139,.18);--tour-action:#6936d2}
:root[data-theme="dark"]{--tour-surface:#384d64;--tour-ink:#fff;--tour-muted:#d3e6f5;--tour-dim:transparent;--tour-highlight:rgba(181,212,243,.2);--tour-divider:rgba(220,233,249,.16);--tour-action:#7542e4}
