/* Native learning labels and class-scoped teaching tools. */
.palace-teaching { width: 100%; color: #292b36; }
.palace-teaching-scene { position: relative; width: 100%; isolation: isolate; }
.palace-teaching-image { display: block; width: 100%; height: auto; object-fit: contain; }
.palace-teaching-hint { margin: 5px 0 0; font-size: 12px; line-height: 1.7; color: #45434f; }
.palace-feature-note { margin-top: 10px; padding: 12px 14px; border-left: 3px solid #973c59; border-radius: 0 9px 9px 0; background: #faf6f8; color: #292b36; }
.palace-feature-note[hidden] { display: none; }
.palace-feature-note p { margin: 5px 0 0; font-size: 13px; line-height: 1.7; color: #45434f; }
.palace-feature-note p[lang="en"] { font-size: 12px; }
.palace-teaching-caption { display: grid; gap: 6px; margin-top: 12px; font-size: 11px; line-height: 1.75; color: #45434f; }
.palace-teaching-caption > span:first-child { color: #292b36; font-weight: 600; }
.palace-teaching-caption a { color: #783049; text-underline-offset: 3px; }
.palace-exercise-figure { width: min(100%, 680px); margin: 0 auto; }
.teaching-diagram .palace-teaching { max-width: 740px; margin: 12px auto 0; }
.teaching-diagram .palace-teaching-caption { margin-bottom: 10px; }
.palace-map-figure { max-width: 740px; margin: 12px auto; }
.practice-score-basis { margin-top: 12px; color: #45434f; font-size: 12px; line-height: 1.8; }
.practice-score-details { display: flex; flex-wrap: wrap; gap: 7px 20px; margin: 12px 0; font-size: 12px; }
.practice-score-details > span { display: flex; gap: 7px; }

.teacher-class-context { display: grid; grid-template-columns: auto minmax(200px, 360px) minmax(160px, 1fr); align-items: center; gap: 14px; }
.teacher-class-context label { color: #292b36; font-weight: 600; }
.teacher-class-context p { margin: 0; color: #45434f; font-size: 12px; line-height: 1.7; }
.teacher-week-definition { margin: -8px 0 25px; padding: 0 4px; color: #45434f; font-size: 12px; line-height: 1.8; }
.teacher-week-definition summary { cursor: pointer; color: #45434f; }
.teacher-week-definition p { margin: 8px 0 0; }
.teacher-assignment { border-top: 1px solid #e9e6ec; padding: 16px 0; }
.teacher-assignment > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; list-style: none; }
.teacher-assignment > summary::after { content: '+'; color: #783049; font-size: 20px; flex: 0 0 auto; }
.teacher-assignment[open] > summary::after { content: '−'; }
.teacher-assignment > summary > span:first-child { flex: 1; min-width: 0; }
.teacher-assignment > summary strong { display: block; overflow-wrap: anywhere; color: #292b36; font-size: 15px; }
.teacher-assignment > summary small { display: block; margin-top: 5px; color: #45434f; font-size: 11px; }
.teacher-assignment-body { padding: 18px 0 2px; }
.teacher-assignment-body h3 { margin: 16px 0 10px; font-size: 14px; }
.teacher-assignment-body h3:first-child { margin-top: 0; }
.teacher-level-map { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.teacher-level-map > div { display: grid; align-content: start; gap: 9px; padding: 12px; border: 1px solid #e9e6ec; border-radius: 10px; background: #fcfbfd; }
.teacher-level-map > div > span { color: #292b36; font-size: 11px; font-weight: 600; }
.teacher-level-map a { color: #783049; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
.teacher-task-note { color: #45434f; font-size: 12px; line-height: 1.8; }
.teacher-row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.teacher-cell-detail { display: block; margin-top: 4px; color: #45434f; font-size: 10px; }
.teacher-recommendation { margin-top: 10px; max-width: 320px; color: #292b36; font-size: 11px; line-height: 1.8; }
.teacher-recommendation summary { cursor: pointer; }
.teacher-recommendation p { margin: 7px 0; white-space: normal; }
.teacher-history-row { display: flex; gap: 14px; padding: 15px 0; border-top: 1px solid #e9e6ec; }
.teacher-history-row:first-of-type { margin-top: 12px; }
.teacher-history-row strong { font-size: 13px; }
.teacher-history-row p { margin: 6px 0; color: #45434f; font-size: 12px; line-height: 1.8; }
.teacher-history-row small { color: #45434f; font-size: 11px; }
html.atelier-theme body .shell.workspace-shell .main[class] .palace-teaching-caption { color: #45434f; }
html.atelier-theme body .shell.workspace-shell .main[class].page-lesson #lesson-content .article-figure:has(.palace-teaching) { max-width: 700px; background: #fff; }
html.atelier-theme body .shell.workspace-shell .main[class].page-lesson #lesson-content .article-figure .palace-teaching { padding: 10px 14px 12px; }
html.atelier-theme body .shell.workspace-shell .main[class].page-lesson #lesson-content .article-figure .palace-teaching-caption { font-size: 11px; background: #fcfbfd; color: #45434f; }
html.atelier-theme body .shell.workspace-shell .main[class].page-lesson #lesson-content .article-figure .palace-teaching-caption span { display: block; color: #45434f; font-size: inherit; }
html.atelier-theme body .shell.workspace-shell .main[class].page-lesson #lesson-content .article-figure .palace-teaching-caption span[data-i18n] { display: inline; margin: 0; }
html.atelier-theme body .shell.workspace-shell .main[class].page-lesson #lesson-content .exercise-image:has(.palace-exercise-figure) { height: auto; aspect-ratio: auto; max-height: none; overflow: visible; background: #fff; }
html.atelier-theme body .shell.workspace-shell .main[class].page-lesson #lesson-content .exercise-image .palace-exercise-figure { padding: 10px 12px 14px; }
@media (max-width: 900px) {
 .teacher-class-context { grid-template-columns: auto minmax(160px, 1fr); }
 .teacher-class-context p { grid-column: 1 / -1; }
 .teacher-level-map { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
 .teacher-class-context { grid-template-columns: 1fr; gap: 9px; }
 .teacher-level-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .teacher-assignment > summary { gap: 8px; }
 .teacher-assignment > summary > .pill { display: none; }
 .practice-score-details { display: grid; gap: 8px; }
}

