/* ============================================================================
 * RNOISE AI PROMPT FORGE V6.1 — VITREOUS SMOKED-OBSIDIAN 3D GLASS SPOTLIGHT
 * Harmonized Bridge: DREAMVFIA Smoked-Quartz (hsl 226 / 348°) × RNOISE V6.1 (hsl 232 / 346°)
 * Craft Architecture:
 *   · Single-Layer Outer backdrop-filter (Zero Nested Blur, 60fps Safari/iOS Safe)
 *   · Multi-Plane 3D Optical Glass Cards with Fresnel Specular Bevels & --rn-mx/--rn-my Sheen
 *   · Native 7:8 Portrait Blender 5.1.2 Cycles OptiX 60fps Loop Optical Vitrine
 *   · WCAG 2.1 AA Contrast (>= 5.1:1 crimson text, >= 7.2:1 secondary ink, >= 12px floor)
 * ============================================================================ */

#ai-prompt-forge.rn-v61-band {
  --rn-void: hsl(230, 24%, 4.2%);
  --rn-obsidian: #0e1017;
  --rn-crimson: #f62656;
  --rn-crimson-btn-a: #d81342;
  --rn-crimson-btn-b: #a80d33;
  --rn-crimson-text: #ff7a95;
  --rn-crimson-bright: #ff9cb0;
  --rn-titanium: #f1f4fa;
  --rn-titanium-sec: hsla(224, 22%, 90%, 0.82);
  --rn-titanium-muted: hsla(224, 18%, 86%, 0.72);
  --rn-emerald: #2ee6a3;

  --rn-rim-outer: hsla(224, 34%, 96%, 0.16);
  --rn-rim-subtle: hsla(224, 28%, 94%, 0.11);
  --rn-rim-crimson: hsla(346, 92%, 62%, 0.44);

  --rn-shell-bg: linear-gradient(
    146deg,
    hsla(228, 30%, 96%, 0.082) 0%,
    hsla(232, 20%, 13%, 0.62) 44%,
    hsla(234, 26%, 6%, 0.82) 100%
  );
  --rn-card-bg: linear-gradient(
    152deg,
    hsla(228, 32%, 96%, 0.088) 0%,
    hsla(232, 22%, 12%, 0.78) 46%,
    hsla(234, 24%, 7%, 0.90) 80%,
    hsla(346, 54%, 13%, 0.42) 100%
  );
  --rn-card-bg-deep: linear-gradient(
    160deg,
    hsla(228, 28%, 96%, 0.065) 0%,
    hsla(232, 24%, 9%, 0.86) 58%,
    hsla(346, 46%, 11%, 0.36) 100%
  );

  --rn-shell-shadow:
    0 42px 104px -20px hsla(232, 52%, 2%, 0.78),
    0 12px 34px -10px hsla(346, 86%, 24%, 0.18),
    inset 0 1.5px 0 0 hsla(0, 0%, 100%, 0.28),
    inset 1px 0 0 0 hsla(224, 36%, 96%, 0.11),
    inset -1px 0 0 0 hsla(346, 88%, 62%, 0.11),
    inset 0 -1.5px 0 0 hsla(232, 48%, 2%, 0.58);

  --rn-card-shadow:
    0 22px 48px -16px hsla(232, 54%, 2%, 0.78),
    0 8px 22px -10px hsla(346, 84%, 22%, 0.14),
    inset 0 1.5px 0 0 hsla(0, 0%, 100%, 0.24),
    inset 1px 0 0 0 hsla(224, 38%, 96%, 0.11),
    inset -1px 0 0 0 hsla(346, 90%, 62%, 0.15),
    inset 0 -1.5px 0 0 hsla(232, 48%, 2%, 0.62);

  --rn-card-shadow-hover:
    0 30px 64px -16px hsla(232, 58%, 2%, 0.88),
    0 12px 32px -8px hsla(346, 90%, 38%, 0.26),
    inset 0 1.5px 0 0 hsla(0, 0%, 100%, 0.34),
    inset 1px 0 0 0 hsla(224, 40%, 96%, 0.16),
    inset -1px 0 0 0 hsla(346, 94%, 64%, 0.28),
    inset 0 -1.5px 0 0 hsla(232, 48%, 2%, 0.68);

  --rn-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --rn-ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  position: relative !important;
  isolation: isolate !important;
  contain: layout paint !important;
  scroll-margin-top: 86px !important;
  padding: clamp(48px, 5.5vw, 80px) clamp(14px, 3.2vw, 44px) !important;
  z-index: 6 !important;
  overflow: hidden !important;
  background:
    radial-gradient(ellipse 56% 48% at 18% 22%, hsla(346, 90%, 48%, 0.22) 0%, transparent 68%),
    radial-gradient(ellipse 54% 48% at 84% 30%, hsla(224, 34%, 88%, 0.12) 0%, transparent 66%),
    radial-gradient(ellipse 62% 50% at 72% 84%, hsla(346, 86%, 44%, 0.18) 0%, transparent 68%),
    radial-gradient(ellipse 70% 42% at 38% 92%, hsla(226, 26%, 72%, 0.08) 0%, transparent 70%),
    var(--rn-void) !important;
  border-top: 1px solid hsla(224, 28%, 96%, 0.08) !important;
  border-bottom: 1px solid hsla(224, 28%, 96%, 0.08) !important;
  font-family: var(--font-bilingual-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif) !important;
  font-variant-numeric: tabular-nums !important;
  color: var(--rn-titanium) !important;
}

