/* ── down.ipc.sh specific styles ────────────────────────── */

/* Search */
.search-wrap {
    margin-bottom: 1.5rem;
}

.search-wrap input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .6rem .85rem;
    color: var(--text);
    font-size: .875rem;
    outline: none;
    transition: border-color .2s;
}

.search-wrap input:focus { border-color: var(--accent); }
.search-wrap input::placeholder { color: var(--muted); }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 2rem 0;
    color: var(--muted);
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: .75rem;
}

.empty-state p {
    font-size: .9rem;
}

/* File list */
.file-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 4px;
}

.file-list::-webkit-scrollbar { width: 6px; }
.file-list::-webkit-scrollbar-track { background: transparent; }
.file-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.file-list::-webkit-scrollbar-thumb:hover { background: var(--muted); }

.file-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem .85rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: border-color .2s, background .2s;
}

.file-item:hover {
    border-color: var(--accent);
    background: rgba(99,102,241,.06);
}

.file-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 2rem;
    text-align: center;
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-size: .875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta {
    font-size: .75rem;
    color: var(--muted);
    display: flex;
    gap: .35rem;
    align-items: center;
    margin-top: 2px;
}

.badge {
    background: rgba(99,102,241,.15);
    color: var(--accent);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: .7rem;
}

.file-arrow {
    flex-shrink: 0;
    color: var(--muted);
    font-size: 1.2rem;
    transition: color .2s;
}

.file-item:hover .file-arrow { color: var(--accent); }

/* No results */
.no-results {
    text-align: center;
    padding: 1.5rem 0;
    color: var(--muted);
    font-size: .875rem;
}
