.study-tools{display:grid;grid-template-columns:1fr;gap:18px;margin:28px 0}.study-tool{border:1px solid #dce4d2;border-radius:18px;background:#fffdf7;padding:22px;color:#405d49;text-decoration:none;display:flex;flex-direction:column;gap:9px}.study-tool strong{font-size:19px}.study-tool small{line-height:1.7;color:#748369}.study-tool:hover{border-color:#789675}.mode-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mode-card{min-width:0}.cards-heading h1{font-size:clamp(26px,5vw,38px);margin:18px 0}.cards-heading p{line-height:1.8;color:#748369}#cards-view{max-width:900px;margin:auto}.cards-toolbar,.cards-actions{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin:24px 0}.cards-toolbar label{display:flex;align-items:center;gap:10px;font-size:13px}.cards-toolbar select,.cards-toolbar input{min-width:0;max-width:100%;padding:10px;border:1px solid #dce4d2;border-radius:9px;background:#fffdf7;color:inherit;font:inherit}.flashcard{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;width:100%;min-height:330px;padding:32px;background:#fffdf7;border:1px solid #dce4d2;border-radius:24px;color:#3c5d48;box-shadow:0 12px 32px #4b684509;font:inherit}.flashcard strong{font-size:clamp(25px,5vw,44px);line-height:1.4;overflow-wrap:anywhere;max-width:100%}.card-language,.card-flip-hint{font-size:12px;color:#809172}.card-phonetic{font-size:18px}#card-answer{font-size:24px;line-height:1.6;overflow-wrap:anywhere}#card-answer small{display:block;font-size:17px}.cards-empty{padding:36px 20px;text-align:center;background:#fffdf7;border:1px dashed #dce4d2;border-radius:18px;line-height:1.9}.cards-empty a,.cards-empty button{display:inline-block;margin:8px}.cards-status{min-height:24px;text-align:center;color:#9b6149}.notebook-row{display:flex;gap:20px;justify-content:space-between;align-items:center;border-bottom:1px solid #dce4d2;padding:20px 4px}.notebook-row>div{min-width:0}.notebook-row strong,.notebook-row span,.notebook-row small{display:block;overflow-wrap:anywhere;line-height:1.8}.notebook-row strong{font-size:20px}.notebook-row small{color:#748369}.notebook-row button{flex-shrink:0}#cards-view button:disabled{opacity:.45;cursor:default}#cards-view button:focus-visible,.study-tool:focus-visible{outline:3px solid #789675;outline-offset:4px}@media(max-width:900px){.mode-grid{grid-template-columns:1fr}}@media(max-width:600px){.study-tools{grid-template-columns:1fr}.flashcard{min-height:300px;padding:24px 16px}.cards-toolbar label{flex-wrap:wrap}.cards-toolbar input{width:190px}.notebook-row{gap:8px}.cards-actions button{padding:12px}.cards-heading p{font-size:14px}}

.cards-toolbar .secondary-button,.cards-actions .secondary-button,.cards-actions .primary-button{width:auto;margin:0}.notebook-row .secondary-button{width:auto;margin:0}.cards-toolbar .secondary-button{padding:11px 18px}@media(max-width:600px){.cards-toolbar{gap:10px;margin:18px 0}.cards-toolbar .secondary-button{flex:1 1 40%}.flashcard{min-height:260px}}
