.rdg-v1 {
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;
  --surface: #ffffff;
  --border: #e5e7eb;
  --border-strong: #cbd5e1;
  --border-subtle: #f1f5f9;

  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-faint: #94a3b8;

  --primary: #111827;
  --primary-hover: #1e293b;
  --accent: #4f46e5;
  --accent-soft: #eef2ff;
  --accent-border: #c7d2fe;

  --success: #059669;
  --success-soft: #ecfdf5;
  --success-border: #a7f3d0;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px -4px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 1px 3px rgba(15, 23, 42, 0.04), 0 16px 40px -16px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 2px 6px rgba(15, 23, 42, 0.04), 0 24px 56px -20px rgba(15, 23, 42, 0.14);

  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 1200px;
}

.rdg-v1 *, .rdg-v1 *::before, .rdg-v1 *::after {
  box-sizing: border-box;
}


.rdg-v1 {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
}

.rdg-v1 img {
  display: block;
  max-width: 100%;
}

.rdg-v1 button, .rdg-v1 input, .rdg-v1 select {
  font: inherit;
  color: inherit;
}

.rdg-v1 a {
  color: inherit;
  text-decoration: none;
}

.rdg-v1 :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.rdg-v1 .wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.rdg-v1 .site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.rdg-v1 .header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.rdg-v1 .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.025em;
  color: var(--text);
}

.rdg-v1 .brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
}

.rdg-v1 .brand span {
  font-weight: 500;
  color: var(--text-muted);
}

.rdg-v1 .nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rdg-v1 .nav-links a {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 150ms ease, color 150ms ease;
}

.rdg-v1 .nav-links a:hover {
  background: var(--bg-subtle);
  color: var(--text);
}

.rdg-v1 .header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rdg-v1 .quota-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.rdg-v1 .quota-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.rdg-v1 .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, transform 120ms ease, box-shadow 150ms ease;
}

.rdg-v1 .btn-primary {
  background: var(--primary);
  color: #ffffff;
  padding: 9px 16px;
  box-shadow: var(--shadow-xs);
}

.rdg-v1 .btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-sm);
}

.rdg-v1 .btn-primary:active {
  transform: translateY(0.5px);
}

.rdg-v1 .btn-secondary {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border);
  padding: 8px 14px;
  box-shadow: var(--shadow-xs);
}

.rdg-v1 .btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
}

/* Hero + Studio */
.rdg-v1 .hero-section {
  position: relative;
  padding: 34px 0 64px;
  background:
    radial-gradient(60% 38% at 50% 0%, rgba(79, 70, 229, 0.045) 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
}

.rdg-v1 .hero-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}

.rdg-v1 .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.rdg-v1 .hero-badge svg {
  color: var(--accent);
}

.rdg-v1 .hero-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text);
}

.rdg-v1 .hero-subtitle {
  margin: 0 auto;
  max-width: 600px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Studio Workbench: Left Controls (38%) + Right Visual Canvas (62%) */
.rdg-v1 .studio-shell {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
  overflow: hidden;
}

/* Left Panel */
.rdg-v1 .studio-controls {
  padding: 22px 22px 20px;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #ffffff;
}

.rdg-v1 .control-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rdg-v1 .control-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rdg-v1 .control-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rdg-v1 .step-badge {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--bg-muted);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rdg-v1 .control-hint {
  font-size: 11.5px;
  color: var(--text-faint);
}

/* Upload Zone */
.rdg-v1 .upload-zone {
  position: relative;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.upload-zone:hover,
.rdg-v1 .upload-zone.is-dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.rdg-v1 .upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.rdg-v1 .upload-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.rdg-v1 .upload-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rdg-v1 .upload-copy {
  min-width: 0;
  flex: 1;
}

.rdg-v1 .upload-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rdg-v1 .upload-sub {
  margin: 1px 0 0;
  font-size: 11.5px;
  color: var(--text-muted);
}

.rdg-v1 .upload-action-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: #ffffff;
  background: #08745f;
  border: 1px solid #08745f;
  padding: 4px 9px;
  border-radius: 7px;
  flex-shrink: 0;
}

.rdg-v1 .sample-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.rdg-v1 .sample-strip-label {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-right: 2px;
}

.rdg-v1 .sample-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 140ms ease;
}

.rdg-v1 .sample-chip img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.rdg-v1 .sample-chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.rdg-v1 .sample-chip.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

