.comment-discussion {
    color: #252a32;
    font-family: Inter, sans-serif;
}

.comment-message {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #badfce;
    border-radius: 11px;
    background: #edf8f2;
    color: #28604b;
    font-size: 12px;
}

.comment-editor {
    padding: 18px;
    border: 1px solid #dfe4eb;
    border-radius: 15px;
    background: #fff;
}

.comment-editor.is-compact {
    margin-top: 12px;
    padding: 14px;
    background: #fafbfc;
}

.comment-editor label {
    display: grid;
    gap: 7px;
    color: #475467;
    font-size: 10px;
    font-weight: 650;
}

.comment-editor textarea,
.comment-editor input[type="text"],
.comment-report textarea,
.comment-report select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d8dee8;
    border-radius: 10px;
    background: #fff;
    color: #252a32;
    font: inherit;
    font-size: 12px;
    resize: vertical;
}

.comment-editor > div {
    display: flex;
    margin-top: 11px;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.comment-editor .comment-spoiler-option {
    display: flex;
    gap: 7px;
    align-items: center;
    font-weight: 500;
}

.comment-editor button,
.comment-report button {
    min-height: 38px;
    padding: 0 13px;
    border: 0;
    border-radius: 9px;
    background: #1f2937;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
}

.comment-toolbar {
    display: flex;
    margin: 20px 0 12px;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
}

.comment-toolbar strong {
    font-size: 12px;
}

.comment-toolbar nav {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    gap: 4px;
}

.comment-toolbar nav a {
    padding: 6px 8px;
    border-radius: 7px;
    color: #667085;
    font-size: 9px;
    font-weight: 650;
    text-decoration: none;
}

.comment-toolbar nav a:hover,
.comment-toolbar nav a:focus-visible,
.comment-toolbar nav a.is-active {
    background: #eef1f5;
    color: #344054;
}

.comment-toolbar label {
    display: flex;
    gap: 7px;
    align-items: center;
    color: #667085;
    font-size: 10px;
}

.comment-toolbar select {
    padding: 7px 9px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #fff;
    color: #667085;
    font: inherit;
    font-size: 10px;
}

.comment-list {
    display: grid;
    gap: 14px;
}

.comment-card {
    padding: 17px;
    border: 1px solid #e2e6eb;
    border-radius: 14px;
    background: #fff;
}

.comment-card > header {
    display: flex;
    gap: 11px;
    align-items: start;
}

.comment-card .member-avatar--small {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: #1f2937;
    color: #fff;
    font-size: 13px;
    font-weight: 750;
}

.comment-card .member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-author {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 4px 7px;
    align-items: center;
}

.comment-author strong {
    width: 100%;
    font-size: 12px;
}

.comment-author strong a {
    color: inherit;
    text-decoration: none;
}

.comment-author time,
.comment-author-title {
    color: #667085;
    font-size: 9px;
}

.comment-featured-badge {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    color: #475467;
    font-size: 8px;
    font-weight: 700;
}

.comment-featured-badge .badge-icon {
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: #eef2f7;
    font-size: 12px;
}

.comment-featured-badge .badge-icon img,
.comment-featured-badge .badge-icon svg {
    width: 100%;
    height: 100%;
}

.comment-body {
    margin: 13px 0 0 49px;
    color: #3f4752;
    font-size: 13px;
    line-height: 1.7;
}

.comment-body > p {
    margin: 0;
}

.reaction-bar,
.reaction-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.reaction-bar {
    margin: 12px 0 0 49px;
}

.reaction-button-wrap {
    position: relative;
}

.reaction-button-wrap form {
    margin: 0;
}

.reaction-button {
    display: inline-flex;
    min-height: 30px;
    padding: 0 8px;
    gap: 4px;
    align-items: center;
    border: 1px solid #dfe4eb;
    border-radius: 999px;
    background: #fff;
    color: #667085;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
}

.reaction-button strong {
    font-size: 9px;
}

.reaction-button:hover,
.reaction-button:focus-visible,
.reaction-button.is-selected {
    border-color: #aab4c2;
    background: #f1f4f7;
    color: #344054;
    outline: none;
}

.reaction-button:focus-visible {
    box-shadow: 0 0 0 3px rgba(49, 91, 156, .15);
}

.reaction-tooltip {
    width: max-content;
    max-width: 240px;
    position: absolute;
    z-index: 5;
    bottom: calc(100% + 7px);
    left: 50%;
    display: none;
    padding: 8px 10px;
    border-radius: 8px;
    background: #1f2937;
    color: #fff;
    font-size: 9px;
    line-height: 1.45;
    transform: translateX(-50%);
}

.reaction-tooltip small {
    display: block;
    opacity: .72;
}

.reaction-button-wrap:hover .reaction-tooltip,
.reaction-button-wrap:focus-within .reaction-tooltip {
    display: block;
}

.reaction-picker {
    position: relative;
}

.reaction-picker > summary {
    min-height: 30px;
    padding: 0 9px;
    display: inline-flex;
    gap: 4px;
    align-items: center;
    border: 1px dashed #cbd2dc;
    border-radius: 999px;
    color: #667085;
    cursor: pointer;
    font-size: 9px;
    font-weight: 650;
    list-style: none;
}

.reaction-picker > div {
    position: absolute;
    z-index: 6;
    bottom: calc(100% + 8px);
    left: 0;
    display: flex;
    padding: 8px;
    gap: 4px;
    border: 1px solid #dfe4eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(20, 28, 40, .14);
}

.member-reaction-summary {
    display: flex;
    margin: 20px 0;
    padding: 12px 15px;
    flex-wrap: wrap;
    gap: 9px 15px;
    border: 1px solid #e2e6eb;
    border-radius: 13px;
    background: #fff;
    color: #667085;
    font-size: 10px;
}

.member-reaction-summary strong {
    color: #344054;
}

.reaction-member-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 18px;
}

