.selected-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-block-end: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-inline-start: var(--space-1) solid var(--accent-primary);
  background: var(--surface-secondary);
}

.selected-file div { min-inline-size: 0; }
.selected-file strong, .selected-file span { display: block; overflow-wrap: anywhere; }
.selected-file strong { font-size: var(--text-small); }
.selected-file span { margin-block-start: var(--space-1); color: var(--text-secondary); font-size: var(--text-label); }

.attach-button {
  inline-size: 2.75rem;
  block-size: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  color: var(--text-primary);
  background: transparent;
  cursor: pointer;
  transition: transform var(--motion-micro) ease-out, background-color var(--motion-micro) ease-out;
}

.attach-button:hover { color: var(--accent-primary); background: var(--surface-secondary); }
.attach-button:active { transform: scale(0.97); }
.attach-button svg {
  inline-size: 1.25rem;
  block-size: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 47.999rem) {
  .selected-file { align-items: flex-start; }
}
