.history-card { background: var(--surface, rgba(255,255,255,.8)); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-lg, 0 18px 40px rgba(15,23,42,.08)); }
.history-card--compact { min-height: 320px; }
.files-list { margin-top: 0; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 320px); overflow: auto; padding-right: 4px; }
.file-group { display: flex; flex-direction: column; gap: 6px; }
.file-group-title { padding: 0 4px; font-size: 11px; text-transform: uppercase; color: #64748b; font-weight: 800; letter-spacing: .04em; }
.file-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border-radius: 12px; background: rgba(255,255,255,.82); border: 1px solid rgba(148,163,184,.16); }
.file-text { min-width: 0; flex: 1; }
.file-name { font-size: 13px; line-height: 1.35; font-weight: 700; word-break: break-word; color: var(--text-main); }
.file-subtitle, .file-meta, .placeholder { color: #64748b; font-size: 11px; }
.file-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.file-btn { min-width: 36px; min-height: 36px; border-radius: 12px; }
.archive-downloads { display: flex; gap: 6px; align-items: center; }
.file-chip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .01em;
    text-transform: lowercase;
    text-decoration: none;
    transition: background-color .18s ease, transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.file-chip-btn:first-child {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.14) 0%, rgba(99, 102, 241, 0.2) 100%);
    border: 1px solid rgba(79, 70, 229, 0.18);
    color: #4338ca;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.08);
}

.file-chip-btn:last-child {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.12) 0%, rgba(6, 182, 212, 0.18) 100%);
    border: 1px solid rgba(14, 165, 233, 0.18);
    color: #0f766e;
    box-shadow: 0 6px 16px rgba(6, 182, 212, 0.08);
}

.file-chip-btn:hover {
    transform: translateY(-1px);
}

.file-chip-btn:first-child:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2) 0%, rgba(99, 102, 241, 0.28) 100%);
    border-color: rgba(79, 70, 229, 0.28);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.12);
}

.file-chip-btn:last-child:hover {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18) 0%, rgba(6, 182, 212, 0.24) 100%);
    border-color: rgba(14, 165, 233, 0.28);
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.12);
}