/* DEMO PARITY — real Client Proofing source.
 * /demo/client-selection/ must mirror this layout and gallery-unified.css.
 * Do not add a separate set of demo toolbar overrides. Check the live demo
 * whenever responsive proofing, selection states or layout change.
 * Automated guard: scripts/demo-gallery-parity-qa.js. */
.client-brand-logo{width:auto;height:46px;max-width:120px;object-fit:contain;border-radius:10px;flex:0 1 auto}.event-topbar .brand-logo-only .client-brand-logo{max-width:min(190px,42vw)}.private-preview-banner{position:sticky;top:0;z-index:200;padding:11px;text-align:center;color:#fff;background:#a02b32;font-weight:900;letter-spacing:.04em}.gallery-expiry{display:flex;justify-content:center;gap:10px 24px;flex-wrap:wrap;margin:0 0 20px;padding:14px 18px;text-align:center;border-radius:15px;color:var(--theme-text);background:color-mix(in srgb,var(--theme-accent) 16%,var(--theme-surface))}.proofing-note{display:grid;gap:5px;margin-bottom:20px;padding:17px 20px;border:1px solid color-mix(in srgb,var(--theme-primary) 35%,var(--theme-border));border-radius:17px;background:var(--theme-surface-paint,var(--theme-surface));color:var(--theme-text)}.proofing-note span{color:var(--theme-muted)}.category-filters,.selection-filters{grid-column:1/-1;display:flex;gap:7px;flex-wrap:wrap}.category-filter{padding:8px 13px;border:1px solid var(--theme-border);border-radius:999px;color:var(--theme-control-text,#17211e);background:var(--theme-control-background,#fff);font-weight:800;cursor:pointer}.category-filter.active{color:#fff;background:var(--theme-primary)}.client-selection-panel{position:relative;top:auto;z-index:60;display:grid;grid-template-columns:minmax(220px,1fr) auto auto;align-items:center;gap:20px;margin:0 0 17px;padding:18px 20px;border:2px solid var(--theme-primary);border-radius:19px;background:var(--theme-surface-paint,var(--theme-surface));box-shadow:0 15px 40px rgba(0,0,0,.18)}.client-selection-panel[hidden]{display:none}.client-selection-panel p{margin:4px 0 0;color:var(--theme-muted);font-size:.83rem}.selection-allowances{display:flex;gap:14px;flex-wrap:wrap;color:var(--theme-text)}.selection-actions{display:flex;gap:8px}.selection-message{grid-column:1/-1}.proof-select,.download-media{position:absolute;z-index:6;top:10px;right:10px;width:30px;height:30px;display:none;appearance:none;border:2px solid #fff;border-radius:50%;background:rgba(0,0,0,.55)}.selection-mode .proof-select,.selection-mode .download-media{display:block}.proof-select:checked,.download-media:checked{background:var(--theme-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3' d='m5 12 4 4L19 6'/%3E%3C/svg%3E") center/19px no-repeat}.saved-selection::after,.selection-mode .media-card.selected::after{content:'';position:absolute;inset:0;z-index:4;border:4px solid #36a268;border-radius:inherit;background:rgba(54,162,104,.09);pointer-events:none}.locked-selection::after{content:'';position:absolute;inset:0;z-index:4;border:4px solid #267b72;border-radius:inherit;pointer-events:none}.locked-badge{position:absolute;z-index:7;top:10px;left:10px;padding:6px 10px;border-radius:999px;color:#fff;background:#267b72;font-size:.72rem;font-weight:900}.video-preview-unavailable{width:100%;height:100%;display:grid;place-items:center;align-content:center;gap:10px;color:#fff;background:#252a35;font-size:2.5rem}.video-preview-unavailable small{font-size:.72rem}.finalise-panel{margin:24px 0;padding:28px 32px;border-radius:22px;background:var(--theme-surface-paint,var(--theme-surface));border:1px solid var(--theme-border)}.finalise-panel h2{margin-top:0;color:var(--theme-text)}.finalise-panel p{color:var(--theme-muted)}.finalise-confirm-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:28px;margin-top:24px}.finalise-confirm-row .checkbox-card{margin:0;color:var(--theme-text)}.finalise-confirm-row>.button{white-space:nowrap}.client-delivery-gallery .gallery-hero.has-cover{min-height:340px;display:grid;place-items:center}.client-public-gallery .event-topbar .brand-name{display:inline;max-width:min(46vw,420px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gallery-share-menu{position:relative;color:var(--theme-text)}.gallery-share-menu summary{list-style:none;padding:10px 16px;border:1px solid var(--theme-border);border-radius:999px;background:var(--theme-surface-paint,var(--theme-surface));font-weight:800;cursor:pointer}.gallery-share-menu summary::-webkit-details-marker{display:none}.gallery-share-popover{position:absolute;z-index:90;top:calc(100% + 9px);right:0;min-width:220px;display:grid;gap:7px;padding:12px;border:1px solid var(--theme-border);border-radius:16px;background:var(--theme-surface-paint,var(--theme-surface));box-shadow:0 14px 36px rgba(0,0,0,.18)}.gallery-share-popover a,.gallery-share-popover button{display:block;width:100%;padding:10px 12px;text-align:left;border:0;border-radius:10px;color:var(--theme-text);background:color-mix(in srgb,var(--theme-primary) 7%,var(--theme-surface));font:inherit;font-weight:750;text-decoration:none;cursor:pointer}.gallery-share-popover .share-result{margin:0;color:var(--theme-muted);font-size:.76rem}
@media(max-width:700px){.finalise-panel{padding:22px 18px}.finalise-confirm-row{grid-template-columns:1fr;gap:14px}.finalise-confirm-row>.button{width:100%}.client-delivery-gallery .gallery-hero.has-cover{min-height:205px}.client-public-gallery .event-topbar-inner{gap:10px}.client-public-gallery .event-topbar .brand{min-width:0}.client-public-gallery .event-topbar .brand-name{display:inline;max-width:58vw;font-size:.93rem}.client-public-gallery .brand-mark{flex:0 0 auto;width:42px;height:42px}.client-public-gallery .client-brand-logo{flex:0 1 auto;width:auto;height:42px;max-width:86px}.client-public-gallery .brand-logo-only .client-brand-logo{max-width:min(150px,40vw)}.gallery-share-menu summary{padding:9px 12px;font-size:.82rem}.gallery-share-popover{position:fixed;top:76px;right:10px;left:10px;min-width:0}}
.combined-source-filters{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%}.combined-source-filters .filter-button{width:100%;min-width:0;margin:0;padding:13px 16px;text-align:center}.combined-source-filters .filter-button.active{color:#fff;background:var(--theme-primary-paint,var(--theme-primary));border-color:var(--theme-primary)}
.client-gallery-header-actions{flex:0 0 auto;display:flex;align-items:center;gap:8px}.client-gallery-header-actions button,.client-gallery-header-actions .gallery-header-link{min-height:40px;display:inline-flex;align-items:center;justify-content:center;padding:8px 15px;border:1px solid var(--theme-border);border-radius:999px;color:var(--theme-primary);background:var(--theme-surface-paint,var(--theme-surface));font:inherit;font-size:.9rem;font-weight:700;text-decoration:none;cursor:pointer}.combined-client-gallery .event-topbar .brand-name{display:inline;max-width:min(46vw,420px)}
@media(max-width:700px){.client-gallery-header-actions{gap:7px}.client-gallery-header-actions a,.client-gallery-header-actions button{min-height:38px;padding:7px 12px;font-size:.8rem}.combined-client-gallery .event-topbar .brand-name{display:inline;max-width:calc(100vw - 230px);font-size:.84rem}}
.selection-complete-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;margin:0 0 22px;padding:24px;border:2px solid var(--theme-accent);border-radius:22px;color:var(--theme-text);background:var(--theme-surface-paint,var(--theme-surface));box-shadow:0 14px 34px rgba(18,62,49,.12)}.selection-complete-panel h2{margin:3px 0 8px}.selection-complete-panel p{margin:0;color:var(--theme-muted)}.selection-complete-panel .eyebrow{color:var(--theme-accent)}.selection-complete-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.selection-complete-panel .share-result{grid-column:1/-1;color:var(--theme-primary);font-weight:800}.proof-delivery-link{width:max-content;margin-top:8px}.fallback-video-preview{isolation:isolate}.fallback-video-preview video{position:relative;z-index:1}.proof-video-watermark{position:absolute;z-index:5;inset:50% auto auto 50%;transform:translate(-50%,-50%) rotate(-18deg);max-width:80%;padding:9px 13px;border:2px solid rgba(255,255,255,.76);color:#fff;background:rgba(0,0,0,.26);font-size:clamp(.72rem,1.8vw,1.15rem);font-weight:900;line-height:1.25;text-align:center;letter-spacing:.08em;text-shadow:0 1px 4px #000;pointer-events:none}.fallback-video-lightbox{position:relative}.proof-video-watermark-lightbox{font-size:clamp(1rem,3vw,2rem)}
@media(max-width:760px){.client-selection-panel{top:6px;grid-template-columns:1fr;gap:10px}.selection-actions{display:grid;grid-template-columns:1fr 1fr}.gallery-control-actions{grid-template-columns:1fr auto}.category-filters,.selection-filters{overflow-x:auto;flex-wrap:nowrap;padding-bottom:3px}.category-filter{white-space:nowrap}.selection-complete-panel{grid-template-columns:1fr}.selection-complete-actions{justify-content:stretch}.selection-complete-actions .button{flex:1}.gallery-control-actions:has(#jump-finalise){grid-template-columns:1fr 1fr}.gallery-control-actions:has(#jump-finalise) .sort-select{grid-column:1/-1}}
.client-public-gallery .button{color:#fff;background:var(--theme-primary-paint,var(--theme-primary));border-color:var(--theme-primary);box-shadow:0 10px 24px color-mix(in srgb,var(--theme-primary) 25%,transparent)}.client-public-gallery .button:hover{box-shadow:0 13px 28px color-mix(in srgb,var(--theme-primary) 30%,transparent)}.client-public-gallery .button-secondary,.client-public-gallery .button-light{color:var(--theme-primary);background:var(--theme-control-background,var(--theme-surface));border:1px solid var(--theme-border);box-shadow:none}
.private-client-preview .event-topbar{top:0}.private-client-preview .private-preview-banner{position:relative;top:auto}.private-client-preview .private-proof-preview{max-width:1500px;margin:0 auto;padding:26px 20px 48px}.private-client-preview .private-proof-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}.private-proof-pending{cursor:default}.private-proof-pending .pending-media-placeholder{min-height:190px;display:grid;place-content:center;gap:7px;padding:20px;color:var(--theme-text);background:var(--theme-surface-paint,var(--theme-surface));text-align:center}.private-proof-pending .pending-media-placeholder span{font-weight:900}.private-proof-pending .pending-media-placeholder small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--theme-muted)}.gallery-footer-message{margin:28px auto 0;color:var(--theme-muted);text-align:center}
@media(max-width:700px){.private-client-preview .private-preview-banner{padding:9px 12px;font-size:.72rem}.private-client-preview .event-topbar-inner{gap:8px}.private-client-preview .event-topbar .button{padding:8px 10px;font-size:.75rem}.private-client-preview .private-proof-preview{padding:18px 12px 38px}.private-client-preview .private-proof-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.finalise-confirm-row .checkbox-card{display:flex;align-items:flex-start;justify-content:flex-start;gap:12px;min-width:0}.finalise-confirm-row .checkbox-card>input[type="checkbox"]{width:20px;height:20px;flex:0 0 20px;margin:3px 0 0;accent-color:var(--theme-primary)}.finalise-confirm-row .checkbox-card>span{display:grid;flex:1 1 auto;min-width:0;gap:6px}.finalise-confirm-row .checkbox-card strong,.finalise-confirm-row .checkbox-card small{display:block;line-height:1.5}

@media(max-width:700px){
    .client-public-gallery .gallery-category-dropdown{display:block;min-width:0}
    .client-public-gallery .gallery-category-dropdown>span{display:none}
    .client-public-gallery .gallery-category-dropdown select{width:100%}
    .client-delivery-gallery .gallery-controls>.filter-group{flex:0 0 100%}
    .client-delivery-gallery .gallery-controls>.gallery-control-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto auto}
    .client-delivery-gallery .gallery-controls>.gallery-control-actions .gallery-category-dropdown{grid-column:1}
    .client-delivery-gallery .gallery-controls>.gallery-control-actions .sort-select{grid-column:2}
    .client-delivery-gallery .gallery-controls>.gallery-control-actions .gallery-view-toggle{grid-column:3}
    .client-delivery-gallery .gallery-controls>.gallery-control-actions #select-media,
    .client-delivery-gallery .gallery-controls>.gallery-control-actions #demo-download-select{grid-column:4}
    .client-delivery-gallery .gallery-controls>.gallery-control-actions:not(:has(.gallery-category-dropdown)){grid-template-columns:minmax(0,1fr) auto auto}
    .client-delivery-gallery .gallery-controls>.gallery-control-actions:not(:has(.gallery-category-dropdown)) .sort-select{grid-column:1}
    .client-delivery-gallery .gallery-controls>.gallery-control-actions:not(:has(.gallery-category-dropdown)) .gallery-view-toggle{grid-column:2}
    .client-delivery-gallery .gallery-controls>.gallery-control-actions:not(:has(.gallery-category-dropdown)) #select-media,
    .client-delivery-gallery .gallery-controls>.gallery-control-actions:not(:has(.gallery-category-dropdown)) #demo-download-select{grid-column:3}
}


/* Theme-aware guest upload completion state */
.guest-complete.notice-success{
    color:var(--theme-primary-dark,var(--theme-text));
    background:color-mix(in srgb,var(--theme-accent) 34%,var(--theme-surface));
    border-color:color-mix(in srgb,var(--theme-accent) 72%,var(--theme-border));
}


/* Compact proofing toolbar */
.proofing-gallery-controls{display:flex;flex-wrap:nowrap;align-items:center;gap:8px}
.proofing-filter-controls{display:flex;flex:1 1 auto;align-items:center;gap:7px;min-width:0}
.proofing-filter-controls .gallery-category-dropdown{flex:1 1 170px;max-width:240px}
.proofing-filter-controls .selection-filters{display:flex;flex:0 0 auto;align-items:center;gap:5px;flex-wrap:nowrap}
.client-proofing-gallery .proofing-gallery-controls>.gallery-control-actions{display:flex;flex:0 1 auto;align-items:center;justify-content:flex-end;margin-left:auto;gap:7px}
.client-proofing-gallery .proofing-gallery-controls>.gallery-control-actions .sort-select{order:1;flex:1 1 150px;min-width:135px;max-width:210px}
.client-proofing-gallery .proofing-gallery-controls>.gallery-control-actions .gallery-view-toggle{order:2}
.client-proofing-gallery .proofing-gallery-controls>.gallery-control-actions #jump-finalise,
.client-proofing-gallery .proofing-gallery-controls>.gallery-control-actions #demo-jump-finalise{order:3;white-space:nowrap}
.client-proofing-gallery .proofing-gallery-controls>.gallery-control-actions #select-media,
.client-proofing-gallery .proofing-gallery-controls>.gallery-control-actions #demo-select{order:4}
.proofing-selection-toolbar{position:sticky;top:var(--selection-toolbar-top,82px);z-index:19;display:flex;align-items:center;gap:10px;width:100%}
.proofing-selection-toolbar .selection-allowances{margin-right:auto;white-space:nowrap}
.proofing-selection-toolbar .selection-actions{display:flex;align-items:center;gap:10px}
.proofing-selection-toolbar .selection-link{padding:6px 3px;border:0;color:var(--theme-primary);background:transparent;font:inherit;font-weight:800;cursor:pointer}
.proofing-selection-toolbar .selection-message{flex-basis:100%;margin:0}
.saved-selection::after,.selection-mode .media-card.selected::after{border-color:var(--theme-primary);background:color-mix(in srgb,var(--theme-primary) 10%,transparent)}
@media(max-width:700px){
    .proofing-gallery-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto auto;gap:6px;align-items:center}
    .proofing-filter-controls,.client-proofing-gallery .proofing-gallery-controls>.gallery-control-actions{display:contents}
    .proofing-filter-controls .gallery-category-dropdown{grid-column:1;grid-row:1;width:100%;max-width:none}
    .client-proofing-gallery .proofing-gallery-controls>.gallery-control-actions .sort-select{grid-column:2;grid-row:1;width:100%;min-width:0;max-width:none}
    .client-proofing-gallery .proofing-gallery-controls>.gallery-control-actions .gallery-view-toggle{grid-column:3;grid-row:1}
    .client-proofing-gallery .proofing-gallery-controls>.gallery-control-actions #select-media,
    .client-proofing-gallery .proofing-gallery-controls>.gallery-control-actions #demo-select{grid-column:4;grid-row:1}
    .proofing-filter-controls .selection-filters{grid-column:1/3;grid-row:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;overflow:visible}
    .proofing-filter-controls .selection-filters .category-filter{min-width:0;padding-inline:6px;white-space:nowrap}
    .client-proofing-gallery .proofing-gallery-controls>.gallery-control-actions #jump-finalise,
    .client-proofing-gallery .proofing-gallery-controls>.gallery-control-actions #demo-jump-finalise{grid-column:3/5;grid-row:2;width:100%;min-height:38px;padding-inline:8px}
    .proofing-gallery-controls:not(:has(.gallery-category-dropdown)){grid-template-columns:minmax(0,1fr) auto auto}
    .proofing-gallery-controls:not(:has(.gallery-category-dropdown)) .gallery-control-actions .sort-select{grid-column:1}
    .proofing-gallery-controls:not(:has(.gallery-category-dropdown)) .gallery-control-actions .gallery-view-toggle{grid-column:2}
    .proofing-gallery-controls:not(:has(.gallery-category-dropdown)) .gallery-control-actions #select-media,
    .proofing-gallery-controls:not(:has(.gallery-category-dropdown)) .gallery-control-actions #demo-select{grid-column:3}
    .proofing-gallery-controls:not(:has(.gallery-category-dropdown)) .proofing-filter-controls .selection-filters{grid-column:1;grid-row:2}
    .proofing-gallery-controls:not(:has(.gallery-category-dropdown)) .gallery-control-actions #jump-finalise,
    .proofing-gallery-controls:not(:has(.gallery-category-dropdown)) .gallery-control-actions #demo-jump-finalise{grid-column:2/4;grid-row:2}
    .proofing-selection-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}
    .proofing-selection-toolbar .selection-actions{gap:7px}
}


