.public-rating-body {
    background: #f8fafc;
    color: #111827;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    margin: 0;
}

.public-rating-page {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1440px;
    padding: 14px 24px 48px;
}

.public-rating-page *,
.public-rating-page *::before,
.public-rating-page *::after {
    box-sizing: border-box;
}

.public-rating-hero,
.public-rating-tabs,
.public-rating-table-shell,
.public-rating-empty {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.public-rating-hero {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 14px;
    min-height: 58px;
    padding: 12px 16px;
}

.public-rating-hero .rating-page-title h1 {
    font-size: 1.125rem;
    line-height: 1.4;
}

.public-rating-hero .rating-page-title p {
    display: none;
}

.public-rating-selector {
    flex: 0 1 320px;
}

.public-rating-selector label {
    color: #4b5563;
    display: grid;
    font-size: .8125rem;
    font-weight: 700;
    gap: 8px;
}

.public-rating-selector select {
    appearance: none;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #111827;
    font-size: .875rem;
    font-weight: 650;
    min-height: 38px;
    padding: 7px 34px 7px 11px;
    width: 100%;
}

.public-rating-tabs {
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    margin: 0;
}

.public-rating-table-shell {
    border-radius: 0 0 8px 8px;
    margin-top: 0;
    max-height: none;
    overflow-x: auto !important;
    overflow-y: visible !important;
    width: 100%;
}

.public-rating-table-shell .rating-frozen-mask {
    display: none;
}

.public-rating-table-shell .rating-table {
    min-width: 100%;
    width: max-content;
}

.public-rating-table-shell .rating-table th,
.public-rating-table-shell .rating-table td {
    font-size: .8125rem;
    min-width: 9rem;
    padding: .65rem .875rem;
    white-space: nowrap;
}

.public-rating-table-shell .rating-table th {
    text-transform: none;
}

.public-rating-table-shell .rating-table .rating-rank-column {
    min-width: 4rem;
    width: 4rem;
}

.public-rating-table-shell .rating-table .rating-pair-column {
    min-width: 20rem;
    width: 20rem;
}

.public-rating-table-shell .rating-score-cell,
.public-rating-table-shell .rating-total-value {
    text-align: center;
}

.public-rating-table-shell .rating-score-trigger {
    margin-left: auto;
    margin-right: auto;
}

.public-rating-table-shell .rating-pair-cell strong {
    font-size: .875rem;
}

.public-rating-table-shell .rating-pair-cell span {
    font-size: .75rem;
}

.public-rating-table-shell .rating-table th:last-child,
.public-rating-table-shell .rating-table td:last-child {
    min-width: 7rem;
}

.public-rating-table-empty {
    color: #64748b;
    font-weight: 700;
    padding: 28px 20px !important;
    text-align: center;
}

.public-rating-empty {
    min-height: 260px;
}

.public-rating-empty-icon {
    align-items: center;
    background: #f0dcff;
    border-radius: 999px;
    color: #9333ea;
    display: inline-flex;
    font-size: 1.25rem;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.block {
    display: block;
}

.font-semibold {
    font-weight: 700;
}

.public-rating-modal-header {
    align-items: flex-start;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 20px;
}

.public-rating-modal-header h2 {
    color: #111827;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.4;
    margin: 0;
}

.public-rating-modal-header p {
    color: #64748b;
    font-size: .875rem;
    margin: 4px 0 0;
}

.rating-modal-backdrop[hidden] {
    display: none !important;
}

.rating-modal-backdrop[data-rating-score-modal] {
    align-items: center;
    background: rgba(15, 23, 42, .42);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 1000;
}

.rating-modal.rating-score-modal {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .25);
    max-height: min(720px, calc(100vh - 40px));
    max-width: 760px;
    overflow: auto;
    width: min(760px, 100%);
}

.rating-score-modal-body {
    padding: 20px;
}

@media (max-width: 768px) {
    .public-rating-page {
        padding: 10px 10px 32px;
    }

    .public-rating-hero {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 12px;
        padding: 12px;
    }

    .public-rating-selector {
        flex: 1 1 auto;
    }

    .public-rating-tabs {
        margin-top: 0;
    }

    .public-rating-table-shell {
        display: none;
    }

    .rating-mobile-cards {
        display: grid;
        gap: 12px;
        margin-top: 14px;
    }

    .rating-mobile-score-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .rating-mobile-score {
        text-align: left;
    }
}
