.vocabulary-heading {display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,660px) 280px;align-items:start;gap:12px 20px;margin-bottom:22px}
.vocabulary-heading .bank-filters {grid-column:2;grid-row:1;justify-self:center;max-width:100%}
.vocabulary-heading .search-field {grid-column:3;grid-row:1;width:100%;min-width:0}
.bank-categories {display:flex;flex-wrap:wrap;align-items:center;gap:12px 24px;margin-bottom:20px}
.bank-categories .bank-field {margin:0;min-width:180px;max-width:100%}
.bank-categories [hidden] {display:none}
#bankSearchPages:not([hidden]) {display:inline-flex;align-items:center;gap:0.4rem;direction:ltr}
#categoryStatus {font-size:13px;color:#657186;max-width:580px;line-height:1.6}
.word-option.no-art {grid-template-columns:minmax(0,1fr)}
.word-source {grid-column:1/-1;font-size:11px;color:#657186}
.vocabulary-art-toolbar {display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;min-width:0;min-height:40px;font-size:13px;color:#53627a;flex:1}
.vocabulary-art-toolbar .bank-field {margin:0;max-width:100%}
.vocabulary-art-toolbar #cartoonFilter:not([hidden]) {display:flex;align-items:center;gap:6px}
.word-art-status {grid-column:1/-1;font-size:11px;color:#647580}
.vocabulary-art-toolbar .vocabulary-style-control small {display:none}
.vocabulary-art-toolbar .vocabulary-style-control {flex-direction:row;align-items:center;gap:8px}
.vocabulary-art-toolbar .vocabulary-style-control>span {white-space:nowrap}
.vocabulary-art-toolbar .vocabulary-style-control select {width:12.5em;max-width:100%;height:auto;min-height:40px;line-height:1.5;padding:6px 12px;flex-shrink:0}
html:lang(zh) .vocabulary-art-toolbar .vocabulary-style-control select {width:8em}
.vocabulary-heading .catalog-title {margin:0;flex-wrap:wrap;gap:6px 12px;min-width:0}
#artCoverage {line-height:1.5}
#bankTotal {color:#657186;font-size:14px}
.vocabulary-layout {display:grid;grid-template-columns:180px minmax(0,1fr) 300px;gap:26px;align-items:start}
.topic-sidebar {position:sticky;top:calc(var(--site-header-height,140px) + 16px);min-width:0}
.topic-sidebar::after {content:"";position:absolute;right:0;top:0;bottom:0;width:14px;pointer-events:none;border:1px solid #ffffffdb;border-radius:8px;background:#ffffff50;box-shadow:inset 0 0 5px #fff9,0 1px 5px #345b4d12;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.topic-nav {position:relative;z-index:1;display:flex;flex-direction:column;gap:4px;max-height:max(180px,calc(100dvh - var(--site-header-height,140px) - 112px));overflow-y:scroll;overflow-x:hidden;scrollbar-gutter:stable;padding-right:8px}
.topic-nav::-webkit-scrollbar {width:14px;height:14px}
.topic-nav::-webkit-scrollbar-track {background:#ffffff38;border-radius:8px}
.topic-nav::-webkit-scrollbar-thumb {background:#548b8d99;border:3px solid transparent;background-clip:padding-box;border-radius:8px;min-height:44px}
.topic-nav::-webkit-scrollbar-thumb:hover {background-color:#34787acc}
.topic-nav::-webkit-scrollbar-corner {background:transparent}
@supports not selector(::-webkit-scrollbar) {.topic-nav {scrollbar-width:auto;scrollbar-color:#548b8d99 #ffffff66}}
.topic-nav button {display:flex;align-items:center;gap:10px;border:0;background:transparent;padding:12px 10px;text-align:left;color:#42516a;border-radius:6px;width:100%;font-size:14px;line-height:1.4}
.topic-nav button[aria-pressed="true"] {background:#e5f4f2;color:#127d81;font-weight:700}
.topic-nav button:hover {background:#f0f6fa}
.topic-nav .topic-select-label {display:flex;flex-direction:column;gap:8px;width:100%;min-width:0;color:#53627a;font-size:15px}
.topic-nav .topic-select {box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:6px 12px;border:1px solid #fff;border-radius:26px;background:#ffffffb8;color:#223149;font:inherit;cursor:pointer}
.topic-nav .topic-select[hidden] {display:none}
.topic-menu {width:100%;min-width:0}
.vocabulary-filter-panel .topic-menu summary {height:auto!important;min-height:34px!important;max-height:none!important}
.topic-summary-text {display:block;flex:1;min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.3}
.topic-menu .topic-options {position:static;box-sizing:border-box;width:100%;min-width:100%;max-height:min(50dvh, 360px);margin-top:5px;overflow-y:auto;overflow-x:hidden}
.topic-menu .topic-options button {white-space:normal;overflow-wrap:anywhere}
.topic-nav .topic-options button[aria-pressed="true"] {background:#a8bdb3;color:#183d34;font-weight:700}
.vocabulary-filter-panel .vocabulary-style-options button {white-space:normal;overflow-wrap:anywhere;line-height:1.4}
@media(min-width:901px){.topic-nav .topic-select{height:34px;min-height:34px;font-size:15px}}
.topic-nav svg {flex-shrink:0}
.vocabulary-results-heading,.selection-heading {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px;margin-bottom:16px}
.vocabulary-results h2,.selection-panel h2 {font-size:18px;margin:0;line-height:1.4}
.select-visible {display:flex;align-items:center;gap:6px;font-size:13px;flex-shrink:0}
.vocabulary-main input[type="checkbox"] {width:18px;height:18px;accent-color:#16959f;flex-shrink:0}
.word-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.word-option {position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(76px,46%);align-items:center;min-height:158px;padding:32px 12px 16px;border:1px solid #d5dfe9;border-radius:8px;background:#fff;cursor:pointer;gap:6px;overflow-wrap:anywhere}
.word-details {display:flex;flex-direction:column;gap:7px;min-width:0}
.word-illustration {display:block;box-sizing:border-box;width:100%;height:106px;object-fit:cover;pointer-events:none;user-select:none;border:1px solid #ffffffdf;border-radius:18px;background:#ffffff75;box-shadow:inset 0 1px 1px #fff,0 3px 10px #34494e12;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.word-option:hover {border-color:#91adb8}
.word-option input {z-index:1}
.illustration-credit {margin:32px 0 0;padding-top:18px;border-top:1px solid #e0e8f0;color:#657186;font-size:12px;line-height:1.7}
.illustration-credit a {color:inherit;text-underline-offset:3px}
.word-option:has(input:checked) {border-color:#16959f;background:#f1fbf9;box-shadow:inset 0 0 0 1px #16959f}
.word-option:focus-within {outline:2px solid #0877de;outline-offset:2px}
.word-option input {position:absolute;right:10px;top:10px;margin:0}
.word-text {font-size:30px;line-height:1.3;color:#172337;font-weight:600}
.vocabulary-story-button {display:inline-flex;align-self:flex-start;max-width:100%;padding:0;border:0;background:transparent;text-align:left;cursor:pointer}
.vocabulary-story-button:focus-visible {outline:2px solid #197f89;outline-offset:2px;border-radius:18px}
.vocabulary-story-button:disabled {cursor:progress;opacity:.7}
.listening-story-page-dialog{box-sizing:border-box;width:min(1280px,calc(100vw - 28px));height:calc(100dvh - 36px);max-width:none;max-height:none;padding:0;border:1px solid #bdcec4;border-radius:18px;background:#fff;color:#253e38;overflow:hidden}
.listening-story-page-dialog::backdrop{background:#162c285c}
.listening-story-page-dialog[open]{display:flex;flex-direction:column}
.listening-story-header{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid #d0dbd5;flex:none}
.listening-story-header h2{font-size:20px;margin:0 auto 0 0;overflow-wrap:anywhere}
.listening-story-page-dialog button{font:inherit;cursor:pointer;border:1px solid #bdcec4;border-radius:8px;background:#fff;color:#294b40;min-height:40px;padding:8px 12px}
.listening-story-header button{width:42px;height:42px;padding:10px}
.listening-story-header svg{width:20px;height:20px}
.listening-story-characters{display:flex;gap:8px;flex-wrap:wrap;padding:10px 16px;border-bottom:1px solid #d0dbd5;flex:none}
.listening-story-characters[hidden],.listening-story-load-status[hidden],.listening-story-load-status button[hidden]{display:none!important}
.listening-story-characters [aria-pressed=true]{background:#197f89;color:#fff}
.listening-story-page-content{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.listening-story-page-content>iframe{display:block;width:100%;height:100%;flex:1;min-height:0;border:0;background:#fff}
.listening-story-page-content>p{padding:24px}
.listening-story-load-status{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:#f6faf8;color:#536b61;flex:none}
.listening-story-open{overflow:hidden}
@media(max-width:600px){.listening-story-page-dialog{width:calc(100vw - 16px);height:calc(100dvh - 20px)}.listening-story-header{padding:8px 12px}.listening-story-header h2{font-size:17px}}
.word-pinyin {color:#ad3c3c!important}
.word-meaning {color:#26704d!important}
.word-details [hidden] {display:none!important}
.word-tone-unit {display:inline-flex;flex-direction:column;align-items:center;vertical-align:bottom;line-height:1.2}
.word-tone-badge {display:block;height:20px;line-height:1}
.word-tone-badge svg {display:block;width:12px;height:12px}
.word-option .word-text {display:inline-block;max-width:100%;box-sizing:border-box;padding:3px 7px;border:1px solid #ffffffd9;border-radius:18px;background:#e4f2e9d9;box-shadow:inset 0 1px 1px #fff,0 3px 10px #34494e12;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);overflow-wrap:anywhere}
.word-option:nth-child(4n+2) .word-text {background:#e7eff8d9}
.word-option:nth-child(4n+3) .word-text {background:#f8eee1d9}
.word-option:nth-child(4n) .word-text {background:#f3e9efd9}
.word-pinyin {font-size:14px;color:#61728a;line-height:1.4}
.word-meaning {font-size:14px;color:#2c5d70;line-height:1.45}
.word-swatch {display:inline-block;width:12px;height:12px;border-radius:50%;border:1px solid #8795a4;margin-right:7px;vertical-align:middle}
.selection-panel {position:sticky;top:calc(var(--site-header-height,140px) + 16px);padding-left:24px;border-left:1px solid #e0e8f0;min-width:0}
.selection-panel {max-height:calc(100dvh - var(--site-header-height,140px) - 32px);overflow:auto;padding-right:4px}
.selection-actions {display:grid;gap:10px;margin-bottom:18px;padding-bottom:16px;border-bottom:1px solid #e0e8f0}
.selection-actions>div {display:grid;grid-template-columns:minmax(0,1fr);gap:6px}
.bank-action summary {display:flex;align-items:center;gap:8px;min-height:40px;padding:8px 10px;border:1px solid #ccd8e4;border-radius:4px;background:#fff;cursor:pointer;font-size:13px;list-style:none}
.bank-action summary::-webkit-details-marker {display:none}
.bank-action summary::after {content:'+';margin-left:auto;font-size:18px;line-height:1}
.bank-action[open] summary::after {content:'−'}
.bank-action summary:focus-visible {outline:2px solid #0877de;outline-offset:2px}
.bank-action>div {display:grid;gap:6px;padding-top:6px}
.selection-actions select {width:100%;min-width:0;background:white;border:1px solid #ccd8e4;border-radius:4px;padding:8px;color:#223149}
.selection-actions button {display:flex;align-items:center;justify-content:center;gap:6px;min-height:36px;font-size:13px}
.selection-actions svg {width:16px;height:16px}
#actionStatus {margin:0;font-size:13px;color:#b6474e}
@media(min-width:1151px) and (max-width:1500px) {.word-grid {grid-template-columns:repeat(2,minmax(0,1fr))}}
.bank-icon {display:grid;place-items:center;width:34px;height:34px;padding:7px;border:1px solid #d5dfe9;background:white;border-radius:6px;flex-shrink:0}
.selected-words {display:flex;align-content:flex-start;flex-wrap:wrap;gap:7px;min-height:70px;max-height:210px;overflow:auto;margin-bottom:20px;padding:2px}
.selected-words > p {font-size:14px;color:#738096;margin:4px 0}
.selected-word {display:inline-flex;align-items:center;gap:6px;padding:5px 5px 5px 9px;border-radius:6px;background:#ecf4fa;font-size:16px}
.selected-word button {display:grid;place-items:center;padding:3px;border:0;background:transparent;color:#597087}
.selected-word button svg {width:14px;height:14px}
.bank-field {display:flex;flex-direction:column;gap:8px;margin-bottom:16px;font-size:13px;color:#53627a}
.bank-field select,.bank-field textarea {width:100%;min-width:0;border:1px solid #ccd8e4;border-radius:6px;padding:10px;background:#fff;color:#223149;font:inherit;font-size:14px}
.bank-field textarea {resize:vertical;min-height:120px;line-height:1.7;white-space:pre;overflow:auto}
.bank-copy {display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:44px;background:#16939e!important;border:1px solid #16939e!important;color:white!important;border-radius:6px}
.vocabulary-main button:disabled {opacity:.45;cursor:not-allowed}
.copy-status {font-size:13px;line-height:1.5;min-height:40px;color:#187562;margin:10px 0 0;overflow-wrap:anywhere}
.copy-status[data-error="true"] {color:#b6474e}
#bankEmpty {padding:45px 0;color:#657186}
.bank-mobile-bar {display:none}
.bank-filters {min-width:0}
@media(min-width:901px) {
 .bank-filters[open] {display:flex;align-items:flex-start;gap:12px}
 .bank-filters summary {flex-shrink:0}
}
.bank-filters summary {display:flex;align-items:center;gap:8px;cursor:pointer;min-height:40px;font-size:13px;color:#334f48;list-style:none}
.bank-filters summary::-webkit-details-marker {display:none}
.bank-filters summary svg {width:18px;height:18px}
.bank-filters[open] .vocabulary-art-toolbar {padding-top:0}
.bank-view-options {display:flex;gap:4px;margin-left:auto}
.bank-view-options button[aria-pressed=true] {background:#e5f4f2;border-color:#398578;color:#216c60}
.bank-view-options button {min-width:38px;min-height:38px}
.bank-view-options button span {display:none}
@media(max-width:600px) {.bank-view-options button {display:flex;align-items:center;gap:4px;width:auto;padding:7px;font-size:12px}.bank-view-options button span {display:inline}}
#closeSelection {display:none}
.selection-heading h2 {margin-right:auto}
.word-grid.compact-list {grid-template-columns:1fr}
.compact-list .word-option {min-height:88px;padding:12px 44px 12px 14px;grid-template-columns:minmax(0,1fr) 68px;border-radius:8px}
.compact-list .word-option.no-art {grid-template-columns:minmax(0,1fr)}
.compact-list .word-illustration {height:64px}
.compact-list .word-text {font-size:26px}
.compact-list .word-details {display:grid;grid-template-columns:minmax(100px,1fr) minmax(100px,1fr);gap:4px 12px}
.compact-list .word-meaning {grid-column:2;grid-row:1 / span 2;align-self:center}
.compact-list .word-art-status {display:none}
.compact-list .word-source {font-size:11px}
#selectionDialog {padding:0;border:1px solid #cbdad5;border-radius:8px;width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 32px);color:#22382f;background:#fff}
#selectionDialog::backdrop {background:#172f3859}
#selectionDialog .selection-panel {position:static;display:block;border:0;padding:16px;max-height:none;overflow:visible;width:auto}
#selectionDialog .selection-heading {position:sticky;top:0;background:#fff;padding:8px 0;z-index:1}
#selectionDialog #closeSelection {display:grid}
.bank-dialog-open {overflow:hidden}
@media(min-width:901px) {
 .vocabulary-layout:not(.has-selection) .word-grid:not(.compact-list) {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:1150px) {
 .vocabulary-heading {grid-template-columns:minmax(0,1fr) 280px;gap:16px}
 .vocabulary-heading .bank-filters {grid-column:1/-1;grid-row:2}
 .vocabulary-heading .search-field {grid-column:2}
 .vocabulary-layout {grid-template-columns:145px minmax(0,1fr) 260px;gap:18px}
 .word-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
 .selection-panel {padding-left:16px}
}
@media(max-width:850px) {
 .vocabulary-layout {grid-template-columns:minmax(0,1fr) 260px}
 .topic-sidebar {grid-column:1/-1;position:relative;top:auto;max-width:100%}
 .topic-sidebar::after {top:auto;left:0;width:auto;height:14px}
 .topic-nav {flex-direction:row;overflow-x:scroll;overflow-y:hidden;padding:0 0 8px;max-height:none;scrollbar-gutter:auto}
 .topic-nav button {width:auto;white-space:nowrap;flex-shrink:0}
 .vocabulary-heading {grid-template-columns:minmax(0,1fr);align-items:stretch;gap:16px}
 .vocabulary-art-toolbar {grid-row:auto}
 .vocabulary-heading .search-field {grid-column:1;width:100%;flex:auto}
}
@media(max-width:600px) {
 .vocabulary-main {padding-bottom:95px!important}
 .bank-mobile-bar {position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #d5dfe9;z-index:20}
 .bank-mobile-bar button {min-height:44px}
 .vocabulary-layout {display:flex;flex-direction:column;gap:20px}
 .topic-sidebar,.topic-nav,.vocabulary-results,.selection-panel {width:100%;min-width:0}
 .selection-panel {position:static;border-left:0;border-top:1px solid #e0e8f0;padding:20px 0 0}
 .selection-panel {max-height:none;overflow:visible}
 .word-grid {grid-template-columns:1fr;gap:10px}
 .word-option {min-height:148px;padding:32px 14px 14px;grid-template-columns:minmax(0,1fr) 42%;gap:12px}
 .word-illustration {height:108px}
 .word-text {font-size:28px}
}
@media(max-width:900px) {
 .vocabulary-heading {grid-template-columns:1fr;gap:8px;margin-bottom:12px}
 .vocabulary-heading .search-field {grid-column:1;grid-row:2;width:100%;min-width:0}
 .vocabulary-heading .bank-filters {grid-column:1;grid-row:3;justify-self:stretch}
 .bank-filters[open] .vocabulary-art-toolbar {padding-top:4px}
 #bankTotal {font-size:12px}
 .bank-categories {gap:10px;margin-bottom:12px}
 .bank-categories .bank-field {flex:1;min-width:140px}
 .vocabulary-layout {display:flex;flex-direction:column;gap:12px}
 .topic-sidebar,.vocabulary-results {width:100%}
 .topic-sidebar {position:relative;top:auto}
 .topic-sidebar::after {display:none}
 .topic-nav {flex-direction:row;max-height:none;overflow-x:auto;overflow-y:hidden;padding:0 0 5px;scrollbar-gutter:auto}
 .topic-nav button {width:auto;white-space:nowrap;flex-shrink:0}
 .vocabulary-layout>.selection-panel {display:none}
 .vocabulary-main {padding-bottom:95px!important}
 .bank-mobile-bar {position:fixed;bottom:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #d5dfe9;z-index:20}
 .bank-mobile-bar button {min-height:44px;white-space:normal}
 .bank-mobile-bar .primary {display:flex;align-items:center;justify-content:center;gap:6px;flex:1}
 .bank-mobile-bar svg {width:18px;flex-shrink:0}
 .vocabulary-results-heading {flex-wrap:wrap;gap:8px;margin-bottom:10px}
 .select-visible {font-size:12px}
 .compact-list .word-details {display:flex;gap:3px}
 .compact-list .word-meaning {font-size:13px;align-self:stretch}
 #selectionDialog .selection-actions button {min-height:44px}
}
.resource-tabs { display:flex; gap:8px; border-bottom:1px solid #ceddd6; margin-bottom:16px; }
.resource-tabs button { border:0; border-bottom:3px solid transparent; background:transparent; color:#344f46; padding:10px 16px; font:inherit; cursor:pointer; }
.resource-tabs button[aria-selected="true"] { color:#126b55; border-bottom-color:#126b55; font-weight:700; }
.lesson-resource-list { display:grid; gap:8px; }
.lesson-resource-item { display:flex; align-items:flex-start; gap:12px; padding:14px; border:1px solid #d4e1da; border-radius:6px; background:#fff; }
.lesson-resource-item input { margin-top:5px; }
.lesson-resource-item span { display:grid; gap:6px; }
.lesson-resource-item strong { font-size:1.15rem; }
.lesson-resource-item span span { color:#536a61; }
.lesson-resource-item small { color:#5d716a; font-size:.75rem; }
.vocabulary-results [hidden] { display:none !important; }
.lesson-dialogue { border-left:3px solid #719d8a; padding:0 16px; }
.selection-panel.lesson-selection-active>:not(#lessonSelectionTools){display:none!important}#lessonSelectionTools select{width:100%;min-height:42px;border:1px solid #bdcfc7;border-radius:4px;margin:12px 0;padding:8px;background:white}#lessonSelectionTools .lesson-tools-close{display:none}@media(max-width:750px){#lessonSelectionTools .lesson-tools-close{display:grid}}
#lessonResources .local-preview-audio { display:none !important; }
.selection-actions .bank-action summary{background:#e2f0ed;color:#214e45;border-color:#aacbc0}
.selection-actions .bank-action summary[hidden]{display:none!important}
.selection-actions .bank-action[open] summary{background:#d5eae4;border-color:#7daea0}
.selection-actions .bank-action>div button,.selection-actions #bankListening{background:#197f89;color:#fff;border-color:#197f89}
.selection-actions .bank-action>div button:hover,.selection-actions #bankListening:hover{background:#146b73}
.selection-actions .bank-action>div button:disabled,.selection-actions #bankListening:disabled{opacity:.55}
.selection-actions .bank-action>div .glass-select {width:100%}
.selection-actions .bank-action>div .glass-select .glass-select-trigger {justify-content:space-between;background:#f3f7f6;color:#294d49;border:1px solid #fff;box-shadow:inset 0 1px #fff,0 2px 8px #27464017}
.selection-actions .bank-action>div .glass-select .glass-select-trigger:hover {background:#e7f0ed}
.selection-actions .bank-listening-choice .glass-select {width:100%}
.selection-actions .bank-listening-choice .glass-select-trigger {justify-content:space-between;background:#f3f7f6;color:#294d49;border:1px solid #fff}
.vocabulary-heading{display:block}
.vocabulary-results .resource-tabs{gap:8px;border:0;background:transparent}
.vocabulary-results .resource-tabs button{box-sizing:border-box;min-width:72px;min-height:38px;padding:6px 16px;border:1px solid #ffffffdf;border-radius:22px;background:#ffffff80;color:#253e38;box-shadow:inset 0 1px #fff,0 2px 8px #27464017}
.vocabulary-results .resource-tabs button[aria-selected="true"]{border-color:#197f89;background:#197f89;color:#fff}
.vocabulary-audio-settings{margin-top:16px;padding-top:14px;border-top:1px solid #d0dbd5;color:#53627a}
.vocabulary-audio-settings h2{margin:0 0 10px;font-size:16px}
.vocabulary-audio-settings label{display:flex;flex-direction:column;gap:5px;margin-bottom:9px;font-size:15px}
.vocabulary-audio-settings .glass-select,.vocabulary-audio-settings select{box-sizing:border-box;width:100%;min-width:0}
.vocabulary-audio-settings button{min-height:36px;padding:5px 12px;border:1px solid #b8d0c6;border-radius:18px;background:#ffffffb8;color:#294d49;cursor:pointer}
.vocabulary-audio-settings p{font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.vocabulary-audio-play{display:inline-grid;place-items:center;width:36px;height:36px;min-width:36px;padding:0;border:1px solid #b8d0c6;border-radius:50%;background:#ffffffb8;color:#256451;cursor:pointer}
.vocabulary-audio-play:focus-visible,.vocabulary-audio-settings button:focus-visible{outline:2px solid #197f89;outline-offset:2px}
.vocabulary-listening-dialog{box-sizing:border-box;width:min(1400px,calc(100vw - 24px));height:calc(100dvh - 24px);max-width:none;max-height:none;padding:0;border:1px solid #d0e0d9;border-radius:18px;background:#f4f8f7;color:#253e38;overflow:hidden}
.vocabulary-listening-dialog::backdrop{background:#172d2959}
.vocabulary-listening-dialog[open]{display:flex;flex-direction:column}
.vocabulary-listening-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 16px;border-bottom:1px solid #d0e0d9}
.vocabulary-listening-dialog h2{margin:0;font-size:20px}
.vocabulary-listening-dialog>header button{width:40px;height:40px;border:1px solid #c8d8d1;border-radius:50%;background:#fff;color:#253e38;font-size:24px;cursor:pointer}
.vocabulary-listening-dialog iframe{display:block;flex:1;width:100%;min-height:0;border:0}
.vocabulary-filter-panel>summary{display:none}
.vocabulary-filter-panel .search-field{box-sizing:border-box;width:100%;min-width:0;margin-bottom:12px}
.vocabulary-filter-panel .search-field input{width:100%;min-width:0}
.vocabulary-filter-panel .bank-filters[open]{display:block}
.vocabulary-filter-panel .bank-filters>summary[hidden]{display:none!important}
.vocabulary-filter-panel .vocabulary-art-toolbar{display:flex;flex-direction:column;align-items:stretch;gap:8px}
.vocabulary-filter-panel .vocabulary-style-control{display:flex;flex-direction:column;align-items:stretch}
.vocabulary-filter-panel .vocabulary-style-menu{width:100%}
.vocabulary-filter-panel .bank-categories{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin:12px 0}
.vocabulary-filter-panel .bank-categories .bank-field{min-width:0;width:100%}
.vocabulary-filter-panel :is(.bank-field,.bank-filters summary,.search-field input,.vocabulary-style-menu summary),.topic-nav button{font-size:16px}
.vocabulary-filter-panel .bank-field select{font-size:16px}
.vocabulary-tone-setting{display:flex;align-items:center;gap:8px;color:#53627a;font-size:15px;line-height:1.4}
.vocabulary-tone-setting input{width:18px;height:18px;flex:none;accent-color:#197f89}
.vocabulary-filter-panel :is(.bank-field select,.vocabulary-style-menu summary,.topic-select):focus-visible{outline:3px solid #80b7a0!important;outline-offset:-3px!important}
@media screen and (min-width:901px){
 .vocabulary-filter-panel .bank-field select,.vocabulary-filter-panel .vocabulary-style-menu summary{box-sizing:border-box;width:100%;height:34px!important;min-height:34px!important;max-height:34px;padding:3px 12px;line-height:1.3}
 .vocabulary-filter-panel .bank-categories{gap:7px;margin:9px 0}
 .vocabulary-filter-panel :is(.bank-field,.bank-filters summary,.vocabulary-style-menu summary,.bank-field select),.topic-nav button{font-size:15px}
}
.topic-nav button{line-height:1.5}
@media(min-width:901px){
 .vocabulary-layout,.vocabulary-layout:not(.has-selection),.vocabulary-layout.lesson-tools-active:not(.has-selection){grid-template-columns:230px minmax(0,1fr) 240px}
 .topic-sidebar{height:calc(100dvh - var(--site-header-height,140px) - 32px);max-height:calc(100dvh - var(--site-header-height,140px) - 32px);min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable;scrollbar-width:thin;touch-action:pan-y;padding-right:8px;box-sizing:border-box}
 .topic-sidebar::after{display:none}
 .topic-nav{max-height:none;overflow:visible;padding-right:0}
}
@media(max-width:900px){.vocabulary-filter-panel>summary{display:list-item;cursor:pointer;padding:8px 0;font-weight:650}.vocabulary-filter-panel .bank-categories{flex-direction:row}.vocabulary-filter-panel .bank-categories .bank-field{flex:1;min-width:140px;width:auto}}
.lesson-resource-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:stretch}
.lesson-resource-item{min-width:0;overflow-wrap:anywhere}
.lesson-resource-item strong{font-size:23px;line-height:1.45;color:#243d38}
.lesson-resource-item strong{display:block;padding:5px 8px;border:1px solid #ffffffd9;border-radius:18px;background:#e4f2e9d9;box-shadow:inset 0 1px 1px #fff,0 3px 10px #34494e12;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);overflow-wrap:anywhere}
.lesson-resource-item:nth-child(4n+2) strong{background:#e7eff8d9}
.lesson-resource-item:nth-child(4n+3) strong{background:#f8eee1d9}
.lesson-resource-item:nth-child(4n) strong{background:#f3e9efd9}
.lesson-resource-item span span{font-size:17px;line-height:1.45;color:#245f88}
.bank-dialogue-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:start}
.bank-dialogue-grid .lesson-dialogue{display:flex;flex-direction:column;gap:4px;min-width:0;padding:10px;border:1px solid #fff;border-radius:26px;background:#ffffffaa;box-shadow:0 5px 16px #2b4a4517}
.bank-dialogue-grid .lesson-dialogue h3{margin:0;font-size:16px;overflow-wrap:anywhere}
.bank-dialogue-grid .lesson-dialogue>label{display:flex;align-items:center;gap:6px}
.bank-dialogue-grid .bank-dialogue-line{box-sizing:border-box;width:fit-content;max-width:95%;min-width:0;margin:0;padding:5px 8px;border:1px solid #ffffffd9;border-radius:18px;background:#eaf6efd9;box-shadow:inset 0 1px 1px #fff,0 3px 10px #34494e12;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);overflow-wrap:anywhere;line-height:1.4}
.bank-dialogue-grid .bank-dialogue-line.speaker-1{align-self:flex-end;background:#eef2fad9}
.bank-dialogue-grid .bank-dialogue-line strong{font-size:24px;line-height:1.4}
.bank-dialogue-grid .bank-dialogue-line>span{display:block;font-size:18px;line-height:1.4;color:#526b62}
.bank-role-badge{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:1.45em;height:1.45em;border:2px solid currentColor;border-radius:50%;font-size:.72em;line-height:1;vertical-align:.08em}
.bank-role-badge.role-question{color:#b73139}.bank-role-badge.role-answer{color:#23734e}
@media(max-width:1250px){.lesson-resource-list{grid-template-columns:repeat(3,minmax(0,1fr))}.bank-dialogue-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.lesson-resource-list{grid-template-columns:repeat(2,minmax(0,1fr))}.bank-dialogue-grid{grid-template-columns:1fr}}
@media(max-width:360px){.lesson-resource-list{grid-template-columns:1fr}}
.lesson-selection-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:6px;align-items:stretch}
.lesson-selection-actions .glass-select{width:100%;min-width:0}
.lesson-selection-actions select{margin:0!important;min-width:0}
.lesson-selection-actions .bank-copy{min-width:0;padding:7px 4px;font-size:14px;white-space:normal}
@media(max-width:360px){.lesson-selection-actions{grid-template-columns:1fr}.lesson-selection-actions .glass-select{min-height:44px}}
@media(min-width:901px){.vocabulary-layout.lesson-tools-active,.vocabulary-layout.lesson-tools-active:not(.has-selection){grid-template-columns:230px minmax(0,1fr) 220px}.vocabulary-layout.lesson-tools-active .selection-panel{padding-left:14px}}
@media(min-width:901px){.vocabulary-layout.lesson-tools-active:not(.has-selection){grid-template-columns:230px minmax(0,1fr) 220px}.vocabulary-layout.lesson-tools-active:not(.has-selection)>.selection-panel{display:block}}
@media(min-width:901px){
 .vocabulary-layout,.vocabulary-layout:not(.has-selection),.vocabulary-layout.lesson-tools-active,.vocabulary-layout.lesson-tools-active:not(.has-selection){grid-template-columns:170px minmax(0,1fr) 240px}
 .vocabulary-layout.lesson-tools-active,.vocabulary-layout.lesson-tools-active:not(.has-selection){grid-template-columns:170px minmax(0,1fr) 220px}
}
.lesson-dialogue p { line-height:1.65; }
.lesson-dialogue p>span { display:block; color:#536a61; }
.lesson-dialogue .lesson-stage-direction { color:#5d716a; font-style:italic; font-size:.9rem; }
.lesson-context-note, .lesson-resource-item .lesson-context-note { display:block; margin-top:6px; color:#715522; font-size:.8rem; line-height:1.5; }
.lesson-context-note a { color:#236b5a; }
