.block-catalog{padding:1rem 0}.block-choice{border:1px solid #c8d9d3;border-radius:1rem;padding:1rem;margin:.7rem 0;background:#f6faf8}.block-program{overflow-wrap:anywhere;min-width:0}.block-program textarea{box-sizing:border-box;width:100%;max-width:100%}.block-program button,.block-catalog button{min-height:44px;max-width:100%;white-space:normal}.block-program .task-action-bar{display:flex;flex-wrap:wrap;gap:.5rem}.block-task-list{display:grid;gap:.5rem;margin:1rem 0}.block-review-answer{white-space:pre-wrap;overflow-wrap:anywhere;padding:.7rem;background:#fff;border:1px solid #c8d9d3;border-radius:.5rem}.block-review{margin:1rem 0;padding:.6rem 0;border-top:1px solid #c8d9d3}.block-program .task-help-top{display:flex;flex-wrap:wrap;gap:.4rem}.block-program #block-operation-status:empty{display:none}@media(max-height:650px){.block-program .task-count{margin-top:0}.block-program{padding-top:1rem}.block-program .task-question{font-size:1.4rem}.block-program .feedback{padding:.7rem}}

.block-program button{scroll-margin-block:90px}

/* Keep radio targets touch-sized without inheriting text-input height/padding. */
.block-program .starter-choices label{align-items:center;min-height:44px;padding:8px;margin:4px 0}
.block-program .starter-choices input[type=radio]{min-height:0;width:20px;height:20px;flex:0 0 20px;padding:0;margin:0}
@media(max-width:600px){
 .block-program .task-help-top{margin:8px 0}
 .block-program .task-question{margin-bottom:10px}
 .block-program .task-action-bar{margin-top:8px}
 .block-program .starter-choices{margin-bottom:6px}
}

/* Optional external materials stay below the task and primary actions. */
.school-materials{margin:1rem 0;padding:.75rem;border:1px solid #c8d9d3;border-radius:.7rem;overflow-wrap:anywhere;min-width:0}
.school-materials summary{cursor:pointer;min-height:44px;display:list-item;align-content:center;font-weight:600}
.school-materials ul{list-style:none;padding:0;margin:.5rem 0}
.school-materials li{margin:.7rem 0}
.school-materials a{display:block;padding:.55rem 0;min-height:44px;box-sizing:border-box;color:#175c4d;text-decoration:underline;text-underline-offset:3px}
.school-materials .external-label{font-size:.85em;white-space:nowrap}

/* D085: requested own diagrams and optional, wrapping curriculum context. */
.curriculum-context{margin:1rem 0;padding:.8rem;border:1px solid #c6d9d0;border-radius:12px;overflow-wrap:anywhere}
.curriculum-context summary{cursor:pointer;min-height:44px;display:list-item;align-content:center}
.curriculum-context details{padding:.5rem;border-left:3px solid #c6d9d0}
.math-visual{overflow-wrap:anywhere}
.math-visual svg{display:block;width:100%;max-width:380px;height:auto;color:#183d36;font:17px system-ui,sans-serif}
.place-value{display:flex;flex-wrap:wrap;gap:16px;margin:14px 0}
.ten-rods{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.ten-rod{display:grid;grid-template-columns:repeat(10,12px);max-width:100%}
.ten-rod i,.one-units i{display:block;aspect-ratio:1;border:1px solid #246453;background:#d1e8dc}
.one-units{display:grid;grid-template-columns:repeat(3,12px);gap:5px;margin-top:8px}
.math-visual-alt{font-size:.9em}
.repetition-view { max-width: 55rem; margin-inline: auto; overflow-wrap: anywhere; }
.repetition-view textarea, .repetition-view select { box-sizing: border-box; width: 100%; max-width: 100%; margin-block: .5rem; font: inherit; padding: .7rem; }
.repetition-view h1 { white-space: pre-line; }
.repetition-view audio { max-width: 100%; }
.repetition-view .actions { display: flex; flex-wrap: wrap; align-items: stretch; }
.repetition-view .actions > button { flex: 1 1 16rem; min-width: 0; }
.repetition-view button { min-height: 44px; white-space: normal; overflow-wrap: normal; word-break: normal; }

.repetition-view audio{display:block;max-width:100%;margin-block:1rem;}
