.file-manager {
  border: 1px solid var(--clr-border, #333);
  border-radius: 4px;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.85rem;
}

.fm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.fm-title {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--clr-dim);
}

.fm-breadcrumb {
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.fm-crumb {
  background: none;
  border: none;
  color: var(--neon-cyan, #0ff);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 0;
}

.fm-sep {
  opacity: 0.5;
  margin: 0 0.15rem;
}

.fm-filter {
  width: 100%;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
}

.fm-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #222;
}

.fm-list li.selected {
  background: rgba(0, 255, 255, 0.08);
}

.fm-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.25rem 0.4rem;
  background: none;
  border: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.fm-name {
  flex: 1;
  background: none;
  border: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.fm-size {
  font-size: 0.7rem;
  color: var(--clr-dim);
}

.fm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
  align-items: center;
}

.fm-upload-path {
  flex: 1;
  min-width: 120px;
  font-size: 0.75rem;
}

.fm-preview {
  margin-top: 0.5rem;
  max-height: 120px;
  overflow: auto;
  font-size: 0.7rem;
  background: #111;
  padding: 0.4rem;
}

.fm-err {
  color: #f66;
  font-size: 0.8rem;
}

.fm-offline {
  color: var(--clr-dim);
  font-size: 0.8rem;
}