/* Room Pills */
.rdg-v1 .room-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rdg-v1 .room-pill {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 140ms ease;
}

.rdg-v1 .room-pill:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--bg-subtle);
}

.rdg-v1 .room-pill.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Style Grid */
.rdg-v1 .style-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.rdg-v1 .style-tile {
  position: relative;
  padding: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: border-color 140ms ease, transform 120ms ease, box-shadow 140ms ease;
}

.rdg-v1 .style-tile:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-xs);
}

.rdg-v1 .style-tile.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.14);
}

.rdg-v1 .style-tile-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-muted);
  overflow: hidden;
}

.rdg-v1 .style-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}

.rdg-v1 .style-tile:hover .style-tile-media img {
  transform: scale(1.04);
}

.rdg-v1 .style-swatch-banner {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr;
}

.rdg-v1 .style-tile-name {
  padding: 6px 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rdg-v1 .style-tile-check {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}

.rdg-v1 .style-tile.is-active .style-tile-check {
  display: inline-flex;
}

.rdg-v1 .more-styles-toggle {
  background: none;
  border: none;
  padding: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}

.rdg-v1 .more-styles-toggle:hover {
  text-decoration: underline;
}

.rdg-v1 .extra-styles-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.rdg-v1 .extra-styles-row[hidden] {
  display: none;
}

.rdg-v1 .extra-style-pill {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 140ms ease;
}

.rdg-v1 .extra-style-pill:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.rdg-v1 .extra-style-pill.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* Note input */
.rdg-v1 .note-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 13px;
  color: var(--text);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.rdg-v1 .note-input::placeholder {
  color: var(--text-faint);
}

.rdg-v1 .note-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.rdg-v1 .quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.rdg-v1 .quick-prompt {
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 140ms ease;
}

.rdg-v1 .quick-prompt:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: #ffffff;
}

/* Generate CTA */
.rdg-v1 .generate-wrap {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rdg-v1 .btn-generate {
  width: 100%;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 8px 20px -8px rgba(15, 23, 42, 0.35);
}

.rdg-v1 .btn-generate:hover:not(:disabled) {
  background: var(--primary-hover);
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.1), 0 12px 24px -8px rgba(15, 23, 42, 0.42);
}

.rdg-v1 .btn-generate:disabled {
  opacity: 0.72;
  cursor: wait;
}

.rdg-v1 .trust-line {
  margin: 0;
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rdg-v1 .trust-line span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Right Panel — Hero Visual Canvas Stage */
.rdg-v1 .studio-stage {
  background: var(--bg-subtle);
  padding: 18px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rdg-v1 .stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.rdg-v1 .stage-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.rdg-v1 .stage-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
}

.rdg-v1 .stage-status-meta {
  font-weight: 400;
  color: var(--text-muted);
}

.rdg-v1 .stage-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rdg-v1 .segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}

.rdg-v1 .segmented button {
  border: none;
  background: transparent;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 140ms ease;
}

.rdg-v1 .segmented button.is-active {
  background: var(--primary);
  color: #ffffff;
}

.rdg-v1 .btn-icon-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all 140ms ease;
}

.rdg-v1 .btn-icon-sm:hover {
  border-color: var(--border-strong);
  background: #ffffff;
}

/* Interactive Compare Viewport */
.rdg-v1 .canvas-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: #e2e8f0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-md);
  user-select: none;
  -webkit-user-select: none;
}

/* Split Compare */
.rdg-v1 .compare-split {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: ew-resize;
  touch-action: none;
}

.compare-split[hidden],
.rdg-v1 .compare-side[hidden] {
  display: none;
}

.rdg-v1 .compare-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.rdg-v1 .compare-before-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 48% 0 0);
}

.rdg-v1 .compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 52%;
  width: 2px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 12px rgba(15, 23, 42, 0.4);
  transform: translateX(-1px);
  pointer-events: none;
  z-index: 4;
}

.rdg-v1 .compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--text);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: ew-resize;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.rdg-v1 .compare-split:hover .compare-handle {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.18), 0 6px 20px rgba(15, 23, 42, 0.28);
}

.rdg-v1 .canvas-pill {
  position: absolute;
  top: 14px;
  z-index: 5;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  pointer-events: none;
}

.rdg-v1 .canvas-pill-left {
  left: 14px;
}

.rdg-v1 .canvas-pill-right {
  right: 14px;
}

