.files-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.files-search { position: relative; margin-bottom: var(--space-4); }
.files-search input {
    width: 100%;
    height: var(--control-height);
    padding-inline: var(--space-4);
    border: 1.5px solid var(--outline-variant);
    border-radius: var(--radius-md);
    background: var(--surface-container-lowest);
    font-family: var(--font-urdu);
    font-size: var(--text-md);
}

.files-filter {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    padding-block: var(--space-2);
    margin-bottom: var(--space-4);
    scrollbar-width: none;
}
.files-filter::-webkit-scrollbar { display: none; }

.files-filter__chip {
    border: none;
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: var(--text-sm);
    white-space: nowrap;
    cursor: pointer;
}
.files-filter__chip.active { background: var(--primary); color: #fff; }

.files-list[hidden] { display: none; }
.files-list { display: flex; flex-direction: column; gap: var(--space-3); }

.file-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-5);
}
.file-row__main { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.file-row__name { font-weight: var(--font-weight-semibold); }
.file-row__meta { font-size: var(--text-xs); color: var(--text-light); }

@media (max-width: 640px) {
    .file-row { flex-direction: column; align-items: flex-start; }
}
