.style-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}.style-gallery button{padding:8px;border:1px solid #dbe3dc;border-radius:12px;min-width:0;background:white;text-align:left}.style-gallery button.active{outline:2px solid #496d56;background:#f0f5f1}.style-gallery img{width:100%;height:95px;object-fit:contain}.style-gallery b,.style-gallery small{display:block}.style-gallery small{font-size:10px;line-height:1.35;margin-top:4px}.loading{display:grid;place-items:center;height:95px;font-size:11px}.stitched-preview{width:100%;max-height:380px;object-fit:contain}.mini-montage{max-width:190px;margin:10px auto!important}.mockup-note{display:block;text-align:center;font-size:10px;color:#68766c}.photo-montage{aspect-ratio:1;overflow:hidden;background:#fff}.photo-art{transform:translate(-50%,-50%);position:absolute;cursor:grab;touch-action:none}.photo-art img{width:100%;height:auto;display:block}.photo-art span{line-height:1;position:absolute;top:-16px;left:0;background:#365a44;color:white;border-radius:10px;padding:3px;font-size:10px}.photo-art.selected{outline:1px dashed #446f54;outline-offset:3px}.final-gallery{display:grid;grid-template-columns:1fr 1fr;gap:8px}.final-gallery h3{font-size:12px}.detail-link{font-size:11px;margin:4px}.design-dialog{border:0;border-radius:18px;max-width:950px;width:90vw;padding:22px;max-height:90vh;overflow:auto}.design-dialog::backdrop{background:#152b22a8}.design-dialog form{text-align:right}.detail-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.zone-closeup{overflow:hidden;aspect-ratio:1}.stitch-closeup img{width:100%;height:100%;object-fit:contain}.design-dialog small{display:block;margin-top:15px}.preview{min-width:0}.previewtop{gap:6px}.preview>.choices{grid-template-columns:repeat(2,1fr)}.preview>button{font-size:12px}body.photo-version[data-step="0"] .preview .garment-photo{max-height:420px;object-fit:contain}.preview .caption{font-size:11px}
@media(max-width:600px){.style-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}.style-gallery img{height:70px}.style-gallery small{font-size:9px}.style-gallery b{font-size:11px}.workspace{display:flex;flex-direction:column}.workspace>.preview{width:100%;position:static!important;padding:10px}.stitched-preview{max-height:200px}.mini-montage{display:none}.preview .photo-montage{max-width:300px}.detail-columns{grid-template-columns:1fr}.zone-closeup{max-height:330px}.stitch-closeup{max-height:280px}.design-dialog{padding:14px}.design-dialog h2{font-size:18px}body.photo-version[data-step="0"] .preview{padding:0}.panel{width:100%}}
.photo-art .resize-handle{position:absolute;width:14px;height:14px;min-width:14px;min-height:14px;padding:0!important;border:2px solid #fff;border-radius:3px;background:#315e45;box-shadow:0 0 0 1px #315e45;touch-action:none;z-index:5;opacity:0}
.photo-art:hover .resize-handle,.photo-art.selected .resize-handle,.photo-art:focus-within .resize-handle{opacity:1}
.resize-handle.nw{left:-7px;top:-7px;cursor:nwse-resize}.resize-handle.ne{right:-7px;top:-7px;cursor:nesw-resize}.resize-handle.sw{left:-7px;bottom:-7px;cursor:nesw-resize}.resize-handle.se{right:-7px;bottom:-7px;cursor:nwse-resize}
.photo-art:has(.resize-handle){overflow:visible}
#draftTools{display:flex;gap:8px;align-items:center;margin:10px 0;font-size:11px;flex-wrap:wrap}#draftTools button{padding:6px 10px;font-size:12px}#draftTools button:disabled{opacity:.4;cursor:default}.draft-status{color:#607365;margin-left:auto}.placement-zoom{max-height:520px;overflow:auto;width:100%;border-radius:12px}.placement-zoom .photo-montage{margin:0!important;flex-shrink:0}.safe-zone{position:absolute;border:1px dashed #47795c;pointer-events:none;z-index:1;background:#71947a0b}.safe-zone i{position:absolute;display:block;pointer-events:none;border-color:#47795c55;border-style:dashed}.guide-x{height:100%;left:50%;border-width:0 0 0 1px}.guide-y{width:100%;top:50%;border-width:1px 0 0}.photo-art{z-index:2}.live-size{position:absolute;bottom:5px;left:8px;z-index:3;font-size:12px;line-height:1.3;padding:5px 8px;background:#fff;border-radius:6px;color:#294c36}.placement-tools{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:10px 0}.placement-tools button{font-size:11px;padding:7px}.placement-tools label{display:flex;gap:6px;align-items:center;font-size:12px}.placement-tools input{width:90px}.preview>small{font-size:10px;line-height:1.4;display:block}@media(max-width:600px){.placement-zoom{max-height:320px}#draftTools{gap:5px}.draft-status{font-size:10px}}
.sleeve-faces{font-size:12px;text-align:left;margin:8px 0}.sleeve-faces p{font-size:11px;margin:4px 0}.sleeve-montage{background:#fff}.review-hint{font-size:12px;line-height:1.5}.all-embroidery-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}.embroidery-review-card{border:1px solid #dce5de;border-radius:12px;padding:12px;min-width:0;background:#fff;text-align:left}.embroidery-review-card h3{font-size:14px;margin:0 0 6px}.embroidery-review-card p{font-size:11px;margin:0 0 5px}.embroidery-review-card strong{font-size:12px}.review-zone{overflow:hidden;aspect-ratio:1;max-height:270px;margin:8px 0}.review-zone .photo-montage{width:100%;max-width:none!important}.review-edit-actions{display:flex;flex-wrap:wrap;gap:5px}.review-edit-actions button{font-size:11px;padding:7px 9px;border-radius:8px}.review-index{display:grid;gap:6px}.review-index button{font-size:12px;text-align:left;padding:10px}.review-index small{display:block;margin-top:5px;font-size:11px;color:#627367}.design-dialog>.embroidery-review-card{border:0}.design-dialog .review-zone{max-height:60vh;max-width:550px;margin:auto}.awaiting-art{border:1px dashed #74927e}.awaiting-art img:not([src]){visibility:hidden}
@media(max-width:600px){.all-embroidery-details{grid-template-columns:1fr}.embroidery-review-card .review-zone{max-height:240px;max-width:240px;margin:8px auto}.review-edit-actions button{min-height:34px}.preview>.choices:has([data-view^="Manga"]){display:flex;flex-wrap:wrap}.preview>.choices button{font-size:10px}}
/* Small selectors, with the garment as a supporting image rather than a hero. */
body.photo-version[data-step="0"] .workspace{grid-template-columns:180px minmax(0,680px);justify-content:center;gap:24px}
body.photo-version[data-step="0"] .preview .garment-photo{height:210px;max-height:210px;width:100%;object-fit:contain}
body.photo-version[data-step="0"] .panel .choices{display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 12px}
body.photo-version[data-step="0"] .panel .choices button{flex:0 0 auto;min-width:76px;min-height:36px;padding:6px 14px!important;font-size:13px;line-height:1.2;border-radius:9px;border-width:1px}
body.photo-version[data-step="0"] .panel label{font-size:12px;margin:8px 0 5px}
body.photo-version[data-step="0"] select{min-height:36px;padding:7px 10px;font-size:13px;border-radius:9px}
body.photo-version[data-step="0"] h2{font-size:23px;margin:6px 0}
body.photo-version[data-step="0"] .row{grid-template-columns:minmax(120px,1fr) minmax(160px,1fr)}
body.photo-version[data-step="0"] .swatch{width:28px;height:28px;min-height:28px}
@media(max-width:600px){body.photo-version[data-step="0"] .workspace{grid-template-columns:78px minmax(0,1fr);gap:10px}body.photo-version[data-step="0"] .preview .garment-photo{height:125px;max-height:125px}body.photo-version[data-step="0"] .panel .choices{gap:5px}body.photo-version[data-step="0"] .panel .choices button{min-width:0;min-height:34px;padding:6px 10px!important;font-size:11px}body.photo-version[data-step="0"] .row{grid-template-columns:1fr}body.photo-version[data-step="0"] h2{font-size:18px}body.photo-version[data-step="0"] .selection-caption{font-size:9px}}
