.asset-tile {
  position: relative;
  display: block;
}

.asset-tile--selected {
  outline: 2px solid var(--brand-primary, #1e8a6e);
  outline-offset: 2px;
}

.asset-tile__select {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
}

.asset-tile__surface {
  all: unset;
  display: grid;
  gap: 8px;
  width: 100%;
  cursor: pointer;
  box-sizing: border-box;

  &:focus-visible {
    outline: 2px solid var(--brand-primary, #1e8a6e);
    outline-offset: 3px;
    border-radius: var(--radius-sm, 8px);
  }
}

.asset-tile__preview {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm, 8px);
  background: var(--surface-muted, #eef2f0);
}

.asset-tile__preview--file {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xs, 0.75rem);
  color: var(--text-secondary, #5f6e6a);
  text-align: center;
  padding: 8px;
}

.asset-tile__meta {
  display: grid;
  gap: 4px;
}

.asset-tile__filename {
  font-size: var(--font-size-sm, 0.8125rem);
  font-weight: var(--font-weight-bold, 700);
  color: var(--text-primary, #1e3c38);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-tile__sub {
  font-size: var(--font-size-xs, 0.75rem);
  color: var(--text-tertiary, #9aa6a2);
}

.asset-tile__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.asset-tile__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.asset-tile--list {
  .asset-tile__surface {
    grid-template-columns: 72px 1fr;
    align-items: center;
  }

  .asset-tile__preview {
    height: 56px;
  }
}
