:root {
    --lsp-ink: #102d33;
    --lsp-muted: #6b7e82;
    --lsp-paper: #fffdfa;
    --lsp-line: #dce7e5;
    --lsp-aqua: #0a9c8f;
    --lsp-coral: #ff6a57;
    --lsp-navy: #0b3439;
}

body.single-lcab_wall_post {
    background:
        radial-gradient(circle at 10% 12%, rgba(10, 156, 143, .08), transparent 24%),
        radial-gradient(circle at 88% 70%, rgba(255, 106, 87, .07), transparent 25%),
        #f3f6f4 !important;
}

body.single-lcab_wall_post #content.site-content,
body.single-lcab_wall_post #content.site-content.fixed,
body.single-lcab_wall_post .site-content-inner,
body.single-lcab_wall_post .content-area,
body.single-lcab_wall_post .site-main {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.single-lcab_wall_post .widget-area { display: none !important; }

body.single-lcab_wall_post .lc-single-wall-post {
    box-sizing: border-box !important;
    width: min(1160px, calc(100% - 32px)) !important;
    max-width: none !important;
    margin: clamp(18px, 4vw, 48px) auto 80px !important;
    padding: 0 !important;
    color: var(--lsp-ink) !important;
}

body.single-lcab_wall_post .lc-single-post-container {
    overflow: visible !important;
    border: 1px solid var(--lsp-line) !important;
    border-radius: 30px !important;
    background: var(--lsp-paper) !important;
    box-shadow: 0 28px 90px rgba(16, 45, 51, .12) !important;
}

body.single-lcab_wall_post .lc-single-post-container > .lcab-series-badge {
    margin: 0 !important;
    padding: 18px clamp(20px, 4vw, 46px) 0 !important;
}

body.single-lcab_wall_post .lcab-series-badge__link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 36px !important;
    padding: 0 13px !important;
    border: 1px solid #bce3dc !important;
    border-radius: 99px !important;
    color: #08776e !important;
    background: #e9f8f5 !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    text-decoration: none !important;
}

body.single-lcab_wall_post .lc-single-post-content > .lcab-series-badge { display: none !important; }

body.single-lcab_wall_post .lc-single-post-header {
    position: relative !important;
    min-height: 118px !important;
    padding: 28px clamp(20px, 4vw, 46px) !important;
    border: 0 !important;
    border-bottom: 1px solid var(--lsp-line) !important;
    background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(233,248,245,.72)) !important;
}

body.single-lcab_wall_post .lc-single-post-header::after {
    content: 'ПУБЛИКАЦИЯ' !important;
    position: absolute !important;
    top: 28px !important;
    right: clamp(20px, 4vw, 46px) !important;
    color: var(--lsp-coral) !important;
    font-size: 9px !important;
    font-weight: 950 !important;
    letter-spacing: .2em !important;
}

body.single-lcab_wall_post .lc-single-post-author { gap: 14px !important; }
body.single-lcab_wall_post .lc-single-post-author__avatar {
    width: 58px !important;
    height: 58px !important;
    border: 3px solid #fff !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 24px rgba(16, 45, 51, .15) !important;
}
body.single-lcab_wall_post .lc-single-post-author__name {
    color: var(--lsp-ink) !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}
body.single-lcab_wall_post .lc-single-post-date { color: var(--lsp-muted) !important; font-size: 12px !important; }