/* Z0 · Crisp Architectural Grid Hairlines Behind Smoked Quartz Shell */
#ai-prompt-forge.rn-v61-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(hsla(224, 28%, 96%, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, hsla(224, 28%, 96%, 0.028) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 84% 72% at 50% 48%, #000 32%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 84% 72% at 50% 48%, #000 32%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Z1 · Primary 1380px Smoked-Obsidian Quartz 3D Frosted Glass Shell (Single Blur Layer) */
#ai-prompt-forge .rn-v61-shell {
  position: relative !important;
  opacity: 1 !important;
  transform: none !important;
  max-width: 1380px !important;
  width: 100% !important;
  margin: 0 auto !important;
  border-radius: 28px !important;
  background: var(--rn-shell-bg) !important;
  backdrop-filter: blur(16px) saturate(165%) brightness(1.06) !important;
  -webkit-backdrop-filter: blur(16px) saturate(165%) brightness(1.06) !important;
  border: 1px solid var(--rn-rim-outer) !important;
  box-shadow: var(--rn-shell-shadow) !important;
  padding: clamp(22px, 3vw, 40px) clamp(20px, 3.2vw, 44px) clamp(24px, 3vw, 40px) !important;
  overflow: hidden !important;
  z-index: 1 !important;
  box-sizing: border-box !important;
}

/* Top Chromatic Fresnel Specular Rim Catchlight */
#ai-prompt-forge .rn-v61-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1.5px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    hsla(0, 0%, 100%, 0.46) 24%,
    hsla(346, 94%, 62%, 0.62) 50%,
    hsla(0, 0%, 100%, 0.36) 76%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 4;
}

/* Silica Micro-Frost Surface Grain (Kills 8-Bit Dark Gradient Banding) */
#ai-prompt-forge .rn-v61-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.032;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

/* Ensure all direct content floats cleanly above micro-grain */
#ai-prompt-forge .rn-v61-topbar,
#ai-prompt-forge .rn-v61-grid,
#ai-prompt-forge .rn-v61-pods {
  position: relative;
  z-index: 2;
}

/* ============================================================================
 * ZONE 1 · GLASS HEADER TELEMETRY RAIL
 * ============================================================================ */
#ai-prompt-forge .rn-v61-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid hsla(224, 28%, 96%, 0.10);
}

#ai-prompt-forge .rn-v61-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

#ai-prompt-forge .rn-v61-emblem-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(145deg, hsla(0, 0%, 100%, 0.24), hsla(346, 92%, 56%, 0.44));
  box-shadow: 0 4px 16px hsla(346, 92%, 44%, 0.28);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#ai-prompt-forge .rn-v61-emblem-badge img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  background: #08090f;
}

#ai-prompt-forge .rn-v61-brand-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--rn-titanium);
  text-transform: uppercase;
}

#ai-prompt-forge .rn-v61-brand-sep {
  color: var(--rn-crimson-text);
  font-weight: 700;
}

#ai-prompt-forge .rn-v61-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(145deg, hsla(228, 28%, 96%, 0.08), hsla(232, 22%, 10%, 0.76));
  border: 1px solid hsla(224, 30%, 94%, 0.16);
  box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, 0.20), 0 6px 20px hsla(232, 50%, 2%, 0.45);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  color: var(--rn-titanium);
}

#ai-prompt-forge .rn-v61-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rn-emerald);
  box-shadow: 0 0 10px hsla(158, 84%, 54%, 0.78);
  flex-shrink: 0;
}

