/* Компактная история проверок — в левой колонке окна под формой (проверка резюме и LinkedIn):
   две последние проверки и ссылка на все (окно со списком — cv/04_report_history.css) */
.cv-history-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.cv-history-heading {
    display: flex;
    min-height: 20px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cv-history-heading h2,
.cv-history-open {
    margin: 0;
    font-size: var(--fs-14);
    font-weight: var(--fw-regular);
    line-height: var(--lh-14);
    letter-spacing: var(--ls-14);
}

.cv-history-heading h2 {
    color: var(--text-muted);
}

.cv-history-open {
    gap: 2px;
    padding: 0;
    background: transparent;
    transition: color 0.2s ease;
}

.cv-history-open svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.cv-history-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cv-history-item {
    display: flex;
    min-height: 52px;
    min-width: 0;
    align-items: center;
    gap: 12px;
    padding: 8px 16px 8px 8px;
    box-sizing: border-box;
    border-radius: 16px;
    background: var(--surface-secondary);
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .cv-history-item:hover {
        background: var(--hover-light);
    }

    .cv-history-open:hover {
        color: var(--accent-color);
    }

    .cv-history-open:hover svg {
        transform: translateX(2px);
    }
}

.cv-history-item strong {
    overflow: hidden;
    flex: 1;
    min-width: 0;
    font-size: var(--fs-16);
    font-weight: var(--fw-medium);
    line-height: var(--lh-16);
    letter-spacing: var(--ls-16);
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* справа: дата, за ней «· режим · источник» */
.cv-history-item time,
.cv-history-item span {
    color: var(--text-muted);
    font-size: var(--fs-14);
    line-height: var(--lh-14);
    letter-spacing: var(--ls-14);
    white-space: nowrap;
}

.cv-history-item time {
    order: 1;
}

.cv-history-item span {
    order: 2;
    margin-left: -8px;
}

.cv-history-score-text {
    display: grid;
    flex: none;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 10px;
    font-size: var(--fs-16);
    font-style: normal;
    font-weight: var(--fw-semibold);
    font-variant-numeric: tabular-nums;
}

.cv-history-item .cv-history-score-text--good {
    background: rgba(58, 194, 113, 0.14);
    color: #3AC271;
}

.cv-history-item .cv-history-score-text--medium {
    background: rgba(240, 158, 34, 0.14);
    color: #F09E22;
}

.cv-history-item .cv-history-score-text--bad {
    background: rgba(241, 55, 55, 0.12);
    color: #F13737;
}

@media (max-width: 520px) {
    .cv-history-item {
        display: grid;
        grid-template-columns: 36px auto minmax(0, 1fr);
        column-gap: 12px;
    }

    .cv-history-score-text {
        grid-row: 1 / 3;
    }

    .cv-history-item strong {
        grid-column: 2 / 4;
    }

    .cv-history-item span {
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
