/* ===== СТИЛИ ДЛЯ СТРАНИЦЫ ПРОФИЛЯ ===== */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 12px 16px;
    margin-bottom: 20px;
    background: transparent;
    border: none;
    text-align: center;
    box-shadow: none;
    overflow: visible;
}
.profile-cover { order: 0; }
.profile-identity { order: 1; }
.profile-header > .profile-bio { order: 2; }
.profile-header > .profile-more { order: 3; }
.profile-header > .profile-details { order: 4; }
.profile-stats { order: 5; }
.profile-actions { order: 6; }
/* Empty 3:1 stub — no cover column/upload, sphinx is not a banner */
.profile-cover {
    align-self: stretch;
    width: calc(100% + 24px);
    margin: 0 -12px;
    aspect-ratio: 3 / 1;
    background: #000;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    pointer-events: none;
    user-select: none;
}
.profile-cover::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 160%;
    height: 96px;
    transform: translate(-50%, 78%);
    border-radius: 50%;
    border: 1.5px solid #7c5cfc;
    box-sizing: border-box;
    pointer-events: none;
}
.profile-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.profile-avatar {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 600;
    color: var(--text-muted);
    margin: -28px 0 0;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #000;
    box-shadow: none;
    position: relative;
    z-index: 1;
}
.profile-avatar a {
    display: block;
    width: 100%;
    height: 100%;
    -webkit-tap-highlight-color: transparent;
}
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.profile-titles {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
}
.profile-name {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-primary);
    letter-spacing: -0.2px;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.profile-username {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.3;
    margin: 0;
    font-weight: 400;
}
.profile-fullname {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 2px 0 0;
}
.profile-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 12px auto 0;
    padding: 0 16px;
    min-height: 44px;
    border: 1px solid var(--border-card);
    border-radius: 12px;
    background: var(--bg-input);
    color: var(--accent-primary);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    z-index: 2;
    pointer-events: auto;
    line-height: 1.4;
    letter-spacing: 0;
    cursor: pointer;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}
.profile-more::before,
.profile-more::after {
    content: none;
}
.profile-more:hover,
.profile-more:focus-visible,
.profile-more[aria-expanded="true"] {
    color: var(--accent-primary);
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    box-shadow: none;
    outline: none;
}
.profile-details[hidden] {
    display: none !important;
}
.profile-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 32em;
    margin: 10px auto 0;
    padding: 0;
    text-align: left;
    box-sizing: border-box;
}
.profile-detail {
    display: grid;
    grid-template-columns: minmax(6.5em, max-content) minmax(0, 1fr);
    column-gap: 12px;
    align-items: baseline;
    min-width: 0;
}
.profile-detail span {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-muted);
}
.profile-detail b,
.profile-detail a {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-primary);
    overflow-wrap: anywhere;
    word-break: break-word;
}
.profile-detail a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.profile-detail a:hover {
    color: var(--text-primary);
}
.profile-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 10px auto 0;
    max-width: 32em;
}
.profile-city,
.profile-location,
.profile-education {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 400;
}
.profile-titles .profile-location,
.profile-titles .profile-city {
    margin-top: 4px;
}
.profile-bio {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.45;
    margin: 12px auto 0;
    max-width: 32em;
    font-weight: 400;
}
.profile-stats {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin: 16px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--border-card);
    border-bottom: none;
}
.profile-stats .stat-item {
    text-align: center;
    min-width: 56px;
}
.profile-stats .stat-number {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    line-height: 1.2;
}
.profile-stats .stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}
.profile-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.edit-btn,
.profile-header .follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 20px;
    margin: 0;
    border-radius: 20px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    transform: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}
