:root { color-scheme:light; font:16px/1.55 system-ui,sans-serif; background:#f3f1e9; color:#232b24; --green:#173c30; --line:#d9d8ca; --muted:#58615a; }
* { box-sizing:border-box; }
body { margin:0; }
[hidden] { display:none!important; }
a { color:#205644; text-underline-offset:3px; }
header { border-bottom:1px solid var(--line); }
nav,main,footer { max-width:1200px; margin:auto; padding-inline:28px; }
nav { min-height:62px; display:flex; justify-content:space-between; align-items:center; }
.brand { display:flex; gap:10px; align-items:center; color:inherit; text-decoration:none; font-weight:720; }
.intro { margin:36px 0 23px; }
h1 { font-family:Georgia,serif; margin:0; font-size:clamp(2.55rem,7vw,4.2rem); line-height:1; font-weight:500; letter-spacing:-.055em; }
h2 { margin:0 0 15px; font-size:1.22rem; }
p { margin:0; }
.intro p { margin-top:10px; color:var(--muted); }
.workspace { display:grid; grid-template-columns:minmax(0,1fr) minmax(290px,330px); gap:16px; align-items:start; }
.gallery,.controls { min-width:0; border:1px solid var(--line); border-radius:11px; background:#fdfcf5; padding:16px; }
.controls { padding:21px; }
.actions,.exports,.photos { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
button,.button,select,input[type=text] { font:inherit; color:inherit; background:#fffdf8; border:1px solid #c9ccbc; border-radius:7px; min-height:41px; padding:7px 11px; }
button,.button { cursor:pointer; font-size:.91rem; font-weight:620; }
button:hover:enabled,.button:hover { border-color:#31604b; }
button:disabled { opacity:.53; cursor:default; }
.green { background:var(--green); border-color:var(--green); color:#f9faef; }
.button { display:inline-flex; align-items:center; text-decoration:none; }
.file { position:relative; }
.file input { opacity:0; position:absolute; inset:0; width:100%; cursor:pointer; }
.file:focus-within,:focus-visible { outline:2px solid #587c62; outline-offset:3px; }
.quiet { background:transparent; border-color:transparent; color:#58615a; }
.preview { display:grid; place-items:center; height:clamp(230px,42vw,478px); margin-top:12px; border:1px solid var(--line); border-radius:8px; background:repeating-conic-gradient(#e7e7dc 0% 25%,#f6f6ed 0% 50%) 0/20px 20px; }
.preview canvas { display:block; max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; }
#empty { text-align:center; background:#fdfcf5; border:1px solid var(--line); border-radius:9px; padding:20px 24px; }
#empty p { font-weight:650; }
small,.subtle,.preview-controls { color:var(--muted); font-size:.85rem; }
.preview-controls { display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap; margin:12px 0 10px; }
.photos { gap:6px; }
.photos button { max-width:100%; overflow-wrap:anywhere; border-radius:5px; min-height:34px; font-size:.8rem; }
.photos button[aria-pressed=true] { background:#e1e9db; border-color:#527760; }
.subtle { margin-top:9px; }
.controls label { display:block; font-size:.9rem; font-weight:640; margin-bottom:9px; }
.controls select,.controls input[type=text] { display:block; width:100%; padding:6px 8px; margin-top:4px; font-size:.89rem; }
.split { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:8px; }
.range output { float:right; color:#245844; }
.range input { display:block; width:100%; accent-color:#245844; }
.exports { margin-top:14px; }
.download { margin-top:9px; justify-content:center; width:100%; }
.status { margin-top:11px; min-height:1.5em; }
#errors { color:#75372d; overflow-wrap:anywhere; }
footer { margin-block:24px; display:flex; gap:18px; font-size:.9rem; }
.info { max-width:815px; }
.info section { margin:22px 0; }
.info section p { margin:7px 0; }
@media(max-width:750px) {
  nav,main,footer { padding-inline:16px; }
  .workspace { grid-template-columns:minmax(0,1fr); }
  .intro { margin-top:24px; }
}
