:root{color-scheme:light;--text:#19251c;--paper:#f7f5ef;--line:#c5c6b8;--green:#264537}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--text);font:1rem/1.45 "Source Sans 3",system-ui,sans-serif}main{max-width:84rem;margin:auto;padding:clamp(1rem,3vw,2.7rem)}header,.pagehead,footer,.paging,.row,.modes{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap}header,.pagehead{justify-content:space-between}header{border-bottom:1px solid var(--text);padding-bottom:1.2rem}h1,h2{font-family:"Source Serif 4",Georgia,serif;font-weight:500;line-height:1.15}h1{font-size:clamp(2rem,4vw,3.8rem);letter-spacing:-.04em;margin:0}h2{font-size:1.4rem;margin:0}header p{margin:.5rem 0 0}.hint{display:block;font-size:.8rem;margin-top:.4rem}button,select,input{font:inherit;color:inherit}button,.upload,select{border:1px solid #718075;background:#fff;padding:.43rem .8rem;border-radius:.25rem;cursor:pointer}.upload,.row button,[aria-pressed=true]{color:white;background:var(--green)}#upload{position:absolute;width:1px;height:1px;opacity:0}.upload{display:inline-block}header div:has(#upload:focus-visible) .upload{outline:3px solid #3877a0}button:disabled{opacity:.55;cursor:default}.viewer{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(17rem,.9fr);border-block:1px solid var(--line);background:#fff}.facsimile,.controls{min-width:0;padding:1rem}.facsimile{background:#e8e5da}.pagehead{margin-bottom:1rem}.pagehead button{font-size:.85rem}#page{width:100%;height:auto;max-height:70vh;display:block;object-fit:contain;background:#edeae2}#credit,#range,#status{font-size:.87rem}#status{min-height:1.2em}.modes{gap:.35rem;margin-bottom:1.1rem}.modes button{font-size:.93rem}label{display:block;font-weight:600;margin-bottom:.3rem}.row{flex-wrap:nowrap}.row input{width:100%;min-width:0;padding:.48rem;border:1px solid #718075;border-radius:.2rem}.paging{justify-content:space-between}.paging button,footer button{font-size:.9rem}ol{list-style:none;padding:0;margin:.6rem 0}li{border-top:1px solid var(--line)}li button{width:100%;border:0;border-radius:0;text-align:left;background:transparent;overflow-wrap:anywhere;padding:.6rem .4rem}li button[aria-current=true]{background:#e6eee6;box-shadow:inset 3px 0 var(--green)}li small{display:block;color:#47574b}footer{margin-top:1rem}a{color:var(--green)}[hidden]{display:none!important}@media(max-width:720px){.viewer{display:flex;flex-direction:column}.facsimile{order:1}.controls{order:0}header{gap:1rem}#page{max-height:60vh}}@media(prefers-reduced-motion:no-preference){button:hover{filter:brightness(.96)}}
#editor{margin:.8rem 0}#editor summary{cursor:pointer;font-weight:600}#correct{margin-top:.7rem;max-width:40rem}#word-select{max-width:100%;margin-bottom:.55rem}#edit-message:empty{display:none}#edit-message{font-size:.92rem}#undo{font-size:.9rem}

.crop-reading{margin:.8rem 0}.crop-reading #crop-status{display:block;font-size:.88rem;margin:.3rem 0}#crop-results{display:flex;flex-wrap:wrap;gap:.45rem}#crop-results button{overflow-wrap:anywhere;max-width:100%;text-align:left}#crop-results small{display:block}

main code{overflow-wrap:anywhere}
