html[data-theme="light"] {
  color-scheme: light;
  --page-bg: #f4f7fb;
  --page-bg-2: #e7eef8;
  --panel-bg: rgba(255, 255, 255, 0.82);
  --panel-border: rgba(15, 23, 42, 0.09);
  --text-soft: rgba(15, 23, 42, 0.65);
  --accent: #2b78d6;
  --accent-strong: #1d67c2;
}

html[data-theme="light"] body {
  color: #122033;
  background:
    radial-gradient(circle at top left, rgba(78, 166, 255, 0.13), transparent 30%),
    radial-gradient(circle at bottom right, rgba(124, 196, 255, 0.16), transparent 24%),
    linear-gradient(145deg, var(--page-bg), var(--page-bg-2));
}

html[data-theme="light"] .text-white {
  color: #122033 !important;
}

html[data-theme="light"] .text-white-50,
html[data-theme="light"] .sidebar-label,
html[data-theme="light"] .account-menu-popover-label,
html[data-theme="light"] .searchable-select-empty,
html[data-theme="light"] .editor-label,
html[data-theme="light"] .account-menu-trigger-label,
html[data-theme="light"] .mail-received-cell,
html[data-theme="light"] .mail-status-cell,
html[data-theme="light"] .pdf-empty-state,
html[data-theme="light"] .pdf-thumbnail-name,
html[data-theme="light"] .brand-subtitle {
  color: rgba(18, 32, 51, 0.68) !important;
}

html[data-theme="light"] .inbox-shell,
html[data-theme="light"] .editor-shell,
html[data-theme="light"] .auth-shell {
  background:
    radial-gradient(circle at top left, rgba(78, 166, 255, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(124, 196, 255, 0.12), transparent 22%),
    linear-gradient(145deg, var(--page-bg), var(--page-bg-2));
}

html[data-theme="light"] .inbox-sidebar-scroll,
html[data-theme="light"] .table-shell-scroll,
html[data-theme="light"] .editor-workspace-scroll,
html[data-theme="light"] .upload-queue-list,
html[data-theme="light"] .results-strip,
html[data-theme="light"] .pdf-thumbnail-strip,
html[data-theme="light"] .pdf-render-shell {
  scrollbar-color: rgba(15, 23, 42, 0.28) transparent;
}

html[data-theme="light"] .inbox-sidebar-scroll::-webkit-scrollbar-thumb,
html[data-theme="light"] .table-shell-scroll::-webkit-scrollbar-thumb,
html[data-theme="light"] .editor-workspace-scroll::-webkit-scrollbar-thumb,
html[data-theme="light"] .upload-queue-list::-webkit-scrollbar-thumb,
html[data-theme="light"] .results-strip::-webkit-scrollbar-thumb,
html[data-theme="light"] .pdf-thumbnail-strip::-webkit-scrollbar-thumb,
html[data-theme="light"] .pdf-render-shell::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.28);
}

html[data-theme="light"] .inbox-sidebar-scroll::-webkit-scrollbar-thumb:hover,
html[data-theme="light"] .table-shell-scroll::-webkit-scrollbar-thumb:hover,
html[data-theme="light"] .editor-workspace-scroll::-webkit-scrollbar-thumb:hover,
html[data-theme="light"] .upload-queue-list::-webkit-scrollbar-thumb:hover,
html[data-theme="light"] .results-strip::-webkit-scrollbar-thumb:hover,
html[data-theme="light"] .pdf-thumbnail-strip::-webkit-scrollbar-thumb:hover,
html[data-theme="light"] .pdf-render-shell::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.42);
}

html[data-theme="light"] .auth-panel,
html[data-theme="light"] .inbox-sidebar,
html[data-theme="light"] .inbox-content,
html[data-theme="light"] .table-shell,
html[data-theme="light"] .editor-content,
html[data-theme="light"] .editor-section,
html[data-theme="light"] .editor-info-grid > .editor-section,
html[data-theme="light"] .editor-form-panel,
html[data-theme="light"] .results-section,
html[data-theme="light"] .result-card,
html[data-theme="light"] .pdf-preview-panel,
html[data-theme="light"] .pdf-frame-shell,
html[data-theme="light"] .account-menu-popover,
html[data-theme="light"] .searchable-select-panel,
html[data-theme="light"] .result-empty-state {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.09);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  background-clip: padding-box;
}

