/* Shared palette for pages, editors, reports and dialogs. */
:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}
html[data-theme="blue"] {
  --theme-accent: #1447e6;
  --theme-accent-hover: #0f3bc4;
  --theme-accent-bright: #2b60ff;
  --theme-accent-ink: #133185;
  --theme-soft: #e9f0ff;
  --theme-paper: #f1f4fa;
  --theme-rule: #dbe3f0;
  --theme-rule-strong: #bcc8dc;
  --theme-ink: #0f172a;
  --theme-muted: #526077;
  --theme-banner: #0b0f19;
  --theme-selection: rgb(20 71 230 / .14);
  --theme-shadow-xs: 0 1px 2px rgb(15 28 56 / .05);
  --theme-shadow-card: 0 2px 8px -2px rgb(15 28 56 / .06), 0 10px 26px -14px rgb(15 28 56 / .1);
  --theme-shadow-pop: 0 4px 12px rgb(15 28 56 / .08), 0 18px 42px -12px rgb(15 28 56 / .2);
  --font-body: var(--font-sans);
  --font-code: var(--font-mono);
}
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);
}
