.teacher-main { max-width: 1120px; }
.teacher-intro { margin-top: 26px; animation: paper-enter .4s ease-out both; }
.teacher-intro h1 { font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.2; margin-block: 9px 5px; }
.teacher-subtitle { font-weight: 750; font-size: 1.13rem; }
.projector-note { background: #f8e8ca; border: 1px solid #e7d2ac; border-radius: 11px; padding: 8px 13px; margin-top: 14px; }
.teacher-overview { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; gap: 15px; margin-top: 15px; }
.teacher-box { padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.teacher-box h2 { font-size: 1.28rem; margin-bottom: 5px; }
.teacher-box ol { padding-left: 1.4em; margin-block: 9px; }
.teacher-box li { margin-top: 4px; }
.official-reference { margin-top: 5px; font-size: .87rem; }
.class-note { background: #eff2e6; border-radius: 9px; padding: 8px 10px; margin-top: 8px; font-size: .92rem; }
.repeat-examples-title { margin-top: 10px; font-size: 1rem; }
.repeat-examples { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.repeat-examples > div { border-left: 2px solid #b9d0b5; padding: 4px 7px; background: #f6f5eb; font-size: .84rem; }
.repeat-examples dt { font-weight: 750; }
.share-box label { font-size: .85rem; font-weight: 750; }
.share-controls { display: flex; align-items: center; gap: 6px; }
.share-controls input { min-width: 0; }
.share-controls .button { flex: none; white-space: nowrap; }
.qr-area { display: grid; place-items: center; margin-block: 9px; }
.qr-area:empty { display: none; }
.qr-area svg { width: min(204px, 100%); height: auto; }
.share-link { display: block; overflow-wrap: anywhere; margin-block: 8px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.share-status { margin-top: 7px; font-size: .85rem; color: var(--muted); }
.teacher-missions { margin-top: 22px; }
.teacher-toolbar, .teacher-sets { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.teacher-toolbar { justify-content: space-between; margin-bottom: 9px; }
.print-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.print-choice { display: block; margin: 4px 0 10px; font-size: .86rem; color: var(--muted); }
.teacher-sets { margin-bottom: 14px; }
.teacher-sets button[aria-pressed="true"] { background: var(--theme); color: #fffdf4; border-color: var(--theme); }
.sheet-title { font-size: 1.6rem; margin-block: 4px 8px; }
.script-card { margin-bottom: 12px; border: 1px solid var(--line); border-top: 4px solid var(--theme-mid); border-radius: 14px; background: var(--paper); padding: 14px; animation: paper-enter .25s ease-out both; }
.script-card h3 { font-size: 1.18rem; margin-bottom: 7px; }
.sheet-heading { display: flex; align-items: baseline; gap: 8px; justify-content: space-between; }
.sheet-difficulty { color: #845717; white-space: nowrap; }
.sheet-meta { color: var(--muted); font-size: .82rem; }
.sheet-point { margin: 4px 0 8px; }
.script-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.script-caption { font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.script-lines { background: var(--theme-soft); padding: 10px; border-radius: 8px; }
.script-lines p + p { margin-top: 2px; }
.script-lines strong { color: var(--theme-deep); font-weight: 900; }
.answer-table { border-collapse: collapse; width: 100%; }
.answer-table td, .answer-table th { border-bottom: 1px solid #dce1d4; padding: 3px 6px; text-align: left; }
.answer-table th { color: var(--ink); }
.answer-table time { font-variant-numeric: tabular-nums; }
.script-vocab, .sheet-example { margin-top: 7px; font-size: .92rem; }
.print-root { display: none; }
@media (max-width: 695px) {
  .teacher-overview, .script-grid, .repeat-examples { grid-template-columns: 1fr; }
}
@page { size: A4 portrait; margin: 10mm; }
@media print {
  body { background: white; color: black; font-size: 11pt; line-height: 1.34; }
  .site-header, .site-footer, .skip-link, .teacher-main > :not(.print-root) { display: none !important; }
  .teacher-main { width: 100%; }
  .print-root { display: block; }
  .paper-page:not(:last-child) { break-after: page; }
  .paper-heading { border-bottom: 1px solid #555; padding-bottom: 3mm; margin-bottom: 4mm; }
  .paper-heading h2 { font-size: 17pt; }
  .paper-heading p { font-size: 10pt; }
  .script-grid { grid-template-columns: 1.35fr 1fr; gap: 4mm; }
  .script-card { break-inside: avoid; padding: 3mm; border: 1px solid #9c9c9c; border-radius: 0; margin-bottom: 4mm; background: white; animation: none; }
  .script-card h3 { font-size: 13pt; margin-bottom: 2mm; }
  .script-lines { background: white; padding: 1mm 0; }
  .script-grid, .answer-table, .script-lines { break-inside: avoid; }
  .script-caption, .script-vocab { margin-block: 1mm; }
  .answer-table td, .answer-table th { padding: .55mm 1mm; border-color: #aaa; }
  h2, h3, .sheet-meta, .sheet-difficulty, .script-lines strong, .script-caption, .answer-table th { color: black; }
}
