#galleryPage>.cards{grid-template-columns:repeat(3,minmax(0,1fr))}
.gallery-view-tabs,.gallery-queue-tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:16px 0}
.gallery-queue-tabs{padding:0 20px 18px;margin:0;border-bottom:1px solid #eee}.gallery-queue-tabs>.small-note{margin-left:auto}
.gallery-filter-form{display:grid;grid-template-columns:minmax(220px,2fr) repeat(3,minmax(130px,1fr)) auto auto;gap:12px;align-items:end;padding:20px}
.gallery-filter-form label,.gallery-group-form>label,.gallery-form-columns label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#777}
.gallery-filter-form input,.gallery-filter-form select,.gallery-group-form input:not([type=checkbox]),.gallery-group-form select,.gallery-concurrency-form select{box-sizing:border-box;width:100%;height:42px;padding:0 11px;font:inherit;font-size:13px;border:1px solid #ddd;border-radius:10px;background:#fafaf9;color:#222}
.gallery-filter-form input:focus-visible,.gallery-filter-form select:focus-visible,.gallery-group-form input:focus-visible,.gallery-group-form select:focus-visible,.gallery-concurrency-form select:focus-visible{outline:2px solid #222;outline-offset:2px}.gallery-filter-form button{min-height:42px}
.gallery-batch-scope{display:flex;align-items:center;gap:8px;font-size:12px;color:#777}
.gallery-group-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px;padding:20px}
.gallery-group-card{min-width:0;border:1px solid #e6e6e3;border-radius:16px;overflow:hidden;background:#fff}
.gallery-group-cover{position:relative;display:block;width:100%;aspect-ratio:4/3;padding:0;border:0;background:#f5f5f2;cursor:pointer;color:#777}
.gallery-group-cover img{display:block;width:100%;height:100%;object-fit:contain}.gallery-group-cover>b{position:absolute;right:10px;bottom:10px;padding:5px 9px;border-radius:999px;background:#111;color:#fff;font-size:12px}.gallery-no-cover{display:grid;height:100%;place-items:center;font-size:13px}
.gallery-group-info{padding:15px}.gallery-group-info h3{font-size:15px;line-height:1.5;margin:8px 0;overflow-wrap:anywhere}.gallery-group-info p{font-size:12px;color:#666;line-height:1.6;margin:7px 0}.gallery-group-info small{display:block;color:#888;font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.gallery-group-info .inline-actions{margin-top:12px;gap:6px;flex-wrap:wrap}.gallery-group-info .row-btn{font-size:11px;min-height:34px;padding:7px 9px}
.gallery-group-state{font-size:11px;color:#777}.gallery-group-state.pending{color:#805f1c;font-weight:700}
.gallery-group-caption{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:38px}.gallery-outfit-note{display:inline-block;font-size:11px;padding:4px 7px;background:#f5f1e8;border-radius:7px;color:#765b28;margin:3px 0}.gallery-import-source{display:block;color:#888;margin-top:5px}
.gallery-detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}.gallery-detail-head h2{overflow-wrap:anywhere;margin:0 0 8px}.gallery-detail-head p{font-size:13px;color:#777;line-height:1.6}.gallery-detail-note{padding:12px 14px;border-radius:12px;background:#f7f5ef;color:#755f36;font-size:13px;line-height:1.7}
.gallery-detail-images{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:18px}.gallery-detail-picture{padding:0;border:1px solid #eee;border-radius:12px;background:#f7f7f4;overflow:hidden;cursor:pointer}.gallery-detail-picture img{display:block;width:100%;aspect-ratio:3/4;object-fit:contain}.gallery-detail-picture span{display:block;padding:10px;font-size:12px;color:#555}
.gallery-original-caption{margin-top:24px;border-top:1px solid #eee;padding-top:16px}.gallery-original-caption pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:14px;line-height:1.8}.gallery-full-image{display:block;max-width:100%;height:auto;max-height:78vh;object-fit:contain;margin:18px auto 0}
.gallery-group-form{display:grid;gap:18px;margin-top:20px}.gallery-form-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.gallery-group-form .gallery-review-check{display:flex;flex-direction:row;align-items:center;gap:9px;color:#333;font-size:13px;min-height:42px}.gallery-review-check input{width:22px;height:22px;margin:0;accent-color:#111}#galleryEditError{color:#9c3838;white-space:pre-line;font-size:13px}.gallery-group-form .small-note{line-height:1.7;margin:0}
@media(max-width:1200px){.gallery-filter-form{grid-template-columns:repeat(3,minmax(0,1fr))}.gallery-filter-form>label:first-child{grid-column:span 2}}
@media(max-width:750px){.gallery-filter-form{grid-template-columns:1fr 1fr;padding:16px}.gallery-filter-form>label:first-child{grid-column:1/-1}.gallery-group-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px;gap:12px}.gallery-group-info{padding:10px}.gallery-detail-images{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-detail-head{flex-direction:column}.gallery-queue-tabs{padding:0 16px 16px}.gallery-group-info .inline-actions{display:grid}.gallery-group-info .row-btn{width:100%}}

/* Import activity stays visible on the gallery home and refreshes independently. */
.gallery-import-live{margin:0 0 16px}.gallery-import-live-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;border-bottom:1px solid #eee}.gallery-import-live-head b{font-size:14px}.gallery-import-live-head span{font-size:12px;color:#777;margin-left:14px}.gallery-import-live-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;padding:14px 18px}.gallery-import-live-list article{min-width:0;border:1px solid #e6e6e3;border-radius:12px;padding:12px;background:#fafaf8}.gallery-live-title{display:flex;justify-content:space-between;align-items:start;gap:10px;font-size:12px}.gallery-live-title b{overflow-wrap:anywhere;min-width:0}.gallery-live-title span{flex-shrink:0;color:#806225;font-size:11px}.gallery-import-live progress{display:block;width:100%;height:7px;margin:10px 0;accent-color:#111;border:0;border-radius:999px;overflow:hidden;background:#e6e6e1}.gallery-import-live progress::-webkit-progress-bar{background:#e6e6e1}.gallery-import-live progress::-webkit-progress-value{background:#111}.gallery-import-live progress::-moz-progress-bar{background:#111}.gallery-import-live-list p,.gallery-import-live-list small{font-size:11px;color:#666;margin:6px 0;line-height:1.5;display:block}.gallery-import-live-list .inline-actions{margin-top:10px;gap:6px;flex-wrap:wrap}.gallery-import-live-list .row-btn{font-size:11px;padding:5px 8px}.gallery-import-live footer{padding:10px 18px;border-top:1px solid #eee;display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#888}.gallery-live-idle{padding:4px 18px 12px;font-size:12px;color:#777}
/* Detail: a stable header, photo grid and a separate source/metadata column. */
.gallery-detail-workbench .gallery-detail-head{position:sticky;top:-30px;z-index:2;background:#f7f7f5;padding:0 48px 16px 0;margin:0 0 16px;border-bottom:1px solid #e5e5e1;align-items:center}.gallery-detail-workbench .gallery-detail-head small{display:block;font-size:11px;color:#888;line-height:1.5;overflow-wrap:anywhere}.gallery-detail-workbench .gallery-detail-head h2{font-size:22px;margin:6px 0 0}.gallery-detail-workbench .gallery-detail-head>button{flex-shrink:0}.gallery-detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:20px;align-items:start}.gallery-detail-photo-panel{min-width:0;background:#fff;border:1px solid #e7e7e2;border-radius:14px;padding:14px}.gallery-photo-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.gallery-photo-panel-head b{font-size:14px}.gallery-photo-panel-head span,.gallery-photo-panel-head small{color:#888;font-size:11px;font-weight:400}.gallery-detail-workbench .gallery-detail-images{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0}.gallery-detail-workbench .gallery-detail-picture span{font-size:11px;padding:8px 4px}.gallery-detail-sidebar{position:sticky;top:66px;min-width:0;display:grid;gap:14px}.gallery-detail-facts,.gallery-detail-workbench .gallery-original-caption{background:#fff;border:1px solid #e7e7e2;border-radius:14px;padding:16px;margin:0}.gallery-detail-sidebar h3{font-size:14px;margin:0 0 12px}.gallery-style-chips{display:flex;flex-wrap:wrap;gap:6px}.gallery-style-chips b{padding:5px 7px;border:1px solid #e4e4df;border-radius:7px;font-size:12px;overflow-wrap:anywhere;background:#f8f8f5}.gallery-detail-facts dl{display:grid;grid-template-columns:65px minmax(0,1fr);gap:10px;font-size:12px;line-height:1.6;margin:16px 0 0}.gallery-detail-facts dt{color:#999}.gallery-detail-facts dd{margin:0;color:#444;overflow-wrap:anywhere}.gallery-detail-workbench .gallery-detail-note{font-size:11px;line-height:1.7;padding:9px;margin:12px 0 0}.gallery-detail-workbench .gallery-original-caption pre{font-size:12px;line-height:1.9;margin:0;max-height:38vh;overflow:auto}.gallery-detail-processing{font-size:11px;line-height:1.6;color:#888;margin:12px 0 0}
/* One viewer for the entire source group, independent of thumbnail pagination. */
.gallery-zoom{height:min(74vh,780px);min-height:300px;display:grid;grid-template-rows:auto minmax(0,1fr) auto auto;gap:12px}.gallery-zoom>header{height:auto;min-height:42px;padding:0 44px 8px 0;border:0;display:flex;align-items:center;justify-content:space-between;gap:16px}.gallery-zoom>header strong{font-size:14px}.gallery-zoom-stage{min-height:0;background:#eeeee9;overflow:hidden;display:flex;align-items:center;justify-content:center;border-radius:12px}.gallery-zoom-stage .gallery-full-image{width:100%;height:100%;max-height:100%;max-width:100%;object-fit:contain;margin:0}.gallery-zoom-controls{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center}.gallery-zoom-controls>button{min-height:44px;min-width:120px;font-weight:700}.gallery-zoom-controls p{font-size:12px;color:#888;text-align:center;line-height:1.6;margin:0}.gallery-zoom>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;color:#999;min-height:20px}.gallery-zoom button:disabled{opacity:.35;cursor:default}.gallery-zoom [hidden]{display:none!important}
@media(max-width:1000px){.gallery-detail-layout{grid-template-columns:minmax(0,1fr) 250px;gap:14px}.gallery-detail-workbench .gallery-detail-images{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:750px){.gallery-import-live-head{align-items:start}.gallery-import-live-head span{display:block;margin:6px 0 0;line-height:1.6}.gallery-import-live-list{grid-template-columns:1fr}.gallery-import-live footer{flex-wrap:wrap}.gallery-detail-layout{grid-template-columns:1fr}.gallery-detail-sidebar{position:static}.gallery-detail-workbench .gallery-detail-head{top:-24px;padding-right:32px;flex-direction:row;align-items:center}.gallery-detail-workbench .gallery-detail-head h2{font-size:19px}.gallery-detail-workbench .gallery-detail-head>button{font-size:12px}.gallery-detail-workbench .gallery-original-caption pre{max-height:none}.gallery-zoom-controls{grid-template-columns:1fr 1fr}.gallery-zoom-controls p{grid-column:1/-1;grid-row:2}.gallery-zoom-controls>button{min-width:0}.gallery-zoom>header{gap:8px}.gallery-zoom>header strong{font-size:12px}.gallery-zoom{height:73vh}}

.gallery-detail-workbench .gallery-detail-sidebar{padding:0;background:transparent;color:#151515}.gallery-detail-workbench .gallery-original-caption pre{color:#444}

.gallery-runtime{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px 18px;border-bottom:1px solid #ececea;background:#fafaf8}.gallery-runtime>div{min-width:0}.gallery-runtime b,.gallery-runtime span{display:block;font-size:12px;line-height:1.8}.gallery-runtime span{color:#777}.gallery-runtime .gallery-stage-times{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px 22px}.gallery-stage-times small{color:#999;margin-left:5px}.gallery-concurrency-form label{display:grid;gap:8px;font-size:14px}.gallery-concurrency-form select{width:100%;min-height:42px}.gallery-concurrency-form label small{font-size:12px;line-height:1.7;color:#888}.gallery-concurrency-presets{margin:18px 0;font-size:13px}.gallery-concurrency-note{font-size:13px;line-height:1.8;color:#777}.gallery-concurrency-form #galleryConcurrencyError{font-size:13px;color:#92551f;min-height:20px}.gallery-concurrency-form .gallery-runtime{border:1px solid #e8e8e3;border-radius:12px;margin:16px 0}@media(max-width:650px){.gallery-runtime{grid-template-columns:1fr}.gallery-concurrency-form .gallery-form-columns{grid-template-columns:1fr}}

.gallery-pause-note{margin:0;padding:14px 18px;background:#f3f3ed;color:#555;font-size:13px;line-height:1.8;border-bottom:1px solid #e7e7e1}.gallery-import-live-head>.inline-actions{flex-wrap:wrap;justify-content:flex-end}

.gallery-search-status{padding:16px 18px;border-bottom:1px solid #e5e5df;background:#f8f8f4}.gallery-search-heading{display:flex;justify-content:space-between;gap:16px;align-items:center}.gallery-search-heading strong{font-size:14px}.gallery-search-heading span,.gallery-search-status p,.gallery-search-status small{font-size:12px;color:#888;line-height:1.8}.gallery-search-status p{margin:8px 0 0}.gallery-search-status.ready{background:#f1f5ef}.gallery-search-status.unavailable{background:#faf4ed}.gallery-search-metrics{display:flex;flex-wrap:wrap;gap:8px 26px;font-size:12px;margin:12px 0;color:#666}.gallery-search-status progress{width:100%;height:8px;accent-color:#151515;display:block;margin-top:12px}.gallery-search-status small{display:block;margin-top:8px}@media(max-width:650px){.gallery-search-heading{align-items:flex-start;flex-direction:column;gap:4px}}
/* Image-first gallery: metadata appears over the photo instead of below it. */
.gallery-group-card{position:relative;aspect-ratio:3/4;background:#f1f1ed;isolation:isolate}
.gallery-group-cover{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;border-radius:inherit;overflow:hidden}
.gallery-group-cover img{width:100%;height:100%;object-fit:cover;object-position:center}
.gallery-group-cover:focus-visible{outline:2px solid #171717;outline-offset:-4px}
.gallery-group-info{position:absolute;z-index:2;bottom:0;left:0;right:0;max-height:100%;overflow:auto;padding:32px 16px 16px;background:linear-gradient(180deg,rgba(17,17,17,0),rgba(17,17,17,.24) 24%,rgba(17,17,17,.50) 58%,rgba(17,17,17,.74));color:white;opacity:0;visibility:hidden;transform:translateY(10px);pointer-events:none;transition:opacity .16s ease,transform .16s ease,visibility .16s;scrollbar-width:thin;scrollbar-color:#ffffff70 transparent;backdrop-filter:none;text-shadow:0 1px 3px rgba(0,0,0,.7)}
.gallery-group-card:hover .gallery-group-info,.gallery-group-card:focus-within .gallery-group-info,.gallery-group-card.is-info-open .gallery-group-info{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
.gallery-group-info .gallery-group-state,.gallery-group-info .gallery-group-state.pending{color:#f4f0df;font-size:11px;font-weight:400;padding-right:42px}
.gallery-group-info h3{font-size:16px;line-height:1.4;margin:7px 0;overflow-wrap:anywhere;color:#fff}
.gallery-group-info p{font-size:12px;color:#ffffffe0;line-height:1.6;margin:6px 0}
.gallery-group-info small{font-size:11px;color:#ffffffb8;line-height:1.5;overflow-wrap:anywhere}
.gallery-group-info .gallery-group-caption{min-height:0;-webkit-line-clamp:2;margin:7px 0 0}
.gallery-group-info .gallery-outfit-note{background:#ffffff20;color:#fff;font-size:11px;padding:3px 6px;margin:7px 0 0}
.gallery-image-count{float:right;font-size:11px;line-height:1.5;color:#ffffffbd}
.gallery-group-info .inline-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}
.gallery-group-info .row-btn{border-color:#ffffff65;background:#ffffff12;color:#fff;font-size:11px;min-height:34px;padding:7px 10px;border-radius:8px;flex:1;white-space:nowrap;width:auto}
.gallery-group-info .row-btn:hover{background:#ffffff30}
.gallery-group-info .row-btn:focus-visible,.gallery-group-info-toggle:focus-visible{outline:2px solid white;outline-offset:2px}
.gallery-group-info-toggle{display:none;position:absolute;right:10px;top:10px;z-index:3;min-height:34px;border:1px solid #ffffff70;background:#17171770;color:#fff;border-radius:9px;padding:6px 10px;font:inherit;font-size:12px;backdrop-filter:blur(4px);cursor:pointer}
@media(hover:none){.gallery-group-info-toggle{display:block}.gallery-group-card:hover:not(.is-info-open):not(:focus-within) .gallery-group-info{opacity:0;visibility:hidden;pointer-events:none}}
@media(max-width:750px){.gallery-group-info{padding:28px 12px 12px}.gallery-group-info h3{font-size:14px}.gallery-group-info .row-btn{padding:7px 8px}.gallery-group-info .inline-actions{gap:5px}}
@media(prefers-reduced-motion:reduce){.gallery-group-info{transition:none;transform:none}}

@media(hover:none){.gallery-group-card:has(.gallery-group-info-toggle:focus):not(.is-info-open) .gallery-group-info{opacity:0;visibility:hidden;pointer-events:none}}


/* Extend the fade above the metadata without blurring the photograph. */
.gallery-group-info{padding-top:76px}@media(max-width:750px){.gallery-group-info{padding-top:54px}}
/* Group thumbnails fill their frames; the full-size viewer preserves the original image. */
.gallery-group-card{cursor:pointer}
.gallery-detail-workbench .gallery-detail-picture{position:relative;aspect-ratio:3/4;min-width:0;align-self:start}
.gallery-detail-workbench .gallery-detail-picture img{display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;object-position:center}
.gallery-detail-workbench .gallery-detail-picture span{position:absolute;left:0;right:0;bottom:0;padding:24px 8px 10px;background:linear-gradient(transparent,rgba(17,17,17,.55));color:#fff;opacity:0;transition:opacity .15s;pointer-events:none}
.gallery-detail-workbench .gallery-detail-picture:hover span,.gallery-detail-workbench .gallery-detail-picture:focus-visible span{opacity:1}
.gallery-detail-workbench .gallery-detail-picture:focus-visible{outline:2px solid #171717;outline-offset:2px}
@media(hover:none){.gallery-detail-workbench .gallery-detail-picture span{opacity:1}}
@media(prefers-reduced-motion:reduce){.gallery-detail-workbench .gallery-detail-picture span{transition:none}}
.gallery-group-cover>.gallery-cover-count{z-index:4;pointer-events:none;background:rgba(17,17,17,.65);font-size:11px;padding:5px 8px;line-height:1.4;backdrop-filter:blur(3px)}.gallery-group-info{padding-bottom:46px}
.gallery-group-cover>.gallery-cover-count{top:10px;bottom:auto}.gallery-group-info-toggle{right:auto;left:10px}.gallery-group-info{padding-bottom:16px}
/* Edge-to-edge black image viewer; scoped to the large-image view only. */
.platform-modal:has(.gallery-zoom){padding:0;background:#0e0e0e}
.platform-modal-card.wide:has(.gallery-zoom){width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0;background:#0e0e0e;box-shadow:none}
.platform-modal-body:has(.gallery-zoom){padding:0;height:100%;max-height:100%;overflow:hidden;scrollbar-gutter:auto}
.gallery-zoom{position:relative;display:block;width:100%;height:100%;min-height:0;background:#0e0e0e;color:#fff}
.gallery-zoom-stage{position:absolute;inset:0;width:100%;height:100%;border-radius:0;background:#0e0e0e}
.gallery-zoom-stage .gallery-full-image{display:block;width:100%;height:100%;max-height:100%;max-width:100%;object-fit:contain;margin:0}
.gallery-zoom>header{position:absolute;left:0;right:0;top:0;z-index:3;min-height:0;height:auto;padding:20px 78px 32px 22px;background:linear-gradient(#0006,transparent);pointer-events:none}
.gallery-zoom>header button{pointer-events:auto}
.gallery-zoom>header strong{font-size:13px;font-weight:500;text-shadow:0 1px 4px #0008}
.gallery-zoom .row-btn,.gallery-zoom .row-btn.primary-dark{background:#17171765;border:1px solid #ffffff45;color:#fff;border-radius:10px;padding:10px 14px;font:inherit;font-size:13px;cursor:pointer;backdrop-filter:blur(5px)}
.gallery-zoom .row-btn:hover{background:#333b}
.gallery-zoom .row-btn:focus-visible{outline:2px solid #fff;outline-offset:3px}
.gallery-zoom-controls{display:contents}
.gallery-zoom-controls>button{position:absolute;z-index:3;top:50%;transform:translateY(-50%);min-height:46px;min-width:0;font-weight:400}
#galleryZoomPrev{left:22px}#galleryZoomNext{right:22px}
.gallery-zoom-controls>p{position:absolute;z-index:2;left:50%;bottom:66px;transform:translateX(-50%);max-width:80%;padding:6px 12px;background:#1119;color:#eee;border-radius:8px;font-size:12px;line-height:1.6}
.gallery-zoom-controls>p:empty{display:none}
.gallery-zoom>footer{position:absolute;left:22px;right:22px;bottom:20px;z-index:3;color:#ffffffb0;font-size:12px;min-height:0;text-shadow:0 1px 4px #0008}
.platform-modal-card:has(.gallery-zoom)>.platform-modal-close{position:absolute;z-index:5;right:20px;top:18px;width:38px;height:38px;border:1px solid #ffffff40;background:#17171770;color:#fff;border-radius:10px}
.gallery-zoom>header,.gallery-zoom>footer,.gallery-zoom-controls>button,.platform-modal-card:has(.gallery-zoom)>.platform-modal-close{transition:opacity .2s}
.gallery-zoom.viewer-ui-hidden>header,.gallery-zoom.viewer-ui-hidden>footer,.gallery-zoom.viewer-ui-hidden .gallery-zoom-controls>button,.platform-modal-card:has(.gallery-zoom.viewer-ui-hidden)>.platform-modal-close{opacity:0;pointer-events:none}
.gallery-zoom.viewer-ui-hidden>header button{pointer-events:none}
.platform-modal-card:has(.gallery-zoom)>.platform-modal-close:focus-visible{opacity:1;pointer-events:auto;outline:2px solid #fff}
@media(max-width:750px){.gallery-zoom>header{padding:16px 66px 28px 14px}.platform-modal-card:has(.gallery-zoom)>.platform-modal-close{top:14px;right:14px}.gallery-zoom-controls>button{padding:9px 10px;font-size:12px;min-height:40px}#galleryZoomPrev{left:12px}#galleryZoomNext{right:12px}.gallery-zoom>footer{left:14px;right:14px;bottom:max(16px,env(safe-area-inset-bottom));font-size:11px}.gallery-zoom-controls>p{bottom:60px}}
@media(prefers-reduced-motion:reduce){.gallery-zoom>header,.gallery-zoom>footer,.gallery-zoom-controls>button,.platform-modal-card:has(.gallery-zoom)>.platform-modal-close{transition:none}}

.gallery-zoom-stage{touch-action:none;user-select:none;overscroll-behavior:contain}.gallery-zoom-stage.is-zoomed{cursor:grab}.gallery-zoom-stage.is-dragging{cursor:grabbing}.gallery-zoom-stage .gallery-full-image{transform-origin:center;will-change:transform;user-select:none;-webkit-user-drag:none}#galleryZoomScale{font-variant-numeric:tabular-nums;flex-shrink:0;color:#fff;background:#17171765;padding:4px 8px;border-radius:6px}.gallery-zoom>footer{flex-wrap:wrap}.gallery-zoom>footer>span:first-child{min-width:0}
.gallery-detail-facts .gallery-style-chips{gap:6px}.gallery-style-chips>.row-btn{font:inherit;font-size:12px;font-weight:600;line-height:1.5;padding:5px 9px;border:1px solid #deded7;background:#f8f8f5;color:#222;border-radius:7px;cursor:pointer}.gallery-style-chips>.row-btn:hover{background:#eeeee8;border-color:#999}.gallery-style-help{display:block;margin-top:7px;color:#999;font-size:10px;line-height:1.6}.gallery-style-field{display:grid;gap:9px}.gallery-style-field>label{font-size:12px;color:#666}.gallery-style-field>label>span{margin-left:8px;color:#999;font-size:11px}.gallery-style-field>small{font-size:11px;line-height:1.6;color:#999}.gallery-style-options{display:flex;flex-wrap:wrap;gap:8px}.gallery-style-options>.row-btn{min-height:36px;padding:7px 12px;background:#fff;color:#666;border:1px solid #deded7;border-radius:8px;font:inherit;font-size:13px;cursor:pointer}.gallery-style-options>.row-btn[aria-pressed=true]{background:#191919;color:#fff;border-color:#191919}.gallery-style-options>.row-btn:focus-visible,.gallery-style-chips>.row-btn:focus-visible{outline:2px solid #222;outline-offset:2px}.gallery-style-field>input{margin:0}.gallery-style-options>small{font-size:12px;color:#999}
.gallery-edit-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 42px 22px 0;border-bottom:1px solid #e5e5df;margin-bottom:20px}.gallery-edit-heading small{font-size:11px;color:#999}.gallery-edit-heading h2{font-size:24px;margin:6px 0 8px}.gallery-edit-heading p{font-size:13px;line-height:1.7;color:#777;margin:0}.gallery-edit-badge{font-size:11px;color:#777;padding:6px 10px;border:1px solid #deded5;border-radius:7px;white-space:nowrap}.gallery-edit-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.9fr);gap:22px;align-items:start}.gallery-edit-evidence{display:grid;gap:16px;min-width:0}.gallery-edit-panel{border:1px solid #e3e3dd;border-radius:14px;background:#fff;overflow:hidden}.gallery-edit-panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid #eee}.gallery-edit-panel-title b{font-size:14px}.gallery-edit-panel-title small{font-size:11px;color:#999;text-align:right;overflow-wrap:anywhere}.gallery-edit-caption{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:13px;color:#555;line-height:1.9;margin:0;padding:16px 18px;max-height:200px;overflow:auto}.gallery-edit-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;max-height:480px;overflow:auto}.gallery-edit-photos figure{position:relative;margin:0;aspect-ratio:3/4;background:#f5f5f1;border-radius:9px;overflow:hidden}.gallery-edit-photos img{width:100%;height:100%;object-fit:cover;display:block}.gallery-edit-photos figcaption{position:absolute;right:8px;bottom:8px;padding:3px 7px;background:#1118;border-radius:6px;color:white;font-size:11px}.gallery-edit-form{display:grid;gap:16px;min-width:0;margin:0;position:sticky;top:0}.gallery-edit-form-section{padding:18px;display:grid;gap:16px}.gallery-edit-instruction,.gallery-edit-outfit-note,.gallery-edit-scope{font-size:12px;color:#888;line-height:1.8;margin:0}.gallery-edit-outfit-note{padding-top:12px;border-top:1px solid #efefea}.gallery-edit-selection{font-size:12px;color:#555;margin:0}.gallery-style-manual>summary{cursor:pointer;font-size:12px;color:#555;list-style:none}.gallery-style-manual>summary:before{content:'＋';margin-right:6px}.gallery-style-manual[open]>summary:before{content:'－'}.gallery-style-add{display:flex;gap:8px;margin-top:12px}.gallery-style-add>input{flex:1;min-width:0}.gallery-style-add>button{flex-shrink:0}.gallery-style-manual>small{display:block;color:#a12b25;font-size:11px;line-height:1.7;margin-top:6px}.gallery-edit-extra>summary{display:flex;align-items:center;gap:10px;cursor:pointer;padding:16px 18px;list-style:none}.gallery-edit-extra>summary>b{font-size:14px}.gallery-edit-extra>summary>small{font-size:11px;color:#999;margin-left:auto}.gallery-edit-extra>summary:after{content:'＋';color:#888}.gallery-edit-extra[open]>summary:after{content:'－'}.gallery-edit-extra[open]>summary{border-bottom:1px solid #eee}.gallery-edit-field{display:grid;gap:8px;font-size:12px;color:#777}.gallery-edit-extra-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.gallery-edit-form .xui-inline-input,.gallery-edit-form select{width:100%;min-height:42px;padding:10px 12px;border:1px solid #deded7;border-radius:9px;background:#fafaf8;font:inherit;font-size:13px;box-sizing:border-box;color:#222;outline:none}.gallery-edit-form input:focus-visible,.gallery-edit-form select:focus-visible,.gallery-edit-form summary:focus-visible{outline:2px solid #222;outline-offset:2px}.gallery-edit-form .row-btn{font:inherit;font-size:12px;min-height:36px;padding:8px 11px;border-radius:8px}.gallery-edit-form .row-btn.primary-dark{background:#171717;border-color:#171717;color:white}.gallery-edit-scope{font-size:11px;padding:0 3px}.gallery-edit-footer{display:grid;gap:12px;padding-top:16px;border-top:1px solid #deded7}.gallery-edit-footer>span{font-size:11px;line-height:1.7;color:#888}.gallery-edit-footer>div{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}#galleryEditError:empty{display:none}#galleryEditError:not(:empty){font-size:12px;line-height:1.8;margin:0;padding:12px;border:1px solid #edd9d5;background:#fff7f5;border-radius:9px}.gallery-edit-photos>.empty{grid-column:1/-1;font-size:12px;padding:20px}@media(max-width:850px){.gallery-edit-layout{grid-template-columns:1fr}.gallery-edit-form{position:static}.gallery-edit-photos{grid-template-columns:repeat(3,minmax(0,1fr));max-height:240px}.gallery-edit-caption{max-height:130px}.gallery-edit-heading h2{font-size:21px}.gallery-edit-badge{display:none}.gallery-edit-footer{position:sticky;bottom:-24px;background:#f7f7f5;padding:14px 0;z-index:2}}@media(max-width:500px){.gallery-edit-photos{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-edit-footer>div{display:grid;grid-template-columns:auto 1fr 1fr}.gallery-edit-footer>span{font-size:10px}}

.gallery-edit-evidence{background:transparent;color:#171717;padding:0}.gallery-edit-footer{position:sticky;bottom:0;background:#f7f7f5;z-index:2;padding-bottom:8px}@media(min-width:851px){.gallery-edit-form{max-height:calc(88vh - 180px);overflow:auto;padding-right:4px;scrollbar-width:thin}}

.gallery-source-progress details{margin-top:10px;border-top:1px solid #e6e6e3;padding-top:8px}.gallery-source-progress summary{cursor:pointer;font-size:12px;color:#555;padding:4px 0}.gallery-progress-children{display:grid;gap:8px;margin-top:8px;max-height:360px;overflow:auto;overscroll-behavior:contain}.gallery-import-live-list .gallery-progress-children article{background:#fff;padding:10px}.gallery-progress-children .gallery-live-title b{font-size:11px}
