.file-list-container {
  position: relative;
  overflow: hidden;
  display: flex;
  flex: 0; }
  .file-list-container.disabled {
    pointer-events: none;
    opacity: .5; }

.file-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  overflow: hidden scroll;
  padding: 1.25rem .45rem 1.25rem 0; }
  .file-list::-webkit-scrollbar {
    width: 4px;
    height: 4px; }
    .file-list::-webkit-scrollbar-track {
      background: none; }
    .file-list::-webkit-scrollbar-thumb {
      background: #555; }
      .file-list::-webkit-scrollbar-thumb:hover {
        background: #666; }
    .file-list::-webkit-scrollbar-corner {
      background: none; }
  .file-list-fade-top, .file-list-fade-bottom {
    position: absolute;
    width: calc(100% - .45rem);
    height: 1.75rem;
    max-height: 50%;
    pointer-events: none; }
  .file-list-fade-top {
    background: linear-gradient(#292929, #0000);
    top: 0; }
  .file-list-fade-bottom {
    background: linear-gradient(#0000, #292929);
    bottom: 0; }
  .file-list > div {
    display: flex;
    align-items: center;
    gap: .5rem; }
    .file-list > div:has(button:hover) > div {
      color: yellow;
      text-shadow: 0 0 .2em orange; }
    .file-list > div > div {
      flex: 1;
      display: flex;
      align-items: center;
      gap: .5rem;
      overflow: hidden; }
      .file-list > div > div > div:first-child {
        width: 1.25rem;
        aspect-ratio: 1;
        background-size: contain !important; }
        .file-list > div > div > div:first-child + div {
          flex: 1;
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          translate: 0 .05rem;
          line-height: 1.25; }
    .file-list > div > button {
      font-size: .9em;
      padding: .4em .55em;
      display: flex; }
      .file-list > div > button > i {
        flex: 0;
        margin: 0; }
