body.public-mode.profile-edit-page {
    background: #10111d;
}

.profile-editor {
    display: grid;
    grid-template-columns: 250px minmax(0, 790px);
    justify-content: center;
    gap: 20px;
    align-items: start;
    padding: 22px 0 44px;
}

.profile-editor-side {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 22px;
    padding: 4px 0;
}

.profile-editor-side h1 {
    margin: 0;
    color: #fff;
    font-size: 1.28rem;
    line-height: 1.2;
}

.profile-settings-nav {
    display: grid;
    gap: 4px;
}

.profile-settings-nav a {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 4px;
    color: #f4f7ff;
    font-size: 0.92rem;
    font-weight: 700;
}

.profile-settings-nav a:hover,
.profile-settings-nav a.active {
    color: #2687ff;
    background: rgba(38, 135, 255, 0.1);
}

.profile-settings-nav a.muted {
    color: #d9e2f2;
}

.profile-settings-nav a.muted:hover {
    color: #f4f7ff;
}

.profile-editor-photo,
.profile-editor-section,
.profile-editor-toolbar,
.profile-editor-sticky {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #262633;
    box-shadow: none;
}

.profile-editor-photo {
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    min-width: 180px;
}

.profile-editor-photo img,
.profile-editor-thumbs img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.profile-editor-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-family: var(--display-font);
    font-size: 4rem;
    font-weight: 900;
    color: white;
    background: linear-gradient(135deg, #182035, #bf1f73 68%, #f05a2f);
}

.profile-editor-section,
.profile-editor-toolbar {
    border-radius: 4px;
}

.profile-editor-eyebrow,
.profile-editor-label {
    display: block;
    margin: 0 0 4px;
    color: #8db7ff;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.profile-editor-toolbar h2,
.profile-editor-section h3 {
    margin: 0;
    color: #fff;
    line-height: 1.2;
}

.profile-editor-toolbar h2 {
    font-size: 1rem;
}

.profile-editor-toolbar p,
.profile-editor-section-head p,
.profile-editor-help {
    margin: 8px 0 0;
    color: #aeb8c8;
    line-height: 1.45;
    font-size: 0.88rem;
}

.profile-editor-thumbs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.profile-editor-thumbs img {
    aspect-ratio: 1;
    border-radius: 4px;
}

.profile-editor-main {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.profile-editor-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    min-height: 50px;
    padding: 14px 20px;
}

.profile-editor-actions,
.profile-editor-sticky {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-editor-grid {
    display: grid;
    gap: 18px;
}

.profile-editor-section {
    padding: 0 0 20px;
}

.profile-editor-section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    min-height: 50px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-editor-fields {
    display: grid;
    gap: 16px;
    padding: 0 20px;
}

.profile-editor-fields.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-editor-fields.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-editor-field {
    display: grid;
    gap: 8px;
}

.profile-editor-field.wide {
    grid-column: 1 / -1;
}

.profile-editor label {
    color: #fff;
    font-weight: 800;
    font-size: 0.86rem;
}

.corematch-field {
    width: 100%;
    min-height: 38px;
    padding: 9px 11px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #f8fbff;
    background: #181925;
    outline: none;
}

textarea.corematch-field {
    resize: vertical;
}

.corematch-field:focus {
    border-color: rgba(47, 130, 255, 0.8);
    box-shadow: 0 0 0 2px rgba(47, 130, 255, 0.14);
}

.corematch-field::placeholder {
    color: #697489;
}

.profile-editor input[type="file"].corematch-field {
    padding: 10px;
    background: #181925;
}

.profile-editor-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 9px 11px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.profile-editor-field ul.corematch-field {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    min-height: 0;
    margin: 0;
    padding: 10px;
    list-style: none;
}

.profile-editor-field ul.corematch-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #d9e2f2;
}

.corematch-check {
    width: 18px;
    height: 18px;
}

.profile-editor .errorlist {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #ff8d9f;
    font-size: 0.86rem;
}

.profile-editor-alert {
    padding: 14px 16px;
    border-radius: 4px;
    color: #fff;
    background: rgba(213, 62, 82, 0.24);
    border: 1px solid rgba(255, 112, 132, 0.32);
}

.profile-photo-editor {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 18px;
    padding: 0 20px;
    align-items: start;
}

.profile-photo-controls {
    display: grid;
    gap: 10px;
}

.profile-editor-muted {
    display: none;
}

.settings-panel {
    min-height: 292px;
}

.settings-upload-trigger {
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.84rem;
}

.photo-upload-panel {
    display: none;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
}

.photo-upload-panel.is-open {
    display: block;
}

.photo-upload-options {
    display: grid;
    gap: 10px;
    align-content: start;
}

.settings-panel-actions {
    display: flex;
    justify-content: flex-end;
    padding: 14px 20px 0;
}

.settings-save-button,
.settings-secondary-button {
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 4px;
    border: 1px solid rgba(38, 135, 255, 0.72);
    color: #fff;
    background: #2687ff;
    font-weight: 800;
    cursor: pointer;
}

.settings-secondary-button {
    color: #dce7f8;
    background: transparent;
}

.notification-tabs {
    display: flex;
    gap: 0;
    padding: 14px 20px 0;
}

.notification-tabs a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d9e2f2;
    background: rgba(255, 255, 255, 0.03);
    font-weight: 800;
}