.edit-btn,
.profile-header .follow-btn.following {
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    color: var(--text-secondary);
}
.profile-header .follow-btn:not(.following) {
    background: var(--accent-primary);
    border: 1px solid transparent;
    color: #fff;
}
@media (hover: hover) and (pointer: fine) {
    .edit-btn:hover,
    .profile-header .follow-btn.following:hover {
        border-color: var(--text-muted);
        color: var(--text-primary);
        transform: none;
        box-shadow: none;
    }
    .profile-header .follow-btn:not(.following):hover {
        background: var(--accent-secondary);
        box-shadow: none;
        transform: none;
    }
}
#profile-stream {
    display: block;
    width: 100%;
    position: relative;
    z-index: 1;
}
#profile-stream .post {
    margin-bottom: 14px;
}
#profile-stream .post-avatar,
#profile-stream .post-avatar a,
#profile-stream .post-avatar img {
    box-sizing: border-box;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    flex: 0 0 40px !important;
    transform: none !important;
    object-fit: cover !important;
    overflow: hidden;
}
.section-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding: 0 4px;
}
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 220px;
    padding: 48px 20px;
    color: var(--text-muted);
    box-sizing: border-box;
}
.empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.3;
}
.empty-state .empty-text {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-primary);
}
.empty-state .empty-hint {
    margin: 8px 0 0;
    max-width: 28em;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    color: var(--text-muted);
}
.empty-state .empty-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin-top: 16px;
    min-height: 44px;
    min-width: 44px;
    padding: 0 20px;
    border-radius: 12px;
    background: var(--accent-primary);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.empty-state .empty-cta:hover,
.empty-state .empty-cta:focus-visible {
    color: #fff;
    text-decoration: none;
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}
.guest-banner {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    margin-bottom: 24px;
}
.guest-banner a {
    color: var(--accent-primary);
    font-weight: 500;
    text-decoration: none;
}
.guest-banner a:hover {
    text-decoration: underline;
}
.message {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
}
.message.error {
    background: rgba(255, 80, 80, 0.15);
    border: 1px solid rgba(255, 80, 80, 0.3);
    color: #ff6b6b;
}
.message.success {
    background: rgba(80, 200, 120, 0.15);
    border: 1px solid rgba(80, 200, 120, 0.3);
    color: #51cf66;
}
@media (max-width: 768px) {
    .profile-header {
        padding: 0 8px 12px;
        margin-bottom: 16px;
    }
    .profile-cover {
        width: calc(100% + 16px);
        margin: 0 -8px;
    }
    .profile-identity {
        gap: 10px;
    }
    .profile-avatar {
        width: 96px;
        height: 96px;
        font-size: 32px;
        margin-top: -28px;
        border-width: 2px;
    }
    .profile-name {
        font-size: 20px;
    }
    .profile-username {
        font-size: 13px;
    }
    .profile-stats {
        gap: 18px;
        margin-top: 14px;
        padding: 10px 0 0;
    }
    .profile-details {
        max-width: 100%;
    }
    .profile-detail {
        grid-template-columns: minmax(5.5em, max-content) minmax(0, 1fr);
        column-gap: 10px;
    }
    .profile-actions {
        margin-top: 12px;
    }
    .edit-btn,
    .profile-header .follow-btn {
        min-height: 44px;
        padding: 10px 22px;
        font-size: 14px;
    }
    .post {
        padding: 12px 14px;
    }
}
@media (max-width: 480px) {
    .profile-avatar {
        width: 84px;
        height: 84px;
        font-size: 28px;
        margin-top: -28px;
        border-width: 2px;
    }
    .profile-name {
        font-size: 18px;
    }
    .profile-stats {
        gap: 12px;
    }
    .profile-stats .stat-number {
        font-size: 15px;
    }
    .profile-stats .stat-item {
        min-width: 0;
    }
}

/* ===== ТЁМНАЯ / СВЕТЛАЯ ТЕМА ===== */
[data-theme="light"] {
    --bg-card: #ffffff;
    --border-card: #dbe2ea;
    --text-primary: #0f172a;
    --text-secondary: #1e293b;
    --text-muted: #475569;
    --text-input: #0f172a;
    --bg-input: #ffffff;
    --border-input: #c5ced8;
    --shadow-card: 0 8px 28px rgba(15, 23, 42, 0.08);
    --footer-text: #64748b;
}
[data-theme="dark"] .profile-cover {
    background: #000;
}
[data-theme="dark"] .profile-avatar {
    background: #000;
    border-color: #000;
    box-shadow: none;
}
[data-theme="dark"] .profile-name,
[data-theme="dark"] .profile-stats .stat-number {
    color: #f8fafc;
}
[data-theme="dark"] .profile-username,
[data-theme="dark"] .profile-city,
[data-theme="dark"] .profile-location,
[data-theme="dark"] .profile-education,
[data-theme="dark"] .profile-detail span,
[data-theme="dark"] .profile-stats .stat-label {
    color: #94a3b8;
}
[data-theme="dark"] .profile-fullname,
[data-theme="dark"] .profile-bio {
    color: #cbd5e1;
}
[data-theme="dark"] .profile-stats {
    border-top-color: rgba(255, 255, 255, 0.08);
    border-bottom-color: transparent;
}
[data-theme="dark"] .profile-header .follow-btn.following,
[data-theme="dark"] .edit-btn {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
    color: #e2e8f0;
}
[data-theme="dark"] .profile-header .follow-btn:not(.following) {
    color: #fff;
}

