.public_profile_body {
    background: #f5f7f9;
}

.public-profile-page {
    --profile-blue: #1692d8;
    --profile-blue-dark: #0f79b5;
    --profile-blue-soft: #e7f4fb;
    --profile-blue-softest: #f2fbff;
    --profile-ink: #002940;
    --profile-muted: #6f7e86;
    --profile-border: #e6edf1;
    padding-top: 24px;
    padding-bottom: 48px;
}

.public-profile-page .shared-breadcrumb {
    margin-bottom: 14px;
}

.public-profile-identity-card {
    border: 1px solid var(--profile-border);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0, 41, 64, .06);
    padding: 22px;
}

.public-profile-main {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(420px, 1fr);
    align-items: stretch;
    gap: 24px;
}

.public-profile-person {
    display: flex;
    align-items: stretch;
    gap: 18px;
    min-width: 0;
}

.public-profile-avatar {
    width: 128px;
    min-width: 128px;
    aspect-ratio: 1;
    align-self: center;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--profile-blue-soft), 0 8px 20px rgba(0, 41, 64, .12);
}

.public-profile-details {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 4px 0;
}

.public-profile-details h1 {
    overflow: hidden;
    margin: 0 0 7px;
    color: var(--profile-ink);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-profile-since {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: var(--profile-muted);
    font-size: 14px;
}

.public-profile-since i {
    color: var(--profile-blue);
}

.public-profile-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin: 11px 0;
    color: var(--profile-muted);
    font-size: 13px;
}

.public-profile-rating-score {
    color: var(--profile-ink);
    font-size: 17px;
    font-weight: 700;
}

.public-profile-stars {
    display: inline-flex;
    direction: ltr;
    gap: 2px;
    color: var(--profile-blue);
    font-size: 14px;
}

.public-profile-stars .is-muted {
    color: #dce5e9;
}

.public-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.public-profile-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 18px;
    border: 1px solid var(--profile-blue);
    border-radius: 7px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.public-profile-button:hover {
    transform: translateY(-1px);
}

.public-profile-call {
    background: #fff;
    color: var(--profile-blue);
}

.public-profile-call:hover {
    background: var(--profile-blue-softest);
    color: var(--profile-blue-dark);
}

.public-profile-follow {
    background: var(--profile-blue);
    color: #fff;
}

.public-profile-follow:hover,
.public-profile-follow:focus {
    border-color: var(--profile-blue-dark);
    background: var(--profile-blue-dark);
    color: #fff;
}

.public-profile-follow.is-following {
    background: var(--profile-blue-soft);
    color: var(--profile-blue-dark);
}

.public-profile-follow.is-loading {
    cursor: wait;
    opacity: .7;
}

.public-profile-rate {
    background: #fff;
    color: var(--profile-blue);
}

.public-profile-rate i {
    color: #f5b301;
}

.public-profile-rate:hover,
.public-profile-rate:focus {
    border-color: var(--profile-blue-dark);
    background: var(--profile-blue-softest);
    color: var(--profile-blue-dark);
}

.public-profile-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: min(100%, 220px);
    justify-self: end;
}

.public-profile-stat {
    display: flex;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin: 0;
    padding: 7px 5px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: var(--profile-blue-soft);
    color: var(--profile-ink);
    font: inherit;
    text-align: center;
}

button.public-profile-stat {
    width: 100%;
}

.public-profile-stat:disabled {
    opacity: 1;
}

.public-profile-stat.is-clickable {
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.public-profile-stat.is-clickable:hover,
.public-profile-stat.is-clickable:focus {
    border-color: #b9def3;
    background: var(--profile-blue-softest);
    transform: translateY(-2px);
}

.public-profile-stat-icon {
    display: inline-flex;
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: var(--profile-blue);
    font-size: 12px;
}

.public-profile-stat-value {
    color: var(--profile-blue);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.public-profile-stat-label {
    overflow: hidden;
    max-width: 100%;
    color: var(--profile-muted);
    font-size: 11px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-profile-listing {
    margin-top: 26px;
}

.public-profile-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.public-profile-section-heading h2 {
    margin: 0;
    color: var(--profile-ink);
    font-size: 22px;
    font-weight: 700;
}

.public-profile-post-count {
    display: inline-flex;
    min-width: 38px;
    height: 30px;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border-radius: 20px;
    background: var(--profile-blue-soft);
    color: var(--profile-blue);
    font-size: 14px;
    font-weight: 700;
}

.public-profile-pagination {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.public-profile-pagination nav {
    width: auto;
}

.public-profile-pagination .pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.public-profile-pagination .page-link {
    display: inline-flex;
    min-width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--profile-border);
    border-radius: 7px !important;
    background: #fff;
    color: var(--profile-blue);
}

.public-profile-pagination .page-item.active .page-link {
    border-color: var(--profile-blue);
    background: var(--profile-blue);
    color: #fff;
}

.public-profile-pagination .page-item.disabled .page-link {
    color: #abb7bd;
}

.followers-loading {
    width: 34px;
    height: 34px;
    margin: 32px auto;
    border: 3px solid var(--profile-blue-soft);
    border-top-color: var(--profile-blue);
    border-radius: 50%;
    animation: public-profile-spin .8s linear infinite;
}

.followers-error {
    padding: 24px;
    color: #c63a4b;
    text-align: center;
}

@keyframes public-profile-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1199.98px) {
    .public-profile-main {
        grid-template-columns: 1fr;
    }

    .public-profile-stats {
        justify-self: start;
    }
}

@media (max-width: 767.98px) {
    .public-profile-page {
        padding-top: 14px;
        padding-bottom: 28px;
    }

    .public-profile-page .shared-breadcrumb {
        margin-bottom: 10px;
    }

    .public-profile-identity-card {
        padding: 15px;
        border-radius: 10px;
    }

    .public-profile-person {
        align-items: flex-start;
        gap: 13px;
    }

    .public-profile-avatar {
        width: 88px;
        min-width: 88px;
    }

    .public-profile-details h1 {
        font-size: 19px;
    }

    .public-profile-since {
        font-size: 12px;
    }

    .public-profile-rating {
        flex-wrap: wrap;
        gap: 5px;
        margin: 8px 0 11px;
    }

    .public-profile-rating-count {
        width: 100%;
    }

    .public-profile-actions {
        width: 100%;
    }

    .public-profile-button {
        min-width: 0;
        padding: 8px 10px;
        font-size: 12px;
    }

    .public-profile-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        justify-self: center;
    }

    .public-profile-section-heading h2 {
        font-size: 19px;
    }
}

@media (max-width: 480px) {
    .public-profile-person {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .public-profile-details {
        width: 100%;
        align-items: center;
    }

    .public-profile-since,
    .public-profile-rating {
        justify-content: center;
    }

    .public-profile-rating-count {
        width: auto;
    }
}
