.teacher-rehearsal{min-width:0}
.rehearsal-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:10px}
.rehearsal-heading h1{font-size:1.4rem;line-height:1.3;margin:4px 0;overflow-wrap:anywhere}
.rehearsal-heading p{margin:4px 0;color:var(--muted,#5b6861);font-size:.8rem}
.rehearsal-heading .rehearsal-label{color:var(--green,#16804c);font-weight:700;font-size:.84rem}
.rehearsal-heading>button{flex:none}
.rehearsal-private{display:flex;flex-wrap:wrap;gap:4px 14px;background:var(--green-light,#eff8f2);border:1px solid #9bbc9f;border-radius:9px;padding:8px 12px;margin-bottom:12px;font-size:.76rem}
.rehearsal-private strong{color:var(--green,#16804c)}
.rehearsal-private span{color:var(--muted,#5b6861)}
.rehearsal-actions{display:flex;gap:10px;flex-wrap:wrap;margin:0}
.rehearsal-actions button{white-space:normal}
.rehearsal-columns{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(260px,1fr);gap:16px;align-items:stretch}
.rehearsal-panel{min-width:0;overflow:hidden;border:1px solid var(--line,#d6dfd4);border-radius:12px;background:var(--paper,#fff)}
.rehearsal-panel>h2,.rehearsal-sheet>header{padding:13px 15px;margin:0;border-bottom:1px solid var(--line,#d6dfd4)}
.rehearsal-panel h2{font-size:.9rem;line-height:1.4;margin:0}
.rehearsal-drawing-tools{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.rehearsal-drawing-tools button{padding:6px 9px;min-height:36px;font-size:.75rem}
.rehearsal-drawing-tools [aria-pressed=true]{background:var(--green-light,#eff8f2);border-color:var(--green,#16804c);color:var(--green,#16804c)}
.teacher-rehearsal [data-rehearsal-frame]{height:650px;min-height:460px}
.rehearsal-sheet{display:flex;flex-direction:column}
.teacher-rehearsal [data-rehearsal-drawing]{flex:1;min-height:480px;height:auto;position:relative;background-color:#fff;background-image:linear-gradient(#e9eee8 1px,transparent 1px),linear-gradient(90deg,#e9eee8 1px,transparent 1px);background-size:24px 24px}
.teacher-rehearsal [data-rehearsal-drawing] canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none}
.rehearsal-footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}
.rehearsal-footer>p{font-size:.8rem;color:var(--muted,#5b6861);flex-basis:100%;margin:0}
.rehearsal-footer button{font-size:.8rem;white-space:normal}
.rehearsal-details{flex-basis:100%;font-size:.8rem;color:var(--muted,#5b6861)}
.rehearsal-details summary{cursor:pointer;padding:7px 0}
.rehearsal-details p{margin:7px 0;line-height:1.5}
.rehearsal-error{color:#a52626!important}
.rehearsal-loading{padding:40px 20px;text-align:center;color:var(--green,#16804c)}
@media(max-width:1100px){.rehearsal-columns{grid-template-columns:minmax(0,1fr)}.teacher-rehearsal [data-rehearsal-drawing]{height:400px;min-height:400px;flex:auto}}
@media(max-width:600px){.rehearsal-heading{gap:8px;flex-wrap:wrap}.rehearsal-heading h1{font-size:1.2rem}.rehearsal-heading>button{min-height:36px;padding:5px 10px;font-size:.76rem}.rehearsal-actions{gap:7px}.rehearsal-actions button{width:100%;font-size:.82rem}.teacher-rehearsal [data-rehearsal-frame]{height:650px}.rehearsal-footer{align-items:stretch}.rehearsal-footer button{width:100%}}
@media(max-width:760px){.rehearsal-heading{flex-wrap:nowrap;gap:8px}.rehearsal-heading>div{min-width:0}.rehearsal-heading h1{font-size:1.15rem;line-height:1.25}.rehearsal-heading>button{font-size:.72rem;min-height:36px;padding:5px 8px}.rehearsal-private{padding:7px 9px;margin-bottom:10px}.rehearsal-panel>h2{padding:8px 12px}}
