/* Academy cabinet accents. Beige on wine surfaces, burgundy on light surfaces. */
body.stage-participant {
  --cabinet-burgundy: #702039;
  --cabinet-beige: #e8dacc;
  --cabinet-sand: #bda89a;
  --cabinet-chart: #998579;
  --cabinet-paper: #f2eae1;
  --gold: var(--cabinet-sand);
}

.student-profile, .teacher-profile, .role-view-teacher {
  --student-surface: #fff9f0;
  --student-border: #d8c9b6;
  --student-accent: #570e26;
  --student-ink: #302521;
  --student-muted: #695850;
  --student-tint: #f3e9e2;
}

.stage-participant .role-view { --r-gold: var(--cabinet-burgundy); }
.stage-participant .cat-view { --cat-gold: var(--cabinet-burgundy); }
.stage-participant .flow-wrap { --flow-gold: var(--cabinet-burgundy); }

/* Keep the two activity series visually distinct and match their legend. */
.stage-participant .member-stats > div:nth-child(2)::before,
.stage-participant .member-bar-1,
.stage-participant .member-activity p i:nth-of-type(2) { background-color: var(--cabinet-chart); }
.stage-participant :is(.member-next-top, .member-next .role-text span, .role-hero-copy .role-kicker, .role-lesson-spine .role-kicker, .role-hero-copy .role-text span, .role-register-top .role-kicker) { color: var(--cabinet-beige); }
.stage-participant :is(.member-next, .role-hero-copy) .role-text { border-color: var(--cabinet-sand); }
.stage-participant :is(.role-text span, .role-date) { color: var(--cabinet-burgundy); }
.stage-participant .role-outline li::marker { color: var(--cabinet-burgundy); }
.stage-participant .role-text { border-bottom-color: var(--cabinet-sand); }
.stage-participant :is(.role-paper-note, .role-register-top, .role-lesson-spine, .role-hero-copy) { border-color: var(--cabinet-sand); }
.stage-participant :is(.role-choice[aria-pressed=true], .member-week li.has-lesson) { background-color: var(--cabinet-paper); }
.stage-participant .role-choice[aria-pressed=true] { border-color: var(--cabinet-sand); }

/* Calendar and participant-to-participant messages. */
.stage-participant .mc-filter[aria-pressed=true] i,
.stage-participant .cat-day[aria-pressed=true] i { background-color: var(--cabinet-beige); }
.stage-participant .mc-today:not(.mc-selected) .mc-day-number { border-color: var(--cabinet-burgundy); color: var(--cabinet-burgundy); }
.stage-participant .mc-agenda > header { border-color: var(--cabinet-sand); }
.stage-participant .mc-agenda > header > p,
.stage-participant .cat-lesson-preview span { color: var(--cabinet-beige); }
.stage-participant :is(.mc-kicker, .mc-empty > svg, .pkg-gift-icon) { color: var(--cabinet-burgundy); }
.stage-participant .mm-mark:not(.mm-teacher),
.stage-participant .mm-person .mm-mark { background-color: var(--cabinet-beige); color: var(--cabinet-burgundy); }
.stage-participant .mm-person { border-color: var(--cabinet-sand); }

/* Workspace chrome, separate from the colours participants choose for their drawings. */
.stage-participant :is(.state-submitted .flow-node-dot, .flow-legend span:nth-child(2) i) { background-color: var(--cabinet-sand); border-color: #826e60; }
.stage-participant :is(.flow-badge.state-submitted, .studio-archive, .wb-state.wb-submitted) { background-color: var(--cabinet-beige); color: var(--cabinet-burgundy); }
.stage-participant .wb-tools [data-board-cmd=add-note]:not([aria-pressed=true]) { background-color: var(--cabinet-paper); border-color: var(--cabinet-sand); }
.stage-participant .flow-msg { border-inline-start-color: var(--cabinet-sand); }

.stage-participant .pkg-avatar { background-color: var(--cabinet-paper); border-color: var(--cabinet-sand); }

.stage-participant :is(.role-view, .academy-owner-profile, .mc-view, .mm-page, .pkg-view, .member-chat, .studio-field) :is(button, a, input, select, textarea, summary, .mm-thread, .wb-window):focus-visible,
.stage-participant .tp-upload:focus-within { outline-color: var(--cabinet-burgundy); }
.stage-participant :is(.member-next, .mc-agenda > header) :focus-visible { outline-color: var(--cabinet-beige); }

.stage-participant .member-stats > div:nth-child(3)::before { background-color: var(--cabinet-burgundy); }
.stage-participant .mc-scheduled { --mc-status: #702039; --mc-fill: #f3e8ea; }
.stage-participant .mc-completed { --mc-status: #645144; --mc-fill: #ece1d6; }
.stage-participant .mc-accepted { --mc-status: #813d53; --mc-fill: #f0e3e7; }
.stage-participant :is(.state-approved .flow-node-dot, .flow-legend span:nth-child(3) i) { background-color: var(--cabinet-burgundy); border-color: var(--cabinet-burgundy); }
.stage-participant :is(.flow-badge.state-approved, .wb-state.wb-approved) { color: var(--cabinet-burgundy); background-color: #f0e3e7; }
.stage-participant :is(.flow-notice, .flow-confirm, .wb-status, .studio-field .wb-status:not(:empty)) { color: var(--cabinet-burgundy); }
.stage-participant .hw-answers article { border-color: var(--cabinet-sand); }

@media (prefers-reduced-motion:no-preference) {
  html:has(body.stage-participant) { scroll-behavior:smooth; }
}
