/* Shared palette for pages, editors, reports and dialogs. */
html[data-theme="blue"] {
  --theme-accent: #043bff;
  --theme-accent-hover: #0030cd;
  --theme-accent-ink: #17358a;
  --theme-soft: #e2eaff;
  --theme-paper: #eef2fa;
  --theme-rule: #c6cfe0;
  --theme-ink: #0a0c14;
  --theme-muted: #535d71;
  --theme-banner: #08090b;
  --theme-selection: #043bff24;
}
html[data-theme="purple"] {
  --theme-accent: #5000ef;
  --theme-accent-hover: #3900b8;
  --theme-accent-ink: #3500a8;
  --theme-soft: #eee6ff;
  --theme-paper: #f7f5fa;
  --theme-rule: #d8d3df;
  --theme-ink: #101014;
  --theme-muted: #615c6d;
  --theme-banner: #101013;
  --theme-selection: #5000ef24;
}
html[data-theme] {
  --color-surface: #fff;
  --color-paper: var(--theme-paper);
  --color-paper-2: var(--theme-soft);
  --color-ink: var(--theme-ink);
  --color-muted: var(--theme-muted);
  --color-faint: var(--theme-muted);
  --color-on-field: #fff;
  --color-on-field-muted: #d7d5df;
  --color-overlay: #10101499;
  --color-rule: var(--theme-rule);
  --color-accent: var(--theme-accent);
  --color-accent-hover: var(--theme-accent-hover);
  --color-accent-ink: var(--theme-accent-ink);
  --color-accent-soft: var(--theme-soft);
  --color-focus: var(--theme-accent);
  --profile-accent: var(--theme-accent);
  --profile-accent-deep: var(--theme-accent-hover);
  --profile-accent-soft: var(--theme-soft);
  --profile-page: var(--theme-paper);
}
html[data-theme="purple"] .workpaper-app {
  background: var(--theme-paper);
  --color-accent: var(--theme-accent);
  --color-accent-soft: var(--theme-soft);
  --color-accent-ink: var(--theme-accent-ink);
}
html[data-theme] .report-grid {
  --report-accent: var(--theme-accent);
  --report-rule: var(--theme-rule);
  --report-mark: var(--theme-soft);
  --report-label-fill: var(--theme-soft);
  --report-label-ink: var(--theme-accent-ink);
}
html[data-theme="purple"] .report-grid {
  --report-active: #e1d1ff;
}
html[data-theme="purple"] .report-grid > .report-answer-pane,
html[data-theme="purple"] .report-grid > .report-comments-pane {
  --color-ink: var(--theme-ink);
  --color-ink-2: var(--theme-muted);
  --color-muted: var(--theme-muted);
  --color-paper-2: var(--theme-paper);
  --color-rule: var(--theme-rule);
  --color-accent: var(--theme-accent);
  color: var(--theme-ink);
}
html[data-theme="purple"] .report-source,
html[data-theme="purple"] .report-comparison code {
  color: var(--theme-ink);
}
html[data-theme="purple"] .report-line-number,
html[data-theme="purple"] .report-answer-heading > span {
  color: var(--theme-muted);
}
html[data-theme="purple"] .report-comparison code { background: var(--theme-paper); }
html[data-theme] .mast { background: var(--theme-banner); }
html[data-theme] .theme-picker-option[aria-checked="true"] {
  background: var(--theme-soft);
  color: var(--theme-accent-ink);
  border-color: var(--theme-rule);
}
html[data-theme] .theme-picker-preview i:nth-child(2) { background: var(--theme-accent); }
html[data-theme] .theme-picker-preview[data-preview-theme="blue"] i:nth-child(2) { background: #043bff; }
html[data-theme] .theme-picker-preview[data-preview-theme="purple"] i:nth-child(2) { background: #5000ef; }
html[data-theme] .theme-picker-trigger:focus-visible,
html[data-theme] .theme-picker-option:focus-visible { outline-color: var(--theme-accent); }
html[data-theme="purple"] .workpaper-header > [data-submit-button] {
  background: var(--theme-accent);
  color: #fff;
  border-color: var(--theme-accent);
}
html[data-theme="purple"] .workpaper-header > [data-submit-button]:disabled {
  background: var(--theme-rule);
  border-color: var(--theme-rule);
  color: var(--theme-muted);
}
