﻿/* ===== BMW Club wall — unified community layout ===== */
.fb-page {
    background: transparent;
    min-height: 420px;
}
.fb-page-inner {
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.fb-page-inner--profile .fb-home-sidebar,
.fb-page-inner--profile .fb-profile-sidebar {
    flex: 0 0 240px;
    width: 240px;
}
.fb-home-sidebar,
.fb-profile-sidebar {
    flex: 0 0 220px;
    width: 220px;
    position: sticky;
    top: 8px;
}
.fb-right-sidebar {
    position: sticky;
    top: 8px;
    flex: 0 0 280px;
    width: 280px;
}
.fb-home-menu,
.fb-profile-menu {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
}
.fb-home-menu-item,
.fb-profile-menu-item {
    display: block;
    padding: 9px 12px;
    color: var(--bmw-blue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid var(--surface-muted);
}
.fb-home-menu-item:last-child,
.fb-profile-menu-item:last-child { border-bottom: none; }
.fb-home-menu-item:hover,
.fb-profile-menu-item:hover {
    background: var(--surface-muted);
    text-decoration: none;
}
.fb-home-menu-item.is-active,
.fb-profile-menu-item.is-active {
    background: var(--bmw-blue-light);
    color: var(--text);
}
.fb-profile-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 10px 10px 8px;
    margin-bottom: 8px;
    text-align: center;
}
.fb-profile-photo {
    margin: 0 auto 8px;
    width: 148px;
    height: 148px;
    border: 1px solid var(--border);
    background: var(--surface-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}
.fb-profile-photo-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(180deg, var(--bmw-blue) 0%, var(--bmw-blue-dark) 100%);
}
.fb-avatar-img {
    display: block;
    object-fit: cover;
    border-radius: 2px;
}
.fb-avatar-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(180deg, var(--bmw-blue) 0%, var(--bmw-blue-dark) 100%);
    border-radius: 2px;
}
.fb-avatar--profile {
    width: 148px;
    height: 148px;
    font-size: 52px;
}
.fb-avatar--compose {
    width: 32px;
    height: 32px;
    font-size: 14px;
    flex-shrink: 0;
}
.fb-avatar--story {
    width: 40px;
    height: 40px;
    font-size: 16px;
}
.fb-avatar--comment {
    width: 28px;
    height: 28px;
    font-size: 12px;
    flex-shrink: 0;
}
.fb-avatar--online {
    width: 24px;
    height: 24px;
    font-size: 11px;
    flex-shrink: 0;
}
.profile-edit-avatar-block {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px;
    background: #f7f8fa;
    border: 1px solid #e4e6eb;
    border-radius: 4px;
}
.profile-edit-avatar-preview .fb-avatar--profile {
    border: 1px solid var(--border);
}
.profile-edit-avatar-fields { flex: 1; min-width: 0; }
.profile-edit-avatar-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}
.profile-forum-fieldset {
    margin: 20px 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fafbfc;
}
.profile-forum-fieldset legend {
    font-weight: 600;
    padding: 0 6px;
}
.profile-forum-fieldset label { display: block; margin-bottom: 12px; }
.profile-forum-notify-options {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}
.profile-checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 0 !important;
    font-weight: normal;
    line-height: 1.45;
}
.profile-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.profile-edit-avatar-hint {
    display: block;
    font-size: 12px;
    color: #65676b;
    margin-top: 4px;
}
.profile-edit-avatar-remove {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: #65676b;
}
.fb-story-owner-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.fb-link-edit {
    border: none;
    background: none;
    color: #65676b;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.fb-link-edit:hover { color: #4267b2; }
.fb-story-edited {
    font-size: 11px;
    color: #90949c;
}
.fb-story-edit {
    padding: 0 12px 12px 60px;
    border-bottom: 1px solid var(--surface-muted);
}
.fb-story-edit-actions {
    justify-content: flex-end;
}
.fb-notifications-wrap {
    margin: 0 auto;
}
.fb-notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.fb-notifications-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 3px;
}
.fb-notification-item { border-bottom: 1px solid var(--surface-muted); }
.fb-notification-item:last-child { border-bottom: none; }
.fb-notification-item.is-unread { background: var(--bmw-blue-light); }
.fb-notification-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    text-decoration: none;
    color: inherit;
}
.fb-notification-link:hover { background: var(--surface-muted); }
.fb-notification-body { flex: 1; min-width: 0; }
.fb-notification-message {
    display: block;
    font-size: 14px;
    color: var(--text);
    line-height: 1.35;
}
.fb-notification-meta {
    display: flex;
    gap: 8px;
    margin-top: 4px;
    font-size: 12px;
    color: #65676b;
}
.fb-notification-type {
    font-weight: 600;
    color: var(--bmw-blue);
}
.fb-notification-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4267b2;
    flex-shrink: 0;
}
.fb-notifications-back {
    margin: 16px 0 0;
    font-size: 13px;
}
.utility-notifications { position: relative; }
.utility-notif-badge {
    display: inline-block;
    min-width: 18px;
    padding: 1px 5px;
    margin-left: 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    color: #fff;
    background: #e0245e;
    border-radius: 10px;
    vertical-align: middle;
}
.utility-notifications.has-unread,
.utility-messages.has-unread { font-weight: 700; }
.fb-btn-secondary {
    background: #e4e6eb;
    border-color: var(--border);
    color: var(--text);
}
.fb-btn-block { display: block; width: 100%; margin-top: 8px; text-align: center; }
.fb-profile-actions { margin-top: 8px; }
.fb-profile-stats {
    margin: 8px 0 0;
    padding: 0;
    border-top: 1px solid var(--border);
    width: 100%;
    text-align: left;
}
.fb-profile-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 2px;
    border-bottom: 1px solid var(--surface-muted, #f0f0f0);
    font-size: 11px;
    line-height: 1.25;
}
.fb-profile-stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.fb-profile-stat dt {
    margin: 0;
    font-weight: 600;
    color: var(--text-muted, #666);
    text-align: left;
}
.fb-profile-stat dd {
    margin: 0;
    font-weight: 700;
    font-size: 13px;
    color: var(--text);
    text-align: right;
    min-width: 2.5em;
}
.fb-profile-stat dd a {
    color: var(--bmw-blue);
    text-decoration: none;
}
.fb-profile-stat dd a:hover {
    color: var(--bmw-blue-dark);
    text-decoration: underline;
}
.fb-friends-wrap { margin: 0 auto; }
.fb-friends-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.fb-friends-tab {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--bmw-blue);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
}
.fb-friends-tab.is-active {
    background: var(--bmw-blue-light);
    color: var(--text);
    border-color: #9cb4d8;
}
.fb-friends-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 3px;
}
.fb-friends-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--surface-muted);
}
.fb-friends-item:last-child { border-bottom: none; }
.fb-friends-user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.fb-friends-user-meta { min-width: 0; }
.fb-friends-user-meta strong { display: block; color: var(--bmw-blue); font-size: 14px; }
.fb-friends-bio,
.fb-friends-status {
    display: block;
    font-size: 12px;
    color: #65676b;
    margin-top: 2px;
}
.fb-friends-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}
/* ===== Messages (Facebook Messenger style) ===== */
.fb-messages-shell {
    margin: 0 auto;
    min-height: min(680px, calc(100vh - 168px));
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(38, 38, 38, 0.04), 0 4px 18px rgba(28, 105, 212, 0.07);
}

