/* B3-S2: ArtiAi conversation-only appearance overrides.
   Dark remains the accepted B2 default. No account/admin/report/PDF theming. */
html[data-arti-appearance="light"] {
  --arti-canvas: #eef3fa;
  --arti-surface: #ffffff;
  --arti-inset: #f5f8fd;
  --arti-text: #17253e;
  --arti-muted: #52627b;
  --arti-border: #cad5e5;
  --arti-accent: #244fa3;
}
html[data-arti-appearance="light"] :is(.ask-page,.context-page) {
  background: linear-gradient(155deg,#f8faff 0%,#e9eff9 100%);
  color: var(--arti-text);
}
html[data-arti-appearance="light"] :is(.ask-main-panel,.ask-panel,.context-panel,.conversation-sidebar,.context-summary-panel,.context-history-pane,.ask-history-pane) {
  background: var(--arti-surface);
  color: var(--arti-text);
  border-color: var(--arti-border);
  box-shadow: 0 12px 34px rgba(24,49,85,.09);
}
html[data-arti-appearance="light"] :is(.ask-conversation-header h1,.context-page-header h1,.ask-empty-title,.conversation-sidebar-brand-name,.conversation-sidebar-account-name,.conversation-sidebar-user-name,.context-panel h2,.context-summary-title,.ask-panel h2,.context-mobile-bar-title,.ask-mobile-bar-title) { color: var(--arti-text); }
html[data-arti-appearance="light"] :is(.ask-conversation-subtitle,.context-page-header p,.ask-empty-copy,.ask-loading-state,.context-helper,.conversation-sidebar-brand-subtitle,.conversation-sidebar-meta,.conversation-sidebar-time,.conversation-sidebar-user-label,.context-subtitle,.ask-composer-hint,.ask-conversation-divider) { color: var(--arti-muted); }
html[data-arti-appearance="light"] :is(.ask-section-label,.ask-panel-eyebrow,.context-panel-eyebrow,.conversation-sidebar-section-label,.context-label,.ask-message-role) { color: var(--arti-accent); }
html[data-arti-appearance="light"] :is(.ask-message-text,.ask-textarea,.context-input,.context-select,.context-report-picker-trigger,.context-report-picker-option,.conversation-sidebar-title,.conversation-sidebar-report,.context-summary-value) { color: var(--arti-text); }
html[data-arti-appearance="light"] :is(.ask-message-assistant,.ask-empty-state,.ask-loading-state,.ask-composer,.context-input,.context-select,.context-report-picker-trigger,.context-report-picker-menu,.conversation-sidebar-item,.conversation-sidebar-new-icon) {
  background: var(--arti-inset);
  border-color: var(--arti-border);
}
html[data-arti-appearance="light"] .ask-message-user {
  background: linear-gradient(180deg,#e0ebff,#d6e5ff);
  border-color: #afc7ed;
}
html[data-arti-appearance="light"] :is(.ask-message,.ask-composer,.ask-context-link,.ask-context-drawer-tab,.conversation-sidebar-new,.conversation-sidebar-item,.conversation-sidebar-rename-button,.conversation-sidebar-hide,.conversation-sidebar-signout,.context-button:not(.context-button-primary),.context-report-picker-option,.ask-mobile-bar-button,.context-mobile-bar-button,.ask-retry-button) { color: var(--arti-text); border-color: var(--arti-border); }
html[data-arti-appearance="light"] :is(.ask-context-link,.ask-context-drawer-tab,.conversation-sidebar-new,.conversation-sidebar-signout,.context-button:not(.context-button-primary),.context-report-picker-option,.ask-mobile-bar-button,.context-mobile-bar-button,.ask-retry-button) { background: #edf3fd; }
html[data-arti-appearance="light"] :is(.conversation-sidebar-new-active,.conversation-sidebar-item-active,.conversation-sidebar-new:hover,.conversation-sidebar-item:hover,.ask-context-link:hover) { background: #d9e7fb; color: #153b7b; }
html[data-arti-appearance="light"] :is(.ask-textarea::placeholder,.context-input::placeholder) { color: #62738f; }
html[data-arti-appearance="light"] :is(.ask-pdf-attachment,.ask-message-text a,.context-report-link) { color: #164a9d; }
html[data-arti-appearance="light"] :is(.ask-thinking,.conversation-sidebar-state,.context-report-empty) { color: var(--arti-muted); }
html[data-arti-appearance="light"] :is(.ask-context-panel,.ask-context-drawer,.context-details-panel) { color: var(--arti-text); }
html[data-arti-appearance="light"] :is(.ask-context-panel,.ask-main-content,.context-shell) { scrollbar-color: #a2b4ce transparent; }
html[data-arti-appearance="light"] :is(.context-banner-success,.ask-banner-success) { background: #e8f7ee; color: #185431; border-color: #90c6a8; }
html[data-arti-appearance="light"] :is(.context-banner-error,.ask-banner-error,.ask-banner-unavailable) { background: #fff0f0; color: #872c2c; border-color: #e0a9a9; }
html[data-arti-appearance="light"] :is(.ask-mobile-bar,.context-mobile-bar) { color: var(--arti-text); background: var(--arti-surface); border-color: var(--arti-border); }
/* Appearance selection lives beside account info on both Home and Chat. */
.conversation-appearance-control { display:flex; flex-direction:column; gap:7px; margin:12px 0 14px; }
.conversation-appearance-label { font-size:.75rem; font-weight:650; color:#aab6d0; }
.conversation-appearance-toggle { display:flex; align-items:center; gap:9px; min-height:38px; padding:7px 11px; border-radius:10px; width:100%; border:1px solid rgba(159,180,255,.25); background:rgba(122,162,255,.09); color:#f0f3ff; cursor:pointer; font:inherit; font-size:.87rem; text-align:left; }
.conversation-appearance-toggle:hover { background:rgba(122,162,255,.18); }
.conversation-appearance-toggle:focus-visible { outline:3px solid #7aa2ff; outline-offset:2px; }
.conversation-appearance-change { margin-left:auto; opacity:.75; font-size:.76rem; }
html[data-arti-appearance="light"] .conversation-appearance-label { color:var(--arti-muted); }
html[data-arti-appearance="light"] .conversation-appearance-toggle { background:#edf3fd; border-color:var(--arti-border); color:var(--arti-text); }
html[data-arti-appearance="light"] .conversation-appearance-toggle:hover { background:#dbe8fb; }

/* Report picker, account controls, and report-context metadata. */
html[data-arti-appearance="light"] :is(.report-preview,.context-summary-meta-item,.conversation-sidebar-item-row,.ask-context-row,.ask-context-details,.ask-pdf-attachment) { background:#f2f6fc; border-color:#cad5e5; color:#17253e; }
html[data-arti-appearance="light"] :is(.report-preview-name,.context-panel h2,.context-report-picker-trigger-text,.context-summary-value,.context-summary-meta-item,.conversation-sidebar-item-row .conversation-sidebar-title) { color:#17253e; }
html[data-arti-appearance="light"] :is(.report-preview-description,.context-summary-label,.conversation-sidebar-section-label,.ask-panel-label,.ask-context-label) { color:#52627b; }
html[data-arti-appearance="light"] :is(.conversation-sidebar-rename-button,.conversation-sidebar-hide,.conversation-sidebar-signout) { background:#edf3fd; color:#304b73; border-color:#cad5e5; }
html[data-arti-appearance="light"] :is(.conversation-sidebar-item:hover,.conversation-sidebar-rename-button:hover,.conversation-sidebar-hide:hover,.conversation-sidebar-signout:hover) { background:#dce9f9; color:#173b76; }
html[data-arti-appearance="light"] :is(.context-report-picker-menu,.context-report-picker-option-selected,.context-input:focus,.context-select:focus) { background:#fff; color:#17253e; }
html[data-arti-appearance="light"] :is(.context-summary-panel,.ask-panel,.ask-main-panel) :is(input,select,textarea) { color:#17253e; }

/* B3-S2A: solid blue accents in Light mode only. Dark mode is unchanged. */
html[data-arti-appearance="light"] {
  --arti-primary-blue: #1877e8;
  --arti-primary-blue-hover: #1167d1;
}
html[data-arti-appearance="light"] :is(.context-step-number,.context-button-primary,.conversation-sidebar-brand-mark,.ask-send-button) {
  background: var(--arti-primary-blue);
  background-image: none;
  color: #fff;
  border-color: var(--arti-primary-blue);
}
html[data-arti-appearance="light"] :is(.context-button-primary,.ask-send-button):hover:not(:disabled) {
  background: var(--arti-primary-blue-hover);
  background-image: none;
  border-color: var(--arti-primary-blue-hover);
}

/* B3-S3 response-length preference */
.conversation-response-length-select { width:100%; min-height:38px; border-radius:10px; border:1px solid rgba(159,180,255,.25); background:#202a40; color:#f0f3ff; padding:7px 10px; font:inherit; font-size:.87rem; cursor:pointer; }
.conversation-response-length-select:focus-visible { outline:3px solid #7aa2ff; outline-offset:2px; }
html[data-arti-appearance="light"] .conversation-response-length-select { background:#edf3fd; border-color:var(--arti-border); color:var(--arti-text); }
