.yeb-summary {
    margin: 18px 0 26px;
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    border: 1px solid #cfe3db;
    border-inline-start: 4px solid #0f8f68;
    border-radius: 8px;
    background: #f3faf7;
    color: #1d2b25;
}

.yeb-summary-avatars {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    padding-inline-start: 6px;
}

.yeb-summary-avatars a {
    position: relative;
    width: 34px;
    height: 34px;
    margin-inline-start: -10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #eef7f3;
    color: #0f6f52;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 0 0 1px #d9e4df;
}

.yeb-summary-avatars a::after {
    content: "";
    position: absolute;
    inset-inline-end: -1px;
    bottom: -1px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #0f8f68;
    border: 2px solid #ffffff;
}

.yeb-summary-avatars img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.yeb-summary-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 10px;
    flex: 1 1 220px;
    min-width: 0;
}

.yeb-summary-main strong {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
    color: #1d2b25;
}

.yeb-summary-main strong a {
    color: #0f6f52;
    text-decoration: none;
}

.yeb-summary-main strong a:hover {
    text-decoration: underline;
}

.yeb-summary-main span {
    font-size: 12.5px;
    line-height: 1.7;
    color: #6b7a74;
    white-space: nowrap;
}

.yeb-summary-open {
    flex: 0 0 auto;
    margin-inline-start: auto;
    padding: 5px 14px;
    border: 1px solid #cfe3db;
    border-radius: 999px;
    background: #ffffff;
    color: #0f6f52;
    cursor: pointer;
    font: inherit;
    font-size: 12.5px;
}

.yeb-summary-open:hover {
    background: #f3faf7;
}

.yeb-modal-is-open,
.yeb-modal-is-open body {
    overflow: hidden;
}

.yeb-modal[hidden] {
    display: none;
}

.yeb-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: clamp(16px, 4vh, 40px) 16px;
    box-sizing: border-box;
}

.yeb-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, .62);
    backdrop-filter: blur(4px);
}

.yeb-modal-panel {
    position: relative;
    width: min(920px, 100%);
    max-height: min(820px, calc(100vh - 32px));
    max-height: min(820px, calc(100dvh - 32px));
    margin: 0;
    padding: 32px;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    color: #111827;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .24);
    overscroll-behavior: contain;
}

.yeb-modal-close {
    position: absolute;
    top: 18px;
    inset-inline-start: 18px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f1f5f9;
    color: #334155;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    z-index: 2;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
    touch-action: manipulation;
}

.yeb-modal-close:hover,
.yeb-modal-close:focus-visible {
    background: #e2e8f0;
    color: #0f172a;
    transform: scale(1.04);
    outline: 3px solid rgba(0, 159, 227, .22);
    outline-offset: 2px;
}

.yeb-modal-panel h3 {
    margin: 4px 54px 8px;
    text-align: center;
    color: #172033;
    font-size: clamp(20px, 2.3vw, 26px);
    line-height: 1.6;
}

.yeb-modal-panel p {
    margin: 0 36px 22px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
    line-height: 1.9;
}

.yeb-reviewer-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
    min-height: 0;
    padding: 2px 4px 6px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.yeb-reviewer-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    min-width: 0;
    height: 100%;
    padding: 18px;
    box-sizing: border-box;
    border: 1px solid #cfe8f4;
    border-radius: 16px;
    background: #f5fbfe;
    color: #1e293b;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .04);
    transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.yeb-reviewer-card:hover {
    border-color: #78c9e8;
    background: #eef9fd;
    text-decoration: none !important;
    box-shadow: 0 10px 28px rgba(0, 159, 227, .10);
    transform: translateY(-2px);
}

.yeb-reviewer-card:focus-visible {
    outline: 3px solid rgba(0, 159, 227, .28);
    outline-offset: 2px;
}

.yeb-reviewer-avatar {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 700;
}

.yeb-reviewer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yeb-reviewer-info {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 5px;
}

.yeb-reviewer-card,
.yeb-reviewer-card * {
    text-decoration: none !important;
}

.yeb-reviewer-info strong,
.yeb-reviewer-info small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yeb-reviewer-info strong {
    color: #007eb4;
    font-size: 16px;
    line-height: 1.7;
}

.yeb-reviewer-info small {
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.7;
}

