/* Appearance overrides for owner communications. Layout stays in each module. */
html[data-sl-theme="light"] :is(.lead-page,.message-page,.message-list-page,.office-communications,.owner-support-page,.owner-help-page,.owner-screen-page,.owner-support-modal,.demo-dialog:has(.owner-support-modal)) {
  --tc-bg:#eef3f8;
  --tc-panel:#ffffff;
  --tc-raised:#e8eff7;
  --tc-row:#f3f7fb;
  --tc-field:#ffffff;
  --tc-text:#17293f;
  --tc-muted:#40566f;
  --tc-line:#a7b7c9;
  --tc-field-line:#73879f;
  --tc-accent:#805015;
  --tc-link:#1455a0;
  --tc-focus:#1d4ed8;
  --tc-metal:linear-gradient(125deg,#f4e9d7,#e8eff7 70%,#ffffff);
  --tc-bronze:linear-gradient(145deg,#855025,#6d3b1c);
  --tc-bronze-hover:#653716;
  --tc-secondary:#e2ebf5;
  --tc-secondary-hover:#cfdeed;
  --tc-note:#f8efdf;
  --tc-owner-bubble:#f8efdf;
  --tc-client-bubble:#e7eff8;
  --tc-info-bg:#e4f1ff;
  --tc-info-text:#164872;
  --tc-info-line:#6b97bd;
  --tc-success-bg:#e1f2e9;
  --tc-success-text:#185a3d;
  --tc-success-line:#5d997d;
  --tc-warning-bg:#fff0d2;
  --tc-warning-text:#694516;
  --tc-warning-line:#b18a49;
  --tc-error-bg:#ffeaec;
  --tc-error-text:#8b293b;
  --tc-error-line:#bf7482;
  --tc-number-text:#ffffff;
  color-scheme:light;
}

html[data-sl-theme="dark"] :is(.lead-page,.message-page,.message-list-page,.office-communications,.owner-support-page,.owner-help-page,.owner-screen-page,.owner-support-modal,.demo-dialog:has(.owner-support-modal)) {
  --tc-bg:#111923;
  --tc-panel:#1a2635;
  --tc-raised:#25364c;
  --tc-row:#203044;
  --tc-field:#101b29;
  --tc-text:#eef4fb;
  --tc-muted:#bdcadb;
  --tc-line:#526882;
  --tc-field-line:#6d829c;
  --tc-accent:#f2ce8c;
  --tc-link:#9ed7ff;
  --tc-focus:#f6d48b;
  --tc-metal:linear-gradient(125deg,#443324,#223247 70%,#243549);
  --tc-bronze:linear-gradient(145deg,#855025,#6d3b1c);
  --tc-bronze-hover:#985b2b;
  --tc-secondary:#2a3c53;
  --tc-secondary-hover:#354c68;
  --tc-note:#3a3025;
  --tc-owner-bubble:#3a3025;
  --tc-client-bubble:#26374d;
  --tc-info-bg:#173b58;
  --tc-info-text:#c6e6ff;
  --tc-info-line:#6eaad8;
  --tc-success-bg:#183e33;
  --tc-success-text:#b6f0d4;
  --tc-success-line:#65af90;
  --tc-warning-bg:#46371d;
  --tc-warning-text:#ffe0a3;
  --tc-warning-line:#be984e;
  --tc-error-bg:#542b31;
  --tc-error-text:#ffe3e5;
  --tc-error-line:#d48a96;
  --tc-number-text:#17293f;
  color-scheme:dark;
}

html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.lead-page,.message-page,.message-list-page,.office-communications,.owner-support-page,.owner-help-page,.owner-screen-page) {
  background:var(--tc-bg);
  color:var(--tc-text);
  accent-color:var(--tc-accent);
}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.owner-support-modal,.demo-dialog:has(.owner-support-modal)) {
  background:var(--tc-panel);
  color:var(--tc-text);
  border-color:var(--tc-line);
  accent-color:var(--tc-accent);
}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.lead-page,.message-page,.message-list-page,.office-communications,.owner-support-page,.owner-help-page,.owner-screen-page,.owner-support-modal) :is(h1,h2,h3,h4,label,legend) {color:var(--tc-text)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.lead-page,.message-page,.message-list-page,.office-communications,.owner-support-page,.owner-help-page,.owner-screen-page,.owner-support-modal) a {color:var(--tc-link)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.lead-page,.message-page,.message-list-page,.office-communications,.owner-support-page,.owner-help-page,.owner-screen-page,.owner-support-modal) :focus-visible {outline-color:var(--tc-focus)}

/* Native form controls, including readonly exports and disabled selectors. */
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.lead-page,.message-page,.office-communications,.owner-support-page,.owner-help-page,.owner-screen-page,.owner-support-modal) :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
  background:var(--tc-field);
  color:var(--tc-text);
  border-color:var(--tc-field-line);
  caret-color:var(--tc-text);
}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.lead-page,.message-page,.office-communications,.owner-support-page,.owner-help-page,.owner-screen-page,.owner-support-modal) :is(input,textarea)::placeholder {color:var(--tc-muted);opacity:1}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.lead-page,.message-page,.office-communications,.owner-support-page,.owner-help-page,.owner-screen-page,.owner-support-modal) :is(input[readonly],textarea[readonly],input:disabled,select:disabled,textarea:disabled) {background:var(--tc-raised);color:var(--tc-muted);opacity:1}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.lead-page,.message-page,.office-communications,.owner-support-page,.owner-help-page,.owner-screen-page,.owner-support-modal) :is(input[type="checkbox"],input[type="radio"]) {accent-color:var(--tc-accent)}

