.file-list-header .flh-check {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  line-height: 0;
}

.file-card .file-checkbox {
  position: relative;
}

.file-card .file-checkbox:focus-visible,
.file-list-header .select-all-cb:focus-visible {
  outline: 2px solid var(--c-text2);
  outline-offset: 2px;
}

.file-card .file-checkbox.selection-pointer-focus:focus,
.file-list-header .select-all-cb.selection-pointer-focus:focus {
  outline: none;
  box-shadow: none;
}

.file-list-header .select-all-cb:checked::after,
.file-card.selected .file-checkbox::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  right: auto;
  width: 12px;
  height: 12px;
  border: 0;
  background: #fff;
  transform: translate(-50%, -50%);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 8 3 3 7-7' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.file-list-header .select-all-cb:indeterminate::after {
  content: "";
  left: 50%;
  top: 50%;
  right: auto;
  width: 8px;
  height: 2px;
  border: 0;
  background: #fff;
  mask: none;
  transform: translate(-50%, -50%);
}