.yeb-reviewer-note {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
    margin: 8px 0 2px;
    padding: 10px 12px;
    border: 1px solid #e8f1f5;
    border-radius: 10px;
    background: #ffffff;
    color: #1f2d27;
    font-size: 13px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.yeb-reviewer-info em {
    width: fit-content;
    margin-top: 3px;
    padding: 4px 11px;
    border-radius: 999px;
    background: #fff;
    color: #475569;
    font-style: normal;
    font-size: 12px;
}

.yeb-badges {
    margin: 32px 0;
    padding: 18px;
    border: 1px solid #d9e4df;
    border-radius: 8px;
    background: #fbfdfc;
    display: grid;
    gap: 12px;
    color: #1d2b25;
}

.yeb-badge {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e1e8e4;
    border-radius: 8px;
    background: #ffffff;
}

.yeb-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #0f8f68;
    color: #ffffff;
    font-weight: 700;
}

.yeb-badge strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.yeb-badge small {
    display: block;
    line-height: 1.9;
    color: #52615b;
}

.yeb-badge a,
.yeb-details a {
    color: #0f6f52;
    text-decoration: none;
}

.yeb-badge a:hover,
.yeb-details a:hover {
    text-decoration: underline;
}

.yeb-profile-link {
    margin-inline-start: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef7f3;
    font-size: 12px;
    white-space: nowrap;
}

.yeb-badge-learners .yeb-icon {
    background: #c94562;
}

.yeb-badge-class .yeb-icon {
    background: #5067c5;
}

.yeb-badge-changelog .yeb-icon {
    background: #8a6f21;
}

.yeb-review-note {
    margin: 10px 0 0;
    padding: 10px 12px;
    border: 0;
    border-right: 3px solid #0f8f68;
    border-radius: 6px;
    background: #f3faf7;
    color: #263238;
    line-height: 1.9;
}

