.file-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 42px;
  padding: 4px 9px 4px 4px;
  border: 1px solid var(--rk-line, var(--line));
  border-radius: 8px;
  background: var(--rk-bg, #0d1018);
}

.file-picker input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-width: 0;
  opacity: 0;
  cursor: pointer;
}

.file-picker:has(input:focus-visible) {
  outline: 2px solid #b99aff;
  outline-offset: 2px;
}

.file-picker:has(input:disabled) {
  opacity: .6;
}

.file-picker-button {
  flex: none;
  padding: 6px 9px;
  border-radius: 5px;
  background: #32244d;
  color: #f0e5ff;
  font-size: .83rem;
  font-weight: 650;
}

.file-picker:hover:not(:has(input:disabled)) .file-picker-button {
  background: #483068;
}

.file-picker-hint,
.file-picker-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .8rem;
}

.file-picker-hint {
  color: var(--rk-muted, var(--muted));
}
