/* ============================================================================
   PromptMeGood — Visual Studio Modal (vs-1)
   Full-screen image + video prompt builder.
   Desktop: centered overlay 1100px x 90vh, two columns (Builder | Result).
   Mobile (<=768px): full-screen bottom sheet, two-step flow toggled by
   `.is-step-2` on `.pmg-modal-body`.
   ============================================================================ */

#pmg-visual-studio-modal.pmg-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(4, 16, 14, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: pmgVsFade 180ms ease-out;
}
#pmg-visual-studio-modal[hidden] { display: none !important; }
@keyframes pmgVsFade { from { opacity: 0; } to { opacity: 1; } }

#pmg-visual-studio-modal .pmg-modal-content {
  background: var(--g2-teal-1, #0a2420);
  border: 1px solid color-mix(in srgb, var(--g2-mint, #3ee0a0) 20%, transparent);
  border-radius: 16px;
  width: 100%;
  max-width: 1100px;
  height: 90vh;
  max-height: 900px;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5),
              0 0 0 1px rgba(62, 224, 160, 0.08);
  color: var(--color-text, #e8f5f0);
}

#pmg-visual-studio-modal .pmg-modal-header {
  padding: 14px 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--g2-mint, #3ee0a0) 14%, transparent);
  display: flex; justify-content: space-between; align-items: center;
  background: color-mix(in srgb, var(--g2-mint, #3ee0a0) 4%, transparent);
}
#pmg-visual-studio-modal .pmg-modal-header h2 {
  margin: 0; font-size: 1.1rem; font-weight: 700; letter-spacing: 0.01em;
  color: var(--g2-mint, #3ee0a0);
}
#pmg-close-visual-studio {
  appearance: none; border: 0; background: transparent;
  color: var(--color-text, #e8f5f0); font-size: 1.4rem; line-height: 1;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 140ms ease;
}
#pmg-close-visual-studio:hover,
#pmg-close-visual-studio:focus-visible {
  background: color-mix(in srgb, var(--g2-mint, #3ee0a0) 14%, transparent);
  outline: none;
}

#pmg-visual-studio-modal .pmg-modal-body {
  display: flex; flex: 1; overflow: hidden;
}

/* --- Builder column --- */
#pmg-visual-studio-modal .pmg-modal-col-builder {
  width: 42%;
  padding: 20px 22px;
  overflow-y: auto;
  border-right: 1px solid color-mix(in srgb, var(--g2-mint, #3ee0a0) 14%, transparent);
  background: color-mix(in srgb, #000 12%, var(--g2-teal-1, #0a2420));
}

.pmg-vs-tabs {
  display: inline-flex;
  background: color-mix(in srgb, #000 28%, transparent);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 18px;
  gap: 2px;
}
.pmg-vs-tab {
  appearance: none; border: 0;
  background: transparent;
  color: color-mix(in srgb, var(--g2-mint, #3ee0a0) 70%, #fff);
  font-weight: 600; font-size: 0.92rem;
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
  transition: all 160ms ease;
}
.pmg-vs-tab:hover { color: #fff; }
.pmg-vs-tab.active {
  background: var(--g2-mint, #3ee0a0);
  color: var(--g2-teal-1, #0a2420);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--g2-mint, #3ee0a0) 35%, transparent);
}
.pmg-vs-tab .pmg-vs-pro-tag {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.62rem; font-weight: 700;
  padding: 1px 6px; border-radius: 4px;
  background: rgba(255, 211, 99, 0.22);
  color: #ffd363;
  vertical-align: middle;
}

.pmg-vs-section { margin-bottom: 16px; }
.pmg-vs-section > label {
  display: block;
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--g2-mint, #3ee0a0) 80%, #fff);
  margin-bottom: 6px;
}
.pmg-vs-section textarea,
.pmg-vs-section input[type="text"] {
  width: 100%; box-sizing: border-box;
  background: color-mix(in srgb, #000 35%, transparent);
  border: 1px solid color-mix(in srgb, var(--g2-mint, #3ee0a0) 18%, transparent);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--color-text, #fff);
  font-family: inherit; font-size: 0.95rem; line-height: 1.45;
  resize: vertical;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.pmg-vs-section textarea:focus,
.pmg-vs-section input[type="text"]:focus {
  outline: none;
  border-color: var(--g2-mint, #3ee0a0);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--g2-mint, #3ee0a0) 22%, transparent);
}

.pmg-vs-tuning {
  background: color-mix(in srgb, #000 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--g2-mint, #3ee0a0) 12%, transparent);
  border-radius: 10px;
  padding: 0 12px;
  margin-bottom: 16px;
}
.pmg-vs-tuning > summary {
  list-style: none; cursor: pointer;
  padding: 12px 0;
  font-weight: 700; font-size: 0.9rem;
  color: color-mix(in srgb, var(--g2-mint, #3ee0a0) 85%, #fff);
  display: flex; align-items: center; gap: 8px;
}
.pmg-vs-tuning > summary::-webkit-details-marker { display: none; }
.pmg-vs-tuning > summary::before {
  content: "▸";
  display: inline-block;
  transition: transform 160ms ease;
  color: var(--g2-mint, #3ee0a0);
}
.pmg-vs-tuning[open] > summary::before { transform: rotate(90deg); }
.pmg-vs-tuning > div { padding: 4px 0 14px; }

/* Sora tuning grid (Shot Type / Movement / Mood / Duration / Resolution / Style) */
/* Sora Tuning Suite — pill-based, mirrors Photography Suite vibe. */
.pmg-vs-sora-pills {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pmg-vs-pill-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pmg-vs-pill-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted, #9fbab1);
}
.pmg-vs-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pmg-vs-pill {
  appearance: none;
  border: 1px solid color-mix(in srgb, var(--color-primary, #00c896) 35%, transparent);
  background: transparent;
  color: var(--color-text, #e6f4ee);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
  line-height: 1.2;
}
.pmg-vs-pill:hover {
  background: color-mix(in srgb, var(--color-primary, #00c896) 10%, transparent);
  border-color: var(--color-primary, #00c896);
}
.pmg-vs-pill[aria-pressed="true"] {
  background: var(--color-primary, #00c896);
  color: #0d2b1e;
  border-color: var(--color-primary, #00c896);
}
.pmg-vs-pill:focus-visible {
  outline: 2px solid var(--color-primary, #00c896);
  outline-offset: 2px;
}

.pmg-vs-sora-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.pmg-vs-sora-grid label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: color-mix(in srgb, var(--g2-mint, #3ee0a0) 70%, #fff);
}
.pmg-vs-sora-grid select {
  appearance: none;
  background: color-mix(in srgb, #000 40%, transparent);
  border: 1px solid color-mix(in srgb, var(--g2-mint, #3ee0a0) 18%, transparent);
  border-radius: 8px;
  padding: 8px 28px 8px 10px;
  color: var(--color-text, #fff);
  font-family: inherit; font-size: 0.9rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%233ee0a0' d='M6 8.5L1.5 4h9z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
}
.pmg-vs-sora-grid select:focus {
  outline: none;
  border-color: var(--g2-mint, #3ee0a0);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--g2-mint, #3ee0a0) 22%, transparent);
}

/* ----- Chassis launchers (vs-3) ----- */
.pmg-vs-launch-rail {
  appearance: none; border: 0; cursor: pointer;
  margin-top: 10px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--g2-mint, #3ee0a0);
  color: var(--g2-teal-1, #0a2420);
  font: 700 0.95rem/1 system-ui, sans-serif;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--g2-mint, #3ee0a0) 28%, transparent);
}
.pmg-vs-launch-rail:hover { transform: translateY(-1px); }

/* Always-visible launcher row. Sits inside .pmgv2-main on desktop;
   becomes a fixed bar above the composer-tab + dock on mobile so it
   stays visible even when the composer collapses to a pill. */
#pmg-vs-launch-composer-row.pmg-vs-launch-row {
  display: flex; gap: 8px; margin: 12px 0 8px;
  flex-wrap: wrap;
}
.pmg-vs-launch-row .pmg-vs-launch-pill {
  flex: 1 1 0;
  appearance: none; cursor: pointer;
  padding: 10px 12px;
  border-radius: 10px;
  /* vs-14: lighter, calmer fill per user request */
  background: rgba(62, 224, 160, 0.08);
  color: var(--g2-mint, #3ee0a0);
  border: 1px solid rgba(62, 224, 160, 0.35);
  font: 700 0.88rem/1 system-ui, sans-serif;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  white-space: nowrap;
  min-width: 0;
}
.pmg-vs-launch-row .pmg-vs-launch-pill:hover {
  background: rgba(62, 224, 160, 0.16);
  border-color: rgba(62, 224, 160, 0.55);
}

/* Inline-mounted Visual Studio (mobile page-swap). When Visual dock
   tab is active on mobile, the modal node is moved into .pmgv2-tools
   and given .pmg-vs-inline so it renders as a normal section (no
   overlay, no backdrop, no close X). Desktop and other tabs keep the
   modal as a real overlay. */
.pmg-modal-overlay#pmg-visual-studio-modal.pmg-vs-inline {
  position: static !important;
  inset: auto !important;
  background: transparent !important;
  padding: 0 !important;
  width: 100%;
  height: auto;
  z-index: auto;
  display: block;
}
.pmg-modal-overlay#pmg-visual-studio-modal.pmg-vs-inline .pmg-modal-content {
  position: static !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  transform: none !important;
}
.pmg-modal-overlay#pmg-visual-studio-modal.pmg-vs-inline .pmg-modal-header { display: none !important; }
.pmg-modal-overlay#pmg-visual-studio-modal.pmg-vs-inline #pmg-close-visual-studio { display: none !important; }
.pmg-modal-overlay#pmg-visual-studio-modal.pmg-vs-inline .pmg-modal-body {
  display: block !important;
  padding: 8px !important;
  height: auto !important;
  overflow: visible !important;
}
.pmg-modal-overlay#pmg-visual-studio-modal.pmg-vs-inline #pmg-vs-step-1,
.pmg-modal-overlay#pmg-visual-studio-modal.pmg-vs-inline #pmg-vs-step-2 {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  padding: 0 !important;
}

/* vs-13 — Inline-mount mobile polish (Visual tab on ≤900px). When the
   modal is inline-mounted into .pmgv2-tools, three friction points
   appear: (1) the chassis tools-header "Launch Image Studio" button
   collides with its own title and is redundant — the user IS in the
   studio; (2) the Sync toggle + Master Plan cards eat the top of the
   viewport pushing the actual creation tools below the fold; (3) the
   describe-your-image textarea feels like a settings field, not the
   primary creative surface. Fixes are scoped to mobile + suite tab so
   desktop overlay behavior is untouched. */
@media (max-width: 900px) {
  /* (1) Hide redundant launch button when inline */
  html.pmg-chassis-v2[data-pmgv2-mobile-tab="suite"] #pmg-vs-launch-rail {
    display: none !important;
  }
  /* (2) Reorder .pmgv2-tools flex children: Header → Modal → Sync → Plan */
  html.pmg-chassis-v2[data-pmgv2-mobile-tab="suite"] .pmgv2-tools > .pmgv2-tools-h { order: 0; }
  html.pmg-chassis-v2[data-pmgv2-mobile-tab="suite"] .pmgv2-tools > #pmg-visual-studio-modal.pmg-vs-inline { order: 1; }
  html.pmg-chassis-v2[data-pmgv2-mobile-tab="suite"] .pmgv2-tools > #pmgv2-ml-card { order: 2; margin-top: 16px; }
  html.pmg-chassis-v2[data-pmgv2-mobile-tab="suite"] .pmgv2-tools > #pmgv2-plan-card { order: 3; }
  /* (3) Elevate the primary input: bigger textarea, more padding */
  html.pmg-chassis-v2[data-pmgv2-mobile-tab="suite"] #pmg-vs-image-goal,
  html.pmg-chassis-v2[data-pmgv2-mobile-tab="suite"] #pmg-vs-video-goal {
    min-height: 110px !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    padding: 14px !important;
  }
}

/* vs-12: launcher row is now visible on ALL viewports (was previously
   hidden on mobile). Sits at the top of .pmgv2-main right after the
   mode bar, so the three signature features are immediately
   discoverable on first paint regardless of screen size. */

.pmg-vs-reverse-status {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.4;
  border: 1px solid color-mix(in srgb, var(--g2-mint, #3ee0a0) 18%, transparent);
  background: color-mix(in srgb, var(--g2-mint, #3ee0a0) 8%, transparent);
  color: var(--color-text, #e8f5f0);
}
.pmg-vs-reverse-status.pmg-vs-reverse-status--ok {
  border-color: color-mix(in srgb, var(--g2-mint, #3ee0a0) 36%, transparent);
  background: color-mix(in srgb, var(--g2-mint, #3ee0a0) 16%, transparent);
}
.pmg-vs-reverse-status.pmg-vs-reverse-status--err {
  border-color: color-mix(in srgb, #ff5050 36%, transparent);
  background: color-mix(in srgb, #ff5050 12%, transparent);
  color: #ff8a8a;
}

.pmg-vs-actions-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 12px;
}

.pmg-vs-btn {
  appearance: none; border: 0; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 0.95rem;
  padding: 12px 18px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform 120ms ease, box-shadow 160ms ease, background 160ms ease;
}
.pmg-vs-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.pmg-vs-btn-primary {
  background: var(--g2-mint, #3ee0a0);
  color: var(--g2-teal-1, #0a2420);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--g2-mint, #3ee0a0) 35%, transparent);
}
.pmg-vs-btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 28px color-mix(in srgb, var(--g2-mint, #3ee0a0) 45%, transparent); }
.pmg-vs-btn-secondary {
  background: color-mix(in srgb, var(--g2-mint, #3ee0a0) 14%, transparent);
  color: var(--g2-mint, #3ee0a0);
  border: 1px solid color-mix(in srgb, var(--g2-mint, #3ee0a0) 30%, transparent);
}
.pmg-vs-btn-secondary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--g2-mint, #3ee0a0) 22%, transparent);
}
.pmg-vs-full-width { width: 100%; }

/* Refined output card */
.pmg-vs-refined-output {
  background: color-mix(in srgb, var(--g2-mint, #3ee0a0) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--g2-mint, #3ee0a0) 22%, transparent);
  border-radius: 12px;
  padding: 14px;
  margin-top: 12px;
}
.pmg-vs-refined-output[hidden] { display: none !important; }
.pmg-vs-refined-output > label {
  display: block;
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--g2-mint, #3ee0a0);
  margin-bottom: 6px;
}

/* --- Result column --- */
#pmg-visual-studio-modal .pmg-modal-col-result {
  width: 58%;
  padding: 20px 22px;
  display: flex; flex-direction: column;
  background: color-mix(in srgb, #000 22%, var(--g2-teal-1, #0a2420));
}
.pmg-vs-media-container {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  background: color-mix(in srgb, #000 45%, transparent);
  border: 1px dashed color-mix(in srgb, var(--g2-mint, #3ee0a0) 18%, transparent);
  margin-bottom: 14px;
  min-height: 240px;
}
.pmg-vs-media-container img,
.pmg-vs-media-container video {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.pmg-media-placeholder {
  text-align: center; padding: 24px;
  color: color-mix(in srgb, var(--g2-mint, #3ee0a0) 70%, #fff);
  font-size: 0.95rem; font-weight: 600;
}
.pmg-media-placeholder .pmg-vs-spinner {
  width: 36px; height: 36px;
  border: 3px solid color-mix(in srgb, var(--g2-mint, #3ee0a0) 22%, transparent);
  border-top-color: var(--g2-mint, #3ee0a0);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: pmgVsSpin 900ms linear infinite;
}
@keyframes pmgVsSpin { to { transform: rotate(360deg); } }
.pmg-media-placeholder .pmg-vs-sub {
  display: block; margin-top: 6px;
  font-size: 0.78rem; font-weight: 500; opacity: 0.75;
}

#pmg-vs-back-to-builder {
  appearance: none; border: 0; background: transparent;
  color: var(--g2-mint, #3ee0a0);
  font-weight: 600; font-size: 0.9rem;
  padding: 8px 0;
  align-self: flex-start; cursor: pointer;
  margin-bottom: 8px;
}
.pmg-mobile-only { display: none; }

/* --- Free-tier upgrade card (shown when video tab is locked) --- */
.pmg-vs-upgrade-card {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--g2-mint, #3ee0a0) 14%, transparent),
    color-mix(in srgb, #ffd363 8%, transparent));
  border: 1px solid color-mix(in srgb, #ffd363 30%, transparent);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}
.pmg-vs-upgrade-card h4 {
  margin: 0 0 6px; font-size: 1rem;
  color: #ffd363;
}
.pmg-vs-upgrade-card p {
  margin: 0 0 10px;
  font-size: 0.88rem; line-height: 1.5;
  color: color-mix(in srgb, #fff 88%, transparent);
}

/* --- Mobile: bottom sheet + two-step flow --- */
@media (max-width: 768px) {
  #pmg-visual-studio-modal.pmg-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  #pmg-visual-studio-modal .pmg-modal-content {
    width: 100%; max-width: none;
    height: 100vh; height: 100dvh;
    max-height: none;
    border-radius: 18px 18px 0 0;
    border-left: 0; border-right: 0; border-bottom: 0;
    animation: pmgVsSlideUp 220ms ease-out;
  }
  @keyframes pmgVsSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }

  #pmg-visual-studio-modal .pmg-modal-body {
    flex-direction: column;
  }
  #pmg-visual-studio-modal .pmg-modal-col-builder,
  #pmg-visual-studio-modal .pmg-modal-col-result {
    width: 100%; height: 100%;
    border-right: 0;
  }

  .pmg-mobile-only { display: inline-flex; }

  /* Step 1 (default): show builder, hide result */
  #pmg-visual-studio-modal .pmg-modal-body:not(.is-step-2) .pmg-modal-col-result {
    display: none;
  }
  /* Step 2: hide builder, show result */
  #pmg-visual-studio-modal .pmg-modal-body.is-step-2 .pmg-modal-col-builder {
    display: none;
  }
  #pmg-visual-studio-modal .pmg-modal-body.is-step-2 .pmg-modal-col-result {
    display: flex;
  }
}

/* ================ vs-17: Pro Tuning Layer (Quick Starts + Boosts + Modes) ================ */
.pmg-vs-pro-layer {
  background: rgba(0, 200, 150, 0.04);
  border: 1px solid rgba(0, 200, 150, 0.18);
  border-radius: 12px;
  padding: 14px;
}
.pmg-vs-pro-sublabel {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.75;
  margin: 12px 0 8px;
}
.pmg-vs-pro-sublabel:first-of-type { margin-top: 4px; }
.pmg-vs-pro-hint {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.6;
  margin-left: 4px;
}
.pmg-vs-pro-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.pmg-vs-pro-preset {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 200, 150, 0.25);
  border-radius: 10px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.pmg-vs-pro-preset:hover {
  background: rgba(0, 200, 150, 0.08);
  border-color: rgba(0, 200, 150, 0.5);
}
.pmg-vs-pro-preset.is-active {
  background: rgba(0, 200, 150, 0.16);
  border-color: #00c896;
  box-shadow: 0 0 0 2px rgba(0, 200, 150, 0.15);
}
.pmg-vs-pro-preset-emoji { font-size: 20px; line-height: 1; flex: 0 0 auto; }
.pmg-vs-pro-preset-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pmg-vs-pro-preset-title { font-size: 13px; font-weight: 600; }
.pmg-vs-pro-preset-desc { font-size: 11px; opacity: 0.7; line-height: 1.3; }

.pmg-vs-pro-boosts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.pmg-vs-pro-boost {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid rgba(0, 200, 150, 0.3);
  border-radius: 8px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.pmg-vs-pro-boost:hover {
  border-color: rgba(0, 200, 150, 0.6);
  background: rgba(0, 200, 150, 0.05);
}
.pmg-vs-pro-boost[aria-pressed="true"] {
  background: #00c896;
  border-color: #00c896;
  color: #062018;
}
.pmg-vs-pro-boost[aria-pressed="true"] .pmg-vs-pro-boost-desc { opacity: 0.85; }
.pmg-vs-pro-boost-title { font-size: 12px; font-weight: 600; }
.pmg-vs-pro-boost-desc { font-size: 10.5px; opacity: 0.65; line-height: 1.25; }

.pmg-vs-pro-modes { display: flex; flex-direction: column; gap: 8px; }
.pmg-vs-pro-mode {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 200, 150, 0.2);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pmg-vs-pro-mode:hover { border-color: rgba(0, 200, 150, 0.5); }
.pmg-vs-pro-mode input[type="checkbox"] { margin-top: 2px; accent-color: #00c896; cursor: pointer; }
.pmg-vs-pro-mode-body { display: flex; flex-direction: column; gap: 2px; }
.pmg-vs-pro-mode-title { font-size: 13px; font-weight: 600; }
.pmg-vs-pro-mode-desc { font-size: 11px; opacity: 0.7; line-height: 1.3; }
.pmg-vs-pro-mode:has(input:checked) {
  background: rgba(0, 200, 150, 0.12);
  border-color: #00c896;
}

@media (max-width: 768px) {
  .pmg-vs-pro-presets,
  .pmg-vs-pro-boosts { grid-template-columns: 1fr; }
}

/* ============================================================================
 * vs-20 — Image Workshop (upload + enhance) + drag-drop zones.
 * ============================================================================ */
.pmg-vs-workshop textarea {
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 200, 150, 0.25);
  border-radius: 8px;
  color: #e8f5ee;
  font: inherit;
  resize: vertical;
}
.pmg-vs-dropzone {
  position: relative;
  border: 2px dashed rgba(0, 200, 150, 0.45);
  border-radius: 12px;
  background: rgba(0, 200, 150, 0.04);
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  margin-bottom: 10px;
}
.pmg-vs-dropzone:hover,
.pmg-vs-dropzone:focus-visible { border-color: #00c896; background: rgba(0, 200, 150, 0.1); outline: none; }
.pmg-vs-dropzone.is-drag-over { border-color: #00c896; background: rgba(0, 200, 150, 0.18); border-style: solid; }
.pmg-vs-dropzone--inline { padding: 0; border: none; background: transparent; }
.pmg-vs-dropzone--inline.is-drag-over { background: rgba(0, 200, 150, 0.15); border: 2px dashed #00c896; border-radius: 12px; }
.pmg-vs-dropzone-icon { font-size: 28px; margin-bottom: 6px; }
.pmg-vs-dropzone-hint { font-size: 11px; opacity: 0.6; margin-top: 4px; }
.pmg-vs-link-look { color: #00c896; text-decoration: underline; cursor: pointer; }
.pmg-vs-dropzone-preview {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.pmg-vs-dropzone-preview img {
  max-width: 100%; max-height: 220px; border-radius: 8px;
  border: 1px solid rgba(0, 200, 150, 0.3);
}
.pmg-vs-edit-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px;
  margin: 10px 0;
}
.pmg-vs-edit-chip {
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 200, 150, 0.25);
  border-radius: 8px;
  color: #e8f5ee;
  cursor: pointer;
  transition: all 0.12s ease;
}
.pmg-vs-edit-chip:hover { border-color: rgba(0, 200, 150, 0.6); background: rgba(0, 200, 150, 0.06); }
.pmg-vs-edit-chip[aria-pressed="true"] {
  background: #00c896; border-color: #00c896; color: #062018; font-weight: 600;
}
.pmg-vs-edit-result {
  margin-top: 12px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 200, 150, 0.25);
  border-radius: 10px;
}
.pmg-vs-edit-result img {
  width: 100%; max-height: 420px; object-fit: contain;
  border-radius: 6px; background: #0a1f17; margin-bottom: 8px;
}

/* vs-23: child photo warning notice — sits above the build/generate
   row inside the Photography panel left column. Subtle warning-yellow
   tint that doesn't fight the mint primary. */
.pmgv3-child-photo-warning {
  display: flex;
  gap: 12px;
  background: rgba(255, 170, 0, 0.10);
  border: 1px solid rgba(255, 170, 0, 0.30);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 0 16px;
  align-items: flex-start;
}
.pmgv3-child-photo-warning .warning-icon {
  font-size: 18px;
  line-height: 1.2;
  flex: 0 0 auto;
}
.pmgv3-child-photo-warning .warning-content { min-width: 0; }
.pmgv3-child-photo-warning .warning-content strong {
  display: block;
  color: #ffb84d;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.pmgv3-child-photo-warning .warning-content p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.4;
}

/* ====================================================================
   vs-24 — Photography Suite "Epic" upgrade
   Base Style toggle, Lighting & Environment Studio accordion, and
   Expert Tips panel. All three sit inside #pmgv3-panel-photo's left
   column alongside the existing Workshop / Tune / Pro Tuning sections.
   ==================================================================== */

/* ---- Base Style toggle (Photographic vs Digital) ---- */
.pmgv3-photo-style-toggle { margin-top: 0; }
.pmgv3-toggle-group {
  display: flex;
  gap: 8px;
  margin: 8px 0 8px;
}
.pmgv3-toggle-btn {
  flex: 1;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  color: #fff;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  text-align: center;
}
.pmgv3-toggle-btn:hover {
  background: rgba(0, 200, 150, 0.08);
  border-color: rgba(0, 200, 150, 0.5);
}
.pmgv3-toggle-btn.is-active {
  background: rgba(0, 200, 150, 0.15);
  border-color: #00c896;
  color: #00c896;
  font-weight: 600;
}
.pmgv3-style-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 4px 0;
  line-height: 1.45;
}

/* ---- Lighting & Environment Studio accordion ---- */
.pmgv3-lighting-accordion {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 200, 150, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
}
.pmgv3-lighting-acc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
}
.pmgv3-lighting-acc-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-left: auto;
}
.pmgv3-lighting-acc-chevron {
  font-size: 14px;
  color: rgba(0, 200, 150, 0.7);
  transition: transform 0.2s ease;
}
.pmgv3-lighting-accordion.is-open .pmgv3-lighting-acc-chevron { transform: rotate(180deg); }
.pmgv3-lighting-acc-content { display: none; padding-top: 10px; }
.pmgv3-lighting-accordion.is-open .pmgv3-lighting-acc-content { display: block; }
.pmgv3-lighting-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pmgv3-lighting-pill {
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.pmgv3-lighting-pill:hover {
  background: rgba(0, 200, 150, 0.08);
  border-color: rgba(0, 200, 150, 0.5);
}
.pmgv3-lighting-pill[aria-pressed="true"] {
  background: rgba(0, 200, 150, 0.18);
  border-color: #00c896;
  color: #00c896;
  font-weight: 600;
}

/* ---- Expert Tips panel (Family Photos & Face Consistency) ---- */
.pmgv3-expert-tips-panel {
  background: rgba(0, 200, 150, 0.05);
  border: 1px solid rgba(0, 200, 150, 0.20);
  border-radius: 12px;
  padding: 16px;
  margin: 20px 0;
}
.pmgv3-expert-tips-panel .tips-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.pmgv3-expert-tips-panel .tips-icon { font-size: 18px; line-height: 1; }
.pmgv3-expert-tips-panel .tips-header strong {
  color: #00c896;
  font-size: 14px;
  font-weight: 700;
}
.pmgv3-expert-tips-panel .tips-content ul {
  margin: 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.80);
  font-size: 13px;
  line-height: 1.5;
}
.pmgv3-expert-tips-panel .tips-content li { margin-bottom: 8px; }
.pmgv3-expert-tips-panel .tips-content li:last-child { margin-bottom: 0; }
.pmgv3-expert-tips-panel .tips-content li strong { color: rgba(255, 255, 255, 0.95); }

/* ============================================================================
   vs-25 epic-video — Video Suite "Epic" upgrade
   Adds: Camera Movement <select>, Audio Cue <input>, Expert Tips panel.
   The .pmgv3-select and .pmgv3-input base styles already ship with
   pmg-chassis-v3.css (cv3-58), so we only add the tips-panel block and
   tighten the camera/audio container spacing to fit inside the
   pmg-vs-inline-section card.
   ============================================================================ */
.pmgv3-camera-movement,
.pmgv3-audio-injector {
  display: block;
}
.pmgv3-camera-movement .pmgv3-section-label,
.pmgv3-audio-injector  .pmgv3-section-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 6px;
}
.pmgv3-camera-movement .pmgv3-style-hint,
.pmgv3-audio-injector  .pmgv3-style-hint {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.45;
}

/* Pro Tips panel (10,000 Generation Rule) */
.pmgv3-expert-tips-panel {
  background: rgba(0, 200, 150, 0.05);
  border: 1px solid rgba(0, 200, 150, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin: 0;
}
.pmgv3-expert-tips-panel .tips-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.pmgv3-expert-tips-panel .tips-icon {
  font-size: 18px;
  line-height: 1;
}
.pmgv3-expert-tips-panel .tips-header strong {
  color: #00c896;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.pmgv3-expert-tips-panel .tips-content ul {
  margin: 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.55;
}
.pmgv3-expert-tips-panel .tips-content li {
  margin-bottom: 8px;
}
.pmgv3-expert-tips-panel .tips-content li:last-child {
  margin-bottom: 0;
}
.pmgv3-expert-tips-panel .tips-content strong {
  color: #fff;
  font-weight: 600;
}

/* ----------------------------------------------------------------
   ps-1: Photography Suite sub-tabs (Create / Edit / Reverse)
   The Create tab is the 80% case (write a prompt, generate); Edit and
   Reverse are secondary. Layout matches the dark teal chassis tokens.
   ---------------------------------------------------------------- */
.pmgv3-photo-subtabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  background: rgba(0, 0, 0, 0.25);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.photo-subtab {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.6);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.photo-subtab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.photo-subtab:focus-visible {
  outline: 2px solid #00c896;
  outline-offset: 2px;
}
.photo-subtab.active {
  background: rgba(0, 200, 150, 0.15);
  color: #00c896;
  border-color: rgba(0, 200, 150, 0.35);
}
.photo-mode-container {
  animation: pmgPhotoFadeIn .25s ease-in-out;
}
@keyframes pmgPhotoFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 480px) {
  .photo-subtab {
    padding: 8px 8px;
    font-size: 12.5px;
  }
}
