.course-learning-content { min-width: 0; }
.learning-course-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 24px; margin-bottom: 18px; }
.learning-course-heading h2 { flex: 1 1 320px; margin: 0; color: #183752; font-size: 25px; line-height: 1.4; }
.learning-course-info { color: #65758b; font-size: 13px; }
.learning-course-info summary { cursor: pointer; padding: 6px 0; }
.learning-course-info span { display: block; padding: 4px 0; }
.course-learning-workspace { grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); gap: 18px; }
.course-learning-workspace.is-source-only { grid-template-columns: minmax(0, 1fr); }
.course-learning-workspace .learning-primary { display: block; min-width: 0; }
.course-learning-workspace .detail-video.is-source-only { aspect-ratio: auto; min-height: 220px; background: #f3f7fc; }
.course-learning-workspace .is-source-only .detail-video-error { background: #f3f7fc; color: #183752; }
.course-learning-workspace .learning-assistant { position: sticky; top: 18px; height: auto; min-height: 0; max-height: none; border-radius: 16px; box-shadow: 0 4px 20px rgba(42,72,120,.05); }
.learning-panel-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #e7eef8; }
.learning-panel-header strong { color: #183752; font-size: 16px; }
.learning-panel-header small { display: inline-block; margin-left: 8px; color: #65758b; font-size: 11px; }
.learning-panel-header button,.learning-segment-actions button { border: 1px solid #dbe5f1; background: #fff; color: #245c9b; border-radius: 9px; padding: 7px 10px; cursor: pointer; }
.learning-panel-body { display: flex; flex-direction: column; height: min(570px, calc(100vh - 260px)); min-height: 350px; }
.learning-current-segment { flex: 0 0 auto; padding: 12px 16px; background: #f7faff; }
.learning-segment-heading { display: flex; align-items: center; gap: 8px; color: #315576; font-size: 13px; }
.learning-segment-heading time { font-variant-numeric: tabular-nums; color: #285ba5; }
.learning-transcript { margin-top: 8px; color: #52647a; font-size: 12px; }
.learning-transcript summary { cursor: pointer; line-height: 1.6; }
.learning-transcript p { max-height: 110px; overflow: auto; line-height: 1.65; margin: 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.learning-segment-actions { display: flex; gap: 8px; margin-top: 8px; }
.learning-segment-actions button:last-child { background: #ecf3ff; border-color: #c9dcf8; }
.learning-panel-tabs { flex: 0 0 auto; display: flex; gap: 6px; padding: 8px 12px; border-bottom: 1px solid #e7eef8; }
.learning-panel-tabs button { flex: 1; border: 0; border-radius: 8px; padding: 9px; background: transparent; color: #65758b; cursor: pointer; }
.learning-panel-tabs button[aria-pressed="true"] { color: #1d5ca8; background: #eef4ff; font-weight: 600; }
.learning-ask-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.learning-answer-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.course-learning-workspace .assistant-chat-scroll { height: auto; min-height: 0; max-height: none; overflow: visible; padding: 12px 14px; }
.learning-welcome { margin: 0; font-size: 13px; line-height: 1.7; color: #718096; }
.course-learning-workspace .assistant-chat-footer { flex: 0 0 auto; position: static; padding: 12px; border-top: 1px solid #e7eef8; }
.course-learning-workspace .assistant-composer { display: flex; gap: 8px; align-items: flex-end; }
.course-learning-workspace .assistant-composer textarea { min-width: 0; width: 100%; min-height: 54px; resize: vertical; max-height: 130px; font-size: 14px; }
.course-learning-workspace .assistant-composer button { position: static; flex: 0 0 auto; width: auto; min-width: 48px; min-height: 40px; padding: 8px 10px; }
.learning-storage-note { display: block; margin-top: 6px; color: #8792a3; font-size: 11px; }
.learning-content-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 10px 12px; }
.learning-content-search input { box-sizing: border-box; width: 100%; border: 1px solid #dbe5f1; border-radius: 9px; padding: 10px; font-size: 14px; }
.learning-segment-list { min-height: 0; overflow-y: auto; margin-top: 8px; overscroll-behavior: contain; }
.learning-segment-list button { display: block; width: 100%; text-align: left; padding: 10px; margin: 0 0 5px; border: 1px solid transparent; background: #fff; border-radius: 9px; color: #42536c; cursor: pointer; }
.learning-segment-list button[aria-current="true"] { border-color: #c9dcf8; background: #f1f6ff; }
.learning-segment-list time { display: block; color: #285ba5; font-size: 12px; margin-bottom: 5px; }
.learning-segment-list span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.learning-unavailable { font-size: 12px; line-height: 1.6; color: #728096; margin: 8px 0 0; }
.learning-discussion-panel { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.course-learning-workspace .chapter-roundtable { margin: 0; padding: 12px; border: 0; box-shadow: none; }
.course-learning-workspace .roundtable-discussion { padding: 0; border: 0; }
.course-learning-workspace .roundtable-participants { display: block; margin: 8px 0; }
.roundtable-participants summary { cursor: pointer; color: #728096; font-size: 12px; }
.course-learning-workspace .roundtable-participant { margin-top: 6px; }
.course-learning-workspace button:focus-visible,.course-learning-workspace input:focus-visible,.course-learning-workspace textarea:focus-visible,.course-learning-content summary:focus-visible { outline: 2px solid #316fc4; outline-offset: 2px; }
.course-learning-workspace button:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 1000px) {
  .course-learning-workspace { grid-template-columns: minmax(0, 1fr); }
  .course-learning-workspace .learning-primary { display: block; }
  .course-learning-workspace .learning-assistant { position: static; order: initial; }
  .learning-panel-body { height: min(470px, 64vh); min-height: 340px; }
  .learning-course-heading { gap: 4px; margin-bottom: 12px; }
  .learning-course-heading h2 { flex-basis: 100%; font-size: 20px; }
  .learning-panel-tabs button,.learning-segment-actions button,.learning-panel-header button { min-height: 40px; }
}
