.audit-controls {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: end;
    gap: 12px;
    margin: 24px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
}

.audit-controls label {
    margin: 0;
}

.audit-controls .secondary {
    min-height: 44px;
}

.audit-error {
    margin: 16px;
}

.audit-list {
    display: grid;
    gap: 13px;
    padding: 18px;
}

.audit-card {
    padding: 18px;
    border: 1px solid #e0e7ef;
    border-radius: 16px;
    background: white;
}

.audit-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.audit-card-header h3 {
    margin: 0;
    color: var(--text);
    font-size: 17px;
}

.audit-card-header p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.audit-card-header time {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 12px;
}

.audit-change {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.audit-value {
    padding: 13px;
    border-radius: 12px;
}

.audit-value.old {
    background: #f4f6f8;
}

.audit-value.new {
    border: 1px solid #c9dced;
    background: #eef6fd;
}

.audit-value span,
.audit-reason span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 11px;
}

.audit-value strong {
    color: #193a5c;
    font-size: 16px;
}

.audit-arrow {
    color: var(--accent);
    font-size: 22px;
    font-weight: 800;
}

.audit-reason {
    margin-top: 13px;
    padding: 12px 13px;
    border-radius: 11px;
    background: #fff9e8;
}

.audit-reason strong {
    color: #664c00;
    font-size: 13px;
}

.audit-author {
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
}

.audit-author strong {
    color: var(--text);
}

@media (min-width: 1000px) {
    .audit-list {
        grid-template-columns: repeat(
            auto-fill,
            minmax(420px, 1fr)
        );
    }
}

@media (max-width: 800px) {
    .audit-controls {
        grid-template-columns: 1fr;
        margin: 18px 0;
        padding: 14px;
    }

    .audit-controls .secondary {
        width: 100%;
    }

    .audit-list {
        padding: 12px;
    }

    .audit-card {
        padding: 15px;
    }

    .audit-card-header {
        display: block;
    }

    .audit-card-header time {
        display: block;
        margin-top: 8px;
    }

    .audit-change {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .audit-arrow {
        transform: rotate(90deg);
        justify-self: center;
    }
}
