/* Free stock photo description generator (/stock-photo-description-generator/);
   the workspace comes from playground.css, the content below it from keyword_generator.css */
.dg-heading { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dg-heading p { margin: 0; font-size: 13px; font-weight: 500; color: var(--pg-muted); }
@media (max-width: 760px) { .dg-heading p { display: none; } }
.dg-optional { text-transform: none; letter-spacing: 0; font-weight: 500; }
.pg textarea.dg-note { min-height: 96px; }
.dg-type-note { margin: 0; font-size: 12px; color: var(--pg-muted); line-height: 1.45; }
.dg-type-note.is-editorial { color: #3730a3; }
.dg-offline { padding: 24px; font-size: 15px; }

/* Selected photos: up to 5 thumbnails plus an "add" tile */
.dg-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; border-radius: 10px; }
.dg-thumbs.is-over { outline: 2px dashed var(--pg-accent); outline-offset: 3px; }
.dg-thumb-item { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--pg-bg); border: 1px solid var(--pg-border); }
.dg-thumb-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dg-thumb-item.is-running img { opacity: .45; }
.dg-thumb-item.is-failed { border-color: #fca5a5; }
.dg-thumb-remove {
  position: absolute; top: 3px; right: 3px;
  width: 18px; height: 18px; padding: 0; border: none; border-radius: 50%;
  background: rgba(17, 24, 39, .65); color: #fff; font-size: 13px; line-height: 18px; cursor: pointer;
}
.dg-thumb-remove:hover { background: #b91c1c; }
.dg-thumb-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.dg-thumb-status .pg-spinner { border-color: rgba(230, 126, 92, .25); border-top-color: var(--pg-accent); }
.dg-thumb-fail { position: absolute; left: 3px; bottom: 3px; width: 18px; height: 18px; border-radius: 50%; background: #dc2626; color: #fff; font-size: 12px; font-weight: 700; line-height: 18px; text-align: center; }
.dg-thumb-add {
  aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 2px dashed var(--pg-border); border-radius: 8px; background: var(--pg-bg);
  color: var(--pg-muted); font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; transition: border-color .2s, color .2s;
}
.dg-thumb-add i { font-size: 14px; }
.dg-thumb-add:hover { border-color: var(--pg-accent); color: var(--pg-accent-hover); }

/* Agency badges in the empty state */
.pg-model-badge.dg-badge-adobe { color: #991b1b; background: #fef2f2; border-color: #fecaca; }
.pg-model-badge.dg-badge-shutter { color: #9a3412; background: #fff7ed; border-color: #fed7aa; }
.pg-model-badge.dg-badge-istock { color: #1e40af; background: #eff6ff; border-color: #bfdbfe; }

/* Result card */
.dg-thumb { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; flex: none; background: var(--pg-bg); }
.pg textarea.dg-edit {
  display: block;
  min-height: 0;
  flex: none;
  resize: none;
  overflow: hidden;
  padding: 4px 6px;
  margin: 0 -6px;
  width: calc(100% + 12px);
  border-color: transparent;
  background: transparent;
  font-size: 14px;
  line-height: 1.5;
}
.pg textarea.dg-edit:hover { border-color: var(--pg-border); }
.pg textarea.dg-edit:focus { background: var(--pg-surface); }
.pg textarea.dg-edit.pg-title-value { font-weight: 600; font-size: 15px; }

.dg-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.dg-pill { font-size: 11px; font-weight: 600; border: 1px solid; border-radius: 999px; padding: 0 8px; line-height: 1.7; }
.dg-pill.is-ok { color: #065f46; background: #ecfdf5; border-color: #a7f3d0; }
.dg-pill.is-warn { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.dg-pill.is-error { color: #991b1b; background: #fef2f2; border-color: #fecaca; }

.pg-chip.is-kw.dg-top { border-color: var(--pg-accent); }
.pg-chip.is-kw.dg-top .pg-idx { color: var(--pg-accent-hover); font-weight: 700; }
.pg-chip.is-kw.dg-rest { background: var(--pg-bg); border-color: var(--pg-border); color: var(--pg-text); }

.dg-csv { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--pg-border); }
.dg-csv-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.dg-csv-note { margin: 6px 0 0; font-size: 12px; color: var(--pg-muted); line-height: 1.45; }

/* SEO content below the workspace */
.dg-below { padding-top: 1rem; }
