.flyer-editor[hidden]{display:none}
.flyer-editor{margin:1.5rem 0;padding:clamp(1rem,3vw,1.5rem);border:1px solid #b8aa8d;border-radius:.75rem;background:#f8f4ea;min-width:0}
.flyer-editor h2{font-size:clamp(1.35rem,4vw,1.8rem);line-height:1.2;margin:0 0 .8rem}
.flyer-crop-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0}
.flyer-crop-images figure{margin:0;min-width:0}
.flyer-crop-images figcaption{font-weight:700;margin-bottom:.5rem;font-size:.9rem}
.flyer-crop-images canvas{display:block;max-width:100%;width:auto;max-height:26rem;height:auto;margin:auto;border:1px solid #c9c0ad;background:#fff}
.submission-form .flyer-crop-controls{margin:1.25rem 0;padding:0;border:0}
.flyer-crop-controls legend{font-weight:700}
.flyer-crop-sliders{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem 1.25rem}
.flyer-crop-sliders label{display:block;min-width:0;font-weight:600}
.flyer-crop-sliders output{float:right;font-variant-numeric:tabular-nums}
.submission-form .flyer-crop-sliders input[type=range]{display:block;width:100%;height:44px;padding:0;cursor:pointer;accent-color:#236052;border:0;background:transparent}
.flyer-crop-actions{display:flex;flex-wrap:wrap;gap:.6rem}
.flyer-crop-actions button,.flyer-queue button{font:inherit;font-weight:600;min-height:44px;padding:.55rem .8rem;border:1px solid #73674f;border-radius:.4rem;background:#fffdf8;color:#302e26;cursor:pointer}
.flyer-crop-actions button:disabled,.flyer-queue button:disabled,.flyer-editor button:disabled{opacity:.6;cursor:wait}
.flyer-editor button:focus-visible,.flyer-editor input:focus-visible,.flyer-queue button:focus-visible{outline:3px solid #236052;outline-offset:3px}
.flyer-editor p{overflow-wrap:anywhere}
.flyer-queue{display:grid;gap:.6rem;margin:1rem 0}
.flyer-queue:empty{display:none}
.flyer-queue>div{display:flex;align-items:center;justify-content:space-between;gap:.7rem;border:1px solid #d1c7b4;border-radius:.4rem;padding:.6rem;min-width:0}
.flyer-queue span{overflow-wrap:anywhere;min-width:0}
.flyer-queue button{flex-shrink:0}
.flyer-previews p{margin:.3rem 0;font-size:.85rem}
@media(max-width:620px){.flyer-crop-images{grid-template-columns:1fr}.flyer-crop-images canvas{max-height:22rem}.flyer-crop-actions button{flex:1 1 11rem}.flyer-queue>div{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.flyer-editor *{scroll-behavior:auto}}
