/* r613: zelfstandig plaatjesvenster met Media-tabs, sitebuttons en begrensde preview. */
body.picture-editor-window-open {
    overflow: hidden !important;
}

.picture-editor-window-overlay[hidden] {
    display: none !important;
}

.picture-editor-window-overlay {
    position: fixed !important;
    z-index: 2147483600 !important;
    top: 50% !important;
    left: 50% !important;
    display: grid !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: clamp(28px, 4vw, 52px) !important;
    place-items: center !important;
    transform: translate(-50%, -50%) !important;
    background: rgba(0, 0, 0, .56) !important;
    backdrop-filter: blur(9px) saturate(.9) !important;
    -webkit-backdrop-filter: blur(9px) saturate(.9) !important;
}

.picture-editor-window {
    --picture-editor-window-x: 0px;
    --picture-editor-window-y: 0px;
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-rows: 42px minmax(0, 1fr) !important;
    width: min(1240px, calc(100vw - 44px)) !important;
    height: min(860px, calc(100vh - 44px)) !important;
    min-width: 0 !important;
    min-height: 520px !important;
    overflow: hidden !important;
    background: #ececec !important;
    border: 1px solid rgba(35, 35, 35, .78) !important;
    border-radius: 10px !important;
    box-shadow:
        0 34px 88px rgba(0, 0, 0, .46),
        0 10px 28px rgba(0, 0, 0, .34),
        0 0 0 1px rgba(255, 255, 255, .24) inset !important;
    transform: translate(var(--picture-editor-window-x), var(--picture-editor-window-y)) !important;
    transition: width .16s ease, height .16s ease, border-radius .16s ease !important;
}

.picture-editor-window.is-dragging {
    user-select: none !important;
    transition: none !important;
}

.picture-editor-window.is-maximized {
    width: calc(100vw - 16px) !important;
    height: calc(100vh - 16px) !important;
    min-height: 0 !important;
    border-radius: 7px !important;
    transform: none !important;
}