.notification-tabs a:first-child {
    border-radius: 4px 0 0 4px;
}

.notification-tabs a:last-child {
    border-radius: 0 4px 4px 0;
}

.notification-tabs a.active {
    border-color: rgba(38, 135, 255, 0.72);
    color: #fff;
    background: rgba(38, 135, 255, 0.22);
}

.notification-settings-panel .profile-editor-section-head {
    align-items: center;
}

.notification-options {
    display: grid;
    gap: 16px;
    padding: 0 20px 14px;
}

.notification-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 20px;
    color: #fff;
    font-weight: 800;
}

.notification-option input {
    width: 16px;
    height: 16px;
    accent-color: #2687ff;
    cursor: pointer;
}

.appearance-mode-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    justify-content: center;
    padding: 0 20px 14px;
}

.appearance-mode-card {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 6px;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
}

.appearance-mode-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.appearance-preview {
    position: relative;
    width: 144px;
    max-width: 100%;
    aspect-ratio: 2 / 1;
    display: grid;
    grid-template-columns: 40% 60%;
    overflow: hidden;
    border: 3px solid transparent;
    border-radius: 6px;
    background: #202130;
}

.appearance-mode-card.active .appearance-preview {
    border-color: #2687ff;
    box-shadow: 0 0 0 2px rgba(38, 135, 255, 0.25);
}

.appearance-mode-card.active .appearance-preview::after {
    content: "✓";
    position: absolute;
    top: 6px;
    left: 6px;
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    border-radius: 3px;
    color: #fff;
    background: #2687ff;
    font-size: 0.75rem;
    font-weight: 900;
}

.appearance-preview .preview-side {
    background: #eef4f7;
}

.appearance-preview .preview-main {
    display: grid;
    gap: 7px;
    align-content: start;
    padding: 10px;
    background: #252633;
}

.appearance-preview .preview-main span {
    min-height: 8px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.16);
}

.appearance-preview-light .preview-side,
.appearance-preview-light .preview-main {
    background: #ecf2f5;
}

.appearance-preview-light .preview-main span {
    background: #d3dce4;
}

.appearance-preview-dark .preview-side,
.appearance-preview-dark .preview-main {
    background: #252633;
}

.appearance-mode-card strong {
    text-align: center;
    font-size: 0.86rem;
}

.settings-empty-state {
    min-height: 244px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    color: #aeb8c8;
    text-align: center;
}

.settings-empty-state h2,
.settings-empty-state p {
    margin: 0;
}

.settings-empty-state h2 {
    color: #fff;
    font-size: 1.25rem;
}

.settings-empty-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    color: #d8e1ef;
    font-size: 2.4rem;
}

.settings-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 0 20px;
}

.settings-photo-card {
    display: grid;
    gap: 10px;
}

.settings-photo-card img {
    width: 100%;
    aspect-ratio: 1;
    display: block;
    object-fit: cover;
    border-radius: 4px;
    background: #181925;
}

.settings-photo-meta,
.settings-photo-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.settings-photo-meta {
    justify-content: space-between;
    color: #aeb8c8;
    font-size: 0.84rem;
}

.settings-photo-meta strong {
    color: #35d07f;
}

.settings-photo-caption {
    margin: 0;
    color: #c6d2e4;
    font-size: 0.86rem;
    line-height: 1.35;
}