.fb-messages-inbox,
.fb-messages-chat {
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.fb-messages-inbox {
    border-right: 1px solid #e4e6eb;
}

.fb-messages-inbox-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid #e4e6eb;
    flex-shrink: 0;
}

.fb-messages-inbox-head h1 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
}

.fb-messages-wall-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--bmw-blue);
    text-decoration: none;
    white-space: nowrap;
}

.fb-messages-wall-link:hover {
    text-decoration: underline;
}

.fb-messages-filters {
    display: flex;
    gap: 6px;
    padding: 0 12px 10px;
    flex-shrink: 0;
}

.fb-messages-filter {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: #65676b;
    text-decoration: none;
    background: #f0f2f5;
}

.fb-messages-filter.is-active,
.fb-messages-filter:hover {
    background: var(--bmw-blue-light);
    color: var(--bmw-blue);
    text-decoration: none;
}

.fb-messages-thread-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}

.fb-messages-thread-top strong {
    font-size: 14px;
    color: var(--text);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fb-messages-thread-date {
    flex-shrink: 0;
    font-size: 11px;
    color: #65676b;
    font-weight: 400;
}

.fb-messages-priority-icon {
    flex-shrink: 0;
    color: #f5a623;
    font-size: 13px;
    line-height: 1;
}

.fb-messages-empty,
.fb-messages-chat-empty {
    padding: 28px 18px;
    color: #65676b;
    font-size: 14px;
    text-align: center;
    line-height: 1.45;
}

.fb-messages-placeholder {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    text-align: center;
    color: #65676b;
    background: #f7f8fa;
}

.fb-messages-placeholder-icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 12px;
    opacity: 0.85;
}

.fb-messages-placeholder p {
    margin: 0 0 8px;
    font-size: 15px;
}

.fb-messages-placeholder-hint {
    font-size: 13px;
    max-width: 320px;
    line-height: 1.5;
}