/* ============================================================================
 * ZONE 2 · MAIN 2-COLUMN COMMAND & BLENDER CYCLES 3D GLASS STAGE
 * ============================================================================ */
#ai-prompt-forge .rn-v61-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(22px, 3vw, 38px);
  align-items: stretch;
  margin-bottom: clamp(22px, 2.8vw, 32px);
}

@media (max-width: 1060px) {
  #ai-prompt-forge .rn-v61-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

#ai-prompt-forge .rn-v61-hero-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}

#ai-prompt-forge .rn-v61-kicker {
  display: inline-block;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rn-crimson-text);
  margin-bottom: 10px;
}

#ai-prompt-forge .rn-v61-title {
  font-family: var(--font-bilingual-display, var(--font-bilingual-ui, sans-serif)) !important;
  font-size: clamp(1.85rem, 3vw, 2.75rem) !important;
  font-weight: 800 !important;
  line-height: 1.14 !important;
  letter-spacing: -0.025em !important;
  color: var(--rn-titanium) !important;
  margin: 0 0 16px 0 !important;
  text-shadow: 0 2px 24px hsla(346, 90%, 44%, 0.18) !important;
}

/* Unified Monochrome Titanium-Glass 6-Engine Segmented Rail (Zero Rainbow Pollution) */
#ai-prompt-forge .rn-v61-engines {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#ai-prompt-forge .rn-v61-engine-pill {
  appearance: none;
  min-height: 36px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid hsla(224, 28%, 94%, 0.16);
  background: linear-gradient(155deg, hsla(228, 30%, 96%, 0.08), hsla(232, 22%, 11%, 0.78));
  box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, 0.18), 0 4px 14px hsla(232, 50%, 2%, 0.36);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--rn-titanium-sec);
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.26s var(--rn-spring),
    border-color 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    box-shadow 0.26s ease;
}

#ai-prompt-forge .rn-v61-engine-pill:hover {
  transform: translateY(-2px);
  border-color: hsla(224, 34%, 96%, 0.34);
  color: #ffffff;
  box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, 0.28), 0 8px 20px hsla(232, 50%, 2%, 0.5);
}

#ai-prompt-forge .rn-v61-engine-pill.is-active {
  border-color: var(--rn-crimson);
  background: linear-gradient(145deg, hsla(346, 92%, 56%, 0.34) 0%, hsla(346, 86%, 24%, 0.62) 100%);
  color: #ffffff;
  box-shadow:
    0 6px 22px hsla(346, 92%, 48%, 0.34),
    inset 0 1px 0 hsla(0, 0%, 100%, 0.36);
}

#ai-prompt-forge .rn-v61-lead {
  font-size: 0.98rem;
  line-height: 1.74;
  color: var(--rn-titanium-sec);
  margin: 0;
  max-width: 60ch;
}

#ai-prompt-forge .rn-v61-lead strong {
  color: #ffffff;
  font-weight: 600;
}

/* ============================================================================
 * 3D FROSTED GLASS CARD SHARED SYSTEM (Non-Nested Optical Glass + Sheen)
 * ============================================================================ */
#ai-prompt-forge .rn-glass-card {
  position: relative;
  overflow: hidden;
  background: var(--rn-card-bg);
  border: 1px solid var(--rn-rim-outer);
  box-shadow: var(--rn-card-shadow);
  transition:
    border-color 0.28s var(--rn-ease-out),
    box-shadow 0.32s var(--rn-ease-out),
    transform 0.34s var(--rn-ease-out);
}

/* Pointer-Reactive Optical Specular Sheen Layer */
#ai-prompt-forge .rn-glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    320px circle at var(--rn-mx, 50%) var(--rn-my, 0%),
    hsla(0, 0%, 100%, 0.13) 0%,
    hsla(346, 92%, 62%, 0.09) 34%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
  z-index: 2;
}

/* Top Razor Fresnel Catchlight Edge */
#ai-prompt-forge .rn-glass-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    hsla(0, 0%, 100%, 0.42) 32%,
    hsla(346, 92%, 64%, 0.50) 54%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 3;
}

@media (hover: hover) and (pointer: fine) {
  #ai-prompt-forge .rn-glass-card:hover {
    border-color: hsla(346, 92%, 62%, 0.42);
    box-shadow: var(--rn-card-shadow-hover);
  }
  #ai-prompt-forge .rn-glass-card:hover::before {
    opacity: 1;
  }
}

