.file-button,
.clear-files {
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--text);
  padding: 0 12px;
  font-weight: 650;
}

.file-button:hover,
.clear-files:hover {
  border-color: var(--accent);
}

.file-tray {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
  width: 100%;
  padding: 8px;
  border-top: 1px solid var(--border);
}

.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.file-pill {
  max-width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  background: #171615;
  font-size: 13px;
}

.file-pill.unsupported {
  color: var(--danger);
}

.file-preview,
.file-icon {
  width: 42px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--panel-soft);
}

.file-preview {
  display: block;
  object-fit: cover;
}

.file-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.file-details {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.file-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.file-meta {
  color: var(--muted);
  font-size: 12px;
}

.file-remove {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.file-remove:hover,
.file-remove:focus-visible {
  border-color: var(--danger);
  color: var(--danger);
}