.fb-messages-threads {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

.fb-messages-thread-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f0f2f5;
    transition: background 0.15s ease;
}

.fb-messages-thread-item.is-active .fb-messages-thread-link,
.fb-messages-thread-link:hover {
    background: #f0f2f5;
}

.fb-messages-thread-item.has-unread .fb-messages-thread-link {
    background: #eef4ff;
}

.fb-messages-thread-item.has-unread.is-active .fb-messages-thread-link {
    background: #e3edfc;
}

.fb-messages-thread-meta {
    flex: 1;
    min-width: 0;
}

.fb-messages-thread-item.has-unread .fb-messages-thread-top strong {
    font-weight: 700;
}

.fb-messages-preview {
    display: block;
    font-size: 12px;
    color: #65676b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fb-messages-unread-badge {
    flex-shrink: 0;
    min-width: 20px;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--bmw-blue);
    border-radius: 10px;
    text-align: center;
}

.fb-messages-chat-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid #e4e6eb;
    flex-shrink: 0;
    background: #fff;
}

.fb-messages-back {
    display: none;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #f0f2f5;
    color: var(--text);
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    text-align: center;
    padding: 0;
    cursor: pointer;
}

.fb-messages-back:hover {
    background: #e4e6eb;
    text-decoration: none;
}

.fb-messages-chat-user {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    flex: 1;
}

.fb-messages-chat-user strong {
    display: block;
    font-size: 15px;
    color: var(--text);
}

.fb-messages-chat-status {
    display: block;
    font-size: 12px;
    color: #65676b;
    font-weight: 400;
}

.fb-messages-chat-tools {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
}

.fb-messages-tool-form {
    margin: 0;
}

.fb-messages-tool-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f0f2f5;
    color: #555;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.fb-messages-tool-btn:hover {
    background: #e4e6eb;
}

.fb-messages-tool-btn.is-active {
    background: #fff3cd;
    color: #9a6700;
}

.fb-messages-tool-btn--danger:hover {
    background: #ffe8ee;
    color: #c2185b;
}

.fb-dm-date-divider {
    display: flex;
    justify-content: center;
    margin: 14px 0 10px;
}

.fb-dm-date-divider span {
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    color: #65676b;
    font-size: 11px;
    font-weight: 500;
}

.fb-dm-bubble-wrap.is-theirs {
    align-items: flex-end;
    gap: 8px;
}

.fb-dm-bubble-avatar {
    flex-shrink: 0;
    line-height: 0;
    text-decoration: none;
}

.fb-dm-bubble-col {
    position: relative;
    max-width: min(78%, 520px);
}

.fb-dm-bubble-wrap.is-mine .fb-dm-bubble-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.fb-dm-bubble {
    max-width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.45;
    word-break: break-word;
}

.fb-dm-bubble-wrap.is-theirs .fb-dm-bubble {
    background: #e4e6eb;
    color: var(--text);
    border-radius: 18px 18px 18px 4px;
}

.fb-dm-bubble-wrap.is-mine .fb-dm-bubble {
    background: var(--bmw-blue);
    color: #fff;
    border-radius: 18px 18px 4px 18px;
}

.fb-dm-bubble time {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    opacity: 0.72;
}

.fb-dm-bubble .forum-bbcode-emoji-anim {
    display: inline-block;
    width: 32px;
    height: 32px;
    vertical-align: middle;
}

.fb-dm-deleted {
    font-style: italic;
    color: #90949c;
    font-size: 13px;
}

.fb-dm-delete-form {
    margin-top: 2px;
}

.fb-dm-delete-btn {
    border: none;
    background: transparent;
    color: #90949c;
    font-size: 14px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.fb-dm-delete-btn:hover {
    color: #c2185b;
}

.fb-messages-compose-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.fb-messages-emoji-wrap {
    position: relative;
    flex-shrink: 0;
}

.fb-messages-emoji-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #65676b;
}

.fb-messages-emoji-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.fb-messages-emoji-panel {
    position: absolute;
    right: 0;
    left: auto;
    bottom: calc(100% + 8px);
    z-index: 20;
    width: min(300px, 92vw);
    max-height: 280px;
    overflow: auto;
    padding: 10px;
    background: #fff;
    border: 1px solid #e4e6eb;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.fb-messages-emoji-section + .fb-messages-emoji-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f2f5;
}

.fb-messages-emoji-label {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 600;
    color: #65676b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.fb-messages-emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 4px;
}

.fb-messages-emoji-grid--unicode {
    grid-template-columns: repeat(8, minmax(0, 1fr));
}