.rdg-v1 .drag-hint-pill {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
  pointer-events: none;
  transition: opacity 260ms ease;
}

.rdg-v1 .drag-hint-pill.is-hidden {
  opacity: 0;
}

/* Side by Side Mode */
.rdg-v1 .compare-side {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #ffffff;
}

.rdg-v1 .side-pane {
  position: relative;
  overflow: hidden;
  background: #e2e8f0;
}

.rdg-v1 .side-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Generating Overlay */
.rdg-v1 .generating-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.rdg-v1 .generating-overlay[hidden] {
  display: none;
}

.rdg-v1 .scan-beam {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(79,70,229,0) 0%, #4f46e5 50%, rgba(79,70,229,0) 100%);
  box-shadow: 0 0 28px 6px rgba(79, 70, 229, 0.35);
  animation: rdgV1ScanSweep 1.6s ease-in-out infinite alternate;
}

@keyframes rdgV1ScanSweep {
  from { left: 8%; }
  to { left: 92%; }
}

.rdg-v1 .gen-card {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 22px;
  width: min(320px, 90%);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.rdg-v1 .gen-step {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.rdg-v1 .gen-sub {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.rdg-v1 .gen-bar-track {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: var(--bg-muted);
  overflow: hidden;
}

.rdg-v1 .gen-bar-fill {
  height: 100%;
  width: 15%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  transition: width 320ms ease;
}

/* Custom photo demo banner */
.rdg-v1 .proto-toast {
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: #3730a3;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.rdg-v1 .proto-toast[hidden] {
  display: none;
}

/* Stage Footer Quick Presets */
.rdg-v1 .stage-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.rdg-v1 .stage-presets {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.rdg-v1 .preset-btn {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 140ms ease;
}

.rdg-v1 .preset-btn:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.rdg-v1 .preset-btn.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.rdg-v1 .stage-note {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Generic Sections */
.rdg-v1 .section {
  padding: 76px 0;
}

.rdg-v1 .section-subtle {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.rdg-v1 .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.rdg-v1 .section-head-center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 38px;
}

.rdg-v1 .eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.rdg-v1 .section-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}

.rdg-v1 .section-desc {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 560px;
}

.rdg-v1 .section-head-center .section-desc {
  margin: 0 auto;
}

/* Before / After Showcase Grid */
.rdg-v1 .showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.rdg-v1 .showcase-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.rdg-v1 .showcase-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.rdg-v1 .showcase-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-muted);
}

.rdg-v1 .showcase-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 220ms ease;
}

.rdg-v1 .showcase-media .img-before {
  opacity: 0;
}

.rdg-v1 .showcase-card.show-before .showcase-media .img-before {
  opacity: 1;
}

.rdg-v1 .showcase-toggle {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

.rdg-v1 .showcase-toggle:hover {
  background: rgba(15, 23, 42, 0.88);
}

.rdg-v1 .showcase-body {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rdg-v1 .showcase-body h3 {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.rdg-v1 .showcase-body p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.rdg-v1 .link-try {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: all 140ms ease;
}

.rdg-v1 .link-try:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Styles Gallery */
.rdg-v1 .styles-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.rdg-v1 .style-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.rdg-v1 .style-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.rdg-v1 .style-card-top {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: var(--bg-muted);
}

.rdg-v1 .style-card-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rdg-v1 .style-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.rdg-v1 .style-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rdg-v1 .style-card-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.rdg-v1 .swatches {
  display: inline-flex;
  gap: 4px;
}

.rdg-v1 .swatches i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.14);
}

.rdg-v1 .style-card-body p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.rdg-v1 .style-card-foot {
  padding-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rdg-v1 .fit-tag {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.rdg-v1 .style-select-btn {
  border: none;
  background: none;
  padding: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}

.rdg-v1 .style-select-btn:hover {
  text-decoration: underline;
}

.rdg-v1 .more-styles-bar {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.rdg-v1 .more-styles-bar p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.rdg-v1 .more-styles-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Bento Guide & Honest Expectations */
.rdg-v1 .bento-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.rdg-v1 .bento-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-xs);
}

.rdg-v1 .bento-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.rdg-v1 .bento-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.rdg-v1 .bento-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.rdg-v1 .expect-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.rdg-v1 .expect-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-xs);
}

.rdg-v1 .expect-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  margin-bottom: 12px;
}

