.montage{max-width:1280px;margin:38px auto;padding:0 20px 60px}.montage h1{font:400 clamp(30px,4vw,48px) Georgia,serif}.montage h2{font:400 24px Georgia,serif}.montage-layout{display:grid;grid-template-columns:minmax(300px,1fr) minmax(320px,1fr);gap:18px;align-items:start}.panel{background:#fff;border:1px solid #dedbd5;padding:20px;margin-bottom:18px}.options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.montage label{display:grid;gap:6px;font-size:13px}.montage select,.montage input:not([type=range]){width:100%;min-width:0;padding:10px;border:1px solid #bbb;background:#fff}.montage input[type=range]{width:100%}.templates{display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px;max-height:400px;overflow:auto;margin-top:12px}.templates button{padding:6px;border:1px solid #ddd;background:#f9f8f5;cursor:pointer;font-size:11px}.templates button[aria-pressed=true]{border:2px solid #a4825a}.templates canvas{width:100%;aspect-ratio:1;display:block}.canvas-bg{background:#ece9e3;padding:14px;display:grid;place-items:center}.canvas-bg canvas{max-width:100%;max-height:58vh;box-shadow:0 2px 12px #0002;touch-action:manipulation}.thumbs{display:flex;gap:8px;overflow:auto;padding:10px 0}.thumbs button{padding:2px;border:2px solid transparent;background:white}.thumbs button[aria-pressed=true]{border-color:#a4825a}.thumbs img{width:65px;height:58px;object-fit:cover}.montage button{cursor:pointer}.actions{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0}.actions button,.panel>button{padding:11px 14px;border:1px solid #222;background:white}.actions .primary{background:#211f1b;color:white}.notice{font-size:13px;color:#666;line-height:1.5}#status{white-space:pre-line;color:#805126}@media(max-width:760px){.montage-layout{grid-template-columns:1fr}.preview{position:static}.canvas-bg canvas{max-height:50vh}.templates{max-height:300px}}
