/* Shared secondary surfaces: a fixed header, contained scrolling, quiet actions. */
dialog.yy-dialog,#detail-dialog.yy-dialog,#shortlist-dialog.yy-dialog,#editor.yy-dialog,#admin-detail.yy-dialog,#lightbox-dialog.yy-dialog{padding:0;border:1px solid #f1f1f1;border-radius:18px;background:#fdfdfd;color:#252525;box-shadow:0 18px 65px #1f1f1f22;width:680px;max-width:calc(100vw - 32px);max-height:72dvh;height:auto;margin:auto;overflow:hidden}.yy-dialog[open]{display:flex;flex-direction:column}.yy-dialog::backdrop{background:#18181855;backdrop-filter:blur(3px)}.yy-dialog-head,.shortlist-head.yy-dialog-head,.edit-head.yy-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-shrink:0;padding:20px 24px 17px;margin:0;border-bottom:1px solid #f3f3f3;background:#fdfdfd}.yy-dialog-head h2,.edit-head.yy-dialog-head h2,.shortlist-head.yy-dialog-head h2{font-size:22px;font-weight:500;line-height:1.25;margin:0;color:#272727;letter-spacing:.2px}.yy-dialog-head .eyebrow{font-size:9px;letter-spacing:1.6px;color:#777777;margin:0 0 7px}.yy-dialog-head>button,.yy-dialog-head .yy-dialog-close{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;padding:0;border:0;background:#f7f7f7;border-radius:50%;font-size:22px;font-weight:300;color:#5b5b5b;position:static;line-height:1}.yy-dialog-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:22px 24px}.yy-dialog-actions,.edit-actions.yy-dialog-actions{flex-shrink:0;display:flex;justify-content:flex-end;align-items:center;gap:10px;border-top:1px solid #f3f3f3;padding:14px 24px;margin:0;background:#fdfdfd}.yy-dialog-actions button{border-radius:9px;padding:11px 18px;font-size:12px;border:1px solid #efefef;background:#ffffff;color:#5b5b5b}.yy-dialog-actions button.primary{background:#353535;border-color:#353535;color:#ffffff}#editor.yy-dialog{width:580px}#editor form{display:flex;flex-direction:column;min-height:0;max-height:inherit}#editor .fields{gap:14px}#editor .fields input,#editor .fields select{border-color:#efefef;border-radius:8px}#editor .visible-toggle{margin:15px 0}#detail-content.yy-dialog-body{padding:0}#detail-dialog .detail-close{display:none}#detail-dialog .detail-layout{grid-template-columns:38% 62%;align-items:stretch}#detail-dialog .detail-portrait{height:auto;min-height:340px;max-height:440px}#detail-dialog .detail-info{padding:25px}#detail-dialog .detail-info h2{font-size:27px;margin-top:10px}#detail-dialog .detail-info .eyebrow{font-size:9px}#detail-dialog .measurements dd{font-size:22px}#detail-dialog .profile-facts{gap:10px;margin:17px 0}#detail-dialog .detail-media{padding:0 24px 24px}#detail-dialog .detail-price p{font-size:21px}.yy-dialog .dark-button,#detail-dialog .detail-save{background:#353535;border-radius:9px}#shortlist-dialog.yy-dialog .local-note{margin-top:0;font-size:11px}#shortlist-dialog.yy-dialog .confirmation-toolbar{margin-top:18px}#lightbox-dialog.yy-dialog{width:760px}#lightbox-dialog .lightbox-close{display:none}#lightbox-image{width:100%;height:auto;max-width:100%;max-height:calc(72dvh - 90px);object-fit:contain;display:block;min-height:0;background:#f8f8f8}.thumb-open{display:block;border:0!important;background:transparent!important;border-radius:8px;padding:0!important;line-height:0;flex-shrink:0}.thumb-open .thumb{display:block}.thumb-placeholder{display:grid;place-items:center;color:#777777;font-size:10px;line-height:1.4}.admin-detail-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 18px}.admin-detail-facts dt{font-size:10px;color:#757575;margin-bottom:5px}.admin-detail-facts dd{font-size:15px;margin:0;overflow-wrap:anywhere}.admin-detail-facts small{font-size:10px;margin-left:4px;color:#757575}.admin-detail-tags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:18px}.admin-detail-tags span{font-size:10px;background:#f8f8f8;color:#666666;border-radius:5px;padding:5px 8px}.media-sections{display:flex;gap:20px;border-bottom:1px solid #f2f2f2;margin-bottom:15px}.media-sections button{border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;padding:10px 0;font-size:12px;color:#757575}.media-sections button[aria-pressed=true]{border-color:#616161;color:#353535}.media-sections small{font-size:10px;margin-left:4px}.admin-media-preview{display:block;width:100%;height:280px;object-fit:contain;border-radius:9px;background:#f8f8f8}.media-image-tools{display:flex;align-items:center;gap:7px;margin:12px 0}.media-image-tools span{margin-right:auto;font-size:10px;color:#717171}.media-image-tools button{font-size:11px;padding:7px 10px}.media-image-tools .media-delete{color:#656565}.media-thumbnails{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.media-thumbnails button{border:2px solid transparent;background:#f8f8f8;padding:0;border-radius:7px;overflow:hidden}.media-thumbnails button[aria-pressed=true]{border-color:#6d6d6d}.media-thumbnails img{display:block;width:100%;height:95px;object-fit:cover;object-position:top}.media-upload-note{font-size:10px;color:#7b7b7b;line-height:1.6;margin:15px 0 0}.media-status{padding:10px 24px;margin:0;font-size:11px;color:#5e5e5e;flex-shrink:0}.media-status:empty{display:none}.media-delete-confirm{background:#f7f7f7;border-radius:8px;padding:12px;margin:10px 0;font-size:11px}.media-delete-confirm[hidden]{display:none}.media-delete-confirm p{margin:0 0 10px;line-height:1.6}.media-delete-confirm button{font-size:11px;padding:7px 12px;margin-right:8px}.media-delete-confirm [data-confirm-delete]{color:#5c5c5c}.media-empty-state{font-size:12px;color:#767676;text-align:center;padding:40px 10px}.yy-dialog-body .outline-button{border-radius:9px}@media(max-width:700px){dialog.yy-dialog,#detail-dialog.yy-dialog,#shortlist-dialog.yy-dialog,#editor.yy-dialog,#admin-detail.yy-dialog,#lightbox-dialog.yy-dialog{width:calc(100vw - 24px);max-width:none;max-height:68dvh;height:auto;margin:auto 12px;border-radius:18px}.yy-dialog-head,.shortlist-head.yy-dialog-head,.edit-head.yy-dialog-head{padding:17px 19px 14px}.yy-dialog-head h2,.edit-head.yy-dialog-head h2,.shortlist-head.yy-dialog-head h2{font-size:20px}.yy-dialog-head .eyebrow{font-size:8px}.yy-dialog-head>button{width:36px;height:36px;font-size:20px}.yy-dialog-body{padding:18px 19px}.yy-dialog-actions,.edit-actions.yy-dialog-actions{padding:12px 19px}.yy-dialog-actions button{padding:11px 14px}.yy-dialog-actions .primary{flex:1}#editor .fields{gap:12px}#editor .fields label{font-size:11px}#editor .fields input,#editor .fields select{font-size:16px;padding:9px 8px}#detail-dialog .detail-layout{display:block}#detail-dialog .detail-portrait{height:240px;min-height:0;max-height:240px}#detail-dialog .detail-info{padding:20px}#detail-dialog .detail-info h2{font-size:25px}#detail-dialog .detail-subtitle{font-size:12px}#detail-dialog .measurements dt{font-size:11px}#detail-dialog .measurements dd{font-size:21px}#detail-dialog .profile-facts div{font-size:12px}#detail-dialog .detail-media{padding:0 20px 20px}#lightbox-image{max-height:calc(68dvh - 78px)}.admin-detail-facts{gap:12px}.admin-detail-facts dd{font-size:14px}.admin-media-preview{height:230px}.media-thumbnails{grid-template-columns:repeat(4,minmax(0,1fr))}.media-thumbnails img{height:78px}.media-status{padding:8px 19px}.media-image-tools button{font-size:10px;padding:7px 8px}}
#admin-login{background:#fdfdfd;border-radius:18px;border-color:#f1f1f1;box-shadow:0 18px 65px #1f1f1f22}#admin-login::backdrop{background:#18181855;backdrop-filter:blur(3px)}#admin-login .admin-login-head h2{font-size:22px;font-weight:500}#admin-login .icon-button{border-radius:50%;background:#f7f7f7;color:#5b5b5b}#admin-login-submit{background:#353535;border-radius:9px}.shooting-summary{border-radius:14px;background:#f9f9f9}