.rdg-v1 .expect-tag-good {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.rdg-v1 .expect-tag-honest {
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.rdg-v1 .expect-card h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.rdg-v1 .expect-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rdg-v1 .expect-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.rdg-v1 .expect-list strong {
  color: var(--text);
  font-weight: 600;
}

.rdg-v1 .expect-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

/* FAQ */
.rdg-v1 .faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.rdg-v1 .faq-item {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.rdg-v1 .faq-item[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.rdg-v1 .faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rdg-v1 .faq-item summary::-webkit-details-marker {
  display: none;
}

.rdg-v1 .faq-plus {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
  transition: transform 180ms ease, background 150ms ease;
}

.rdg-v1 .faq-item[open] .faq-plus {
  transform: rotate(45deg);
  background: var(--primary);
  color: #ffffff;
}

.rdg-v1 .faq-answer {
  padding: 0 18px 16px;
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Bottom CTA */
.rdg-v1 .cta-box {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 38px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.rdg-v1 .cta-box h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.rdg-v1 .cta-box p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.rdg-v1 .related-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rdg-v1 .related-links a {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 140ms ease;
}

.rdg-v1 .related-links a:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

/* Footer */
.rdg-v1 .site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 44px 0 36px;
}

.rdg-v1 .footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
}

.rdg-v1 .footer-note {
  margin: 10px 0 0;
  max-width: 340px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}

.rdg-v1 .footer-col .footer-label {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.rdg-v1 .footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.rdg-v1 .footer-col a:hover {
  color: var(--text);
}

.rdg-v1 .footer-bottom {
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--text-faint);
}

/* Responsive */
@media (width < 980px) {
  .rdg-v1 .studio-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .rdg-v1 .studio-stage {
    border-top: 1px solid var(--border-subtle);
  }

  .rdg-v1 .studio-controls {
    border-right: none;
  }

  .rdg-v1 .control-label-row {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .rdg-v1 .nav-links,
  .rdg-v1 .quota-pill {
    display: none;
  }

  .rdg-v1 .styles-gallery,
  .rdg-v1 .bento-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rdg-v1 .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .rdg-v1 .wrap {
    padding: 0 16px;
  }

  .rdg-v1 .hero-section {
    padding: 22px 0 44px;
  }

  .rdg-v1 .hero-subtitle {
    font-size: 14.5px;
  }

  .rdg-v1 .studio-stage,
  .rdg-v1 .studio-controls {
    padding: 14px;
  }

  .rdg-v1 .upload-copy {
    overflow-wrap: anywhere;
  }

  .rdg-v1 .upload-title {
    white-space: normal;
  }

  .rdg-v1 .upload-zone input[type="file"] {
    width: 100%;
    height: 100%;
  }

  .rdg-v1 .style-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rdg-v1 .style-tile-name {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .rdg-v1 .showcase-grid,
  .rdg-v1 .styles-gallery,
  .rdg-v1 .bento-steps,
  .rdg-v1 .expect-grid,
  .rdg-v1 .footer-grid {
    grid-template-columns: 1fr;
  }

  .rdg-v1 .cta-box {
    padding: 24px 20px;
  }

  .rdg-v1 .section {
    padding: 52px 0;
  }
}

.rdg-v1 { min-height:100vh; }
.rdg-v1 h1,.rdg-v1 h2,.rdg-v1 h3,.rdg-v1 h4 {font-family:var(--font-display);}
.rdg-v1 .rdg-article {max-width:760px;margin:auto;}
.rdg-v1 .brand {text-decoration:none;}
.rdg-v1 .btn-icon-sm[aria-disabled="true"] {display:none;}
.rdg-v1 .upload-zone:focus-within {outline:2px solid var(--accent);outline-offset:2px;}

.rdg-v1 .home-photo .upload-zone:focus-within {outline:none;box-shadow:none;}
.rdg-v1 .home-photo .home-examples button:is(:hover,:focus-visible) {outline:2px solid #08745f;outline-offset:1px;}

[data-el="resultSlot"] { display:none; }
.rdg-single-result [data-el="resultSlot"] { display:block; width:100%; height:100%; position:absolute; inset:0; }
.rdg-single-result [data-el="resultSlot"] img { width:100%; height:100%; object-fit:contain; }
.rdg-single-result [data-el="splitView"], .rdg-single-result [data-el="sideView"], .rdg-single-result .stage-actions .segmented, .rdg-single-result .stage-note { display:none !important; }