.fb-messages-emoji-pick {
    border: none;
    background: transparent;
    border-radius: 6px;
    padding: 4px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.fb-messages-emoji-pick:hover {
    background: #f0f2f5;
}

.fb-messages-emoji-pick--anim {
    padding: 2px;
}

.fb-messages-emoji-pick--anim img {
    display: block;
    width: 28px;
    height: 28px;
}

.fb-messages-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px;
    background: #f7f8fa;
}

.fb-dm-bubble-wrap {
    display: flex;
    margin-bottom: 6px;
}

.fb-dm-bubble-wrap.is-mine {
    justify-content: flex-end;
}

.fb-messages-compose {
    flex-shrink: 0;
    padding: 10px 14px 14px;
    border-top: 1px solid #e4e6eb;
    background: #fff;
}

.fb-messages-compose-inner {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 6px 6px 6px 14px;
    background: #f0f2f5;
    border-radius: 24px;
}

.fb-messages-compose-inner textarea {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 0;
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    resize: none;
    min-height: 24px;
    max-height: 120px;
    outline: none;
}

.fb-messages-send {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--bmw-blue);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.fb-messages-send:hover {
    background: var(--bmw-blue-dark);
}

@media (max-width: 768px) {
    .fb-messages-shell {
        grid-template-columns: 1fr;
        min-height: min(620px, calc(100vh - 140px));
    }

    .fb-messages-shell.has-chat-open .fb-messages-inbox {
        display: none;
    }

    .fb-messages-shell:not(.has-chat-open) .fb-messages-chat {
        display: none;
    }

    .fb-messages-back {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .fb-friends-item {
        flex-direction: column;
        align-items: stretch;
    }

    .fb-friends-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}
.fb-profile-head {
    width: 100%;
    text-align: center;
}
.fb-profile-name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin-bottom: 4px;
}
.fb-profile-name {
    font-size: 17px;
    margin: 0;
    color: var(--text);
    line-height: 1.2;
}
.fb-profile-edit-btn {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: #fff;
    font-size: 11px;
    font-weight: 600;
    color: var(--bmw-blue);
    text-decoration: none;
    line-height: 1.2;
    white-space: nowrap;
}
.fb-profile-edit-btn:hover {
    background: var(--bmw-blue-light);
    border-color: var(--bmw-blue);
    text-decoration: none;
}
.fb-profile-edit-btn.is-active {
    background: var(--bmw-blue);
    border-color: var(--bmw-blue);
    color: #fff;
}
.fb-profile-name-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}
.fb-profile-password-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
}
body.profile-password-modal-open {
    overflow: hidden;
}
.profile-password-modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.profile-password-modal[hidden] {
    display: none !important;
}
.profile-password-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}
.profile-password-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--border, #ddd);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.2);
    overflow: hidden;
}
.profile-password-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--surface-muted, #e4e6eb);
    background: #f8f9fa;
}
.profile-password-modal__header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}
.profile-password-modal__close {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #65676b;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.profile-password-modal__close:hover {
    background: #e4e6eb;
}
.profile-password-modal__form {
    padding: 16px;
    display: grid;
    gap: 12px;
}
.profile-password-modal__form label {
    display: grid;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}
