dialog.dialog-small {
  --duration: 200ms;

  transition: 
    opacity    var(--duration) ease-in-out,
    scale     var(--duration) ease-in-out,
    display   var(--duration) ease-in-out allow-discrete;

  overflow-y: auto; 
  position: fixed; 
  
  border-radius: 0.5rem; 
  width: auto;
  max-width: none; 
  max-height: 100vh;
  background-color: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  left: 0;
  border-radius: 0.5rem; 
  max-width: min(42rem, calc(100vw - 2rem));
  height: max-content;
    
  &[open] {
    /* Pre-Entry State */
    @starting-style {
      opacity: 0;
      scale: 0.90;
    }
  }
  /* Exiting State */
  &:not([open]) {
    opacity: 0;
    scale: 0.90;
  }

  &::backdrop {
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 300ms ease;
  }
  &[open]::backdrop {
    background-color: rgba(0, 0, 0, 0.2);
    @starting-style {
      background-color: rgba(0, 0, 0, 0);
    }
  }
}
