/* ── Files App ── */
.files-wrap { height: 100%; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.files-toolbar { padding: 5px 8px; background: rgba(255,255,255,0.04); border-bottom: 1px solid rgba(255,255,255,0.07); display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.files-toolbar-spacer { flex: 1; }
.files-view-btn { opacity: 0.4; }
.files-view-btn.active { opacity: 1; }
.files-path { flex: 1; background: rgba(0,0,0,0.22); border-radius: 6px; padding: 4px 10px; font-size: 11px; color: rgba(255,255,255,0.4); display: flex; align-items: center; gap: 4px; overflow: hidden; min-width: 0; }
.files-crumb { cursor: pointer; white-space: nowrap; transition: color 0.12s; flex-shrink: 0; }
.files-crumb:hover { color: rgba(255,255,255,0.85); }
.files-crumb-active { color: rgba(255,255,255,0.8); cursor: default; }
.files-body { flex: 1; display: flex; overflow: hidden; min-height: 0; }
.files-sidebar { width: 118px; flex-shrink: 0; background: rgba(0,0,0,0.18); border-right: 1px solid rgba(255,255,255,0.06); padding: 8px 6px; overflow-y: auto; }
.files-sidebar-label { font-size: 9px; font-weight: 600; letter-spacing: 0.6px; color: rgba(255,255,255,0.28); padding: 4px 8px 3px; text-transform: uppercase; }
.files-sidebar-item { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 6px; font-size: 11px; color: rgba(255,255,255,0.65); cursor: pointer; transition: background var(--transition-dur), color var(--transition-dur); }
.files-sidebar-item i { font-size: 12px; flex-shrink: 0; opacity: 0.7; }
.files-sidebar-item:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.9); }
.files-main { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.files-list { flex: 1; overflow-y: auto; padding: 4px; user-select: none; }
.file-row { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 6px; cursor: pointer; transition: background var(--transition-dur); }
.file-row:hover { background: rgba(255,255,255,0.07); }
.file-row-icon { width: 26px; height: 26px; border-radius: 6px; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.file-row-icon i { font-size: 14px; }
.file-row-name { flex: 1; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row-type { font-size: 10px; color: rgba(255,255,255,0.28); flex-shrink:0; width:42px; text-align:right; }
.file-row-meta { font-size: 10px; color: rgba(255,255,255,0.28); flex-shrink: 0; width: 52px; text-align: right; }
.files-grid-view { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 4px; padding: 8px; }
.file-grid-item { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 4px 6px; border-radius: 8px; cursor: pointer; transition: background var(--transition-dur); text-align: center; }
.file-grid-item:hover { background: rgba(255,255,255,0.08); }
.file-grid-icon { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; }
.file-grid-icon i { font-size: 20px; }
.file-grid-name { font-size: 10px; color: rgba(255,255,255,0.75); word-break: break-word; line-height: 1.3; max-width: 100%; }
.files-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 8px; color: rgba(255,255,255,0.2); font-size: 12px; }
.files-empty i { font-size: 28px; }
.files-status-bar { padding: 4px 12px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 10px; color: rgba(255,255,255,0.22); flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.files-preview {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02)), rgba(8,8,24,0.72);
	backdrop-filter: blur(18px) saturate(150%);
	-webkit-backdrop-filter: blur(18px) saturate(150%);
	display: flex;
	flex-direction: column;
	z-index: 10;
	animation: popupIn 0.15s ease;
}
.files-preview-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 12px; color: rgba(255,255,255,0.7); flex-shrink: 0; }
.files-preview-content { flex: 1; overflow: auto; padding: 14px 16px; font-family: 'Courier New', monospace; font-size: 12px; line-height: 1.75; color: rgba(255,255,255,0.75); white-space: pre-wrap; word-break: break-word; margin: 0; user-select: text; }