/* Lead Manager uses the standalone .lead-page root. */
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .lead-page {
  --sl-bg:var(--tc-bg);--sl-panel:var(--tc-panel);--sl-lift:var(--tc-raised);--sl-field:var(--tc-field);
  --sl-text:var(--tc-text);--sl-soft:var(--tc-muted);--sl-gold:var(--tc-accent);--sl-line:var(--tc-line);
  --sl-metal:var(--tc-metal);--sl-bronze:var(--tc-bronze);--sl-silver:var(--tc-secondary);
}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .lead-page :is(.leads-shell,.summary-card,.filter-card,.bulk-bar,.lead-card,.empty-state,.lead-help,.lead-confirm) {background:var(--tc-panel);color:var(--tc-text);border-color:var(--tc-line)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .lead-page .leads-head {background:var(--tc-metal);border-color:var(--tc-accent)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .lead-page :is(.detail-panel,.help-row) {background:var(--tc-raised);color:var(--tc-text);border-color:var(--tc-line)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .lead-page .lead-message {background:var(--tc-note);color:var(--tc-text);border-left-color:var(--tc-accent)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .lead-page :is(.top-actions,.card-actions) {border-color:var(--tc-line)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .lead-page :is(.btn,.lead-action,.detail-box summary) {background:var(--tc-bronze);color:#ffffff;border-color:#9f6b38;text-shadow:none}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .lead-page :is(.btn,.lead-action,.detail-box summary):hover {background:var(--tc-bronze-hover);filter:none}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .lead-page :is(.btn-soft,.btn-dark,.detail-box summary) {background:var(--tc-secondary);color:var(--tc-text);border-color:var(--tc-field-line)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .lead-page :is(.btn-soft,.btn-dark,.detail-box summary):hover {background:var(--tc-secondary-hover)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .lead-page .top-actions [aria-current="page"] {background:var(--tc-bronze);color:#ffffff;border-color:#9f6b38}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .lead-page :is(.btn,.lead-action).btn-danger {background:#893544;color:#ffffff;border-color:#b66776}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .lead-page :is(.btn,.lead-action).btn-danger:hover {background:#712936}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .lead-page .status-new {background:var(--tc-info-bg);color:var(--tc-info-text)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .lead-page :is(.status-contacted,.verify-pending) {background:var(--tc-warning-bg);color:var(--tc-warning-text)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .lead-page :is(.status-closed,.verify-confirmed) {background:var(--tc-success-bg);color:var(--tc-success-text)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .lead-page .lead-card:hover {border-color:var(--tc-accent)}

/* Private conversation and inbox. */
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.message-page,.message-list-page) {--chat-line:var(--tc-line);--chat-bronze:var(--tc-bronze);--chat-silver:var(--tc-secondary)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.message-page .chat-header,.message-list-page .inbox-heading) {background:var(--tc-metal);color:var(--tc-text);border-color:var(--tc-line)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.message-page .chat-panel,.message-list-page .inbox-empty) {background:var(--tc-panel);color:var(--tc-text);border-color:var(--tc-line)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .message-page :is(.brand-line,.chat-send-status,.demo-message-label) {color:var(--tc-accent)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .message-page :is(.brand-line span,.chat-status,.thread-facts dt,.chat-demo-note,.chat-message time) {color:var(--tc-muted)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .message-page .chat-message {background:var(--tc-client-bubble);color:var(--tc-text);border-color:var(--tc-field-line)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .message-page .chat-message.from-owner {background:var(--tc-owner-bubble);color:var(--tc-text);border-color:var(--tc-warning-line)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .message-page .chat-message header strong {color:var(--tc-accent)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.message-page,.message-list-page) .chat-button {background:var(--tc-bronze);color:#ffffff;border-color:#9f6b38;text-shadow:none}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.message-page,.message-list-page) .chat-button:hover {background:var(--tc-bronze-hover);filter:none}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.message-page,.message-list-page) .chat-button.secondary {background:var(--tc-secondary);color:var(--tc-text);border-color:var(--tc-field-line)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.message-page,.message-list-page) .chat-button.secondary:hover {background:var(--tc-secondary-hover)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .message-list-page :is(.inbox-heading p,.message-choice-top time,.message-choice-bottom span,.inbox-demo-note) {color:var(--tc-muted)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .message-list-page .inbox-brand p {color:var(--tc-accent)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .message-list-page .message-choice {background:var(--tc-panel);color:var(--tc-text);border-color:var(--tc-line);border-left-color:var(--tc-accent)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .message-list-page .message-choice-top strong {color:var(--tc-text)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .message-list-page .message-choice:hover {background:var(--tc-raised);border-color:var(--tc-accent);filter:none}

/* Email, immutable results, suppressions, and owner team management. */
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .office-communications {
  --comm-bg:var(--tc-bg);--comm-panel:var(--tc-panel);--comm-field:var(--tc-field);--comm-text:var(--tc-text);
  --comm-soft:var(--tc-muted);--comm-line:var(--tc-line);--comm-gold:var(--tc-accent);
  --comm-metal:var(--tc-metal);--comm-bronze:var(--tc-bronze);--comm-silver:var(--tc-secondary);
}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .office-communications :is(.comm-main-card,.comm-card,.email-rendered) {background:var(--tc-panel);color:var(--tc-text);border-color:var(--tc-line)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .office-communications :is(.comm-topbar,.comm-panel-heading,.business-hero) {background:var(--tc-metal);color:var(--tc-text);border-color:var(--tc-line)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .office-communications :is(.comm-panel-heading h1,.comm-topbar>strong) {color:var(--tc-text)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .office-communications .comm-panel-heading p {color:var(--tc-muted)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .office-communications .comm-panel-heading .comm-eyebrow {color:var(--tc-accent)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .office-communications .comm-button {background:var(--tc-bronze);color:#ffffff;border-color:#9f6b38;text-shadow:none}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .office-communications .comm-button:hover {background:var(--tc-bronze-hover);filter:none}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .office-communications :is(.comm-secondary,.comm-light-button) {background:var(--tc-secondary);color:var(--tc-text);border-color:var(--tc-field-line)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .office-communications :is(.comm-secondary,.comm-light-button):hover {background:var(--tc-secondary-hover)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .office-communications :is(.comm-danger,.comm-danger:hover) {background:#893544;color:#ffffff;border-color:#b66776}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .office-communications :is(.comm-text-button,.comm-inline-link,.business-access-link) {color:var(--tc-link)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .office-communications .comm-form-error {background:var(--tc-error-bg);color:var(--tc-error-text);border-color:var(--tc-error-line)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .office-communications .comm-status {background:var(--tc-warning-bg);color:var(--tc-warning-text);border-color:var(--tc-warning-line)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .office-communications :is(.email-draft-context,.email-preview-label,.email-attachment-preview,.email-rendered footer,.suppression-stats>div,.suppression-item) {background:var(--tc-raised);color:var(--tc-text);border-color:var(--tc-line)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .office-communications :is(.email-preview-label,.email-rendered header p,.email-rendered footer,.email-attachment-preview small,.suppression-stats span,.suppression-log td) {color:var(--tc-muted)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .office-communications :is(.email-rendered header,.email-grid .comm-section-heading,.employee-access fieldset,.suppression-log td) {border-color:var(--tc-line)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .office-communications :is(.email-draft-context strong,.employee-access legend,.business-name) {color:var(--tc-accent)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .office-communications :is(.business-table th,.suppression-log th) {background:var(--tc-raised);color:var(--tc-text);border-color:var(--tc-line)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .office-communications .business-table tr:nth-child(even) {background:var(--tc-row)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .office-communications .team-status {background:var(--tc-success-bg);color:var(--tc-success-text);border-color:var(--tc-success-line)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .office-communications .business-home {background:#1b4eaa;color:#ffffff;border-color:#507fc2}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .office-communications .business-home:hover {background:#173e88}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .office-communications.suppression-page .comm-topbar .comm-button {background:var(--tc-secondary);color:var(--tc-text);border-color:var(--tc-field-line)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .office-communications.suppression-page .comm-count {background:var(--tc-info-bg);color:var(--tc-info-text)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .office-communications .suppression-add .comm-button {background:#176447;color:#ffffff;border-color:#43866c}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .office-communications .suppression-add .comm-button:hover {background:#104e36}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .office-communications.suppression-page .comm-remove {background:var(--tc-error-bg);color:var(--tc-error-text);border-color:var(--tc-error-line)}

/* Support, Help Center, and screen-share controls. */
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.owner-support-page,.owner-help-page,.owner-screen-page,.owner-support-modal) {--support-text:var(--tc-text);--support-muted:var(--tc-muted);--support-line:var(--tc-line);--support-blue:var(--tc-link)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.owner-support-page,.owner-help-page,.owner-screen-page,.owner-support-modal) .support-button {background:#1d4eae;color:#ffffff;border-color:#527ec5;text-shadow:none}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.owner-support-page,.owner-help-page,.owner-screen-page,.owner-support-modal) .support-button:hover {background:#163d8c;filter:none}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.owner-support-page,.owner-help-page,.owner-screen-page,.owner-support-modal) .support-secondary {background:var(--tc-secondary);color:var(--tc-text);border-color:var(--tc-field-line)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.owner-support-page,.owner-help-page,.owner-screen-page,.owner-support-modal) .support-secondary:hover {background:var(--tc-secondary-hover)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.owner-support-page,.owner-help-page,.owner-screen-page,.owner-support-modal) .support-text-link {color:var(--tc-link)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .owner-support-page .support-hero {background:linear-gradient(120deg,#15365e,#1d4e91);color:#ffffff;border-color:#5482bb}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .owner-support-page .support-hero :is(h1,h2,h3) {color:#ffffff}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .owner-support-page .support-hero p {color:#dce9fb}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.owner-support-page .support-chat-panel,.owner-support-modal .support-chat-body,.owner-help-page .help-intro,.owner-help-page .help-card,.owner-help-page .help-full-guide,.owner-screen-page .screen-workspace) {background:var(--tc-panel);color:var(--tc-text);border-color:var(--tc-line)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.owner-support-page,.owner-support-modal) .support-chat-status {background:var(--tc-raised);color:var(--tc-muted);border-color:var(--tc-line)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.owner-support-page,.owner-support-modal) .support-live {background:var(--tc-success-bg);color:var(--tc-success-text);border-color:var(--tc-success-line)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.owner-support-page,.owner-support-modal) .support-live i {background:var(--tc-success-text)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.owner-support-page,.owner-support-modal) .support-conversation {background:var(--tc-bg)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.owner-support-page,.owner-support-modal) .support-owner {background:var(--tc-panel);color:var(--tc-text);border-color:var(--tc-line)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.owner-support-page,.owner-support-modal) .support-agent {background:#1c4f9b;color:#ffffff;border-color:#729bd8}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.owner-support-page,.owner-support-modal) .support-message :is(p,time) {color:inherit;opacity:1}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.owner-support-page,.owner-support-modal) .support-compose {background:var(--tc-panel);border-color:var(--tc-line)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.owner-support-page,.owner-support-modal) .support-send-status {color:var(--tc-muted)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.owner-support-page,.owner-support-modal) .support-reply-links a {background:#164482;color:#ffffff;border-color:#9cbce6}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.owner-support-page,.owner-support-modal) .support-reply-links a:hover {background:#103562;color:#ffffff;border-color:#d7e7fc}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.owner-support-page,.owner-support-modal) .support-reply-links a:focus-visible {outline-color:#ffe0a3}

/* Help strips remain distinct; their numbers and labels use paired colors. */
html[data-sl-theme="light"] .owner-help-page :is(.help-card,.help-full-guide) {--help-color:#2358a0}
html[data-sl-theme="light"] .owner-help-page .help-color-teal {--help-color:#086f65}
html[data-sl-theme="light"] .owner-help-page .help-color-purple {--help-color:#6b3da6}
html[data-sl-theme="light"] .owner-help-page .help-color-orange {--help-color:#945008}
html[data-sl-theme="light"] .owner-help-page .help-color-cyan {--help-color:#096d88}
html[data-sl-theme="light"] .owner-help-page .help-color-pink {--help-color:#9b356c}
html[data-sl-theme="light"] .owner-help-page .help-color-bronze {--help-color:#875517}
html[data-sl-theme="dark"] .owner-help-page :is(.help-card,.help-full-guide) {--help-color:#96c8ff}
html[data-sl-theme="dark"] .owner-help-page .help-color-teal {--help-color:#7adcc4}
html[data-sl-theme="dark"] .owner-help-page .help-color-purple {--help-color:#c6afff}
html[data-sl-theme="dark"] .owner-help-page .help-color-orange {--help-color:#f5be80}
html[data-sl-theme="dark"] .owner-help-page .help-color-cyan {--help-color:#85dced}
html[data-sl-theme="dark"] .owner-help-page .help-color-pink {--help-color:#ee9fc1}
html[data-sl-theme="dark"] .owner-help-page .help-color-bronze {--help-color:#edc782}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .owner-help-page :is(.help-card,.help-full-guide) {border-top-color:var(--help-color)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .owner-help-page :is(.help-intro p,.help-index-heading p,.help-card p,.help-card ol,.help-full-guide .help-description,.help-full-guide section>p,.help-worked-example p,.help-full-steps p) {color:var(--tc-muted)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .owner-help-page :is(.help-card .help-use,.help-full-steps li,.help-demo-explanation,.help-worked-example) {background:var(--tc-raised);color:var(--tc-text);border-color:var(--tc-line)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .owner-help-page :is(.help-card .help-use strong,.help-full-steps h4) {color:var(--tc-text)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .owner-help-page :is(.help-full-guide>.support-eyebrow,.help-worked-example .support-eyebrow) {color:var(--help-color)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .owner-help-page .help-full-steps li>span {background:var(--help-color);color:var(--tc-number-text)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .owner-help-page .help-demo-explanation {border-left-color:var(--help-color)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .owner-help-page .help-full-guide>.support-actions {border-color:var(--tc-line)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .owner-help-page .support-top-button {color:var(--tc-link)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.owner-help-page,.owner-support-modal) .help-badge {background:var(--tc-info-bg);color:var(--tc-info-text);border-color:var(--tc-info-line)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .owner-help-page .help-action-upload {background:#086d82;color:#ffffff;border-color:#458c9b}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .owner-help-page .help-action-request {background:#94490e;color:#ffffff;border-color:#b87742}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .owner-help-page .help-action-message {background:#6743a7;color:#ffffff;border-color:#9778c6}

/* Session controls follow the theme; the prepared media frame stays dark. */
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .owner-screen-page :is(.screen-topbar,.screen-controls,.screen-mic-badge,.screen-end-button) {background:var(--tc-raised);color:var(--tc-text);border-color:var(--tc-line)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .owner-screen-page .screen-notice {background:var(--tc-warning-bg);color:var(--tc-warning-text);border-color:var(--tc-warning-line)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .owner-screen-page .screen-people {border-color:var(--tc-line)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.owner-screen-page,.owner-support-modal) :is(.screen-control-help,.screen-preview-note,.screen-view-status p) {color:var(--tc-muted)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .owner-screen-page .screen-video-area {background:#101b29;color:#eef4fb;border-color:#78cfdf}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .owner-screen-page :is(.screen-empty,.screen-empty>span,.screen-sample-cards span,.screen-sample-caption,.screen-sample-file>p) {color:#bdcadb}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .owner-screen-page :is(.screen-empty h2,.screen-sample-content h2) {color:#eef4fb}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .owner-screen-page .screen-simulation {background:#101b29;color:#eef4fb}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .owner-screen-page .screen-simulation-bar {background:#153447;color:#b8eaf2;border-color:#6e95ad}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .owner-screen-page .screen-sample-content {background:linear-gradient(135deg,#172d43,#102234);color:#eef4fb}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .owner-screen-page :is(.screen-sample-brand,.screen-file-symbol) {color:#a8e3ee}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .owner-screen-page .screen-sample-price {color:#f2ce8c}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .owner-screen-page .screen-sample-price span {color:#bdcadb}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .owner-screen-page .screen-sample-cards>div {background:#20384c;color:#eef4fb;border-color:#6e95ad}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .owner-support-modal.screen-dialog>p {color:var(--tc-muted)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .owner-support-modal :is(.screen-email-body,.screen-speaker) {background:var(--tc-raised);color:var(--tc-text);border-color:var(--tc-line)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .owner-support-modal :is(.screen-test-result,.screen-speaker[aria-pressed="true"]) {background:var(--tc-success-bg);color:var(--tc-success-text);border-color:var(--tc-success-line)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .demo-dialog:has(.owner-support-modal) #demo-dialog-title {color:var(--tc-text)}
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) .demo-dialog:has(.owner-support-modal) .demo-dialog-close-form button {background:var(--tc-secondary);color:var(--tc-text)}

/* Disabled actions remain readable in both palettes. */
html:is([data-sl-theme="light"],[data-sl-theme="dark"]) :is(.lead-page,.message-page,.message-list-page,.office-communications,.owner-support-page,.owner-help-page,.owner-screen-page,.owner-support-modal) :is(button:disabled,button[class]:disabled) {background:var(--tc-raised);color:var(--tc-muted);border-color:var(--tc-line);text-shadow:none;opacity:1;cursor:not-allowed;filter:none}
