.nav-group{margin:16px 8px 2px;font-size:11px;letter-spacing:1.6px;text-transform:uppercase;color:#8fa89a}
.topics-heading{align-items:center}
.topics-layout{display:grid;grid-template-columns:232px 1fr;gap:26px;align-items:start}
.topics-groups{background:#fff;border:1px solid #e0e5dd;border-radius:18px;padding:18px;position:sticky;top:18px}
.topics-groups h2{font-size:14px;letter-spacing:1.6px;text-transform:uppercase;color:#65746a;margin-bottom:12px}
.topics-group-list{display:grid;gap:4px}
.topics-group-list button{display:flex;justify-content:space-between;align-items:center;gap:8px;text-align:left;padding:9px 11px;border-radius:10px;font-size:14px;line-height:1.35;color:#233b33}
.topics-group-list button:hover{background:#eef2e8}
.topics-group-list button.selected{background:#d9ef97;color:#173f35;font-weight:bold}
.topics-group-count{color:#65746a;font-size:12px;font-variant-numeric:tabular-nums}
.topics-group-list button.selected .topics-group-count{color:#2c4a3c}
.topics-controls{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-end;margin-bottom:10px}
.topics-controls .field{flex:1 1 280px;margin:0}
.topics-controls .quiet{border:1px solid #dde5d5;border-radius:10px;padding:10px 14px;background:#fff;font-size:14px}
.topics-count{margin:0 0 20px;font-size:14px;color:#65746a;font-variant-numeric:tabular-nums}
.topics-section{margin-bottom:30px}
.topics-section h2{display:flex;align-items:baseline;gap:10px;margin-bottom:14px}
.topics-section-count{font-size:14px;letter-spacing:0;font-weight:normal}
.topics-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(258px,1fr));gap:16px}
.topic-card{background:#fff;border:1px solid #e0e5dd;border-radius:16px;padding:18px;display:flex;flex-direction:column;gap:8px}
.topic-card h3{margin:4px 0 0;font-family:inherit;font-size:23px;font-weight:750;line-height:1.25;color:#173f35;overflow-wrap:anywhere}
.topic-card p{margin:0;font-size:15px;color:#4c5e54}
.topic-card button{margin-top:auto;border-radius:10px;padding:10px 14px;font-size:14px;align-self:flex-start}
.topic-card .primary{background:#173f35;color:#edfac3}
.topic-card .secondary{background:#f1f4ec;color:#2c4a3c;border:1px solid #dde5d5}
.topic-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.topic-status{font-size:12px;color:#65746a;text-align:right;line-height:1.35}
.topic-status.is-open{color:#2f6b3f;font-weight:bold}
.topic-open{border-color:#c6dc93;box-shadow:0 1px 0 #e7f2c9}
.topics-empty{background:#fff;border:1px dashed #cbd6c6;border-radius:14px;padding:18px;color:#4c5e54}
.topics-backrow{margin-bottom:6px}
.topic-blank .badge{margin-bottom:10px}
.chapters-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(272px,1fr));gap:16px;margin-top:16px}
.chapter-card{background:#fbfcf8;border:1px solid #e0e5dd;border-radius:16px;padding:18px;display:flex;flex-direction:column;gap:8px}
.chapter-card h3,.chapter-card p{margin:0}
.chapter-card button{margin-top:auto;border-radius:10px;padding:10px 14px;font-size:14px;align-self:flex-start;background:#173f35;color:#edfac3}
.chapters-blank{background:#fff;border:1px dashed #cbd6c6;border-radius:14px;padding:16px;color:#4c5e54;margin:12px 0 0}
.chapter-dialogs{display:grid;grid-template-columns:repeat(auto-fill,minmax(272px,1fr));gap:16px;margin-top:14px}
.chapter-dialog{background:#fbfcf8;border:1px solid #e0e5dd;border-radius:16px;padding:18px;display:flex;flex-direction:column;gap:8px}
.chapter-dialog h3,.chapter-dialog p{margin:0}
.chapter-dialog button{margin-top:auto;align-self:flex-start;border-radius:10px;padding:10px 14px;font-size:14px;background:#173f35;color:#edfac3}
.chapter-words{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.chapter-word{display:flex;flex-direction:column;gap:2px;text-align:left;background:#fff;border:1px solid #dde5d5;border-radius:12px;padding:10px 13px;font-size:15px}
.chapter-word:hover{background:#eef2e8}
.chapter-word .muted{font-size:13px}
.chapter-grammar,.chapter-plan-list{margin:14px 0 0;padding-left:20px;line-height:1.7}
.chapter-plan-list{color:#5d5a4c}
.chapter-planned{background:#fbfaf4;border-color:#e6e0cd}
.lesson-sections{flex-wrap:wrap;gap:10px;margin-top:14px}
.lesson-sections button{border:1px solid #dde5d5;border-radius:10px;padding:10px 14px;font-size:14px;background:#fff;color:#2c4a3c}
.lesson-sections button:hover{background:#eef2e8}
@media(max-width:1100px){.topics-layout{grid-template-columns:186px 1fr;gap:18px}}
@media(max-width:850px){.nav-group{display:none}.topics-layout{grid-template-columns:1fr}.topics-groups{position:static;padding:14px}.topics-group-list{grid-auto-flow:column;grid-auto-columns:max-content;overflow-x:auto;padding-bottom:4px}.topics-group-list button{white-space:nowrap}.topics-grid,.chapters-grid,.chapter-dialogs{grid-template-columns:1fr}}

.topic-cover{display:block;width:calc(100% + 36px);max-width:none;aspect-ratio:4/3;object-fit:contain;background:#f8f5ed;height:auto;margin:-18px -18px 10px;border-radius:16px 16px 0 0}

.topic-card .topic-name-de,.topics-heading .topic-name-de{font-size:16px;line-height:1.4;font-weight:600;color:#37644e;margin:6px 0 12px;overflow-wrap:anywhere}.topic-group-de{display:block;font-size:13px;line-height:1.4;font-weight:400;color:#546a5e;margin-top:4px}.topics-section h2 .topic-group-de{font-size:16px}

.topic-card .topic-name-de{font-size:19px;font-weight:700;line-height:1.35;color:#285540;margin:0 0 10px}.topic-card .topic-name-de + p{font-size:15px;font-weight:400;line-height:1.6;margin-bottom:12px}@media(max-width:600px){.topic-card h3{font-size:22px}.topic-card .topic-name-de{font-size:18px}}
/* Share the six content rows across cards so both title languages align. */
@supports (grid-template-rows:subgrid){
 .topics-grid{column-gap:16px;row-gap:16px}
 .topics-grid>.topic-card{display:grid;grid-row:span 6;grid-template-rows:subgrid;row-gap:8px;min-width:0;align-items:start}
 .topics-grid>.topic-card[hidden]{display:none}
 .topics-grid>.topic-card>.topic-cover{grid-row:1}
 .topics-grid>.topic-card>.topic-card-head{grid-row:2}
 .topics-grid>.topic-card>h3{grid-row:3}
 .topics-grid>.topic-card>.topic-name-de{grid-row:4}
 .topics-grid>.topic-card>.topic-name-de+p{grid-row:5}
 .topics-grid>.topic-card>button{grid-row:6;align-self:end;justify-self:start;margin-top:0}
}
/* Keep both language titles on the same left edge. */
.topics-grid>.topic-card>h3,.topics-grid>.topic-card>.topic-name-de,.topics-grid>.topic-card>.topic-name-de+p{width:100%;text-align:left;justify-self:stretch}
.topics-section>h2,.topics-heading h1,.topics-heading .topic-name-de,.chapter-card h3{text-align:left}
.topics-section>h2{justify-content:flex-start}

/* Center both topic names; keep descriptions left-aligned. */
.topics-grid>.topic-card>h3,.topics-grid>.topic-card>.topic-name-de{text-align:center}

/* Illustrated kitchen chapters: full scene, no cropping of the action. */
.chapter-card{overflow:hidden;min-width:0}.chapter-card .chapter-cover-button{display:block;align-self:stretch;width:calc(100% + 36px);margin:-18px -18px 6px;padding:0;border:0;border-radius:0;background:#eee9df;overflow:hidden}.chapter-cover{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;transition:filter .18s}.chapter-cover-button:hover .chapter-cover{filter:brightness(1.04)}.chapter-cover-button:focus-visible{outline:4px solid #b88325;outline-offset:-4px}.chapter-words{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px}.chapter-word{min-width:0;align-items:center;text-align:center;padding:10px;overflow-wrap:anywhere}.chapter-word-image{width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;border-radius:8px;margin-bottom:7px;background:#faf8f1}.chapter-word:focus-visible{outline:3px solid #b88325;outline-offset:2px}@media(max-width:420px){.chapters-grid{grid-template-columns:minmax(0,1fr)}.chapter-words{grid-template-columns:repeat(2,minmax(0,1fr))}}
