:root{font:16px/1.65 system-ui,sans-serif;color:#20362d;background:#f4f2e9;color-scheme:light}
*{box-sizing:border-box}
body{margin:0}
header,nav,main{max-width:1000px;margin:auto;padding:1rem clamp(1rem,4vw,2rem)}
header{display:flex;align-items:center;justify-content:space-between;gap:1rem;border-bottom:1px solid #d9dfd1}
.brand,h1,h2,.english{font-family:Georgia,serif}
.brand{font-size:1.8rem;font-weight:bold}.brand em{color:#456c54}
nav,.controls{display:flex;gap:.55rem;flex-wrap:wrap}
main{padding-bottom:5rem}
h1{font-size:clamp(2rem,5vw,3.3rem);line-height:1.12;margin:.3em 0}
h2{font-size:1.55rem}
.panel{background:#fffefa;border:1px solid #dce2d6;border-radius:20px;padding:clamp(1rem,4vw,2.4rem);margin:1rem 0}
.muted,#sync{color:#52685b;font-size:.9rem}
.english{font-size:clamp(1.22rem,3vw,1.52rem);line-height:1.85}
button,input,select{font:inherit;border:1px solid #aab9aa;border-radius:10px;padding:.45rem .75rem;background:#fffefa;color:inherit}
button{cursor:pointer;min-height:42px}
button:hover,button[aria-current=true]{background:#dce9da}
button.primary{background:#23543d;color:white}
.word{border:0;padding:.13em .05em;min-height:0;background:transparent;font-family:inherit;border-radius:4px}
.word:hover,.word:focus-visible{background:#dfebdc}
.translation{border-left:3px solid #91a88f;padding-left:1rem}
.definition{position:sticky;bottom:1rem;background:#e8f0e6;box-shadow:0 6px 24px #20362d22}
a{color:#23543d}
label{display:block;margin:.7rem 0}
input,select{max-width:100%}
.entry{border-top:1px solid #dce2d6;padding:.8rem 0;overflow-wrap:anywhere}
progress{width:100%;accent-color:#23543d}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #437c59;outline-offset:2px}