/* 4-Cell 3D Glass Hardware Telemetry Counter Matrix */
#ai-prompt-forge .rn-v61-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 680px) {
  #ai-prompt-forge .rn-v61-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#ai-prompt-forge .rn-v61-metric {
  border-radius: 16px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

#ai-prompt-forge .rn-v61-metric-lbl {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--rn-titanium-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#ai-prompt-forge .rn-v61-metric-val {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: clamp(1.04rem, 1.32vw, 1.30rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: #ffffff;
  white-space: nowrap;
}

#ai-prompt-forge .rn-v61-metric-val.is-crimson {
  color: var(--rn-crimson-bright);
  text-shadow: 0 0 22px hsla(346, 92%, 56%, 0.34);
}

#ai-prompt-forge .rn-v61-metric-val.is-emerald {
  color: var(--rn-emerald);
  text-shadow: 0 0 18px hsla(158, 84%, 54%, 0.28);
}

#ai-prompt-forge .rn-v61-metric-sub {
  font-size: 0.75rem;
  color: var(--rn-titanium-muted);
  line-height: 1.35;
}

/* Dual 48px Vitreous Pill CTAs */
#ai-prompt-forge .rn-v61-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

#ai-prompt-forge .rn-v61-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rn-crimson-btn-a) 0%, var(--rn-crimson-btn-b) 100%);
  border: 1px solid hsla(346, 96%, 72%, 0.65);
  box-shadow:
    0 12px 30px -8px hsla(346, 92%, 44%, 0.56),
    inset 0 1.5px 0 hsla(0, 0%, 100%, 0.34);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.28s var(--rn-spring), box-shadow 0.28s ease, filter 0.22s ease;
}

#ai-prompt-forge .rn-v61-btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow:
    0 18px 40px -8px hsla(346, 94%, 50%, 0.70),
    inset 0 1.5px 0 hsla(0, 0%, 100%, 0.44);
}

#ai-prompt-forge .rn-v61-btn-primary:active {
  transform: scale(0.98);
}

#ai-prompt-forge .rn-v61-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(150deg, hsla(228, 30%, 96%, 0.09), hsla(232, 22%, 12%, 0.78));
  border: 1px solid hsla(224, 30%, 94%, 0.22);
  box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, 0.22), 0 8px 24px hsla(232, 50%, 2%, 0.46);
  color: var(--rn-titanium);
  font-size: 0.90rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.28s var(--rn-spring), border-color 0.22s ease, background 0.22s ease;
}

#ai-prompt-forge .rn-v61-btn-ghost:hover {
  transform: translateY(-2px);
  border-color: hsla(346, 92%, 62%, 0.55);
  background: linear-gradient(150deg, hsla(346, 86%, 56%, 0.16), hsla(232, 22%, 14%, 0.86));
  color: #ffffff;
}

#ai-prompt-forge .rn-v61-btn-ghost:active {
  transform: scale(0.98);
}

#ai-prompt-forge .rn-v61-footnote {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--rn-titanium-muted);
  margin: 0;
}

/* ============================================================================
 * RIGHT COLUMN · 3D GLASS BLENDER CYCLES REACTOR VITRINE & COMPILER DOCK
 * ============================================================================ */
#ai-prompt-forge .rn-v61-stage-card {
  border-radius: 22px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  background: var(--rn-card-bg-deep);
}

#ai-prompt-forge .rn-v61-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid hsla(224, 28%, 94%, 0.10);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.75rem;
}

#ai-prompt-forge .rn-v61-stage-title {
  color: var(--rn-titanium);
  font-weight: 700;
  letter-spacing: 0.10em;
}

#ai-prompt-forge .rn-v61-stage-badge {
  color: var(--rn-crimson-bright);
  background: hsla(346, 90%, 44%, 0.22);
  border: 1px solid hsla(346, 92%, 62%, 0.44);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* Native 7:8 Portrait Optical Reactor Vitrine (Zero Decapitation of Cycles Stator Rings) */
#ai-prompt-forge .rn-v61-vitrine-wrap {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

@media (max-width: 640px) {
  #ai-prompt-forge .rn-v61-vitrine-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

#ai-prompt-forge .rn-v61-video-frame {
  position: relative;
  isolation: isolate;
  contain: layout paint;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 7 / 8;
  border-radius: 18px;
  overflow: hidden;
  background: #06070c;
  border: 1px solid hsla(346, 92%, 62%, 0.34);
  box-shadow:
    0 20px 44px hsla(232, 60%, 1%, 0.86),
    0 0 36px -8px hsla(346, 92%, 52%, 0.26),
    inset 0 1px 0 hsla(0, 0%, 100%, 0.28);
}

