#photos .sec-header.profile-hero-header,
#photos .sec-header.profile-hero-header.has-avatar {
    min-height: 192px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 58px !important;
    margin-bottom: 10px;
    overflow: visible;
    text-align: center;
}
#photos .sec-header.profile-hero-header::after { display: none !important; }
#photos .profile-hero-copy {
    margin: 0;
    align-items: center;
    text-align: center;
    opacity: 1 !important;
    transform: none !important;
}
#photos .profile-hero-copy h2 {
    color: #f6f7fb;
    font-size: clamp(32px, 3rem, 44px);
    font-weight: 750;
    line-height: 1.12;
    text-shadow: 0 2px 15px #111820, 0 4px 28px #111820;
}
#photos .profile-hero-copy h2 .dav-letter {
    color: #f6f7fb !important;
    font-family: inherit !important;
    font-size: 1em !important;
    animation: none !important;
}
#photos .profile-hero-copy p {
    color: #e3e7ee;
    font-size: 14px;
    text-shadow: 0 2px 12px #111820, 0 3px 24px #111820;
}
#photos .profile-hero-actions {
    top: 12px;
    right: 12px;
    bottom: auto;
}
#photos .profile-hero-toggle {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #20252dd9;
}
#photos .pov-avatar {
    width: 108px;
    height: 108px;
    border: 3px solid #f5c54e;
    box-shadow: 0 0 0 3px #17191b, 0 8px 22px #0006;
}
#photos .pov-avatar img { object-fit: cover; object-position: center; }
#photos .pov-camera-btn { width: 32px; height: 32px; }

.background-settings-overlay[hidden] { display: none !important; }
.background-settings-overlay {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: grid;
    place-items: center;
    padding: 16px;
    background: #080c13bf;
    backdrop-filter: blur(4px);
}
.background-settings-panel {
    width: min(560px, 100%);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    box-sizing: border-box;
    padding: 22px;
    border: 1px solid #444b56;
    border-radius: 8px;
    background: #1b2027;
    color: #f3f5f8;
    box-shadow: 0 20px 70px #0009;
}
.background-settings-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.background-settings-heading h2 { margin: 0; font-size: 20px; }
.background-settings-close { width: 32px; height: 32px; border: 0; background: transparent; color: inherit; font-size: 25px; cursor: pointer; }
.background-theme-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.background-theme-choice {
    display: grid;
    gap: 8px;
    padding: 6px 6px 10px;
    border: 1px solid #424a56;
    border-radius: 6px;
    background: #242a33;
    color: inherit;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}
.background-theme-choice.is-selected { border-color: #f5c54e; box-shadow: inset 0 0 0 1px #f5c54e; }
.background-theme-thumb { display: block; width: 100%; aspect-ratio: 4 / 3; background-size: cover; background-position: center; border-radius: 3px; }
.background-upload-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.background-upload-button, .background-remove-button {
    padding: 10px 14px;
    border: 1px solid #68707d;
    border-radius: 6px;
    background: #303741;
    color: #f3f5f8;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.background-remove-button { background: transparent; }
.background-remove-button[hidden] { display: none; }
.background-settings-status { min-height: 18px; margin: 12px 0 0; color: #e6c668; font-size: 12px; }
.background-theme-choice:focus-visible, .background-upload-button:focus-visible, .background-remove-button:focus-visible, .background-settings-close:focus-visible { outline: 2px solid #f5c54e; outline-offset: 2px; }

html[data-theme="light"] #photos .profile-hero-copy h2 { color: #213243; text-shadow: 0 2px 12px #fffd; }
html[data-theme="light"] #photos .profile-hero-copy h2 .dav-letter { color: #213243 !important; }
html[data-theme="light"] #photos .profile-hero-copy p { color: #405266; text-shadow: 0 2px 12px #fffd; }
html[data-theme="light"] .background-settings-panel { background: #fff; border-color: #cbd5df; color: #213243; }
html[data-theme="light"] .background-theme-choice { background: #f5f7fa; border-color: #cbd5df; color: #213243; }
html[data-theme="light"] .background-theme-choice.is-selected { border-color: #a87511; box-shadow: inset 0 0 0 1px #a87511; }
html[data-theme="light"] .background-upload-button, html[data-theme="light"] .background-remove-button { background: #f5f7fa; color: #213243; border-color: #bbc7d2; }
html[data-theme="light"] .background-settings-status { color: #72500b; }
@media (max-width: 768px) {
    #photos .sec-header.profile-hero-header { min-height: 160px; padding: 32px 52px !important; }
    #photos .pov-avatar { width: 88px; height: 88px; }
}
