/* Semantic palette shared by the inbox and account UI. Component styles
   consume these tokens; theme selectors only change the palette. */
:root, body.mt-workspace {
 --mt-surface:#fff; --mt-surface-soft:#f3f3f5; --mt-canvas:#fff;
 --mt-star-active:#ffa500; --mt-control-outline:#a6a6a6;
 --mt-message-shadow:0 4px 12px rgb(0 0 0 / .1);
 --mt-info-text:#245fae; --mt-info-surface:#edf3fc;
 --mt-success-text:#23744f; --mt-success-surface:#eaf5ef;
 --mt-warning-text:#956617; --mt-warning-surface:#fff4df;
 --mt-danger-text:#b42318; --mt-danger-surface:#fff1f1;
 --mt-focus-ring:color-mix(in srgb,var(--mt-info-text) 24%,transparent);
 --mt-message-read:#f5f5f5; --mt-message-action-hover:#e8e8e8;
 --mt-text:#19191d; --mt-muted:#64646e; --mt-line:#d6d6dc;
 --mt-link:#373740; --mt-action:#19191d; --mt-action-text:#fff; --mt-accent:#19191d;
 --mt-accent-hover:#36363d; --mt-soft:#ededf0;
 --acct-canvas:var(--mt-canvas); --acct-line:var(--mt-line); --acct-blue:var(--mt-action); --acct-blue-soft:var(--mt-surface-soft);
 --border:var(--mt-line); --ring:var(--mt-control-outline);
 --acct-surface:var(--mt-surface); --acct-muted:var(--mt-muted);
 --mail-muted:var(--mt-muted); --foreground:var(--mt-text);
 --background:var(--mt-canvas); --muted:var(--mt-muted);
 --bs-body-color:var(--mt-text); --bs-heading-color:var(--mt-text);
 --bs-body-bg:var(--mt-canvas); --bs-paper-bg:var(--mt-surface);
 --bs-border-color:var(--mt-line); --bs-secondary-color:var(--mt-muted);
}
html[data-bs-theme="dark"], body.mt-workspace[data-mt-theme="ebony"] {
 color-scheme:dark;
 --mt-surface:#242428; --mt-surface-soft:#303036; --mt-canvas:#1b1b1f;
 --mt-star-active:#ffb800; --mt-control-outline:#d4d4dd;
 --mt-message-shadow:0 4px 12px rgb(0 0 0 / 1);
 --mt-info-text:#9dbfff; --mt-info-surface:#28364a;
 --mt-success-text:#83d5aa; --mt-success-surface:#243c31;
 --mt-warning-text:#eac17b; --mt-warning-surface:#403522;
 --mt-danger-text:#ffa49b; --mt-danger-surface:#482d30;
 --mt-message-read:#202024; --mt-message-action-hover:#393940;
 --mt-text:#eeeef2; --mt-muted:#b4b4bf; --mt-line:#484850;
 --mt-link:#d5d5ef; --mt-action:#555562; --mt-action-text:#fff; --mt-accent:#555562;
 --mt-accent-hover:#686878; --mt-soft:#393940;
}
/* Umbral scopes the dark palette to navigation, including inherited icons. */
body[data-mt-theme="sidebar"] :is(#app-email-sidebar,.acct-sidebar) {
 --foreground:var(--mt-text); --acct-muted:var(--mt-muted); --acct-line:var(--mt-line);
 --bs-heading-color:var(--mt-text); --mt-success-text:#83d5aa;
 --mt-canvas:#202024; --mt-surface:#202024; --mt-surface-soft:#303036;
 --mt-text:#eeeef2; --mt-muted:#b4b4bf; --mt-line:#484850;
 --mt-link:#d5d5ef; --mt-action:#555562; --mt-accent:#d6d6e2; --mt-soft:#393940;
 color:var(--mt-text); background:var(--mt-canvas);
}
/* Shared component contracts, independent of theme selection. */
.mt-workspace :is(dialog,.modal-content,.offcanvas,.dropdown-menu) { background:var(--mt-surface); color:var(--mt-text); border-color:var(--mt-line); }
.mt-workspace :is(input,select,textarea) { color:var(--mt-text); }
.mt-workspace :is(.form-control,.form-select,.mt-organize-search input) { background-color:var(--mt-surface); color:var(--mt-text); border-color:var(--mt-line); }
.mt-workspace :is(input,textarea)::placeholder { color:var(--mt-muted); opacity:1; }
.mt-workspace :is(.mt-collection-settings,.mt-organize-dialog) { --mt-accent:var(--mt-action); --mt-accent-hover:#686878; --mt-soft:var(--mt-surface-soft); }
.mt-workspace :is(.mt-organize-dialog,.mt-collection-editor) { background:var(--mt-surface); color:var(--mt-text); }
.mt-workspace .mt-account-credit { color:var(--mt-text); }
.mt-workspace .mt-account-credit span { color:var(--mt-muted); }
.mt-workspace .acct-sidebar-link-icon { color:inherit!important; }
.mt-workspace .btn-compose { color:var(--mt-action-text)!important; }
/* Recipient labels remain readable without competing with message subjects. */
html[data-bs-theme="dark"] .mt-workspace #mailbox .mail-recipient-badge {
 color:#e6e6ed!important;
 background:#36363f!important;
 opacity:1!important;
}
