.course-appearance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 24px;
  max-width: 720px;
  padding: 18px 20px;
  margin: 26px 0 0;
  border: 1px solid #e0dacf;
  border-radius: 8px;
  background: #faf8f3;
}
.course-appearance .eyebrow { font-size: .6875rem; letter-spacing: .07em; }
.course-appearance h2 { font-size: 1.0625rem; letter-spacing: -.025em; margin: 5px 0; }
.appearance-copy p { color: #655b4d; font-size: .875rem; margin: 0; line-height: 1.5; }
.appearance-options { min-width: 0; border: 0; margin: 0; padding: 0; display: flex; gap: 8px; }
.appearance-options legend { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.appearance-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid #ddd5c7;
  border-radius: 6px;
  cursor: pointer;
}
.appearance-choice:has(input:checked) { background: #f3eddf; border-color: #b9a575; }
.appearance-choice:has(input:focus-visible) { outline: 3px solid #a98323; outline-offset: 3px; }
.appearance-choice input { margin: 0; width: 16px; height: 16px; flex-shrink: 0; accent-color: #a98323; }
.appearance-choice strong { display: block; font-size: .875rem; }
.appearance-choice small { color: #655b4d; display: block; margin-top: 2px; font-size: .6875rem; }
.theme-swatch { width: 32px; height: 28px; border: 1px solid #a99e8b; border-radius: 4px; padding: 6px; display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.theme-swatch span { display: block; width: 80%; height: 2px; border-radius: 2px; }
.theme-swatch i { display: block; width: 65%; height: 5px; border-radius: 2px; }
.theme-swatch-dark { background: #242321; }
.theme-swatch-dark span, .theme-swatch-dark i { background: #f3e9d4; }
.theme-swatch-light { background: #f6f3ed; }
.theme-swatch-light span, .theme-swatch-light i { background: #27282a; }
.appearance-footer { grid-column: 1 / -1; }
.course-appearance .appearance-note { color: #655b4d; font-size: .75rem; margin: 0; line-height: 1.5; }
.course-appearance .appearance-message { font-size: .8125rem; margin: 0; line-height: 1.5; }
.course-appearance .appearance-message:not(:empty) { margin-top: 6px; }
html[data-course-theme="dark"] .course-appearance { background: #292825; border-color: #474239; }
html[data-course-theme="dark"] .appearance-copy p, html[data-course-theme="dark"] .appearance-note, html[data-course-theme="dark"] .appearance-choice small { color: var(--muted); }
html[data-course-theme="dark"] .appearance-choice { border-color: #575044; }
html[data-course-theme="dark"] .appearance-choice:has(input:checked) { background: #353127; border-color: #8e7b4e; }
html[data-course-theme="dark"] .appearance-choice:has(input:focus-visible) { outline-color: var(--course-gold); }
@media(max-width:640px) {
  .course-appearance { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: 12px; }
  .appearance-choice { flex: 1; min-width: 0; padding: 8px; gap: 6px; }
  .appearance-choice small { display: none; }
  .theme-swatch { width: 24px; height: 24px; padding: 4px; }
}