body.single-lcab_wall_post .lc-single-post-content {
    padding: clamp(28px, 5vw, 58px) clamp(20px, 6vw, 76px) !important;
    color: #203b40 !important;
    font-size: clamp(17px, 1.5vw, 20px) !important;
    line-height: 1.78 !important;
}
body.single-lcab_wall_post .lc-single-post-content p { margin: 0 0 1.15em !important; }
body.single-lcab_wall_post .lc-single-post-content em { color: #31535a !important; }
body.single-lcab_wall_post .lc-single-post-content a { color: #087d73 !important; text-decoration-thickness: 1px !important; text-underline-offset: 3px !important; }

body.single-lcab_wall_post .lc-single-post-videos,
body.single-lcab_wall_post .lc-single-post-images {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    padding: 0 clamp(20px, 4vw, 46px) clamp(28px, 4vw, 46px) !important;
}

body.single-lcab_wall_post .lc-single-post-videos:has(> :only-child),
body.single-lcab_wall_post .lc-single-post-images:has(> :only-child) { grid-template-columns: 1fr !important; }

body.single-lcab_wall_post .lc-single-post-video,
body.single-lcab_wall_post .lc-single-post-image {
    min-width: 0 !important;
    overflow: hidden !important;
    border-radius: 22px !important;
    background: #061117 !important;
    box-shadow: 0 16px 40px rgba(5, 20, 25, .16) !important;
}

body.single-lcab_wall_post .lc-single-post-video video {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 72vh !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    background: #02070b !important;
    box-shadow: none !important;
}

body.single-lcab_wall_post .lc-single-post-image img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 80vh !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.single-lcab_wall_post .lc-single-post-footer {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 20px clamp(20px, 4vw, 46px) !important;
    border: 0 !important;
    border-top: 1px solid var(--lsp-line) !important;
    background: #f7faf9 !important;
}

body.single-lcab_wall_post .lc-single-post-votes { gap: 8px !important; }
body.single-lcab_wall_post .lc-vote-btn,
body.single-lcab_wall_post .lc-single-post-share-btn {
    min-height: 42px !important;
    padding: 0 15px !important;
    border: 1px solid var(--lsp-line) !important;
    border-radius: 13px !important;
    color: var(--lsp-ink) !important;
    background: #fff !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    box-shadow: none !important;
}
body.single-lcab_wall_post .lc-vote-btn.is-active { color: #fff !important; border-color: var(--lsp-aqua) !important; background: var(--lsp-aqua) !important; }
body.single-lcab_wall_post .lc-vote-btn--dislike.is-active { border-color: var(--lsp-coral) !important; background: var(--lsp-coral) !important; }
body.single-lcab_wall_post .lc-single-post-share-btn { margin-left: auto !important; color: #fff !important; border-color: var(--lsp-navy) !important; background: var(--lsp-navy) !important; }

body.single-lcab_wall_post .lc-single-post-comments {
    padding: clamp(24px, 4vw, 48px) !important;
    border: 0 !important;
    border-top: 1px solid var(--lsp-line) !important;
    background: #fff !important;
}
body.single-lcab_wall_post .comments-area { margin: 0 !important; }
body.single-lcab_wall_post .comment-reply-title { margin: 0 0 14px !important; color: var(--lsp-ink) !important; font-size: 22px !important; font-weight: 900 !important; }
body.single-lcab_wall_post .must-log-in { padding: 14px 16px !important; border-radius: 14px !important; color: var(--lsp-muted) !important; background: #f1f6f5 !important; }
body.single-lcab_wall_post .comment-list,
body.single-lcab_wall_post .comment-list .children { margin: 18px 0 0 !important; padding: 0 !important; list-style: none !important; }
body.single-lcab_wall_post .comment-list .children { margin-left: 42px !important; padding-left: 15px !important; border-left: 2px solid #dcebe8 !important; }
body.single-lcab_wall_post .comment-body {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    gap: 4px 12px !important;
    margin: 0 0 10px !important;
    padding: 16px !important;
    border: 1px solid var(--lsp-line) !important;
    border-radius: 17px !important;
    background: #fbfdfc !important;
}
body.single-lcab_wall_post .comment-avatar { grid-row: 1 / span 3 !important; }
body.single-lcab_wall_post .comment-avatar img { width: 42px !important; height: 42px !important; border-radius: 13px !important; object-fit: cover !important; }
body.single-lcab_wall_post .comment-meta { display: flex !important; align-items: center !important; gap: 9px !important; }
body.single-lcab_wall_post .comment-author-link { color: var(--lsp-ink) !important; font-weight: 900 !important; text-decoration: none !important; }
body.single-lcab_wall_post .comment-time { color: var(--lsp-muted) !important; font-size: 10px !important; }
body.single-lcab_wall_post .comment-content { grid-column: 2 !important; color: #304a50 !important; font-size: 14px !important; line-height: 1.6 !important; }
body.single-lcab_wall_post .comment-content p { margin: 4px 0 8px !important; }
body.single-lcab_wall_post .reply { grid-column: 2 !important; }
body.single-lcab_wall_post .reply a { color: #087d73 !important; font-size: 11px !important; font-weight: 850 !important; }
body.single-lcab_wall_post .expert-review-likes { width: max-content !important; max-width: 100% !important; padding: 3px !important; border-radius: 10px !important; background: #edf4f2 !important; }
body.single-lcab_wall_post .expert-review-likes__button { min-width: 34px !important; min-height: 30px !important; padding: 5px 8px !important; }

body.single-lcab_wall_post .lc-share-modal__content { border-radius: 22px !important; background: var(--lsp-paper) !important; }

html[data-theme="dark"] body.single-lcab_wall_post,
body.single-lcab_wall_post.lcab-dark-theme { --lsp-ink: #eef8f7; --lsp-muted: #91a7a8; --lsp-paper: #10242a; --lsp-line: #294349; background: #07141d !important; }
html[data-theme="dark"] body.single-lcab_wall_post .lc-single-post-header,
html[data-theme="dark"] body.single-lcab_wall_post .lc-single-post-footer,
html[data-theme="dark"] body.single-lcab_wall_post .lc-single-post-comments { background: #10242a !important; }
html[data-theme="dark"] body.single-lcab_wall_post .lc-single-post-content { color: #c8d9d8 !important; }
html[data-theme="dark"] body.single-lcab_wall_post .comment-body { background: #132a30 !important; }
html[data-theme="dark"] body.single-lcab_wall_post .comment-content { color: #c5d7d6 !important; }

@media (max-width: 700px) {
    body.single-lcab_wall_post .lc-single-wall-post { width: calc(100% - 16px) !important; margin: 12px auto 76px !important; }
    body.single-lcab_wall_post .lc-single-post-container { border-radius: 22px !important; }
    body.single-lcab_wall_post .lc-single-post-container > .lcab-series-badge { padding: 13px 13px 0 !important; }
    body.single-lcab_wall_post .lc-single-post-header { min-height: 90px !important; padding: 17px 14px !important; }
    body.single-lcab_wall_post .lc-single-post-header::after { display: none !important; }
    body.single-lcab_wall_post .lc-single-post-author__avatar { width: 48px !important; height: 48px !important; border-radius: 14px !important; }
    body.single-lcab_wall_post .lc-single-post-content { padding: 25px 16px !important; font-size: 16px !important; line-height: 1.7 !important; }
    body.single-lcab_wall_post .lc-single-post-videos,
    body.single-lcab_wall_post .lc-single-post-images { grid-template-columns: minmax(0, 1fr) !important; padding: 0 10px 16px !important; }
    body.single-lcab_wall_post .lc-single-post-video,
    body.single-lcab_wall_post .lc-single-post-image { border-radius: 16px !important; }
    body.single-lcab_wall_post .lc-single-post-footer { align-items: stretch !important; padding: 13px !important; }
    body.single-lcab_wall_post .lc-single-post-share-btn { margin-left: 0 !important; }
    body.single-lcab_wall_post .lc-single-post-comments { padding: 20px 13px !important; }
    body.single-lcab_wall_post .comment-list .children { margin-left: 13px !important; padding-left: 9px !important; }
    body.single-lcab_wall_post .comment-body { grid-template-columns: 34px minmax(0, 1fr) !important; gap: 4px 9px !important; padding: 12px !important; }
    body.single-lcab_wall_post .comment-avatar img { width: 34px !important; height: 34px !important; border-radius: 10px !important; }
    body.single-lcab_wall_post .comment-meta { align-items: flex-start !important; flex-direction: column !important; gap: 1px !important; }
}

/* Stable comment geometry for the standalone wall-post page. */
body.single-lcab_wall_post .lc-single-post-comments .comments-area,
body.single-lcab_wall_post .lc-single-post-comments .comments-area * {
    box-sizing: border-box;
}

body.single-lcab_wall_post .lc-single-post-comments .comment-list,
body.single-lcab_wall_post .lc-single-post-comments .comment-list .children {
    width: 100% !important;
    max-width: 100% !important;
    padding-right: 0 !important;
    list-style: none !important;
}

body.single-lcab_wall_post .lc-single-post-comments .comment-list li.comment {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    padding-right: 0 !important;
}

body.single-lcab_wall_post .lc-single-post-comments .comments-area .comment-list .comment-body {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto !important;
    column-gap: 12px !important;
    row-gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 0 10px !important;
    padding: 15px !important;
    float: none !important;
    overflow: visible !important;
}

body.single-lcab_wall_post .lc-single-post-comments .comments-area .comment-list .comment-body > .comment-avatar {
    position: static !important;
    inset: auto !important;
    grid-column: 1 !important;
    grid-row: 1 / span 3 !important;
    align-self: start !important;
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    transform: none !important;
}

body.single-lcab_wall_post .lc-single-post-comments .comments-area .comment-list .comment-body > .comment-avatar img {
    display: block !important;
    width: 42px !important;
    height: 42px !important;
    max-width: 42px !important;
    margin: 0 !important;
    object-fit: cover !important;
}

body.single-lcab_wall_post .lc-single-post-comments .comments-area .comment-list .comment-body > .comment-meta {
    position: static !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    align-items: center !important;
    flex-flow: row wrap !important;
    gap: 3px 9px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

body.single-lcab_wall_post .lc-single-post-comments .comment-author,
body.single-lcab_wall_post .lc-single-post-comments .comment-author-link {
    position: static !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    font-style: normal !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere !important;
    float: none !important;
}

body.single-lcab_wall_post .lc-single-post-comments .comment-time {
    position: static !important;
    display: inline-block !important;
    margin: 0 !important;
    opacity: 1 !important;
    float: none !important;
}

body.single-lcab_wall_post .lc-single-post-comments .comments-area .comment-list .comment-body > .comment-content {
    position: static !important;
    grid-column: 2 !important;
    grid-row: 2 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    float: none !important;
    transform: none !important;
}

body.single-lcab_wall_post .lc-single-post-comments .comment-content p {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
}

body.single-lcab_wall_post .lc-single-post-comments .comments-area .comment-list .comment-body > .reply {
    position: static !important;
    grid-column: 2 !important;
    grid-row: 3 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

body.single-lcab_wall_post .lc-single-post-comments .comment-reply-link {
    cursor: pointer !important;
    opacity: 1 !important;
}

body.single-lcab_wall_post .lc-single-post-comments .comment-content .expert-review-likes {
    position: static !important;
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 7px 0 0 !important;
    float: none !important;
    transform: none !important;
}

@media (max-width: 700px) {
    body.single-lcab_wall_post .lc-single-post-comments {
        padding: 17px 10px 24px !important;
        overflow: hidden !important;
    }

    body.single-lcab_wall_post .lc-single-post-comments .comment-list {
        margin-top: 12px !important;
    }

    body.single-lcab_wall_post .lc-single-post-comments .comment-list .children {
        width: auto !important;
        margin: 9px 0 0 7px !important;
        padding: 0 0 0 8px !important;
        border-left-width: 2px !important;
    }

    body.single-lcab_wall_post .lc-single-post-comments .comment-list .children .children {
        margin-left: 3px !important;
        padding-left: 7px !important;
    }

    body.single-lcab_wall_post .lc-single-post-comments .comments-area .comment-list .comment-body {
        grid-template-columns: 36px minmax(0, 1fr) !important;
        column-gap: 9px !important;
        row-gap: 5px !important;
        margin-bottom: 9px !important;
        padding: 11px !important;
        border-radius: 16px !important;
    }

    body.single-lcab_wall_post .lc-single-post-comments .comments-area .comment-list .comment-body > .comment-avatar,
    body.single-lcab_wall_post .lc-single-post-comments .comments-area .comment-list .comment-body > .comment-avatar img {
        width: 36px !important;
        height: 36px !important;
        max-width: 36px !important;
        border-radius: 11px !important;
    }

    body.single-lcab_wall_post .lc-single-post-comments .comments-area .comment-list .comment-body > .comment-meta {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 1px !important;
        min-height: 36px !important;
    }

    body.single-lcab_wall_post .lc-single-post-comments .comment-author,
    body.single-lcab_wall_post .lc-single-post-comments .comment-author-link {
        font-size: 14px !important;
    }

    body.single-lcab_wall_post .lc-single-post-comments .comment-time {
        font-size: 10px !important;
        line-height: 1.3 !important;
        white-space: normal !important;
    }

    body.single-lcab_wall_post .lc-single-post-comments .comments-area .comment-list .comment-body > .comment-content {
        font-size: 14px !important;
        line-height: 1.48 !important;
    }

    body.single-lcab_wall_post .lc-single-post-comments .comment-content .expert-review-likes {
        margin-top: 6px !important;
        padding: 3px !important;
        border-radius: 11px !important;
    }

    body.single-lcab_wall_post .lc-single-post-comments .expert-review-likes__button {
        min-width: 34px !important;
        width: auto !important;
        min-height: 30px !important;
        height: 30px !important;
        padding: 4px 8px !important;
    }
}