html[data-theme="light"] .editor-content {
  box-shadow: 0 30px 76px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .table-shell,
html[data-theme="light"] .results-section,
html[data-theme="light"] .pdf-preview-panel,
html[data-theme="light"] .editor-form-panel {
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .editor-section,
html[data-theme="light"] .editor-info-grid > .editor-section,
html[data-theme="light"] .attachments-layout > .editor-section,
html[data-theme="light"] .attachments-layout > .pdf-preview-panel,
html[data-theme="light"] .result-card,
html[data-theme="light"] .pdf-frame-shell,
html[data-theme="light"] .result-empty-state {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .editor-content,
html[data-theme="light"] .editor-info-grid > .editor-section,
html[data-theme="light"] .attachments-layout > .editor-section,
html[data-theme="light"] .attachments-layout > .pdf-preview-panel,
html[data-theme="light"] .pdf-preview-panel {
  backdrop-filter: none;
}

html[data-theme="light"] .feature-pill {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .auth-input,
html[data-theme="light"] .editor-input,
html[data-theme="light"] .editor-textarea,
html[data-theme="light"] .search-shell,
html[data-theme="light"] .meta-pill,
html[data-theme="light"] .compose-link,
html[data-theme="light"] .secondary-action,
html[data-theme="light"] .sidebar-link,
html[data-theme="light"] .folder-row,
html[data-theme="light"] .message-tag,
html[data-theme="light"] .searchable-select-trigger,
html[data-theme="light"] .searchable-select-option,
html[data-theme="light"] .result-pill,
html[data-theme="light"] .result-preview-btn,
html[data-theme="light"] .result-info-btn,
html[data-theme="light"] .result-confidence-btn,
html[data-theme="light"] .result-document-pill,
html[data-theme="light"] .result-document-menu-trigger,
html[data-theme="light"] .pdf-thumbnail-card,
html[data-theme="light"] .pdf-count-pill,
html[data-theme="light"] .pdf-step-btn,
html[data-theme="light"] .pdf-empty-state {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.1);
  color: #122033;
}

html[data-theme="light"] .auth-input::placeholder,
html[data-theme="light"] .editor-input::placeholder,
html[data-theme="light"] .editor-textarea::placeholder {
  color: rgba(18, 32, 51, 0.36);
}

html[data-theme="light"] .search-shell,
html[data-theme="light"] .meta-pill,
html[data-theme="light"] .compose-link,
html[data-theme="light"] .secondary-action,
html[data-theme="light"] .sidebar-link,
html[data-theme="light"] .message-tag,
html[data-theme="light"] .searchable-select-option,
html[data-theme="light"] .result-pill,
html[data-theme="light"] .result-preview-btn,
html[data-theme="light"] .result-info-btn,
html[data-theme="light"] .result-confidence-btn,
html[data-theme="light"] .result-document-pill,
html[data-theme="light"] .result-document-menu-trigger,
html[data-theme="light"] .pdf-thumbnail-card {
  box-shadow: none;
}

html[data-theme="light"] .sidebar-link span,
html[data-theme="light"] .folder-row span,
html[data-theme="light"] .editor-header-kicker,
html[data-theme="light"] .editor-header-meta-label,
html[data-theme="light"] .editor-header-meta-value,
html[data-theme="light"] .email-client-meta-label,
html[data-theme="light"] .email-client-subject-label,
html[data-theme="light"] .searchable-select-option-value,
html[data-theme="light"] .result-field-label,
html[data-theme="light"] .result-children-label {
  color: rgba(18, 32, 51, 0.58);
}

html[data-theme="light"] .mail-subject-title,
html[data-theme="light"] .mail-company-cell,
html[data-theme="light"] .mail-email-cell,
html[data-theme="light"] .mail-upload-type-cell,
html[data-theme="light"] .mail-confidence-cell {
  color: #122033;
}

html[data-theme="light"] .mail-received-cell {
  color: rgba(18, 32, 51, 0.64);
}

html[data-theme="light"] .mail-row.unread .mail-subject-cell,
html[data-theme="light"] .mail-row.unread .mail-company-cell,
html[data-theme="light"] .mail-row.unread .mail-email-cell,
html[data-theme="light"] .mail-row.unread .mail-upload-type-cell {
  color: #122033;
}

html[data-theme="light"] .mail-email-cell {
  text-align: left;
}

html[data-theme="light"] .editor-page .folder-row span:first-child {
  color: rgba(18, 32, 51, 0.5);
}

html[data-theme="light"] .editor-page .folder-row span:last-child {
  color: rgba(18, 32, 51, 0.82);
}

html[data-theme="light"] .result-card-title,
html[data-theme="light"] .result-field-value,
html[data-theme="light"] .result-pill {
  color: #122033;
}

html[data-theme="light"] .email-client-meta-value,
html[data-theme="light"] .email-client-subject,
html[data-theme="light"] .email-client-body {
  color: #122033;
}

html[data-theme="light"] .email-client-body {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .editor-header-meta {
  color: rgba(18, 32, 51, 0.72);
}

html[data-theme="light"] .result-preview-btn {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.9);
  color: #122033;
}

html[data-theme="light"] .result-info-btn {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.9);
  color: #122033;
}

html[data-theme="light"] .result-confidence-btn {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.9);
  color: #122033;
}

html[data-theme="light"] .result-document-pill {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.9);
  color: #122033;
}

