.poc-title { display: inline-block; margin-left: 0.5rem; color: #217a70; font-size: 0.65em; vertical-align: middle; }
.listening-poc-card { overflow: visible; }
.listening-poc-card h2 { margin: 0 0 0.4rem; font-size: 1.35rem; }
.listening-poc-card .listening-intro { margin: 0 0 1rem; }
.listening-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, 16rem); align-items: start; gap: 1.5rem; }
.listening-passage p { margin: 0.35rem 0; line-height: 2; }
.listening-answer { position: relative; display: inline-block; width: 7.5rem; max-width: 100%; margin: 0 0.2rem; vertical-align: middle; }
.listening-blank { display: block; box-sizing: border-box; width: 100%; max-width: 100%; margin: 0; padding: 0.1rem 1.5rem 0.1rem 0.35rem; border: 0; border-bottom: 2px solid #217a70; border-radius: 3px 3px 0 0; text-align: left; cursor: pointer; }
.listening-blank.is-active { outline: 2px solid #e5a33c; outline-offset: 2px; }
.word-bank { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; padding: 1rem; border: 1px solid #d8d8d0; border-top: 4px solid #217a70; border-radius: 6px; background: #fff; box-shadow: 0 5px 18px -10px #808080; }
.word-bank h3 { margin: 0 0 0.75rem; font-size: 1rem; }
.word-bank-list { display: grid; grid-template-columns: 1fr; gap: 0.4rem; }
.word-choice { width: 100%; min-height: 2.25rem; padding: 0.35rem 0.6rem; border: 1px solid #c9d5d2; border-radius: 4px; background: #f5f8f6; color: #303a38; text-align: left; cursor: pointer; }
.word-choice:hover:not(:disabled), .word-choice:focus-visible { border-color: #217a70; background: #e8f2ef; }
.word-choice:disabled { color: #66736f; text-decoration: line-through; text-decoration-thickness: 2px; opacity: 0.65; cursor: default; }
.listening-reset, .matching-reset { display: block; min-width: 6rem; margin: 1rem 0 0 auto; padding: 0.5rem 0.9rem; border: 1px solid #777; border-radius: 4px; background: #fff; color: #333; cursor: pointer; }
.tf-choice { display: flex; gap: 0.4rem; min-inline-size: 0; margin: 0.4rem 0 0; padding: 0; border: 0; }
.tf-choice legend { float: left; width: auto; margin: 0; padding: 0; }
.tf-choice label { position: relative; margin: 0; cursor: pointer; }
.tf-choice input { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; }
.tf-choice label span { display: inline-flex; min-width: 4.2rem; min-height: 2.25rem; align-items: center; justify-content: center; padding: 0.4rem 0.75rem; border: 1px solid #aab8b4; border-radius: 4px; background: #f5f8f6; color: #303a38; }
.tf-choice input:checked + span { border-color: #217a70; background: #217a70; color: #fff; }
.tf-choice input:focus-visible + span { outline: 2px solid #e5a33c; outline-offset: 2px; }
.true-false-card li { margin-bottom: 0.85rem; line-height: 1.45; }
.true-false-card .tf-choice { width: max-content; max-width: 100%; }
.tf-correction:not([hidden]) { display: grid; gap: 0.35rem; margin-top: 0.55rem; }
.tf-correction textarea { box-sizing: border-box; width: 100%; height: 2.4rem; min-height: 2.4rem; padding: 0.3rem 0.5rem; border: 1px solid #aab8b4; border-radius: 4px; background: #fff; color: #303a38; font: inherit; resize: vertical; }
.tf-correction textarea:focus-visible { outline: 2px solid #e5a33c; outline-offset: 2px; }
.body-dark-mode .word-bank { border-color: #555; background: #1a1a1a; }
.body-dark-mode .word-choice, .body-dark-mode .listening-reset, .body-dark-mode .matching-reset { border-color: #666; background: #272727; color: #f4e8d3; }
.body-dark-mode .word-choice:hover:not(:disabled), .body-dark-mode .word-choice:focus-visible { background: #354440; }
.body-dark-mode .listening-blank { color: #f4e8d3; }
.body-dark-mode .tf-choice label span { border-color: #666; background: #272727; color: #f4e8d3; }
.body-dark-mode .tf-choice input:checked + span { border-color: #327e72; background: #327e72; color: #fff; }
.body-dark-mode .tf-correction textarea { border-color: #666; background: #272727; color: #f4e8d3; }
.matching-game { display: grid; grid-template-columns: minmax(10rem, 0.8fr) minmax(0, 1.5fr); align-items: start; gap: 1.25rem; }
.matching-section h3 { margin: 0 0 0.65rem; font-size: 1rem; }
.matching-options { display: grid; gap: 0.5rem; }
.matching-choice { width: 100%; min-height: 3.25rem; padding: 0.55rem 0.75rem; border: 1px solid #c9d5d2; border-radius: 4px; background: #f5f8f6; color: #303a38; font: inherit; text-align: left; cursor: pointer; }
.matching-words .matching-choice { display: grid; grid-template-columns: minmax(0, 1fr) 1.8rem; align-items: center; box-sizing: border-box; height: 3.25rem; min-height: 3.25rem; text-align: left; }
.matching-word-label { min-width: 0; overflow-wrap: anywhere; }
.matching-answer { display: flex; width: 1.8rem; min-width: 1.8rem; height: 1.8rem; align-items: center; justify-content: center; padding: 0.15rem; border-radius: 3px; background: #e8f2ef; color: #217a70; font-weight: 700; text-align: center; }
.matching-choice:hover:not(:disabled), .matching-choice:focus-visible { border-color: #217a70; background: #e8f2ef; }
.matching-choice.is-selected { border-color: #217a70; background: #217a70; color: #fff; }
.matching-choice.has-assignment { border-color: #d3dfda; background: #e8f0ec; color: #43514b; }
.matching-choice.has-assignment:hover:not(:disabled), .matching-choice.has-assignment:focus-visible { background: #e8f0ec; }
.matching-feedback { min-height: 1.5rem; margin: 0.8rem 0 0; font-size: 0.9rem; }
.body-dark-mode .matching-choice { border-color: #666; background: #272727; color: #f4e8d3; }
.body-dark-mode .matching-choice:hover:not(:disabled), .body-dark-mode .matching-choice:focus-visible { background: #354440; }
.body-dark-mode .matching-choice.is-selected { border-color: #327e72; background: #327e72; color: #fff; }
.body-dark-mode .matching-choice.has-assignment { border-color: #52615b; background: #333f3b; color: #e0e8e4; }
.body-dark-mode .matching-choice.has-assignment:hover:not(:disabled), .body-dark-mode .matching-choice.has-assignment:focus-visible { background: #333f3b; }
.body-dark-mode .matching-answer { background: #253a34; color: #b3d8cb; }
.completion-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(12rem, 16rem); align-items: start; gap: 1.25rem; }
.completion-sentences ol { padding-left: 1.5rem; }
.completion-sentences li { margin-bottom: 0.75rem; line-height: 1.7; }
.completion-answer { position: relative; display: inline-block; width: 7.5rem; max-width: 100%; margin: 0 0.2rem; vertical-align: middle; }
.completion-blank { display: block; box-sizing: border-box; width: 100%; max-width: 100%; margin: 0; padding: 0.1rem 1.5rem 0.1rem 0.35rem; border: 0; border-bottom: 2px solid #217a70; border-radius: 3px 3px 0 0; text-align: left; }
.answer-clear { position: absolute; top: 50%; right: 0.15rem; display: inline-flex; width: 1.25rem; height: 1.25rem; align-items: center; justify-content: center; padding: 0; transform: translateY(-50%); border: 1px solid #c9d5d2; border-radius: 3px; background: #f5f8f6; color: #53645d; font: inherit; font-size: 0.85rem; line-height: 1; cursor: pointer; }
.answer-clear:hover, .answer-clear:focus-visible { border-color: #8da59b; background: #e8f2ef; color: #217a70; }
.answer-clear[hidden] { display: none; }
.completion-bank { position: sticky; top: 1rem; padding: 1rem; border: 1px solid #d8d8d0; border-top: 4px solid #217a70; border-radius: 6px; background: #fff; box-shadow: 0 5px 18px -10px #808080; }
.completion-bank h3 { margin: 0 0 0.75rem; font-size: 1rem; }
.completion-word-list { display: grid; grid-template-columns: 1fr; gap: 0.4rem; }
.body-dark-mode .completion-bank { border-color: #555; background: #1a1a1a; }
.body-dark-mode .completion-blank { color: #f4e8d3; }
.body-dark-mode .answer-clear { border-color: #66766f; background: #272f2c; color: #d2ddd8; }
.body-dark-mode .answer-clear:hover, .body-dark-mode .answer-clear:focus-visible { border-color: #8da59b; background: #354440; color: #a8d5c1; }
@media (max-width: 700px) {
    .title { height: auto; min-height: 5rem; padding: 0.6rem 0.75rem; font-size: 1.2rem; }
    .title-row { display: flex; align-items: center; gap: 0.5rem; }
    .title-col-left { float: none; width: auto; flex: 1; min-width: 0; }
    .title-col-right { float: none; width: auto; flex: 0 0 auto; text-align: right; }
    .title-col-right .btn-dark-mode { width: 7rem; font-size: 0.8em; }
    .poc-title { display: block; margin: 0.2rem 0 0; font-size: 0.72em; }
    .listening-layout { grid-template-columns: 1fr; gap: 1rem; }
    .word-bank { position: sticky; top: 0.5rem; z-index: 5; display: flex; flex-direction: column; box-sizing: border-box; max-height: 38vh; overflow: hidden; order: -1; }
    .word-bank-list { grid-template-columns: repeat(3, minmax(0, 1fr)); order: 3; flex: 1 1 auto; min-height: 0; margin-top: 0.5rem; overflow-y: auto; align-content: start; }
    .word-choice { padding: 0.3rem 0.2rem; font-size: 0.82rem; text-align: center; }
    .listening-answer { width: 5.8rem; }
    .matching-game { grid-template-columns: 1fr; gap: 1rem; }
    .matching-words .matching-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .completion-layout { grid-template-columns: 1fr; gap: 1rem; }
    .completion-bank { position: static; order: -1; }
    .completion-word-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .completion-answer { width: 6.5rem; }
}
@media (max-width: 360px) {
    .word-bank-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .word-choice { padding: 0.35rem 0.4rem; font-size: 0.9rem; text-align: left; }
}

.lesson-actions { display: flex; justify-content: flex-end; margin: 0.5rem 0; }
.print-lesson-button { padding: 0.45rem 0.75rem; border: 1px solid #74847d; border-radius: 4px; background: #fff; color: #303a38; cursor: pointer; }
.print-lesson-button:hover, .print-lesson-button:focus-visible { border-color: #217a70; background: #e8f2ef; }
.body-dark-mode .print-lesson-button { border-color: #666; background: #272727; color: #f4e8d3; }

@media print {
    @page { margin: 0.55in; }
    body { background: #fff !important; color: #111 !important; font-size: 10.5pt; }
    .container { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
    .lesson-actions, .title-col-right, .poc-title, .room-btw-cards, #cookieNotice,
    .btn-dark-mode, .word-bank, .completion-bank, .answer-clear, .listening-reset, .matching-reset {
        display: none !important;
    }
    .title { height: auto !important; padding: 0 0 0.15in !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 18pt !important; }
    .title-row { display: block !important; }
    .title-col-left { float: none !important; width: auto !important; }
    .card { margin: 0 0 0.2in !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; color: #111 !important; }
    .listening-passage p { line-height: 1.5; }
    .listening-blank, .completion-blank { color: #111 !important; background: transparent !important; }
    .true-false-card li, .completion-sentences li, .matching-section { break-inside: avoid; page-break-inside: avoid; }
    .tf-choice input { position: static !important; width: auto !important; height: auto !important; overflow: visible !important; clip: auto !important; clip-path: none !important; }
    .tf-choice label span { min-width: 0 !important; min-height: 0 !important; padding: 0 0.05in !important; border: 0 !important; background: transparent !important; color: #111 !important; }
    .tf-correction textarea { background: transparent !important; color: #111 !important; }
    .matching-game { grid-template-columns: minmax(1.5in, 0.8fr) minmax(0, 1.5fr); }
    .matching-choice { min-height: 0 !important; padding: 0.04in 0 !important; border: 0 !important; background: transparent !important; color: #111 !important; }
    .matching-choice.is-selected, .matching-choice.has-assignment { border: 0 !important; background: transparent !important; color: #111 !important; }
    .matching-feedback { display: none !important; }
}
.source-note { display: inline-block; margin-top: 0.25rem; font-size: 0.85rem; font-weight: 400; }
