.preview-file-card {
  width: 100%;
  margin-top: 16px;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-solid);
  color: var(--text);
  text-align: start;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(24,31,43,.055);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease, background .12s ease;
}

.preview-file-card:active {
  transform: scale(.99);
  border-color: rgba(var(--accent-rgb), .34);
  background: color-mix(in srgb, var(--accent-soft) 24%, var(--surface-solid));
}

.preview-file-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--accent-soft);
  color: var(--accent);
}

.preview-file-icon svg {
  width: 30px;
  height: 30px;
  display: block;
}

.preview-file-sheet,
.preview-file-fold {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.preview-file-icon text {
  fill: currentColor;
  font-size: 6px;
  font-weight: 900;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.preview-file-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.preview-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 800;
  direction: ltr;
  text-align: right;
}

.preview-file-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.preview-file-open {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 66%, transparent);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.preview-file-card:focus-visible {
  outline: 3px solid rgba(var(--accent-rgb), .24);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .preview-file-card {
    margin-top: 13px;
    padding: 12px;
    grid-template-columns: 48px minmax(0, 1fr) 26px;
    gap: 10px;
    border-radius: 17px;
  }

  .preview-file-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .preview-file-icon svg {
    width: 28px;
    height: 28px;
  }

  .preview-file-name {
    font-size: 14px;
  }

  .preview-file-meta {
    font-size: 11px;
  }
}
