.forum-follow-card .forum-user-card-copy,
.forum-directory-card .forum-user-card-copy {
    justify-content: flex-start;
}

.forum-overview-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 220px;
}

.forum-overview-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 2px;
}

.forum-users-sidebar-card h2,
.forum-overview-card-head h2 {
    margin: 0;
    line-height: 1.2;
}

.forum-overview-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.forum-overview-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.forum-overview-user-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.forum-overview-user-main img {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    object-fit: cover;
}

.forum-overview-user-main span {
    font-weight: 700;
    line-height: 1.25;
}

.forum-overview-more {
    margin-top: auto;
    justify-content: center;
}

.forum-topic-table-body {
    gap: 10px;
}

.forum-topic-row {
    border-top: 0;
    border-radius: 16px;
    background: rgba(48, 58, 96, 0.72);
    box-shadow: inset 0 0 0 1px rgba(175, 189, 243, 0.08);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.forum-topic-row:hover,
.forum-topic-row:focus-within {
    transform: translateY(-2px);
    background: rgba(57, 70, 114, 0.88);
    box-shadow: 0 18px 38px rgba(9, 14, 27, 0.24), inset 0 0 0 1px rgba(169, 199, 255, 0.22);
}

.forum-topic-row-main h3 {
    transition: color 0.18s ease;
}

.forum-topic-row:hover .forum-topic-row-main h3,
.forum-topic-row:focus-within .forum-topic-row-main h3,
.forum-topic-row:hover .forum-topic-row-category a,
.forum-topic-row:focus-within .forum-topic-row-category a {
    color: #ffffff;
}

.forum-topic-row-category {
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
    font-size: 12px;
    line-height: 1.2;
}

.forum-topic-row-category span {
    color: #9eabd1;
}

.forum-topic-row-category a {
    font-weight: 900;
    transform: translateY(4px); /* микро-выравнивание */
}

.forum-topic-row-stats {
    gap: 4px 14px;
}

.forum-topic-row-last {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.forum-topic-row-last strong {
    line-height: 1.2;
}

@media (max-width: 1180px) {
    .forum-overview-card {
        min-height: 0;
    }
}

@media (max-width: 820px) {
    .forum-overview-user {
        align-items: flex-start;
    }

    .forum-topic-row-last {
        grid-template-columns: minmax(0, 1fr);
    }
}

.forum-section-create-box {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(34, 42, 74, 0.78);
    box-shadow: inset 0 0 0 1px rgba(173, 189, 245, 0.08);
}

.forum-section-create-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.forum-section-create-copy strong {
    color: #f6f8ff;
    font-size: 18px;
    line-height: 1.2;
}

.forum-section-create-copy p {
    margin: 0;
    color: #a9b6dd;
    line-height: 1.45;
}

.forum-user-meta-grid span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 50px;
    padding: 7px 10px;
}

.forum-user-meta-grid strong,
.forum-profile-metrics dt,
.forum-profile-info-grid strong {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.forum-user-meta-grid strong i,
.forum-profile-metrics dt i,
.forum-profile-info-grid strong i {
    flex: 0 0 auto;
    width: 14px;
    color: #9eb5ff;
    font-size: 12px;
    text-align: center;
}

.forum-user-meta-grid strong span,
.forum-profile-metrics dt span,
.forum-profile-info-grid strong span {
    line-height: 1.15;
}

.forum-user-meta-grid em {
    flex: 0 0 auto;
    font-style: normal;
    font-weight: 800;
    color: #f3f6ff;
    line-height: 1.1;
    text-align: right;
}

.forum-follow-card,
.forum-directory-card {
    width: min(100%, 920px);
    min-height: 126px;
    padding: 14px 18px;
}

.forum-follow-card .forum-user-meta-grid,
.forum-directory-card .forum-user-meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.forum-follow-card .forum-user-card-copy,
.forum-directory-card .forum-user-card-copy {
    gap: 10px;
}

.forum-follow-card .forum-user-meta-grid strong span,
.forum-directory-card .forum-user-meta-grid strong span {
    line-height: 1.1;
}

.forum-user-card-identifiers {
    display: grid;
    grid-template-columns: 0.98fr 1fr;
    gap: 10px;
}

/* карточки */
.forum-user-card-identifiers > div {
    height: 70px; /* ?? одинаковая высота */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* нижний текст */
.forum-user-card-identifiers > div > :last-child {
    align-self: flex-start; /* или center если нужно */
}

.forum-user-card-info-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(24, 31, 58, 0.9);
    box-shadow: inset 0 0 0 1px rgba(165, 181, 240, 0.08);
}

.forum-user-card-info-pill strong {
    flex: 1 1 auto;
    margin: 0;
    color: #9eabd1;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.forum-user-card-info-pill > span {
    flex: 0 0 auto;
    min-width: 0;
    padding-left: 14px;
    color: #f3f6ff;
    font-weight: 800;
    line-height: 1.2;
    text-align: right;
}

.forum-profile-metrics div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 56px;
    padding: 10px 12px;
    border-radius: 12px;
}

.forum-profile-metrics dt span {
    line-height: 1.1;
}

.forum-profile-metrics dd {
    margin: 0;
    flex: 0 0 auto;
    text-align: right;
}

.forum-profile-info-grid div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 50px;
    padding: 9px 12px;
    border-radius: 12px;
}