.media-cover-generator{display:grid;grid-template-columns:1fr 96px;gap:14px;padding:16px;margin:0 0 22px;border:1px solid #f1f1f1;border-radius:12px;background:#f9f9f9}.media-cover-generator .eyebrow{font-size:8px;color:#787878;letter-spacing:1.5px}.media-cover-generator h3{font-size:15px;font-weight:500;margin:6px 0}.media-cover-generator p{font-size:11px;line-height:1.7;color:#767676;margin:0 0 12px}.media-cover-generator button{font-size:11px;padding:8px 12px;border-radius:8px;border:1px solid #e8e8e8;background:#ffffff;color:#525252}.media-cover-thumb{width:96px;height:124px;object-fit:cover;object-position:center top;border-radius:8px;background:#f4f4f4}.media-cover-confirm{grid-column:1/-1;display:flex;align-items:center;gap:8px;border-top:1px solid #f1f1f1;padding-top:12px}.media-cover-confirm span{flex:1;font-size:10px;line-height:1.6;color:#6b6b6b}.media-cover-confirm [data-apply-cover]{background:#353535;color:#ffffff;border-color:#353535}@media(max-width:700px){.media-cover-generator{padding:13px;grid-template-columns:1fr 80px;gap:12px}.media-cover-thumb{width:80px;height:110px}.media-cover-generator p{font-size:10px}}

.manual-crop-dialog{width:min(900px,92vw);max-height:88dvh}.manual-crop-dialog .yy-dialog-body{padding:18px 24px}.crop-hint,.crop-message{font-size:12px;line-height:1.7;color:#777}.crop-photo-list{display:flex;gap:8px;overflow-x:auto;padding:4px 0 14px;max-width:100%}.crop-photo-list button{flex:0 0 60px;height:76px;padding:2px;border:1px solid #ddd;border-radius:7px;background:#fafafa}.crop-photo-list button[aria-pressed=true]{border:2px solid #222}.crop-photo-list img{width:100%;height:100%;object-fit:contain}.crop-workspace{display:grid;grid-template-columns:minmax(0,1fr) 130px;gap:22px;align-items:start}.crop-source{display:flex;justify-content:center;align-items:center;min-height:200px;background:#f6f6f6;border-radius:10px;overflow:hidden}.crop-stage{position:relative;line-height:0;max-width:100%;width:fit-content;overflow:hidden;user-select:none}.crop-original{display:block;max-width:100%;max-height:42dvh;width:auto;height:auto}.crop-box{position:absolute;box-sizing:border-box;border:2px solid white;box-shadow:0 0 0 2000px #0007;cursor:move;touch-action:none;outline-offset:3px}.crop-grid{position:absolute;inset:0;background:linear-gradient(to right,transparent 33%,#fff5 33%,#fff5 33.5%,transparent 33.5%,transparent 66%,#fff5 66%,#fff5 66.5%,transparent 66.5%),linear-gradient(to bottom,transparent 33%,#fff5 33%,#fff5 33.5%,transparent 33.5%,transparent 66%,#fff5 66%,#fff5 66.5%,transparent 66.5%);pointer-events:none}.crop-handle{position:absolute;width:19px;height:19px;background:white;border:2px solid #333;border-radius:50%;padding:0;touch-action:none}.crop-handle.nw{top:-10px;left:-10px;cursor:nwse-resize}.crop-handle.ne{top:-10px;right:-10px;cursor:nesw-resize}.crop-handle.sw{bottom:-10px;left:-10px;cursor:nesw-resize}.crop-handle.se{bottom:-10px;right:-10px;cursor:nwse-resize}.crop-live-preview{position:relative;overflow:hidden;aspect-ratio:3/4;border-radius:8px;background:#f5f5f5}.crop-live-preview img{position:absolute;max-width:none;max-height:none;object-fit:fill}.crop-workspace aside p{font-size:11px;color:#888;text-align:center}.crop-size-label{display:flex;gap:18px;align-items:center;margin-top:16px;font-size:12px;color:#666}.crop-size-label input{flex:1;accent-color:#333;min-height:26px}.media-cover-generator [data-manual-cover]{margin-left:9px}.manual-crop-dialog button:disabled{opacity:.45;cursor:wait}@media(max-width:700px){.manual-crop-dialog{width:94vw;max-height:88dvh}.manual-crop-dialog .yy-dialog-body{padding:14px}.crop-workspace{grid-template-columns:minmax(0,1fr) 76px;gap:12px}.crop-original{max-height:35dvh}.crop-photo-list button{flex-basis:50px;height:64px}.manual-crop-dialog .yy-dialog-actions{gap:7px;flex-wrap:wrap}.manual-crop-dialog .yy-dialog-actions button{padding:10px 12px;font-size:12px}.media-cover-generator [data-manual-cover]{margin-left:0;margin-top:8px}}
.yy-dialog.manual-crop-dialog{width:min(820px,94vw);max-height:88dvh}.manual-crop-dialog .yy-dialog-head{padding:18px 24px}.manual-crop-dialog .crop-original{max-height:30dvh}.manual-crop-dialog .crop-message{margin:8px 0 0}.manual-crop-dialog .crop-hint{margin:0 0 10px}@media(max-width:700px){.manual-crop-dialog .yy-dialog-head{padding:16px}.manual-crop-dialog .crop-original{max-height:32dvh}.manual-crop-dialog .crop-source{min-height:160px}}

/* Mobile WebKit: keep reopened profiles at the top and reserve image space. */
#detail-dialog.yy-dialog,#detail-content.yy-dialog-body{scroll-behavior:auto!important;overflow-anchor:none}
#detail-content.yy-dialog-body{flex:1 1 auto;min-height:0;-webkit-overflow-scrolling:touch}
#detail-dialog .detail-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
#detail-dialog .detail-gallery button{width:100%;min-width:0;min-height:96px}
#detail-dialog .detail-gallery img{width:100%;height:auto;min-height:96px}
@media(max-width:700px){#detail-dialog .detail-gallery{grid-template-columns:minmax(0,1fr)}}