[data-theme="light"] .profile-cover {
    background: #e8ebf0;
}
[data-theme="light"] .profile-avatar {
    background: #f4f5f7;
    border-color: #f4f5f7;
    box-shadow: none;
}
[data-theme="light"] .profile-name,
[data-theme="light"] .profile-stats .stat-number {
    color: #0f172a;
}
[data-theme="light"] .profile-fullname,
[data-theme="light"] .profile-bio {
    color: #1e293b;
}
[data-theme="light"] .profile-username,
[data-theme="light"] .profile-city,
[data-theme="light"] .profile-location,
[data-theme="light"] .profile-education,
[data-theme="light"] .profile-detail span,
[data-theme="light"] .profile-stats .stat-label,
[data-theme="light"] .section-title,
[data-theme="light"] .empty-state,
[data-theme="light"] .empty-state .empty-hint,
[data-theme="light"] .feed-sentinel {
    color: #475569;
}
[data-theme="light"] .empty-state .empty-text {
    color: #0f172a;
}
[data-theme="light"] .empty-state .empty-cta {
    background: var(--accent-primary);
    color: #fff;
}
[data-theme="light"] .profile-stats {
    border-top-color: #dbe2ea;
    border-bottom-color: transparent;
}
[data-theme="light"] .edit-btn,
[data-theme="light"] .profile-header .follow-btn.following {
    background: #ffffff;
    border: 1px solid #c5ced8;
    color: #1e293b;
}
[data-theme="light"] .profile-header .follow-btn:not(.following) {
    color: #fff;
    border-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
    [data-theme="light"] .edit-btn:hover,
    [data-theme="light"] .profile-header .follow-btn.following:hover {
        background: #ffffff;
        border-color: #94a3b8;
        color: #0f172a;
    }
    [data-theme="dark"] .edit-btn:hover,
    [data-theme="dark"] .profile-header .follow-btn.following:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.22);
        color: #f8fafc;
    }
}
[data-theme="light"] .guest-banner,
[data-theme="light"] .post,
[data-theme="light"] .post-form {
    background: #ffffff;
    border: 1px solid #dbe2ea;
    color: #0f172a;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .guest-banner {
    color: #1e293b;
}
[data-theme="light"] .message.error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}
[data-theme="light"] .message.success {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #166534;
}
[data-theme="light"] .post .post-content {
    color: #0f172a;
}
[data-theme="light"] .post .post-date,
[data-theme="light"] .post .post-actions,
[data-theme="light"] .post .post-actions .like-btn,
[data-theme="light"] .post .post-actions .comment-toggle,
[data-theme="light"] .comments-toggle-btn,
[data-theme="light"] .comment-date,
[data-theme="light"] .no-comments {
    color: #475569;
}
[data-theme="light"] .post-form textarea,
[data-theme="light"] .comment-form input[type="text"] {
    background: #ffffff;
    border-color: #c5ced8;
    color: #0f172a;
}
[data-theme="light"] .post-form textarea::placeholder,
[data-theme="light"] .comment-form input[type="text"]::placeholder {
    color: #64748b;
    opacity: 1;
}
[data-theme="light"] .post-form .form-actions button {
    color: #fff;
}
[data-theme="light"] .comment-form button {
    background: #ffffff;
    border: 1px solid #c5ced8;
    color: #1e293b;
}
[data-theme="light"] .comment-form button:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}
[data-theme="light"] .post-poll {
    background: #f8fafc;
    border-color: #dbe2ea;
}
[data-theme="light"] .post-poll .poll-option {
    background: #ffffff;
    border-color: #dbe2ea;
    color: #0f172a;
}
[data-theme="light"] .post-poll .poll-option .option-bar {
    background: #e2e8f0;
}
[data-theme="light"] .comments-fade {
    background: linear-gradient(to bottom, transparent, #ffffff);
}

.profile-header .profile-more,
.profile-header #profile-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 0;
    margin: 8px auto 0;
    padding: 0 16px;
    border: 1px solid var(--border-card);
    border-radius: 12px;
    background: var(--bg-input);
    color: var(--accent-primary);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    box-shadow: none;
}
.profile-header .profile-more:hover,
.profile-header .profile-more:focus-visible,
.profile-header .profile-more[aria-expanded="true"],
.profile-header #profile-more:hover,
.profile-header #profile-more:focus-visible,
.profile-header #profile-more[aria-expanded="true"] {
    color: var(--accent-primary);
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    box-shadow: none;
    outline: none;
}
.profile-header .profile-details,
.profile-header #profile-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 32em;
    margin: 10px auto 0;
    padding: 0;
    text-align: left;
}
.profile-header .profile-details[hidden],
.profile-header #profile-details[hidden] {
    display: none !important;
}
.profile-header .profile-detail {
    display: grid;
    grid-template-columns: minmax(6.5em, max-content) minmax(0, 1fr);
    column-gap: 12px;
    align-items: baseline;
}
.profile-header .profile-detail > span {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
}
.profile-header .profile-detail > b,
.profile-header .profile-detail > a {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-primary);
}
.profile-header .profile-detail > a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
[data-theme="dark"] .profile-header .profile-more,
[data-theme="dark"] .profile-header #profile-more {
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    color: var(--accent-primary);
}
[data-theme="light"] .profile-header .profile-more,
[data-theme="light"] .profile-header #profile-more {
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    color: var(--accent-primary);
}
[data-theme="light"] .profile-header .profile-more:hover,
[data-theme="light"] .profile-header .profile-more[aria-expanded="true"],
[data-theme="light"] .profile-header #profile-more:hover,
[data-theme="light"] .profile-header #profile-more[aria-expanded="true"] {
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    color: var(--accent-primary);
}