html[data-theme="light"] .result-document-menu-trigger {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.9);
  color: #122033;
}

html[data-theme="light"] .result-preview-btn:hover,
html[data-theme="light"] .result-preview-btn:focus-visible {
  background: rgba(78, 166, 255, 0.11);
  border-color: rgba(78, 166, 255, 0.22);
}

html[data-theme="light"] .result-info-btn:hover,
html[data-theme="light"] .result-info-btn:focus-visible {
  background: rgba(78, 166, 255, 0.11);
  border-color: rgba(78, 166, 255, 0.22);
}

html[data-theme="light"] .result-confidence-btn:hover,
html[data-theme="light"] .result-confidence-btn:focus-visible {
  background: rgba(78, 166, 255, 0.11);
  border-color: rgba(78, 166, 255, 0.22);
}

html[data-theme="light"] .result-document-pill:hover,
html[data-theme="light"] .result-document-pill:focus-visible {
  background: rgba(78, 166, 255, 0.11);
  border-color: rgba(78, 166, 255, 0.22);
}

html[data-theme="light"] .result-document-menu-trigger:hover,
html[data-theme="light"] .result-document-menu-trigger:focus-visible,
html[data-theme="light"] .result-document-menu:hover .result-document-menu-trigger,
html[data-theme="light"] .result-document-menu:focus-within .result-document-menu-trigger {
  background: rgba(78, 166, 255, 0.11);
  border-color: rgba(78, 166, 255, 0.22);
}

html[data-theme="light"] .result-document-menu-panel {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.98);
}

html[data-theme="light"] .result-document-menu.is-open .result-document-menu-trigger {
  background: rgba(78, 166, 255, 0.11);
  border-color: rgba(78, 166, 255, 0.22);
}

html[data-theme="light"] .attachments-result-section > .results-strip > .result-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .result-info-modal-backdrop {
  background: rgba(15, 23, 42, 0.28);
}

html[data-theme="light"] .result-info-modal-panel {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.98);
  color: #122033;
}

html[data-theme="light"] .result-info-modal-label {
  color: rgba(18, 32, 51, 0.52);
}

html[data-theme="light"] .result-info-modal-value {
  color: #122033;
}

html[data-theme="light"] .result-info-modal-reason {
  color: #122033;
}

html[data-theme="light"] .result-info-modal-close {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.95);
  color: #122033;
}

html[data-theme="light"] .account-menu-trigger-icon,
html[data-theme="light"] .search-icon,
html[data-theme="light"] .sort-indicator {
  color: rgba(18, 32, 51, 0.46);
}

html[data-theme="light"] .account-menu-theme-label {
  color: rgba(18, 32, 51, 0.52);
}

html[data-theme="light"] .sidebar-link:hover,
html[data-theme="light"] .sidebar-link.active,
html[data-theme="light"] .searchable-select-option:hover,
html[data-theme="light"] .searchable-select-option:focus-visible,
html[data-theme="light"] .searchable-select-option.is-selected,
html[data-theme="light"] .pdf-thumbnail-card:hover,
html[data-theme="light"] .pdf-thumbnail-card:focus-visible,
html[data-theme="light"] .pdf-thumbnail-card.is-active {
  background: rgba(78, 166, 255, 0.11);
  border-color: rgba(78, 166, 255, 0.22);
}

html[data-theme="light"] .sidebar-link:hover,
html[data-theme="light"] .sidebar-link.active {
  color: #122033;
}

html[data-theme="light"] .search-shell,
html[data-theme="light"] .meta-pill,
html[data-theme="light"] .compose-link {
  color: #122033;
}

html[data-theme="light"] .secondary-action:hover,
html[data-theme="light"] .secondary-action:focus-visible,
html[data-theme="light"] .account-menu-settings:hover,
html[data-theme="light"] .account-menu-settings:focus-visible,
html[data-theme="light"] .account-menu-theme:hover,
html[data-theme="light"] .account-menu-theme:focus-visible {
  color: #122033;
  background: rgba(78, 166, 255, 0.08);
  border-color: rgba(78, 166, 255, 0.22);
}

