.course-preview video, .course-preview audio, .course-preview iframe, .course-preview img {
  display: block;
  width: 100%;
  max-height: 460px;
}
.course-preview video, .course-preview img { object-fit: contain; background: #f8fafc; }
.course-preview iframe { height: min(440px, 58vh); border: 0; }
.course-preview-notice { padding: 36px 20px; color: var(--muted); text-align: center; }
.course-study-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-top: 1px solid var(--line-2);
}
.course-study-meta #tkBadge[hidden], .course-study-meta #tkLine:empty { display: none; }
.course-study-meta #tkLine { color: var(--muted); font-size: 12px; margin-top: 4px; }
.course-study-rates { display: flex; gap: 6px; align-items: center; padding: 9px 16px; }
.course-study-rates button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 8px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.course-study-rates button.on { background: var(--brand-50); color: var(--brand); }
.course-document {
  overflow: auto;
  max-height: min(440px, 56vh);
  padding: 22px clamp(16px, 4vw, 32px);
  color: var(--ink-2);
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.course-document h2 { color: var(--ink); font-size: 18px; font-weight: 650; margin: 0 0 10px; }
.course-document p { margin: 0 0 12px; white-space: pre-wrap; }
.course-document table { width: 100%; border-collapse: collapse; }
.course-document td { border: 1px solid var(--line); padding: 8px 10px; white-space: pre-wrap; }
