.library-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:10px 0 20px}.library-heading h2{font-size:24px;margin:4px 0}.source-switch{display:flex;gap:4px;flex-wrap:wrap;align-items:center;padding:5px;border:1px solid var(--line);border-radius:14px;background:#eaf0e9;width:max-content;max-width:100%}.source-switch button{border:0;border-radius:10px;background:transparent;color:var(--ink);padding:9px 16px;min-height:44px;font-size:13px;transition:background .18s,color .18s}.source-switch button[aria-pressed=true]{background:var(--green-dark);color:white;box-shadow:0 2px 5px #143f3614}.reading-source-switch{margin:0 0 23px}.catalog{margin:12px 0 40px;min-width:0}.catalog-intro{display:flex;gap:12px;align-items:center;justify-content:space-between}.catalog-intro p{font-size:14px;color:var(--muted);margin:8px 0 17px}.catalog-filters{display:grid;grid-template-columns:minmax(180px,2fr) repeat(5,minmax(90px,1fr));gap:12px;padding:18px 20px;background:var(--surface);border:1px solid var(--line);border-radius:18px}.catalog-filters label{font-size:12px;display:flex;flex-direction:column;gap:5px;color:var(--muted);min-width:0}.catalog-filters input,.catalog-filters select{width:100%;min-width:0;min-height:45px;margin:0;padding:8px 10px;font-size:13px;background:#fbfcfa;color:var(--ink)}#reading-library .catalog-filters{grid-template-columns:minmax(220px,2fr) repeat(3,minmax(110px,1fr))}.catalog-themes{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 13px}.theme-chip{min-height:44px;padding:7px 14px;border:1px solid var(--line);border-radius:24px;background:#fff;color:var(--muted);font-size:12px;transition:background .2s,border-color .2s}.theme-chip:hover{border-color:#8aad9a;background:#ecf4ed}.theme-chip[aria-pressed=true]{background:var(--mint);border-color:#7cae96;color:var(--green-dark);font-weight:600}.catalog-results-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:44px;margin:2px 0 13px}.catalog-result-count{margin:0;color:var(--muted);font-size:12px}.catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;scroll-margin-top:25px}.catalog-card{border:1px solid var(--line);border-radius:20px;background:#fff;overflow:hidden;min-width:0;display:flex;flex-direction:column;transition:border-color .2s,box-shadow .2s}.catalog-card:hover{border-color:#94b6a3;box-shadow:0 5px 18px #234d3c0a}.catalog-cover{position:relative;height:90px;display:flex;align-items:center;justify-content:center;background:linear-gradient(120deg,#e4f0e7,#f0f6ed);color:#39725d;isolation:isolate}.catalog-cover svg{width:105px;height:67px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.catalog-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1}.catalog-cover:has(img){aspect-ratio:16/9;height:auto}.catalog-cover:has(img) svg{opacity:.18;z-index:-2}.catalog-level{position:absolute;top:12px;right:12px;border-radius:8px;padding:2px 9px;font:600 13px/1.8 'Segoe UI',sans-serif;background:#fffffff2;color:var(--green-dark);border:1px solid #d6e1d8;z-index:1}.catalog-duration{position:absolute;bottom:10px;left:10px;background:#152d28eb;border-radius:6px;padding:1px 8px;color:white;font:12px/1.7 'Segoe UI',sans-serif;direction:ltr}.catalog-length{position:absolute;top:14px;left:14px;color:#3b6050;font-size:11px}.catalog-card-body{padding:19px 20px;display:flex;flex-direction:column;flex:1;min-width:0}.catalog-card-meta{font-size:11px;color:var(--muted);margin-bottom:8px;overflow-wrap:anywhere}.catalog-card h3{font-size:18px;margin:0 0 8px;line-height:1.7;font-weight:650}.catalog-original{font:12px/1.6 'Segoe UI',sans-serif;color:var(--muted);margin:0 0 10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.catalog-description{font-size:13px;margin:4px 0 12px;color:#39584d;line-height:1.9}.catalog-goals{display:flex;gap:5px;flex-wrap:wrap;margin:5px 0 8px}.catalog-goals span{font-size:10px;line-height:1.8;color:#37624f;background:#edf5ee;border-radius:6px;padding:3px 7px}.catalog-focus{font-size:12px;color:var(--muted);line-height:1.9;margin:9px 0 18px}.catalog-card-actions{margin-top:auto;display:flex;align-items:center;gap:10px;padding-top:5px}.catalog-card-actions .primary{flex:1;min-width:0;font-size:12px;padding:10px 9px}.catalog-card-actions .text-button{font-size:11px;white-space:nowrap;min-height:44px}.catalog-excerpt{font:17px/1.7 Georgia,serif;color:#29443b;margin:4px 0 13px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.catalog-vocabulary{display:flex;gap:6px;flex-wrap:wrap;margin:7px 0 3px}.vocabulary-item{display:inline-flex;gap:6px;align-items:baseline;flex-wrap:wrap;border:1px solid #e1e8dd;border-radius:7px;padding:3px 7px;font-size:10px;color:var(--muted)}.vocabulary-item b{font:500 12px/1.7 'Segoe UI',sans-serif;color:var(--ink)}.catalog-empty{padding:35px 20px;text-align:center;border:1px dashed #abc2b2;border-radius:20px;background:#fbfdf9}.catalog-empty svg{width:90px;height:65px;fill:none;stroke:#658775;stroke-width:1.7}.catalog-empty h3{font-size:18px;margin:10px 0}.catalog-empty p{color:var(--muted);font-size:13px}.catalog-empty button{margin:6px}.catalog-pagination{display:flex;gap:22px;align-items:center;justify-content:center;margin:28px 0 18px}.catalog-pagination span{font-size:12px;color:var(--muted)}.catalog-pagination button{font-size:12px;min-width:110px}.catalog-footnote{font-size:11px;color:var(--muted);line-height:2;margin:20px 0}.catalog-preview{max-width:720px;width:calc(100% - 36px)}#catalog-preview-text{font:21px/1.9 Georgia,serif;white-space:pre-wrap;color:var(--ink);margin:25px 0}#catalog-preview-focus{font-size:13px;border-right:3px solid #8ab29a;padding-right:12px}#catalog-preview-vocabulary{margin:15px 0}#catalog-preview-vocabulary .vocabulary-item{font-size:12px}#catalog-preview-vocabulary b{font-size:14px}.template-info{margin:0 0 20px;padding:17px 21px;background:#e7f2e8;border:1px solid #bfd7c4;border-radius:15px;color:#295440}.template-info strong{font-size:15px}.template-info p{font-size:13px;margin:5px 0}.template-info .small{display:block;font-size:11px;color:#476b57}.lesson-loading{padding:13px 18px;border-radius:12px;background:var(--mint);display:flex;gap:15px;align-items:center;justify-content:space-between;font-size:13px;margin:15px 0}#video-policy-host .policy-options{margin:0 0 12px;border:0;background:transparent}#video-policy-host .policy-options>summary{font-size:12px;color:var(--muted)}#video-policy-host .policy-options[open]{background:#fff;padding:15px 20px;border:1px solid var(--line);border-radius:15px}#video-picker .welcome{margin-top:15px}.catalog-card[data-theme=work] .catalog-cover{background:linear-gradient(120deg,#e4eceb,#f0f5f3)}.catalog-card[data-theme=travel] .catalog-cover{background:linear-gradient(120deg,#edf0de,#f6f7ec)}.catalog-card[data-theme=technology] .catalog-cover,.catalog-card[data-theme=science] .catalog-cover{background:linear-gradient(120deg,#e4edf0,#f0f6f6);color:#476c75}.catalog-card[data-theme=culture] .catalog-cover{background:linear-gradient(120deg,#f0e8df,#f9f5ed);color:#856d50}.catalog-card[data-theme=money] .catalog-cover{background:linear-gradient(120deg,#eeeadd,#f9f6eb);color:#786b42}
@media(max-width:1280px){.catalog-filters{grid-template-columns:repeat(5,minmax(0,1fr))}.catalog-search{grid-column:1/-1}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.library-heading{align-items:start}.library-heading h2{font-size:22px}.catalog-card-body{padding:18px}}
@media(min-width:1580px){.catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1000px){.library-heading{flex-direction:column;gap:12px}.catalog-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.catalog-search{grid-column:1/-1}.catalog-filters label:last-child{grid-column:auto}#reading-library .catalog-filters{grid-template-columns:repeat(3,minmax(0,1fr))}#reading-library .catalog-search{grid-column:1/-1}.catalog-grid{gap:16px}.catalog-card-actions{flex-wrap:wrap}.catalog-card-actions .primary{flex-basis:100%}.catalog-card-actions .text-button{margin-inline-start:auto}}
@media(max-width:720px){.library-heading{margin:0 0 15px}.library-heading h2{font-size:20px}.source-switch{width:100%;flex-wrap:nowrap}.source-switch button{flex:1;padding:9px 10px;font-size:12px}.catalog-intro p{font-size:12px;margin:8px 0 13px}.catalog-filters{padding:14px;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}#reading-library .catalog-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-filters label:last-child{grid-column:1/-1}.catalog-filters label{font-size:11px}.catalog-filters input,.catalog-filters select{font-size:12px}.catalog-grid{grid-template-columns:minmax(0,1fr);gap:17px}.catalog-themes{gap:6px}.theme-chip{padding:6px 11px;font-size:11px}.catalog-card-body{padding:18px}.catalog-card h3{font-size:18px}.catalog-card-actions{flex-wrap:nowrap}.catalog-card-actions .primary{flex-basis:auto;font-size:13px}.catalog-card-actions .text-button{margin:0}.catalog-description{font-size:13px}.catalog-result-count{font-size:11px}.catalog-pagination{gap:12px}.catalog-pagination button{min-width:95px;padding:9px 13px}.catalog-preview{padding:20px}#catalog-preview-text{font-size:19px}.template-info{padding:15px}.lesson-loading{align-items:start;flex-direction:column;gap:5px}.catalog-preview .dialog-heading h2{font-size:18px}.reading-source-switch{margin-top:0}.reading-page .section-heading h2{margin-bottom:10px}}
.catalog-cover img{z-index:0}.catalog-cover:has(img) svg{z-index:0;opacity:1}.catalog-cover.has-thumbnail svg{opacity:0}.catalog-duration{z-index:2}
.catalog-more-filters,.catalog-more-grid{display:contents}.catalog-more-filters>summary,.catalog-theme-group>summary{display:none}.catalog-theme-group{margin:0;border:0;padding:0}#catalog-preview .dialog-heading{position:sticky;top:-1px;background:#fff;z-index:3;padding:4px 0 12px}
@media(max-width:720px){.catalog-more-filters{display:block;grid-column:1/-1}.catalog-more-filters>summary,.catalog-theme-group>summary{display:list-item;min-height:44px;padding:9px 11px;font-size:12px;color:var(--muted);cursor:pointer}.catalog-more-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-top:9px}.catalog-theme-group{background:#fff;border:1px solid var(--line);border-radius:12px;margin:12px 0;padding:0 12px}.catalog-theme-group .catalog-themes{margin:5px 0 12px}.catalog-more-filters>summary{padding:6px 1px}.catalog-filters{row-gap:8px}#catalog-preview .dialog-heading{top:-20px}}
@media(prefers-reduced-motion:reduce){.catalog-card,.source-switch button,.theme-chip{transition:none}}
