.ladona-attachment {
  color-scheme: light dark;
  width: min(25rem, calc(100vw - 3rem));
  box-sizing: border-box;
  max-height: calc(100dvh - 2rem);
  padding: 1.5rem;
  border: 1px solid light-dark(#e4e0ea, #39353f);
  border-radius: 1.25rem;
  background: light-dark(#fcfaff, #201f25);
  color: light-dark(#26222e, #f5f1fa);
  box-shadow: 0 1.5rem 5rem #15101a42;
  font: 400 1rem/1.5 system-ui, sans-serif;
  scrollbar-width: none;
}
.ladona-attachment::backdrop { background: #16131c79; }
.ladona-attachment h2 { font: 650 1.3rem/1.3 system-ui, sans-serif; margin: 0 0 1rem; }
.attachment-drop {
  padding: 1.25rem; border: 1px dashed light-dark(#938aab, #7e7593);
  border-radius: .9rem; margin: 0; outline-offset: 2px;
}
.ladona-attachment ul { padding-inline-start: 1.25rem; overflow-wrap: anywhere; }
.ladona-attachment :empty { display: none; }
.ladona-attachment footer { display: flex; justify-content: end; gap: .6rem; margin-top: 1.3rem; }
.ladona-attachment button {
  border-radius: .7rem; border: 0; background: light-dark(#eeebf3, #37333f);
  color: inherit; padding: .65rem 1rem; font: inherit; cursor: pointer;
}
.ladona-attachment button:last-child { background: #6846dc; color: white; }
.ladona-attachment button:disabled { opacity: .5; cursor: default; }
@media (prefers-reduced-motion: no-preference) {
  .ladona-attachment[open] { animation: attachment-appear 150ms ease-out; }
  @keyframes attachment-appear { from { opacity: 0; transform: translateY(5px); } }
}