.profile-stats .stat-item-btn,
.profile-stats .stat-item-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 4px 8px;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}
.profile-stats .stat-item-btn:hover .stat-label,
.profile-stats .stat-item-link:hover .stat-label,
.profile-stats .stat-item-btn:focus-visible .stat-label,
.profile-stats .stat-item-link:focus-visible .stat-label {
    text-decoration: underline;
    color: var(--text-secondary);
}
.profile-stats .stat-item-btn:focus-visible,
.profile-stats .stat-item-link:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    border-radius: 8px;
}

.profile-follows-dialog {
    position: fixed;
    inset: 0;
    z-index: 360;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 20px 16px;
    border: none;
    background: rgba(6, 8, 16, 0.72);
    color: inherit;
    text-align: left;
}
[data-theme="light"] .profile-follows-dialog {
    background: rgba(244, 245, 247, 0.78);
}
.profile-follows-dialog[open] {
    display: flex;
}
.profile-follows-card {
    width: min(420px, 100%);
    max-height: min(80vh, 640px);
    overflow: auto;
    background: #161b27;
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 16px 16px 10px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    text-align: left;
}
.profile-follows-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    text-align: left;
}
.profile-follows-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
}
.profile-follows-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 0;
    border-radius: 10px;
    background: var(--bg-input);
    color: var(--text-muted);
    cursor: pointer;
}
.profile-follows-close:hover,
.profile-follows-close:focus-visible {
    color: var(--text-primary);
}
.profile-follows-empty {
    color: var(--text-muted);
    text-align: center;
    padding: 24px 8px;
}
.profile-follows-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    text-align: left;
}
.profile-follows-list > li {
    width: 100%;
    text-align: left;
}
.profile-follows-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 44px;
    padding: 8px 4px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    text-align: left;
    box-sizing: border-box;
}
.profile-follows-row:hover,
.profile-follows-row:focus-visible {
    background: var(--bg-input);
}
.profile-follows-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-input);
}
.profile-follows-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.profile-follows-who {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    text-align: left;
}
.profile-follows-name {
    font-weight: 600;
    color: var(--text-primary);
    overflow-wrap: anywhere;
    text-align: left;
}

