.study-toolbar{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.study-toolbar button{border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--purple);font:inherit;font-size:.875rem;padding:7px 10px}
#english .study-word,#sentenceText .study-word{display:inline;padding:0;margin:0;border:0;border-radius:3px;background:none;color:inherit;font:inherit;line-height:inherit;text-align:inherit;cursor:pointer}
.study-word:hover,.study-word:focus-visible{background:#e9e2f3!important;outline:1px solid var(--purple)}
.study-sheet{box-sizing:border-box;width:min(560px,calc(100% - 24px));max-height:85dvh;padding:0;border:1px solid var(--line);border-radius:22px;background:#fffaf4;color:var(--ink);box-shadow:0 20px 70px #0003}
.study-sheet::backdrop{background:#29233166}
.study-sheet header{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;background:#fffaf4;border-bottom:1px solid var(--line);z-index:1}
.study-sheet h2{font-size:1.15rem;margin:0}.study-sheet button{cursor:pointer}
.study-sheet header button,.study-actions button,.study-sheet form button{border:1px solid var(--line);background:white;border-radius:10px;padding:9px 12px;color:var(--purple);font-size:.875rem}
.study-content{padding:16px 18px}.study-context{font-family:Georgia,serif;font-size:1.1rem;line-height:1.6;padding:12px;background:#f2edf6;border-radius:12px;margin-top:0}
.study-answer{white-space:pre-wrap;line-height:1.8;font-size:1rem}.study-actions{display:flex;gap:8px;flex-wrap:wrap}
.study-sheet form{display:flex;gap:8px;margin-top:16px}.study-sheet input{min-width:0;flex:1;border:1px solid var(--line);border-radius:10px;padding:10px;font-size:1rem;background:white}
.study-word-list{display:grid;gap:6px}.study-word-list button{display:flex;gap:12px;text-align:left;align-items:baseline;border:1px solid var(--line);border-radius:12px;background:white;padding:12px;font-size:1rem;color:var(--ink)}.study-word-list strong{min-width:80px}.study-word-list span{font-size:.9rem}
body.practice-landscape #saveHint{font-size:12px!important;line-height:1.25;margin:2px 0 0!important;font-weight:400;flex-basis:auto;width:auto}
body.practice-landscape .sentence-card-top{gap:6px;flex-wrap:wrap}
body.practice-landscape .study-toolbar button{font-size:12px;padding:5px 8px}
body.practice-landscape .study-sheet{max-height:92dvh}
body.practice-landscape #sentenceText{display:block!important;padding:.35em 0;box-sizing:border-box}
body.sentence-mode #sentenceText{display:block!important;white-space:pre-wrap;overflow-wrap:break-word;max-width:100%;box-sizing:border-box}
body.practice-landscape #result>.sei-voice-status{display:none}
body.practice-landscape .sentence-panel{grid-template-rows:auto minmax(70px,1fr) auto auto;overflow-y:auto}
body.practice-landscape .sentence-listen{display:flex;flex-wrap:wrap;align-items:center;gap:5px;max-width:none}
body.practice-landscape .sentence-listen .sei-voice-status{font-size:12px;margin:0;flex:1}
body.practice-landscape .sentence-listen audio{height:32px!important;margin:0!important;width:200px!important;max-width:100%}
body.practice-landscape .sentence-listen #sentenceGuide{display:none}
body.practice-landscape .sentence-listen>button{width:auto;flex:0 0 auto;padding:7px 12px;font-size:13px}
body.practice-landscape .sentence-listen .background-listening{margin:0;padding:4px 8px;font-size:12px;flex:1;min-width:200px}
body.practice-landscape .background-listening small{display:none}
body.practice-landscape .background-listening label{font-size:12px;white-space:nowrap}
body.practice-landscape #sentenceText{min-height:70px}