.settings-photo-actions button,
.access-request-actions button {
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 4px;
    border: 1px solid rgba(38, 135, 255, 0.72);
    color: #2687ff;
    background: transparent;
    font-weight: 800;
    cursor: pointer;
}

.settings-photo-actions button.danger {
    border-color: #ff3954;
    color: #ff3954;
}

.access-request-list {
    display: grid;
    padding: 12px 26px 26px;
    gap: 6px;
}

.access-request-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    min-height: 51px;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.access-request-row.is-approved {
    border-color: transparent;
    background: transparent;
}

.access-request-row.is-rejected {
    border-color: transparent;
    background: transparent;
}

.access-request-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.access-request-user strong {
    color: #fff;
}

.access-request-avatar {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    overflow: hidden;
    border-radius: 50%;
    background: #181925;
}

.access-request-avatar img,
.access-request-avatar span {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    object-fit: cover;
    color: #fff;
    font-weight: 900;
}

.access-request-status,
.access-request-final {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #dce7f8;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
    font-weight: 900;
}

.access-request-status.is-approved,
.access-request-final.is-approved {
    border-color: rgba(0, 210, 72, 0.7);
    color: #00d248;
    background: rgba(0, 210, 72, 0.11);
}

.access-request-status.is-rejected,
.access-request-final.is-rejected {
    border-color: rgba(255, 57, 84, 0.72);
    color: #ff3954;
    background: rgba(255, 57, 84, 0.1);
}

.access-request-actions-static {
    justify-content: flex-end;
}

.access-request-actions {
    display: flex;
    min-width: 214px;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.access-request-actions button.approve {
    border-color: #00d932;
    color: #00d932;
}

.access-request-actions button.approve.is-current {
    background: #00c531;
    border-color: #00c531;
    color: #06120a;
}

.access-request-actions button.reject {
    border-color: #ff3954;
    color: #ff3954;
}

.access-request-actions button.reject.is-current {
    background: rgba(255, 57, 84, 0.16);
    border-color: #ff3954;
    color: #ff3954;
}

.access-request-status {
    color: #aeb8c8;
    font-size: 0.82rem;
}

.private-photo-callout {
    margin-top: 14px;
    padding: 14px;
    border-radius: 6px;
    background: rgba(38, 135, 255, 0.1);
    border: 1px solid rgba(38, 135, 255, 0.24);
}

.private-photo-callout p {
    margin: 0 0 10px;
    color: #dce6f6;
}

.profile-editor-sticky {
    position: sticky;
    bottom: 12px;
    justify-content: flex-end;
    padding: 14px;
    border-radius: 4px;
    backdrop-filter: blur(16px);
}

@media (max-width: 980px) {
    .profile-editor {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .profile-editor-side,
    .profile-editor-sticky {
        position: static;
    }

    .profile-editor-photo {
        max-width: 360px;
    }
}

@media (max-width: 680px) {
    .profile-editor-fields.two,
    .profile-editor-fields.three,
    .profile-photo-editor,
    .profile-editor-field ul.corematch-field,
    .settings-photo-grid {
        grid-template-columns: 1fr;
    }

    .profile-editor-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-settings-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .access-request-row {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .access-request-actions {
        width: 100%;
        min-width: 0;
        justify-content: flex-end;
    }
}

body.public-mode.profile-edit-page .content-card {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: #f2f6fb !important;
}

body.public-mode.profile-edit-page .message {
    background: rgba(38, 39, 54, 0.96) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #f2f6fb !important;
}

body.public-mode.profile-edit-page .profile-editor-section,
body.public-mode.profile-edit-page .settings-panel,
body.public-mode.profile-edit-page .settings-photo-card,
body.public-mode.profile-edit-page .photo-upload-panel {
    background: #262633 !important;
    color: #f2f6fb !important;
}

body.public-mode.profile-edit-page .settings-empty-state,
body.public-mode.profile-edit-page .settings-photo-meta {
    color: #aeb8c8 !important;
}

body.public-mode.profile-edit-page .access-request-status.is-approved,
body.public-mode.profile-edit-page .access-request-final.is-approved {
    color: #00d248 !important;
}

body.public-mode.profile-edit-page .access-request-status.is-rejected,
body.public-mode.profile-edit-page .access-request-final.is-rejected {
    color: #ff3954 !important;
}