[data-theme="light"] .profile-follows-card {
    background: #ffffff;
    color: #1a1a2e;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.16);
}
[data-theme="light"] .profile-follows-head,
[data-theme="light"] .profile-follows-list,
[data-theme="light"] .profile-follows-list > li,
[data-theme="light"] .profile-follows-row,
[data-theme="light"] .profile-follows-who,
[data-theme="light"] .profile-follows-name {
    text-align: left;
}
[data-theme="light"] .profile-follows-list,
[data-theme="light"] .profile-follows-list > li {
    width: 100%;
}
[data-theme="light"] .profile-follows-row {
    justify-content: flex-start;
    width: 100%;
    color: #1a1a2e;
}
[data-theme="light"] .profile-follows-row:hover,
[data-theme="light"] .profile-follows-row:focus-visible {
    background: #f1f5f9;
}
[data-theme="light"] .profile-follows-who {
    align-items: flex-start;
}
[data-theme="light"] .profile-follows-head h2,
[data-theme="light"] .profile-follows-name {
    color: #1a1a2e;
}
[data-theme="light"] .profile-follows-empty {
    color: #64748b;
}
[data-theme="light"] .profile-follows-close {
    background: #f1f5f9;
    color: #475569;
}
[data-theme="light"] .profile-follows-close:hover,
[data-theme="light"] .profile-follows-close:focus-visible {
    color: #1a1a2e;
    background: #e2e8f0;
}

@media (max-width: 768px) {
    .profile-follows-dialog[open] {
        align-items: flex-end;
        padding: 0;
    }
    .profile-follows-card {
        width: 100%;
        max-width: none;
        border-radius: 16px 16px 0 0;
        max-height: min(86vh, 720px);
    }
}

/* OLYA-MORE: real Подробнее button; cover stays under identity */
.profile-cover {
    z-index: 0;
}
.profile-identity {
    position: relative;
    z-index: 1;
}
.profile-more,
.profile-header .profile-more,
.profile-header #profile-more,
button.profile-more,
#profile-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    pointer-events: auto;
    min-height: 44px;
    height: 44px;
    min-width: 132px;
    padding: 0 20px;
    margin: 8px auto 0;
    border: 1px solid rgba(124, 92, 252, 0.35);
    background: rgba(124, 92, 252, 0.14);
    color: var(--accent-primary);
    border-radius: 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}
.profile-more:hover,
.profile-more:focus-visible,
.profile-more[aria-expanded="true"],
.profile-header .profile-more:hover,
.profile-header .profile-more:focus-visible,
.profile-header .profile-more[aria-expanded="true"],
.profile-header #profile-more:hover,
.profile-header #profile-more:focus-visible,
.profile-header #profile-more[aria-expanded="true"] {
    background: rgba(124, 92, 252, 0.22);
    border: 1px solid rgba(124, 92, 252, 0.5);
    color: var(--accent-primary);
    box-shadow: 0 2px 8px rgba(124, 92, 252, 0.2);
}
.profile-more:focus-visible,
.profile-header .profile-more:focus-visible,
.profile-header #profile-more:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}
[data-theme="dark"] .profile-more,
[data-theme="dark"] .profile-header .profile-more,
[data-theme="dark"] .profile-header #profile-more {
    background: rgba(124, 92, 252, 0.16);
    border: 1px solid rgba(167, 139, 250, 0.4);
    color: #c4b5fd;
}
[data-theme="light"] .profile-more,
[data-theme="light"] .profile-header .profile-more,
[data-theme="light"] .profile-header #profile-more {
    background: #eef2ff;
    border: 1px solid rgba(124, 92, 252, 0.28);
    color: #5b4bdb;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
[data-theme="light"] .profile-more:hover,
[data-theme="light"] .profile-more:focus-visible,
[data-theme="light"] .profile-more[aria-expanded="true"],
[data-theme="light"] .profile-header .profile-more:hover,
[data-theme="light"] .profile-header .profile-more:focus-visible,
[data-theme="light"] .profile-header .profile-more[aria-expanded="true"],
[data-theme="light"] .profile-header #profile-more:hover,
[data-theme="light"] .profile-header #profile-more:focus-visible,
[data-theme="light"] .profile-header #profile-more[aria-expanded="true"] {
    background: #e0e7ff;
    border: 1px solid rgba(124, 92, 252, 0.42);
    color: #4c3dcf;
}
#profile-details[hidden],
.profile-details[hidden],
.profile-header .profile-details[hidden],
.profile-header #profile-details[hidden] {
    display: none !important;
}
#profile-more {
    min-height: 44px;
    min-width: 132px;
    box-sizing: border-box;
}