.picture-editor-window-header {
    box-sizing: border-box !important;
    display: flex !important;
    min-width: 0 !important;
    height: 42px !important;
    padding: 0 7px 0 15px !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    color: #fff !important;
    background: linear-gradient(180deg, #6b9460 0%, #557a3e 54%, #426530 100%) !important;
    border-bottom: 1px solid #334f28 !important;
    cursor: move !important;
    touch-action: none !important;
    text-shadow: 0 1px rgba(0, 0, 0, .3) !important;
}

.picture-editor-window-header strong {
    min-width: 0 !important;
    overflow: hidden !important;
    font: 700 16px/1.2 Tahoma, Arial, sans-serif !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.picture-editor-window-controls {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: 4px !important;
}

.picture-editor-window-control {
    box-sizing: border-box !important;
    display: grid !important;
    width: 36px !important;
    height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    place-items: center !important;
    color: #fff !important;
    background: rgba(255, 255, 255, .1) !important;
    border: 1px solid rgba(255, 255, 255, .36) !important;
    border-radius: 4px !important;
    box-shadow: inset 0 1px rgba(255, 255, 255, .14) !important;
    font: 400 17px/1 "Segoe UI Symbol", "Segoe UI", Tahoma, sans-serif !important;
    cursor: pointer !important;
}

.picture-editor-window-control:hover,
.picture-editor-window-control:focus-visible {
    background: rgba(255, 255, 255, .24) !important;
    border-color: rgba(255, 255, 255, .7) !important;
}

.picture-editor-window-close:hover,
.picture-editor-window-close:focus-visible {
    color: #fff !important;
    background: #c94b43 !important;
    border-color: #9f312b !important;
}

.picture-editor-window-body {
    box-sizing: border-box !important;
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #ececec !important;
}

.picture-editor-window-body > .profile-bio-picture-editor-mount,
.picture-editor-window-body .profile-bio-picture-edit-view {
    box-sizing: border-box !important;
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.picture-editor-window-body .profile-bio-picture-edit-header {
    display: none !important;
}

.picture-editor-window-body .profile-bio-picture-edit-white {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(360px, 1.25fr) minmax(330px, .75fr) !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
    background: #fff !important;
}

.picture-editor-window-body .profile-bio-picture-edit-preview {
    box-sizing: border-box !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    display: grid !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 20px !important;
    place-items: center !important;
    overflow: auto !important;
    background:
        linear-gradient(45deg, #ddd 25%, transparent 25%),
        linear-gradient(-45deg, #ddd 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #ddd 75%),
        linear-gradient(-45deg, transparent 75%, #ddd 75%),
        #f5f5f5 !important;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0 !important;
    background-size: 20px 20px !important;
    border-right: 1px solid #c8c8c8 !important;
}

.picture-editor-window-body .profile-bio-picture-edit-canvas {
    display: block !important;
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .2) !important;
}

.picture-editor-window-body .profile-bio-picture-edit-tabs {
    box-sizing: border-box !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow-x: auto !important;
    background: #e5e5e5 !important;
    border-bottom: 1px solid #c4c4c4 !important;
}

.picture-editor-window-body .profile-bio-picture-edit-panels {
    box-sizing: border-box !important;
    grid-column: 2 !important;
    grid-row: 2 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 18px !important;
    overflow: auto !important;
    background: #f1f1f1 !important;
}

.picture-editor-window-body .profile-bio-picture-edit-footer {
    box-sizing: border-box !important;
    display: flex !important;
    min-height: 64px !important;
    margin: 0 !important;
    padding: 12px 16px !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    background: linear-gradient(180deg, #f3f3f3 0%, #dedede 100%) !important;
    border-top: 1px solid #b8b8b8 !important;
}

.picture-editor-window-body .profile-bio-picture-edit-footer > div {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: 8px !important;
}

.picture-editor-window-body [data-picture-edit-feedback] {
    min-width: 0 !important;
    margin: 0 !important;
}

@media (max-width: 860px) {
    .picture-editor-window-overlay {
        padding: 8px !important;
    }

    .picture-editor-window,
    .picture-editor-window.is-maximized {
        width: calc(100vw - 16px) !important;
        height: calc(100vh - 16px) !important;
        min-height: 0 !important;
        border-radius: 7px !important;
        transform: none !important;
    }

    .picture-editor-window-body .profile-bio-picture-edit-white {
        display: flex !important;
        flex-direction: column !important;
        overflow: auto !important;
    }

    .picture-editor-window-body .profile-bio-picture-edit-preview {
        min-height: 320px !important;
        max-height: 50vh !important;
        border-right: 0 !important;
        border-bottom: 1px solid #c8c8c8 !important;
    }

    .picture-editor-window-body .profile-bio-picture-edit-tabs,
    .picture-editor-window-body .profile-bio-picture-edit-panels {
        flex: 0 0 auto !important;
    }
}


/* Filtertab ook buiten #bioEdit volledig ondersteunen. */
/* r388: ImageMagick-filtertab gebruikt het bestaande canvas; geen dubbele preview rechts. */

.picture-editor-window-body .profile-bio-picture-edit-panel[data-picture-edit-panel="filter"]:not([hidden]) {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #f2f2f2 !important;
}

.picture-editor-window-body .profile-bio-picture-filter-layout {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    overflow: visible !important;
    background: #f2f2f2 !important;
}

.picture-editor-window-body .profile-bio-picture-filter-controls {
    box-sizing: border-box !important;
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    overflow: visible !important;
    background: transparent !important;
}

.picture-editor-window-body .profile-bio-picture-filter-card {
    box-sizing: border-box !important;
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 18px !important;
    flex: 0 0 auto !important;
    flex-direction: column !important;
    gap: 14px !important;
    overflow: visible !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

.picture-editor-window-body .profile-bio-picture-filter-card > .notification {
    margin: 0 !important;
}

.picture-editor-window-body .profile-bio-picture-filter-adjust {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

.picture-editor-window-body .profile-bio-picture-filter-adjust > summary {
    box-sizing: border-box !important;
    display: flex !important;
    width: 100% !important;
    min-height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    gap: 9px !important;
    color: #222 !important;
    font: 700 14px/1.3 "Segoe UI", Tahoma, sans-serif !important;
    cursor: pointer !important;
    list-style: none !important;
}

.picture-editor-window-body .profile-bio-picture-filter-adjust > summary::-webkit-details-marker {
    display: none !important;
}

.picture-editor-window-body .profile-bio-picture-filter-adjust > summary::after {
    display: block !important;
    min-width: 20px !important;
    height: 1px !important;
    margin-left: 3px !important;
    flex: 1 1 auto !important;
    order: 2 !important;
    content: "" !important;
    background: #d1d1d1 !important;
}

.picture-editor-window-body .profile-bio-picture-filter-adjust > summary::before {
    box-sizing: border-box !important;
    display: block !important;
    width: 8px !important;
    height: 8px !important;
    margin: 0 3px 0 5px !important;
    flex: 0 0 8px !important;
    order: 3 !important;
    content: "" !important;
    border-right: 2px solid #555 !important;
    border-bottom: 2px solid #555 !important;
    transform: rotate(45deg) translate(-1px, -1px) !important;
    transform-origin: center !important;
    transition: transform .16s ease !important;
}

.picture-editor-window-body .profile-bio-picture-filter-adjust[open] > summary::before {
    transform: rotate(225deg) translate(-1px, -1px) !important;
}

.picture-editor-window-body .profile-bio-picture-filter-adjust .profile-bio-picture-collapsible-content {
    display: block !important;
    width: 100% !important;
    padding: 12px 0 0 !important;
}

.picture-editor-window-body .profile-bio-picture-filter-adjust:not([open]) > .profile-bio-picture-collapsible-content {
    display: none !important;
}

.picture-editor-window-body .profile-bio-picture-filter-strength {
    display: grid !important;
    width: 100% !important;
    gap: 6px !important;
}

.picture-editor-window-body .profile-bio-picture-filter-strength > span {
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.picture-editor-window-body .profile-bio-picture-filter-strength output {
    color: #235f96 !important;
}

.picture-editor-window-body .profile-bio-picture-filter-strength input[type="range"] {
    width: 100% !important;
    margin: 0 !important;
}

.picture-editor-window-body .profile-bio-picture-filter-reset {
    width: auto !important;
    min-width: 138px !important;
    max-width: 100% !important;
    margin: 12px 0 0 !important;
    flex: 0 0 auto !important;
}

.picture-editor-window-body .profile-bio-picture-filter-sheets {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    flex-direction: column !important;
}

.picture-editor-window-body .profile-bio-picture-filter-sheet-tabs {
    display: flex !important;
    width: 100% !important;
    min-height: 31px !important;
    align-items: flex-end !important;
    overflow: visible !important;
}

.picture-editor-window-body .profile-bio-picture-filter-sheet-tabs > button {
    position: relative !important;
    display: none !important;
    min-width: 112px !important;
    min-height: 31px !important;
    margin: 0 -1px -1px 0 !important;
    padding: 6px 14px 7px !important;
    align-items: center !important;
    justify-content: center !important;
    color: #111 !important;
    font: 13px/1.2 "Segoe UI", Tahoma, sans-serif !important;
    white-space: nowrap !important;
    background: linear-gradient(#fafafa, #e6e6e6 48%, #d7d7d7) !important;
    border: 1px solid #8b8b8b !important;
    border-radius: 4px 4px 0 0 !important;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .95) !important;
}

.picture-editor-window-body .profile-bio-picture-filter-sheet-tabs > button.is-active {
    z-index: 2 !important;
    display: inline-flex !important;
    background: #f0f0f0 !important;
    border-bottom-color: #f0f0f0 !important;
}

.picture-editor-window-body .profile-bio-picture-filter-category-select {
    position: relative !important;
    z-index: 1 !important;
    display: inline-flex !important;
    width: 43px !important;
    min-width: 43px !important;
    height: 31px !important;
    margin: 0 0 -1px !important;
    align-items: center !important;
    justify-content: center !important;
    color: #222 !important;
    background: linear-gradient(#fafafa, #e6e6e6, #d7d7d7) !important;
    border: 1px solid #8b8b8b !important;
    border-radius: 4px 4px 0 0 !important;
}

.picture-editor-window-body .profile-bio-picture-filter-category-select svg {
    width: 19px !important;
    height: 19px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.65 !important;
    pointer-events: none !important;
}

.picture-editor-window-body .profile-bio-picture-filter-category-select select {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
}

.picture-editor-window-body .profile-bio-picture-filter-sheet-panels {
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 250px !important;
    padding: 10px !important;
    background: #f0f0f0 !important;
    border: 1px solid #8b8b8b !important;
    border-radius: 0 7px 7px 7px !important;
}

.picture-editor-window-body .profile-bio-picture-filter-sheet-panels > section[hidden] {
    display: none !important;
}

.picture-editor-window-body .profile-bio-picture-filter-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
    gap: 8px !important;
}

.picture-editor-window-body .profile-bio-picture-filter-option {
    box-sizing: border-box !important;
    display: grid !important;
    min-width: 0 !important;
    min-height: 62px !important;
    padding: 8px !important;
    place-items: center !important;
    color: #222 !important;
    font: 700 13px/1.25 "Segoe UI", Tahoma, sans-serif !important;
    text-align: center !important;
    cursor: pointer !important;
    background: #fff !important;
    border: 1px solid #aaa !important;
    border-radius: 0 !important;
    box-shadow: inset 1px 1px 0 #fff !important;
}

.picture-editor-window-body .profile-bio-picture-filter-option:hover,
.picture-editor-window-body .profile-bio-picture-filter-option:focus-visible,
.picture-editor-window-body .profile-bio-picture-filter-option.is-active {
    color: #173f6d !important;
    background: #dcecff !important;
    border-color: #316ac5 !important;
    outline: 1px solid #316ac5 !important;
    outline-offset: -2px !important;
}

.picture-editor-window-body .profile-bio-picture-filter-preview {
    box-sizing: border-box !important;
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 24px !important;
    place-items: center !important;
    overflow: hidden !important;
    background-color: #e5e5e5 !important;
    background-image:
        linear-gradient(45deg, #cfcfcf 25%, transparent 25%),
        linear-gradient(-45deg, #cfcfcf 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #cfcfcf 75%),
        linear-gradient(-45deg, transparent 75%, #cfcfcf 75%) !important;
    background-size: 20px 20px !important;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0 !important;
}

.picture-editor-window-body .profile-bio-picture-filter-preview-stage {
    position: relative !important;
    display: grid !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    place-items: center !important;
    overflow: hidden !important;
}

.picture-editor-window-body .profile-bio-picture-filter-preview-stage img {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 100% !important;
    object-fit: contain !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.picture-editor-window-body .profile-bio-picture-filter-preview-name {
    position: absolute !important;
    z-index: 3 !important;
    left: 0 !important;
    bottom: 0 !important;
    max-width: calc(100% - 24px) !important;
    padding: 8px 12px !important;
    color: #fff !important;
    background: rgba(0, 0, 0, .66) !important;
}

.picture-editor-window-body .profile-bio-picture-filter-preview-name strong {
    display: block !important;
    overflow: hidden !important;
    font: 700 15px/1.3 "Segoe UI", Tahoma, sans-serif !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.picture-editor-window-body .profile-bio-picture-filter-preview-name span {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
}

.picture-editor-window-body .profile-bio-picture-filter-preview-loading {
    position: absolute !important;
    inset: 0 !important;
    z-index: 5 !important;
    display: grid !important;
    padding: 24px !important;
    place-items: center !important;
    color: #244b70 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-align: center !important;
    background: rgba(255, 255, 255, .82) !important;
}

.picture-editor-window-body .profile-bio-picture-filter-preview-loading[hidden] {
    display: none !important;
}

.picture-editor-window-body .profile-bio-picture-filter-unavailable {
    display: grid !important;
    gap: 6px !important;
    color: #374151 !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
}

@media (max-width: 900px) {
    .picture-editor-window-body .profile-bio-embedded-picture-editor.is-filter-tab .profile-bio-picture-edit-panels,
    .picture-editor-window-body .profile-bio-picture-edit-panel[data-picture-edit-panel="filter"]:not([hidden]) {
        overflow: auto !important;
    }

    .picture-editor-window-body .profile-bio-picture-filter-layout {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto minmax(330px, 52vh) !important;
        height: auto !important;
        min-height: 100% !important;
        overflow: visible !important;
    }

    .picture-editor-window-body .profile-bio-picture-filter-controls {
        height: auto !important;
        padding: 16px !important;
        overflow: visible !important;
    }

    .picture-editor-window-body .profile-bio-picture-filter-preview {
        min-height: 330px !important;
        padding: 16px !important;
    }
}

@media (max-width: 560px) {
    .picture-editor-window-body .profile-bio-picture-filter-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}


/* Het normale canvas boven de tabs blijft de enige preview. */
.picture-editor-window-body .profile-bio-embedded-picture-editor .profile-bio-picture-edit-preview {
    display: grid !important;
}

.picture-editor-window-body .profile-bio-picture-filter-layout {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
}

.picture-editor-window-body .profile-bio-picture-filter-controls {
    width: 100% !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
}

.picture-editor-window-body .profile-bio-picture-filter-preview {
    display: none !important;
}

.picture-editor-window-body .profile-bio-picture-filter-status {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.picture-editor-window-body .profile-bio-picture-filter-card[aria-busy="true"] {
    cursor: progress !important;
}

@media (max-width: 900px) {
    .picture-editor-window-body .profile-bio-picture-filter-layout {
        display: block !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .picture-editor-window-body .profile-bio-picture-filter-controls {
        padding: 0 !important;
    }
}

/* Het losse venster mag buiten de afgeronde composer vallen. */
.status-window-dialog.has-separate-picture-editor,
.guestbook-window-dialog.has-separate-picture-editor {
    overflow: visible !important;
}

/* r613: zelfstandig, compositor-onafhankelijk en pixelvast bewerkvenster. */
html.picture-editor-window-open,
body.picture-editor-window-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

body > .picture-editor-window-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483640 !important;
    display: grid !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 18px !important;
    place-items: center !important;
    transform: none !important;
    overflow: hidden !important;
    isolation: isolate !important;
    background: rgba(10, 12, 14, .66) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
}

body > .picture-editor-window-overlay[hidden] {
    display: none !important;
}

body > .picture-editor-window-overlay .picture-editor-window {
    display: grid !important;
    grid-template-rows: 42px minmax(0, 1fr) !important;
    width: min(1200px, calc(100vw - 36px)) !important;
    height: min(790px, calc(100dvh - 36px)) !important;
    min-width: 680px !important;
    min-height: 500px !important;
    max-width: 1200px !important;
    max-height: 790px !important;
    overflow: hidden !important;
    color: #202020 !important;
    font: 14px/1.45 Tahoma, Arial, sans-serif !important;
    background: #e7e7e7 !important;
    border: 1px solid #252525 !important;
    border-radius: 9px !important;
    box-shadow: 0 28px 78px rgba(0, 0, 0, .52), 0 8px 24px rgba(0, 0, 0, .36) !important;
    outline: 1px solid rgba(255,255,255,.35) !important;
    outline-offset: -2px !important;
}

body > .picture-editor-window-overlay .picture-editor-window:focus {
    outline: 1px solid rgba(255,255,255,.35) !important;
}

body > .picture-editor-window-overlay .picture-editor-window.is-maximized {
    width: calc(100vw - 12px) !important;
    height: calc(100dvh - 12px) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 6px !important;
}

body > .picture-editor-window-overlay .picture-editor-window-header {
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 7px 0 14px !important;
    color: #fff !important;
    background: linear-gradient(180deg, #6c9561 0%, #557a3e 55%, #426431 100%) !important;
    border-bottom: 1px solid #2e4a24 !important;
    box-shadow: inset 0 1px rgba(255,255,255,.2) !important;
}

body > .picture-editor-window-overlay .picture-editor-window-header strong {
    font: 700 15px/1.2 Tahoma, Arial, sans-serif !important;
    letter-spacing: 0 !important;
}

body > .picture-editor-window-overlay .picture-editor-window-controls {
    gap: 4px !important;
}

body > .picture-editor-window-overlay .picture-editor-window-control {
    width: 35px !important;
    height: 28px !important;
    min-width: 35px !important;
    min-height: 28px !important;
    padding: 0 !important;
    color: #fff !important;
    background: rgba(255,255,255,.09) !important;
    border: 1px solid rgba(255,255,255,.34) !important;
    border-radius: 4px !important;
    box-shadow: inset 0 1px rgba(255,255,255,.12) !important;
    font: 400 17px/1 "Segoe UI Symbol", "Segoe UI", Tahoma, sans-serif !important;
}

body > .picture-editor-window-overlay .picture-editor-window-body {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #e7e7e7 !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-editor-mount,
body > .picture-editor-window-overlay .profile-bio-picture-edit-view {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-editor-mount {
    display: block !important;
    overflow: hidden !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-editor-mount[hidden] {
    display: none !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-edit-view {
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) 62px !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-edit-header {
    display: none !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-edit-white {
    display: grid !important;
    grid-template-columns: minmax(0, 7fr) minmax(410px, 5fr) !important;
    grid-template-rows: 50px minmax(0, 1fr) !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-edit-preview {
    grid-column: 1 !important;
    grid-row: 2 !important;
    display: grid !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 36px !important;
    place-items: center !important;
    overflow: hidden !important;
    background-color: #ececec !important;
    background-image:
        linear-gradient(45deg, #d3d3d3 25%, transparent 25%),
        linear-gradient(-45deg, #d3d3d3 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #d3d3d3 75%),
        linear-gradient(-45deg, transparent 75%, #d3d3d3 75%) !important;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0 !important;
    background-size: 20px 20px !important;
    border-right: 1px solid #bdbdbd !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-edit-canvas {
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: min(100%, 580px) !important;
    max-height: min(100%, 480px) !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: 0 7px 24px rgba(0,0,0,.24) !important;
    cursor: crosshair !important;
    touch-action: none !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-edit-tabs {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    box-sizing: border-box !important;
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 8px 14px 7px !important;
    align-items: center !important;
    gap: 6px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    background: #f2f2f2 !important;
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #ccc !important;
    border-left: 0 !important;
    box-shadow: none !important;
    scrollbar-width: thin !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-edit-tabs .profile-photo-edit-tab {
    position: relative !important;
    display: inline-flex !important;
    min-width: 0 !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 7px 14px !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: flex-start !important;
    color: #202020 !important;
    font: 400 14px/18px Tahoma, Arial, sans-serif !important;
    text-align: left !important;
    white-space: nowrap !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-edit-tabs .profile-photo-edit-tab::after {
    display: none !important;
    content: none !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-edit-tabs .profile-photo-edit-tab:hover {
    color: #111 !important;
    background: #e5f1fb !important;
    border-color: #70a9d8 !important;
    box-shadow: none !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-edit-tabs .profile-photo-edit-tab:focus-visible {
    color: #111 !important;
    outline: 1px dotted #111 !important;
    outline-offset: -4px !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-edit-tabs .profile-photo-edit-tab.is-active,
body > .picture-editor-window-overlay .profile-bio-picture-edit-tabs .profile-photo-edit-tab[aria-selected="true"] {
    z-index: 2 !important;
    color: #111 !important;
    font-weight: 400 !important;
    background: #d9eaf7 !important;
    border-color: #5b9bd5 !important;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .9) !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-edit-panels {
    grid-column: 2 !important;
    grid-row: 2 !important;
    display: block !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 16px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-gutter: stable !important;
    background: #f1f1f1 !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-edit-panel[hidden] {
    display: none !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-edit-panel:not([hidden]) {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-direction: column !important;
    gap: 12px !important;
    background: transparent !important;
}

body > .picture-editor-window-overlay .profile-photo-option-card,
body > .picture-editor-window-overlay .profile-bio-picture-filter-card {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 16px !important;
    color: #242424 !important;
    background: #fff !important;
    border: 1px solid #c5c5c5 !important;
    border-radius: 7px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,.06) !important;
}

body > .picture-editor-window-overlay .profile-photo-option-card h3,
body > .picture-editor-window-overlay .profile-bio-picture-filter-card h3 {
    margin: 0 !important;
    color: #222 !important;
    font: 700 15px/1.25 Tahoma, Arial, sans-serif !important;
}

body > .picture-editor-window-overlay .profile-photo-option-card p {
    margin: 0 !important;
}

body > .picture-editor-window-overlay .profile-photo-resize-heading {
    display: flex !important;
    margin: 0 0 16px !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 14px !important;
}

body > .picture-editor-window-overlay .profile-photo-resize-heading p {
    color: #666 !important;
    font-size: 13px !important;
    text-align: right !important;
}

body > .picture-editor-window-overlay .profile-photo-resize-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) !important;
    align-items: end !important;
    gap: 8px !important;
}

body > .picture-editor-window-overlay .profile-photo-resize-times {
    display: grid !important;
    height: 34px !important;
    place-items: center !important;
    color: #666 !important;
    font-size: 18px !important;
}

body > .picture-editor-window-overlay .profile-photo-form-field {
    display: grid !important;
    min-width: 0 !important;
    gap: 6px !important;
    color: #333 !important;
    font: 700 13px/1.25 Tahoma, Arial, sans-serif !important;
}

body > .picture-editor-window-overlay .profile-photo-form-field input[type="text"],
body > .picture-editor-window-overlay .profile-photo-form-field input[type="number"] {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 6px 9px !important;
    color: #222 !important;
    font: 14px/1 Tahoma, Arial, sans-serif !important;
    background: #fff !important;
    border: 1px solid #999 !important;
    border-radius: 4px !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.09) !important;
}

body > .picture-editor-window-overlay .profile-photo-resize-input {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 34px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 1px solid #999 !important;
    border-radius: 4px !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.08) !important;
}

body > .picture-editor-window-overlay .profile-photo-resize-input:focus-within {
    border-color: #4878aa !important;
    box-shadow: 0 0 0 2px rgba(72,120,170,.16) !important;
}

body > .picture-editor-window-overlay .profile-photo-resize-input input {
    width: 100% !important;
    min-width: 0 !important;
    height: 32px !important;
    padding: 5px 8px !important;
    color: #222 !important;
    font: 14px/1 Tahoma, Arial, sans-serif !important;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

body > .picture-editor-window-overlay .profile-photo-resize-input > span {
    display: grid !important;
    height: 32px !important;
    place-items: center !important;
    color: #666 !important;
    font-weight: 400 !important;
    background: #eee !important;
    border-left: 1px solid #c6c6c6 !important;
}

body > .picture-editor-window-overlay input[type="range"] {
    width: 100% !important;
    min-width: 0 !important;
    margin: 3px 0 0 !important;
    accent-color: #557a3e !important;
}

body > .picture-editor-window-overlay input[type="color"] {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 3px !important;
    background: #fff !important;
    border: 1px solid #999 !important;
    border-radius: 4px !important;
}

body > .picture-editor-window-overlay .profile-photo-resize-controls {
    display: flex !important;
    margin: 14px 0 0 !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
}

body > .picture-editor-window-overlay .profile-photo-resize-lock {
    display: inline-flex !important;
    min-width: 0 !important;
    align-items: center !important;
    gap: 7px !important;
    color: #333 !important;
    font-weight: 400 !important;
}

body > .picture-editor-window-overlay .profile-photo-resize-lock input {
    margin: 0 !important;
}

body > .picture-editor-window-overlay .profile-photo-resize-presets {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    margin: 14px 0 0 !important;
    gap: 6px !important;
}

body > .picture-editor-window-overlay .profile-photo-resize-presets .button {
    min-width: 0 !important;
    min-height: 32px !important;
    margin: 0 !important;
    padding: 3px 10px !important;
}

body > .picture-editor-window-overlay .profile-photo-resize-summary {
    margin: 13px 0 0 !important;
    padding: 9px 10px !important;
    color: #345 !important;
    font-size: 13px !important;
    background: #edf4f8 !important;
    border: 1px solid #c8d8e2 !important;
    border-radius: 4px !important;
}

body > .picture-editor-window-overlay .profile-photo-resize-summary.is-error {
    color: #8c2525 !important;
    background: #fff0f0 !important;
    border-color: #e1b2b2 !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-collapsible {
    width: 100% !important;
    margin: 0 0 14px !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-collapsible > summary {
    display: flex !important;
    min-height: 28px !important;
    align-items: center !important;
    gap: 8px !important;
    color: #222 !important;
    font: 700 14px/1.25 Tahoma, Arial, sans-serif !important;
    cursor: pointer !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-collapsible-content {
    display: grid !important;
    padding: 12px 0 0 !important;
    gap: 12px !important;
}

body > .picture-editor-window-overlay .profile-photo-sticker-sheet-tabs {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 31px !important;
    align-items: flex-end !important;
    overflow: hidden !important;
}

body > .picture-editor-window-overlay .profile-photo-sticker-sheet-tabs > button {
    display: none !important;
    min-width: 0 !important;
    min-height: 31px !important;
    margin: 0 -1px -1px 0 !important;
    padding: 6px 12px !important;
    color: #222 !important;
    font: 13px/1.2 Tahoma, Arial, sans-serif !important;
    background: linear-gradient(#fafafa, #e0e0e0) !important;
    border: 1px solid #8e8e8e !important;
    border-radius: 4px 4px 0 0 !important;
}

body > .picture-editor-window-overlay .profile-photo-sticker-sheet-tabs > button.is-active {
    display: inline-flex !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    background: #f2f2f2 !important;
    border-bottom-color: #f2f2f2 !important;
}

body > .picture-editor-window-overlay .profile-photo-sticker-category-select-control {
    position: relative !important;
    display: grid !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 31px !important;
    margin: 0 0 -1px !important;
    place-items: center !important;
    background: linear-gradient(#fafafa, #dedede) !important;
    border: 1px solid #8e8e8e !important;
    border-radius: 4px 4px 0 0 !important;
}

body > .picture-editor-window-overlay .profile-photo-sticker-category-select-control svg {
    width: 18px !important;
    height: 18px !important;
    fill: none !important;
    stroke: #333 !important;
    stroke-width: 1.5 !important;
}

body > .picture-editor-window-overlay .profile-photo-sticker-category-select-control select {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
}

body > .picture-editor-window-overlay .profile-photo-sticker-sheet-panels {
    min-height: 278px !important;
    padding: 9px !important;
    background: #f2f2f2 !important;
    border: 1px solid #8e8e8e !important;
    border-radius: 0 0 6px 6px !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-sticker-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 7px !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-sticker-grid[hidden] {
    display: none !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-sticker-button {
    display: grid !important;
    min-width: 0 !important;
    aspect-ratio: 1 !important;
    padding: 6px !important;
    place-items: center !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 1px solid #b3b3b3 !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-sticker-button:hover,
body > .picture-editor-window-overlay .profile-bio-picture-sticker-button:focus-visible {
    background: #eaf4ff !important;
    border-color: #4d7faa !important;
    outline: 1px solid #4d7faa !important;
    outline-offset: -2px !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-sticker-button img {
    display: block !important;
    width: 100% !important;
    max-width: 62px !important;
    height: 100% !important;
    max-height: 62px !important;
    object-fit: contain !important;
}

body > .picture-editor-window-overlay .profile-photo-sticker-most-used-empty {
    margin: 0 !important;
    padding: 18px 10px !important;
    color: #666 !important;
    text-align: center !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-draw-card,
body > .picture-editor-window-overlay .profile-bio-picture-text-card {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: end !important;
    gap: 14px !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-text-card .button {
    grid-column: 1 / -1 !important;
    justify-self: start !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-edit-actions {
    display: flex !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
}

body > .picture-editor-window-overlay .button {
    min-height: 32px !important;
    margin: 0 !important;
}

body > .picture-editor-window-overlay .button:disabled {
    cursor: not-allowed !important;
    opacity: .55 !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-edit-footer {
    display: flex !important;
    min-width: 0 !important;
    min-height: 62px !important;
    margin: 0 !important;
    padding: 12px 15px !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    background: linear-gradient(#f3f3f3, #dddddd) !important;
    border-top: 1px solid #aaa !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-edit-footer > p {
    min-width: 0 !important;
    margin: 0 !important;
    color: #555 !important;
    font-size: 13px !important;
    overflow-wrap: anywhere !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-edit-footer > p.is-error {
    color: #a22222 !important;
    font-weight: 700 !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-edit-footer > div {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    gap: 8px !important;
}

body > .picture-editor-window-overlay .notification {
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    color: #3d4a54 !important;
    background: #eef5f8 !important;
    border: 1px solid #c8d8e0 !important;
    border-radius: 4px !important;
}

/* Filterpaneel binnen dezelfde rechterkolom; het canvas links blijft de preview. */
body > .picture-editor-window-overlay .profile-bio-picture-edit-panel[data-picture-edit-panel="filter"]:not([hidden]) {
    display: block !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-filter-layout,
body > .picture-editor-window-overlay .profile-bio-picture-filter-controls,
body > .picture-editor-window-overlay .profile-bio-picture-filter-sheets {
    width: 100% !important;
    min-width: 0 !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-filter-preview {
    display: none !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-filter-reset {
    margin: 10px 0 0 !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* Nu de overlay rechtstreeks onder body staat zijn composer-overrides niet meer nodig. */
.status-window-dialog.has-separate-picture-editor,
.guestbook-window-dialog.has-separate-picture-editor {
    overflow: hidden !important;
}

@media (max-width: 900px) {
    body > .picture-editor-window-overlay {
        padding: 8px !important;
    }

    body > .picture-editor-window-overlay .picture-editor-window,
    body > .picture-editor-window-overlay .picture-editor-window.is-maximized {
        width: calc(100vw - 16px) !important;
        height: calc(100dvh - 16px) !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-width: none !important;
        max-height: none !important;
        border-radius: 6px !important;
        transform: none !important;
    }

    body > .picture-editor-window-overlay .profile-bio-picture-edit-white {
        grid-template-columns: minmax(0, 1fr) 360px !important;
    }
}

@media (max-width: 720px) {
    body > .picture-editor-window-overlay .profile-bio-picture-edit-view {
        grid-template-rows: minmax(0, 1fr) auto !important;
    }

    body > .picture-editor-window-overlay .profile-bio-picture-edit-white {
        display: flex !important;
        height: 100% !important;
        flex-direction: column !important;
        overflow-y: auto !important;
    }

    body > .picture-editor-window-overlay .profile-bio-picture-edit-preview {
        min-height: 290px !important;
        max-height: 46dvh !important;
        flex: 0 0 42dvh !important;
        padding: 14px !important;
        border-right: 0 !important;
        border-bottom: 1px solid #bdbdbd !important;
    }

    body > .picture-editor-window-overlay .profile-bio-picture-edit-tabs {
        flex: 0 0 auto !important;
        overflow-x: auto !important;
    }

    body > .picture-editor-window-overlay .profile-bio-picture-edit-panels {
        flex: 0 0 auto !important;
        min-height: 330px !important;
        overflow: visible !important;
    }

    body > .picture-editor-window-overlay .profile-bio-picture-edit-footer {
        min-height: 58px !important;
        padding: 10px !important;
        flex-wrap: wrap !important;
    }

    body > .picture-editor-window-overlay .profile-bio-picture-edit-footer > p:empty {
        display: none !important;
    }

    body > .picture-editor-window-overlay .profile-bio-picture-edit-footer > div {
        margin-left: auto !important;
    }
}

@media (max-width: 500px) {
    body > .picture-editor-window-overlay .profile-bio-picture-edit-tabs {
        grid-template-columns: repeat(4, minmax(92px, 1fr)) !important;
    }

    body > .picture-editor-window-overlay .profile-photo-resize-grid,
    body > .picture-editor-window-overlay .profile-bio-picture-draw-card,
    body > .picture-editor-window-overlay .profile-bio-picture-text-card {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body > .picture-editor-window-overlay .profile-photo-resize-times {
        display: none !important;
    }

    body > .picture-editor-window-overlay .profile-photo-resize-controls {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    body > .picture-editor-window-overlay .profile-bio-picture-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}


/* r613: Sticker aanpassen toont altijd een duidelijk open/dicht-pijltje. */
body > .picture-editor-window-overlay details.profile-bio-picture-sticker-controls > summary {
    position: relative !important;
    padding-right: 26px !important;
    list-style: none !important;
}

body > .picture-editor-window-overlay details.profile-bio-picture-sticker-controls > summary::-webkit-details-marker {
    display: none !important;
}

body > .picture-editor-window-overlay details.profile-bio-picture-sticker-controls > summary::after {
    position: absolute !important;
    top: 50% !important;
    right: 5px !important;
    box-sizing: border-box !important;
    display: block !important;
    width: 8px !important;
    height: 8px !important;
    margin-top: -6px !important;
    content: "" !important;
    border-right: 2px solid #555 !important;
    border-bottom: 2px solid #555 !important;
    transform: rotate(45deg) !important;
    transform-origin: center !important;
    transition: transform .15s ease, margin-top .15s ease !important;
}

body > .picture-editor-window-overlay details.profile-bio-picture-sticker-controls[open] > summary::after {
    margin-top: -2px !important;
    transform: rotate(225deg) !important;
}

/* De foto blijft binnen een rustige, vaste maat in het venster. */
@media (min-width: 721px) {
    body > .picture-editor-window-overlay .profile-bio-picture-edit-canvas {
        max-width: min(100%, 580px) !important;
        max-height: min(100%, 480px) !important;
    }
}

@media (max-width: 720px) {
    body > .picture-editor-window-overlay .profile-bio-picture-edit-preview {
        padding: 20px !important;
    }

    body > .picture-editor-window-overlay .profile-bio-picture-edit-canvas {
        max-width: 100% !important;
        max-height: 100% !important;
    }
}


/* Op smalle schermen blijft de Media-volgorde behouden: tabs, foto, opties. */
@media (max-width: 720px) {
    body > .picture-editor-window-overlay .profile-bio-picture-edit-tabs {
        order: 1 !important;
        min-height: 46px !important;
        padding: 6px 8px !important;
        gap: 4px !important;
    }

    body > .picture-editor-window-overlay .profile-bio-picture-edit-tabs .profile-photo-edit-tab {
        min-height: 32px !important;
        padding: 6px 10px !important;
    }

    body > .picture-editor-window-overlay .profile-bio-picture-edit-preview {
        order: 2 !important;
    }

    body > .picture-editor-window-overlay .profile-bio-picture-edit-panels {
        order: 3 !important;
    }
}

/* r614: foto exact midden-midden en passend binnen de beschikbare preview. */
body > .picture-editor-window-overlay .profile-bio-picture-edit-preview {
    position: relative !important;
    display: block !important;
    overflow: hidden !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-edit-canvas {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: auto;
    height: auto;
    max-width: calc(100% - 72px) !important;
    max-height: calc(100% - 72px) !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
    transform-origin: center !important;
}

/* Sticker gebruikt voortaan exact dezelfde Windows-opbouw als Filter. */
body > .picture-editor-window-overlay .profile-bio-picture-sticker-controls.profile-bio-picture-filter-adjust {
    display: block !important;
    width: 100% !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-sticker-controls.profile-bio-picture-filter-adjust > summary {
    position: static !important;
    box-sizing: border-box !important;
    display: flex !important;
    width: 100% !important;
    min-height: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
    gap: 9px !important;
    color: #222 !important;
    font: 700 14px/1.3 "Segoe UI", Tahoma, sans-serif !important;
    cursor: pointer !important;
    list-style: none !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-sticker-controls.profile-bio-picture-filter-adjust > summary::after {
    position: static !important;
    display: block !important;
    width: auto !important;
    min-width: 20px !important;
    height: 1px !important;
    margin: 0 0 0 3px !important;
    flex: 1 1 auto !important;
    order: 2 !important;
    content: "" !important;
    background: #d1d1d1 !important;
    border: 0 !important;
    transform: none !important;
    transition: none !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-sticker-controls.profile-bio-picture-filter-adjust > summary::before {
    box-sizing: border-box !important;
    display: block !important;
    width: 8px !important;
    height: 8px !important;
    margin: 0 3px 0 5px !important;
    flex: 0 0 8px !important;
    order: 3 !important;
    content: "" !important;
    border: 0 !important;
    border-right: 2px solid #555 !important;
    border-bottom: 2px solid #555 !important;
    transform: rotate(45deg) translate(-1px, -1px) !important;
    transform-origin: center !important;
    transition: transform .16s ease !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-sticker-controls.profile-bio-picture-filter-adjust[open] > summary::before {
    transform: rotate(225deg) translate(-1px, -1px) !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-sticker-controls.profile-bio-picture-filter-adjust .profile-bio-picture-collapsible-content {
    display: block !important;
    width: 100% !important;
    padding: 12px 0 0 !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-sticker-controls.profile-bio-picture-filter-adjust:not([open]) > .profile-bio-picture-collapsible-content {
    display: none !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-sticker-sheets.profile-bio-picture-filter-sheets {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    flex-direction: column !important;
}

body > .picture-editor-window-overlay .profile-photo-sticker-sheet-tabs.profile-bio-picture-filter-sheet-tabs {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 31px !important;
    align-items: flex-end !important;
    overflow: visible !important;
}

body > .picture-editor-window-overlay .profile-photo-sticker-sheet-tabs.profile-bio-picture-filter-sheet-tabs > button {
    position: relative !important;
    display: none !important;
    min-width: 112px !important;
    min-height: 31px !important;
    margin: 0 -1px -1px 0 !important;
    padding: 6px 14px 7px !important;
    align-items: center !important;
    justify-content: center !important;
    color: #111 !important;
    font: 13px/1.2 "Segoe UI", Tahoma, sans-serif !important;
    white-space: nowrap !important;
    background: linear-gradient(#fafafa, #e6e6e6 48%, #d7d7d7) !important;
    border: 1px solid #8b8b8b !important;
    border-radius: 4px 4px 0 0 !important;
    box-shadow: inset 1px 1px 0 rgba(255,255,255,.95) !important;
}

body > .picture-editor-window-overlay .profile-photo-sticker-sheet-tabs.profile-bio-picture-filter-sheet-tabs > button.is-active {
    z-index: 2 !important;
    display: inline-flex !important;
    flex: 0 1 auto !important;
    background: #f0f0f0 !important;
    border-bottom-color: #f0f0f0 !important;
}

body > .picture-editor-window-overlay .profile-photo-sticker-category-select-control.profile-bio-picture-filter-category-select {
    position: relative !important;
    z-index: 1 !important;
    display: inline-flex !important;
    width: 43px !important;
    min-width: 43px !important;
    height: 31px !important;
    margin: 0 0 -1px !important;
    align-items: center !important;
    justify-content: center !important;
    color: #222 !important;
    background: linear-gradient(#fafafa, #e6e6e6, #d7d7d7) !important;
    border: 1px solid #8b8b8b !important;
    border-radius: 4px 4px 0 0 !important;
}

body > .picture-editor-window-overlay .profile-photo-sticker-sheet-panels.profile-bio-picture-filter-sheet-panels {
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 278px !important;
    padding: 10px !important;
    background: #f0f0f0 !important;
    border: 1px solid #8b8b8b !important;
    border-radius: 0 7px 7px 7px !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-sticker-button.profile-bio-picture-filter-option {
    display: grid !important;
    min-width: 0 !important;
    min-height: 0 !important;
    aspect-ratio: 1 !important;
    padding: 7px !important;
    place-items: center !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 1px solid #aaa !important;
    border-radius: 0 !important;
    box-shadow: inset 1px 1px 0 #fff !important;
}

body > .picture-editor-window-overlay .profile-bio-picture-sticker-button.profile-bio-picture-filter-option:hover,
body > .picture-editor-window-overlay .profile-bio-picture-sticker-button.profile-bio-picture-filter-option:focus-visible {
    background: #dcecff !important;
    border-color: #316ac5 !important;
    outline: 1px solid #316ac5 !important;
    outline-offset: -2px !important;
}

@media (max-width: 720px) {
    body > .picture-editor-window-overlay .profile-bio-picture-edit-canvas {
        max-width: calc(100% - 36px) !important;
        max-height: calc(100% - 36px) !important;
    }
}
