.word-study{max-width:1200px}.word-study .page-heading{margin:22px 0 28px}.word-study .lead{max-width:780px}.study-settings{display:flex;align-items:end;gap:16px;flex-wrap:wrap;padding:21px;border:1px solid #d9cbdc;border-radius:18px;background:#fffaf7}.study-settings label{display:grid;gap:7px;font-size:14px;font-weight:650;color:var(--plum)}.study-settings select{font:inherit;min-height:46px;padding:10px 34px 10px 12px;border:1px solid #cdbbd2;border-radius:11px;color:var(--plum);background:#fff;max-width:100%}.study-settings button{margin-left:auto;min-height:46px}.word-reference{margin:18px 0 25px;border:1px solid #d9cbdc;border-radius:15px;padding:16px 20px;background:#fcf9ff}.word-reference summary{cursor:pointer;color:var(--plum-mid);font-weight:650;min-height:24px}.word-reference>p{color:var(--muted);font-size:14px;line-height:1.7}.word-reference-grid,#word-reference-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 22px;margin-top:18px}.reference-item{display:grid;grid-template-columns:30px 1fr;gap:10px;padding:12px;border-radius:12px;background:#f1eaf4}.reference-item>span{display:grid;place-items:center;width:29px;height:29px;border:1px solid #b899c4;border-radius:9px;color:var(--plum-mid);font-weight:700;background:#fff9ec}.reference-item h3{font:650 15px/1.4 var(--sans);margin:0 0 4px}.reference-item p{font-size:14px;line-height:1.6;color:var(--muted);margin:0}.word-progress{display:flex;align-items:center;flex-wrap:wrap;gap:6px 20px;margin:20px 0 14px;font-size:14px;color:var(--muted)}.word-progress p{margin:0}.word-progress p:nth-child(2){margin-left:auto}.word-progress-track{width:100%;height:5px;background:#dfd2e5;border-radius:99px;overflow:hidden;margin-top:6px}.word-progress-track>span{display:block;background:#8e6c9b;height:100%;width:0}.library-study{position:relative;isolation:isolate;min-height:720px;padding:44px;overflow:hidden;border:1px solid #b49bb8;border-radius:24px;background:#33273d}.library-scene{position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,#21152644,#21152611),url('assets/czech/word-library.webp') right center/cover}.library-scene>span{position:absolute;bottom:18px;right:24px;font:italic 18px var(--serif);color:#fff3da;text-shadow:0 2px 5px #160c1e}.word-exercise{width:70%;min-height:620px;padding:30px 32px 24px;border-radius:18px;border:1px solid #e3c9a3;background:#fffcf6f7;box-shadow:0 15px 45px #130b2190}.exercise-eyebrow{font-size:11px;letter-spacing:.15em;font-weight:700;color:#886385;margin:0 0 10px}.word-exercise h2{font:500 clamp(25px,3vw,33px)/1.3 var(--serif);margin:0 0 8px;color:var(--plum)}#word-help{font-size:14px;line-height:1.65;color:var(--muted);margin:0 0 22px}.word-sentence{display:flex;align-items:stretch;flex-wrap:wrap;gap:5px 4px;margin:0 0 15px;padding:20px 16px;border:1px solid #dbc7d9;border-radius:14px;background:#f2ebf4;line-height:1.55}.sentence-word{font:500 clamp(22px,2.5vw,29px)/1.45 var(--serif);padding:5px 4px;color:#3e2d45;border:0;border-radius:8px;background:transparent;white-space:nowrap}.sentence-word.is-target{background:#714575;color:#fff9eb;box-shadow:0 3px 0 #d8b364}.sentence-word.is-choice{cursor:pointer;display:grid;justify-items:center;gap:4px;padding:6px 10px;border:1px solid transparent;min-width:45px}.sentence-word.is-choice:not(:disabled):hover{border-color:#aa88b4;background:#e3d1eb}.sentence-word.is-choice.is-target:hover{background:#714575}.sentence-word small{display:block;font:700 13px/1.4 var(--sans);border-radius:6px;min-width:24px;text-align:center;color:#785c7d}.sentence-word.is-target small{color:#fff1c6}.sentence-word.word-correct{background:#e4efe6;color:#234b37}.sentence-word.word-wrong{background:#fae3e9;color:#8d2846}.sentence-word.word-correct small{color:#234b37}.sentence-word.word-wrong small{color:#8d2846}.word-current{margin:15px 0;font-size:16px;font-weight:650;color:var(--plum);min-height:24px}.word-answers{display:grid;grid-template-columns:1fr 1fr;gap:9px}.word-type{display:flex;align-items:center;gap:9px;text-align:left;min-height:48px;padding:10px 12px;font-size:14px;line-height:1.35;color:var(--plum);background:#fffdf8;border:1px solid #cbb7d2;border-radius:10px}.word-type>span:first-child{display:grid;place-items:center;font-size:12px;font-weight:700;flex:none;width:24px;height:25px;border-radius:7px;background:#eee3f2;color:#74547d}.word-type:not(:disabled):hover,.word-type[aria-pressed=true]{background:#ece0f1;border-color:#8d6399}.word-type.is-correct{background:#e5f1e7;border-color:#649878}.word-type.is-wrong{background:#fae6ed;border-color:#c16d8e}.word-type:disabled{opacity:.7}.word-type.is-correct:disabled,.word-type.is-wrong:disabled{opacity:1}.selection-note{font-size:13px;line-height:1.6;color:var(--muted);margin:12px 0}.word-feedback{margin-top:18px;border:1px solid #a5bfa6;border-radius:12px;padding:16px;background:#eff6ed;color:#2a4e36;font-size:15px;line-height:1.7}.word-feedback.has-errors{border-color:#d1a3b4;background:#fff0f3;color:#663348}.word-feedback p{margin:0}.word-feedback ul{padding-left:20px;margin:10px 0 0}.word-feedback li+li{margin-top:9px}.word-next-row{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-top:20px}.word-next-row small{max-width:310px;font-size:12px;color:var(--muted);line-height:1.65}.word-exercise .button{font-size:15px;min-height:46px}.word-results{padding:35px;border-radius:22px;border:1px solid #cdb8d4;background:linear-gradient(130deg,#fffcf6,#efe5f3)}.word-results h2{font:500 33px/1.3 var(--serif);margin:10px 0 18px;color:var(--plum)}#word-result-score{font-size:28px;color:var(--plum-mid);font-weight:700}.word-mistake{margin:15px 0;padding:16px 18px;background:#fffaf8;border:1px solid #ddcbdc;border-radius:12px;line-height:1.7}.word-mistake p{margin:0 0 5px}.word-mistake .sentence-context{font-family:var(--serif);font-size:21px;color:var(--plum)}.word-mistake small{font-size:14px;color:var(--muted)}.result-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}@media(max-width:950px){.library-study{padding:26px}.word-exercise{width:87%;padding:26px}.library-scene{background-position:68% center}}@media(max-width:640px){.word-study{padding:25px 14px}.word-study h1{font-size:36px}.study-settings{padding:16px;gap:12px}.study-settings label{flex:1 1 42%;min-width:0;font-size:13px}.study-settings button{width:100%;margin:0}.study-settings select{width:100%;padding-right:18px;font-size:14px}.word-reference{padding:15px}.word-reference-grid,#word-reference-grid{grid-template-columns:1fr}.library-study{padding:130px 12px 16px;border-radius:18px;min-height:0}.library-scene{background-position:75% top;background-size:auto 780px}.library-scene>span{top:20px;right:20px;bottom:auto}.word-exercise{width:100%;padding:22px 15px;background:#fffcf6fa;min-height:0}.word-exercise h2{font-size:26px}.word-sentence{padding:16px 9px}.sentence-word{font-size:24px}.word-answers{gap:8px}.word-type{font-size:13px;padding:10px 7px;gap:6px;min-height:54px}.word-type>span:first-child{width:20px;height:22px;font-size:11px}.word-progress{font-size:12px}.word-progress p:nth-child(2){margin-left:0}.word-results{padding:24px 18px}.word-results h2{font-size:28px}}

.word-study .back-link{display:inline-block;margin-bottom:4px;color:var(--plum-mid);font-size:14px;text-underline-offset:4px}

@media(max-width:640px){.study-settings label:first-child{flex-basis:100%}}