.profile-password-modal__form input[type="password"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border, #ccd0d5);
    border-radius: 6px;
    font: inherit;
    box-sizing: border-box;
}
.profile-password-modal__hint {
    margin: 0;
    font-size: 12px;
    color: #65676b;
}
.profile-password-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 4px;
}
.fb-profile-meta {
    margin: 0 0 6px;
    text-align: center;
}
.fb-profile-meta p {
    margin: 0 0 2px;
    font-size: 11px;
    line-height: 1.35;
}
.fb-profile-meta p:last-child {
    margin-bottom: 0;
}
.fb-profile-location,
.fb-profile-bio {
    color: #65676b;
}
.fb-feed-column {
    flex: 0 0 640px;
    width: 640px;
    max-width: 640px;
    min-width: 0;
}
.fb-feed-header {
    margin-bottom: 10px;
    padding: 2px 2px 8px;
}
.fb-feed-header h1 {
    font-size: 20px;
    margin: 0 0 4px;
    color: var(--text);
}
.fb-feed-header p {
    margin: 0;
    font-size: 13px;
    color: #65676b;
}
.fb-feed-tabs {
    display: flex;
    gap: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 3px;
    margin-bottom: 12px;
    overflow: hidden;
}
.fb-feed-tab {
    flex: 1;
    padding: 10px 12px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #65676b;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.fb-feed-tab + .fb-feed-tab {
    border-left: 1px solid var(--surface-muted);
}
.fb-feed-tab:hover {
    background: var(--surface-muted);
    text-decoration: none;
    color: var(--bmw-blue);
}
.fb-feed-tab.is-active {
    color: #1877f2;
    border-bottom-color: #1877f2;
    background: #fff;
}
.fb-compose {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.fb-compose--expanded {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.fb-compose-collapsed {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    user-select: none;
}
.fb-compose-collapsed:hover .fb-compose-trigger-field {
    background: #e4e6eb;
}
.fb-compose-collapsed .fb-avatar {
    flex-shrink: 0;
}
.fb-compose-trigger-field {
    flex: 1;
    display: block;
    min-height: 40px;
    line-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: #f0f2f5;
    color: #65676b;
    font-size: 14px;
    font-weight: 400;
    transition: background 0.15s ease;
}
.fb-compose-expanded {
    padding: 12px 14px 14px;
}
.fb-compose-expanded-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.fb-compose-expanded-head .fb-avatar {
    flex-shrink: 0;
}
.fb-compose-prompt {
    font-size: 13px;
    font-weight: 600;
    color: #65676b;
}
.fb-compose--collapsed .fb-compose-expanded {
    display: none;
}
.fb-compose--expanded .fb-compose-collapsed {
    display: none;
}
.fb-compose-form {
    padding: 0;
}
.fb-compose-editor {
    min-height: 0;
}
.fb-compose--expanded .fb-compose-editor .tox-tinymce {
    border-radius: 8px;
    border-color: #e4e6eb;
}
.fb-compose--expanded .fb-compose-editor .tox .tox-toolbar-overlord,
.fb-compose--expanded .fb-compose-editor .tox .tox-toolbar__primary {
    background: #f7f8fa;
}
.fb-compose-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 8px 10px;
    font: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 56px;
    box-sizing: border-box;
}
.fb-compose-attachments {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.75rem 0.5rem;
}
.fb-compose-photo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border: none;
    border-radius: 6px;
    background: #f0f2f5;
    color: #050505;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
}
.fb-compose-photo-btn:hover {
    background: #e4e6eb;
}
.fb-compose-photo-icon {
    font-size: 1.1rem;
    line-height: 1;
}
.fb-compose-actions {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.fb-compose-visibility {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.fb-visibility-option {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #65676b;
    cursor: pointer;
}
.fb-visibility-option input { margin: 0; }
.fb-btn {
    border: 1px solid var(--border);
    background: var(--surface-muted);
    color: var(--text);
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 2px;
    cursor: pointer;
}
.fb-btn-primary {
    background: #4267b2;
    border-color: #29487d;
    color: #fff;
}
.fb-btn-primary:hover { background: #365899; }
.fb-feed { display: flex; flex-direction: column; gap: 12px; }
.fb-story {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 3px;
}
.fb-story-head {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 12px 0;
}
.fb-story-avatar {
    flex-shrink: 0;
    text-decoration: none;
    display: block;
    line-height: 0;
}
.fb-story-meta { flex: 1; min-width: 0; }
.fb-story-author {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--bmw-blue);
    text-decoration: none;
}
.fb-story-author:hover { text-decoration: underline; }
.fb-story-meta time {
    display: block;
    font-size: 12px;
    color: #65676b;
    margin-top: 2px;
}
.fb-story-delete { margin-left: auto; }
.fb-link-danger {
    border: none;
    background: none;
    color: #999;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.fb-link-danger:hover { color: #c62828; }
.fb-story-body {
    padding: 10px 12px 8px 60px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text);
}
.fb-story-body img.wall-post-photo:not([width]),
.fb-story-body img:not(.forum-bbcode-emoji-anim):not([data-emoticon]):not([width]) {
    display: block;
    width: auto;
    max-width: min(100%, 420px);
    max-height: 320px;
    height: auto;
    object-fit: contain;
    margin: 8px 0 4px;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--surface-muted, #e4e6eb);
    background: #f0f2f5;
    box-sizing: border-box;
}
.fb-story-body img.wall-post-photo[width],
.fb-story-body img:not(.forum-bbcode-emoji-anim):not([data-emoticon])[width] {
    display: inline-block;
    max-width: 100%;
    height: auto;
    margin: 8px 0 4px;
    border-radius: 4px;
    vertical-align: middle;
}
.fb-story-body img.wall-post-photo--zoomable,
.wall-report-excerpt img.wall-post-photo--zoomable {
    cursor: zoom-in;
}
.fb-story-body img.forum-bbcode-emoji-anim,
.fb-story-body.rich-content img.forum-bbcode-emoji-anim,
.wall-page .rich-content img.forum-bbcode-emoji-anim {
    display: inline-block !important;
    width: 45px !important;
    height: 45px !important;
    max-width: 45px !important;
    max-height: 45px !important;
    object-fit: contain;
    margin: 0 2px;
    padding: 0;
    border: none;
    background: transparent;
    vertical-align: middle;
    border-radius: 0;
}
.wall-emoji-dialog-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    max-height: 280px;
    overflow-y: auto;
    padding: 4px;
}
.wall-emoji-pick {
    width: 36px;
    height: 36px;
    padding: 2px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}
.wall-emoji-pick:hover {
    border-color: #1877f2;
    background: var(--surface-muted);
}
.wall-emoji-pick img {
    display: block;
    width: 28px;
    height: 28px;
    margin: 0 auto;
    object-fit: contain;
}
.fb-story-visibility {
    display: inline-block;
    font-size: 11px;
    color: #65676b;
    margin-top: 2px;
}
.fb-story-stats {
    padding: 0 12px 6px 60px;
    font-size: 12px;
    color: #65676b;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.fb-story-actions {
    display: flex;
    border-top: 1px solid var(--surface-muted);
    margin: 0 12px;
}
.fb-action-btn {
    flex: 1;
    border: none;
    background: none;
    padding: 8px 6px;
    font-size: 13px;
    font-weight: 600;
    color: #65676b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.fb-action-btn:hover { background: var(--surface-muted); }
.fb-action-btn.is-liked,
.fb-action-btn.is-liked:hover { color: #4267b2; }
.fb-action-like.is-liked .fb-action-icon { color: #e0245e; }
.fb-action-icon { font-size: 14px; line-height: 1; }
.fb-comments {
    border-top: 1px solid var(--surface-muted);
    padding: 10px 12px 12px;
    background: var(--surface);
}
.fb-comment-list {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fb-comment {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.fb-comment-avatar {
    flex-shrink: 0;
    text-decoration: none;
    display: block;
    line-height: 0;
}
.fb-comment-bubble {
    background: #fff;
    border: 1px solid #e4e6eb;
    border-radius: 12px;
    padding: 6px 10px;
    flex: 1;
    min-width: 0;
}
.fb-comment-author {
    font-size: 12px;
    font-weight: 700;
    color: var(--bmw-blue);
    text-decoration: none;
}
.fb-comment-body {
    font-size: 13px;
    color: var(--text);
    margin: 2px 0 4px;
    line-height: 1.35;
}
.fb-comment-bubble time {
    font-size: 11px;
    color: #90949c;
}
.fb-comment-delete { flex-shrink: 0; }
.fb-comment-form { margin-top: 4px; }
.fb-comment-compose {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.fb-comment-compose .fb-avatar { flex-shrink: 0; margin-top: 4px; }
.fb-comment-compose input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 8px 12px;
    font-size: 13px;
}
.fb-btn-small {
    padding: 6px 12px;
    font-size: 12px;
}
.fb-comment-login {
    margin: 0;
    font-size: 13px;
    color: #65676b;
    text-align: center;
}
.fb-online-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 3px;
    margin-top: 10px;
    padding: 10px 12px;
}
.fb-online-title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}
.fb-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #31a24c;
    display: inline-block;
}
.fb-online-count {
    margin-left: auto;
    font-size: 12px;
    color: #65676b;
    font-weight: 600;
}
.fb-online-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.fb-online-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 2px;
    text-decoration: none;
    border-radius: 2px;
}
.fb-online-link:hover { background: var(--surface-muted); }
.fb-online-link .fb-avatar { flex-shrink: 0; }
.fb-online-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--bmw-blue);
}
.fb-online-empty,
.fb-online-hint {
    margin: 0;
    font-size: 11px;
    color: #90949c;
    line-height: 1.4;
}
.fb-online-hint { margin-top: 8px; }
.fb-profile-online {
    color: #31a24c;
    font-size: 14px;
    margin-left: 4px;
}
.fb-profile-last-seen {
    font-size: 11px;
    color: #31a24c;
    margin: 0;
}
.fb-login-box,
.fb-empty {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 20px;
    text-align: center;
    color: #65676b;
    font-size: 14px;
}
.fb-pagination {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    font-size: 13px;
}
.fb-pagination a { color: var(--bmw-blue); font-weight: 600; }
.profile-edit-form { max-width: none; }
.fb-profile-edit-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 16px;
}
.fb-profile-edit-card .profile-edit-form label {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
    color: #1c1e21;
}
.fb-profile-edit-card .profile-edit-form input[type="text"],
.fb-profile-edit-card .profile-edit-form input[type="email"],
.fb-profile-edit-card .profile-edit-form select,
.fb-profile-edit-card .profile-edit-form textarea {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}
.fb-profile-edit-card .profile-edit-form input:disabled {
    background: var(--surface-muted);
    color: #65676b;
}
.profile-edit-actions {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--surface-muted);
}