/* Restored proofing selection card and theme-contrast state */
.proofing-selection-panel{position:sticky;top:var(--selection-toolbar-top,82px);z-index:19;width:100%;border-color:var(--theme-accent)}
.proofing-selection-panel .selection-allowances{white-space:nowrap}
.saved-selection::after,.selection-mode .media-card.selected::after{border-color:var(--theme-accent);background:color-mix(in srgb,var(--theme-accent) 12%,transparent)}
@media(max-width:700px){
    .proofing-selection-panel{top:var(--selection-toolbar-top,82px);display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px;padding:9px 10px;border-width:1px;border-radius:15px}
    .proofing-selection-panel .selection-introduction{display:none}
    .proofing-selection-panel .selection-allowances{grid-column:1;margin:0;font-size:.8rem}
    .proofing-selection-panel .selection-actions{grid-column:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
    .proofing-selection-panel .selection-actions .button{min-width:0;min-height:38px;padding-inline:6px;font-size:0}
    .proofing-selection-panel .selection-actions .button:first-child::after{content:'Cancel';font-size:.78rem}
    .proofing-selection-panel .selection-actions .button:last-child::after{content:'Save';font-size:.78rem}
    .proofing-selection-panel .selection-message{grid-column:1/-1;margin:0}
}


.client-public-gallery .event-topbar .brand-name{color:var(--theme-header-text,var(--theme-text))}
.client-delivery-gallery .gallery-hero .hero-accent-line,.client-proofing-gallery .gallery-hero .hero-accent-line{margin-top:16px}

/* Match the final gallery's control spacing and keep proofing actions compact. */
.proofing-selection-panel .selection-message:empty{display:none}
@media(min-width:701px){
    .proofing-selection-panel{padding:12px 16px;gap:10px 16px}
    .proofing-selection-panel .selection-actions .button{min-height:40px;padding:9px 16px;font-size:.9rem}
    .proofing-selection-panel .selection-message{margin:0}
}
@media(max-width:700px){
    .client-proofing-gallery .proofing-gallery-controls{column-gap:6px;row-gap:8px}
    .client-proofing-gallery .proofing-gallery-controls .sort-select{padding-inline:11px 30px}
    .client-proofing-gallery .proofing-gallery-controls .gallery-category-dropdown select{padding-inline:11px 30px}
    .client-proofing-gallery .proofing-gallery-controls .gallery-view-toggle{margin:0}
    .client-proofing-gallery .proofing-gallery-controls .selection-filters{padding-bottom:0;gap:6px}
}

@media(max-width:700px){
    .client-proofing-gallery .proofing-gallery-controls:has(.selection-filters) .gallery-category-dropdown,
    .client-proofing-gallery .proofing-gallery-controls:has(.selection-filters) .gallery-control-actions .sort-select,
    .client-proofing-gallery .proofing-gallery-controls:has(.selection-filters) .gallery-control-actions .gallery-view-toggle,
    .client-proofing-gallery .proofing-gallery-controls:has(.selection-filters) .gallery-control-actions #select-media{grid-row:2}
    .client-proofing-gallery .proofing-gallery-controls .proofing-filter-controls .selection-filters,
    .client-proofing-gallery .proofing-gallery-controls .gallery-control-actions #jump-finalise{grid-row:1}
}

/* Keep the gallery brand name legible on both light and dark header themes. */
.client-public-gallery .event-topbar .brand-name,.client-public-gallery .event-topbar .brand-name span{color:var(--theme-header-text,var(--theme-text))}

/* Confirmed proof selections remain green and locked. */
.client-proofing-gallery .locked-selection::after{border-color:#1d765f;background:color-mix(in srgb,#1d765f 7%,transparent)}
.client-proofing-gallery .locked-badge{background:#1d765f}

/* Delivery gallery slideshow launcher */
.client-delivery-gallery .gallery-hero{position:relative}
.gallery-slideshow-launch{position:absolute;right:max(16px,calc((100% - 1280px)/2));bottom:16px;z-index:4;display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:8px 12px;border:1px solid color-mix(in srgb,var(--theme-text) 24%,transparent);border-radius:999px;color:var(--theme-text);background:color-mix(in srgb,var(--theme-surface) 82%,transparent);box-shadow:0 8px 22px rgba(0,0,0,.12);backdrop-filter:blur(10px);font:inherit;font-size:.8rem;font-weight:800;cursor:pointer}
.gallery-slideshow-launch:hover,.gallery-slideshow-launch:focus-visible{background:var(--theme-surface-paint,var(--theme-surface));outline:none}
.delivery-slideshow-dialog{width:min(430px,calc(100vw - 28px));padding:28px;border:0;border-radius:24px;color:var(--ink);background:#fff;box-shadow:0 28px 80px rgba(0,0,0,.28)}
.delivery-slideshow-dialog::backdrop{background:rgba(6,18,15,.72);backdrop-filter:blur(5px)}
.delivery-slideshow-dialog h2{margin:.2rem 0 .65rem;font-family:'Fraunces',Georgia,serif;font-size:clamp(1.8rem,5vw,2.4rem);line-height:1.05}
.delivery-slideshow-dialog>p:not(.eyebrow){margin:0 0 20px;color:var(--muted);line-height:1.55}
.delivery-slideshow-dialog .button{width:100%;justify-content:center}
.delivery-slideshow-dialog-close{position:absolute;top:12px;right:12px;width:38px;height:38px;border:0;border-radius:50%;color:var(--ink);background:#eef3f0;font-size:1.3rem;cursor:pointer}
@media(max-width:700px){
  .gallery-slideshow-launch{right:12px;bottom:12px;min-height:36px;padding:7px 10px;font-size:.75rem}
}

/* Delivery slideshow TV pairing + remote */
.delivery-slideshow-dialog{width:min(520px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto}
.delivery-slideshow-targets{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:14px 0 12px;padding:4px;border-radius:14px;background:#eef3f0}
.delivery-slideshow-targets button{min-height:42px;border:0;border-radius:11px;color:var(--muted);background:transparent;font:800 .82rem/1 'DM Sans',system-ui,sans-serif;cursor:pointer}
.delivery-slideshow-targets button.is-active{color:#fff;background:var(--brand);box-shadow:0 4px 12px rgba(0,0,0,.12)}
.delivery-slideshow-targets[hidden],.delivery-slideshow-device-option[hidden],.delivery-tv-panel[hidden]{display:none!important}
.delivery-slideshow-device-option{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;margin:10px 0 0;padding:14px;border:1px solid var(--line);border-radius:16px;background:#f8faf9}
.delivery-slideshow-device-option .button{width:auto;min-width:145px}
.delivery-tv-panel{padding-top:2px;border-top:0}
.delivery-tv-panel>div>strong{display:block;margin-bottom:4px;font-size:.95rem}
.delivery-tv-panel>div>p{margin:0 0 12px;color:var(--muted);font-size:.82rem;line-height:1.45}
.delivery-tv-code-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.delivery-tv-code-form input{min-width:0;padding:11px 13px;border:1px solid #cbd7d2;border-radius:12px;font:800 1.05rem/1 'DM Sans',system-ui,sans-serif;letter-spacing:.08em;text-align:center}
.delivery-tv-code-form .button{width:auto;min-width:105px}
.delivery-tv-result{min-height:18px;margin:8px 0 0!important;font-size:.74rem!important}
.delivery-tv-result.is-error{color:#a52d3d!important}
.delivery-tv-controller{display:grid;gap:14px}.delivery-tv-controller[hidden]{display:none}
.delivery-tv-connected{display:flex;align-items:center;gap:9px}
.delivery-tv-connected>div{display:grid;gap:1px}
.delivery-tv-connected small{color:var(--muted);font-size:.72rem}
.delivery-tv-status-dot{width:10px;height:10px;border-radius:50%;background:#d0a048;box-shadow:0 0 0 4px rgba(208,160,72,.12)}
.delivery-tv-status-dot.is-connected{background:#1d765f;box-shadow:0 0 0 4px rgba(29,118,95,.12)}
.delivery-tv-main-controls{display:grid;grid-template-columns:repeat(3,54px);justify-content:center;gap:9px}
.delivery-tv-icon-button{display:grid;place-items:center;width:54px;height:48px;border:1px solid #cad6d1;border-radius:14px;color:var(--ink);background:#fff;font:800 1.25rem/1 'DM Sans',system-ui,sans-serif;cursor:pointer}
.delivery-tv-play-button{color:#fff;background:var(--brand);border-color:var(--brand)}
.delivery-tv-extra-controls{display:flex;align-items:end;flex-wrap:wrap;gap:8px}
.delivery-tv-extra-controls .button{width:auto;min-height:38px}.delivery-tv-extra-controls [hidden]{display:none!important}
.delivery-tv-extra-controls label{display:grid;gap:4px;color:var(--muted);font-size:.68rem;font-weight:750}
.delivery-tv-extra-controls select{min-height:38px;padding:7px 30px 7px 10px;border:1px solid #cbd7d2;border-radius:11px;color:var(--ink);background:#fff}
.delivery-tv-volume{flex:1 1 145px}
.delivery-tv-volume input{width:100%;min-height:38px}
.delivery-tv-controller-footer{position:sticky;bottom:-1px;z-index:4;display:flex;justify-content:space-between;gap:12px;margin:0 -4px -2px;padding:12px 4px 4px;border-top:1px solid var(--line);background:#fff}
.delivery-tv-controller-footer .selection-link{padding:0}
.delivery-tv-disconnect{color:#9b2c3d!important}
@media(max-width:560px){
 .delivery-slideshow-dialog{padding:22px 18px}
 .delivery-slideshow-device-option{grid-template-columns:1fr}
 .delivery-slideshow-device-option .button{width:100%}
 .delivery-tv-code-form{grid-template-columns:minmax(0,1fr) auto}
 .delivery-tv-code-form .button{min-width:94px;padding-inline:11px}
 .delivery-display-mode{grid-template-columns:repeat(2,minmax(0,1fr))}
 .delivery-display-mode label{padding:9px}
 .delivery-display-mode span small{font-size:.68rem}
 .delivery-tv-extra-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
 .delivery-tv-extra-controls .button,.delivery-tv-extra-controls label{width:100%}
 .delivery-tv-volume{grid-column:1/-1}
}


.delivery-display-mode{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0;padding:0;border:0}.delivery-display-mode legend{grid-column:1/-1}.delivery-display-mode legend{margin-bottom:7px;color:var(--muted);font-size:.7rem;font-weight:850;letter-spacing:.05em;text-transform:uppercase}.delivery-display-mode label{display:flex;align-items:flex-start;gap:10px;padding:11px 12px;border:1px solid var(--line);border-radius:13px;background:#f8faf9;cursor:pointer}.delivery-display-mode label:has(input:checked){border-color:color-mix(in srgb,var(--brand) 55%,var(--line));background:color-mix(in srgb,var(--brand) 7%,#fff)}.delivery-display-mode input{flex:0 0 auto;margin:3px 0 0;accent-color:var(--brand)}.delivery-display-mode span{display:grid;gap:3px}.delivery-display-mode span strong{font-size:.84rem}.delivery-display-mode span small{color:var(--muted);font-size:.72rem;line-height:1.4}
.delivery-display-video-choice{display:flex;align-items:flex-start;gap:10px;margin:10px 0 14px;padding:11px 12px;border:1px solid var(--line);border-radius:13px;background:#fff;cursor:pointer}.delivery-tv-live-video-choice{display:flex!important;align-items:center;gap:7px;min-height:38px;padding:7px 10px;border:1px solid #cbd7d2;border-radius:11px;color:var(--ink)!important;background:#fff;font-size:.72rem!important;font-weight:800!important}.delivery-tv-live-video-choice input{margin:0;accent-color:var(--brand)}.delivery-display-video-choice input{flex:0 0 auto;margin:3px 0 0;accent-color:var(--brand)}.delivery-display-video-choice span{display:grid;gap:3px}.delivery-display-video-choice strong{font-size:.84rem}.delivery-display-video-choice small{color:var(--muted);font-size:.72rem;line-height:1.4}
.delivery-tv-panel [data-tv-create]{width:100%;margin-top:4px}
.delivery-tv-link-box{display:grid;gap:7px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#f8faf9}
.delivery-tv-link-box>span{color:var(--muted);font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.delivery-tv-link-box>small{color:var(--muted);font-size:.72rem;line-height:1.4}
.delivery-tv-link-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.delivery-tv-link-row input{min-width:0;padding:10px 11px;border:1px solid #cbd7d2;border-radius:10px;color:var(--ink);background:#fff;font:750 .84rem/1.2 'DM Sans',system-ui,sans-serif}
.delivery-tv-link-row .button{width:auto;min-width:74px}
@media(max-width:430px){.delivery-tv-link-row{grid-template-columns:1fr}.delivery-tv-link-row .button{width:100%}}

.delivery-slideshow-dialog.is-controller-active>.eyebrow,
.delivery-slideshow-dialog.is-controller-active>#delivery-slideshow-title,
.delivery-slideshow-dialog.is-controller-active>[data-slideshow-intro],
.delivery-slideshow-dialog.is-controller-active>[data-slideshow-targets]{display:none}
.delivery-slideshow-dialog.is-controller-active{padding-top:54px}

/* Picking videos: in select mode a tap on a video tile picks it rather than playing it. */
body.selection-mode .media-card video{pointer-events:none}
/* Slideshow controller: add a screen by the code it shows on slidelink.app. */
.delivery-tv-add-screen{display:grid;gap:7px;padding-bottom:12px;margin-bottom:2px;border-bottom:1px solid var(--line)}
.delivery-tv-add-screen>span{color:var(--muted);font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.delivery-tv-add-screen>small{color:var(--muted);font-size:.72rem;line-height:1.4}
.delivery-tv-add-screen input[data-tv-screen-code]{font-size:1.15rem;font-weight:700;letter-spacing:.12em;font-variant-numeric:tabular-nums}
.delivery-tv-add-result:empty{display:none}
.delivery-tv-add-result.is-error{color:#a2302c}
.delivery-tv-add-result.is-success{color:#1d6b52}
