.soh-top-comments-wrap {
    --soh-border: #d9dde3;
    --soh-muted: #68707b;
    --soh-panel: #fff;
    --soh-soft: #f5f7f9;
    max-width: 1180px;
    margin: 0 auto;
}

.soh-top-comments-intro {
    margin: 0 0 24px;
    color: var(--soh-muted);
    font-size: 1.05rem;
}

.soh-top-comments-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, .85fr);
    gap: 28px;
    align-items: start;
}

.soh-top-comments-panel {
    min-width: 0;
}

.soh-top-comments-panel > h2,
.soh-timespan-header h2 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.2;
}

.soh-top-comments-panel > h2 {
    margin-bottom: 16px;
}

.soh-timespan-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
}

.soh-timespan-form {
    margin: 0;
}

.soh-timespan-form select {
    min-width: 132px;
    margin: 0;
    padding: 6px 34px 6px 10px;
    border: 1px solid var(--soh-border);
    border-radius: 6px;
    background-color: var(--soh-panel);
    font: inherit;
    cursor: pointer;
}

.soh-comment-list,
.soh-contributor-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.soh-comment-card {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    overflow: hidden;
    margin: 0 0 16px;
    border: 1px solid var(--soh-border);
    border-radius: 10px;
    background: var(--soh-panel);
    box-shadow: 0 2px 9px rgba(20, 30, 45, .05);
}

.soh-comment-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100%;
    padding: 14px 8px 12px;
    background: var(--soh-soft);
    border-right: 1px solid var(--soh-border);
    font-size: 1.05rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.soh-comment-rating-arrow {
    font-size: .8rem;
    line-height: 1;
}

.soh-comment-rating-value {
    margin-top: 3px;
}

.soh-comment-toggle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: auto 0 0;
    padding: 0;
    border: 1px solid #c8ced6;
    border-radius: 50%;
    background: #fff;
    color: inherit;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.soh-comment-toggle-button:hover,
.soh-comment-toggle-button:focus-visible {
    border-color: #8d96a3;
    box-shadow: 0 0 0 2px rgba(80, 90, 105, .12);
    outline: none;
}

.soh-comment-toggle-icon {
    position: relative;
    display: block;
    width: 12px;
    height: 12px;
}

.soh-comment-toggle-icon::before,
.soh-comment-toggle-icon::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    content: "";
    transform: translate(-50%, -50%);
    transition: transform .15s ease;
}

.soh-comment-toggle-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.soh-comment-toggle-button[aria-expanded="true"] .soh-comment-toggle-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.soh-comment-body {
    min-width: 0;
    padding: 16px 18px 14px;
}

.soh-comment-preview {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.soh-comment-card.is-expanded .soh-comment-preview {
    display: none;
}

.soh-comment-text {
    overflow-wrap: anywhere;
    line-height: 1.5;
}

.soh-comment-text[hidden] {
    display: none !important;
}

.soh-comment-text > :first-child {
    margin-top: 0;
}

.soh-comment-text > :last-child {
    margin-bottom: 0;
}

.soh-comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px solid var(--soh-border);
    color: var(--soh-muted);
    font-size: .86rem;
}

.soh-comment-author,
.soh-user-profile-link {
    font-weight: 700;
}

.soh-user-profile-link {
    text-decoration: none;
}

.soh-user-profile-link:hover,
.soh-user-profile-link:focus {
    text-decoration: underline;
}

.soh-contributor-list {
    overflow: hidden;
    border: 1px solid var(--soh-border);
    border-radius: 10px;
    background: var(--soh-panel);
    box-shadow: 0 2px 9px rgba(20, 30, 45, .05);
}

.soh-contributor-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 2px 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--soh-border);
}

.soh-contributor-row:last-child {
    border-bottom: 0;
}

.soh-contributor-rank {
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background: var(--soh-soft);
    font-size: .85rem;
    font-weight: 700;
}

.soh-contributor-name {
    min-width: 0;
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.soh-contributor-count {
    color: var(--soh-muted);
    font-size: .86rem;
    font-variant-numeric: tabular-nums;
}

.soh-top-comments-empty,
.soh-top-comments-error {
    padding: 16px;
    border: 1px solid var(--soh-border);
    border-radius: 8px;
    background: var(--soh-soft);
}

@media (max-width: 820px) {
    .soh-top-comments-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .soh-timespan-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .soh-comment-card {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .soh-comment-body {
        padding: 14px;
    }

    .soh-comment-toggle-button {
        width: 26px;
        height: 26px;
    }
}
