.artifact-stack {
  min-width: 0;
  margin: 0 0 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line, rgba(232, 238, 244, 0.14));
}

.artifact-stack__header {
  margin: 0 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}

.artifact-stack__label {
  margin: 0;
  font-family: var(--mono, "Source Code Pro", ui-monospace, monospace);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dim, #5a9ab8);
}

.artifact-stack__footer {
  margin: 0;
  font-family: var(--mono, "Source Code Pro", ui-monospace, monospace);
  font-size: 0.72rem;
}

.artifact-stack__registry {
  color: var(--accent-dim, #5a9ab8);
  text-decoration: none;
}

.artifact-stack__registry:hover {
  color: var(--accent, #8ecae8);
  text-decoration: underline;
}

.artifact-stack__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.artifact-stack__item {
  margin: 0;
  flex: 0 0 auto;
  min-width: min(100%, 16rem);
  max-width: 22rem;
}

.artifact-stack__item--latest .artifact-stack__link {
  border-color: rgba(142, 202, 232, 0.4);
  background: rgba(142, 202, 232, 0.07);
}

.artifact-stack__link {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(232, 238, 244, 0.1);
  background: rgba(12, 16, 24, 0.45);
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.artifact-stack__frame {
  display: block;
  width: 2.75rem;
  flex: 0 0 2.75rem;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 2px;
  background: var(--panel, #0c1018);
}

.artifact-stack__frame--empty {
  background: repeating-linear-gradient(
    -45deg,
    rgba(232, 238, 244, 0.04),
    rgba(232, 238, 244, 0.04) 4px,
    rgba(12, 16, 24, 0.8) 4px,
    rgba(12, 16, 24, 0.8) 8px
  );
}

.artifact-stack__cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.artifact-stack__text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1 1 auto;
}

.artifact-stack__link:hover {
  border-color: rgba(142, 202, 232, 0.45);
  background: rgba(12, 16, 24, 0.7);
}

.artifact-stack__link:focus-visible {
  outline: 2px solid var(--accent, #8ecae8);
  outline-offset: 2px;
}

.artifact-stack__type {
  font-family: var(--mono, "Source Code Pro", ui-monospace, monospace);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted, #7a8a9a);
}

.artifact-stack__title {
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink, #e8eef4);
}

.artifact-stack__variant {
  font-family: var(--mono, "Source Code Pro", ui-monospace, monospace);
  font-size: 0.65rem;
  color: var(--accent-dim, #5a9ab8);
}

.artifact-stack__date {
  font-family: var(--mono, "Source Code Pro", ui-monospace, monospace);
  font-size: 0.62rem;
  color: var(--muted, #7a8a9a);
}
