/* One palette for every guest-facing surface in dark galleries. Loaded last. */
html:has(body.brand-ui.gallery-page.theme-cinematicdark:not(.workspace-ui)){background:#171114!important;color-scheme:dark}
html body.brand-ui.gallery-page.theme-cinematicdark:not(.workspace-ui),
html body.brand-ui.gallery-page.theme-cinematicdark:not(.workspace-ui):has(#upload){
 --page:#171114;--paper:#171114;--surface:#171114;--hero:#171114;--soft:#171114;
 --event-paper:#171114;--studio-tint:#171114;--fbh-paper:#171114;
 --participation-paper:#171114;--participation-tint:#171114;--ui-bg:#171114;
 --ink:#f3dfc4;--fbh-ink:#f3dfc4;--participation-ink:#f3dfc4;--ui-fg:#f3dfc4;
 --muted:#c9b8a6;--fbh-muted:#c9b8a6;--participation-muted:#c9b8a6;--ui-muted:#c9b8a6;
 --accent:#bd824c;--pink:#bd824c;--participation-accent:#bd824c;--event-frame:#bd824c;
 --ui-link:#edc399;--on-accent:#171114;--ui-hover:#34251e;
 --line:#70533d;--fbh-line:#70533d;--ui-line:#70533d;--participation-line:#70533d;
 background:#171114!important;color:#f3dfc4!important;min-height:100dvh;color-scheme:dark;
}
html body.brand-ui.gallery-page.theme-cinematicdark:not(.workspace-ui) :is(header,footer,main,.gallery-intro,.album-hero,.guest-rail,.selection-bar,.pagination){background:#171114!important;color:#f3dfc4!important;border-color:#70533d!important}
html body.brand-ui.gallery-page.theme-cinematicdark:not(.workspace-ui) :is(
 #album-photos .photo,#album-photos .photo-open,#album-photos .photo-actions,
 #album-photos .photo-menu-panel,.clip-card,.clip-preview,.clip-download,
 .album-section,.album-section>summary,.album-section-content,.clip-grid,
 .collection-heading,.collection-tile,.collection-tile-cover,.collection-tile-info,
 .empty-state,.preview-bar,.gallery-options,
 #guest-menu,#guest-menu .guest-drawer-head,#guest-menu .drawer-albums>div,
 #guest-menu .guest-rental-offer,#guest-menu .drawer-account,
 #upload-panel,#upload-panel .participation-file,#upload-panel .upload-selected-photo,
 #upload-panel .upload-results,#share-dialog,#report-dialog,#gallery-share-dialog,
 #lightbox,#lightbox .viewer-top,.gallery-share-panel,.gallery-share-options,.notice,.card
 ){background:#171114!important;color:#f3dfc4!important;border-color:#70533d!important;background-image:none!important}
html body.brand-ui.gallery-page.theme-cinematicdark:not(.workspace-ui) :is(
 #album-photos .photo-actions>a,#album-photos .photo-actions>button,
 #album-photos .photo-actions>label,#album-photos .photo-menu>summary,
 #album-photos .photo-menu-panel button,#guest-menu a,#guest-menu button,
 #share-dialog button,#report-dialog button,#gallery-share-dialog button,
 #lightbox button,#lightbox a,.gallery-share-panel button,.guest-rail a,.guest-rail button,.subtle,.outline
 ){background:#171114!important;color:#edc399!important;border-color:#70533d!important}
html body.brand-ui.gallery-page.theme-cinematicdark:not(.workspace-ui) :is(
 #album-photos .photo-actions>a,#album-photos .photo-actions>button,
 #album-photos .photo-actions>label,#album-photos .photo-menu-panel button,
 #guest-menu a,#guest-menu button,#share-dialog button,#lightbox button
 ):is(:hover,:focus-visible){background:#34251e!important;color:#fff0d9!important}
html body.brand-ui.gallery-page.theme-cinematicdark:not(.workspace-ui) :is(h1,h2,h3,.album-section-title,.collection-heading,#guest-menu p,#guest-menu strong,#guest-menu span){color:#f3dfc4!important}
html body.brand-ui.gallery-page.theme-cinematicdark:not(.workspace-ui) :is(dialog p,dialog label,dialog small){color:#f3dfc4!important}
html body.brand-ui.gallery-page.theme-cinematicdark:not(.workspace-ui) :is(a,button){-webkit-text-fill-color:currentColor!important}
html body.brand-ui.gallery-page.theme-cinematicdark:not(.workspace-ui) :is(input,select,textarea,option){background:#171114!important;color:#f3dfc4!important;border-color:#70533d!important;accent-color:#bd824c}
html body.brand-ui.gallery-page.theme-cinematicdark:not(.workspace-ui) input[type=file]::file-selector-button{background:#171114!important;color:#edc399!important;border:1px solid #70533d!important}
html body.brand-ui.gallery-page.theme-cinematicdark:not(.workspace-ui) :is(.button:not(.outline),#upload-button,#share-file){background:#bd824c!important;color:#171114!important;border-color:#bd824c!important}
html body.brand-ui.gallery-page.theme-cinematicdark:not(.workspace-ui) dialog::backdrop{background:rgba(23,17,20,.88)!important}
html body.brand-ui.gallery-page.theme-cinematicdark:not(.workspace-ui) #guest-menu{scrollbar-width:none!important}
html body.brand-ui.gallery-page.theme-cinematicdark:not(.workspace-ui) #guest-menu::-webkit-scrollbar{display:none!important}
html body.brand-ui.gallery-page.theme-cinematicdark:not(.workspace-ui) :is(.photo-select:has(input:checked),.photo-menu-panel button:focus-visible){color:#edc399!important;outline-color:#bd824c!important}
html body.brand-ui.gallery-page.theme-cinematicdark:not(.workspace-ui) :is(.clip-download,.album-section-count){color:#edc399!important}
html body.brand-ui.gallery-page.theme-cinematicdark:not(.workspace-ui) :is(.clip-play,.album-chevron){background:#bd824c!important;color:#171114!important}
html body.brand-ui.gallery-page.theme-cinematicdark:not(.workspace-ui) .clip-preview:focus-visible{outline-color:#bd824c!important}

/* Pruefung 2026-11: title area over the cover photo stays transparent (no hard dark box) */
html body.brand-ui.gallery-page.theme-cinematicdark:not(.workspace-ui) .gallery-intro>.album-hero{background:transparent!important}
html body.brand-ui.gallery-page.theme-cinematicdark:not(.workspace-ui) .gallery-intro>.album-hero h1{text-shadow:0 2px 24px rgba(0,0,0,.65),0 1px 3px rgba(0,0,0,.45)}