.reaction-member-stats div {
    padding: 15px;
    border: 1px solid #e7eaf0;
    border-radius: 12px;
    background: #fafbfc;
}

.reaction-member-stats dt,
.reaction-member-stats dd {
    font-size: 9px;
}

.reaction-member-stats dd {
    margin: 6px 0 0;
    color: #344054;
    font-weight: 750;
}

.member-reaction-list {
    display: grid;
    gap: 10px;
}

.member-reaction-list article {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border: 1px solid #e5e9ef;
    border-radius: 12px;
    background: #fff;
}

.member-reaction-list article > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 11px;
    background: #f1f4f7;
    font-size: 20px;
}

.member-reaction-list strong,
.member-reaction-list small {
    display: block;
}

.member-reaction-list small,
.member-reaction-list time {
    color: #98a2b3;
    font-size: 8px;
}

.member-reaction-list p {
    margin: 5px 0;
    color: #667085;
    font-size: 10px;
}

.reaction-empty-state {
    display: grid;
    min-height: 200px;
    place-content: center;
    justify-items: center;
    border: 1px dashed #cfd6e1;
    border-radius: 14px;
    background: #fafbfc;
    color: #667085;
    text-align: center;
}

.reaction-empty-state h3 { margin: 9px 0 0; color: #344054; font-size: 14px; }
.reaction-empty-state p { margin: 6px 0 0; font-size: 10px; }

.comment-edited {
    display: inline-block;
    margin-top: 6px;
    color: #98a2b3;
    font-size: 9px;
}

.comment-removed {
    color: #98a2b3;
    font-style: italic;
}

.comment-actions {
    display: flex;
    margin: 12px 0 0 49px;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
}

.comment-actions form {
    margin: 0;
}

.comment-actions button,
.comment-report summary {
    padding: 6px 8px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #667085;
    cursor: pointer;
    font: inherit;
    font-size: 9px;
    font-weight: 650;
}

.comment-actions button:hover,
.comment-actions button:focus-visible,
.comment-actions button.is-active {
    background: #f0f2f5;
    color: #344054;
}

.comment-actions button.is-active {
    color: #b23855;
}

.comment-report {
    position: relative;
}

.comment-report summary {
    list-style: none;
}

.comment-report form {
    width: min(280px, 80vw);
    position: absolute;
    z-index: 4;
    top: 32px;
    right: 0;
    display: grid;
    padding: 14px;
    gap: 10px;
    border: 1px solid #dfe4eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(20, 28, 40, .14);
}

.comment-report label {
    display: grid;
    gap: 5px;
    color: #667085;
    font-size: 9px;
}

.comment-spoiler > div {
    display: flex;
    padding: 15px;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e1d9c8;
    border-radius: 10px;
    background: #faf7f0;
    color: #725f37;
}

.comment-spoiler button {
    padding: 7px 9px;
    border: 1px solid #d8caa9;
    border-radius: 7px;
    background: #fff;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-size: 9px;
}

.comment-spoiler > p {
    margin: 12px 0 0;
}

.comment-replies {
    display: grid;
    margin: 12px 0 0 24px;
    padding-left: 14px;
    gap: 12px;
    border-left: 2px solid #e5e9ef;
}

.comment-empty-state {
    display: grid;
    min-height: 190px;
    place-content: center;
    justify-items: center;
    border: 1px dashed #cfd6e1;
    border-radius: 14px;
    background: #fafbfc;
    color: #667085;
    text-align: center;
}

.comment-empty-state span {
    font-size: 28px;
}

.comment-empty-state h3 {
    margin: 10px 0 0;
    color: #344054;
    font-size: 14px;
}

.comment-empty-state p {
    margin: 6px 0 0;
    font-size: 11px;
}

.public-discussion {
    max-width: 820px;
    margin: 60px auto 0;
}

.member-comment-filters {
    display: flex;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 6px;
}

.member-comment-filters a {
    padding: 8px 10px;
    border: 1px solid #dfe4eb;
    border-radius: 8px;
    color: #667085;
    font-size: 9px;
    font-weight: 650;
    text-decoration: none;
}

.member-comment-filters a.is-active {
    border-color: #1f2937;
    background: #1f2937;
    color: #fff;
}

.member-comment-list {
    display: grid;
    gap: 16px;
}

.member-comment-context {
    display: flex;
    margin-bottom: -9px;
    padding: 0 5px;
    gap: 8px;
    align-items: center;
    color: #667085;
    font-size: 9px;
}

.member-comment-context a {
    overflow: hidden;
    color: #344054;
    font-weight: 650;
    text-overflow: ellipsis;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .comment-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .comment-replies {
        margin-left: 8px;
        padding-left: 9px;
    }

    .comment-body,
    .comment-actions,
    .reaction-bar {
        margin-left: 0;
    }

    .reaction-member-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .reaction-picker > div {
        max-width: 88vw;
        flex-wrap: wrap;
    }

    .comment-editor > div,
    .comment-spoiler > div {
        align-items: stretch;
        flex-direction: column;
    }

    .comment-report form {
        right: auto;
        left: 0;
    }
}
