/* Dashboard and course pages share one green palette in both themes. */
html:not([data-theme="dark"]) .dashboard-body {
  --paper: #f6f8f4;
  --white: #ffffff;
  --ink: #263a2c;
  --muted: #68796b;
  --lav: #eaf2e7;
  --line: #dfe8dc;
  --mint: #e7f0e4;
  --purple: #397858;
  --purple2: #2e664a;
  background: var(--paper);
  color: var(--ink);
}

html[data-theme="dark"] .dashboard-body {
  --paper: #111813;
  --white: #1b241d;
  --ink: #e8efe8;
  --muted: #aebdae;
  --lav: #243329;
  --line: #334336;
  --mint: #294132;
  --purple: #86bb88;
  --purple2: #add6a2;
  background: var(--paper);
  color: var(--ink);
}

html[data-theme="dark"] .dashboard-body .side-link.active,
html[data-theme="dark"] .dashboard-body .side-link:hover,
html[data-theme="dark"] .dashboard-body .course-mode-nav a.active,
html[data-theme="dark"] .dashboard-body .course-mode-nav a:hover,
html[data-theme="dark"] .dashboard-body .catalog-filter.active {
  color: #e8efe8;
  background: #294132;
  border-color: #456149;
}

html[data-theme="dark"] .dashboard-body .course-calculator-toggle,
html[data-theme="dark"] .dashboard-body .course-mode-nav a,
html[data-theme="dark"] .dashboard-body .course-page-actions a,
html[data-theme="dark"] .dashboard-body .course-calculator,
html[data-theme="dark"] .dashboard-body .course-calculator-display,
html[data-theme="dark"] .dashboard-body .course-calculator-keys button {
  color: var(--ink);
  background: #1b281f;
  border-color: #3a4e3b;
}

html[data-theme="dark"] .dashboard-body .course-calculator-display input,
html[data-theme="dark"] .dashboard-body .course-calculator-display output,
html[data-theme="dark"] .dashboard-body .course-calculator-heading h4,
html[data-theme="dark"] .dashboard-body .course-calculator-note {
  color: var(--ink);
}

html[data-theme="dark"] .dashboard-body .course-calculator-keys .calc-operator,
html[data-theme="dark"] .dashboard-body .course-calculator-keys .calc-clear {
  color: #dce8d9;
  background: #26392b;
}

html[data-theme="dark"] .dashboard-body .course-calculator-keys .calc-equals {
  color: #102016;
  background: #9acb91;
  border-color: #9acb91;
}

html[data-theme="dark"] .dashboard-body .course-calculator-toggle:hover,
html[data-theme="dark"] .dashboard-body .course-page-actions a:hover {
  background: #26392b;
  border-color: #58745a;
}

html[data-theme="dark"] .dashboard-body .course-page-actions .catalog-bank,
html[data-theme="dark"] .dashboard-body .course-practice-controls button,
html[data-theme="dark"] .dashboard-body .course-practice-session-actions button,
html[data-theme="dark"] .dashboard-body .lesson-complete {
  color: #102016;
  background: #9acb91;
  border-color: #9acb91;
}

html[data-theme="dark"] .dashboard-body .lesson-answer.correct,
html[data-theme="dark"] .dashboard-body .course-practice-answer.correct {
  color: #c7e8c5;
  background: #203b29;
  border-color: #4f8059;
}

html[data-theme="dark"] .dashboard-body .lesson-answer.incorrect,
html[data-theme="dark"] .dashboard-body .course-practice-answer.incorrect {
  color: #f1c3bc;
  background: #392522;
  border-color: #80534a;
}

