/* Compact, consistent previews; full resolution remains available from each link. */
#team-konten {
  --content-preview-width: 120px;
  --content-preview-height: 150px;
}

#team-konten .copy-slide-gallery > .copy-slide-grid:not(.copy-options-grid),
#team-konten .konten-slides,
#team-konten .origami-scene-grid,
#team-konten .natasya-studies-grid {
  grid-template-columns: repeat(auto-fill, minmax(0, var(--content-preview-width)));
  justify-content: start;
  gap: 10px;
}

#team-konten .copy-slide-gallery > .copy-options-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  justify-content: start;
}

#team-konten .copy-slide-gallery > .copy-slide-grid.copy-single-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

#team-konten .copy-compare-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#team-konten .copy-slide-grid img,
#team-konten .konten-slides img,
#team-konten .origami-scene-grid img,
#team-konten .studio-job-preview > img {
  display: block;
  width: 100%;
  height: var(--content-preview-height);
  max-height: var(--content-preview-height);
  aspect-ratio: auto;
  object-fit: contain;
  box-sizing: border-box;
}

#team-konten .copy-slide-grid img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 4 / 5;
  margin-inline: auto;
}

#team-konten .copy-compare-pair img { max-width: 280px; }

#team-konten .studio-job-preview > img {
  width: var(--content-preview-width);
  padding: 4px;
}

#team-konten .copy-single-grid > a,
#team-konten .konten-slides > a,
#team-konten .origami-scene-grid > a {
  min-width: 0;
}

#team-konten .copy-single-grid > a { max-width: 280px; }
#team-konten .konten-slides > a,
#team-konten .origami-scene-grid > a { max-width: 150px; }

#team-konten .copy-job-version > summary > span:first-child { display: grid; gap: 2px; min-width: 0; }
#team-konten .copy-job-version > summary > span:first-child small { overflow-wrap: anywhere; }
#team-konten .copy-revision-form { margin: 12px 0 16px; padding: 12px; border: 1px solid var(--workspace-soft, #dce7e5); border-radius: 12px; }
#team-konten .copy-revision-hint { margin: 0; color: #607475; font-size: .84rem; }
#team-konten .copy-submission-history { margin: 0 0 18px; padding: 14px; border: 1px solid var(--workspace-soft, #dce7e5); border-radius: 14px; background: var(--workspace-card, #fff); }
#team-konten .copy-submission-history > summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; }
#team-konten .copy-submission-history > summary small { color: #607475; }
#team-konten .copy-submission-history > p { margin: 10px 0; }
#team-konten .copy-submission-history ol { list-style: none; padding: 0; margin: 0; max-height: 460px; overflow: auto; }
#team-konten .copy-submission-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border-top: 1px solid var(--workspace-soft, #dce7e5); padding: 12px 0; }
#team-konten .copy-submission-row > div { display: grid; gap: 3px; min-width: 0; }
#team-konten .copy-submission-row small { color: #607475; overflow-wrap: anywhere; }
#team-konten .copy-submission-row p { margin: 3px 0; overflow-wrap: anywhere; }
#team-konten .copy-submission-row code { user-select: all; }
#team-konten .copy-submission-row .studio-status { flex: 0 0 auto; }
@media (max-width: 700px) { #team-konten .copy-submission-row, #team-konten .copy-submission-history > summary { flex-direction: column; } }

.openwa-workspace { margin-top: 18px; display: grid; gap: 10px; }
.openwa-workspace h4 { margin: 8px 0 0; }
.openwa-workspace form { display: grid; gap: 9px; }
.openwa-workspace textarea, .openwa-workspace input[type="datetime-local"] { width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid #d7ccc8; border-radius: 9px; font: inherit; }
.openwa-contacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 7px; }
.openwa-contacts label { display: flex; align-items: center; gap: 7px; padding: 9px; border: 1px solid #d7ccc8; border-radius: 9px; }
.openwa-contacts label span { display: grid; flex: 1; }
.openwa-contacts label small { color: #6d686d; }
.openwa-contacts label a { font-size: .82rem; }
.openwa-outbox-item { border-top: 1px solid #d7ccc8; padding: 9px 0; }
.openwa-outbox-item summary { cursor: pointer; }
.openwa-outbox-item ul { margin: 7px 0; }

#team-konten .natasya-studies figure > a {
  width: 100%;
  height: var(--content-preview-height);
  aspect-ratio: auto;
}

#team-konten .natasya-story-item {
  grid-template-columns: 90px minmax(0, 1fr);
}
#team-konten .natasya-story-item img {
  width: 90px;
  height: var(--content-preview-height);
  aspect-ratio: auto;
  object-fit: contain;
}

#team-microdrama .drama-character-image {
  width: min(100%, 180px);
  max-height: 180px;
  object-fit: contain;
}

@media (max-width: 700px) {
  #team-konten .copy-slide-gallery > .copy-options-grid { grid-template-columns: minmax(0, 1fr); }
  #team-konten .copy-compare-pair { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
  #team-konten .natasya-story-item { grid-template-columns: 1fr; }
}

/* Keep the full-size preview and the PNG download as separate actions. */
#team-konten .copy-slide-option { display: grid; gap: 6px; min-width: 0; }
#team-konten .copy-slide-option .copy-slide-download { padding: 9px 12px; border: 1px solid var(--workspace-soft, #ffd0c2); border-radius: 8px; background: var(--workspace-card, #fff); color: var(--workspace-ink, #4a2740); text-align: center; font-weight: 800; text-decoration: none; }
#team-konten .copy-slide-option .copy-slide-download:hover { border-color: var(--workspace-accent, #e76559); }