.fb-story-head-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}
.fb-story-permalink {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.65;
    padding: 2px 4px;
}
.fb-story-permalink:hover { opacity: 1; }
.fb-comment-input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}
.fb-comment-compose textarea {
    width: 100%;
    min-height: 34px;
    max-height: 120px;
    resize: vertical;
    padding: 8px 36px 8px 10px;
    border: 1px solid var(--border);
    border-radius: 18px;
    font-family: inherit;
    font-size: 13px;
    box-sizing: border-box;
}
.fb-comment-emoji-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 2px;
}
.fb-comment-form-error {
    margin: 6px 0 0 42px;
    font-size: 12px;
    color: #c62828;
}
.wall-comment-emoji-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 4px);
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2px;
    width: 200px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.fb-comment-list:empty { display: none; }

/* Right sidebar — listings & forum watch */
.fb-side-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}
.fb-side-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bmw-blue-light, #e8f0fa);
    border-bottom: 1px solid var(--border);
}
.fb-side-box-title {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text, #262626);
}
.fb-side-box-link {
    font-size: 11px;
    font-weight: 600;
    color: var(--bmw-blue, #1c69d4);
    text-decoration: none;
    white-space: nowrap;
}
.fb-side-box-link:hover {
    text-decoration: underline;
}
.fb-side-box-body {
    padding: 8px 10px 10px;
}
.fb-side-empty {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--text-muted, #555);
}
.fb-side-empty a {
    color: var(--bmw-blue, #1c69d4);
    font-weight: 600;
    text-decoration: none;
}
.fb-side-empty a:hover {
    text-decoration: underline;
}
.fb-side-listings,
.fb-side-forum-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.fb-side-listings li + li,
.fb-side-forum-list li + li {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border, #e6e6e6);
}
.fb-side-listings li:first-child,
.fb-side-forum-list li:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.fb-side-listing {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    text-decoration: none;
    color: inherit;
}
.fb-side-listing:hover .fb-side-listing__title {
    color: var(--bmw-blue, #1c69d4);
}
.fb-side-listing__thumb {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--surface-muted, #f6f6f6);
    border: 1px solid var(--border, #e6e6e6);
}
.fb-side-listing__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fb-side-listing__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.fb-side-listing__title {
    display: block;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text, #262626);
}
.fb-side-listing__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    font-size: 11px;
    color: var(--text-muted, #666);
}
.fb-side-listing__meta strong {
    color: var(--bmw-blue-dark, #0653b6);
    font-weight: 700;
}
.fb-side-listing__cat {
    color: var(--text-muted, #888);
}
.fb-side-forum-item {
    display: block;
    text-decoration: none;
    color: inherit;
}
.fb-side-forum-item:hover .fb-side-forum-item__title {
    color: var(--bmw-blue, #1c69d4);
}
.fb-side-forum-item__title {
    display: block;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text, #262626);
    margin-bottom: 2px;
}
.fb-side-forum-item__meta {
    font-size: 10px;
    color: var(--text-muted, #777);
    line-height: 1.35;
}

@media (max-width: 1180px) {
    .fb-page-inner {
        flex-wrap: wrap;
        width: 100%;
        box-sizing: border-box;
    }
    .fb-feed-column {
        flex: 1 1 480px;
        width: auto;
        max-width: none;
    }
    .fb-right-sidebar {
        flex: 1 1 100%;
        width: 100%;
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 12px;
    }
    .fb-right-sidebar .fb-side-box {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .fb-page-inner {
        flex-direction: column;
        max-width: 100%;
    }
    .fb-home-sidebar,
    .fb-profile-sidebar,
    .fb-feed-column,
    .fb-right-sidebar {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
    }
    .fb-home-sidebar,
    .fb-profile-sidebar,
    .fb-right-sidebar {
        position: static;
    }
    .fb-profile-photo {
        width: 120px;
        height: 120px;
    }
    .fb-avatar--profile { width: 120px; height: 120px; font-size: 42px; }
    .profile-edit-avatar-block { flex-direction: column; text-align: center; }
    .fb-story-body,
    .fb-story-stats,
    .fb-story-edit { padding-left: 12px; }
    .fb-story-actions { margin: 0 8px; }
}

/* Wall reports (moderation queue + inline report form) */
.wall-reports-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.wall-report-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 12px 14px;
}
.wall-report-head { font-size: 13px; margin-bottom: 4px; }
.wall-report-sep { color: #90949c; margin: 0 4px; }
.wall-report-meta { font-size: 12px; color: #65676b; margin-bottom: 8px; }
.wall-report-reason { font-size: 13px; margin-bottom: 10px; color: #1c1e21; }
.wall-report-excerpt {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-left: 3px solid var(--border);
    background: var(--surface-muted);
    font-size: 13px;
}
.wall-report-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.wall-report-mod-form {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.wall-reports-back { margin-top: 8px; font-size: 13px; }
.wall-inline-report {
    margin: 0 12px 12px;
    padding: 12px;
    background: var(--surface-muted);
    border: 1px solid var(--surface-muted);
    border-radius: 3px;
}
.wall-report-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1c1e21;
    margin-bottom: 8px;
}
.wall-report-label textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    min-height: 72px;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 3px;
    font: inherit;
    resize: vertical;
}
.wall-report-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.fb-action-report.is-active { color: #d93025; }

.fb-feed-sentinel {
    text-align: center;
    padding: 16px 12px 24px;
    color: #65676b;
    font-size: 13px;
}
.fb-feed-loading { font-weight: 600; color: var(--bmw-blue); }
.fb-feed-end { color: #90949c; }
.fb-pagination--top {
    margin-top: 0;
    margin-bottom: 4px;
}

.user-gallery-badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.1rem 0.45rem;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    color: #1a5f2a;
    background: #e8f5e9;
    border-radius: 999px;
    vertical-align: middle;
}
.user-gallery-upload--default {
    margin-bottom: 1rem;
}
.user-gallery-quick-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}
.user-gallery-quick-hint {
    margin: 0 0 0.75rem;
    color: #65676b;
    font-size: 0.9rem;
}
.user-gallery-album-card.is-default {
    border-color: #c8e6c9;
}
.user-gallery-intro {
    margin: 0;
    color: #65676b;
    font-size: 13px;
}
.user-gallery-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}
.user-gallery-tab {
    padding: 8px 14px;
    border-radius: 999px;
    background: #f0f2f5;
    color: #444;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}
.user-gallery-tab.is-active {
    background: #4267b2;
    color: #fff;
}
.user-gallery-create,
.user-gallery-upload {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
}
.user-gallery-create label,
.user-gallery-upload-label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}
.user-gallery-create input,
.user-gallery-create select,
.user-gallery-upload input[type="file"] {
    font: inherit;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
}
.user-gallery-upload-hint {
    margin: 0;
    font-size: 12px;
    color: #65676b;
}
.user-gallery-back {
    margin: 0 0 10px;
    font-size: 13px;
}
.user-gallery-album-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
}
.user-gallery-album-head h2 {
    margin: 0 0 4px;
}
.user-gallery-album-meta {
    margin: 0;
    color: #65676b;
    font-size: 13px;
}
.user-gallery-album-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.user-gallery-inline-form {
    display: inline;
}
.user-gallery-album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.user-gallery-album-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}
.user-gallery-album-card:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.user-gallery-album-card-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    background: #f0f2f5;
    overflow: hidden;
}
.user-gallery-album-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.user-gallery-album-card-cover.is-empty {
    font-size: 2rem;
    color: #98a2b3;
}
.user-gallery-album-card-body {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    font-size: 13px;
}
.user-gallery-album-card-body strong {
    font-size: 14px;
}
.user-gallery-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}
.user-gallery-photo-cell {
    position: relative;
}
.user-gallery-photo-btn {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    border: 0;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    background: #f0f2f5;
}
.user-gallery-photo-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.user-gallery-file-delete {
    position: absolute;
    top: 6px;
    right: 6px;
}
.user-gallery-file-delete .fb-btn-small {
    min-width: 28px;
    padding: 2px 8px;
}
.user-gallery-video-list {
    display: grid;
    gap: 16px;
}
.user-gallery-video-player {
    width: 100%;
    max-height: 420px;
    background: #000;
}
.user-gallery-file-name {
    margin: 6px 0 0;
    font-size: 13px;
    color: #65676b;
}
.fb-btn-danger {
    background: #c62828;
    border-color: #8e0000;
    color: #fff;
}
.fb-btn-danger:hover {
    background: #b71c1c;
}
.fb-btn-small {
    padding: 4px 10px;
    font-size: 12px;
}

body.wall-photo-lightbox-open {
    overflow: hidden;
}

.wall-photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1300;
}

.wall-photo-lightbox[hidden] {
    display: none !important;
}

.wall-photo-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
}

.wall-photo-lightbox__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.wall-photo-lightbox__close:hover {
    background: rgba(0, 0, 0, 0.65);
}

.wall-photo-lightbox__stage {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 48px 20px 20px;
    box-sizing: border-box;
}

.wall-photo-lightbox__stage.is-actual-size {
    overflow: auto;
    place-items: center;
}

.wall-photo-lightbox__figure {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wall-photo-lightbox__image {
    display: block;
    max-width: min(100vw - 40px, 100%);
    max-height: calc(100vh - 68px);
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
    border-radius: 4px;
    user-select: none;
}

.wall-photo-lightbox__image.is-actual-size {
    max-width: none;
    max-height: none;
    cursor: zoom-out;
}
