.cloze-setup{margin-bottom:28px}.cloze-setup h2{margin-bottom:0}.cloze-level-field{border:0;padding:0;margin:22px 0}.cloze-level-field legend{font-size:13px;font-weight:600;margin-bottom:12px}.cloze-levels{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.cloze-levels label{position:relative;cursor:pointer}.cloze-levels input{position:absolute;top:16px;right:12px;accent-color:var(--green)}.cloze-levels label>span{display:grid;gap:5px;height:100%;border:1px solid var(--border);border-radius:12px;padding:18px 16px;background:#fff}.cloze-levels strong{font-size:27px;color:var(--green)}.cloze-levels b{font-size:13px}.cloze-levels small{font-size:12px;line-height:1.6;color:var(--muted)}.cloze-levels input:checked+span{background:#edf5e6;border-color:#81a56e;box-shadow:0 0 0 1px #81a56e}.cloze-levels input:focus-visible+span{outline:3px solid #b4c99d;outline-offset:2px}.cloze-settings{grid-template-columns:2fr 1fr}.cloze-history{display:grid;gap:18px}.cloze-history-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.cloze-history-card{padding:20px;min-width:0}.cloze-history-card p{margin:12px 0;color:var(--muted);font-size:12px}.cloze-workspace{max-width:780px;margin:0 auto}.cloze-progress-meta{margin-bottom:12px}.cloze-workspace>.progress{margin-bottom:18px}.cloze-question-card{padding:28px}.cloze-question-card .tag{font-size:10px;letter-spacing:1px}.cloze-sentence{font-size:25px;line-height:1.9;margin:24px 0;overflow-wrap:anywhere}.cloze-blank{display:inline-block;min-width:85px;color:#5e7d43;background:#f1f5e7;border-radius:6px;padding:0 5px;letter-spacing:2px}.cloze-question-card input{font-size:17px;min-height:49px}.cloze-action-bar{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.cloze-action-bar.cloze-answered{position:fixed;bottom:16px;left:calc(50% + 119px);transform:translateX(-50%);width:calc(100% - 300px);max-width:780px;z-index:24;background:#fffffff5;border:1px solid var(--border);padding:10px 14px;border-radius:12px;box-shadow:0 5px 28px #1e403226;backdrop-filter:blur(8px)}.cloze-question-card:has(.cloze-answered){margin-bottom:90px}.cloze-explanation{margin-top:16px;padding:16px;background:#f8faf3;border:1px solid var(--border);border-radius:10px;text-align:left;line-height:1.8;overflow-wrap:anywhere}.cloze-explanation p{margin-bottom:8px;font-size:14px}.cloze-explanation small{font-size:12px;color:var(--muted)}.cloze-filled{color:var(--green);background:#e9f0df;padding:1px 4px;border-radius:3px}.cloze-completed-sentence{font-weight:500}.cloze-result{max-width:780px;margin:0 auto 22px;text-align:center}.cloze-score{font-size:72px;font-weight:650;line-height:1.4;color:var(--green)}.cloze-score span{font-size:25px}.cloze-results-list{display:grid;gap:14px;max-width:780px;margin:auto}.cloze-result-sentence{font-size:18px;line-height:1.8;margin:17px 0}.cloze-results-list article>p{overflow-wrap:anywhere}.cloze-results-list article>p:not(.cloze-result-sentence){font-size:13px;margin-bottom:10px}
.updates-button{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;border:1px solid #d6c78f;border-radius:22px;background:#fff5cf;color:#6b5017;min-height:42px;padding:8px 12px;font:inherit;font-size:12px;font-weight:650;cursor:pointer;flex-shrink:0;position:relative}.updates-button .icon{width:17px;height:17px}.updates-button:hover{background:#ffedaf}.updates-button:focus-visible{outline:3px solid #d8b94c;outline-offset:3px}.updates-button.has-update{box-shadow:0 0 0 3px #f8e6a780;animation:update-glow 1.8s ease-in-out 3}.update-dot{width:7px;height:7px;border-radius:50%;background:#b97523;position:absolute;top:3px;right:4px;border:1px solid #fff8e6}.release-dialog{max-width:620px;padding:28px}.release-heading h2{font-size:24px;line-height:1.45;margin:12px 0 20px}.release-notes{display:grid;gap:18px}.release-notes article{display:flex;align-items:flex-start;gap:13px}.release-notes article>span{width:36px;height:36px;border-radius:10px;background:#edf3e5;color:var(--green);display:grid;place-items:center;flex-shrink:0}.release-notes article>span .icon{width:19px;height:19px}.release-notes h3{font-size:14px;margin:2px 0 6px}.release-notes p{margin:0;font-size:13px;line-height:1.75;color:var(--muted)}.release-actions{margin-top:24px!important}.release-dialog::backdrop{background:#18322275;backdrop-filter:blur(4px)}
@keyframes update-glow{50%{box-shadow:0 0 0 5px #f8e6a740}}
@media(max-width:850px){.cloze-action-bar.cloze-answered{left:50%;width:calc(100% - 32px);bottom:calc(82px + env(safe-area-inset-bottom))}.cloze-levels{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.topbar .mobile-page-title{display:none}.updates-button{font-size:11px;padding:8px 9px;min-height:42px}.updates-button .icon{width:15px;height:15px}.cloze-levels{gap:9px}.cloze-levels label>span{padding:15px 12px}.cloze-levels strong{font-size:24px}.cloze-settings{grid-template-columns:1fr}.cloze-history-grid{grid-template-columns:1fr}.cloze-question-card{padding:20px 17px}.cloze-sentence{font-size:21px;line-height:1.85;margin:20px 0}.cloze-action-bar .btn{min-height:46px}.cloze-question-card .feedback{padding:16px 12px}.cloze-explanation{padding:13px}.cloze-explanation p{font-size:13px}.cloze-setup .scope-note{font-size:12px}.cloze-history>div>h2{font-size:19px}.release-dialog{padding:22px 18px;max-height:calc(100dvh - 32px);overflow-y:auto}.release-heading h2{font-size:21px}.release-notes{gap:17px}.release-notes h3{font-size:14px}.release-notes p{font-size:12px}.release-notes article{gap:10px}.release-notes article>span{width:31px;height:31px}.release-actions>.btn{width:100%;min-height:45px}}
@media(prefers-reduced-motion:reduce){.updates-button.has-update{animation:none}}
