.library-action-menu {
  position: absolute;
  top: 2.25rem;
  right: 0;
  z-index: 50;
  width: 13rem;
  overflow: hidden;
  border: 1px solid light-dark(color-mix(in srgb, #17171a 10%, transparent), rgb(255 255 255 / 0.1));
  border-radius: 0.75rem;
  background: light-dark(#eef0f4, #242426);
  padding: 0.375rem;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.5);
}
.library-action-menu.hidden,
.library-remove-overlay.hidden {
  display: none;
}
.library-action-menu button {
  width: 100%;
  cursor: pointer;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  padding: 0.625rem 0.75rem;
  color: light-dark(#b42318, #fca5a5);
  text-align: left;
  font-size: 0.875rem;
}
.library-action-menu button:hover {
  background: rgb(239 68 68 / 0.1);
  color: light-dark(#b42318, #fecaca);
}
.library-remove-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 0.75rem;
  background: rgb(0 0 0 / 0.7);
}
.library-remove-dialog {
  width: min(100%, 24rem);
  border: 1px solid light-dark(color-mix(in srgb, #17171a 10%, transparent), rgb(255 255 255 / 0.1));
  border-radius: 1rem;
  background: light-dark(#eef0f4, #242426);
  padding: 1.25rem;
  box-shadow: 0 24px 70px rgb(0 0 0 / 0.55);
}
.library-remove-dialog h2 {
  margin: 0;
  color: light-dark(#17171a, white);
  font-size: 1.125rem;
}
.library-remove-dialog p {
  margin: 0.5rem 0 0;
  color: light-dark(color-mix(in srgb, #17171a 55.00000000000001%, transparent), rgb(255 255 255 / 0.55));
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.library-remove-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.library-remove-dialog-actions button {
  height: 2.25rem;
  cursor: pointer;
  border-radius: 0.5rem;
  padding: 0 1rem;
  font-size: 0.875rem;
}
.library-remove-cancel {
  border: 1px solid light-dark(color-mix(in srgb, #17171a 10%, transparent), rgb(255 255 255 / 0.1));
  background: transparent;
  color: light-dark(color-mix(in srgb, #17171a 70%, transparent), rgb(255 255 255 / 0.7));
}
.library-remove-cancel:hover {
  background: light-dark(color-mix(in srgb, #17171a 10%, transparent), rgb(255 255 255 / 0.1));
  color: light-dark(#17171a, white);
}
.library-remove-confirm {
  border: 0;
  background: #dc2626;
  color: light-dark(#ffffff, #ffffff);
}
.library-remove-confirm:hover {
  background: #ef4444;
}
