body {
  --wf-ui-surface: #24231c;
  --wf-ui-raised: #302e24;
  --wf-ui-ink: #e9dec2;
  --wf-ui-muted: #b7b09a;
  --wf-ui-line: #655d43;
  --wf-ui-accent: #d9c187;
  --wf-ui-soft: #bca16326;
  --wf-ui-on-accent: #191b17;
}
html[data-student-appearance="paper"] body.student-page:not(.museum-refined) {
  --wf-ui-surface: var(--theme-surface, #fffefb);
  --wf-ui-raised: var(--theme-page, #fff8e8);
  --wf-ui-ink: var(--theme-text, #282522);
  --wf-ui-muted: var(--theme-muted, #6c665d);
  --wf-ui-line: var(--theme-border, #d7c8ad);
  --wf-ui-accent: var(--theme-accent-strong, #8a5600);
  --wf-ui-soft: var(--theme-accent-soft, #fff0cd);
  --wf-ui-on-accent: #ffffff;
}
body.admin-page {
  --wf-ui-surface: #ffffff;
  --wf-ui-raised: #f3f7fc;
  --wf-ui-ink: #132235;
  --wf-ui-muted: #52667d;
  --wf-ui-line: var(--teacher-border, #d2dfed);
  --wf-ui-accent: #1677d2;
  --wf-ui-soft: #e8f2fd;
  --wf-ui-on-accent: #ffffff;
}
select[data-wf-app-select="native"] { display: none !important; pointer-events: none !important; }
body button.wf-app-select-button,
body.student-page #imageViewer #annotationWorkbench.annotation-two-row button.wf-app-select-button {
  position: relative !important;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box !important;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 9px 34px 9px 12px !important;
  border: 1px solid var(--wf-ui-line) !important;
  border-radius: 10px !important;
  background: var(--wf-ui-surface) !important;
  color: var(--wf-ui-ink) !important;
  box-shadow: none !important;
  text-align: left;
  font: inherit;
  line-height: 1.35;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
body button.wf-app-select-button[hidden] { display: none !important; }
body button.wf-app-select-button::before,
body.student-page #imageViewer #annotationWorkbench.annotation-two-row button.wf-app-select-button::before { content: none !important; display: none !important; }
body button.wf-app-select-button::after,
body.student-page #imageViewer #annotationWorkbench.annotation-two-row button.wf-app-select-button::after {
  content: "";
  position: absolute;
  right: 11px;
  width: 15px;
  height: 15px;
  background: currentColor;
  -webkit-mask: url("/assets/museum/r210/icons/chevron-down.svg") center / contain no-repeat;
  mask: url("/assets/museum/r210/icons/chevron-down.svg") center / contain no-repeat;
}
.wf-app-select-caption { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body button.wf-app-select-button:disabled { opacity: .48; cursor: default; }
body button.wf-app-select-button:focus-visible,
.wf-app-select-list:focus-visible { outline: 2px solid var(--wf-ui-accent) !important; outline-offset: 2px; }
body button.wf-app-select-button[aria-invalid="true"] { border-color: #bc6257 !important; }
body > .wf-app-select-overlay {
  position: fixed !important;
  inset: 0;
  z-index: 2147483646 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 20px;
  background: #080806a8;
  color: var(--wf-ui-ink);
  overscroll-behavior: contain;
}
.wf-app-select-panel {
  width: min(440px, 100%);
  max-height: min(76vh, 620px);
  max-height: min(76dvh, 620px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--wf-ui-line);
  border-radius: 16px;
  background: var(--wf-ui-surface);
  box-shadow: 0 18px 60px #0006;
  font: 16px/1.45 var(--font-body, system-ui, sans-serif);
}
.wf-app-select-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  min-height: 56px;
  padding: 8px 12px 8px 18px;
  border-bottom: 1px solid var(--wf-ui-line);
}
.wf-app-select-head > strong { min-width: 0; overflow-wrap: anywhere; color: var(--wf-ui-ink) !important; font-size: 16px; }
body .wf-app-select-head > button.wf-app-select-close {
  flex: 0 0 auto;
  min-width: 48px;
  min-height: 40px;
  padding: 8px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: var(--wf-ui-accent) !important;
  box-shadow: none !important;
  font: inherit;
  cursor: pointer;
}
.wf-app-select-list { min-height: 0; overflow: auto; padding: 6px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.wf-app-select-option {
  position: relative;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 38px 12px 12px;
  border-radius: 8px;
  color: var(--wf-ui-ink);
  overflow-wrap: anywhere;
  cursor: pointer;
  touch-action: manipulation;
}
.wf-app-select-option.is-active { background: var(--wf-ui-soft); }
.wf-app-select-option[aria-selected="true"] { color: var(--wf-ui-accent); font-weight: 650; }
.wf-app-select-option[aria-selected="true"]::after {
  content: "";
  position: absolute;
  right: 12px;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url("/assets/museum/r210/icons/check.svg") center / contain no-repeat;
  mask: url("/assets/museum/r210/icons/check.svg") center / contain no-repeat;
}
.wf-app-select-option[aria-disabled="true"] { color: var(--wf-ui-muted); opacity: .5; cursor: default; }
.wf-app-select-group-label { padding: 12px 12px 5px; color: var(--wf-ui-muted); font-size: 13px; }
.wf-app-select-empty { margin: 0; padding: 24px 12px; color: var(--wf-ui-muted); text-align: center; }
@media (max-width: 600px) {
  body > .wf-app-select-overlay { align-items: flex-end; padding: 12px 12px max(12px, env(safe-area-inset-bottom, 0px)); }
  body > .wf-app-select-overlay > .wf-app-select-panel { width: 100%; max-height: 72vh; max-height: 72dvh; border-radius: 18px; }
}
