/* Live texture cards. Kept in a separate sheet so the renderer/paper theme
   cannot accidentally change the checkerboard or preview hit target. */
.pipeline-resource {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.pipeline-resource-copy {
  min-width: 0;
}

.pipeline-thumbnail {
  position: relative;
  display: grid;
  width: 72px;
  height: 54px;
  min-width: 72px;
  padding: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid #3d5944;
  border-radius: 3px;
  color: #91a896;
  background-color: #122018;
  background-image:
    linear-gradient(45deg, #263a2b 25%, transparent 25%),
    linear-gradient(-45deg, #263a2b 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #263a2b 75%),
    linear-gradient(-45deg, transparent 75%, #263a2b 75%);
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  background-size: 12px 12px;
  cursor: zoom-in;
}

.pipeline-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
}

.pipeline-thumbnail-placeholder {
  padding: 3px;
  color: #718a7a;
  font-size: 8px;
  line-height: 1.25;
  text-align: center;
}

.pipeline-thumbnail:disabled {
  cursor: not-allowed;
  opacity: .78;
}

.pipeline-thumbnail:not(:disabled):hover {
  border-color: #a7c681;
  box-shadow: 0 0 0 1px #6f945d;
}

.pipeline-thumbnail:focus-visible {
  outline: 2px solid #d0e49e;
  outline-offset: 2px;
}

.pipeline-preview-dialog {
  width: min(1024px, 92vw);
  max-width: 1024px;
  max-height: 92vh;
  padding: 22px;
  color: #dce9d7;
  background: #111c16;
  border: 1px solid #60785d;
  border-radius: 8px;
  box-shadow: 0 24px 80px #050b07e8;
}

.pipeline-preview-dialog::backdrop {
  background: #050b08d9;
}

.pipeline-preview-close {
  float: right;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #4e684f;
  border-radius: 4px;
  color: #c8d9c2;
  background: #1d3023;
  font-size: 20px;
  line-height: 24px;
}

.pipeline-preview-title {
  margin: 0 42px 10px 0;
  color: #eef5e9;
  font-size: 16px;
  font-weight: 500;
}

.pipeline-preview-image {
  display: block;
  width: 100%;
  max-height: 70vh;
  min-height: 96px;
  object-fit: contain;
  image-rendering: auto;
  background-color: #122018;
  background-image:
    linear-gradient(45deg, #263a2b 25%, transparent 25%),
    linear-gradient(-45deg, #263a2b 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #263a2b 75%),
    linear-gradient(-45deg, transparent 75%, #263a2b 75%);
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-size: 24px 24px;
}

.pipeline-preview-meta,
.pipeline-preview-status {
  margin: 10px 0 0;
  color: #91a896;
  font-size: 10px;
  line-height: 1.5;
}

.pipeline-preview-status {
  color: #c0d594;
}

@media (max-width: 600px) {
  .pipeline-resource {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .pipeline-thumbnail {
    width: 64px;
    min-width: 64px;
    height: 48px;
  }

  .pipeline-preview-dialog {
    width: 94vw;
    padding: 14px;
  }
}
