/* ── File explorer ── */
.fm-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    background: var(--bg-input);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
}
.fm-crumbs {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    min-width: 120px;
    overflow-x: auto;
    white-space: nowrap;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 12px;
    scrollbar-width: thin;
}
.fm-crumb {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    font: inherit;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fm-crumb:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.fm-crumb.muted { color: var(--text-muted); cursor: default; }
.fm-crumb-sep { color: var(--text-muted); }
.fm-path-input {
    flex: 1;
    min-width: 100px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: Consolas, 'Courier New', monospace;
    font-size: 13px;
}
.fm-filter {
    width: 120px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    padding: 6px 8px;
    font-size: 12px;
    outline: none;
}
.fm-filter:focus { border-color: var(--border-focus); }
.fm-dropzone {
    position: relative;
    border: 2px dashed transparent;
    border-radius: var(--radius-sm);
    transition: border-color 0.15s, background 0.15s;
}
.fm-dropoverlay {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(34, 211, 238, 0.08);
    border-radius: var(--radius-sm);
    z-index: 1;
    pointer-events: none;
    text-align: center;
    padding: 32px 16px;
    font-size: 14px;
    color: #22d3ee;
    font-weight: 600;
}
.fm-list-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px 160px 72px;
    gap: 8px;
    padding: 6px 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}
.fm-list {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 13px;
    min-height: 80px;
    max-height: 420px;
    overflow-y: auto;
}
.fm-row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 90px 160px 72px;
    gap: 8px;
    align-items: center;
    padding: 6px 12px;
    border-bottom: 1px solid rgba(36, 48, 77, 0.65);
    min-height: 36px;
}
.fm-row:hover { background: var(--bg-card-hover); }
.fm-name { min-width: 0; overflow: hidden; }
.fm-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-primary);
    font: inherit;
    cursor: pointer;
    padding: 0;
    width: 100%;
    text-align: left;
    min-width: 0;
}
.fm-link:hover .fm-label { color: var(--accent); text-decoration: underline; }
.fm-check { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.fm-check input { width: 16px; height: 16px; cursor: pointer; }
.fm-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-dir .fm-link { color: var(--info); }
.fm-size, .fm-mod {
    color: var(--text-muted);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fm-actions { display: flex; justify-content: flex-end; }
.fm-empty {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
}
.fm-error { color: var(--danger); }
.fm-select .fm-link { color: var(--accent); font-weight: 600; }
.fb-list .fm-list-head { display: none; }
.fb-list .fm-row { grid-template-columns: minmax(0, 1fr) 80px; }
.fb-list .fm-mod, .fb-list .fm-actions { display: none; }

