.specialty-upload form,.specialty-filters,.specialty-section-head,.specialty-pagination,.common-mistake-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.specialty-upload form{align-items:flex-end}
.specialty-upload .field{margin:0;flex:1 1 260px;min-width:0}
.specialty-upload input[type=file]{width:100%;padding:8px;max-width:100%}
.specialty-upload .error{flex-basis:100%}
.specialty-batches,.common-mistakes{margin-top:18px}
.specialty-batch-row,.specialty-material,.common-mistake-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:13px 0;border-bottom:1px solid var(--edge);align-items:start}
.specialty-batch-row{grid-template-columns:minmax(0,1fr) auto auto;color:var(--ink)}
.specialty-batch-row:last-child,.specialty-material:last-child,.common-mistake-row:last-child{border-bottom:0}
.specialty-batch-row strong,.specialty-material h3,.common-mistake-row h3{overflow-wrap:anywhere}
.specialty-topics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:18px}
.specialty-totals{color:var(--muted);margin-top:6px;overflow-wrap:anywhere}
.specialty-topics a{display:flex;min-height:62px;flex-direction:column;justify-content:center;gap:3px;padding:8px 12px;border:1px solid var(--edge);border-radius:var(--control-radius);background:var(--surface);color:var(--ink)}
.specialty-topics a[aria-current=page]{border-color:var(--green);background:var(--mint);box-shadow:inset 3px 0 var(--green)}
.specialty-topics small,.specialty-meta,.specialty-section-head p,.specialty-pagination,.common-mistake-row>div>p,.specialty-batch-row span{color:var(--muted)}
.specialty-section-head{justify-content:space-between;margin-bottom:13px}
.specialty-section-head p{font-size:13px}
.specialty-filters{padding:10px 0;border-block:1px solid var(--edge)}
.specialty-filters input[type=search]{flex:1 1 200px;min-width:0}
.specialty-check{display:flex;align-items:center;gap:8px;min-height:40px;cursor:pointer}
html[data-theme] .specialty-check input[type=checkbox]{width:18px;height:18px;min-height:0;margin:0;flex:none;accent-color:var(--green)}
.specialty-material h3,.common-mistake-row h3{font-size:16px;line-height:1.55;margin:4px 0;white-space:pre-line}
.specialty-material details,.common-mistake-row details{font-size:14px;margin-top:6px}
.specialty-material summary,.common-mistake-row summary{cursor:pointer;color:var(--green);width:fit-content}
.specialty-material details p,.common-mistake-row details p{white-space:pre-line;overflow-wrap:anywhere}
.specialty-pagination{justify-content:center;margin-top:12px;font-size:13px}
.common-mistakes{margin-bottom:18px}
.common-mistakes h2{margin-bottom:4px}
.analytics-historical>summary{cursor:pointer;font-weight:700}
.analytics-historical .insight-list{margin-top:12px}
.common-mistake-actions{align-self:center}
.common-recipients{border:1px solid var(--edge);padding:8px 12px;max-height:220px;overflow:auto}
.specialty-question-text{white-space:pre-line;margin-bottom:12px;overflow-wrap:anywhere}
.question-stage h1,.cloze-sentence,.solution-panel p,.answer-feedback p{white-space:pre-line;overflow-wrap:anywhere}
.reteach-actions{display:flex;justify-content:flex-end;margin-top:16px}
.reteach-options,.reteach-match{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 34px;padding:8px 22px;margin:0 auto;font-size:clamp(19px,2.4vw,30px);line-height:1.5}
.reteach-match ul{padding-left:22px}
.reteach-question{margin-bottom:16px}
.reteach-play .reteach-question h1{font-size:clamp(27px,3.4vw,60px);line-height:1.32}
.reteach-play .solution-panel h3{font-size:clamp(22px,2.7vw,40px);line-height:1.4;overflow-wrap:anywhere}
.reteach-play .solution-panel p{font-size:clamp(18px,2.1vw,32px);line-height:1.55}
.reteach-passage{max-width:46em;margin:12px auto 4px;font-size:clamp(19px,2.4vw,30px);line-height:1.6;white-space:pre-line;overflow-wrap:anywhere}
@media(max-width:650px){
  .specialty-batch-row,.specialty-material,.common-mistake-row{grid-template-columns:minmax(0,1fr)}
  .specialty-batch-row>.icon{display:none}
  .specialty-material>.btn{justify-self:start}
  .specialty-topics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .specialty-pagination{justify-content:flex-start}
}
