/* GALERIE_USABILITY_V1 */
html body.brand-ui.gallery-page .preview-bar.preview-bar{
 position:static!important;inset:auto!important;display:flex!important;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 20px;
 margin:20px 0 24px!important;padding:10px 2px!important;background:transparent!important;border:0!important;border-bottom:1px solid var(--ui-line,var(--line,#ded6d0))!important;
 border-radius:0!important;box-shadow:none!important;font-size:12px;line-height:1.5;color:var(--ui-fg,var(--ink));
}
html body.brand-ui.gallery-page .preview-bar.preview-bar a{font-size:12px;white-space:normal;text-underline-offset:4px;min-height:32px;display:inline-flex;align-items:center}
html body.brand-ui.gallery-page #halloween-cover-v2 .concept-title-block{text-align:center!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:12px!important}
html body.brand-ui.gallery-page #halloween-cover-v2 .concept-event-date{position:static!important;inset:auto!important;transform:none!important;width:100%!important;margin:0!important;text-align:center!important;line-height:1.6!important;font-size:13px!important;letter-spacing:.12em!important}
html body.brand-ui.gallery-page #halloween-cover-v2+.concept-secondary-greeting{font-size:clamp(15px,1.2vw,17px)!important;line-height:1.8!important;max-width:72ch;margin:20px auto 32px!important;padding-inline:12px;box-sizing:border-box}
html body.brand-ui.gallery-page #halloween-cover-v2 .album-cover{overflow:hidden!important}
html body:is(.halloween-design,.theme-halloween).guestbook-page header :is(a.active,a[aria-current=page],.active>a){color:#edc399!important;border-color:#bd824c!important}
.cover-editor-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) minmax(200px,360px);gap:14px 24px;margin:12px 0 16px;padding:18px;border:1px solid #e3d8dc;border-radius:12px;background:#fffafc;color:#352b30;box-sizing:border-box}
.cover-editor-toolbar h2{margin:0 0 6px;font:600 18px/1.4 Arial,sans-serif;color:#352b30;letter-spacing:0}
.cover-editor-toolbar p{margin:0;font:14px/1.6 Arial,sans-serif;color:#65565d}
.cover-editor-toolbar label{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;margin:0;font:600 14px/1.5 Arial,sans-serif}
.cover-editor-toolbar input[type=range]{grid-column:1/-1;grid-row:2;min-height:44px;width:100%;padding:0;accent-color:#ad1e59}
.cover-editor-toolbar output{font-variant-numeric:tabular-nums}
.cover-editor-actions{display:flex;flex-wrap:wrap;gap:8px;grid-column:1/-1}
html body.brand-ui .cover-editor-actions button{min-height:44px;min-width:44px;margin:0;padding:10px 14px;border-radius:8px;font:600 13px/1.4 Arial,sans-serif;background:#fff;color:#842046;border:1px solid #d4b8c3}
.cover-editor-actions button:disabled{opacity:.5}
html body.brand-ui .visual-editor-panel{position:static!important;inset:auto!important;width:auto!important;max-height:none!important;overflow:visible!important;box-shadow:none!important;min-width:0;box-sizing:border-box}
html body.brand-ui .editor-workspace{display:grid!important;grid-template-columns:minmax(280px,360px) minmax(0,1fr)!important;align-items:start;gap:18px!important}
html body.brand-ui .editor-workspace.preview-only{grid-template-columns:minmax(0,1fr)!important}
html body.brand-ui .editor-workspace .design-live{min-width:0!important}
@media(max-width:900px){html body.brand-ui .editor-workspace{grid-template-columns:minmax(0,1fr)!important}.cover-editor-toolbar{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){html body.brand-ui.gallery-page .preview-bar.preview-bar{margin-top:14px!important;margin-bottom:18px!important;gap:2px}.cover-editor-toolbar{padding:14px}.cover-editor-actions{gap:6px}html body.brand-ui .cover-editor-actions button{padding:9px 11px}.cover-editor-toolbar p{font-size:13px}}

/* HALLOWEEN_TITLE_CENTER_V2 */
html body.brand-ui.gallery-page #halloween-cover-v2 .album-hero h1{align-self:center!important;margin-inline:auto!important}

/* Einheitliche Verwaltungsfilter 20261104 */
#gallery-overview .directory-toolbar {
    align-items:center;
}
#gallery-overview .directory-toolbar > .directory-filter,
#gallery-overview .directory-toolbar > .directory-sort {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:6px;
    margin:0;
    width:auto;
    font-size:11px;
    line-height:1.3;
    font-weight:400;
    color:#756d79;
}
#gallery-overview #gallery-filter,
#gallery-overview #gallery-sort {
    box-sizing:border-box;
    height:44px;
    min-height:44px;
    margin:0;
    padding:8px 12px;
    width:170px;
    max-width:100%;
    font-size:14px;
    line-height:1.4;
    font-weight:400;
    color:#756d79;
    background-color:#fff;
    border:1px solid var(--studio-line,#ded9df);
    border-radius:8px;
}
@media(max-width:600px) {
    #gallery-overview .directory-toolbar > .directory-filter,
    #gallery-overview .directory-toolbar > .directory-sort {
        order:2;
        flex:1 1 140px;
        min-width:0;
    }
    #gallery-overview #gallery-filter,
    #gallery-overview #gallery-sort {
        width:100%;
    }
}

/* Galerieuebersicht mit Loeschanfragen 20261104 */
#gallery-overview {
    --directory-columns:48px minmax(170px,2fr) 70px 96px
        minmax(115px,1fr) minmax(140px,1.3fr) 110px 124px;
}
#gallery-overview .directory-toolbar {padding:20px;gap:16px}
#gallery-overview .directory-labels {
    display:grid;grid-template-columns:var(--directory-columns);
    gap:14px;padding:14px 20px;background:#faf8fa;
    font-size:11px;line-height:1.4;letter-spacing:.025em;
}
#gallery-overview .directory-labels>span:first-child {grid-column:span 2}
#gallery-overview .directory-album {
    display:grid;grid-template-columns:var(--directory-columns);
    gap:14px;align-items:center;padding:20px;
    font-size:13px;line-height:1.5;
}
#gallery-overview .directory-album:hover {background:#fdfafd}
#gallery-overview .directory-album>* {min-width:0}
#gallery-overview .directory-cover {width:48px;height:60px;border-radius:8px}
#gallery-overview .directory-name h2 {font-size:16px;line-height:1.35;margin-bottom:8px}
#gallery-overview .customer-progress {display:flex;gap:5px;flex-wrap:wrap}
#gallery-overview .customer-state {font-size:10px;line-height:1.5;padding:4px 7px}
#gallery-overview .directory-count,
#gallery-overview .directory-expiry,
#gallery-overview .directory-access,
#gallery-overview .directory-activity {font-size:13px}
#gallery-overview .directory-count small,
#gallery-overview .directory-access small,
#gallery-overview .directory-activity small {
    display:block;font-size:11px;line-height:1.5;margin-top:5px;
    color:#756d79;overflow-wrap:anywhere;
}
#gallery-overview .directory-actions {display:flex;flex-direction:column;gap:8px}
#gallery-overview .directory-actions a {
    box-sizing:border-box;width:100%;font-size:12px;
    min-height:36px;padding:8px 10px;text-align:center;
}
#gallery-overview .directory-deletions .mobile-label {display:none}
#gallery-overview .deletion-badge {
    display:inline-block;padding:7px 9px;border-radius:8px;
    background:#fff0f4;color:#a7184d;font-size:12px;
    font-weight:650;text-decoration:none;border:1px solid #efc5d3;
}
#gallery-overview .deletion-badge:hover {background:#fce2eb}
#gallery-overview .deletion-badge:focus-visible {
    outline:2px solid #a7184d;outline-offset:3px;
}
#gallery-overview .deletion-none {color:#8b818d}
#delete-tasks {scroll-margin-top:24px}
@media(max-width:1250px) {
    #gallery-overview .directory-labels {display:none}
    #gallery-overview .directory-album {
        grid-template-columns:48px minmax(0,1fr) minmax(0,1fr);
        gap:12px 16px;
    }
    #gallery-overview .directory-album>* {
        grid-row:auto!important;grid-column:auto!important;
    }
    #gallery-overview .directory-album>.directory-cover {
        grid-column:1!important;grid-row:1!important;
    }
    #gallery-overview .directory-album>.directory-name {grid-column:2 / -1!important}
    #gallery-overview .directory-album>.directory-count,
    #gallery-overview .directory-album>.directory-access,
    #gallery-overview .directory-album>.directory-deletions {grid-column:2!important}
    #gallery-overview .directory-album>.directory-expiry,
    #gallery-overview .directory-album>.directory-activity,
    #gallery-overview .directory-album>.directory-actions {grid-column:3!important}
    #gallery-overview .directory-album .mobile-label {
        display:block;font-size:11px;color:#756d79;margin-bottom:4px;
    }
    #gallery-overview .directory-count:after {content:none}
}
#gallery-overview.is-grid .directory-labels {display:none}
#gallery-overview.is-grid .directory-album {
    display:flex;flex-direction:column;align-items:stretch;
}
#gallery-overview.is-grid .directory-cover {width:100%;height:180px}
#gallery-overview.is-grid .directory-album .mobile-label {
    display:block;font-size:11px;color:#756d79;margin-bottom:4px;
}
@media(max-width:480px) {
    #gallery-overview .directory-album {grid-template-columns:40px minmax(0,1fr);padding:16px}
    #gallery-overview .directory-album>*:not(.directory-cover) {grid-column:2!important}
    #gallery-overview .directory-cover {width:40px;height:52px}
}

/* Spaltenkorrektur 20261104 */
#gallery-overview .directory-labels,
#gallery-overview .directory-album {
    grid-template-columns:var(--directory-columns)!important;
}
#gallery-overview .directory-labels {
    padding-left:20px!important;
    padding-right:20px!important;
}
@media(max-width:1250px) {
    #gallery-overview .directory-labels {display:none!important}
    #gallery-overview .directory-album {
        grid-template-columns:48px minmax(0,1fr) minmax(0,1fr)!important;
    }
}
@media(max-width:480px) {
    #gallery-overview .directory-album {
        grid-template-columns:40px minmax(0,1fr)!important;
    }
}
#gallery-overview.is-grid .directory-labels {display:none!important}

/* Pruefung 2026-11: anchored album view must not slide under the sticky menu bar */
@media(min-width:761px){.brand-ui.gallery-page.has-guest-rail:not(.workspace-ui) #album-photos{scroll-margin-top:84px}}
