.gallery-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;background:#fff;border:1px solid #e1e6ed;border-radius:14px;padding:28px 30px}.gallery-hero h2{margin:7px 0 10px;font-size:25px;font-weight:700;letter-spacing:-.5px;color:#222d3a}.gallery-hero p{max-width:620px;margin:0;color:#788390;font-size:13px;line-height:1.8}.gallery-hero .eyebrow{color:#8693a4}.gallery-new{border:0;background:#252b34;color:white;border-radius:9px;padding:12px 18px;font-weight:600;white-space:nowrap;cursor:pointer}.gallery-new::before{content:'+';font-size:20px;font-weight:400;margin-right:7px;vertical-align:-1px}
.gallery-summary{display:flex;gap:24px;align-items:center;margin:22px 0 18px;padding:0 2px;color:#7c8795;font-size:12px}.gallery-summary b{color:#273341;font-size:17px;font-variant-numeric:tabular-nums;margin-right:5px}.gallery-summary .gallery-summary-note{margin-left:auto;font-size:12px}.gallery-groups{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:22px}.gallery-group{overflow:hidden;background:#fff;border:1px solid #e1e6ed;border-radius:14px;box-shadow:0 3px 10px #27334104;transition:border-color .18s,box-shadow .18s}.gallery-group:hover{border-color:#bcc8d6;box-shadow:0 7px 24px #27334109}.gallery-thumbs{display:flex;justify-content:center;gap:10px;overflow:hidden;height:214px;padding:20px 18px;background:#eef1f5;border-bottom:1px solid #e7ebf1}.gallery-thumbs img{width:calc((100% - 20px)/3);height:174px;object-fit:contain;border-radius:7px;background:#fff;border:1px solid #e1e6ed;box-shadow:0 3px 6px #20263108}
.gallery-group-body{padding:20px}.gallery-group-title{display:flex;align-items:center;gap:12px;justify-content:space-between}.gallery-group h3{font-size:16px;line-height:1.5;margin:0;color:#253140;word-break:break-word}.gallery-count{flex-shrink:0;font-size:11px;color:#66768a;border:1px solid #e0e7ee;background:#f5f8fb;border-radius:6px;padding:3px 7px}.gallery-group small{display:block;color:#8a95a2;font-size:11px;line-height:1.8;margin-top:10px}.gallery-group footer{display:flex;align-items:center;gap:8px;margin-top:16px;padding-top:16px;border-top:1px solid #eef1f5}.gallery-group footer button{border:1px solid #dce3eb;background:#fff;color:#44566b;border-radius:7px;padding:8px 12px;font-size:12px;cursor:pointer}.gallery-group footer [data-edit-gallery]{background:#f2f5f9;font-weight:600;flex:1}.gallery-group footer [data-delete-gallery]{color:#8994a2;border-color:transparent}.gallery-group footer [data-delete-gallery]:hover{background:#fff0f0;color:#a94a4a}
.gallery-empty{grid-column:1/-1;background:#fff;border:1px dashed #cdd7e2;border-radius:14px;text-align:center;padding:50px 24px;color:#8793a3}.gallery-empty-symbol{font-size:34px;color:#a4b2c3;margin-bottom:12px}.gallery-empty h3{color:#455569;font-size:17px;margin:0 0 8px}.gallery-empty p{margin:0;font-size:13px;line-height:1.9}
.gallery-drop{display:flex!important;flex-direction:column;gap:12px;background:#f5f8fc;border:1.5px dashed #b7c8dc;border-radius:12px;padding:24px;text-align:center;color:#536b87}.gallery-drop input{width:100%;background:white}.gallery-drop small{color:#8a97a8}.gallery-editor{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px;margin:18px 0}.gallery-image{border:1px solid #dfe6ee;border-radius:12px;padding:12px;background:white;cursor:grab}.gallery-order{color:#7b8ca1;font-size:12px;margin-bottom:10px}.gallery-image img{width:100%;height:170px;object-fit:contain;background:#f3f5f8;border-radius:8px}.gallery-image input{width:100%;margin:10px 0;font-size:12px}.gallery-image button{padding:5px 8px;font-size:11px;border:1px solid #e0e5eb;border-radius:5px;background:#f8fafc;color:#65778d;cursor:pointer}.gallery-image button:disabled{opacity:.35;cursor:default}.gallery-image button[data-remove]{color:#986565}.gallery-choice-preview{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.gallery-choice-preview img{width:66px;height:82px;object-fit:contain;background:#fff;border:1px solid #dce4ed;border-radius:7px}
#modal .dialog.gallery-dialog{width:min(1050px,94vw);max-width:1050px;max-height:92vh;display:flex;flex-direction:column;overflow:hidden}#modal .gallery-dialog #modalBody{overflow:auto;min-height:0;padding-right:6px}.gallery-dialog .dialog-actions{flex-shrink:0}
.image-group-choice{border:1px solid #dce5ef;background:#f5f8fc;border-radius:12px;padding:17px;margin:16px 0}.image-group-choice label{margin:0!important}.image-group-choice select{width:100%}.image-group-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px}.image-group-tools a{color:#486b93;font-weight:600;font-size:12px;text-decoration:none}.image-group-tools a:hover{text-decoration:underline}.image-group-tools button{white-space:nowrap;border:1px solid #d8e1ed;background:#fff;color:#536c89;border-radius:6px;padding:6px 10px;font-size:12px;cursor:pointer}.image-group-choice .muted{margin-bottom:0;font-size:12px}
@media(max-width:760px){.gallery-hero{padding:23px;align-items:flex-start;flex-direction:column;gap:18px}.gallery-hero h2{font-size:22px}.gallery-summary{gap:16px;flex-wrap:wrap}.gallery-summary .gallery-summary-note{width:100%;margin-left:0}.gallery-groups{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}.gallery-hero .gallery-new{align-self:stretch}.image-group-tools{align-items:flex-start;flex-direction:column}}@media(prefers-reduced-motion:reduce){.gallery-group{transition:none}}
