@media(max-width:700px){
 .checkout input,.custom-color-fields input[type=text]{font-size:16px}
 .shape-grid button,.categories button,.letter-palette button,.letter-styles button,.text-button,.catalogue-link{min-height:44px}
 .catalogue-link{display:flex;align-items:center;padding:8px 4px}
 .letter-palette{gap:6px}
 .shape-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .review-heading h2{font-size:17px}.review-heading .secondary{min-width:44px;min-height:44px}
 .review-row>div{min-width:0;overflow-wrap:anywhere}.review-row img{flex-shrink:0}
 #review-account{overflow-wrap:anywhere}
 .design .remove{width:44px;height:44px;top:0;right:0;background:#fff9}
 .design .edit{min-height:44px}
 .review-actions button{white-space:normal;min-height:44px}
 .photo-options{justify-content:flex-end;margin-top:5px}
 .preview-panel,.card{min-width:0}
}
@media(max-width:350px){.header{padding-left:12px;padding-right:12px}.brand{font-size:17px;gap:6px}.brand small{letter-spacing:1px}.intro-stamp{display:none}.intro h1{font-size:26px}.step-heading{flex-wrap:wrap}.optional{white-space:normal}.letter-palette{grid-template-columns:repeat(4,minmax(0,1fr))}.letter-swatch{width:24px;height:24px}}

.trial-banner{background:#fff0df;border:1px solid #efd5ba;border-radius:12px;padding:12px 16px;color:#76543b;font-size:12px;line-height:1.7;margin:18px 0 0}.trial-compliance{text-align:center;font-size:11px;color:#827078;padding-bottom:20px}
/* Three submission routes; the back action stays separate. */
#review-dialog .review-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
#review-dialog #back-to-design{grid-column:1/-1}
#review-dialog .default-layout-description{display:block;font-size:12px;line-height:1.7;font-weight:400;margin-top:7px;white-space:normal}
#photo-import-status,#photo-quality{font-size:13px;line-height:1.7;overflow-wrap:anywhere;margin:10px 0}
#photo-quality{color:#8a4b21;background:#fff4e8;padding:10px 12px;border-radius:10px}
@media(max-width:600px){#review-dialog .review-actions{display:flex;flex-direction:column}#review-dialog .review-actions button{width:100%;min-height:48px}}
