.nav-count{width:auto!important;min-width:21px;height:21px;padding:0 5px;display:inline-grid;place-items:center;margin-left:auto;border-radius:6px;background:#d9a851;color:#173249;font-size:12px!important;font-weight:800}
.nav-count:empty{display:none}
.question-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:22px}
.question-heading .question{min-width:0;margin:0}
.help-trigger{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:11px;border:1px solid #efd5a6;background:#fff8eb;color:#79501d}
.help-icon{display:block;width:30px;height:30px;object-fit:contain}
.help-icon[hidden],.help-icon-fallback[hidden]{display:none}
.help-trigger .help-icon-fallback{font-size:25px;line-height:1}
.help-trigger:hover:not(:disabled){background:#fff0d5}
.help-trigger:disabled{opacity:.55;cursor:default}
.help-feedback{background:#fff7e7;color:#75521c}
.feedback.near{background:#fff8e9;color:#79551f}
.near-detail{margin-top:12px;border-top:1px solid #eadbbf;padding-top:11px}
.near-detail>strong{display:block;font-size:14px}
.near-letters{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:9px;font-weight:700}
.near-letters mark{padding:1px 3px;border-radius:4px}
.near-char-wrong{background:#ffe4dc;color:#903e2c}
.near-char-right{background:#d3f2e8;color:#075e53}
.near-readings{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:9px}
.near-readings span{display:block}
.near-readings b{font-weight:800;color:#4f6471}
.near-detail small{opacity:1;color:#76582c}
.dictation-tools{margin:0 0 14px}
.dictation-tools .pronunciation-button{font-size:15px;padding:11px 15px}
.dictation-tools .hint-die{display:inline-grid;place-items:center;padding:10px;width:45px;height:45px;color:#805a16;background:#fff7e8;border-color:#ecd9b2}
.dictation-tools .hint-die:hover:not(:disabled){background:#ffebc3;border-color:#d6ac63}
.hint-rules{margin:-5px 0 16px;color:#6e7d84;font-size:12px;line-height:1.5}
.letter-hint-panel{margin:-3px 0 14px;padding:13px 16px;border:1px solid #e8d6af;border-radius:11px;background:#fff9ea;max-width:100%}
.letter-hint-panel[hidden]{display:none}
.letter-hint-caption{color:#9a7026;font-size:11px;font-weight:800;letter-spacing:.1em}
.letter-hint-mask{margin:7px 0;color:#153d50;font-size:clamp(17px,2vw,21px);font-weight:750;letter-spacing:.055em;white-space:pre-wrap;overflow-wrap:anywhere}
.letter-hint-status{display:block;color:#735d35;font-size:12px;line-height:1.55}
.soundwave{display:none;align-items:center;gap:3px;height:22px;padding:0 2px}
.soundwave.is-playing{display:inline-flex}
.soundwave i{display:block;width:3px;height:8px;border-radius:99px;background:linear-gradient(#1aa7a3,#087e7c);transform-origin:center;animation:soundwave 1.05s ease-in-out infinite}
.soundwave i:nth-child(1){animation-delay:-.45s;height:7px}
.soundwave i:nth-child(2){animation-delay:-.3s;height:14px;background:linear-gradient(#f2ba57,#d4922a)}
.soundwave i:nth-child(3){animation-delay:-.15s;height:18px}
.soundwave i:nth-child(4){animation-delay:-.05s;height:12px;background:linear-gradient(#f2ba57,#d4922a)}
.soundwave i:nth-child(5){animation-delay:-.2s;height:8px}
@keyframes soundwave{0%,100%{transform:scaleY(.4);opacity:.45}50%{transform:scaleY(1);opacity:1}}
@media(prefers-reduced-motion:reduce){.soundwave i{animation:none;opacity:.85;transform:none}}
.spell-feedback:not(:empty){margin-top:12px;padding:10px 13px;border-radius:9px;background:#eef8f7;color:#176769;font-size:13px;line-height:1.5}
.lesson-help{border:1px solid #d7e3e5;border-radius:18px;width:min(620px,calc(100% - 28px));max-height:min(82vh,780px);overflow:auto;padding:26px;color:#183247;background:#fff;box-shadow:0 30px 85px #09263d66}
.lesson-help::backdrop{background:#102b42b8}
.help-header{display:flex;align-items:center;gap:13px;margin-bottom:18px}
.help-header h2{font-size:24px;letter-spacing:-.03em;margin:0}
.help-emblem{display:grid;place-items:center;width:48px;height:48px;flex:none;border-radius:14px;background:#fff4df;font-size:26px}
.help-emblem .help-icon{width:34px;height:34px}
.help-close{margin-left:auto;align-self:flex-start;border:0;background:#f2f6f7;border-radius:9px;width:36px;height:36px;color:#566c78;font-size:25px}
.help-context{font-size:13px;font-weight:800;color:#167475;margin-bottom:15px}
.lesson-help #help-content p{font-size:16px;line-height:1.65;margin:0 0 14px}
.lesson-help #help-content p:first-of-type{font-weight:750;color:#173e55}
.help-warning{background:#fff5e7;border-left:3px solid #d9a248;padding:13px 15px;border-radius:7px;font-size:14px;line-height:1.6;color:#77501d}
.help-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:23px;border-top:1px solid #e1e9ec;padding-top:17px}
.help-footer p{font-size:13px;line-height:1.5;color:#657b86;margin:0;max-width:330px}
.help-footer button{flex:none}
.mistake-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.mistake-toolbar span{color:#526e7c;font-size:14px;line-height:1.5}
.mistake-toolbar button:disabled{opacity:.5;cursor:default}
.mistake-card{display:flex;justify-content:space-between;gap:20px;border-top:1px solid #e1e9ed;padding:19px 0}
.mistake-card>div:first-child{min-width:0}
.mistake-category{font-size:12px;color:#946627;font-weight:750;margin-bottom:7px}
.mistake-card strong{font-size:18px;color:#153e52;display:block;line-height:1.45}
.mistake-card span{display:block;font-size:15px;color:#526b79;margin:4px 0 10px}
.mistake-card small{font-size:13px;color:#6f838d}
.mistake-actions{display:flex;gap:7px;align-items:center;flex-shrink:0}
.mistake-actions button{font-size:13px;padding:10px 12px}
.mistake-actions .mastered{background:transparent;border:1px solid #cbdfe0;color:#176769;border-radius:9px;font-weight:750}
.mistake-actions .mastered:hover{background:#eef8f7}
.variant-form{display:grid;gap:9px;margin-top:17px;padding:15px;border-radius:11px;background:#f4f8f8}
.variant-form[hidden]{display:none}
.variant-form p{margin:0;color:#526b79;font-size:13px;line-height:1.5}
.variant-form input{min-width:0;width:100%;border:1px solid #cbdce0;border-radius:8px;padding:10px;background:#fff}
.variant-form button{justify-self:start}
.variant-error{color:#a3413b;font-size:12px}
.settings-panel{max-width:690px}
.setting-row{display:flex;align-items:center;justify-content:space-between;gap:22px;cursor:pointer}
.setting-row strong{display:block;color:#173e55;font-size:18px;margin-bottom:8px}
.setting-row small{display:block;color:#627a85;font-size:14px;line-height:1.6}
.setting-row input{width:22px;height:22px;flex:none;accent-color:#087e7c;cursor:pointer}
.hint-setting{margin-top:20px;padding-top:20px;border-top:1px solid #e1e9ed}
.settings-panel .hint{margin:22px 0 0}
.backup-block{margin-top:28px;padding-top:22px;border-top:1px solid #e1e9ed}
.backup-block h2{margin:0 0 8px;font-size:18px;color:#173e55}
.backup-block label{display:block;margin-top:8px;font-weight:750;color:#173e55}
.backup-block input[type=file]{display:block;margin-top:8px;max-width:100%}
.backup-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.backup-status:empty{display:none}
@media(max-width:700px){.nav-count{display:none}.lesson-help{padding:20px}.help-footer,.mistake-toolbar{align-items:stretch;flex-direction:column}.help-footer button,.mistake-toolbar button{width:100%}.mistake-card{flex-direction:column;gap:12px}.mistake-actions{justify-content:flex-start;flex-wrap:wrap}}

.dictionary-panel{max-width:820px}
.dictionary-results{display:grid;gap:14px;margin-top:10px}
.dict-card{border-top:1px solid #e1e9ed;padding:16px 0 4px}
.dict-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:10px}
.dict-head strong{display:block;font-size:20px;color:#153e52;line-height:1.4}
.dict-head span[lang=tr]{display:block;margin-top:4px;color:#526b79;font-size:15px}
.dict-tags{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.dict-badge,.dict-pos{display:inline-grid;place-items:center;padding:4px 8px;border-radius:7px;font-size:12px;font-weight:800}
.dict-badge{background:#fff4df;color:#79501d}
.dict-pos{background:#eef8f7;color:#176769}
.dict-alts{display:block;margin-top:10px;color:#6f838d;font-size:13px;line-height:1.45}
@media(max-width:700px){.dict-head{flex-direction:column}.dict-tags{justify-content:flex-start}}

.browse-filters{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:10px 0 18px}
.browse-filters label{display:grid;gap:6px;min-width:148px;flex:1;color:#37556a;font-size:14px;font-weight:750}
.browse-filters input,.browse-filters select{min-width:0;width:100%;height:43px;padding:0 12px;border:1px solid #ccdade;border-radius:9px;background:#fff;color:#1b3046;font-size:15px}
.browse-filters input:focus,.browse-filters select:focus{outline:2px solid #64b2ad;outline-offset:1px}
.browse-count{color:#6d7d8d;font-size:13px;margin:0 0 12px}
.browse-pages{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding-top:15px;border-top:1px solid #e1e9ed;color:#526b79;font-size:14px}
.browse-pages:empty{display:none}
.browse-pages button{border:1px solid #cbdfe0;background:#f5faf9;color:#135962;font-size:14px;font-weight:750;padding:9px 12px;border-radius:9px}
.browse-pages button:hover:not(:disabled){background:#e1f1ef}
.browse-pages button:disabled{opacity:.43}
.lesson-filters{display:grid;grid-template-columns:1fr;gap:10px}
.lesson-filters label{min-width:0}
.transcript-navigation{margin:12px 0}
.transcript-filter{margin-top:15px}
.transcript{max-height:none;min-height:120px;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:700px){.browse-filters{flex-direction:column;align-items:stretch}.browse-filters label{width:100%}.browse-pages{gap:6px}.browse-pages button{padding:8px}.browse-pages span{font-size:12px;text-align:center}.lesson-filters{display:grid}}