.forum-profile-info-grid strong span {
    line-height: 1.1;
}

.forum-profile-info-grid > div > span {
    flex: 0 0 auto;
    text-align: right;
}

.forum-profile-statusline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(24, 31, 58, 0.9);
    box-shadow: inset 0 0 0 1px rgba(165, 181, 240, 0.08);
}

.forum-profile-statusline strong {
    color: #9eabd1;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.forum-profile-statusline span {
    color: #f3f6ff;
    font-weight: 600;
    line-height: 1.2;
}

.forum-profile-publication-stats {
    display: grid;
    gap: 10px;
    justify-items: stretch;
    align-content: center;
    min-width: 136px;
}

.forum-profile-publication-stats > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(24, 31, 58, 0.88);
    box-shadow: inset 0 0 0 1px rgba(165, 181, 240, 0.08);
}

.forum-profile-publication-stats > div span {
    color: #9eabd1;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.15;
}

.forum-profile-publication-stats > div strong {
    color: #f3f6ff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.forum-node-icon,
.forum-node-icon *,
.forum-node-body,
.forum-node-body * {
    pointer-events: none;
}

.forum-node-meta,
.forum-node-meta * {
    pointer-events: auto;
}

.forum-page--section .forum-category-heading-actions,
.forum-page--section .forum-section-tabs {
    display: none !important;
}

.forum-topic-table-head {
    min-height: 52px;
    margin-bottom: 9px;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: left;
    justify-content: stretch;
}

.forum-topic-table-head > div {
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.forum-page--latest .forum-topic-table-head,
.forum-page--section .forum-topic-table-head {
    grid-template-columns: 66px minmax(0, 1fr) 170px 190px;
}

.forum-page--latest .forum-topic-table-head > :nth-child(3),
.forum-page--latest .forum-topic-table-head > :nth-child(4),
.forum-page--section .forum-topic-table-head > :nth-child(3),
.forum-page--section .forum-topic-table-head > :nth-child(4) {
    justify-content: center;
    text-align: center;
}

.forum-topic-row-main > span {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.forum-topic-row-category {
    gap: 6px;
    margin-bottom: 4px;
}

.forum-topic-row-category span {
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

.forum-topic-row-last {
    align-self: center;
    justify-items: end;
}

.forum-topic-row-last > div {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 0;
}

.forum-topic-row-last strong,
.forum-topic-row-last span {
    display: block;
    width: 100%;
    text-align: right;
    line-height: 1.2;
}

.forum-page--latest .forum-topic-row-main,
.forum-page--section .forum-topic-row-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.forum-page--latest .forum-topic-row-main p,
.forum-page--section .forum-topic-row-main p {
    margin: 0;
}

.forum-page--latest .forum-topic-row-main > span,
.forum-page--section .forum-topic-row-main > span {
    margin-top: 2px;
}

.forum-page--latest .forum-topic-row {
    grid-template-columns: 66px minmax(0, 1fr) 160px 190px;
}

.forum-page--latest .forum-topic-row-last {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.forum-page--latest .forum-topic-row-last strong,
.forum-page--latest .forum-topic-row-last span {
    width: auto;
    text-align: center;
}

.forum-page--section .forum-topic-row-last {
    align-self: center;
}

.forum-page--section .forum-topic-row-last > div {
    align-items: flex-start;
}

.forum-page--section .forum-topic-row-last strong,
.forum-page--section .forum-topic-row-last span {
    width: auto;
    text-align: left;
}

.forum-page--section .forum-topic-row-link {
    z-index: 5;
}

/* фон для что нового */
.forum-page--section .forum-topic-row > *:not(.forum-topic-row-link) {
    pointer-events: none;
    font-size: 10px;
}

.forum-message-dialog {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    min-height: 96px;
    padding: 12px 14px;
}

.forum-message-dialog-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding-top: 2px;
}

.forum-message-dialog-copy strong {
    line-height: 1.2;
    display: block;
}

.forum-message-dialog-copy span {
    line-height: 1.2;
    display: block;
}

.forum-message-dialog-copy p {
    margin: 2px 0 0;
    line-height: 1.25;
}

.forum-message-dialog-meta {
    min-width: 96px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 8px;
    padding-top: 2px;
}

.forum-message-dialog-meta span {
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
}

.forum-message-dialog-meta strong {
    align-self: flex-end;
}

.forum-message-attachments {
    gap: 10px;
}

.forum-message-attachment {
    align-items: center;
    gap: 12px;
}

.forum-message-attachment[hidden] {
    display: none !important;
}

.forum-message-attachment-main strong {
    margin: 0 0 2px;
}

.forum-message-attachment .forum-toolbar-button--danger {
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.forum-message-attachment .forum-toolbar-button--danger:hover,
.forum-message-attachment .forum-toolbar-button--danger:focus-visible {
    background: rgba(177, 71, 104, 0.92);
    box-shadow: 0 12px 24px rgba(87, 22, 42, 0.28);
    transform: translateY(-1px);
}

.forum-sidebar-search-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.forum-sidebar-search-input {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(168, 183, 240, 0.12);
    background: rgba(23, 31, 56, 0.82);
    color: #eef3ff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.forum-sidebar-search-input:hover,
.forum-sidebar-search-input:focus {
    outline: none;
    border-color: rgba(162, 189, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(113, 147, 255, 0.14);
    background: rgba(28, 37, 67, 0.94);
}

.forum-widget-button--compact {
    width: 100%;
    justify-content: center;
}

.forum-profile-posts--search {
    gap: 14px;
}

.forum-profile-search-meta {
    padding-top: 2px;
    border-top: 1px solid rgba(173, 189, 245, 0.08);
}

.forum-profile-search-meta strong {
    display: block;
    margin-bottom: 6px;
}

.forum-profile-search-meta p,
.forum-profile-search-meta span {
    margin: 0;
    display: block;
    line-height: 1.4;
}

.forum-profile-search-meta p {
    color: #f2f6ff;
    font-weight: 700;
}

.forum-profile-search-meta span {
    margin-top: 4px;
    color: #acb8dc;
}

@media (max-width: 990px) {
    .forum-user-card-identifiers {
        grid-template-columns: minmax(0, 1fr);
    }

    .forum-profile-statusline {
        width: 100%;
        justify-content: space-between;
    }

    .forum-section-create-box {
        flex-direction: column;
        align-items: stretch;
    }

    .forum-message-dialog {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .forum-message-dialog-meta {
        grid-column: 2;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        min-width: 0;
        padding-top: 0;
    }

    .forum-message-dialog-meta span,
    .forum-message-dialog-meta strong {
        text-align: left;
    }

    .forum-user-meta-grid span,
    .forum-profile-metrics div,
    .forum-profile-info-grid div {
        flex-direction: column;
        align-items: flex-start;
    }

    .forum-user-meta-grid em,
    .forum-profile-metrics dd,
    .forum-profile-info-grid > div > span {
        text-align: left;
    }

    .forum-profile-publication-stats {
        width: 100%;
        min-width: 0;
    }
}
