/* Araya online lessons: builder (admin/teacher) and viewer (student). */
.lu-builder, .lu-overlay, .lu-preview-dialog { --lu-green: #064f35; --lu-green-2: #0b6f4a; --lu-amber: #f39a18; --lu-line: #d8e4dc; --lu-soft: #edf5ef; --lu-ink: #10201b; --lu-muted: #55645f; --lu-bad: #c95b43; color: var(--lu-ink); }
.lu-muted { color: #55645f; font-size: 0.9rem; }
.lu-status { min-height: 1.2em; margin: 8px 0; color: #c95b43; font-size: 0.9rem; }
.lu-status.ok { color: #0b6f4a; }

.lu-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.lu-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.lu-tabs button, .lu-chip { border: 1px solid var(--lu-line); background: #fff; border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 0.9rem; cursor: pointer; color: inherit; }
.lu-tabs button[aria-selected="true"] { background: var(--lu-green); border-color: var(--lu-green); color: #fff; }
.lu-chip:hover { border-color: var(--lu-green-2); color: var(--lu-green-2); }
.lu-button { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--lu-line); background: var(--lu-soft); color: var(--lu-ink); border-radius: 8px; padding: 9px 16px; font: inherit; font-weight: 700; cursor: pointer; }
.lu-button.primary { background: var(--lu-amber); border-color: var(--lu-amber); color: #10201b; }
.lu-link { background: none; border: 0; padding: 2px 0; color: var(--lu-green-2); font: inherit; font-weight: 700; cursor: pointer; }
.lu-link:hover { text-decoration: underline; }
.lu-link.danger { color: var(--lu-bad); }
.lu-link[disabled] { opacity: 0.35; cursor: default; text-decoration: none; }

.lu-table-wrap { overflow-x: auto; }
.lu-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.lu-table th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--lu-muted); padding: 8px; border-bottom: 1px solid var(--lu-line); }
.lu-table td { padding: 10px 8px; border-bottom: 1px solid var(--lu-line); vertical-align: top; }
.lu-table td small { display: block; color: var(--lu-muted); margin-top: 2px; }
.lu-actions { white-space: nowrap; }
.lu-actions .lu-link { margin-right: 10px; }
.lu-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; }
.lu-badge-live { background: rgba(11, 111, 74, 0.14); color: #064f35; }
.lu-badge-draft { background: rgba(243, 154, 24, 0.16); color: #8a5a06; }

.lu-editor label { display: block; margin-bottom: 12px; font-weight: 600; font-size: 0.9rem; }
.lu-editor input[type="text"], .lu-editor input[type="url"], .lu-editor input[type="date"], .lu-editor input[type="search"], .lu-editor textarea {
  display: block; width: 100%; margin-top: 4px; padding: 9px 11px; border: 1px solid var(--lu-line); border-radius: 8px; font: inherit; font-weight: 400; background: #fff; box-sizing: border-box; }
.lu-editor textarea { resize: vertical; line-height: 1.5; }
.lu-editor h3 { margin: 22px 0 10px; font-size: 1.02rem; }
.lu-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.lu-editor-side { position: sticky; top: 12px; border: 1px solid var(--lu-line); border-radius: 10px; padding: 14px 16px; background: #fbfcf7; }
.lu-editor-side h3 { margin-top: 0; }
.lu-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lu-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.lu-row4 { display: grid; grid-template-columns: 0.8fr 1.2fr 1fr 1fr; gap: 12px; }
.lu-row3 select, .lu-row4 select { width: 100%; }
.lu-edit-section, .lu-edit-question { border: 1px solid var(--lu-line); border-left: 4px solid var(--lu-green-2); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.lu-edit-question { border-left-color: var(--lu-amber); }
.lu-edit-section > * + *, .lu-edit-question > * + * { margin-top: 8px; }
.lu-edit-section-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lu-edit-section-head span { display: inline-flex; gap: 10px; }
.lu-edit-option { display: flex; align-items: center; gap: 8px; }
.lu-edit-option input[type="text"] { margin-top: 0; }
.lu-add-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 6px; }
.lu-upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lu-upload .lu-button { font-weight: 600; }
.lu-thumb { max-width: 160px; max-height: 110px; border-radius: 6px; border: 1px solid var(--lu-line); }
.lu-assign { display: grid; gap: 10px; }
.lu-assign-group { display: grid; gap: 4px; }
.lu-check { display: flex !important; align-items: center; gap: 8px; font-weight: 400 !important; margin: 0 !important; }
.lu-check small { color: var(--lu-muted); }
.lu-student-list { max-height: 220px; overflow-y: auto; border: 1px solid var(--lu-line); border-radius: 8px; padding: 6px 8px; background: #fff; display: grid; gap: 4px; }
.lu-library-check { margin: 14px 0 !important; }
.lu-save { display: grid; gap: 8px; }
@media (max-width: 960px) {
  .lu-editor-grid { grid-template-columns: 1fr; }
  .lu-editor-side { position: static; }
  .lu-row2, .lu-row3, .lu-row4 { grid-template-columns: 1fr; }
}

/* Lesson as students see it */
.lu-unit { --lu-green: #064f35; --lu-green-2: #0b6f4a; --lu-amber: #f39a18; --lu-line: #d8e4dc; --lu-ink: #10201b; --lu-muted: #55645f;
  max-width: 1120px; margin: 0 auto; line-height: 1.65; color: var(--lu-ink); font-size: 1.02rem; }
.lu-hero { background: linear-gradient(135deg, #064f35 0%, #0b6f4a 60%, #128a5c 100%); color: #fff; border-radius: 16px; padding: 22px 24px 24px; margin-bottom: 14px; position: relative; overflow: hidden; }
.lu-hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(243, 154, 24, 0.18); pointer-events: none; }
.lu-hero h2 { position: relative; margin: 6px 0 0; font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.2; color: #fff; letter-spacing: -0.01em; font-weight: 800; }
.lu-chips { position: relative; display: flex; flex-wrap: wrap; gap: 6px; }
.lu-chip-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 0.8rem; font-weight: 700; }
.lu-chip-tag:first-child { background: #f39a18; color: #10201b; }
.lu-summary { background: #fff7e8; border: 1px solid #f6d9a4; border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; }
.lu-summary p:last-child { margin-bottom: 0; }
.lu-layout { display: grid; gap: 22px; }
.lu-layout.has-side { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.lu-main { min-width: 0; }
.lu-side { position: sticky; top: 12px; background: #fff; border: 1px solid #d8e4dc; border-radius: 14px; padding: 14px; box-shadow: 0 6px 18px rgba(6, 79, 53, 0.07); }
.lu-side > h3 { margin: 0 0 10px; font-weight: 800; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: #0b6f4a; }
.lu-side .lu-section, .lu-side .lu-with-note { margin-bottom: 12px; }
.lu-side .lu-section:last-child, .lu-side .lu-with-note:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .lu-layout.has-side { grid-template-columns: 1fr; }
  .lu-side { position: static; order: -1; }
}
.lu-section { display: block; margin: 0 0 16px; }
.lu-text { background: #fff; border: 1px solid #e3ebe5; border-radius: 14px; padding: 16px 20px 6px; box-shadow: 0 2px 8px rgba(6, 79, 53, 0.04); }
.lu-text p, .lu-text ul, .lu-text ol, .lu-keypoint p, .lu-note p, .lu-summary p { margin: 0 0 12px; }
.lu-text ul, .lu-text ol, .lu-note ul, .lu-note ol { padding-left: 1.4em; }
.lu-text li { margin-bottom: 6px; }
.lu-text li::marker { color: #0b6f4a; font-weight: 700; }
.lu-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 12px; font-size: 1.3rem; line-height: 1.3; color: #064f35; font-weight: 800; }
.lu-h::before { content: ""; flex: 0 0 auto; width: 6px; height: 1.1em; border-radius: 3px; background: #f39a18; }
.lu-h4 { margin: 18px 0 8px; font-size: 1.08rem; color: #0b6f4a; font-weight: 800; }
.lu-time { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #edf5ef; color: #0b6f4a; font-size: 0.75rem; font-weight: 700; }
.lu-lead { font-weight: 700; color: #064f35; margin-bottom: 6px !important; }
.lu-lead-in { color: #064f35; }
.lu-callout { background: #edf5ef; border-left: 4px solid #0b6f4a; border-radius: 10px; padding: 10px 14px 0; margin: 0 0 14px; }
.lu-keypoint { border-left: 5px solid #f39a18; background: rgba(243, 154, 24, 0.1); border-radius: 12px; padding: 12px 16px 2px; }
.lu-keypoint > strong { display: block; color: #8a5a06; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.06em; margin-bottom: 4px; }
.lu-image { background: #fff; border: 1px solid #e3ebe5; border-radius: 14px; padding: 12px; text-align: center; }
.lu-image a { display: block; }
.lu-image img { max-width: 100%; height: auto; border-radius: 8px; display: inline-block; }
.lu-image figcaption, .lu-video figcaption { color: #55645f; font-size: 0.9rem; margin-top: 6px; }
.lu-video-frame { position: relative; padding-top: 56.25%; border-radius: 10px; overflow: hidden; background: #000; }
.lu-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lu-card-link { display: flex !important; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #d8e4dc; border-radius: 12px; background: #fff; color: #10201b; text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
.lu-card-link:hover { border-color: #0b6f4a; transform: translateY(-1px); }
.lu-card-link strong { display: block; line-height: 1.3; font-weight: 800; }
.lu-unit strong { font-weight: 800; }
.lu-card-link small { color: #55645f; }
.lu-icon { flex: 0 0 auto; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: #edf5ef; color: #064f35; font-weight: 800; font-size: 0.8rem; }
.lu-videolink .lu-icon { background: #c95b43; color: #fff; }
.lu-pdf .lu-icon { background: rgba(201, 91, 67, 0.12); color: #c95b43; }
.lu-quiz { margin-top: 24px; background: #fff; border: 1px solid #e3ebe5; border-top: 5px solid #f39a18; border-radius: 14px; padding: 16px 18px 6px; }
.lu-quiz h3 { margin: 0 0 4px; font-size: 1.3rem; color: #064f35; font-weight: 800; }
.lu-question { border: 1px solid #d8e4dc; border-radius: 12px; padding: 10px 14px; margin: 12px 0; background: #fbfcf7; }
.lu-question legend { font-weight: 700; font-size: 1.02rem; line-height: 1.45; padding: 0 4px; display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; }
.lu-question { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 560px) { .lu-question { grid-template-columns: 1fr; } }
.lu-question > legend, .lu-question > .lu-feedback { grid-column: 1 / -1; }
.lu-qnum { flex: 0 0 auto; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #064f35; color: #fff; font-size: 0.82rem; }
.lu-question.is-correct { border-color: #0b6f4a; }
.lu-question.is-wrong { border-color: #c95b43; }
.lu-option { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid #d8e4dc; border-radius: 10px; background: #fff; cursor: pointer; font-size: 1rem; }
.lu-option:hover { border-color: #0b6f4a; }
.lu-option:has(input:checked) { border-color: #0b6f4a; background: #edf5ef; font-weight: 700; }
.lu-option input { margin: 0; }
.lu-option.lu-right { background: rgba(11, 111, 74, 0.12); border-color: #0b6f4a; font-weight: 700; }
.lu-option.lu-picked-wrong { background: rgba(201, 91, 67, 0.12); border-color: #c95b43; text-decoration: line-through; }
.lu-feedback { margin: 8px 0 0; font-size: 0.92rem; color: #7a2e1f; }
.lu-feedback.good { color: #064f35; }
.lu-footer { margin: 16px 0 30px; }
.lu-footer .lu-button { width: 100%; justify-content: center; padding: 13px; }
.lu-result { background: #edf5ef; border-radius: 10px; padding: 12px 14px; display: grid; gap: 10px; }
.lu-row { width: 100%; text-align: left; font: inherit; cursor: pointer; }

.lu-overlay { position: fixed; inset: 0; z-index: 60; background: #fbfcf7; display: none; flex-direction: column; }
.lu-overlay.open { display: flex; }
.lu-overlay-bar { padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); border-bottom: 1px solid #d8e4dc; background: #fff; }
.lu-back { background: none; border: 0; font: inherit; font-weight: 700; color: #064f35; cursor: pointer; padding: 6px 0; }
.lu-overlay-body { flex: 1; overflow-y: auto; padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
body.lu-locked { overflow: hidden; }

.lu-preview-dialog { width: min(1180px, 96vw); max-height: 90vh; border: 0; border-radius: 12px; padding: 0 20px 20px; background: #fbfcf7; }
.lu-preview-dialog::backdrop { background: rgba(16, 32, 27, 0.5); }
.lu-preview-bar { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; background: #fbfcf7; border-bottom: 1px solid #d8e4dc; margin-bottom: 14px; z-index: 1; }
.lu-home-card { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
/* Portal stylesheets size every input to full width; keep ticks and radios small. */
.lu-builder input[type="checkbox"], .lu-builder input[type="radio"], .lu-quiz input[type="radio"] {
  width: auto !important; height: auto !important; min-height: 0 !important; flex: 0 0 auto; margin: 0 !important; padding: 0 !important; box-shadow: none !important; accent-color: #0b6f4a; }
.lu-check { justify-content: flex-start; text-align: left; }
.lu-edit-option input[type="text"] { flex: 1 1 auto; }
.lu-toolbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lu-with-note { margin: 0 0 16px; }
.lu-with-note > .lu-section { margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.lu-note { border: 1px solid #d8e4dc; border-top: 0; border-radius: 0 0 12px 12px; padding: 10px 14px 2px; background: #fbfcf7; font-size: 0.92rem; line-height: 1.5; }
.lu-note p { margin: 0 0 8px; }
.lu-video + .lu-note, .lu-with-note > .lu-video { border-radius: 10px; }
.lu-ai-button { background: linear-gradient(135deg, #064f35, #1f6fa8) !important; border-color: transparent !important; color: #fff !important; }
.lu-ai-button[disabled] { opacity: 0.6; cursor: wait; }
.lu-editor input[type="number"], .lu-editor select { display: block; width: 100%; margin-top: 4px; padding: 9px 11px; border: 1px solid var(--lu-line); border-radius: 8px; font: inherit; font-weight: 400; background: #fff; box-sizing: border-box; }
.lu-ai-form { max-width: 760px; }
.lu-ai-form h3 { font-weight: 800; font-size: 1.2rem; }

/* Step-by-step lesson player (student view and builder preview) */
.lp { max-width: 820px; }
.lp .lu-hero { margin-bottom: 16px; }
.lp-hero-meta { position: relative; margin: 6px 0 0; color: rgba(255, 255, 255, 0.85); font-weight: 600; }
.lp-banner { border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
.lp-banner.good { background: #edf5ef; border: 1px solid #b9d9c6; }
.lp-banner.warn { background: #fff4ef; border: 1px solid #f0c2b4; }
.lp-howto { display: grid; gap: 10px; margin: 6px 0 22px; }
.lp-howto div { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--lu-line); border-radius: 12px; padding: 10px 14px; }
.lp-howto p { margin: 0; }
.lp-howto span { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lu-amber); color: #10201b; font-weight: 800; }
.lp-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.lp-progress-bar { flex: 1; height: 10px; border-radius: 999px; background: #e3ece6; overflow: hidden; }
.lp-progress-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #0b6f4a, #f39a18); transition: width 0.4s ease; }
.lp-progress-label { font-size: 0.85rem; font-weight: 800; color: var(--lu-green-2); white-space: nowrap; }
.lp-page { background: #fff; border: 1px solid var(--lu-line); border-radius: 16px; padding: 20px 22px; box-shadow: 0 6px 18px rgba(6, 79, 53, 0.06); animation: lp-in 0.25s ease; }
.lp-page > * + * { margin-top: 14px; }
.lp-page .lu-section { margin-bottom: 0; }
.lp-page-title { margin: 0; font-size: 1.15rem; color: var(--lu-green); }
.lp-note { background: #fff7e8; border: 1px solid #f6d9a4; border-radius: 10px; padding: 10px 14px; }
.lp-note p:last-child { margin-bottom: 0; }
.lp-center { text-align: center; }
.lp-center h3 { margin: 6px 0; font-size: 1.4rem; color: var(--lu-green); }
.lp-big-icon { font-size: 2.6rem; color: var(--lu-amber); line-height: 1; }
.lp-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.lp-nav-center { justify-content: center; }
.lp-big { padding: 12px 24px; font-size: 1.05rem; }
.lu-button[disabled] { opacity: 0.45; cursor: not-allowed; }
.lp-hint { min-height: 1.2em; margin: 10px 0 0; text-align: right; color: var(--lu-muted); font-size: 0.9rem; font-weight: 600; }
.lp-confirm { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 2px dashed var(--lu-amber); border-radius: 12px; background: #fffaf0; font-weight: 700; cursor: pointer; }
.lp-confirm input { width: 22px; height: 22px; accent-color: #0b6f4a; }
.lp-confirm.is-done { border-style: solid; border-color: #0b6f4a; background: #edf5ef; color: var(--lu-green); }

.lp-check { border: 2px solid #1f6fa8; background: #f2f8fd; border-radius: 14px; padding: 14px 16px; }
.lp-check.is-solved { border-color: #0b6f4a; background: #edf5ef; }
.lp-check-tag { display: inline-block; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; background: #1f6fa8; border-radius: 999px; padding: 2px 10px; }
.lp-check.is-solved .lp-check-tag { background: #0b6f4a; }
.lp-check-q { font-weight: 700; margin: 8px 0 10px; }
.lp-check-feedback { min-height: 1.2em; margin: 10px 0 0; }
.lp-check.is-solved .lp-check-feedback strong { color: var(--lu-green-2); }
.lp-options { display: grid; gap: 8px; }
.lp-option { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 2px solid var(--lu-line); background: #fff; border-radius: 12px; padding: 11px 14px; font: inherit; color: inherit; cursor: pointer; transition: border-color 0.15s, transform 0.1s; }
.lp-option:hover:not([disabled]) { border-color: var(--lu-green-2); transform: translateY(-1px); }
.lp-option[disabled] { cursor: default; }
.lp-letter { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #edf5ef; color: var(--lu-green); font-weight: 800; }
.lp-option.is-picked { border-color: var(--lu-amber); background: #fff7e8; }
.lp-option.is-picked .lp-letter { background: var(--lu-amber); color: #10201b; }
.lp-option.is-right { border-color: #0b6f4a; background: #e3f3e9; }
.lp-option.is-right .lp-letter { background: #0b6f4a; color: #fff; }
.lp-option.is-wrong { border-color: #c95b43; background: #fdf0ec; opacity: 0.8; }
.lp-option.is-wrong .lp-letter { background: #c95b43; color: #fff; }
.lp-question h3 { margin: 4px 0 6px; font-size: 1.2rem; line-height: 1.4; }
.lp-qnum { margin: 0; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--lu-amber); }
.lp-score { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 130px; height: 130px; border-radius: 50%; border: 8px solid #0b6f4a; margin: 0 auto 6px; }
.lp-score.warn { border-color: #c95b43; }
.lp-score strong { font-size: 2.4rem; line-height: 1; }
.lp-score span { font-size: 0.85rem; color: var(--lu-muted); }
.lp-corrections { margin-top: 16px; }
.lp-corrections h4 { margin: 0 0 8px; }
.lp-correction { background: #fff; border: 1px solid var(--lu-line); border-left: 4px solid #c95b43; border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; }
.lp-correction p { margin: 4px 0; }
.lp-correction-q { font-weight: 700; }
.lp-your { color: #a2412b; }
.lp-right { color: var(--lu-green); }
.lp-why { color: var(--lu-muted); }
.shake { animation: lp-shake 0.35s ease; }
@keyframes lp-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes lp-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lp-page, .shake { animation: none; } .lp-progress-bar span { transition: none; } }
@media (max-width: 600px) { .lp-page { padding: 16px; } .lp-nav .lu-button { flex: 1; justify-content: center; } }

/* Staff analytics: a student's online lessons */
.la-panel h4, .la-body h4 { margin: 4px 0 8px; font-size: 0.95rem; }
.la-areas { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.la-areas li { border: 1px solid #f0c2b4; background: #fff4ef; border-radius: 10px; padding: 6px 10px; font-size: 0.9rem; }
.la-count { display: inline-block; margin-left: 6px; font-size: 0.78rem; font-weight: 800; color: #a2412b; }
.la-body { padding: 4px 0 8px; }
.la-attempt { border: 1px solid var(--lu-line); border-radius: 10px; padding: 8px 12px; margin: 10px 0; background: #fff; }
.la-attempt summary { cursor: pointer; padding: 4px 0; }
.la-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 10px 0; }
.la-stats div { background: #f4f8f5; border-radius: 8px; padding: 8px 10px; }
.la-stats span { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--lu-muted); }
.la-stats strong { font-size: 1.05rem; }
.la-wrong td { background: #fff8f5; }
.la-ok { color: #0b6f4a; font-weight: 700; }
.la-bad { color: #a2412b; font-weight: 700; }
.la-note { margin-top: 8px; }
.la-dialog { max-width: 1000px; }

/* Where a lesson is done */
.lu-place { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; vertical-align: middle; }
.lu-place-home { background: #e8f1fb; color: #1d4f86; }
.lu-place-class { background: #fdf0dc; color: #8a5a06; }
.lu-row .lu-place { margin: 4px 0 0; }

/* Lesson library: search and bulk import */
.lu-library-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 6px; }
.lu-library-search { flex: 1 1 260px; min-width: 0; border: 1px solid var(--lu-line); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 0.92rem; }
.lu-library-note { margin: 0 0 10px; font-size: 0.82rem; }
.lu-table td.lu-num { color: var(--lu-muted); font-variant-numeric: tabular-nums; width: 2.5em; }
.lu-table td small.lu-file { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.76rem; }
.lu-bulk { border: 1px solid var(--lu-line); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; background: #fbfcf7; }
.lu-bulk-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; }
.lu-bulk-head span { color: var(--lu-muted); font-size: 0.85rem; }
.lu-bulk-bar { height: 8px; border-radius: 999px; background: #e6ece8; overflow: hidden; margin: 10px 0; }
.lu-bulk-bar span { display: block; height: 100%; background: var(--lu-green); transition: width 0.3s ease; }
.lu-bulk-list { margin: 0; padding: 0 0 0 1.6em; max-height: 280px; overflow-y: auto; font-size: 0.86rem; }
.lu-bulk-list li { padding: 3px 0; }
.lu-bulk-list li span { font-weight: 600; margin-right: 8px; word-break: break-all; }
.lu-bulk-list li small { color: var(--lu-muted); }
.lu-bulk-list li.lu-bulk-done small { color: #1b7a4b; }
.lu-bulk-list li.lu-bulk-warn small { color: #a2620a; }
.lu-bulk-list li.lu-bulk-failed small { color: #b4232c; }
.lu-bulk-list li.lu-bulk-working small { color: var(--lu-green); }

/* Quiz below the pass mark: topics to go over, tries left, lock, help. */
.lu-badge-locked { background: rgba(201, 91, 67, 0.15); color: #a2412b; }
.lp-tries { text-align: center; font-weight: 700; color: #8a5a06; margin: 4px 0 12px; }
.lp-topics { margin-top: 16px; }
.lp-topics h4 { margin: 0 0 8px; }
.lp-topic { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid #d8e4dc; border-left: 4px solid #f39a18; border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; }
.lp-topic > div { flex: 1 1 240px; min-width: 0; }
.lp-topic p { margin: 4px 0; }
.lp-topic ul, .lp-think ul { margin: 4px 0 0; padding-left: 20px; }
.lp-think ul { margin-bottom: 6px; }
.lp-help-sent { color: #0b6f4a; font-weight: 700; margin: 8px 0 0; }

/* Staff "Quiz help" list. */
.qh-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.qh-card { background: #fff; border: 1px solid #d8e4dc; border-left: 4px solid #f39a18; border-radius: 12px; padding: 12px 14px; color: #10201b; }
.qh-card.is-locked { border-left-color: #c95b43; }
.qh-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.qh-head small { display: block; color: #55645f; margin-top: 2px; }
.qh-score { margin: 8px 0; font-size: 0.9rem; color: #55645f; }
.qh-asked { color: #a2412b; font-weight: 700; }
.qh-card h5 { margin: 10px 0 6px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: #55645f; }
.qh-tips { margin: 0; padding-left: 18px; font-size: 0.9rem; }
.qh-tips li { margin-bottom: 4px; }
.qh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.quiz-help-panel { margin: 18px 0; }
.quiz-help-section { margin-bottom: 24px; }
.quiz-help-section h2 { margin: 0 0 4px; font-size: 1.15rem; }

/* Read aloud bar at the top of every lesson screen. */
.lp-reader { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0 10px; margin-bottom: 8px; background: inherit; }
.lu-overlay-body .lp-reader, dialog .lp-reader { background: #f9fbf8; }
.lp-reader-btn { border: 0; border-radius: 999px; background: #064f35; color: #fff; font: inherit; font-weight: 800; padding: 9px 18px; cursor: pointer; }
.lp-reader-btn[aria-pressed="true"] { background: #c95b43; }
.lp-reader-opt { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #d8e4dc; border-radius: 999px; background: #fff; color: #10201b; font: inherit; font-size: 0.88rem; font-weight: 700; padding: 7px 14px; cursor: pointer; }
.lp-reader-opt input { margin: 0; }
.lp-reading { outline: 3px solid #f39a18; outline-offset: 3px; border-radius: 6px; background-color: rgba(243, 154, 24, 0.12); }

/* Session report for a finished lesson (staff). */
.sr-list { display: grid; gap: 10px; margin-bottom: 16px; }
.sr-item { background: #fff; border: 1px solid #d8e4dc; border-radius: 12px; padding: 10px 14px; }
.sr-item > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sr-summary-score { margin-left: auto; }
.sr-report { margin-top: 10px; }
.sr-report h5 { margin: 12px 0 6px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: #55645f; }
.sr-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.sr-label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: #55645f; }
.sr-stars { color: #f39a18; font-size: 1.2rem; letter-spacing: 1px; }
.sr-stars .sr-off { color: #d8e4dc; }
.sr-stars .sr-half { background: linear-gradient(90deg, #f39a18 50%, #d8e4dc 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-parts { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.sr-parts li { border: 1px solid #d8e4dc; border-radius: 10px; padding: 8px 10px; background: #f9fbf8; }
.sr-parts span { display: block; font-size: 0.8rem; color: #55645f; }
.sr-parts small { display: block; color: #55645f; margin-top: 2px; }
.sr-skipped { margin: 0; padding-left: 18px; font-size: 0.92rem; }

/* Fair-work quiz: clock, rules and no text selection (2026-10-16). */
.lp-rules { text-align: left; max-width: 560px; margin: 14px auto 0; padding: 12px 14px 12px 32px; background: var(--lu-soft); border: 1px solid var(--lu-line); border-radius: 10px; }
.lp-rules li { margin: 4px 0; }
.lp-clock { display: inline-flex; align-items: baseline; gap: 6px; float: right; margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--lu-soft); border: 1px solid var(--lu-line); font-size: 0.9rem; }
.lp-clock strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.lp-clock.is-low { background: #fbe9e4; border-color: var(--lu-bad); color: var(--lu-bad); }
.lp-noselect, .lp-noselect * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.sr-flags { background: #fbe9e4; border: 1px solid var(--lu-bad); border-radius: 10px; padding: 8px 14px; margin: 12px 0; }
.sr-flags h5 { color: var(--lu-bad); margin: 4px 0; }
.sr-flags ul { margin: 4px 0; padding-left: 18px; }
.sr-explain { background: var(--lu-soft); border: 1px solid var(--lu-line); border-radius: 10px; padding: 8px 14px; margin: 12px 0; }
.sr-explain h5 { margin: 4px 0; }
.sr-explain p { margin: 4px 0; }

/* Age bands (2026-10-16): bigger text, pictures and buttons for young years. */
.lp-age-early .lp-page { font-size: 1.3rem; line-height: 1.6; }
.lp-age-early .lp-page h3, .lp-age-early .lp-page h2 { font-size: 1.6rem; }
.lp-age-early .lp-option { padding: 16px 18px; font-size: 1.35rem; min-height: 64px; }
.lp-age-early .lp-letter { transform: scale(1.2); }
.lp-age-early .lp-page img { width: 100%; max-width: 100%; }
.lp-age-early .lp-nav .lu-button { font-size: 1.15rem; padding: 12px 20px; }
.lp-age-primary .lp-page { font-size: 1.15rem; line-height: 1.55; }
.lp-age-primary .lp-option { padding: 13px 16px; font-size: 1.15rem; }
.lp-age-primary .lp-page img { width: 100%; max-width: 100%; }
.lu-age-check { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--lu-line); border-radius: 10px; background: #fffaf0; }
.lu-age-check h3 { margin: 0 0 6px; }
.lu-age-check p { margin: 0 0 6px; font-size: 0.88rem; }
.lu-age-check ul { margin: 0; padding-left: 18px; font-size: 0.9rem; }
.lu-age-check li { margin: 4px 0; }
.lu-age-ok { color: var(--lu-green-2); font-weight: 700; }

/* Maths check-up (assets/diagnostic.js), 2026-10-16. */
.dg-overlay, .dg-dialog, .dg-overview, .dg-report { --lu-green: #064f35; --lu-green-2: #0b6f4a; --lu-amber: #f39a18; --lu-line: #d8e4dc; --lu-soft: #edf5ef; --lu-ink: #10201b; --lu-muted: #55645f; --lu-bad: #c95b43; }
.dg-prompt { white-space: pre-line; }
.dg-picture { margin: 12px 0; text-align: center; }
.dg-picture img { max-width: 100%; height: auto; max-height: 340px; }
.lp-age-early .dg-picture img, .lp-age-primary .dg-picture img { max-height: 420px; width: auto; }
.dg-typed label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dg-typed-label { font-weight: 700; }
.dg-typed input { font: inherit; font-size: 1.5rem; padding: 10px 14px; width: 12ch; border: 2px solid var(--lu-line); border-radius: 12px; }
.dg-typed input:focus { outline: none; border-color: var(--lu-green-2); }
.dg-unit { font-size: 1.2rem; color: var(--lu-muted); }
.dg-keypad { display: grid; grid-template-columns: repeat(3, 72px); gap: 8px; margin-top: 12px; }
.dg-keypad button { font: inherit; font-size: 1.5rem; font-weight: 700; height: 60px; border-radius: 12px; border: 2px solid var(--lu-line); background: #fff; cursor: pointer; }
.dg-keypad button:active { background: var(--lu-soft); }
.dg-summary { text-align: left; max-width: 520px; margin: 14px auto 0; }
.dg-summary h4 { margin: 0 0 4px; }
.dg-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; background: #eef1ef; color: #55645f; }
.dg-pill.dg-ok { background: #e3f3ea; color: #0b6f4a; }
.dg-pill.dg-warn { background: #fff1db; color: #9a5b00; }
.dg-pill.dg-bad { background: #fbe9e4; color: #c95b43; }
.dg-note { background: #fff1db; border-radius: 8px; padding: 8px 12px; }
.dg-plan { padding-left: 20px; }
.dg-plan-year { margin: 8px 0; }
.dg-plan-year ul { margin: 4px 0; padding-left: 18px; }
.dg-answers { margin-top: 14px; }
.dg-answers tr.dg-wrong td { background: #fdf3f0; }
.dg-overview .lu-tabs { margin-bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.dg-dialog-body { padding-bottom: 10px; }

/* Written maths (assets/maths-work.js): column sums and long division set out
   up and down, worked examples, typed answers and the number pad. */
.aw { --aw-ink: #10201b; --aw-blue: #1f6fa8; display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: flex-start; margin: 12px 0; }
.aw-sheet { background: #fff; border: 2px solid #cfe0d6; border-radius: 16px; padding: 14px 20px; overflow-x: auto; max-width: 100%; box-sizing: border-box; }
.aw-grid { border-collapse: collapse; font-size: 30px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; color: var(--aw-ink); }
.aw-grid td { width: 1.15em; min-width: 1.15em; height: 1.4em; padding: 0; text-align: center; vertical-align: middle; }
.aw-carry-row td { height: 1em; font-size: 0.5em; color: #c95b43; vertical-align: bottom; }
.aw-total td { border-top: 3px solid var(--aw-ink); }
.aw-grid td.aw-line-bottom { border-bottom: 3px solid var(--aw-ink); }
.aw-grid td.aw-over { border-top: 3px solid var(--aw-ink); }
.aw-grid td.aw-bracket { width: 0.35em; min-width: 0.35em; border-right: 3px solid var(--aw-ink); border-bottom-right-radius: 14px; }
.aw-op, .aw-minus { color: var(--aw-ink); }
.aw-crossed { text-decoration: line-through; text-decoration-thickness: 2px; color: #9aa8a2; }
.aw-bring { color: #e0a722; }
.aw-r { font-size: 0.7em; color: #55645f; }
.aw-box.aw-filled, .aw-box.aw-right { color: var(--aw-blue); }
.aw-mode-show .aw-box:empty, .aw-box.aw-locked { box-shadow: inset 0 0 0 2px #dfe8e2; border-radius: 6px; }
.aw-box.aw-locked { background: repeating-linear-gradient(-45deg, #f6f8f6, #f6f8f6 4px, #fff 4px, #fff 8px); }
.aw-grid td.aw-now { background: #fff3d6; border-radius: 6px; }
.aw-input { box-sizing: border-box; width: 100%; height: 100%; min-height: 1.3em; padding: 0; border: 3px solid var(--lu-amber, #f39a18); border-radius: 8px; background: #fff7e8; font: inherit; color: var(--aw-blue); text-align: center; caret-color: var(--aw-blue); }
.aw-input:focus { outline: 3px solid rgba(243, 154, 24, 0.35); outline-offset: 1px; }
.aw-wrong .aw-input { border-color: #c95b43; background: #fdeceb; color: #c95b43; animation: lp-shake 0.35s ease; }
.aw-side { flex: 1 1 260px; min-width: 0; }
.aw-steps { margin: 0 0 10px; padding-left: 1.4em; }
.aw-steps li { margin-bottom: 6px; }
.aw-steps-done li { color: #55645f; }
.aw-step-now { font-weight: 700; color: var(--lu-green, #064f35); }
.aw-ask { margin: 0 0 6px; font-size: 1.1rem; }
.aw-try-again { display: block; margin-top: 4px; color: #c95b43; font-weight: 700; }
.aw-done { margin: 6px 0 0; color: #0b6f4a; font-weight: 700; }
.aw-pad { display: grid; grid-template-columns: repeat(3, 58px); gap: 8px; margin-top: 10px; user-select: none; }
.aw-pad button { height: 48px; border: 2px solid #d8e4dc; border-radius: 12px; background: #fff; font: inherit; font-size: 1.35rem; font-weight: 800; color: #10201b; cursor: pointer; touch-action: manipulation; }
.aw-pad button:active { background: #edf5ef; transform: translateY(1px); }
.aw-pad-big { grid-template-columns: repeat(3, 78px); gap: 10px; }
.aw-pad-big button { height: 66px; font-size: 1.8rem; }
.aw-mode-answer { display: block; }
.aw-mode-answer .aw-grid { margin: 4px 0; }
.aw-answer { padding-top: 6px !important; }
.aw-answer input { box-sizing: border-box; width: 100%; min-width: 4ch; padding: 4px 6px; border: 3px solid var(--lu-amber, #f39a18); border-radius: 10px; background: #fff7e8; font: inherit; color: #1f6fa8; text-align: right; letter-spacing: 0.02em; }
.aw-divide .aw-answer input { text-align: left; }
.lp-typed-wrap { margin-top: 10px; }
.lp-typed { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lp-typed-input { box-sizing: border-box; width: 12ch; padding: 10px 14px; border: 2px solid #d8e4dc; border-radius: 12px; font: inherit; font-size: 1.5rem; font-weight: 700; color: #1f6fa8; background: #fff; }
.lp-typed-input:focus, .aw-answer input:focus { outline: none; border-color: #0b6f4a; }
.lp-typed-input.is-wrong, .aw-answer input.is-wrong { border-color: #c95b43; background: #fdeceb; }
.lp-typed-input:disabled { color: #0b6f4a; background: #edf5ef; border-color: #0b6f4a; }
.lp-unit { font-size: 1.2rem; color: #55645f; }
.lp-typed-wrap > .lu-button { margin-top: 10px; }
.lp-example { border: 2px solid #f39a18; background: #fffaf0; border-radius: 14px; padding: 14px 16px; margin: 10px 0; }
.lp-example h4 { margin: 8px 0 4px; color: var(--lu-green, #064f35); font-size: 1.15rem; }
.lp-example-tag { background: #f39a18; color: #10201b; }
.lp-example-problem { margin: 4px 0 6px; }
.lp-gap { box-sizing: content-box; min-width: 2ch; padding: 2px 6px; margin: 0 2px; border: 2px solid #f39a18; border-radius: 8px; background: #fff7e8; font: inherit; font-weight: 700; color: #1f6fa8; text-align: center; }
.lp-gap.is-wrong { border-color: #c95b43; background: #fdeceb; }
.lp-gap-done { color: #1f6fa8; }
.lp-age-early .aw-grid, .lp-age-primary .aw-grid { font-size: 38px; }
.lu-kind { display: block; margin-bottom: 6px; font-weight: 700; }
.lu-work-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; }
.lu-work-fields input, .lu-work-fields select { width: auto !important; flex: 1 1 120px; display: inline-block !important; margin-top: 0 !important; }
.lu-work-fields select { flex: 0 1 170px; }
.lu-work-answer { font-weight: 800; color: #0b6f4a; }
.lu-work-help { font-size: 0.85rem; margin: 0 0 6px; }
@media (max-width: 640px) {
  .aw-grid { font-size: 24px; }
  .lp-age-early .aw-grid, .lp-age-primary .aw-grid { font-size: 30px; }
  .aw-sheet { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) { .aw-wrong .aw-input { animation: none; } }

/* Question pictures and the worksheet maker (2026-10-16). */
.lp-pic, .lu-q-pic { margin: 10px 0; }
.lp-pic img { display: block; max-width: min(100%, 420px); height: auto; border-radius: 10px; border: 1px solid #dce8e3; background: #fff; }
.lu-q-pic img { display: block; max-width: 240px; height: auto; border: 1px solid #dce8e3; border-radius: 8px; }
.lu-keypoint .lp-pic img { max-width: 260px; }
.ws-form h4 { margin: 18px 0 6px; font-size: 1rem; font-weight: 700; }
.ws-shape { background: #f3f8f6; border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
.ws-skills { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 4px 16px; padding: 6px 0; }
.ws-skill { align-items: flex-start; }
.ws-year { border-top: 1px solid #e3ece8; padding: 6px 0; }
.ws-year summary { cursor: pointer; font-weight: 600; }
.ws-tag { display: inline-block; font-size: 0.75em; padding: 1px 7px; border-radius: 999px; background: #e7f3ee; color: #0b5a3d; margin-left: 4px; white-space: nowrap; }
.dg-make { border-top: 1px solid #e3ece8; margin-top: 12px; padding-top: 8px; }
.dg-q-mark { display: inline-block; min-width: 1.4em; text-align: center; color: #b7791f; font-weight: 700; }

/* Hands-on blocks: number line, order, match, sort (assets/lesson-blocks.js). */
.bk { margin: 12px 0; }
.bk-help { color: #55645f; font-size: 0.92em; margin: 0 0 8px; }
.bk-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; margin: 4px; border-radius: 12px; border: 2px solid #cfe0d9; background: #fff; font: inherit; font-weight: 600; color: #10201b; cursor: pointer; touch-action: manipulation; }
.bk-chip:hover:not([disabled]) { border-color: #0b6b47; }
.bk-chip.is-sel { border-color: #f39c12; background: #fff6e6; box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.25); }
.bk-chip.is-placed { background: #eaf6f0; border-color: #8cc5ab; }
.bk-chip[disabled] { cursor: default; opacity: 1; }
.bk-pool { display: flex; flex-wrap: wrap; padding: 8px; border: 2px dashed #d7e3de; border-radius: 14px; background: #fbfdfc; min-height: 56px; }
.bk-slots { display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 10px; list-style: none; }
.bk-slots li { display: flex; }
.bk-empty span { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; min-height: 44px; margin: 4px; border: 2px dashed #b9cec5; border-radius: 12px; color: #8aa49a; font-weight: 700; }
.bk-match-rows { display: grid; gap: 8px; margin-bottom: 10px; }
.bk-match-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 2px solid #cfe0d9; background: #fff; font: inherit; text-align: left; cursor: pointer; min-height: 48px; }
.bk-match-row.is-sel { border-color: #f39c12; background: #fff6e6; }
.bk-match-row.is-done .bk-right-slot { color: #0b5a3d; font-weight: 700; }
.bk-left { font-weight: 600; }
.bk-right-slot { justify-self: start; min-width: 3em; padding: 4px 10px; border-radius: 8px; background: #f3f8f6; color: #8aa49a; }
.bk-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-top: 10px; }
.bk-group { border: 2px solid #cfe0d9; border-radius: 14px; padding: 10px; min-height: 110px; background: #fff; }
.bk-group.is-target { border-color: #f39c12; cursor: pointer; }
.bk-group > strong { display: block; margin-bottom: 6px; }
.bk-line-wrap { padding: 8px 18px 4px; overflow: hidden; }
.bk-line-track { position: relative; height: 78px; touch-action: none; user-select: none; outline: none; }
.bk-line-track.is-live { cursor: pointer; }
.bk-line-track:focus-visible { box-shadow: 0 0 0 3px rgba(11, 107, 71, 0.3); border-radius: 8px; }
.bk-axis { position: absolute; left: 0; right: 0; top: 40px; height: 3px; background: #10201b; border-radius: 2px; }
.bk-tick { position: absolute; top: 34px; width: 2px; height: 15px; margin-left: -1px; background: #10201b; }
.bk-tick.is-big { top: 30px; height: 23px; width: 3px; margin-left: -1.5px; }
.bk-tick-label { position: absolute; top: 56px; transform: translateX(-50%); font-size: 0.85em; color: #33443e; white-space: nowrap; }
.bk-marker { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.bk-marker b { background: #f39c12; color: #fff; border-radius: 8px; padding: 1px 8px; font-size: 0.95em; }
.bk-marker::after { content: ""; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 12px solid #f39c12; }
.bk-line-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 4px; }
.bk-line-controls .lu-button { min-width: 48px; }
.bk.is-locked .bk-pool { display: none; }
.lp-check-actions { margin: 8px 0 0; }
.lp-option-pic { display: block; max-width: 160px; max-height: 120px; margin: 4px 0; border-radius: 8px; }
.lp-options.has-pics { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.lp-review-tag { display: inline-block; font-size: 0.8em; font-weight: 700; color: #7a4d00; background: #fff1d6; border-radius: 999px; padding: 2px 10px; margin: 0 0 6px; }
.lu-option-pic-btn { margin-left: 6px; font-size: 0.9em; }
.lu-edit-option .lp-option-pic { max-width: 70px; max-height: 50px; display: inline-block; vertical-align: middle; }
.lu-block-preview { border: 1px dashed #cfe0d9; border-radius: 12px; padding: 8px 12px; margin: 8px 0; background: #fbfdfc; }
.lp-age-early .bk-chip { font-size: 1.15em; min-height: 56px; padding: 10px 18px; }
.lp-age-early .bk-line-track { height: 90px; }
.bk-pool:empty { display: none; }

/* Teach mode: the lesson big on the class screen, class answers beside it. */
.lu-teach-dialog { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; margin: 0; }
.lu-teach-dialog:fullscreen { padding: 0 20px 20px; }
.lu-teach { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.lu-teach-dialog.is-panel-hidden .lu-teach { grid-template-columns: minmax(0, 1fr); }
.lu-teach-dialog.is-panel-hidden .lu-teach-panel { display: none; }
.lu-teach-lesson { min-width: 0; }
.lp-teach { font-size: 1.25rem; }
.lp-teach .lp-page h2, .lp-teach .lp-question h3 { font-size: 1.9rem; }
.lu-teach-panel { position: sticky; top: 64px; max-height: calc(100vh - 90px); overflow: auto; background: #fff; border: 1px solid var(--lu-line); border-radius: 14px; padding: 14px 16px; }
.lu-teach-panel h3 { margin: 0 0 4px; color: var(--lu-green); }
.lu-teach-panel h4 { margin: 14px 0 6px; font-size: 0.95rem; }
.lu-teach-summary { margin: 0; color: var(--lu-muted); }
.lu-teach-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lu-teach-checks li { display: grid; gap: 4px; }
.lu-teach-q { font-size: 0.9rem; }
.lu-teach-bar { display: block; height: 10px; border-radius: 6px; background: var(--lu-soft); overflow: hidden; }
.lu-teach-bar span { display: block; height: 100%; background: #2f9e6b; }
.lu-teach-count { font-size: 0.85rem; color: var(--lu-muted); }
.lu-teach-quiz { display: flex; flex-wrap: wrap; gap: 6px; }
.lu-teach-qz { padding: 3px 8px; border-radius: 8px; background: var(--lu-soft); font-size: 0.85rem; font-weight: 600; }
.lu-teach-qz.is-low { background: #fdeceb; color: var(--lu-bad); }
.lu-teach-names { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 0.85rem; }
.lu-teach-names th, .lu-teach-names td { padding: 4px 4px; border-bottom: 1px solid var(--lu-line); text-align: center; }
.lu-teach-names th:first-child, .lu-teach-names td:first-child { text-align: left; }
.lu-teach-names small { display: block; color: var(--lu-muted); }
.lu-teach-names tr.is-notstarted td:first-child, .lu-teach-names tr.is-signedout td:first-child { color: var(--lu-muted); }
.lu-teach-dot { font-weight: 700; color: #9aa8a2; }
.lu-teach-dot.good { color: #1f8a57; }
.lu-teach-dot.bad { color: var(--lu-bad); }
@media (max-width: 900px) { .lu-teach { grid-template-columns: minmax(0, 1fr); } .lu-teach-panel { position: static; max-height: none; } }
.bk.is-locked .bk-match-row, .bk.is-locked .bk-chip { color: #10201b; opacity: 1; }
.dg-plan-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.dg-plan-area { border: 1px solid #d8e4dc; border-radius: 12px; padding: 10px 14px; background: #fff; }
.dg-plan-area h5 { margin: 0 0 6px; font-size: 1rem; }
.dg-plan-area h5 small { display: block; font-weight: 400; }
.dg-plan-area .dg-plan { margin: 0; }
.dg-plan li { margin: 4px 0; }

/* Teaching board in teach mode (assets/teach-board.js, 2026-10-17): pen,
   shapes and whiteboard pages over the lesson, sized for a classroom touch
   screen, plus the Videos & links tab. */
.lu-teach-bar-top { flex-wrap: wrap; gap: 8px; }
.lu-teach-tools { flex: 1 1 100%; }
.tb-toolbar { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.tb-group { display: flex; gap: 4px; align-items: center; }
.tb-btn { min-width: 48px; height: 48px; padding: 0 8px; border: 1px solid var(--lu-line); border-radius: 10px; background: #fff; font: inherit; font-size: 1.35rem; line-height: 1; color: var(--lu-ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; touch-action: manipulation; }
.tb-btn.tb-text { font-size: 1rem; font-weight: 700; }
.tb-btn.is-on { background: var(--lu-green); border-color: var(--lu-green); color: #fff; }
.tb-btn[disabled] { opacity: 0.4; cursor: default; }
.tb-size span { display: block; border-radius: 50%; background: currentColor; }
.tb-swatch { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--lu-line); cursor: pointer; touch-action: manipulation; }
.tb-swatch.is-on { box-shadow: 0 0 0 3px var(--lu-amber); }
.tb-page { font-weight: 700; padding: 0 4px; }
.tb-boards select { height: 48px; font: inherit; padding: 0 8px; border-radius: 10px; border: 1px solid var(--lu-line); }
.tb-wrap { position: relative; }
.tb-canvas { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 2; }
.tb-wrap.is-drawing .tb-canvas { pointer-events: auto; touch-action: none; cursor: crosshair; }
.tb-wrap.is-drawing { user-select: none; -webkit-user-select: none; }
.tb-board { min-height: calc(100vh - 190px); border-radius: 12px; border: 1px solid var(--lu-line); background-color: #fff; }
.tb-paper-squares { background-image: linear-gradient(#dfe8f1 1px, transparent 1px), linear-gradient(90deg, #dfe8f1 1px, transparent 1px); background-size: 40px 40px; }
.tb-paper-dots { background-image: radial-gradient(#b9c6d3 2px, transparent 2px); background-size: 40px 40px; }
.lu-teach-tabs { display: flex; gap: 4px; margin: -4px 0 10px; border-bottom: 1px solid var(--lu-line); }
.lu-teach-tabs button { flex: 1; padding: 10px 6px; border: 0; border-bottom: 3px solid transparent; background: none; font: inherit; font-weight: 700; color: var(--lu-muted); cursor: pointer; }
.lu-teach-tabs button.is-on { color: var(--lu-green); border-bottom-color: var(--lu-green); }
.tb-res-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tb-res { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--lu-soft); }
.tb-res-icon { font-size: 1.4rem; }
.tb-res-main { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.tb-res-main small { color: var(--lu-muted); }
.tb-res-add { display: grid; gap: 6px; }
.tb-res-add input { font: inherit; padding: 10px; border: 1px solid var(--lu-line); border-radius: 8px; }
.tb-video { position: fixed; inset: 0; z-index: 50; background: rgba(16, 32, 27, 0.85); display: flex; align-items: center; justify-content: center; padding: 20px; }
.tb-video-inner { width: min(1600px, 100%); display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.tb-video iframe { width: 100%; aspect-ratio: 16 / 9; max-height: calc(100vh - 110px); border: 0; border-radius: 10px; background: #000; }
/* On the big screen the lesson uses the full width, with larger text. */
.lp-teach .lp { max-width: none; }
@media (min-width: 1600px) { .lp-teach { font-size: 1.5rem; } .lp-teach .lp-page h2, .lp-teach .lp-question h3 { font-size: 2.3rem; } }

/* Lesson types (2026-10-17): online, in class, on paper. */
.lu-place-paper { background: #f1ece4; color: #6b4a1f; }
.lu-place-note { margin: -4px 0 10px; padding: 8px 12px; border-radius: 8px; background: var(--lu-soft); font-size: 0.9rem; }
.lu-link.lu-link-strong { text-decoration: underline; text-underline-offset: 3px; }

/* Online lesson in the student portal: the lesson, with videos, the
   calculator and links in a side panel (assets/learning.js studySide). */
.lu-study.has-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 20px; align-items: start; max-width: 1320px; margin: 0 auto; }
.lu-study.has-side .lp { margin-left: auto; margin-right: auto; }
.lu-study-side { position: sticky; top: 0; max-height: calc(100vh - 90px); overflow-y: auto; background: #fff; border: 1px solid var(--lu-line); border-radius: 14px; padding: 12px 14px; }
.lu-study-tabs { display: flex; gap: 4px; margin-bottom: 10px; border-bottom: 1px solid var(--lu-line); }
.lu-study-tabs button { flex: 1; padding: 9px 4px; border: 0; border-bottom: 3px solid transparent; background: none; font: inherit; font-weight: 700; font-size: 0.88rem; color: var(--lu-muted); cursor: pointer; }
.lu-study-tabs button[aria-selected="true"] { color: var(--lu-green); border-bottom-color: var(--lu-green); }
.lu-study-title { margin: 0 0 10px; font-size: 1rem; color: var(--lu-green); }
.lu-study-video { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.lu-study-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lu-study-now { margin: 8px 0 2px; }
.lu-study-note { font-size: 0.9rem; color: var(--lu-muted); }
.lu-study-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.lu-study-list button, .lu-study-list a { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 1px solid var(--lu-line); border-radius: 8px; background: #fff; font: inherit; font-weight: 600; color: var(--lu-green-2); cursor: pointer; text-decoration: none; overflow-wrap: anywhere; }
.lu-study-list button.is-on { background: var(--lu-soft); border-color: var(--lu-green-2); }
.lu-study-list small { display: block; color: var(--lu-muted); padding: 2px 10px 0; }
.lu-study-toggle { display: none; }
@media (max-width: 980px) {
  .lu-study.has-side { display: block; }
  .lu-study-side { display: none; position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 70; max-height: 75vh; border-radius: 16px 16px 0 0; box-shadow: 0 -8px 30px rgba(16, 32, 27, 0.25); padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .lu-study-side.is-open:not([hidden]) { display: block; padding-bottom: 72px; }
  .lu-study-toggle:not([hidden]) { display: inline-flex; position: fixed; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 71; align-items: center; gap: 6px; padding: 10px 16px; border: 0; border-radius: 999px; background: var(--lu-green); color: #fff; font: inherit; font-weight: 700; box-shadow: 0 4px 14px rgba(16, 32, 27, 0.3); cursor: pointer; }
}
dialog .lu-study.has-side { max-width: none; }

/* The built-in calculator (assets/calculator.js). */
.calc { outline: none; }
.calc-screen { background: #10201b; color: #fff; border-radius: 10px; padding: 10px 12px; text-align: right; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.calc-expr { min-height: 1.3em; font-size: 0.95rem; color: #b9d3c6; overflow-wrap: anywhere; }
.calc-result { font-size: 1.8rem; font-weight: 700; overflow-wrap: anywhere; }
.calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.calc-key { min-height: 48px; border: 1px solid var(--lu-line); border-radius: 10px; background: #fff; font: inherit; font-size: 1.2rem; font-weight: 700; color: var(--lu-ink); cursor: pointer; touch-action: manipulation; }
.calc-key:active { background: var(--lu-soft); }
.calc-key.is-op { background: var(--lu-soft); color: var(--lu-green); }
.calc-key.is-eq { background: var(--lu-amber); border-color: var(--lu-amber); }
.calc-key.is-clear { color: var(--lu-bad); }
.calc-history { list-style: none; margin: 8px 0 0; padding: 0; font-size: 0.85rem; color: var(--lu-muted); text-align: right; }
.lu-study.has-side:has(> .lu-study-side[hidden]) { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.lu-check[hidden] { display: none !important; }

/* Create with AI: the chosen student's gaps */
.lu-ai-gaps { margin: 4px 0 12px; padding: 10px 14px; border: 1px solid #d7e3f4; border-radius: 10px; background: #f5f9ff; }
.lu-ai-gaps p { margin: 0 0 6px; }
.lu-ai-gaps ul { margin: 0 0 6px; padding-left: 20px; }
.lu-ai-gaps li { margin: 2px 0; }
.lu-ai-test { margin: 0 0 10px; }

/* Claude prompt forms (Make a Claude prompt, Bulk lessons prompt) */
.pb-skills { border: 1px solid #e3ece8; border-radius: 10px; padding: 8px 12px; margin: 4px 0 12px; }
.pb-skills h5 { margin: 10px 0 2px; font-size: 0.85rem; color: #0b5a3d; }
.pb-skills-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px; }
.pb-skills-head label { max-width: 220px; }
.pb-chosen { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px; }
.pb-chosen .ws-tag { margin-left: 0; white-space: normal; }
.pb-out { margin-top: 16px; padding: 12px 14px; border: 1px solid #b9e0c6; border-radius: 10px; background: #effaf2; }
.pb-out-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.pb-out textarea { width: 100%; font: 0.82rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #fff; }
.lu-use { font-size: 0.85rem; padding: 2px 4px; border-radius: 6px; border: 1px solid #cfdcd6; background: #fff; }
.pb-skills h5 small { font-weight: 400; }
.pb-skills h6 { margin: 8px 0 2px; font-size: 0.8rem; color: #4a5a54; text-transform: uppercase; letter-spacing: 0.03em; }
.pb-cur { border-top: 1px solid #eef3f1; padding: 4px 0; }
.pb-cur summary { cursor: pointer; font-size: 0.9rem; line-height: 1.4; }
.pb-cur > .lu-check { margin: 6px 0 0 18px; }
.pb-cur .ws-skills { padding-left: 18px; }