#ai-prompt-forge .rn-v61-video-parallax {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  transition: transform 0.25s var(--rn-ease-out);
}

#ai-prompt-forge .rn-v61-poster,
#ai-prompt-forge .rn-v61-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 48%;
  display: block;
}

#ai-prompt-forge .rn-v61-poster {
  z-index: 1;
}

#ai-prompt-forge .rn-v61-video {
  z-index: 2;
  opacity: 0;
  transition: opacity 0.45s ease;
}

#ai-prompt-forge .rn-v61-video-frame.is-playing .rn-v61-video {
  opacity: 1;
}

#ai-prompt-forge .rn-v61-video-frame.is-poster-only .rn-v61-video {
  display: none !important;
}

/* Edge Scrim Guaranteeing WCAG AAA Contrast Under HUD Overlays */
#ai-prompt-forge .rn-v61-video-scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(
      180deg,
      rgba(6, 7, 12, 0.78) 0%,
      rgba(6, 7, 12, 0.08) 24%,
      rgba(6, 7, 12, 0.06) 72%,
      rgba(6, 7, 12, 0.88) 100%
    ),
    radial-gradient(ellipse 84% 82% at 50% 50%, transparent 52%, rgba(6, 7, 12, 0.62) 100%);
  pointer-events: none;
}

#ai-prompt-forge .rn-v61-hud-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#ai-prompt-forge .rn-v61-hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(10, 11, 18, 0.86);
  border: 1px solid hsla(224, 30%, 94%, 0.20);
  box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, 0.20);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f1f4fa;
  pointer-events: none;
}

/* WCAG 2.2.2 Accessible Pause/Play Micro Control */
#ai-prompt-forge .rn-v61-video-toggle {
  appearance: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 11, 18, 0.88);
  border: 1px solid hsla(224, 30%, 94%, 0.26);
  box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, 0.22);
  color: #f1f4fa;
  cursor: pointer;
  transition: transform 0.22s var(--rn-spring), border-color 0.22s ease, background 0.22s ease;
}

#ai-prompt-forge .rn-v61-video-toggle:hover {
  transform: scale(1.06);
  border-color: var(--rn-crimson);
  background: rgba(28, 12, 18, 0.94);
}

#ai-prompt-forge .rn-v61-hud-bottom {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.75rem;
  font-weight: 600;
  color: #e6ebf5;
  pointer-events: none;
}

/* Right Spec Column Next to Blender Vitrine */
#ai-prompt-forge .rn-v61-spec-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  width: 100%;
}

#ai-prompt-forge .rn-v61-spec-tile {
  padding: 11px 14px;
  border-radius: 13px;
  background: linear-gradient(155deg, hsla(228, 28%, 96%, 0.06), hsla(232, 22%, 10%, 0.84));
  border: 1px solid var(--rn-rim-subtle);
  box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, 0.16);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#ai-prompt-forge .rn-v61-spec-k {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--rn-titanium-muted);
}

#ai-prompt-forge .rn-v61-spec-v {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.79rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
}

#ai-prompt-forge .rn-v61-spec-v.is-crimson {
  color: var(--rn-crimson-bright);
}

#ai-prompt-forge .rn-v61-spec-v.is-emerald {
  color: var(--rn-emerald);
}

/* 3-Tab Frosted Compiler Terminal */
#ai-prompt-forge .rn-v61-terminal {
  border-radius: 16px;
  background: linear-gradient(160deg, hsla(232, 26%, 9%, 0.90), hsla(234, 28%, 5%, 0.96));
  border: 1px solid hsla(224, 28%, 94%, 0.13);
  box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, 0.14);
  overflow: hidden;
}

#ai-prompt-forge .rn-v61-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid hsla(224, 28%, 94%, 0.10);
  background: hsla(232, 24%, 7%, 0.85);
}

#ai-prompt-forge .rn-v61-tab {
  appearance: none;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--rn-titanium-muted);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#ai-prompt-forge .rn-v61-tab:hover {
  color: #ffffff;
  background: hsla(228, 30%, 96%, 0.05);
}

#ai-prompt-forge .rn-v61-tab.is-active {
  color: #ffffff;
  background: hsla(346, 86%, 48%, 0.14);
  border-bottom-color: var(--rn-crimson);
}

#ai-prompt-forge .rn-v61-panel {
  padding: 13px 15px;
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

#ai-prompt-forge .rn-v61-panel[hidden] {
  display: none !important;
}