html[data-theme="dark"] .dashboard-body .practice-accuracy-section {
  background: radial-gradient(ellipse at 95% 0, #263b29 0, transparent 32%), linear-gradient(145deg, #1b261e, #172019);
  border-color: #354936;
}

html[data-theme="dark"] .dashboard-body .accuracy-subject,
html[data-theme="dark"] .dashboard-body .university-tabs {
  color: var(--ink);
  background: #1b281f;
  border-color: #3a4e3b;
}

html[data-theme="dark"] .dashboard-body .accuracy-subject h3,
html[data-theme="dark"] .dashboard-body .accuracy-field,
html[data-theme="dark"] .dashboard-body .university-tabs button {
  color: #dce8d9;
}

html[data-theme="dark"] .dashboard-body .accuracy-field input {
  color: var(--ink);
  background: #141d17;
  border-color: #3a4e3b;
}

html[data-theme="dark"] .dashboard-body .activity-card {
  color: #e8efe8;
  background: linear-gradient(145deg, #1b281f, #172019);
  border-color: #354936;
}

html[data-theme="dark"] .dashboard-body .activity-card .block-kicker,
html[data-theme="dark"] .dashboard-body .activity-total span,
html[data-theme="dark"] .dashboard-body .chart-bars small {
  color: #a8b9a7;
}

html[data-theme="dark"] .dashboard-body .activity-card .block-heading h2,
html[data-theme="dark"] .dashboard-body .activity-total b {
  color: #e5eee2;
}

html[data-theme="dark"] .dashboard-body .activity-card .period-select {
  color: #dce8d9;
  background: #26392b;
  border-color: #405a43;
}

html[data-theme="dark"] .dashboard-body .activity-card .chart-grid i {
  border-color: #344638;
}

html[data-theme="dark"] .dashboard-body .activity-card .chart-bars .today-bar small {
  color: #a5d1a0;
}

html[data-theme="dark"] .dashboard-body .stat-note {
  color: #aec2ac;
}

html[data-theme="dark"] .dashboard-body .stat-icon {
  color: #c4dfbd;
  background: #294132;
}

html[data-theme="dark"] .dashboard-body .octo-tip-card h3,
html[data-theme="dark"] .dashboard-body .octo-tip-card p {
  color: #dce8d9;
}

html[data-theme="dark"] .dashboard-body .octo-tip-card .tip-label {
  color: #a8c9a2;
}

html[data-theme="dark"] .dashboard-body .octo-tip-card > button {
  color: #a9d1a1;
}

html[data-theme="dark"] .dashboard-body.course-standalone {
  color: var(--ink);
  background: var(--paper) !important;
}

html[data-theme="dark"] .dashboard-body.course-standalone .course-dialog[open] {
  color: var(--ink);
  background: #172019;
  border-color: #354936;
}

html[data-theme="dark"] .dashboard-body.course-standalone .course-dialog-header {
  background: rgb(23 32 25 / 96%);
  border-color: #354936;
}

html[data-theme="dark"] .dashboard-body.course-standalone .course-dialog-header h2 {
  color: #e5eee2;
}

html[data-theme="dark"] .dashboard-body.course-standalone .course-dialog-header p,
html[data-theme="dark"] .dashboard-body.course-standalone .course-topic-button small {
  color: #a8b7a7;
}

html[data-theme="dark"] .dashboard-body.course-standalone .course-topic-button {
  color: #dce8d9;
}

html[data-theme="dark"] .dashboard-body.course-standalone .course-topic-button.active,
html[data-theme="dark"] .dashboard-body.course-standalone .course-topic-button:hover {
  background: #26392b;
  border-color: #405a43;
}

/* The full-length practice screen uses a light palette in its base stylesheet. */
html[data-theme="dark"] .dashboard-body .sat-practice-section {
  color: #e5eee2;
  background: linear-gradient(145deg, #1a241c, #141d17);
  border-color: #354936;
  box-shadow: 0 14px 38px #0003;
}

html[data-theme="dark"] .dashboard-body .sat-practice-heading h2,
html[data-theme="dark"] .dashboard-body .sat-practice-question h3,
html[data-theme="dark"] .dashboard-body .sat-practice-scoreline h3,
html[data-theme="dark"] .dashboard-body .sat-practice-intermission h3,
html[data-theme="dark"] .dashboard-body .sat-practice-analysis h4 {
  color: #e5eee2;
}

html[data-theme="dark"] .dashboard-body .sat-practice-heading p,
html[data-theme="dark"] .dashboard-body .sat-practice-intro > p,
html[data-theme="dark"] .dashboard-body .sat-practice-intro > small,
html[data-theme="dark"] .dashboard-body .sat-practice-runbar,
html[data-theme="dark"] .dashboard-body .sat-practice-scoreline p,
html[data-theme="dark"] .dashboard-body .sat-practice-intermission p,
html[data-theme="dark"] .dashboard-body .sat-practice-analysis p,
html[data-theme="dark"] .dashboard-body .sat-practice-review-item p,
html[data-theme="dark"] .dashboard-body .sat-practice-review-item .sat-review-explanation {
  color: #a8b7a7;
}

html[data-theme="dark"] .dashboard-body .sat-practice-intro,
html[data-theme="dark"] .dashboard-body .sat-practice-run,
html[data-theme="dark"] .dashboard-body .sat-practice-results,
html[data-theme="dark"] .dashboard-body .sat-practice-section-score,
html[data-theme="dark"] .dashboard-body .sat-practice-review,
html[data-theme="dark"] .dashboard-body .sat-practice-form {
  color: #e5eee2;
  background: #1b281f;
  border-color: #354936;
}

html[data-theme="dark"] .dashboard-body .sat-practice-facts span,
html[data-theme="dark"] .dashboard-body .sat-practice-format span,
html[data-theme="dark"] .dashboard-body .sat-practice-topic,
html[data-theme="dark"] .dashboard-body .sat-practice-clock,
html[data-theme="dark"] .dashboard-body .sat-form-letter {
  color: #c6dfbf;
  background: #294132;
}

html[data-theme="dark"] .dashboard-body .sat-practice-facts b,
html[data-theme="dark"] .dashboard-body .sat-practice-format b,
html[data-theme="dark"] .dashboard-body .sat-practice-section-score > div:first-child,
html[data-theme="dark"] .dashboard-body .sat-practice-review summary,
html[data-theme="dark"] .dashboard-body .sat-practice-review-item h5 {
  color: #dce8d9;
}

html[data-theme="dark"] .dashboard-body .sat-practice-choice,
html[data-theme="dark"] .dashboard-body .sat-practice-secondary,
html[data-theme="dark"] .dashboard-body .sat-practice-exit {
  color: #dce8d9;
  background: #1b281f;
  border-color: #3a4e3b;
}

html[data-theme="dark"] .dashboard-body .sat-practice-choice:hover,
html[data-theme="dark"] .dashboard-body .sat-practice-choice.selected,
html[data-theme="dark"] .dashboard-body .sat-practice-form:hover,
html[data-theme="dark"] .dashboard-body .sat-practice-form.is-selected {
  color: #e8efe8;
  background: #26392b;
  border-color: #628565;
}

html[data-theme="dark"] .dashboard-body .sat-practice-choice > span {
  color: #c1d5bd;
  background: #2a392d;
}

html[data-theme="dark"] .dashboard-body .sat-practice-passage,
html[data-theme="dark"] .dashboard-body .sat-practice-analysis {
  color: #c7d4c5;
  background: #202f23;
}

html[data-theme="dark"] .dashboard-body .sat-practice-track,
html[data-theme="dark"] .dashboard-body .sat-section-meter {
  background: #2d3b30;
}

html[data-theme="dark"] .dashboard-body .sat-practice-controls,
html[data-theme="dark"] .dashboard-body .sat-practice-runbar,
html[data-theme="dark"] .dashboard-body .sat-practice-scoreline,
html[data-theme="dark"] .dashboard-body .sat-practice-review-item {
  border-color: #334336;
}

html[data-theme="dark"] .dashboard-body .sat-practice-finish {
  color: #dce8d9;
  background: #294132;
  border-color: #456149;
}

html[data-theme="dark"] .dashboard-body .sat-calculator-panel {
  background: #172019;
  border-color: #354936;
}

html[data-theme="dark"] .dashboard-body .sat-calculator-tools button,
html[data-theme="dark"] .dashboard-body .sat-calculator-keys button {
  color: #dce8d9;
  background: #1b281f;
  border-color: #3a4e3b;
}

html[data-theme="dark"] .dashboard-body .sat-calculator-tools button:hover,
html[data-theme="dark"] .dashboard-body .sat-calculator-keys button:hover {
  background: #26392b;
  border-color: #628565;
}

html[data-theme="dark"] .dashboard-body .sat-calculator-tools a,
html[data-theme="dark"] .dashboard-body .sat-calculator-display output {
  color: #a9d1a1;
}

html[data-theme="dark"] .dashboard-body .sat-calculator-display label {
  color: #a8b7a7;
}

html[data-theme="dark"] .dashboard-body .sat-calculator-display input {
  color: #e5eee2;
  background: #111813;
  border-color: #3a4e3b;
}

html[data-theme="dark"] .dashboard-body .sat-calculator-keys button[data-calc="equals"] {
  color: #102016;
  background: #9acb91;
  border-color: #9acb91;
}

@media (prefers-reduced-motion: reduce) {
  .dashboard-body .sat-practice-section *,
  .dashboard-body .course-dialog * { scroll-behavior: auto; }
}

.preview-banner{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.preview-banner[hidden]{display:none!important}.preview-sign-in{margin-left:auto;color:inherit;font-weight:700;text-decoration:underline;text-underline-offset:2px}.preview-sign-in:hover{opacity:.78}
