/* Scorecard preview: collapsed by default so it never pushes the verdict down. */
.scorecard-preview {
    margin: 14px 0 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.scorecard-preview summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 60px;
    padding: 12px 16px;
    cursor: pointer;
    list-style: none;
}

.scorecard-preview summary::-webkit-details-marker { display: none; }

.scorecard-preview summary span { display: grid; gap: 2px; }

.scorecard-preview summary small {
    font-family: var(--display);
    font-stretch: 87.5%;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .12em;
    color: var(--brand);
}

.scorecard-preview summary b {
    font-family: var(--display);
    font-stretch: 87.5%;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: .04em;
}

.scorecard-preview summary i {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23B9C0CE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") center/16px no-repeat;
    transition: transform .2s;
}

.scorecard-preview[open] summary i { transform: rotate(180deg); }

.scorecard-preview-artifact {
    width: min(100%, 520px);
    aspect-ratio: 4 / 5;
    margin: 0 auto;
    overflow: hidden;
    background: var(--surface-2);
    border-radius: 12px;
}

.scorecard-preview[open] .scorecard-preview-artifact { width: min(calc(100% - 32px), 520px); }

.scorecard-preview-canvas {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
}

.scorecard-preview-status {
    min-height: 24px;
    margin: 10px auto 16px;
    padding: 0 16px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.scorecard-preview-status:empty { min-height: 0; margin-bottom: 16px; }
