.evaluation-report-row {
    justify-content: center;
    margin-bottom: 1.25rem;
}

.evaluation-report-row .avatar {
    display: none;
}

.evaluation-report .speaker-name {
    display: none;
}

.message.bot-message.evaluation-message.evaluation-report {
    display: block;
    max-width: 90%;
    width: 90%;
    margin: 0 auto;
    padding: 1.15rem 1.35rem 1.2rem;
    background: var(--panel-bg, #ffffff);
    border: 1px solid var(--border-color, #d1d9e0);
    color: var(--text-primary, #202124);
    border-radius: 4px;
    border-bottom-left-radius: 4px;
    box-sizing: border-box;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.05),
        0 4px 14px rgba(0, 0, 0, 0.04);
}

.message.evaluation-message.evaluation-report .rendered-markdown {
    padding: 0;
}

.evaluation-report-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.evaluation-report-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-color, #d1d9e0);
}

.evaluation-report-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary, #202124);
    line-height: 1.35;
}

.evaluation-report-total-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary, #5f6368);
    margin-bottom: 0.1rem;
}

.evaluation-report-total {
    font-size: 1.55rem;
    font-weight: 650;
    line-height: 1.1;
    color: var(--primary-color, #0056b3);
}

.evaluation-report-section-title {
    font-size: 1.1rem;
    font-weight: 650;
    color: var(--text-primary, #202124);
    text-align: center;
    margin-bottom: 0.55rem;
}

.evaluation-report-radar {
    display: flex;
    justify-content: center;
    margin: 0.1rem 0 0.85rem;
}

.evaluation-report-radar svg {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    overflow: visible;
}

.evaluation-report-radar-grid {
    fill: none;
    stroke: #e4e7eb;
    stroke-width: 1;
}

.evaluation-report-radar-axis {
    stroke: #eceff3;
    stroke-width: 1;
}

.evaluation-report-radar-area {
    fill: rgba(var(--primary-color-rgb, 0, 86, 179), 0.16);
    stroke: var(--primary-color, #0056b3);
    stroke-width: 1.5;
}

.evaluation-report-radar-dot {
    fill: var(--primary-color, #0056b3);
}

.evaluation-report-radar-label {
    font-size: 0.9rem;
    font-weight: 600;
    fill: var(--text-primary, #202124);
}

.evaluation-report-radar-score {
    font-size: 1.15rem;
    font-weight: 650;
    fill: var(--primary-color, #0056b3);
}

.evaluation-report-radar--compact .evaluation-report-radar-label {
    font-size: 0.72rem;
}

.evaluation-report-radar--compact .evaluation-report-radar-score {
    font-size: 0.95rem;
}

.evaluation-report-block-title {
    font-size: 1rem;
    font-weight: 650;
    color: var(--text-primary, #202124);
    margin-bottom: 0.4rem;
    line-height: 1.35;
}

.evaluation-report-criterion {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 0.55rem;
    row-gap: 0.4rem;
    align-items: baseline;
    padding: 0.7rem 0;
    border-bottom: 1px solid #eceff3;
}

.evaluation-report-criterion:last-of-type {
    padding-bottom: 0.7rem;
}

.evaluation-report-criterion-top {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.evaluation-report-criterion-name {
    flex: 0 1 auto;
    min-width: 0;
    font-weight: 600;
    color: var(--primary-color, #0056b3);
}

.evaluation-report-criterion-score {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--primary-color, #0056b3);
}

.evaluation-report-bar {
    flex: 0 0 5.75rem;
    width: 5.75rem;
    height: 8px;
    border-radius: 2px;
    background: #e9ecef;
    overflow: hidden;
}

.evaluation-report-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: var(--primary-color, #0056b3);
}

.evaluation-report-bar--pips {
    display: flex;
    gap: 2px;
    background: transparent;
    overflow: visible;
    border-radius: 0;
}

.evaluation-report-bar-pip {
    flex: 1;
    min-width: 0;
    height: 8px;
    border-radius: 1px;
    background: #e4e7eb;
}

.evaluation-report-bar-pip.is-filled {
    background: var(--primary-color, #0056b3);
}

.evaluation-report-field {
    display: grid;
    grid-template-columns: subgrid;
    grid-column: 1 / -1;
    align-items: baseline;
}

.evaluation-report-field-label {
    font-size: 0.875rem;
    font-weight: 650;
    color: var(--text-primary, #202124);
    line-height: 1.55;
    white-space: nowrap;
}

.evaluation-report-prose {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-primary, #202124);
    min-width: 0;
}

.evaluation-report-prose > p,
.evaluation-report-prose > *:first-child {
    margin-top: 0;
}

.evaluation-report-prose > *:last-child {
    margin-bottom: 0;
}

.message.evaluation-message.evaluation-report .evaluation-report-prose p {
    margin: 0;
    font-size: 0.875rem !important;
    line-height: 1.55;
}

.message.evaluation-message.evaluation-report .evaluation-report-prose p + p {
    margin-top: 0.35em;
}

.evaluation-report-section-score {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
    margin-top: 0.45rem;
    padding-top: 0.7rem;
    font-size: 0.95rem;
}

.evaluation-report-section-score-label {
    font-weight: 600;
    color: var(--text-secondary, #5f6368);
}

.evaluation-report-section-score-value {
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    color: var(--primary-color, #0056b3);
}

.evaluation-report-section-score-percent {
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    color: var(--primary-color, #0056b3);
}

.evaluation-report-overall,
.evaluation-report-challenge {
    margin-top: 0.15rem;
    padding-top: 0.95rem;
    border-top: 1px solid var(--border-color, #d1d9e0);
}

.evaluation-report-challenge {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: 0.55rem;
    row-gap: 0.4rem;
    align-items: baseline;
}

.evaluation-report-challenge .evaluation-report-block-title {
    grid-column: 1 / -1;
    color: #C00000;
}

.evaluation-report-overall .evaluation-report-prose {
    margin-top: 0.35rem;
}

.evaluation-report-overall .evaluation-report-block-title {
    text-align: center;
}

.message.evaluation-message.evaluation-report .evaluation-report-overall .evaluation-report-prose,
.message.evaluation-message.evaluation-report .evaluation-report-overall .evaluation-report-prose p,
.message.evaluation-message.evaluation-report .evaluation-report-overall .evaluation-report-prose li,
.message.evaluation-message.evaluation-report .evaluation-report-overall .evaluation-report-prose strong,
.message.evaluation-message.evaluation-report .evaluation-report-overall .evaluation-report-prose b {
    font-size: 0.875rem !important;
    line-height: 1.55;
    color: var(--text-primary, #202124);
}

.message.evaluation-message.evaluation-report .evaluation-report-overall .evaluation-report-prose p,
.message.evaluation-message.evaluation-report .evaluation-report-overall .evaluation-report-prose li {
    font-weight: 400;
}

/* LLM often wraps a whole intro paragraph in **...**. Treat that as body text. */
.message.evaluation-message.evaluation-report .evaluation-report-overall .evaluation-report-prose p > strong:only-child,
.message.evaluation-message.evaluation-report .evaluation-report-overall .evaluation-report-prose p > b:only-child {
    font-weight: 400;
}

.message.evaluation-message.evaluation-report .evaluation-report-overall .evaluation-report-prose h2,
.message.evaluation-message.evaluation-report .evaluation-report-overall .evaluation-report-prose h3,
.message.evaluation-message.evaluation-report .evaluation-report-overall .evaluation-report-prose h4,
.message.evaluation-message.evaluation-report .evaluation-report-overall .evaluation-report-prose h5,
.message.evaluation-message.evaluation-report .evaluation-report-overall .evaluation-report-prose p:has(> strong:only-child):has(+ ul) > strong:only-child,
.message.evaluation-message.evaluation-report .evaluation-report-overall .evaluation-report-prose p:has(> strong:only-child):has(+ ol) > strong:only-child,
.message.evaluation-message.evaluation-report .evaluation-report-overall .evaluation-report-prose p:has(> b:only-child):has(+ ul) > b:only-child,
.message.evaluation-message.evaluation-report .evaluation-report-overall .evaluation-report-prose p:has(> b:only-child):has(+ ol) > b:only-child {
    font-size: 1rem !important;
    font-weight: 650;
    color: var(--text-primary, #202124);
    line-height: 1.35;
}

.evaluation-report-overall .evaluation-report-prose h2,
.evaluation-report-overall .evaluation-report-prose h3,
.evaluation-report-overall .evaluation-report-prose h4,
.evaluation-report-overall .evaluation-report-prose h5,
.evaluation-report-overall .evaluation-report-prose p:has(> strong:only-child):has(+ ul),
.evaluation-report-overall .evaluation-report-prose p:has(> strong:only-child):has(+ ol) {
    margin-top: 0.75rem;
    margin-bottom: 0.35rem;
}

@media (max-width: 640px) {
    .message.bot-message.evaluation-message.evaluation-report {
        max-width: 100%;
        width: 100%;
        padding: 1rem 1.05rem 1.1rem;
    }

    .evaluation-report-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .evaluation-report-total {
        font-size: 1.35rem;
    }
}
