:root{color-scheme:light;--ink:#302a25;--paper:#f8f6f2;--line:#d9d3c9}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.5 Arial,sans-serif}header,main{width:min(1200px,100%);margin:auto;padding:16px}header>span{display:block;font-size:13px;letter-spacing:.13em;margin-top:16px}h1{font:normal clamp(25px,5vw,38px)/1.2 Georgia,serif;margin:10px 0 18px}a{color:inherit;text-underline-offset:4px}button,select,input,.actions a{font:inherit;min-height:44px;border:1px solid var(--line);border-radius:0;background:white;color:var(--ink);padding:9px 12px}button,.actions a{cursor:pointer}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,#sheet:focus-visible{outline:3px solid #9e6e48;outline-offset:3px}.actions,.controls,.options,form{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.actions a{text-decoration:none}.actions a:first-child{background:var(--ink);color:white}.controls{justify-content:space-between}.controls form{justify-content:center;gap:6px}input{width:78px}#total{white-space:nowrap}.options{margin:16px 0;justify-content:space-between}.options select{max-width:100%;flex:1 1 230px}.options button{flex:0 0 auto}#sheet{width:100%;overflow:auto;background:white;border:1px solid var(--line);min-height:100px}#sheet img{display:block;width:100%;height:auto}#sheet.zoomed{max-height:80dvh}#sheet.zoomed img{width:max(1100px,100%);max-width:none}#status,#hint{font-size:14px}#status:empty{display:none}#hint{margin-bottom:28px}@media(max-width:520px){header,main{padding:12px}.controls{gap:8px}.controls form{order:3;width:100%}.controls>button{flex:1}#page{width:82px}.actions a{flex:1 1 145px;text-align:center}}