.yeb-outcomes {
    margin: 12px 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.yeb-outcomes li {
    padding: 9px 12px;
    border-radius: 6px;
    background: #fff7fb;
    color: #3f2a33;
    line-height: 1.8;
}

.yeb-outcome-form {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.yeb-outcome-form span {
    color: #52615b;
    font-size: 13px;
}

.yeb-outcome-form textarea {
    width: 100%;
    min-height: 64px;
    padding: 10px;
    border: 1px solid #d9e4df;
    border-radius: 6px;
    font: inherit;
    resize: vertical;
}

.yeb-vote-button {
    margin-top: 10px;
    padding: 8px 14px;
    border: 0;
    border-radius: 6px;
    background: #0f8f68;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
}

.yeb-vote-button:disabled {
    cursor: default;
    opacity: .7;
}

.yeb-login-note {
    margin-top: 8px;
}

.yeb-article-rating {
    margin: 24px 0;
    padding: 22px;
    display: grid;
    gap: 18px;
    border: 1px solid #ccecf8;
    border-radius: 16px;
    background: linear-gradient(135deg, #f3fbff 0%, #ffffff 62%, #fff9ec 100%);
    color: #1a1a1a;
    box-shadow: 0 8px 24px rgba(0, 159, 227, .08);
    font-family: IRANYekanX, Tahoma, Arial, sans-serif;
}

.yeb-rating-copy {
    display: grid;
    gap: 6px;
    text-align: center;
}

.yeb-rating-eyebrow {
    color: #007fb6;
    font-size: 12px;
    font-weight: 700;
}

.yeb-rating-copy strong {
    color: #1a1a1a;
    font-size: 19px;
    line-height: 1.7;
}

.yeb-rating-summary,
.yeb-article-rating small {
    color: #666;
    font-size: 13px;
}

.yeb-rating-summary b {
    color: #e69500;
    font-size: 17px;
}

.yeb-rating-stars {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.yeb-rating-star {
    min-width: 0;
    min-height: 70px;
    padding: 9px 5px;
    display: grid;
    place-items: center;
    gap: 4px;
    border: 1px solid #e4e4e8;
    border-radius: 12px;
    background: #fff;
    color: #878787;
    cursor: pointer;
    font: inherit;
    transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.yeb-rating-star-icon {
    color: #c8c8cc;
    font-size: 27px;
    line-height: 1;
}

.yeb-rating-star-label {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.yeb-rating-star:hover,
.yeb-rating-star:focus-visible {
    border-color: #f7a600;
    background: #fff9ec;
    color: #7a5200;
    transform: translateY(-2px);
}

.yeb-rating-star:hover .yeb-rating-star-icon,
.yeb-rating-star:focus-visible .yeb-rating-star-icon,
.yeb-rating-star.is-selected .yeb-rating-star-icon {
    color: #f7a600;
}

.yeb-rating-star.is-selected {
    border-color: #f7a600;
    background: #fff4d6;
    color: #5b3e00;
    box-shadow: 0 0 0 2px rgba(247, 166, 0, .14);
}

.yeb-rating-star:focus-visible {
    outline: 2px solid #009fe3;
    outline-offset: 2px;
    border-radius: 4px;
}

.yeb-rating-star:disabled {
    cursor: wait;
    opacity: .65;
}

.yeb-rating-message {
    display: block;
    min-height: 22px;
    padding: 7px 10px;
    border-radius: 8px;
    background: #f7f7f8;
    text-align: center;
}

.yeb-rating-message.is-success {
    background: #f2f9df;
    color: #416000;
}

.yeb-rating-message.is-error {
    background: #fff0f6;
    color: #9e004b;
}

.yeb-article-rating.is-compact {
    padding: 16px;
    gap: 12px;
}

.yeb-article-rating.is-compact .yeb-rating-eyebrow {
    display: none;
}

.yeb-article-rating.is-compact .yeb-rating-star {
    min-height: 58px;
}

.yeb-details {
    padding: 10px 14px;
    border-radius: 8px;
    background: #f4f8f6;
}

.yeb-details summary {
    cursor: pointer;
    font-weight: 700;
}

.yeb-details ul {
    margin: 12px 20px;
}

@media (max-width: 640px) {
    .yeb-article-rating {
        padding: 16px 12px;
        border-radius: 12px;
    }

    .yeb-rating-stars {
        gap: 5px;
    }

    .yeb-rating-star {
        min-height: 62px;
        padding: 7px 2px;
    }

    .yeb-rating-star-icon {
        font-size: 23px;
    }

    .yeb-rating-star-label {
        font-size: 9px;
    }

    .yeb-summary {
        padding: 10px 12px;
        gap: 6px 10px;
    }

    .yeb-summary-main {
        flex-basis: calc(100% - 50px);
    }

    .yeb-summary-main span {
        white-space: normal;
    }

    .yeb-summary-avatars a:not(:first-child) {
        display: none;
    }

    .yeb-summary-open {
        width: 100%;
        min-height: 42px;
        margin: 4px 0 0;
        padding: 8px 12px;
        font-size: 13px;
    }

    .yeb-modal {
        place-items: end center;
        padding: 0;
    }

    .yeb-modal-panel {
        width: 100%;
        max-height: 92vh;
        max-height: 92dvh;
        margin: 0;
        padding: 24px 14px max(16px, env(safe-area-inset-bottom));
        border-width: 1px 0 0;
        border-radius: 22px 22px 0 0;
    }

    .yeb-modal-panel::before {
        content: "";
        width: 44px;
        height: 4px;
        margin: -12px auto 10px;
        border-radius: 999px;
        background: #cbd5e1;
    }

    .yeb-modal-close {
        top: 14px;
        inset-inline-start: 14px;
        width: 44px;
        height: 44px;
    }

    .yeb-modal-panel h3 {
        margin: 0 48px 6px;
        font-size: 19px;
    }

    .yeb-modal-panel p {
        margin: 0 8px 16px;
        font-size: 12.5px;
        line-height: 1.8;
    }

    .yeb-reviewer-list {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 2px 2px 8px;
    }

    .yeb-reviewer-card {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 11px;
        height: auto;
        padding: 14px;
        border-radius: 14px;
    }

    .yeb-reviewer-card:hover {
        transform: none;
    }

    .yeb-reviewer-avatar {
        width: 48px;
        height: 48px;
    }

    .yeb-reviewer-info strong {
        font-size: 14.5px;
    }

    .yeb-reviewer-info small {
        white-space: normal;
    }

    .yeb-reviewer-note {
        -webkit-line-clamp: 4;
        padding: 9px 10px;
        font-size: 12.5px;
        line-height: 1.85;
    }

    .yeb-badges {
        padding: 12px;
    }

    .yeb-badge {
        padding: 12px;
    }
}
