/* ══ Tab Render AI (render.js) ══════════════════════════════════ */
.rd-steps {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.rd-step {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary, #9aa4b2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}
.rd-step.active {
  background: rgba(64, 145, 255, 0.18);
  color: var(--text-primary, #e8ecf3);
  border-color: rgba(64, 145, 255, 0.45);
}
.rd-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 1.3fr);
  gap: 18px;
  margin-top: 12px;
}
@media (max-width: 900px) {
  .rd-grid { grid-template-columns: 1fr; }
}
.rd-img {
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
}
.rd-result { max-height: 560px; }
.rd-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.rd-inthumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.rd-inthumb img { height: 78px; }
.rd-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.rd-thumb {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.rd-thumb:hover {
  transform: translateY(-2px);
  border-color: rgba(64, 145, 255, 0.5);
}
.rd-thumb img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
}
.rd-thumb-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 7px;
  font-size: 0.75em;
  color: var(--text-secondary, #9aa4b2);
  background: rgba(0, 0, 0, 0.25);
}
.rd-del {
  background: none;
  border: none;
  color: var(--text-secondary, #9aa4b2);
  cursor: pointer;
  font-size: 1em;
  padding: 0 2px;
}
.rd-del:hover { color: #ff6b6b; }
