/* Loaded only by progress, teacher and pronunciation pages. */
.progress-page .pron-next-card,.progress-page .daily-review-card,.teacher-page .assignment-card{padding:clamp(20px,3vw,32px);background:var(--card);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}
.progress-page .pron-next-card{margin:24px 0 16px;border-left:4px solid var(--jade,#174c46)}
.progress-page .pron-next-card h3{margin:0 0 12px}.progress-page .pron-next-card p{max-width:70ch}
.progress-page #pronunciationProgress .progress-summary{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.progress-page #pronunciationProgress .progress-lvl-card{padding:24px;text-align:left;min-width:0}
.progress-page #pronunciationProgress .plc-count{font-size:clamp(1.4rem,2.2vw,2rem)}
.progress-page .daily-review-card{margin-top:24px}.progress-page .daily-review-card h3{margin-top:8px}
.progress-page #scheduledReview .zh{font-size:2rem;margin:18px 0}.progress-page #scheduledReview .btn{margin:0 10px 10px 0}
.progress-page .backup-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:16px 24px;padding:24px 0 0;margin-top:24px;border-top:1px solid var(--line)}
.progress-page .backup-toolbar>div:first-child{margin-right:auto}.progress-page .backup-toolbar p{margin:6px 0;color:var(--ink-soft);font-size:.9rem}
.progress-page #backupStatus{flex-basis:100%;margin:0}.progress-page #backupStatus:empty{display:none}
.progress-page .backup-restore{max-width:100%}.progress-page .backup-restore[open]{flex-basis:100%}.progress-page .backup-restore-content{max-width:720px;padding-top:14px}
.progress-page #backupUpload{border:1px solid var(--line);border-radius:12px;background:var(--card);width:100%;box-sizing:border-box}
.progress-page #backupUpload::file-selector-button{border:0;border-radius:8px;padding:10px 14px;margin-right:12px;background:#e3f3ed;color:#174c46;font:inherit}
.progress-page details summary,.teacher-page details summary,.pronunciation-lab-page details summary{cursor:pointer;color:#174c46;font-weight:600;padding:12px 0;font-size:.95rem}
.teacher-page .teacher-planner-controls{display:grid;grid-template-columns:minmax(120px,1fr) minmax(0,3fr) minmax(150px,1fr);gap:20px;margin:28px 0}
.teacher-page .planner-field{min-width:0}.teacher-page .planner-field label{display:block;font-size:.9rem;font-weight:600;margin-bottom:8px}
.teacher-page .planner-field select,.teacher-page #teacherAssignment,.pronunciation-lab-page #sound-filter{font:inherit;color:var(--ink);background:var(--card);border:1px solid var(--line);border-radius:12px;padding:14px 16px;min-height:50px;width:100%;box-sizing:border-box}
.teacher-page .planner-workspace{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:24px;align-items:start}
.teacher-page #teacherPlan{padding:28px;border-radius:20px;min-width:0}.teacher-page #teacherPlan h3,.teacher-page .assignment-card h3{margin-top:0}
.teacher-page #teacherPlan ol{padding-left:24px}.teacher-page #teacherPlan li{padding:10px 0;border-bottom:1px solid var(--line);line-height:1.65}
.teacher-page #teacherPlan li:last-child{border:0}.teacher-page #teacherAssignment{min-height:260px;resize:vertical;line-height:1.65}
.teacher-page .teacher-actions{display:flex;gap:12px;flex-wrap:wrap}.teacher-page #teacherStatus{font-size:.9rem;color:var(--ink-soft)}
.teacher-page #evaluacion-formativa .grid{margin:28px 0}.teacher-page #seguimiento-docente .wrap{max-width:900px}.teacher-page #seguimiento-docente li{padding:8px 0}
.pronunciation-lab-page .pron-lab-panel>section.wrap{padding-top:48px;padding-bottom:48px}
.pronunciation-lab-page .pron-lab-panel>section.wrap+section.wrap{border-top:1px solid var(--line)}
.pronunciation-lab-page .pron-lab-panel>section.wrap>h2{margin-top:0;margin-bottom:18px}
.pronunciation-lab-page .pronunciation-target-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:24px}
.pronunciation-lab-page .pronunciation-target{min-width:0;display:flex;flex-direction:column;padding:24px;border-radius:18px}
.pronunciation-lab-page .pronunciation-target>.btn:first-of-type{margin-top:auto}.pronunciation-lab-page .pronunciation-target>.btn{width:100%;margin-bottom:0;margin-top:10px}
.pronunciation-lab-page .pronunciation-target[hidden]{display:none}
.pronunciation-lab-page label[for="sound-filter"]{display:block;font-weight:600;margin:24px 0 10px}
.pronunciation-lab-page #sound-filter{max-width:660px;display:block}.pronunciation-lab-page #sound-count{font-size:.9rem;color:var(--ink-soft)}
.pronunciation-lab-page .sound-tips{border:1px solid var(--line);border-radius:14px;padding:4px 20px;background:var(--card);margin:22px 0}
.pronunciation-lab-page #tabla-pinyin>section{padding:30px 0}.pronunciation-lab-page #tone-answers{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}
.progress-page :is(button,input,summary):focus-visible,.teacher-page :is(button,select,textarea):focus-visible,.pronunciation-lab-page :is(input,summary):focus-visible{outline:3px solid #1f8a70;outline-offset:4px}
@media(max-width:1000px){.progress-page #pronunciationProgress .progress-summary,.pronunciation-lab-page .pronunciation-target-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.teacher-page .planner-workspace{grid-template-columns:1fr}}
@media(max-width:600px){.progress-page #pronunciationProgress .progress-summary,.progress-page .review-now-grid,.pronunciation-lab-page .pronunciation-target-grid,.teacher-page .teacher-planner-controls{grid-template-columns:1fr}.pronunciation-lab-page .pron-lab-panel>section.wrap{padding-top:32px;padding-bottom:32px}.progress-page .backup-toolbar{align-items:flex-start}.teacher-page #teacherPlan{padding:20px}}


.teacher-page #evaluacion-formativa,.teacher-page #seguimiento-docente{padding:12px 0}.teacher-page .teacher-guidance{border:1px solid var(--line);border-radius:18px;background:var(--card);padding:8px 24px}.teacher-page .teacher-guidance>summary{font-family:Lora,serif;font-size:1.2rem;padding:18px 0}.teacher-page .teacher-guidance-body{padding-bottom:16px}

/* Foundation 2.0 focused polish: progress, teacher and pronunciation only. */
.progress-tabs-section,.progress-page .progress-tabs-section{padding:0 0 18px;position:sticky;top:0;z-index:20;background:var(--paper)}
.progress-tabs,.pron-lab-tabs{max-width:760px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:8px;border:1px solid var(--line);border-radius:18px;background:var(--card);box-shadow:var(--shadow)}
.progress-tabs button,.pron-lab-tabs button{min-height:50px;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--jade-dark);font:800 .92rem var(--sans);cursor:pointer}
.progress-tabs button[aria-selected="true"],.pron-lab-tabs button[aria-selected="true"]{background:var(--jade-dark);border-color:var(--jade-dark);color:#fff}
.progress-page .progress-continue-section{padding:18px 0 44px}
.progress-page .continue-card{border-radius:22px;padding:clamp(22px,4vw,36px)}
.progress-page .review-now-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch;margin-top:26px}
.progress-page .review-suggestions{display:contents}
.progress-page .review-now-card,.progress-page .daily-review-card{display:flex;flex-direction:column;min-width:0;padding:24px;border:1px solid var(--line);border-radius:20px;background:var(--card);box-shadow:var(--shadow)}
.progress-page .review-now-card h3,.progress-page .daily-review-card h3{margin:12px 0 8px;font-size:1.12rem;line-height:1.35}
.progress-page .review-now-card p,.progress-page .daily-review-card p{color:var(--ink-soft);line-height:1.55}
.progress-page .review-now-card .btn{margin-top:auto;align-self:flex-start}
.progress-page #scheduledReview{margin-top:auto}.progress-page #scheduledReview>.btn{width:100%;margin:6px 0}
.progress-page .backup-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:20px;padding:18px 20px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.72)}
.progress-page .backup-toolbar>div:first-child{flex:1 1 360px}.progress-page .backup-toolbar>div:first-child p{margin:4px 0 0}
.progress-page .backup-restore{position:relative}.progress-page .backup-restore>summary{list-style:none;padding:11px 18px}.progress-page .backup-restore>summary::before{display:none}
.progress-page .backup-restore[open]{flex-basis:100%;padding-top:8px}.progress-page .backup-restore-content{padding:18px;border-top:1px solid var(--line)}
.progress-page #backupUpload{margin:10px 0;padding:10px}.progress-page #backupStatus{flex-basis:100%;margin:0}
.progress-page .streak-overview{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;max-width:820px}
.progress-page .streak-overview article{display:flex;flex-direction:column;padding:24px;border:1px solid var(--line);border-radius:18px;background:var(--card);text-align:center}
.progress-page .streak-overview strong{font:700 clamp(2rem,4vw,3rem) var(--serif);color:var(--seal)}
.progress-page .streak-overview span{color:var(--ink-soft);font-weight:700}
.progress-page .completed-lessons-section .progress-summary{grid-template-columns:repeat(6,minmax(0,1fr))}
.progress-page .certificate-strip{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:26px;padding:20px 22px;border:1px solid var(--line);border-radius:18px;background:var(--card)}
.progress-page .certificate-strip h3,.progress-page .certificate-strip p{margin:0}.progress-page .certificate-strip p{color:var(--ink-soft);margin-top:4px}
.progress-page .pronunciation-summary{grid-template-columns:repeat(4,minmax(0,1fr))}
.progress-page .pronunciation-summary .progress-lvl-card{display:flex;flex-direction:column;text-align:left}.progress-page .pronunciation-summary .progress-lvl-card a{margin-top:auto;font-weight:800}
.progress-page .weak-word-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.progress-page .weak-word-list article{display:grid;grid-template-columns:auto 1fr;gap:4px 14px;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:var(--card)}
.progress-page .weak-word-list .ww-zh{grid-row:1/3;font:700 1.55rem var(--zh-serif);color:var(--jade-dark)}
.progress-page .weak-word-list small{color:var(--ink-soft)}

.pronunciation-lab-page .pron-lab-tabs-section{padding:0 0 18px;position:sticky;top:0;z-index:20;background:var(--paper)}
.pronunciation-lab-page .pron-lab-panel>section.wrap{padding-top:52px;padding-bottom:52px}
.pronunciation-lab-page .pron-lab-panel>section.wrap+section.wrap{border-top:1px solid var(--line)}
.pronunciation-lab-page .pronunciation-target-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.pronunciation-lab-page .pronunciation-target{border-radius:20px;padding:22px;box-shadow:0 8px 24px rgba(42,49,45,.06)}
.pronunciation-lab-page .sound-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.pronunciation-lab-page .sound-card-head h4{font:700 2rem var(--serif);margin:0;color:var(--ink)}
.pronunciation-lab-page .sound-card-head .btn{width:auto;margin:0;padding:9px 12px;font-size:.78rem;white-space:nowrap}
.pronunciation-lab-page .sound-example{padding:13px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.pronunciation-lab-page .sound-example>span:first-child{display:block;margin-bottom:6px;color:var(--ink-soft);font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.pronunciation-lab-page .sound-card>.btn{width:100%;margin-top:10px}
.pronunciation-lab-page label[for="sound-filter"]{margin-top:28px;font-weight:800}
.pronunciation-lab-page #sound-filter{max-width:none;border:2px solid #d7e4df;border-radius:16px;padding:16px 18px;background:#fff;box-shadow:0 6px 18px rgba(23,76,70,.05)}
.pronunciation-lab-page #sound-filter:focus{border-color:var(--jade);outline:3px solid rgba(31,138,112,.16)}
.pronunciation-lab-page .lab-accordion{margin:26px 0;border:1px solid var(--line);border-radius:20px;background:var(--card);overflow:hidden;box-shadow:var(--shadow)}
.pronunciation-lab-page .lab-accordion>summary{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 24px;list-style:none;font:700 1.2rem var(--serif);color:var(--ink)}
.pronunciation-lab-page .lab-accordion>summary::before{display:none}.pronunciation-lab-page .lab-accordion>summary::after{content:'+';font:500 1.6rem var(--sans);color:var(--jade-dark)}
.pronunciation-lab-page .lab-accordion[open]>summary{border-bottom:1px solid var(--line)}.pronunciation-lab-page .lab-accordion[open]>summary::after{content:'−'}
.pronunciation-lab-page .lab-accordion>summary small{margin-left:auto;color:var(--ink-soft);font:600 .82rem var(--sans)}
.pronunciation-lab-page .sound-group .pronunciation-target-grid,.pronunciation-lab-page .lab-accordion-body{padding:24px;margin-top:0}
.pronunciation-lab-page .lab-reference-content{padding:0 0 8px}.pronunciation-lab-page .lab-reference-content>section{padding:34px 24px}.pronunciation-lab-page .lab-reference-content .wrap{width:100%;max-width:none}
.pronunciation-lab-page .tone-series-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.pronunciation-lab-page .tone-listening-quiz{margin-top:34px;padding:clamp(24px,4vw,38px);border:1px solid var(--line);border-radius:22px;background:var(--card);box-shadow:var(--shadow)}
.pronunciation-lab-page .tone-quiz-controls,.pronunciation-lab-page #tone-answers{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}
.pronunciation-lab-page .tone-answer{min-width:105px;padding:11px 16px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font:800 .9rem var(--sans);cursor:pointer}
.pronunciation-lab-page .tone-answer:hover:not(:disabled){border-color:var(--jade);background:#edf5f2}.pronunciation-lab-page .tone-answer.is-correct{border-color:var(--hsk1-main);background:var(--hsk1-secondary)}.pronunciation-lab-page .tone-answer.is-wrong{border-color:#b23a2e;background:#fff0ed}
.pronunciation-lab-page .lab-reference-section{padding-top:18px!important}.pronunciation-lab-page .about-story-audio{margin-top:14px}

.teacher-page #preparar-clase{padding-top:42px}.teacher-page #preparar-clase>.wrap{padding:clamp(24px,4vw,42px);border:1px solid var(--line);border-radius:24px;background:rgba(255,255,255,.7)}
.teacher-page .teacher-planner-controls{padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--paper-dim)}
.teacher-page .planner-field select,.teacher-page #teacherAssignment{border:2px solid #d7e4df;background:#fff}.teacher-page .planner-field select:focus,.teacher-page #teacherAssignment:focus{border-color:var(--jade);outline:3px solid rgba(31,138,112,.16)}
.teacher-page .planner-workspace{gap:20px}.teacher-page #teacherPlan,.teacher-page .assignment-card{height:100%;box-sizing:border-box}
.teacher-page .teacher-path-grid .card,.teacher-page .teacher-collection-grid .card,.teacher-page .teacher-product{box-shadow:0 8px 24px rgba(42,49,45,.05)}
.teacher-page .teacher-collections{padding-top:30px}.teacher-page .teacher-section-head{gap:28px}.teacher-page .teacher-section-head h2{margin-bottom:0}
.teacher-page .teacher-product-grid{gap:16px}.teacher-page .teacher-product{padding:20px}.teacher-page .teacher-product p{min-height:0}

@media(max-width:1050px){.progress-page .completed-lessons-section .progress-summary{grid-template-columns:repeat(3,1fr)}.progress-page .pronunciation-summary,.pronunciation-lab-page .pronunciation-target-grid,.pronunciation-lab-page .tone-series-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:780px){.progress-page .review-now-grid,.progress-page .streak-overview{grid-template-columns:1fr}.progress-page .certificate-strip{align-items:flex-start;flex-direction:column}.progress-page .pronunciation-summary,.progress-page .weak-word-list{grid-template-columns:1fr}.teacher-page .teacher-planner-controls{grid-template-columns:1fr}.pronunciation-lab-page .lab-accordion>summary{align-items:flex-start;flex-wrap:wrap}.pronunciation-lab-page .lab-accordion>summary small{width:100%;margin:0}}
@media(max-width:560px){.progress-tabs,.pron-lab-tabs{gap:5px;padding:5px}.progress-tabs button,.pron-lab-tabs button{font-size:.8rem;padding:8px}.progress-page .completed-lessons-section .progress-summary,.pronunciation-lab-page .pronunciation-target-grid,.pronunciation-lab-page .tone-series-grid{grid-template-columns:1fr}.progress-page .backup-toolbar{align-items:stretch}.progress-page .backup-toolbar .btn,.progress-page .backup-restore{width:100%}.pronunciation-lab-page .sound-card-head{align-items:flex-start;flex-direction:column}.pronunciation-lab-page .lab-reference-content>section{padding:26px 16px}}

/* Focused follow-up: equal cards, stable backup buttons and local results. */
.progress-page .review-now-grid .daily-review-card{margin-top:0}
.progress-page .backup-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:start}
.progress-page .backup-toolbar>div:first-child{margin:0}
.progress-page #backupRestorePanel,.progress-page #backupStatus{grid-column:1/-1;width:100%;box-sizing:border-box}
.progress-page #backupRestorePanel[hidden]{display:none}
.pronunciation-lab-page .mic-feedback-section{padding-top:0}
.pronunciation-lab-page .mic-feedback{border:1px solid var(--line);border-left:4px solid var(--jade,#174c46);border-radius:18px;background:var(--card);padding:clamp(20px,3vw,30px)}
.pronunciation-lab-page .mic-feedback h3{margin:8px 0 16px}
.pronunciation-lab-page .mic-feedback details{margin-top:20px}
@media(max-width:600px){.progress-page .backup-toolbar{grid-template-columns:1fr 1fr}.progress-page .backup-toolbar>div:first-child{grid-column:1/-1}.progress-page .backup-toolbar>.btn{width:auto}}

/* Teacher views, printable lesson plan and compact pronunciation statistics. */
.teacher-page [data-teacher-panel][hidden]{display:none}
.teacher-page .planner-workspace{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px;align-items:stretch}
.teacher-page #teacherPlan,.teacher-page .assignment-card{margin:0;padding:clamp(22px,3vw,34px);border:1px solid var(--line);border-radius:20px;background:var(--card)}
.teacher-page .assignment-card h3{margin-top:0}
.teacher-page #teacherPlan li{padding:16px 0;border-bottom:1px solid var(--line);line-height:1.7}
.teacher-page #teacherAssignment{min-height:280px;width:100%;box-sizing:border-box}
.teacher-page #teacherAssignmentPrint{display:none}
.teacher-page #evaluacion-formativa>.wrap,.teacher-page #seguimiento-docente>.wrap{width:min(1120px,calc(100% - 48px));max-width:1120px;margin-inline:auto;padding-inline:0}
.teacher-page .teacher-guidance{margin:0;width:100%;box-sizing:border-box}
.teacher-page .teacher-guidance-body{padding:8px 0 24px}
.progress-page #pronunciationProgress .plc-count{font-size:clamp(1.4rem,2.4vw,1.85rem);line-height:1.25;margin:12px 0 22px}
.progress-page .weak-word-row{display:flex;justify-content:space-between;gap:16px;align-items:center}
.mic-session-actions{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}
@media(max-width:800px){.teacher-page .planner-workspace{grid-template-columns:1fr}}




/* Final scoped layout: one label/control per field, consistent page gutters. */
.teacher-page #preparar-clase>.wrap,.teacher-page #evaluacion-formativa>.wrap,.teacher-page #seguimiento-docente>.wrap{max-width:1080px;width:auto;margin-inline:auto;padding-inline:28px;box-sizing:border-box}
.teacher-page #preparar-clase>.wrap{border:0;border-radius:0;background:transparent}
.teacher-page .teacher-planner-controls{display:grid;grid-template-columns:minmax(120px,1fr) minmax(0,2.4fr) minmax(150px,1fr);gap:20px;align-items:end;padding:22px;margin:26px 0}
.teacher-page .teacher-field{display:flex;flex-direction:column;gap:9px;min-width:0}
.teacher-page .teacher-field label{margin:0;font-size:.9rem;font-weight:700}
.teacher-page .teacher-field select{box-sizing:border-box;width:100%;min-width:0;min-height:48px;margin:0;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--ink);font:inherit}
.teacher-page .teacher-guidance{padding:0 20px}
.teacher-page .teacher-guidance>summary{padding:14px 0;font-size:1.05rem;line-height:1.5}
.progress-page #scheduledReview>h3.zh{text-align:center;width:100%;margin:22px 0}
.progress-page #pronunciationProgress .pronunciation-summary .plc-count{font-size:1.3rem;line-height:1.35;margin:12px 0 18px}
.pronunciation-lab-page [hidden],.progress-page [hidden]{display:none!important}
.pronunciation-lab-page #panel-tonos .lab-reference-content>section{padding:28px clamp(16px,3vw,28px)}
.pronunciation-lab-page #panel-tonos .lab-reference-content .wrap{width:auto;max-width:none;padding-inline:0;box-sizing:border-box}
.pronunciation-lab-page #panel-tonos .lab-reference-content :is(.tone-grid,.tone-practice-grid,.tone-quiz-grid,.tone-pair-grid){grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));min-width:0}
.pronunciation-lab-page #panel-tonos .lab-reference-content :is(.tone-card,.tone-rule,.tone-exercise-block){min-width:0;max-width:100%;box-sizing:border-box}
.teacher-page #teacher-print-sheet{display:none}
@media(max-width:700px){.teacher-page .teacher-planner-controls{grid-template-columns:1fr;gap:16px}.teacher-page .teacher-field-lesson{order:3}}
@page teacher-plan{size:auto;margin:20mm 18mm}
@media print{
 body.teacher-page.print-teacher-plan>*:not(#teacher-print-sheet){display:none!important}
 body.teacher-page.print-teacher-plan>#teacher-print-sheet{display:block!important;page:teacher-plan;padding:5mm 0 0;margin:0;color:#172b28;background:white;font:11pt/1.6 Arial,sans-serif}
 #teacher-print-sheet .plan-print-header{display:flex;align-items:center;gap:16px;border-bottom:1px solid #b9c9c4;padding-bottom:16px;margin-bottom:24px}
 #teacher-print-sheet .plan-print-header img{width:60px;height:60px;object-fit:contain}
 #teacher-print-sheet .plan-print-header p{margin:0;font-size:9pt;letter-spacing:.08em}
 #teacher-print-sheet .plan-print-title{margin:6px 0 0;font-size:24pt}
 #teacher-print-sheet h2,#teacher-print-sheet h3{font-size:15pt;line-height:1.4;margin:0 0 14px;break-after:avoid}
 #teacher-print-sheet .card{border:0;box-shadow:none;background:white;padding:0;margin:0}
 #teacher-print-sheet ol{padding-left:22px}
 #teacher-print-sheet li{padding:9px 0;break-inside:avoid}
 #teacher-print-sheet a{display:none}
 #teacher-print-sheet .plan-print-assignment{padding:22px 0 0;margin-top:20px;border-top:1px solid #b9c9c4}
 #teacher-print-sheet .plan-print-label{font-size:10pt;color:#415952}
 #teacher-print-sheet #teacherPrintAssignment{white-space:pre-wrap;overflow-wrap:anywhere}
}

/* Preferred tone comparisons: five models and two-by-two teaching grids. */
.pronunciation-lab-page .mic-browser-help{padding:16px 20px;margin:18px 0 24px;border:1px solid var(--line);border-radius:16px;background:var(--card)}
.pronunciation-lab-page .mic-browser-help p{margin:0 0 12px}
.pronunciation-lab-page .mic-browser-help [role="status"]:empty{display:none}
.pronunciation-lab-page .mic-browser-help [role="status"]{margin:12px 0 0}
.pronunciation-lab-page #panel-tonos .lab-reference-content .tone-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.pronunciation-lab-page #panel-tonos .lab-reference-content .tone-practice-grid,.pronunciation-lab-page #panel-tonos .lab-reference-content .tone-pair-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:800px){.pronunciation-lab-page #panel-tonos .lab-reference-content .tone-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.pronunciation-lab-page #panel-tonos .lab-reference-content .tone-practice-grid,.pronunciation-lab-page #panel-tonos .lab-reference-content .tone-pair-grid{grid-template-columns:1fr}}
@media(max-width:460px){.pronunciation-lab-page #panel-tonos .lab-reference-content .tone-grid{grid-template-columns:1fr}}

/* Sound models: three roomy cards, with wrapping at every width. */
.pronunciation-lab-page .sound-group .pronunciation-target-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.pronunciation-lab-page .sound-card{min-width:0}
.pronunciation-lab-page .sound-card-head{flex-wrap:wrap;min-width:0}
.pronunciation-lab-page .sound-card-head .btn{max-width:100%;white-space:normal;overflow-wrap:anywhere;min-width:0}
@media(max-width:1000px){.pronunciation-lab-page .sound-group .pronunciation-target-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.pronunciation-lab-page .sound-group .pronunciation-target-grid{grid-template-columns:1fr}}

/* Categorized pinyin tabs, scoped to the sound table. */
.pronunciation-lab-page .sound-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0;padding:6px;background:#eef5f2;border-radius:16px}
.pronunciation-lab-page .sound-tabs button{flex:1 1 140px;border:1px solid transparent;border-radius:12px;background:transparent;color:var(--ink);font:700 .9rem var(--sans, sans-serif);padding:12px 14px;cursor:pointer}
.pronunciation-lab-page .sound-tabs button[aria-selected="true"]{background:var(--ink);color:white}
.pronunciation-lab-page .sound-tabs button:focus-visible{outline:3px solid var(--jade);outline-offset:2px}
.pronunciation-lab-page .sound-browser [hidden]{display:none!important}
.pronunciation-lab-page .sound-grid{grid-template-columns:repeat(3,minmax(0,1fr));padding:0;margin-top:20px}
.pronunciation-lab-page .sound-model-note{font-size:.85rem;line-height:1.5;background:#f3f6f4;border-radius:10px;padding:10px}
@media(max-width:1000px){.pronunciation-lab-page .sound-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.pronunciation-lab-page .sound-grid{grid-template-columns:1fr}}
