.file-tree {
  background: rgba(255, 250, 239, .68);
  border: 1px solid rgba(104, 69, 22, .13);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  max-height: 380px;
  overflow-y: auto;
  font-size: 0.9rem;
  box-shadow: 0 12px 32px rgba(86, 57, 17, .06);
  backdrop-filter: blur(12px);
}

.tree-folder {
  margin-bottom: 2px;
}

.tree-folder-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  color: var(--ink);
  font-weight: 700;
}

.tree-folder-header:hover {
  background: rgba(255,255,255,.52);
}

.tree-folder-arrow {
  font-size: 0.75rem;
  color: var(--muted);
  width: 12px;
}

.tree-folder-name {
  color: var(--ink);
}

.tree-folder-children {
  padding-left: 18px;
  border-left: 1px solid var(--line);
  margin-left: 6px;
}

.tree-file {
  margin-bottom: 1px;
}

.tree-file-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--muted);
}

.tree-file-label:hover {
  background: rgba(255,255,255,.45);
  color: var(--ink);
}

.tree-file-label input[type="checkbox"] {
  accent-color: var(--blue);
  width: 14px;
  height: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.tree-file-name {
  font-size: 0.875rem;
}

.tree-loading,
.tree-error,
.tree-empty {
  padding: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.tree-error {
  color: var(--red);
}