#ai-prompt-forge .rn-v61-stream-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.76rem;
  transition: background 0.28s ease, border-color 0.28s ease;
}

#ai-prompt-forge .rn-v61-stream-row.is-pulsing {
  background: hsla(346, 88%, 50%, 0.14);
  border-color: hsla(346, 92%, 62%, 0.38);
}

#ai-prompt-forge .rn-v61-stream-k {
  color: var(--rn-crimson-text);
  font-weight: 700;
  flex-shrink: 0;
}

#ai-prompt-forge .rn-v61-stream-v {
  color: var(--rn-titanium);
  text-align: right;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#ai-prompt-forge .rn-v61-payload-head {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--rn-crimson-bright);
  padding-bottom: 4px;
  border-bottom: 1px solid hsla(224, 28%, 94%, 0.08);
}

#ai-prompt-forge .rn-v61-payload-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.76rem;
  line-height: 1.45;
}

#ai-prompt-forge .rn-v61-payload-row .k {
  color: var(--rn-titanium-muted);
  font-weight: 700;
  min-width: 50px;
  flex-shrink: 0;
}

#ai-prompt-forge .rn-v61-payload-row code {
  color: #f1f4fa;
  background: transparent;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  word-break: break-word;
}

#ai-prompt-forge .rn-v61-eq-svg {
  width: 100%;
  height: 76px;
  display: block;
}

#ai-prompt-forge .rn-v61-eq-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.75rem;
  color: var(--rn-titanium-muted);
}

/* ============================================================================
 * ZONE 3 · 3-COLUMN ELEVATED 3D VITREOUS CAPABILITY PODS
 * ============================================================================ */
#ai-prompt-forge .rn-v61-pods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 960px) {
  #ai-prompt-forge .rn-v61-pods {
    grid-template-columns: 1fr;
  }
}

#ai-prompt-forge .rn-v61-pod {
  border-radius: 20px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#ai-prompt-forge .rn-v61-pod-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.75rem;
}

#ai-prompt-forge .rn-v61-pod-tag {
  color: var(--rn-crimson-text);
  font-weight: 700;
  letter-spacing: 0.10em;
}

#ai-prompt-forge .rn-v61-pod-val {
  color: var(--rn-titanium-muted);
  font-weight: 600;
}

#ai-prompt-forge .rn-v61-pod h3 {
  font-family: var(--font-bilingual-display, var(--font-bilingual-ui, sans-serif));
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  margin: 0;
}

#ai-prompt-forge .rn-v61-pod p {
  font-size: 0.88rem;
  line-height: 1.66;
  color: var(--rn-titanium-sec);
  margin: 0;
}

/* ============================================================================
 * ACCESSIBLE FOCUS RINGS, MOBILE BLUR CAP & REDUCED MOTION GUARDS
 * ============================================================================ */
#ai-prompt-forge a:focus-visible,
#ai-prompt-forge button:focus-visible {
  outline: 2px solid var(--rn-crimson-bright) !important;
  outline-offset: 3px !important;
}

@media (max-width: 768px) {
  #ai-prompt-forge .rn-v61-shell {
    border-radius: 20px !important;
    backdrop-filter: blur(10px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(10px) saturate(145%) !important;
    padding: 20px 16px 22px !important;
  }

  #ai-prompt-forge .rn-v61-tabs {
    grid-template-columns: 1fr;
  }

  #ai-prompt-forge .rn-v61-tab {
    text-align: left;
    padding: 9px 14px;
    border-bottom: 1px solid hsla(224, 28%, 94%, 0.08);
    border-left: 2px solid transparent;
  }

  #ai-prompt-forge .rn-v61-tab.is-active {
    border-bottom-color: hsla(224, 28%, 94%, 0.08);
    border-left-color: var(--rn-crimson);
  }

  #ai-prompt-forge .rn-v61-stream-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  #ai-prompt-forge .rn-v61-stream-v {
    text-align: left;
    white-space: normal;
  }

  #ai-prompt-forge .rn-v61-btn-primary,
  #ai-prompt-forge .rn-v61-btn-ghost {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #ai-prompt-forge .rn-v61-video {
    display: none !important;
  }
  #ai-prompt-forge .rn-glass-card,
  #ai-prompt-forge .rn-v61-video-parallax,
  #ai-prompt-forge .rn-v61-engine-pill,
  #ai-prompt-forge .rn-v61-btn-primary,
  #ai-prompt-forge .rn-v61-btn-ghost {
    transition: none !important;
    transform: none !important;
  }
}