html[data-theme="light"] .sidebar-divider {
  background: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .sidebar-footer {
  border-top-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .mail-table thead th {
  background: rgba(255, 255, 255, 0.65);
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .sort-trigger {
  color: rgba(18, 32, 51, 0.72);
}

html[data-theme="light"] .sort-trigger:hover,
html[data-theme="light"] .sort-trigger.is-sorted {
  color: #122033;
  background: rgba(78, 166, 255, 0.08);
}

html[data-theme="light"] .mail-row td {
  color: rgba(18, 32, 51, 0.78);
}

html[data-theme="light"] .mail-row.unread .mail-subject-cell,
html[data-theme="light"] .mail-row.unread .mail-company-cell,
html[data-theme="light"] .mail-row.unread .mail-email-cell,
html[data-theme="light"] .mail-row.unread .mail-upload-type-cell {
  color: #122033;
}

html[data-theme="light"] .mail-row:hover,
html[data-theme="light"] .mail-row:focus-visible {
  background: rgba(78, 166, 255, 0.06);
}

html[data-theme="light"] .mail-received-cell {
  color: rgba(18, 32, 51, 0.66);
}

html[data-theme="light"] .mail-status-cell {
  width: 1%;
}

html[data-theme="light"] .inbox-processing-modal-backdrop {
  background: rgba(15, 23, 42, 0.28);
}

html[data-theme="light"] .inbox-processing-modal-panel {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.98);
  color: #122033;
}

html[data-theme="light"] .inbox-processing-modal-label {
  color: rgba(18, 32, 51, 0.52);
}

html[data-theme="light"] .inbox-processing-modal-value {
  color: #122033;
}

html[data-theme="light"] .inbox-processing-modal .text-white {
  color: #122033 !important;
}

html[data-theme="light"] .inbox-processing-modal .text-white-50 {
  color: rgba(18, 32, 51, 0.64) !important;
}

html[data-theme="light"] .upload-subject-modal {
  background: rgba(15, 23, 42, 0.18);
}

html[data-theme="light"] .upload-subject-modal-panel {
  border-color: rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.98);
  color: #122033;
}

html[data-theme="light"] .upload-subject-modal .text-white {
  color: #122033 !important;
}

html[data-theme="light"] .upload-subject-modal .text-white-50 {
  color: rgba(18, 32, 51, 0.64) !important;
}

html[data-theme="light"] .inbox-drop-overlay {
  background: rgba(15, 23, 42, 0.18);
}

html[data-theme="light"] .inbox-drop-overlay-panel {
  border-color: rgba(43, 120, 214, 0.18);
  background: rgba(255, 255, 255, 0.98);
  color: #122033;
}

html[data-theme="light"] .inbox-drop-message.is-error {
  border-color: rgba(220, 38, 38, 0.18);
  background: rgba(220, 38, 38, 0.08);
  color: #7f1d1d;
}

html[data-theme="light"] .message-tag.soft {
  background: rgba(18, 32, 51, 0.04);
  border-color: rgba(18, 32, 51, 0.08);
  color: rgba(18, 32, 51, 0.72);
}

html[data-theme="light"] .status-message {
  border-color: rgba(78, 166, 255, 0.18);
  background: rgba(78, 166, 255, 0.08);
  color: #12305a;
}

html[data-theme="light"] .searchable-select-panel {
  background: rgba(255, 255, 255, 0.96);
}

html[data-theme="light"] .searchable-select-option-value {
  color: rgba(18, 32, 51, 0.44);
}

html[data-theme="light"] .editor-textarea,
html[data-theme="light"] .editor-input,
html[data-theme="light"] .auth-input,
html[data-theme="light"] .searchable-select-trigger {
  background: rgba(255, 255, 255, 0.94);
}

html[data-theme="light"] .editor-input:focus,
html[data-theme="light"] .editor-textarea:focus,
html[data-theme="light"] .auth-input:focus {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(78, 166, 255, 0.5);
  box-shadow: 0 0 0 0.25rem rgba(78, 166, 255, 0.14);
}

html[data-theme="light"] .logout-link {
  box-shadow: 0 12px 24px rgba(78, 166, 255, 0.14);
}

html[data-theme="light"] .logout-link:hover {
  box-shadow: 0 16px 28px rgba(78, 166, 255, 0.18);
}

@media (max-width: 992px) {
  html[data-theme="light"] .mail-subject-cell::before,
  html[data-theme="light"] .mail-company-cell::before,
  html[data-theme="light"] .mail-email-cell::before,
  html[data-theme="light"] .mail-upload-type-cell::before,
  html[data-theme="light"] .mail-confidence-cell::before,
  html[data-theme="light"] .mail-received-cell::before,
  html[data-theme="light"] .mail-status-cell::before {
    color: rgba(18, 32, 51, 0.42);
  }
}
