/* Crushendo LMS front end. Brand: Midnight #001689, Orange #E87200, Gold #F5B335, link blue #40A3F3, Kiwi #80BC00, Red #D50057. */
.clms-wrap { --m: #001689; --o: #E87200; --oh: #C96200; --b: #40A3F3; --g: #80BC00; --r: #D50057; --line: #E3E6EF; --soft: #F3F5FC; color: #252729; }
.clms-wrap *, .clms-notes * { box-sizing: border-box; }
.clms-wrap ul, .clms-wrap ol { list-style: none; margin: 0; padding: 0; }
.clms-wrap .screen-reader-text { position: absolute; left: -9999px; }

/* Buttons */
.clms-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 24px; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none !important; cursor: pointer; background: var(--soft, #F3F5FC); color: #001689; transition: background .15s, color .15s; }
.clms-btn-primary { background: #E87200; color: #fff !important; }
.clms-btn-primary:hover, .clms-btn-primary:focus { background: #C96200; color: #fff; }
.clms-btn-ghost { background: #fff; border-color: #001689; color: #001689 !important; }
.clms-btn-ghost:hover, .clms-btn-ghost:focus { background: #001689; color: #fff !important; }
.clms-btn-done { background: #EEF6DC; color: #4d7200; border-color: #80BC00; }
.clms-btn[disabled] { opacity: .55; cursor: default; }

/* Breadcrumbs and status */
.clms-crumbs { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #F3F5FC; border-radius: 8px; padding: 10px 14px; margin: 0 0 18px; font-size: 15px; }
.clms-crumbs a { color: #40A3F3; font-weight: 700; text-decoration: none; }
.clms-crumbs a:hover { text-decoration: underline; }
.clms-sep { margin: 0 6px; color: #6b7280; }
.clms-crumb-current { color: #40A3F3; font-weight: 700; }
.clms-pill { flex: none; border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 700; background: #E3E6EF; color: #4b5563; }
.clms-pill-complete { background: #EEF6DC; color: #4d7200; }
.clms-pill-progress { background: #E3E6EF; color: #4b5563; }

/* Progress */
.clms-progress { margin: 0 0 14px; }
.clms-progress-bar { height: 6px; border-radius: 999px; background: #E3E6EF; overflow: hidden; }
.clms-progress-bar span { display: block; height: 100%; border-radius: 999px; background: #40A3F3; }
.clms-progress-meta { display: flex; justify-content: space-between; font-size: 13px; color: #6b7280; margin-top: 4px; }
.clms-course-status { display: flex; align-items: center; gap: 18px; margin: 0 0 22px; }
.clms-course-status .clms-progress { flex: 1; margin: 0; }

/* Lists */
.clms-section { margin: 26px 0 0; }
.clms-section-head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; }
.clms-section-head h2 { font-size: 22px; margin: 0; color: #001689; }
.clms-section-head-bar { background: #001689; border-radius: 8px 8px 0 0; padding: 14px 16px; margin: 0; }
.clms-section-head-bar h2 { color: #fff; font-size: 18px; }
.clms-list { border: 1px solid #E3E6EF; border-radius: 8px; overflow: hidden; background: #fff; }
.clms-section-head-bar + .clms-list { border-top: 0; border-radius: 0 0 8px 8px; }
.clms-item + .clms-item { border-top: 1px solid #E3E6EF; }
.clms-item-row { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.clms-item-title { flex: 1; color: #252729; text-decoration: none; font-size: 16px; }
a.clms-item-title:hover { color: #E87200; }
.clms-item.is-current > .clms-item-row .clms-item-title { font-weight: 700; color: #001689; }
.clms-item-where, .clms-item-pct { font-size: 13px; color: #6b7280; }
.clms-type-icon { flex: none; width: 22px; height: 22px; color: #001689; }
.clms-type-icon svg { width: 22px; height: 22px; display: block; }
.clms-sublist { background: #FAFBFE; border-top: 1px solid #E3E6EF; }
.clms-sublist .clms-item-row { padding-left: 40px; }
.clms-sublist .clms-sublist .clms-item-row { padding-left: 64px; }
.clms-toggle { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #F3F5FC; cursor: pointer; padding: 0; position: relative; }
.clms-toggle span { position: absolute; left: 10px; top: 9px; width: 8px; height: 8px; border-right: 2px solid #001689; border-bottom: 2px solid #001689; transform: rotate(45deg); transition: transform .15s; }
.clms-toggle[aria-expanded="true"] span { transform: rotate(-135deg); top: 13px; }
.clms-status { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #C9CEDB; background: #fff; }
.clms-status-progress { border-color: #40A3F3; background: linear-gradient(90deg, #40A3F3 50%, #fff 50%); }
.clms-status-complete { border-color: #80BC00; background: #80BC00 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat; }
.clms-expand-all { border: 0; background: none; color: #40A3F3; font-weight: 700; font-size: 14px; cursor: pointer; padding: 4px 0; }
.clms-expand-pill { background: #40A3F3; color: #fff; border-radius: 999px; padding: 6px 14px; font-size: 12px; }

/* Step nav */
.clms-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 30px 0 0; padding-top: 20px; border-top: 1px solid #E3E6EF; }
.clms-nav-next { text-align: right; }
.clms-complete-form { margin: 0; }

/* Notices */
.clms-notice { background: #F3F5FC; border-left: 4px solid #001689; border-radius: 6px; padding: 16px 18px; margin: 0 0 18px; }
.clms-notice-locked p { margin: 0 0 12px; }
.clms-empty { color: #6b7280; }

/* Sidebar */
.clms-side .clms-search { margin-bottom: 18px; }
.clms-search { position: relative; }
.clms-search input[type=search] { width: 100%; height: 44px; border: 1px solid #40A3F3; border-radius: 999px; padding: 0 46px 0 16px; font-size: 15px; background: #fff; }
.clms-search button { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; background: none; color: #001689; cursor: pointer; padding: 6px; }
.clms-search button svg { width: 22px; height: 22px; }
.clms-side-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #E3E6EF; padding: 6px 0 10px; margin-bottom: 4px; }
.clms-side-home { color: #40A3F3; text-decoration: none; font-size: 15px; }
.clms-list-side { border: 0; border-radius: 0; }
.clms-list-side .clms-item-row { padding: 9px 4px; }
.clms-side-item a, .clms-side-item .clms-item-row > span:not(.clms-status) { flex: 1; color: #252729; text-decoration: none; font-size: 15px; }
.clms-side-item a:hover { color: #E87200; }
.clms-side-item.is-current > .clms-item-row a { color: #001689; font-weight: 700; }
.clms-list-side .clms-sublist { background: none; border: 0; padding-left: 18px; }
.clms-list-side .clms-sublist .clms-item-row { padding-left: 4px; }
.clms-list-side .clms-toggle { width: 24px; height: 24px; }
.clms-list-side .clms-toggle span { left: 7px; top: 6px; }
.clms-list-side .clms-toggle[aria-expanded="true"] span { top: 10px; }

/* Course grid */
.clms-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.clms-cols-1 { grid-template-columns: 1fr; } .clms-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .clms-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.clms-card { background: #fff; border: 1px solid #E3E6EF; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.clms-card:hover { box-shadow: 0 8px 24px rgba(0, 22, 137, .12); transform: translateY(-2px); }
.clms-card-media { display: block; aspect-ratio: 16 / 9; background: #001689; }
.clms-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clms-card-ph { display: flex; align-items: center; justify-content: center; height: 100%; color: #fff; font-weight: 700; padding: 12px; text-align: center; }
.clms-card-body { padding: 14px 16px 16px; }
.clms-card-title { font-size: 17px; margin: 0 0 10px; line-height: 1.3; }
.clms-card-title a { color: #001689; text-decoration: none; }
.clms-card .clms-progress { margin: 0; }

/* Quiz */
.clms-quiz-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; font-size: 14px; color: #4b5563; margin: 0 0 12px; }
.clms-quiz-timer { font-weight: 700; color: #D50057; }
.clms-quiz-count { font-size: 13px; color: #6b7280; margin: 0 0 6px; }
.clms-quiz-body.is-busy { opacity: .5; pointer-events: none; }
.clms-q { margin: 0 0 26px; }
.clms-q-head { font-weight: 700; color: #001689; border-bottom: 1px solid #E3E6EF; padding-bottom: 6px; margin-bottom: 14px; }
.clms-q-text { margin-bottom: 16px; }
.clms-q-text p { margin: 0 0 14px; }
.clms-answers { display: grid; gap: 8px; }
.clms-answer label { display: flex; align-items: flex-start; gap: 10px; border: 1px solid #C9CEDB; border-radius: 8px; padding: 12px 14px; cursor: pointer; background: #fff; }
.clms-answer label:hover { border-color: #40A3F3; }
.clms-answer input { margin: 4px 0 0; flex: none; accent-color: #001689; }
.clms-answer-text p { margin: 0; }
.clms-review-q .clms-answer { border: 1px solid #C9CEDB; border-radius: 8px; padding: 12px 14px; }
.clms-answer.is-solution label, .clms-review-q .clms-answer.is-solution { border-color: #80BC00; background: #F4FAE6; }
.clms-answer.is-wrong label, .clms-review-q .clms-answer.is-picked:not(.is-solution) { border-color: #D50057; background: #FDEEF4; }
.clms-answer.is-picked .clms-answer-text { font-weight: 700; }
.clms-input { border: 1px solid #40A3F3; border-radius: 8px; padding: 10px 12px; font-size: 16px; max-width: 100%; background: #fff; }
textarea.clms-input { width: 100%; }
.clms-cloze { width: 140px; padding: 4px 8px; margin: 0 4px; }
.clms-cloze-sol { color: #4d7200; font-weight: 700; margin-right: 4px; }
.clms-sort-item { display: flex; align-items: center; gap: 8px; border: 1px solid #C9CEDB; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; background: #fff; }
.clms-sort-item .clms-answer-text { flex: 1; }
.clms-move { width: 32px; height: 32px; border: 1px solid #C9CEDB; border-radius: 6px; background: #F3F5FC; cursor: pointer; }
.clms-matrix-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; margin-bottom: 8px; }
.clms-scale { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.clms-hint-btn { border: 0; background: none; color: #40A3F3; font-weight: 700; cursor: pointer; padding: 8px 0; }
.clms-hint { background: #FFF8E6; border-left: 4px solid #F5B335; padding: 12px 14px; border-radius: 6px; }
.clms-feedback { border-radius: 8px; padding: 14px 16px; margin-top: 14px; background: #F3F5FC; border-left: 4px solid #001689; }
.clms-feedback.is-right { background: #F4FAE6; border-color: #80BC00; }
.clms-feedback.is-wrong { background: #FDEEF4; border-color: #D50057; }
.clms-feedback-label { font-weight: 700; margin-bottom: 6px; }
.clms-explain p:last-child { margin-bottom: 0; }
.clms-review-q .clms-explain { background: #F3F5FC; border-radius: 8px; padding: 14px 16px; margin-top: 14px; }
.clms-solution { font-size: 14px; color: #4d7200; margin-top: 8px; font-weight: 700; }
.clms-quiz-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.clms-quiz-msg { color: #D50057; font-size: 14px; }
.clms-result { background: #F3F5FC; border-radius: 14px; padding: 26px 28px; margin-bottom: 24px; }
.clms-result h2 { margin: 0 0 12px; color: #001689; }
.clms-result p { margin: 0 0 8px; }
.clms-result-pct strong:last-child { color: #001689; }
.clms-score { display: inline-block; border-radius: 999px; padding: 2px 12px; font-weight: 700; font-size: 14px; }
.clms-score.is-pass { background: #EEF6DC; color: #4d7200; }
.clms-score.is-fail { background: #FDEEF4; color: #a3003f; }
.clms-your-answer { background: #FAFBFE; border: 1px solid #E3E6EF; border-radius: 8px; padding: 12px 14px; }

/* Tables, profile */
.clms-table { width: 100%; border-collapse: collapse; }
.clms-table th, .clms-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #EEF0F5; font-size: 15px; }
.clms-profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.clms-profile-head img { border-radius: 50%; }
.clms-profile-name { font-size: 20px; font-weight: 700; color: #001689; }
.clms-profile-stats { display: flex; gap: 16px; color: #4b5563; font-size: 14px; }
.clms-profile-title { font-size: 22px; color: #001689; margin: 0 0 12px; }
.clms-profile-course > .clms-progress { padding: 0 16px 12px; margin: 0; }
.clms-profile-course .clms-sublist { padding: 6px 16px 12px; }

/* Notes */
.clms-notes-fab { position: fixed; right: 0; top: 46%; z-index: 9990; width: 46px; height: 46px; border: 0; border-radius: 8px 0 0 8px; background: #40A3F3; color: #fff; cursor: pointer; padding: 11px; }
.clms-notes-fab svg { width: 24px; height: 24px; display: block; }
.clms-notes { position: fixed; right: 16px; bottom: 16px; z-index: 9991; width: 360px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid #E3E6EF; border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 22, 137, .2); padding: 14px; }
.clms-notes[hidden] { display: none; }
.clms-notes-head { display: flex; justify-content: space-between; align-items: center; color: #001689; margin-bottom: 10px; }
.clms-notes-close { border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: #4b5563; }
.clms-note-title, .clms-note-body { width: 100%; border: 1px solid #C9CEDB; border-radius: 8px; padding: 8px 10px; font-size: 15px; margin-bottom: 8px; font-family: inherit; }
.clms-notes-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; font-size: 14px; }
.clms-note-status { margin-right: auto; color: #4b5563; }
.clms-notes-actions .clms-btn { min-height: 38px; padding: 6px 20px; }
.clms-note-card { border: 1px solid #E3E6EF; border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; background: #fff; }
.clms-note-card header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 8px; }
.clms-note-card h3 { margin: 0; font-size: 18px; color: #001689; }
.clms-note-card header a { color: #40A3F3; font-size: 14px; }
.clms-note-date { color: #6b7280; font-size: 13px; margin-left: auto; }
.clms-note-delete { border: 0; background: none; color: #D50057; cursor: pointer; padding: 0; font-size: 14px; }

@media (max-width: 768px) {
	.clms-grid, .clms-cols-2, .clms-cols-4 { grid-template-columns: 1fr; gap: 16px; }
	.clms-crumbs { flex-direction: column; align-items: flex-start; }
	.clms-nav { grid-template-columns: 1fr; text-align: center; }
	.clms-nav-next { text-align: center; }
	.clms-nav .clms-btn { width: 100%; }
	.clms-course-status { flex-direction: column; align-items: stretch; }
	.clms-matrix-row { grid-template-columns: 1fr; }
	.clms-quiz-actions .clms-btn { flex: 1; }
	.clms-result { padding: 20px 18px; }
	.clms-table thead { display: none; }
	.clms-table tr { display: block; padding: 8px 0; border-bottom: 1px solid #EEF0F5; }
	.clms-table td { display: block; border: 0; padding: 2px 0; }
	.clms-notes { right: 8px; bottom: 8px; }
}
@media print {
	.clms-notes-fab, .clms-notes, .clms-notes-tools, .clms-note-delete, .site-header, .site-footer, #right-sidebar { display: none !important; }
}

/* 1.0.2 */
.clms-btn, a.clms-btn.clms-resume { box-sizing: border-box !important; min-height: 44px; padding: 10px 28px !important; line-height: 1.2 !important; display: inline-flex !important; }
/* 1.0.1 */
.clms-wrap .clms-section-head h2 { font-size: 22px !important; margin: 0 !important; line-height: 1.3 !important; }
.clms-wrap .clms-section-head-bar h2 { font-size: 18px !important; color: #fff !important; }
.clms-wrap .clms-quiz-title { font-size: 26px !important; color: #001689; margin: 0 0 16px !important; line-height: 1.25 !important; }
/* 1.2.4: course title, notes page, tap targets, floating buttons clear of the audio bar */
.clms-course-head { margin: 0 0 18px; }
.clms-wrap .clms-course-title { font-size: 32px !important; line-height: 1.15 !important; color: #001689; margin: 0 !important; }
.clms-back { display: inline-block; margin: 0 0 6px; padding: 6px 0; color: #40A3F3; font-weight: 700; font-size: 15px; text-decoration: none; }
.clms-back:hover, .clms-back:focus { text-decoration: underline; }
.clms-my-notes { max-width: 860px; margin: 0 auto; padding: 32px 20px 60px; }
.clms-wrap .clms-page-title { font-size: 34px !important; color: #001689; margin: 0 0 18px !important; line-height: 1.15 !important; }
.clms-my-notes .clms-notes-course h2 { font-size: 24px !important; line-height: 1.2 !important; margin: 28px 0 12px !important; }
a.clms-item-title, .clms-side-item a { display: flex; align-items: center; min-height: 34px; padding: 5px 0; }
.clms-expand-all { min-height: 36px; padding: 8px 0; }
.clms-note-delete { min-height: 36px; padding: 9px 12px 9px 0; }
body.clms-has-player .clms-notes { bottom: 96px; }
body.clms-has-player #clms-chat-btn { bottom: 100px; }
body.clms-has-player #clms-chat { bottom: 168px; max-height: calc(100vh - 200px); }
@media (max-width: 600px) {
	.clms-wrap .clms-course-title { font-size: 26px !important; }
	.clms-wrap .clms-page-title { font-size: 28px !important; }
	.clms-notes-fab { top: auto; bottom: 88px; right: 20px; width: 48px; height: 48px; border-radius: 50%; padding: 12px; box-shadow: 0 0 0 2px #fff, 0 6px 16px rgba(0, 22, 137, .3); }
	body.clms-has-player .clms-notes-fab { bottom: 168px; }
	body.clms-has-player #clms-chat { bottom: 0; max-height: none; }
}
@media print { .clms-back { display: none !important; } }
/* 1.2.5 */
.clms-quiz-title + .clms-review > h2:first-child { display: none; }
/* 1.2.6 */
.clms-profile-course:not(.has-children) .clms-item-pct { margin-right: 40px; }

/* ===== 1.3.0: course groups, list icons, Expand All, notes, dictation, read-aloud ===== */
.clms-expand-all, .clms-expand-all.clms-expand-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border: 1.5px solid #D5DAE8; border-radius: 999px; background: #fff; color: #001689; font-size: 14px; font-weight: 700; line-height: 1; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.clms-expand-all::before { content: ""; width: 8px; height: 8px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.clms-expand-all[data-open="1"]::before { transform: rotate(-135deg); margin-top: 4px; }
.clms-expand-all:hover, .clms-expand-all:focus-visible { border-color: #001689; background: #001689; color: #fff; }
.clms-section-head { margin-bottom: 14px; }
.clms-list { border-radius: 14px; box-shadow: 0 1px 2px rgba(0, 22, 137, .04), 0 8px 22px rgba(0, 22, 137, .05); }
.clms-item-row { gap: 12px; padding: 11px 16px; transition: background .15s; }
.clms-item-row:hover { background: #FAFBFE; }
.clms-type-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: #EEF1FB; color: #001689; }
.clms-type-icon svg { width: 19px; height: 19px; }
.clms-item-quiz > .clms-item-row .clms-type-icon { background: #FDF1D6; color: #B45800; }
.clms-item-topic > .clms-item-row .clms-type-icon { background: #E6F3FE; color: #1B6FB8; }
.clms-sublist .clms-type-icon { width: 28px; height: 28px; border-radius: 8px; }
.clms-sublist .clms-type-icon svg { width: 16px; height: 16px; }
.clms-list-course > .clms-item > .clms-item-row .clms-item-title { font-weight: 600; font-size: 16.5px; }
.clms-status { width: 20px; height: 20px; }
.clms-status-complete { background-size: 14px; }
.clms-groups { display: grid; gap: 16px; }
.clms-group { border: 1px solid #E3E6EF; border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 22, 137, .04), 0 10px 26px rgba(0, 22, 137, .06); }
.clms-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: linear-gradient(135deg, #001689, #06127A 60%, #000F5C); color: #fff; }
.clms-group > summary::-webkit-details-marker { display: none; }
.clms-group > summary:focus-visible { outline: 3px solid rgba(64, 163, 243, .9); outline-offset: -3px; }
.clms-group-name { flex: 1; font-size: 18px; font-weight: 700; line-height: 1.25; display: flex; align-items: center; gap: 10px; }
.clms-group-name::before { content: ""; flex: none; width: 6px; height: 22px; border-radius: 3px; background: linear-gradient(#F5B335, #E87200); }
.clms-group-meta { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .9); white-space: nowrap; }
.clms-group-caret { flex: none; width: 10px; height: 10px; margin: 0 4px 4px 2px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); transition: transform .15s; }
.clms-group[open] .clms-group-caret { transform: rotate(-135deg); margin-bottom: -4px; }
.clms-group .clms-list { border: 0; border-radius: 0; box-shadow: none; }

/* Notes pop-up */
.clms-notes-fab { display: flex; align-items: center; gap: 8px; width: auto; height: 46px; padding: 0 14px 0 12px; border-radius: 999px 0 0 999px; background: linear-gradient(135deg, #F28A1C, #E87200); box-shadow: 0 6px 18px rgba(232, 114, 0, .35); font-weight: 700; font-size: 14px; }
.clms-notes-fab svg { width: 22px; height: 22px; flex: none; }
.clms-notes { width: 400px; padding: 0 16px 14px; border: 0; border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 22, 137, .3); overflow: hidden; }
.clms-notes-head { margin: 0 -16px 12px; padding: 14px 16px; background: linear-gradient(135deg, #001689, #06127A 60%, #000F5C); color: #fff; font-size: 16px; }
.clms-notes-head strong { display: flex; align-items: center; gap: 10px; }
.clms-notes-head strong::before { content: ""; width: 6px; height: 20px; border-radius: 3px; background: linear-gradient(#F5B335, #E87200); }
.clms-notes-close { color: #fff; width: 36px; height: 36px; border-radius: 50%; }
.clms-notes-close:hover { background: rgba(255, 255, 255, .15); }
.clms-note-title, .clms-note-body, .clms-note-edit { border: 1.5px solid #D5DAE8; border-radius: 10px; padding: 10px 12px; font-size: 16px; line-height: 1.5; color: #252729; background: #fff; }
.clms-note-title { font-weight: 700; color: #001689; }
.clms-note-title:focus, .clms-note-body:focus, .clms-note-edit:focus, .clms-mn-search:focus { outline: 0; border-color: #40A3F3; box-shadow: 0 0 0 3px rgba(64, 163, 243, .25); }
.clms-note-body { resize: vertical; min-height: 150px; margin-bottom: 6px; }
.clms-note-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.clms-note-chip { border: 0; border-radius: 999px; padding: 6px 12px; min-height: 32px; background: #FDF1D6; color: #8a4a00; font-size: 13px; font-weight: 700; cursor: pointer; }
.clms-note-chip:hover, .clms-note-chip:focus-visible { background: #E87200; color: #fff; }
.clms-notes-actions { margin-top: 10px; }
.clms-notes-actions a { color: #001689; font-weight: 700; }

/* Dictation and read-aloud */
.clms-voice { display: flex; align-items: center; gap: 10px; margin: 6px 0 8px; min-height: 36px; }
.clms-voice-btn, .clms-listen-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px 0 10px; border: 1.5px solid #D5DAE8; border-radius: 999px; background: #fff; color: #001689; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.clms-voice-btn svg, .clms-listen-btn svg { width: 18px; height: 18px; flex: none; }
.clms-voice-btn:hover, .clms-listen-btn:hover { border-color: #001689; }
.clms-voice-btn.is-on { background: #D50057; border-color: #D50057; color: #fff; animation: clms-pulse 1.4s ease-in-out infinite; }
.clms-listen-btn.is-on { background: #001689; border-color: #001689; color: #fff; }
.clms-voice-status { font-size: 13px; color: #5B6474; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
@keyframes clms-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(213, 0, 87, .45); } 50% { box-shadow: 0 0 0 8px rgba(213, 0, 87, 0); } }
.clms-q-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.clms-listen { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
.clms-listen-rate { min-width: 44px; min-height: 36px; border: 1.5px solid #D5DAE8; border-radius: 999px; background: #fff; color: #5B6474; font-size: 13px; font-weight: 700; cursor: pointer; }
.clms-listen-rate:hover { border-color: #001689; color: #001689; }

/* My Notes page */
.clms-my-notes { max-width: 900px; padding-top: 28px; }
.clms-mn-hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 26px 28px; border-radius: 20px; background: radial-gradient(700px 300px at 90% -20%, rgba(64, 163, 243, .35), transparent 60%), linear-gradient(135deg, #001689, #06127A 60%, #000F5C); color: #fff; box-shadow: 0 18px 44px rgba(0, 22, 137, .25); }
.clms-wrap .clms-mn-hero .clms-page-title { color: #fff; margin: 0 0 4px !important; }
.clms-mn-sub { margin: 0; color: rgba(255, 255, 255, .8); font-size: 15px; }
.clms-mn-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 22px 0 12px; }
.clms-mn-search { flex: 1; min-width: 220px; min-height: 46px; border: 1.5px solid #D5DAE8; border-radius: 999px; padding: 0 18px 0 44px; font-size: 16px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='6.5' fill='none' stroke='%235B6474' stroke-width='2'/%3E%3Cpath d='M16 16l4.5 4.5' stroke='%235B6474' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 14px center / 20px no-repeat; }
.clms-mn-tools .clms-btn { min-height: 46px; padding: 8px 20px; font-size: 15px; }
.clms-mn-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.clms-mn-filter { border: 1.5px solid #D5DAE8; border-radius: 999px; background: #fff; color: #001689; font-size: 14px; font-weight: 700; min-height: 36px; padding: 0 14px; cursor: pointer; }
.clms-mn-filter span { color: #5B6474; font-weight: 600; margin-left: 4px; }
.clms-mn-filter.is-on { background: #001689; border-color: #001689; color: #fff; }
.clms-mn-filter.is-on span { color: rgba(255, 255, 255, .75); }
.clms-mn-none, .clms-mn-empty { text-align: center; color: #5B6474; }
.clms-mn-empty { margin: 26px 0 0; padding: 48px 24px; border: 2px dashed #D5DAE8; border-radius: 20px; background: #FAFBFE; }
.clms-mn-empty p { margin: 0 0 16px; font-size: 20px; font-weight: 700; color: #001689; }
.clms-my-notes .clms-notes-course h2 { display: flex; align-items: center; gap: 10px; font-size: 21px !important; color: #001689; margin: 30px 0 12px !important; }
.clms-my-notes .clms-notes-course h2::before { content: ""; flex: none; width: 6px; height: 22px; border-radius: 3px; background: linear-gradient(#F5B335, #E87200); }
.clms-note-card { border-radius: 16px; padding: 18px 20px 12px; border-left: 4px solid #F5B335; box-shadow: 0 1px 2px rgba(0, 22, 137, .04), 0 8px 22px rgba(0, 22, 137, .05); transition: box-shadow .15s; }
.clms-note-card:hover { box-shadow: 0 12px 30px rgba(0, 22, 137, .10); }
.clms-note-card[hidden], .clms-notes-course[hidden] { display: none; }
.clms-note-card header { margin-bottom: 6px; }
.clms-note-text { font-size: 16.5px; line-height: 1.6; color: #252729; }
.clms-note-text p { margin: 0 0 .7em; }
.clms-note-edit { width: 100%; margin: 4px 0 0; font-family: inherit; resize: vertical; }
.clms-note-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #EEF0F7; }
.clms-note-open { margin-right: auto; color: #40A3F3; font-size: 14px; font-weight: 700; text-decoration: none; }
.clms-note-open:hover { text-decoration: underline; }
.clms-note-actions .clms-note-status { margin-left: auto; font-size: 13px; color: #5B6474; }
.clms-note-edit-btn, .clms-note-copy, .clms-note-delete { border: 0; background: none; cursor: pointer; min-height: 36px; padding: 6px 0; font-size: 14px; font-weight: 700; color: #001689; }
.clms-note-edit-btn:hover, .clms-note-copy:hover { color: #E87200; }
.clms-note-delete { color: #D50057; }
@media (max-width: 600px) {
	.clms-notes, body.clms-has-player .clms-notes { left: 0; right: 0; bottom: 0; width: auto; max-width: none; max-height: 88vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding-bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 100001; }
	.clms-note-body { min-height: 120px; }
	.clms-notes-fab { width: 52px; height: 52px; padding: 0; justify-content: center; border-radius: 50%; }
	.clms-notes-fab-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.clms-mn-hero { padding: 20px; border-radius: 16px; }
	.clms-mn-hero .clms-btn { width: 100%; }
	.clms-mn-tools .clms-btn { flex: 1; }
	.clms-group > summary { padding: 14px; }
	.clms-group-name { font-size: 16.5px; }
	.clms-item-row { padding: 11px 12px; }
	.clms-listen-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.clms-listen-btn { padding: 0 10px; }
}
@media print {
	.clms-mn-hero { background: none !important; color: #000; box-shadow: none; padding: 0; }
	.clms-wrap .clms-mn-hero .clms-page-title { color: #000; }
	.clms-mn-new, .clms-mn-tools, .clms-mn-filters, .clms-note-actions, .clms-voice, .clms-listen, .clms-mn-sub { display: none !important; }
	.clms-note-card { box-shadow: none; break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) { .clms-voice-btn.is-on { animation: none; } }
.clms-section-head-tools { justify-content: flex-end; margin-bottom: 12px; }
.clms-item-lessons > .clms-item-row > .clms-type-icon { display: none; }
.clms-note-edit[hidden] + .clms-voice { display: none; }
.clms-wrap input.clms-mn-search[type="search"] { border: 1.5px solid #D5DAE8 !important; border-radius: 999px !important; padding: 0 18px 0 44px !important; background-color: #fff !important; }
.clms-notes input.clms-note-title[type="text"], .clms-notes textarea.clms-note-body, .clms-wrap textarea.clms-note-edit { border: 1.5px solid #D5DAE8 !important; border-radius: 10px !important; padding: 10px 12px !important; background: #fff !important; }
@media (min-width: 601px) { .clms-notes { max-height: calc(100vh - 32px); overflow-y: auto; } }
.clms-wrap .clms-search input[type="search"] { height: 40px; border: 1px solid #E3E6EF !important; background: #F7F8FC !important; color: #252729; font-size: 14.5px; box-shadow: none; transition: border-color .15s, background .15s; }
.clms-wrap .clms-search input[type="search"]::placeholder { color: #8A93A6; }
.clms-wrap .clms-search input[type="search"]:focus { border-color: #40A3F3 !important; background: #fff !important; outline: 0; box-shadow: 0 0 0 3px rgba(64, 163, 243, .2); }
.clms-search button { top: 2px; color: #8A93A6; }
.clms-search button svg { width: 19px; height: 19px; }
.clms-search-results .clms-item-hit > .clms-item-row { padding-bottom: 6px; }
.clms-search-results .clms-item-hit .clms-item-title { font-weight: 700; color: #001689; }
.clms-hits { padding: 0 16px 12px; }
.clms-hit { margin: 0 0 6px !important; padding-left: 12px; border-left: 3px solid #F5B335; font-size: 15px; line-height: 1.5; color: #4b5563; }
.clms-hit mark { background: #FDF1D6; color: #8a4a00; font-weight: 700; padding: 0 3px; border-radius: 3px; }

/* 1.3.9 Model answer on the attempt review screen. */
.clms-review-model { margin-top: 22px; background: #F3F5FC; border-left: 4px solid #F5B335; border-radius: 8px; padding: 18px 20px; }
.clms-review-model-title { margin: 0 0 10px; font-size: 1.05rem; color: #001689; }
.clms-review-model .clms-result-text > :last-child { margin-bottom: 0; }

/* 1.3.15 Crushboard: grouped courses, orange dropdowns, attempts on demand. */
.clms-cb { max-width: 1010px; margin: 0 auto; }
.clms-cb [hidden] { display: none !important; }
.clms-cb-h { font-size: 22px; line-height: 1.2; font-weight: 700; color: #001689; margin: 0; }
.clms-cb-next { margin: 0 0 32px; }
.clms-cb-next .clms-cb-h { margin-bottom: 16px; }
.clms-cb-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.clms-cb a.clms-cb-card { display: flex; align-items: stretch; background: #fff; border-radius: 16px; overflow: hidden; text-decoration: none !important; color: #252729; box-shadow: 0 2px 6px rgba(0,22,137,.06), 0 8px 24px rgba(0,22,137,.08); transition: transform .15s, box-shadow .15s; }
.clms-cb a.clms-cb-card:hover, .clms-cb a.clms-cb-card:focus-visible { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0,22,137,.08), 0 14px 32px rgba(0,22,137,.14); }
.clms-cb-card img { display: block; flex: none; width: 124px; height: auto; min-height: 92px; margin: 0; object-fit: cover; }
.clms-cb-card-body { display: flex; flex-direction: column; justify-content: center; flex: 1; min-width: 0; padding: 12px 16px; }
.clms-cb-card-title { display: block; font-size: 15px; line-height: 1.25; font-weight: 700; color: #001689; margin: 0 0 9px; }
.clms-cb-card-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; white-space: nowrap; color: #5b6472; margin-top: 8px; }
.clms-cb-card-go { color: #C96200; font-weight: 700; }
.clms-cb-bar { display: block; height: 8px; border-radius: 999px; background: #E3E6EF; overflow: hidden; }
.clms-cb-bar > span { display: block; height: 100%; border-radius: 999px; background: #40A3F3; }
.clms-cb-row.is-done .clms-cb-bar > span { background: #80BC00; }
.clms-cb-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 14px; }
.clms-cb-find { margin: 0; }
.clms-cb .clms-cb-find input { width: 240px; max-width: 100%; height: 40px; padding: 0 16px; border: 1px solid #C9CEDB; border-radius: 999px; background: #fff; font-size: 15px; color: #252729; }
.clms-cb .clms-cb-find input:focus { border-color: #E87200; outline: 2px solid rgba(232,114,0,.25); outline-offset: 0; }
.clms-cb-group { margin: 0 0 18px; border: 1px solid #E3E6EF; border-radius: 14px; background: #fff; overflow: hidden; box-shadow: 0 1px 3px rgba(0,22,137,.05); }
.clms-cb-group > summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 13px 16px 13px 20px; cursor: pointer; background: #F3F5FC; -webkit-user-select: none; user-select: none; }
.clms-cb-group > summary::-webkit-details-marker { display: none; }
.clms-cb-group > summary:focus-visible { outline: 3px solid #F5B335; outline-offset: -3px; }
.clms-cb-g-title { font-size: 19px; font-weight: 700; color: #001689; }
.clms-cb-g-meta { font-size: 13px; color: #5b6472; margin-right: auto; }
.clms-cb-chev { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #E87200; position: relative; box-shadow: 0 3px 8px rgba(232,114,0,.35); transition: background .15s; }
.clms-cb-chev::after { content: ""; position: absolute; left: 12px; top: 10px; width: 8px; height: 8px; border-right: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(45deg); transition: transform .15s, top .15s; }
.clms-cb-group[open] > summary .clms-cb-chev::after { transform: rotate(-135deg); top: 14px; }
.clms-cb-group > summary:hover .clms-cb-chev { background: #C96200; }
.clms-cb ul.clms-cb-list { list-style: none; margin: 0; padding: 0; }
.clms-cb li.clms-cb-row { display: grid; grid-template-columns: minmax(0, 1fr) 190px 44px 136px; align-items: center; column-gap: 16px; margin: 0; padding: 12px 16px 12px 20px; border-top: 1px solid #E3E6EF; }
.clms-cb a.clms-cb-title { color: #252729; font-size: 16px; font-weight: 600; text-decoration: none; }
.clms-cb a.clms-cb-title:hover { color: #C96200; }
.clms-cb-pct { font-size: 13px; color: #5b6472; text-align: right; font-variant-numeric: tabular-nums; }
.clms-cb-row.is-done .clms-cb-pct { color: #4d7a00; font-weight: 700; }
.clms-cb button.clms-cb-att { grid-column: 4; justify-self: end; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 8px 6px 14px; min-height: 0; border: 2px solid #E87200; border-radius: 999px; background: #fff; color: #B35600; font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; cursor: pointer; box-shadow: none; transition: background .15s, color .15s; }
.clms-cb-att i { flex: none; width: 20px; height: 20px; border-radius: 50%; background: #E87200; position: relative; transition: background .15s; }
.clms-cb-att i::after { content: ""; position: absolute; left: 7px; top: 5px; width: 5px; height: 5px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); transition: transform .15s, top .15s; }
.clms-cb button.clms-cb-att:hover, .clms-cb button.clms-cb-att:focus-visible, .clms-cb button.clms-cb-att[aria-expanded="true"] { background: #E87200; color: #fff; }
.clms-cb-att:hover i, .clms-cb-att:focus-visible i, .clms-cb-att[aria-expanded="true"] i { background: #fff; }
.clms-cb-att:hover i::after, .clms-cb-att:focus-visible i::after, .clms-cb-att[aria-expanded="true"] i::after { border-color: #E87200; }
.clms-cb-att[aria-expanded="true"] i::after { transform: rotate(-135deg); top: 8px; }
.clms-cb-panel { grid-column: 1 / -1; margin-top: 12px; padding: 4px 12px 8px; background: #FAFBFE; border: 1px solid #E3E6EF; border-left: 4px solid #E87200; border-radius: 10px; overflow-x: auto; }
.clms-cb-panel .clms-table { margin: 0; }
.clms-cb-loading { margin: 10px 4px; font-size: 14px; color: #5b6472; }
@media (max-width: 980px) { .clms-cb-card img { width: 96px; } }
@media (max-width: 760px) {
	.clms-cb-cards { display: none; }
	.clms-cb-next { display: none; }
	.clms-cb-top { flex-wrap: wrap; }
	.clms-cb .clms-cb-find, .clms-cb .clms-cb-find input { width: 100%; }
	.clms-cb li.clms-cb-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 9px; padding: 12px 14px; }
	.clms-cb-row .clms-cb-bar { grid-column: 1 / -1; grid-row: 2; }
	.clms-cb-row .clms-cb-pct { grid-column: 2; grid-row: 1; }
	.clms-cb button.clms-cb-att { grid-column: 1 / -1; grid-row: 3; justify-self: start; }
	.clms-cb-group > summary { padding: 12px 12px 12px 14px; gap: 10px; }
	.clms-cb-g-title { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .clms-cb a.clms-cb-card, .clms-cb-chev::after, .clms-cb-att i::after { transition: none; } }
