/* Only app sheets that still inherited the old paper palette in museum mode. */
body.student-page.museum-refined.memory-sleep-open #mobileStudyNav:not(.knowledge-module-dock) {
  visibility: hidden !important;
  pointer-events: none !important;
}

body.student-page.museum-refined #securityPenaltyConfirmButton {
  background: var(--wf-ui-accent, #d9c187) !important;
  color: var(--wf-ui-on-accent, #191b17) !important;
  border-color: var(--wf-ui-accent, #d9c187) !important;
  box-shadow: none !important;
}
body.student-page.museum-refined #securityPenaltyModal .quiz-modal-head > div > span {
  color: var(--wf-ui-muted, #b7b09a) !important;
}

body.student-page.museum-refined #studentAssistantSheet.student-assistant-sheet,
body.student-page.museum-refined #memoryCommentsBackdrop .memory-comments-sheet,
body.student-page.museum-refined #memorySleepBackdrop .memory-sleep-sheet {
  background: var(--wf-ui-surface, #24231c) !important;
  color: var(--wf-ui-ink, #e9dec2) !important;
  border-color: var(--wf-ui-line, #655d43) !important;
  box-shadow: 0 -16px 48px #0006 !important;
}

body.student-page.museum-refined #studentAssistantSheet :is(.student-planner-calendar-card, .student-planner-month-plan, .student-planner-task-card) {
  background: var(--wf-ui-raised, #302e24) !important;
  border-color: var(--wf-ui-line, #655d43) !important;
}
body.student-page.museum-refined #studentAssistantSheet :is(.student-planner-head h2, .student-planner-calendar-toolbar strong, .student-planner-month-plan label, .student-planner-task-heading strong, .student-planner-task strong) {
  color: var(--wf-ui-ink, #e9dec2) !important;
}
body.student-page.museum-refined #studentAssistantSheet .student-planner-head > div > span {
  color: var(--wf-ui-accent, #d9c187) !important;
}
body.student-page.museum-refined #studentAssistantSheet :is(.student-planner-head p, .student-planner-weekdays span, .student-planner-calendar-legend span, .student-planner-task-heading span, .student-planner-task span, .student-planner-task.completed strong, .student-planner-empty, .student-planner-delete) {
  color: var(--wf-ui-muted, #b7b09a) !important;
}
body.student-page.museum-refined #studentAssistantSheet .student-assistant-handle,
body.student-page.museum-refined #memoryCommentsBackdrop .memory-comments-handle {
  background: var(--wf-ui-line, #655d43) !important;
}
body.student-page.museum-refined #studentAssistantSheet :is(.student-planner-close, .student-planner-calendar-toolbar button) {
  background: var(--wf-ui-surface, #24231c) !important;
  color: var(--wf-ui-accent, #d9c187) !important;
  box-shadow: none !important;
}
body.student-page.museum-refined #studentAssistantSheet .student-planner-calendar button:not(.studied):not(.completed) {
  background: transparent !important;
  color: var(--wf-ui-ink, #e9dec2) !important;
}
body.student-page.museum-refined #studentAssistantSheet .student-planner-calendar button.today:not(.completed) {
  border-color: var(--wf-ui-accent, #d9c187) !important;
}
body.student-page.museum-refined #studentAssistantSheet .student-planner-calendar button.studied {
  background: var(--wf-ui-accent, #d9c187) !important;
  color: var(--wf-ui-on-accent, #191b17) !important;
}
body.student-page.museum-refined #studentAssistantSheet .student-planner-calendar-legend i.studied {
  background: var(--wf-ui-accent, #d9c187) !important;
}
body.student-page.museum-refined #studentAssistantSheet .student-planner-task {
  border-color: var(--wf-ui-line, #655d43) !important;
}
body.student-page.museum-refined #studentAssistantSheet .student-planner-task:not(.completed) .student-planner-check {
  background: var(--wf-ui-surface, #24231c) !important;
  border-color: var(--wf-ui-line, #655d43) !important;
  color: var(--wf-ui-ink, #e9dec2) !important;
}
body.student-page.museum-refined #studentAssistantSheet .student-planner-delete {
  background: transparent !important;
}

body.student-page.museum-refined #memoryCommentsBackdrop :is(header strong, .memory-comment-card strong, .memory-comment-card p),
body.student-page.museum-refined #memorySleepBackdrop header strong {
  color: var(--wf-ui-ink, #e9dec2) !important;
}
body.student-page.museum-refined #memoryCommentsBackdrop :is(header span, .memory-comment-card span, .memory-comments-empty) {
  color: var(--wf-ui-muted, #b7b09a) !important;
}
body.student-page.museum-refined #memoryCommentsBackdrop .memory-comment-card {
  border-color: var(--wf-ui-line, #655d43) !important;
}
body.student-page.museum-refined #memoryCommentsBackdrop :is(header button, .memory-comment-card button),
body.student-page.museum-refined #memorySleepBackdrop :is(header button, .memory-sleep-options button) {
  background: var(--wf-ui-raised, #302e24) !important;
  color: var(--wf-ui-ink, #e9dec2) !important;
  border-color: var(--wf-ui-line, #655d43) !important;
  box-shadow: none !important;
}

/* Existing edition sheets already use theme tokens; supply museum values locally. */
body.student-page.museum-refined .student-edition-overlay {
  --theme-surface: var(--wf-ui-surface, #24231c);
  --theme-surface-raised: var(--wf-ui-raised, #302e24);
  --theme-surface-soft: var(--wf-ui-raised, #302e24);
  --theme-text: var(--wf-ui-ink, #e9dec2);
  --theme-muted: var(--wf-ui-muted, #b7b09a);
  --theme-border: var(--wf-ui-line, #655d43);
  --theme-accent: var(--wf-ui-accent, #d9c187);
  --theme-accent-strong: var(--wf-ui-accent, #d9c187);
  --theme-accent-soft: var(--wf-ui-soft, #bca16326);
  --theme-on-accent: var(--wf-ui-on-accent, #191b17);
}
body.student-page.museum-refined .student-edition-overlay button:disabled {
  background: var(--wf-ui-raised, #302e24) !important;
  color: var(--wf-ui-muted, #b7b09a) !important;
  border-color: var(--wf-ui-line, #655d43) !important;
  box-shadow: none !important;
}

/* Beat the legacy global white input rules only inside these audited sheets. */
body.student-page.museum-refined #studentAssistantSheet :is(input, textarea),
body.student-page.museum-refined #memoryCommentsBackdrop textarea,
body.student-page.museum-refined .student-edition-overlay :is(input:not([type="radio"]), textarea) {
  background: var(--wf-ui-surface, #24231c) !important;
  color: var(--wf-ui-ink, #e9dec2) !important;
  border-color: var(--wf-ui-line, #655d43) !important;
  box-shadow: none !important;
}
body.student-page.museum-refined #studentAssistantSheet :is(input, textarea)::placeholder,
body.student-page.museum-refined #memoryCommentsBackdrop textarea::placeholder,
body.student-page.museum-refined .student-edition-overlay :is(input, textarea)::placeholder {
  color: var(--wf-ui-muted, #b7b09a) !important;
  opacity: .8;
}
body.student-page.museum-refined #studentAssistantSheet :is(.student-planner-month-plan button, .student-planner-task-form button),
body.student-page.museum-refined #memoryCommentsBackdrop .memory-comment-form button {
  background: var(--wf-ui-accent, #d9c187) !important;
  color: var(--wf-ui-on-accent, #191b17) !important;
  border-color: var(--wf-ui-accent, #d9c187) !important;
  box-shadow: none !important;
}
body.student-page.museum-refined #memoryCommentsBackdrop .memory-comment-message {
  color: var(--wf-ui-accent, #d9c187) !important;
}
body.student-page.museum-refined #studentAssistantSheet .student-planner-message,
body.student-page.museum-refined #memoryCommentsBackdrop .memory-comment-message.is-success {
  color: #a4c68c !important;
}
body.student-page.museum-refined #studentAssistantSheet .student-planner-message.error,
body.student-page.museum-refined #memoryCommentsBackdrop .memory-comment-message.error {
  color: #e49384 !important;
}
body.student-page.museum-refined #studentAssistantSheet :is(input, textarea, button):focus-visible,
body.student-page.museum-refined #memoryCommentsBackdrop :is(textarea, button):focus-visible,
body.student-page.museum-refined #memorySleepBackdrop button:focus-visible {
  outline: 2px solid var(--wf-ui-accent, #d9c187) !important;
  outline-offset: 2px;
}
