:root{color-scheme:light; font-family:system-ui,-apple-system,sans-serif;color:#182b30;background:#f4f4ed;line-height:1.55}*{box-sizing:border-box}body{margin:0}header,main,footer{max-width:1100px;margin:auto;padding:1rem}header{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;border-bottom:1px solid #9aa9a8}nav{display:flex;flex-wrap:wrap;gap:1rem}a{color:#15585e;text-underline-offset:.2em}h1{font-size:clamp(1.8rem,5vw,2.7rem);line-height:1.2}h2{font-size:1.25rem}aside{background:#e3eeeb;border-left:4px solid #28635e;padding:1rem}.layout{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,2fr);gap:2rem}label{display:block;font-weight:650;margin-top:1rem}label span{font-weight:400}input,select,textarea,button{font:inherit;max-width:100%}input,select,textarea{width:100%;background:white;color:#172a30;border:1px solid #607977;border-radius:5px;padding:.65rem}textarea{resize:vertical}button{display:block;margin-top:1rem;padding:.7rem 1rem;min-height:44px;border:1px solid #164e50;background:#164e50;color:white;border-radius:5px;cursor:pointer}button:disabled{background:#586966;cursor:not-allowed}a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible{outline:3px solid #9b4b00;outline-offset:3px}#status{font-weight:650;padding:.75rem;border:1px solid #607977;overflow-wrap:anywhere}footer{border-top:1px solid #9aa9a8;margin-top:2rem;font-size:.9rem}section{min-width:0}input[type=file]{font-size:.9rem}p{overflow-wrap:anywhere}[hidden]{display:none!important}@media(max-width:700px){.layout{grid-template-columns:1fr;gap:1rem}main{padding:.85rem}}

.ink-controls{display:flex;flex-wrap:wrap;gap:.5rem}.ink-surface{display:block;width:100%;aspect-ratio:4/3;background:#fffdf5;border:2px solid #698777;user-select:none}.ink-pad p{font-size:.85rem;line-height:1.4}
