.jg-kv-html,
.jg-kv-html body.jg-kv-page {
  height: auto !important;
  min-height: 0 !important;
}

.jg-kv-html {
  overflow-y: auto !important;
}

body.jg-kv-page {
  background: var(--bg);
  color: var(--fg);
  overflow-y: visible !important;
  --jg-kv-space-1: 6px;
  --jg-kv-space-2: 10px;
  --jg-kv-space-3: 14px;
  --jg-kv-space-4: 18px;
  --jg-kv-space-5: 24px;
  --jg-kv-radius: 18px;
  --jg-kv-radius-lg: 22px;
  --jg-kv-shadow: var(--shadow);
  --jg-kv-shadow-hover: var(--shadow-hover);
  --jg-kv-ease: 180ms ease;
  --jg-kv-accent: var(--accent);
  --jg-kv-accent-2: var(--accent-2);
  --jg-kv-text: var(--fg);
  --jg-kv-muted: var(--muted);
  --jg-kv-fg-secondary: var(--fg-secondary);
  --jg-kv-surface: var(--surface);
  --jg-kv-surface-2: var(--surface-2);
  --jg-kv-elevated: var(--elevated);
  --jg-kv-border: var(--border);
  --jg-kv-border-strong: var(--border-strong);
  --jg-kv-success: var(--success);
}

body.jg-kv-page .container {
  width: min(1760px, calc(100vw - 16px));
  max-width: min(1760px, calc(100vw - 16px));
  padding-left: 8px;
  padding-right: 8px;
  overflow: visible;
}

.jg-kv-flow {
  margin: 8px 0 12px;
}

.jg-kv-flow__list {
  list-style: none;
  margin: 0;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: 999px;
  border: 1px solid var(--jg-kv-border);
  background: var(--jg-kv-surface);
  box-shadow: var(--jg-kv-shadow);
}

.jg-kv-flow__list::-webkit-scrollbar {
  display: none;
}

.jg-kv-flow__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--jg-kv-muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: background var(--jg-kv-ease), color var(--jg-kv-ease);
}

.jg-kv-flow__item + .jg-kv-flow__item::before {
  content: '';
  width: 14px;
  height: 1px;
  margin-right: 2px;
  background: var(--jg-kv-border-strong);
}

.jg-kv-flow__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--jg-kv-surface-2);
  color: var(--jg-kv-muted);
  font-size: 11px;
  font-weight: 900;
}

.jg-kv-flow__item.is-current {
  color: var(--jg-kv-text);
  background: var(--accent-soft, rgba(124, 58, 237, 0.10));
}

.jg-kv-flow__item.is-current .jg-kv-flow__num {
  background: var(--jg-kv-accent);
  color: #fff;
}

.jg-kv-flow__item.is-done {
  color: var(--jg-kv-text);
}

.jg-kv-flow__item.is-done .jg-kv-flow__num {
  background: color-mix(in srgb, var(--jg-kv-success) 16%, transparent);
  color: var(--jg-kv-success);
}

.jg-kv-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--jg-kv-surface) 88%, transparent);
  border-bottom: 1px solid var(--jg-kv-border);
}

.jg-kv-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.jg-kv-logo {
  display: inline-flex;
  align-items: center;
}

.jg-kv-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.jg-kv-header__actions a {
  text-decoration: none;
  color: var(--jg-kv-text);
  font-weight: 800;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--jg-kv-border);
  background: var(--jg-kv-surface);
}

.jg-kv-shell {
  padding-top: 20px;
  padding-bottom: 48px;
}

.jg-kv-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.jg-kv-proof__item,
.jg-kv-headnote,
.jg-kv-categories,
.jg-kv-hero,
.jg-kv-actions,
.jg-kv-templates,
.reviews-section,
.seo-section {
  border: 1px solid var(--jg-kv-border);
  background: var(--jg-kv-surface);
  box-shadow: var(--jg-kv-shadow);
}

.jg-kv-proof__item {
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 6px;
}

.jg-kv-proof__item span {
  font-size: 18px;
}

.jg-kv-proof__item strong {
  font-size: 18px;
  font-weight: 900;
}

.jg-kv-proof__item small {
  color: var(--jg-kv-muted);
  font-size: 12px;
  font-weight: 700;
}

.jg-kv-categories,
.jg-kv-hero,
.jg-kv-actions,
.jg-kv-templates {
  margin-top: 12px;
  border-radius: var(--jg-kv-radius-lg, 22px);
}

.jg-kv-categories {
  padding: 10px;
}

.jg-kv-categories__rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.jg-kv-categories__rail a {
  flex: 0 0 auto;
  text-decoration: none;
  white-space: nowrap;
  color: #334155;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  transition: transform var(--jg-kv-ease, 180ms ease), box-shadow var(--jg-kv-ease, 180ms ease), background var(--jg-kv-ease, 180ms ease), color var(--jg-kv-ease, 180ms ease), border-color var(--jg-kv-ease, 180ms ease);
}

.jg-kv-categories__rail a:hover {
  transform: translateY(-1px);
  border-color: rgba(124, 58, 237, 0.22);
  box-shadow: 0 8px 18px rgba(124, 58, 237, 0.08);
}

.jg-kv-categories__rail a.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.18);
}

.jg-kv-hero,
.jg-kv-actions,
.jg-kv-templates {
  padding: 14px;
}

.jg-kv-hero__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}

.jg-kv-kicker {
  margin: 0 0 8px;
  color: #7c3aed;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jg-kv-sub {
  margin: 8px 0 0;
  max-width: 760px;
  color: #475569;
  font-size: 15px;
  line-height: 1.65;
}

.jg-kv-headnote {
  border-radius: 20px;
  padding: 16px;
  display: grid;
  gap: 6px;
}

.jg-kv-headnote span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.jg-kv-headnote strong {
  font-size: 24px;
  font-weight: 900;
}

.jg-kv-headnote small {
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
}

.jg-kv-product-title {
  display: none;
}

.jg-kv-variants__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.jg-kv-variants__head h2,
.jg-kv-templates__head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
}

.jg-kv-variants__head p,
.jg-kv-templates__head p,
.jg-kv-template-status {
  margin: 6px 0 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}

body.jg-kv-page #stripesRoot {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  gap: 14px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 4px 4px 12px;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 85, 247, 0.55) rgba(124, 58, 237, 0.10);
}

body.jg-kv-page #stripesRoot > .stripe {
  flex: 0 0 clamp(348px, 34vw, 414px);
  min-width: clamp(348px, 34vw, 414px);
  max-width: clamp(348px, 34vw, 414px);
  scroll-snap-align: start;
  align-self: stretch;
}

/* Tek varyant: dikey accordion / stepper (tek sütun) — sadece dijital (.is-sv-stepper) */
.jg-variant-rail-shell.is-single-variant .stripe.is-sv-stepper .jg-discovery-select-expand {
  display: none !important;
}

.jg-variant-rail-shell.is-single-variant #stripesRoot {
  overflow-x: hidden;
  justify-content: flex-start;
}

.jg-variant-rail-shell.is-single-variant #stripesRoot > .stripe.jg-discovery-card.is-sv-stepper {
  flex: 0 0 clamp(348px, 34vw, 420px);
  min-width: clamp(348px, 34vw, 420px);
  max-width: 420px;
  width: 100%;
  scroll-snap-align: start;
}

.jg-variant-rail-shell.is-single-variant #stripesRoot > .stripe.jg-discovery-card.is-sv-stepper.is-expanded {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 14px;
}

.jg-variant-rail-shell.is-single-variant .stripe.is-sv-stepper.is-expanded .jg-discovery-collapse-btn {
  display: none !important;
}

.jg-variant-rail-shell.is-single-variant .stripe.is-sv-stepper.is-expanded .jg-discovery-summary {
  min-height: 0;
  max-height: none;
  opacity: 1;
  transform: none;
  margin: 0;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jg-variant-rail-shell.is-single-variant .stripe.is-sv-stepper.is-expanded .jg-discovery-summary-ctas,
.jg-variant-rail-shell.is-single-variant .stripe.is-sv-stepper.is-expanded .jg-discovery-select-expand,
.jg-variant-rail-shell.is-single-variant .stripe.is-sv-stepper.is-expanded .jg-discovery-summary-qty,
.jg-variant-rail-shell.is-single-variant .stripe.is-sv-stepper.is-expanded .jg-discovery-summary-qtystack,
.jg-variant-rail-shell.is-single-variant .stripe.is-sv-stepper.is-expanded .jg-discovery-summary-meta {
  display: none !important;
}

.jg-variant-rail-shell.is-single-variant .stripe.is-sv-stepper.is-expanded .jg-discovery-summary-photo {
  height: 132px;
  transform: none;
}

.jg-variant-rail-shell.is-single-variant .stripe.is-sv-stepper.is-expanded .jg-discovery-detail {
  display: block;
  max-height: none;
  opacity: 1;
  transform: none;
  padding: 0;
  overflow: visible;
  pointer-events: auto;
  grid-template-columns: none;
  contain: none;
}

.jg-variant-rail-shell.is-single-variant .stripe.is-sv-stepper.is-expanded .left-col,
.jg-variant-rail-shell.is-single-variant .stripe.is-sv-stepper.is-expanded .left-grid,
.jg-variant-rail-shell.is-single-variant .stripe.is-sv-stepper.is-expanded .photo-stack {
  display: none !important;
}

.jg-variant-rail-shell.is-single-variant .stripe.is-sv-stepper.is-expanded .right-col {
  display: block;
  width: 100%;
  min-width: 0;
}

.jg-variant-rail-shell.is-single-variant .stripe.is-sv-stepper .jg-card-detail-toggle,
.jg-variant-rail-shell.is-single-variant .stripe.is-sv-stepper .jg-card-detail-wrap,
.jg-variant-rail-shell.is-single-variant .stripe.is-sv-stepper .qty-title {
  display: none !important;
}

.jg-sv-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.jg-sv-step {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.jg-sv-step.is-pending {
  display: none;
}

.jg-sv-step.is-done {
  background: #f8fafc;
  border-color: rgba(148, 163, 184, 0.2);
}

.jg-sv-step.is-active {
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.08);
}

.jg-sv-step__summary {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  min-height: 44px;
}

.jg-sv-step.is-done .jg-sv-step__summary {
  display: flex;
}

.jg-sv-step.is-done .jg-sv-step__body {
  display: none;
}

.jg-sv-step.is-active .jg-sv-step__body {
  display: block;
  padding: 12px;
}

.jg-sv-step.is-active .jg-sv-step__summary {
  display: none;
}

.jg-sv-step__label {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.jg-sv-step__value {
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.jg-sv-step__value::before {
  content: "✓ ";
  color: #16a34a;
  font-weight: 800;
}

.jg-sv-step__edit {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #7c3aed;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
}

.jg-sv-step__edit:hover {
  background: rgba(124, 58, 237, 0.08);
}

.jg-sv-step__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.jg-sv-step__btn {
  appearance: none;
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: #fff;
  color: #5b21b6;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.jg-sv-step__btn.is-primary {
  background: linear-gradient(180deg, #8b5cf6 0%, #7c3aed 100%);
  border-color: transparent;
  color: #fff;
}

.jg-sv-step__btn:hover {
  filter: brightness(0.98);
}

.jg-sv-step .qty-row,
.jg-sv-step .qty-row.no-label {
  margin: 0;
  grid-template-columns: 1fr;
}

.jg-sv-step .price-grid {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.jg-sv-step[data-jg-sv-key="size"] .price-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jg-sv-step .price-grid .price-item {
  min-height: 44px;
  padding: 10px 8px;
}

.jg-sv-step .custom-size-box {
  box-shadow: none;
}

.jg-sv-step .cta-row {
  flex-direction: column;
  align-items: stretch;
  margin-top: 8px;
}

.jg-sv-step .cta-row .btn {
  width: 100%;
  flex: 0 0 auto;
}

.jg-sv-step .price-box {
  box-shadow: none;
}

body.dark-mode .jg-sv-step {
  background: var(--surface-2, #1e293b);
  border-color: var(--border, rgba(148, 163, 184, 0.22));
}

body.dark-mode .jg-sv-step.is-done {
  background: rgba(15, 23, 42, 0.55);
}

body.dark-mode .jg-sv-step__value {
  color: var(--fg, #e2e8f0);
}

body.dark-mode .jg-sv-step__btn {
  background: transparent;
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.28);
}

body.jg-kv-page #stripesRoot::-webkit-scrollbar {
  height: 12px;
}

body.jg-kv-page #stripesRoot::-webkit-scrollbar-track {
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.06), rgba(168, 85, 247, 0.10));
}

body.jg-kv-page #stripesRoot::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid transparent;
  background: linear-gradient(90deg, rgba(192, 132, 252, 0.88), rgba(147, 51, 234, 0.78)) padding-box;
}

.jg-variant-rail-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 0;
  overflow: visible;
}

.jg-variant-rail-label {
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  align-self: flex-start;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  margin: 2px 0 0;
  padding: 0 2px;
  user-select: none;
  pointer-events: none;
}

.jg-variant-rail-label__text {
  margin: 0;
  color: #475569;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.25;
  white-space: nowrap;
}

.jg-variant-rail-label__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 999px;
  color: #7c3aed;
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.14);
  animation: jgVariantHintNudge 1.6s ease-in-out infinite;
}

.jg-variant-rail-label__arrow svg {
  width: 11px;
  height: 11px;
}

.jg-variant-rail-label.is-single .jg-variant-rail-label__arrow {
  display: none;
  animation: none;
}

@keyframes jgVariantHintNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .jg-variant-rail-label__arrow {
    animation: none;
  }
}

.jg-variant-rail-track {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
}

.jg-variant-rail-track #stripesRoot {
  width: 100%;
}

.jg-variant-rail-shell.is-variant-guiding {
  isolation: isolate;
}

.jg-kv-variant-guide-beam {
  position: absolute;
  inset: -6px 0 2px;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
  border-radius: 28px;
  opacity: 0;
}

.jg-kv-variant-guide-beam.is-playing {
  opacity: 1;
}

.jg-kv-variant-guide-beam__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(168, 85, 247, 0.16), transparent 72%),
    linear-gradient(90deg, rgba(124, 58, 237, 0.04), rgba(192, 132, 252, 0.10), rgba(124, 58, 237, 0.04));
  animation: jgKvGuideAmbient 1.55s ease-in-out 2;
}

.jg-kv-variant-guide-beam__light {
  position: absolute;
  top: -12%;
  bottom: -12%;
  left: 0;
  width: min(38%, 260px);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(216, 180, 254, 0.05) 18%,
    rgba(192, 132, 252, 0.28) 42%,
    rgba(233, 213, 255, 0.72) 50%,
    rgba(168, 85, 247, 0.34) 58%,
    rgba(147, 51, 234, 0.08) 78%,
    transparent 100%
  );
  box-shadow:
    0 0 28px rgba(168, 85, 247, 0.35),
    0 0 64px rgba(124, 58, 237, 0.22);
  filter: blur(1.5px);
  transform: translateX(-120%);
  animation: jgKvGuideSweep 1.55s cubic-bezier(0.22, 0.72, 0.18, 1) 2;
}

body.jg-kv-page #stripesRoot.is-variant-guiding > .stripe.is-variant-guide-card {
  position: relative;
  z-index: 2;
  box-shadow:
    0 0 0 1.5px rgba(168, 85, 247, 0.42),
    0 0 0 6px rgba(168, 85, 247, 0.08),
    0 18px 42px rgba(124, 58, 237, 0.18),
    0 10px 24px rgba(15, 23, 42, 0.06);
  transition: box-shadow 280ms ease, transform 280ms ease;
}

body.jg-kv-page #stripesRoot.is-variant-guiding > .stripe.is-variant-guide-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(135deg, rgba(237, 233, 254, 0.14), transparent 42%, rgba(168, 85, 247, 0.08));
  animation: jgKvGuideCardSheen 1.55s ease-in-out 2;
}

@keyframes jgKvGuideSweep {
  0% {
    transform: translateX(-130%);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    transform: translateX(360%);
    opacity: 0;
  }
}

@keyframes jgKvGuideAmbient {
  0%,
  100% {
    opacity: 0.35;
  }
  45%,
  55% {
    opacity: 1;
  }
}

@keyframes jgKvGuideCardSheen {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jg-kv-variant-guide-beam__light,
  .jg-kv-variant-guide-beam__glow,
  body.jg-kv-page #stripesRoot.is-variant-guiding > .stripe.is-variant-guide-card::after {
    animation: none !important;
  }

  .jg-kv-variant-guide-beam.is-playing {
    opacity: 1;
  }

  .jg-kv-variant-guide-beam__glow {
    opacity: 0.85;
  }

  .jg-kv-variant-guide-beam__light {
    display: none;
  }
}

body.dark-mode .jg-kv-variant-guide-beam__glow {
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(168, 85, 247, 0.22), transparent 72%),
    linear-gradient(90deg, rgba(91, 33, 182, 0.08), rgba(168, 85, 247, 0.16), rgba(91, 33, 182, 0.08));
}

body.dark-mode .jg-kv-variant-guide-beam__light {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(167, 139, 250, 0.08) 18%,
    rgba(192, 132, 252, 0.34) 42%,
    rgba(237, 233, 254, 0.78) 50%,
    rgba(168, 85, 247, 0.38) 58%,
    rgba(124, 58, 237, 0.12) 78%,
    transparent 100%
  );
  box-shadow:
    0 0 34px rgba(168, 85, 247, 0.42),
    0 0 70px rgba(91, 33, 182, 0.28);
}

body.dark-mode.jg-kv-page #stripesRoot.is-variant-guiding > .stripe.is-variant-guide-card,
body.dark-mode #stripesRoot.is-variant-guiding > .stripe.is-variant-guide-card {
  box-shadow:
    0 0 0 1.5px rgba(196, 181, 253, 0.42),
    0 0 0 6px rgba(124, 58, 237, 0.14),
    0 20px 48px rgba(0, 0, 0, 0.42);
}

.jg-kv-modal.is-variant-guide .jg-kv-modal__title {
  letter-spacing: -0.03em;
}

.jg-kv-modal.is-variant-guide .jg-kv-modal__desc {
  color: #64748b;
}

@media (max-width: 520px) {
  .jg-kv-modal.is-variant-guide .jg-kv-modal__desc {
    white-space: normal;
  }
}

.jg-kv-modal.is-single-cta .jg-kv-modal__actions {
  display: grid;
}

.jg-kv-modal.is-single-cta .jg-kv-modal__btn.is-primary {
  width: 100%;
}

body.dark-mode .jg-kv-modal.is-variant-guide .jg-kv-modal__desc {
  color: rgba(226, 232, 240, 0.82);
}

body.jg-kv-guide-open .jg-smart-ai,
body.jg-kv-guide-open .jg-smart-ai-launcher {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.jg-kv-templates.is-awaiting-variant {
  position: relative;
}

.jg-kv-templates.is-awaiting-variant .jg-kv-template-grid {
  opacity: 0.92;
}

.jg-kv-templates.is-awaiting-variant .jg-kv-template-card {
  position: relative;
  opacity: 0.58;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  cursor: not-allowed;
}

.jg-kv-templates.is-awaiting-variant .jg-kv-template-card::before {
  content: 'Lütfen yukarıdan varyant seçiniz';
  position: absolute;
  left: 50%;
  top: 38%;
  z-index: 8;
  transform: translate(-50%, -50%) translateY(4px);
  width: max-content;
  max-width: calc(100% - 18px);
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(124, 58, 237, 0.22);
  background: rgba(255, 255, 255, 0.96);
  color: #6d28d9;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.jg-kv-templates.is-awaiting-variant .jg-kv-template-card:hover {
  transform: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.06);
  z-index: 4;
}

.jg-kv-templates.is-awaiting-variant .jg-kv-template-card:hover::before {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

.jg-kv-templates.is-awaiting-variant .jg-kv-template-card__preview {
  cursor: not-allowed;
}

.jg-kv-templates.is-awaiting-variant .jg-kv-template-card__actions,
.jg-kv-templates.is-awaiting-variant .jg-kv-template-card__face-chip,
.jg-kv-templates.is-awaiting-variant .jg-kv-template-more {
  pointer-events: none;
}

.jg-kv-variant-gate-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px auto 0;
  padding: 10px 14px;
  width: fit-content;
  max-width: calc(100% - 24px);
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.16);
  background: rgba(255, 255, 255, 0.94);
  color: #6d28d9;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.08);
}

.jg-kv-variant-gate-hint[hidden] {
  display: none !important;
}

.jg-variant-rail-shell.is-scrollable .jg-variant-rail-track {
  padding: 0 44px;
}

.jg-variant-rail-shell.is-scrollable .jg-variant-rail-nav {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1;
  pointer-events: auto !important;
}

.jg-variant-rail-shell.is-scrollable .jg-variant-rail-nav:disabled {
  opacity: 0.45;
  pointer-events: none;
}

.jg-variant-rail-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--jg-kv-border-strong, var(--border-strong));
  border-radius: 999px;
  background: var(--jg-kv-elevated, var(--elevated));
  color: var(--jg-kv-text, var(--fg));
  box-shadow: var(--jg-kv-shadow, var(--shadow));
  backdrop-filter: blur(12px);
  cursor: pointer;
  opacity: 1;
  pointer-events: auto;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease, color 160ms ease, border-color 160ms ease, background 160ms ease, filter 160ms ease;
}

.jg-variant-rail-nav:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.04);
  color: #fff;
  border-color: transparent;
  background: var(--jg-kv-accent, var(--accent));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--jg-kv-accent, var(--accent)) 28%, transparent);
}

.jg-variant-rail-nav:active:not(:disabled) {
  transform: translateY(-50%) scale(0.98);
}

.jg-variant-rail-nav:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

.jg-variant-rail-nav:disabled {
  opacity: 0.4;
  cursor: default;
  color: var(--jg-kv-muted, var(--muted));
  border-color: var(--jg-kv-border, var(--border));
  background: var(--jg-kv-surface-2, var(--surface-2));
  box-shadow: none;
  transform: translateY(-50%);
  filter: none;
}

.jg-variant-rail-nav--prev {
  left: 2px;
}

.jg-variant-rail-nav--next {
  right: 2px;
}

.jg-variant-rail-nav svg {
  width: 16px;
  height: 16px;
  display: block;
  pointer-events: none;
}

body.dark-mode .jg-variant-rail-nav {
  border-color: var(--border);
  background: var(--elevated);
  color: var(--fg-secondary);
  box-shadow: var(--shadow);
}

body.dark-mode .jg-variant-rail-nav:hover:not(:disabled) {
  color: #fff;
  background: var(--accent);
  border-color: transparent;
}

body.dark-mode .jg-variant-rail-label__text {
  color: var(--muted);
}

body.dark-mode .jg-variant-rail-label__arrow {
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.16);
  border-color: rgba(167, 139, 250, 0.22);
}

@media (max-width: 720px) {
  .jg-variant-rail-label {
    display: inline-flex;
    margin: 0 0 2px;
    padding: 0 4px;
  }
  .jg-variant-rail-label__text {
    font-size: 12px;
    white-space: normal;
  }
  .jg-variant-rail-shell.is-scrollable .jg-variant-rail-track {
    padding: 0 36px;
  }
  .jg-variant-rail-nav {
    width: 34px;
    height: 34px;
  }
}

body.jg-kv-page .stripe.jg-discovery-card.is-expanded { transform: none; }

.jg-kv-actions__bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.jg-kv-actions__bar button,
.jg-kv-loadbtn,
.jg-kv-panel__actions button,
.jg-kv-panel__actions a {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.jg-kv-actions__bar button {
  background: rgba(124, 58, 237, 0.08);
  color: #334155;
  border: 1px solid rgba(124, 58, 237, 0.12);
}

.jg-kv-actions__bar button.is-active,
.jg-kv-loadbtn,
.jg-kv-panel__actions button {
  color: #fff;
  border-color: transparent;
  background: var(--jg-kv-accent);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--jg-kv-accent) 24%, transparent);
}

.jg-kv-panel__actions a {
  background: var(--jg-kv-surface-2);
  color: var(--jg-kv-text);
  border: 1px solid var(--jg-kv-border);
}

.jg-kv-panels {
  display: grid;
}

.jg-kv-panel {
  display: none;
}

.jg-kv-panel.is-open {
  display: block;
}

.jg-kv-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.jg-kv-panel__card,
.jg-kv-panel__step {
  border-radius: 20px;
  border: 1px solid var(--jg-kv-border);
  background: var(--jg-kv-surface);
  padding: 18px;
}

.jg-kv-panel__card--muted {
  background: var(--jg-kv-surface-2);
}

.jg-kv-panel__eyebrow {
  display: inline-flex;
  color: #7c3aed;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.jg-kv-panel__card h2 {
  margin: 10px 0 8px;
  font-size: 24px;
  line-height: 1.2;
}

.jg-kv-panel__card p,
.jg-kv-panel__card li,
.jg-kv-panel__step small {
  color: #475569;
  line-height: 1.6;
}

.jg-kv-panel__card ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.jg-kv-panel__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.jg-kv-panel__step {
  display: grid;
  gap: 8px;
}

.jg-kv-panel__step strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

.jg-kv-panel__step span {
  font-weight: 900;
  font-size: 17px;
}

.jg-kv-templates__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}

.jg-kv-templates__head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
}

.jg-kv-templates__head p {
  margin: 6px 0 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}

.jg-kv-ai {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "hero hero"
    "person filters";
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 10px;
}

.jg-kv-ai__hero {
  grid-area: hero;
  display: grid;
  gap: 4px;
  border-radius: var(--jg-kv-radius-lg, 22px);
  border: 1px solid var(--jg-kv-border);
  background: var(--jg-kv-surface);
  box-shadow: var(--jg-kv-shadow);
  padding: 12px 14px 12px;
  text-align: center;
}

.jg-kv-ai__brand {
  color: var(--jg-kv-text);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.jg-kv-ai__title {
  margin: 0;
  color: var(--jg-kv-text);
  font-size: clamp(15px, 1.25vw, 20px);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.jg-kv-ai__hint {
  margin: 0 auto;
  max-width: 46ch;
  color: #64748b;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 600;
}

.jg-kv-ai__composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: min(760px, 100%);
  margin: 6px auto 0;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--jg-kv-border);
  background: var(--jg-kv-surface);
  box-shadow: var(--jg-kv-shadow);
}

.jg-kv-ai__input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--jg-kv-text);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.1;
  font-weight: 700;
  box-shadow: none;
}

.jg-kv-ai__input::placeholder {
  color: var(--jg-kv-muted);
}

.jg-kv-ai__input:focus {
  outline: none;
}

.jg-kv-ai__composer:focus-within {
  border-color: color-mix(in srgb, var(--jg-kv-accent) 45%, var(--jg-kv-border));
  box-shadow: 0 0 0 3px var(--ring);
}

.jg-kv-ai__submit {
  appearance: none;
  min-height: 40px;
  min-width: 168px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  border: 0;
  background: var(--jg-kv-accent);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: 0 10px 20px color-mix(in srgb, var(--jg-kv-accent) 22%, transparent);
  transition: background var(--jg-kv-ease, 180ms ease), box-shadow var(--jg-kv-ease, 180ms ease);
}

.jg-kv-ai__submit:hover {
  background: var(--jg-kv-accent-2);
  box-shadow: 0 12px 22px color-mix(in srgb, var(--jg-kv-accent) 28%, transparent);
}

.jg-kv-ai__submit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: lowercase;
}

.jg-kv-ai__submit-text {
  white-space: nowrap;
}

.jg-kv-ai__filters {
  grid-area: filters;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  width: 100%;
}

.jg-kv-ai__chip {
  appearance: none;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--jg-kv-border);
  background: var(--jg-kv-surface);
  color: var(--jg-kv-fg-secondary, var(--jg-kv-text));
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: none;
  transition: background var(--jg-kv-ease, 180ms ease), color var(--jg-kv-ease, 180ms ease), border-color var(--jg-kv-ease, 180ms ease), box-shadow var(--jg-kv-ease, 180ms ease);
}

.jg-kv-ai__chip:hover {
  border-color: var(--jg-kv-border-strong);
  background: var(--jg-kv-surface-2);
  box-shadow: none;
}

.jg-kv-ai__chip.is-active {
  border-color: transparent;
  background: var(--jg-kv-accent);
  color: #fff;
  box-shadow: 0 8px 16px color-mix(in srgb, var(--jg-kv-accent) 22%, transparent);
}

.jg-kv-ai__person {
  grid-area: person;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 5px 6px 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--jg-kv-border);
  background: var(--jg-kv-surface-2);
  box-shadow: none;
}

.jg-kv-ai__person-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}

.jg-kv-ai__person-copy {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  text-align: left;
}

.jg-kv-ai__person-copy strong {
  display: inline;
  margin: 0;
  color: #0f172a;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 900;
}

.jg-kv-ai__person-copy p {
  margin: 0;
  color: var(--jg-kv-muted);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 600;
  white-space: nowrap;
}

.jg-kv-ai__person-edit {
  appearance: none;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--jg-kv-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: none;
  transition: background var(--jg-kv-ease, 180ms ease), opacity var(--jg-kv-ease, 180ms ease);
}

.jg-kv-ai__person-edit:hover {
  background: var(--jg-kv-accent-2);
  opacity: 1;
}

.jg-kv-template-summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  margin: 0 auto 12px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--jg-kv-border);
  background: var(--jg-kv-surface-2);
  color: var(--jg-kv-muted);
  font-size: 12px;
  line-height: 1.1;
  font-weight: 800;
  box-shadow: none;
}

.jg-kv-template-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.jg-kv-templates[data-preview-shape="portrait"] .jg-kv-template-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jg-kv-templates[data-preview-shape="wide"] .jg-kv-template-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jg-kv-template-empty {
  border-radius: 22px;
  border: 1px solid var(--jg-kv-border);
  background: var(--jg-kv-surface);
  box-shadow: var(--jg-kv-shadow);
}

.jg-kv-template-skel {
  border-radius: 22px;
  border: 1px solid var(--jg-kv-border);
  background: var(--jg-kv-surface);
  box-shadow: var(--jg-kv-shadow);
  overflow: hidden;
  min-width: 0;
}

.jg-kv-template-skel__preview {
  aspect-ratio: var(--jg-kv-preview-ar, 1.55);
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.12), rgba(148, 163, 184, 0.22), rgba(148, 163, 184, 0.12));
  background-size: 220% 100%;
  animation: jgKvTplSkel 1.15s ease-in-out infinite;
}

.jg-kv-template-skel__lines {
  display: grid;
  gap: 10px;
  padding: 14px 14px 16px;
}

.jg-kv-template-skel__line {
  display: block;
  height: 12px;
  border-radius: 999px;
  width: 72%;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.12), rgba(148, 163, 184, 0.22), rgba(148, 163, 184, 0.12));
  background-size: 220% 100%;
  animation: jgKvTplSkel 1.15s ease-in-out infinite;
}

.jg-kv-template-skel__line.is-title {
  width: 54%;
  height: 14px;
}

@keyframes jgKvTplSkel {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.jg-kv-templates.is-awaiting-variant .jg-kv-template-skel {
  opacity: 0.72;
}

.jg-kv-template-card {
  border-radius: 22px;
  border: 1px solid var(--jg-kv-border);
  background: var(--jg-kv-surface);
  box-shadow: var(--jg-kv-shadow);
  overflow: hidden;
  display: grid;
  min-width: 0;
  /* Avoid content-visibility + hover height changes (causes scroll/hover jank). */
  contain: layout style;
  transition: border-color 140ms ease;
}

.jg-kv-template-card:hover {
  border-color: rgba(15, 23, 42, 0.10);
}

.jg-kv-template-card__preview {
  position: relative;
  display: block;
  aspect-ratio: var(--ar, 1.55);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
  overflow: hidden;
  contain: layout paint style;
  cursor: pointer;
}

.jg-tpl-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
  transition: opacity 180ms ease;
}

.jg-tpl-overlay.back {
  opacity: 0;
}

.jg-kv-template-card[data-face="back"] .jg-tpl-overlay.front {
  opacity: 0;
}

.jg-kv-template-card[data-face="back"] .jg-tpl-overlay.back {
  opacity: 1;
}

.jg-tpl-overlay .jg-tpl-text {
  position: absolute;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  transform: translateZ(0);
  text-rendering: geometricPrecision;
}

.jg-tpl-overlay img {
  position: absolute;
  object-fit: contain;
  pointer-events: none;
}

.jg-kv-tpl-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Only flip transitions when face changes; keep idle cheap. */
  transition: opacity 160ms ease;
}

.jg-kv-templates[data-preview-shape="portrait"] .jg-kv-tpl-img,
.jg-kv-templates[data-preview-shape="wide"] .jg-kv-tpl-img {
  object-fit: contain;
  background: #ffffff;
}

.jg-kv-tpl-img.is-front {
  opacity: 1;
}

.jg-kv-tpl-img.is-back {
  opacity: 0;
}

.jg-kv-template-card[data-face="back"] .jg-kv-tpl-img.is-front {
  opacity: 0;
}

.jg-kv-template-card[data-face="back"] .jg-kv-tpl-img.is-back {
  opacity: 1;
}

.jg-kv-template-card__preview > img:not(.jg-kv-tpl-img) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jg-kv-template-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.jg-kv-template-card__pro {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.18);
  color: rgba(88, 28, 135, 0.96);
  border: 1px solid rgba(168, 85, 247, 0.34);
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.10), 0 14px 34px rgba(124, 58, 237, 0.14);
}

.jg-kv-template-card__pro[hidden] {
  display: none !important;
}

.jg-kv-template-card__face-chip {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  width: 28px;
  height: 28px;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.88);
  color: #0f172a;
  box-shadow: 0 6px 14px rgba(2, 6, 23, 0.10);
  cursor: pointer;
}

.jg-kv-template-card.has-back .jg-kv-template-card__face-chip {
  display: inline-flex;
}

.jg-kv-template-card__face-chip:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.72);
}

.jg-kv-template-card__face-chip:active {
  transform: translateY(1px);
}

.jg-kv-template-card__lock {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 10px;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, 0.55) 70%, rgba(2, 6, 23, 0.68) 100%);
  pointer-events: none;
}

.jg-kv-template-card.is-locked .jg-kv-template-card__lock {
  display: flex;
}

.jg-kv-template-card__lock-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.78);
  color: #fff;
  font-weight: 950;
  font-size: 12px;
  letter-spacing: 0.01em;
}

.jg-kv-template-card.is-locked .jg-kv-template-card__btn.is-primary {
  background: #94a3b8;
  cursor: not-allowed;
}

.jg-kv-template-card.is-locked .jg-kv-template-card__btn.is-secondary {
  opacity: 0.72;
  cursor: not-allowed;
}

.jg-kv-modal-ov {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.jg-kv-modal-ov.is-light {
  background: rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
}

.jg-kv-modal-ov.is-open {
  display: flex;
}

.jg-kv-modal {
  width: min(420px, 100%);
  border-radius: 18px;
  background: var(--jg-kv-elevated, var(--jg-kv-surface));
  border: 1px solid var(--jg-kv-border);
  box-shadow: var(--jg-kv-shadow-hover);
  padding: 16px 16px 14px;
}

.jg-kv-modal__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.jg-kv-modal__title {
  margin: 0;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -0.02em;
  color: var(--jg-kv-text);
}

.jg-kv-modal__desc {
  margin: 8px 0 0;
  color: var(--jg-kv-muted);
  font-weight: 650;
  line-height: 1.45;
  font-size: 13.5px;
}

.jg-kv-modal__close {
  border: 1px solid var(--jg-kv-border);
  background: var(--jg-kv-surface);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  font-weight: 950;
  cursor: pointer;
  flex: 0 0 auto;
}

.jg-kv-modal__actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}

.jg-kv-modal__btn {
  flex: 1;
  border: 0;
  border-radius: 14px;
  padding: 12px;
  font-weight: 950;
  cursor: pointer;
}

.jg-kv-modal__btn.is-primary {
  background: #0f172a;
  color: #fff;
}

.jg-kv-modal__btn.is-secondary {
  background: #f1f5f9;
  color: #0f172a;
}

.jg-kv-template-card__info {
  display: grid;
  gap: 10px;
  padding: 14px 14px 16px;
  min-width: 0;
}

.jg-kv-template-card__info h3 {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jg-kv-template-card__info p {
  margin: 0;
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.45;
  min-height: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jg-kv-template-card__actions,
.jg-kv-template-more {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.jg-kv-template-card__btn,
.jg-kv-template-morebtn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 13px;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease, opacity 180ms ease;
}

.jg-kv-template-card__btn:hover,
.jg-kv-template-morebtn:hover {
  transform: translateY(-1px);
}

.jg-kv-template-card__btn.is-primary,
.jg-kv-template-morebtn {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.16);
}

.jg-kv-template-card__btn.is-secondary {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.jg-kv-template-card__btn[disabled],
.jg-kv-template-morebtn[disabled] {
  opacity: 0.64;
  cursor: default;
  transform: none;
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  /* Opacity/visibility only — never animate max-height (major layout jank source). */
  .jg-kv-template-card__info p,
  .jg-kv-template-card__actions {
    opacity: 0;
    visibility: hidden;
    height: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    pointer-events: none;
    transform: none;
    transition: opacity 100ms ease, visibility 100ms ease;
  }

  .jg-kv-template-card:hover .jg-kv-template-card__info p,
  .jg-kv-template-card:focus-within .jg-kv-template-card__info p,
  .jg-kv-template-card:hover .jg-kv-template-card__actions,
  .jg-kv-template-card:focus-within .jg-kv-template-card__actions {
    opacity: 1;
    visibility: visible;
    height: auto;
    pointer-events: auto;
  }

  .jg-kv-template-card:hover .jg-kv-template-card__actions,
  .jg-kv-template-card:focus-within .jg-kv-template-card__actions {
    margin-top: 2px !important;
  }

  .jg-kv-template-card__face-chip {
    opacity: 0;
    transition: opacity 100ms ease;
  }

  .jg-kv-template-card:hover .jg-kv-template-card__face-chip,
  .jg-kv-template-card:focus-within .jg-kv-template-card__face-chip,
  .jg-kv-template-card.has-back[data-face="back"] .jg-kv-template-card__face-chip {
    opacity: 1;
  }

  .jg-kv-templates.is-awaiting-variant .jg-kv-template-card:hover .jg-kv-template-card__info p,
  .jg-kv-templates.is-awaiting-variant .jg-kv-template-card:hover .jg-kv-template-card__actions,
  .jg-kv-templates.is-awaiting-variant .jg-kv-template-card:hover .jg-kv-template-card__face-chip {
    opacity: 0;
    visibility: hidden;
    height: 0;
    pointer-events: none;
  }
}

/* Touch / coarse pointer: reveal slogan + actions on press (same as desktop hover) */
@media (hover: none), (pointer: coarse) {
  .jg-kv-template-card__info p,
  .jg-kv-template-card__actions {
    opacity: 0;
    visibility: hidden;
    height: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    pointer-events: none;
    transform: none;
    transition: opacity 100ms ease, visibility 100ms ease;
  }

  .jg-kv-template-card__face-chip {
    opacity: 0;
    transition: opacity 100ms ease;
  }

  .jg-kv-template-card.is-touch-open .jg-kv-template-card__info p,
  .jg-kv-template-card.is-touch-open .jg-kv-template-card__actions {
    opacity: 1;
    visibility: visible;
    height: auto;
    pointer-events: auto;
  }

  .jg-kv-template-card.is-touch-open .jg-kv-template-card__actions {
    margin-top: 2px !important;
  }

  .jg-kv-template-card.is-touch-open .jg-kv-template-card__face-chip,
  .jg-kv-template-card.has-back[data-face="back"] .jg-kv-template-card__face-chip {
    opacity: 1;
  }

  .jg-kv-templates.is-awaiting-variant .jg-kv-template-card.is-touch-open .jg-kv-template-card__info p,
  .jg-kv-templates.is-awaiting-variant .jg-kv-template-card.is-touch-open .jg-kv-template-card__actions,
  .jg-kv-templates.is-awaiting-variant .jg-kv-template-card.is-touch-open .jg-kv-template-card__face-chip {
    opacity: 0;
    visibility: hidden;
    height: 0;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jg-kv-template-card,
  .jg-kv-template-card__info p,
  .jg-kv-template-card__actions,
  .jg-kv-template-card__face-chip,
  .jg-kv-tpl-img,
  .jg-tpl-overlay {
    transition: none !important;
  }
}

.jg-kv-template-more {
  margin-top: 16px;
  justify-content: center;
}

.jg-kv-template-empty {
  grid-column: 1 / -1;
  padding: 24px;
  text-align: center;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
}

.reviews-section,
.seo-section {
  margin-top: 16px;
  border-radius: 24px;
}

@keyframes jgKvShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Premium dark theme (shared token system with light) ── */
body.dark-mode.jg-kv-page {
  color-scheme: dark;
  background: var(--bg) !important;
  color: var(--fg);
}

body.dark-mode.jg-kv-page .container {
  background: transparent !important;
  color: var(--fg) !important;
}

body.dark-mode.jg-kv-page .product-head {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--fg);
}

body.dark-mode.jg-kv-page .product-head .product-title {
  color: var(--fg);
}

body.dark-mode.jg-kv-page .product-head p {
  color: var(--muted);
}

body.dark-mode.jg-kv-page .trust-item {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--muted);
}

body.dark-mode.jg-kv-page .jg-kv-flow__list {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

body.dark-mode.jg-kv-page .jg-kv-flow__item {
  color: var(--muted);
  background: transparent;
}

body.dark-mode.jg-kv-page .jg-kv-flow__item.is-current {
  background: var(--accent-soft);
  color: var(--fg);
}

body.dark-mode.jg-kv-page .jg-kv-flow__item.is-current .jg-kv-flow__num {
  background: var(--accent);
  color: #fff;
}

body.dark-mode.jg-kv-page .jg-kv-flow__item.is-done {
  color: var(--fg-secondary);
}

body.dark-mode.jg-kv-page .jg-kv-flow__item.is-done .jg-kv-flow__num {
  background: color-mix(in srgb, var(--success) 18%, transparent);
  color: var(--success);
}

body.dark-mode.jg-kv-page .jg-quick-chip {
  background: var(--surface);
  border-color: var(--border);
  color: var(--fg-secondary);
  box-shadow: none;
}

body.dark-mode.jg-kv-page .jg-quick-chip:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--fg);
  box-shadow: none;
  filter: none;
}

body.dark-mode.jg-kv-page .jg-quick-chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

body.dark-mode.jg-kv-page .jg-quick-chip.active {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 28%, transparent);
}

body.dark-mode.jg-kv-page .jg-quick-scroll {
  background: var(--elevated);
  border-color: var(--border);
  color: var(--fg-secondary);
  box-shadow: var(--shadow);
}

body.dark-mode.jg-kv-page .jg-quick-scroll:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--fg);
  box-shadow: var(--shadow-hover);
}

body.dark-mode.jg-kv-page .stripe.jg-discovery-card,
body.dark-mode.jg-kv-page html.is-kartvizit-product .stripe.jg-discovery-card {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--jg-kv-radius);
}

body.dark-mode.jg-kv-page .stripe.jg-discovery-card.is-collapsed:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
  background: var(--elevated);
}

body.dark-mode.jg-kv-page .stripe.jg-discovery-card.is-selected,
body.dark-mode.jg-kv-page .stripe.jg-discovery-card.is-expanded {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent),
    var(--shadow-hover);
  background: var(--elevated);
}

body.dark-mode.jg-kv-page .jg-discovery-summary-title {
  color: var(--fg);
}

body.dark-mode.jg-kv-page .jg-discovery-summary-price-main {
  color: var(--success);
}

body.dark-mode.jg-kv-page .jg-discovery-summary-copy,
body.dark-mode.jg-kv-page .jg-discovery-summary .lead-time,
body.dark-mode.jg-kv-page .jg-discovery-summary-review-count,
body.dark-mode.jg-kv-page .jg-discovery-summary-unit,
body.dark-mode.jg-kv-page .jg-discovery-summary-price-old,
body.dark-mode.jg-kv-page .jg-variant-rail-label__text,
body.dark-mode.jg-kv-page .jg-discovery-ai-suitable {
  color: var(--muted);
}

body.dark-mode.jg-kv-page .jg-discovery-ai-suitable__icon {
  color: var(--fg-secondary);
}

body.dark-mode.jg-kv-page .jg-discovery-summary-photo {
  background: var(--surface-2);
  border-color: var(--border);
}

body.dark-mode.jg-kv-page .jg-discovery-summary-tag {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--fg-secondary);
}

body.dark-mode.jg-kv-page .jg-discovery-select-expand {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--fg-secondary);
}

body.dark-mode.jg-kv-page .jg-discovery-select-expand:hover {
  background: var(--elevated);
  border-color: var(--border-strong);
  color: var(--fg);
}

body.dark-mode.jg-kv-page .jg-discovery-mini-btn {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--fg);
  box-shadow: none;
}

body.dark-mode.jg-kv-page .jg-discovery-mini-btn.is-ghost {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--fg-secondary);
}

body.dark-mode.jg-kv-page .jg-discovery-mini-btn.is-ghost:hover {
  background: var(--elevated);
  border-color: var(--border-strong);
  color: var(--fg);
  filter: none;
  transform: none;
}

body.dark-mode.jg-kv-page .jg-discovery-mini-btn.is-primary {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 30%, transparent);
}

body.dark-mode.jg-kv-page .jg-discovery-mini-btn.is-primary:hover {
  background: var(--accent-2);
  filter: none;
  transform: none;
}

body.dark-mode.jg-kv-page .jg-discovery-mini-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

body.dark-mode.jg-kv-page .jg-discovery-summary-qty-select {
  border-color: var(--border);
  color: var(--fg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5.5 7.75L10 12.25L14.5 7.75' stroke='%23a1a1aa' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--surface-2), var(--surface-2));
  box-shadow: none;
}

body.dark-mode.jg-kv-page .jg-discovery-summary-qty-select:hover,
body.dark-mode.jg-kv-page .jg-discovery-summary-qty-select:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px var(--ring);
  outline: none;
}

body.dark-mode.jg-kv-page .jg-discovery-collapse-btn {
  background: var(--elevated);
  border-color: var(--border);
  color: var(--fg-secondary);
}

body.dark-mode.jg-kv-page .jg-howto-head,
body.dark-mode.jg-kv-page .jg-howto-tab {
  background: var(--surface);
  border-color: var(--border);
  color: var(--fg);
  box-shadow: var(--shadow);
}

body.dark-mode.jg-kv-page .jg-howto-tab:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}

body.dark-mode.jg-kv-page .jg-howto-tab.is-active {
  background: var(--elevated);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  color: var(--fg);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
}

body.dark-mode.jg-kv-page .jg-reviews-preview-item {
  background: var(--surface-2);
  border-color: var(--border);
}

body.dark-mode.jg-kv-page .jg-reviews-preview-name {
  color: var(--fg);
}

body.dark-mode.jg-kv-page .jg-reviews-preview-meta,
body.dark-mode.jg-kv-page .jg-reviews-preview-text {
  color: var(--muted);
}

body.dark-mode.jg-kv-page .jg-kv-ai,
body.dark-mode.jg-kv-page .jg-kv-ai__hero,
body.dark-mode.jg-kv-page .jg-kv-ai__person,
body.dark-mode .jg-kv-ai,
body.dark-mode .jg-kv-ai__hero,
body.dark-mode .jg-kv-ai__person {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

body.dark-mode .jg-kv-categories__rail a,
body.dark-mode .jg-kv-panel__actions a,
body.dark-mode .jg-kv-template-card,
body.dark-mode .jg-kv-template-empty,
body.dark-mode .jg-kv-flow,
body.dark-mode .jg-kv-header__actions a,
body.dark-mode .jg-kv-proof__item,
body.dark-mode .jg-kv-headnote,
body.dark-mode .jg-kv-categories,
body.dark-mode .jg-kv-hero,
body.dark-mode .jg-kv-actions,
body.dark-mode .jg-kv-templates,
body.dark-mode .reviews-section,
body.dark-mode .seo-section,
body.dark-mode .jg-kv-panel__card,
body.dark-mode .jg-kv-panel__step {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

body.dark-mode .jg-kv-ai__brand,
body.dark-mode .jg-kv-ai__person-copy strong,
body.dark-mode .jg-kv-template-card__info h3,
body.dark-mode .jg-kv-modal__title,
body.dark-mode .jg-kv-modal__close {
  color: var(--fg);
}

body.dark-mode .jg-kv-ai__title,
body.dark-mode .jg-kv-ai__hint,
body.dark-mode .jg-kv-ai__person-copy p,
body.dark-mode .jg-kv-template-card__info p,
body.dark-mode .jg-kv-template-empty,
body.dark-mode .jg-kv-modal__desc,
body.dark-mode .jg-kv-sub,
body.dark-mode .jg-kv-variants__head p,
body.dark-mode .jg-kv-templates__head p,
body.dark-mode .jg-kv-template-status,
body.dark-mode .jg-kv-headnote small,
body.dark-mode .jg-kv-panel__card p,
body.dark-mode .jg-kv-panel__card li,
body.dark-mode .jg-kv-panel__step small {
  color: var(--muted);
}

body.dark-mode .jg-kv-ai__input,
body.dark-mode .jg-kv-ai__chip,
body.dark-mode .jg-kv-ai__person-edit {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--fg);
  box-shadow: none;
}

body.dark-mode .jg-kv-ai__input:hover,
body.dark-mode .jg-kv-ai__chip:hover,
body.dark-mode .jg-kv-ai__person-edit:hover {
  border-color: var(--border-strong);
  background: var(--elevated);
}

body.dark-mode .jg-kv-ai__input:focus,
body.dark-mode .jg-kv-ai__person-edit:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  box-shadow: 0 0 0 3px var(--ring);
}

body.dark-mode .jg-kv-ai__input::placeholder {
  color: color-mix(in srgb, var(--muted) 70%, transparent);
}

body.dark-mode .jg-kv-template-summary {
  border-color: var(--border);
  background: var(--elevated);
  color: var(--fg-secondary);
  box-shadow: var(--shadow);
}

body.dark-mode .jg-kv-ai__chip.is-active {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}

body.dark-mode .jg-kv-ai__submit {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 28%, transparent);
}

body.dark-mode .jg-kv-ai__submit:hover {
  background: var(--accent-2);
}

body.dark-mode .jg-kv-ai__submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

body.dark-mode .jg-kv-template-card__btn.is-secondary,
body.dark-mode .jg-kv-modal__btn.is-secondary {
  background: var(--surface-2);
  color: var(--fg);
  border-color: var(--border);
}

body.dark-mode .jg-kv-template-card__btn.is-secondary:hover,
body.dark-mode .jg-kv-modal__btn.is-secondary:hover {
  background: var(--elevated);
  border-color: var(--border-strong);
}

body.dark-mode .jg-kv-template-card__pro {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  color: color-mix(in srgb, var(--accent) 70%, #fff);
}

body.dark-mode .jg-kv-modal {
  background: var(--elevated);
  border-color: var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

body.dark-mode .jg-kv-modal__close {
  background: var(--surface-2);
  border-color: var(--border);
}

body.dark-mode.jg-kv-page #stripesRoot {
  scrollbar-color: var(--border-strong) transparent;
}

body.dark-mode.jg-kv-page #stripesRoot::-webkit-scrollbar-track {
  background: transparent;
}

body.dark-mode.jg-kv-page #stripesRoot::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}

body.dark-mode.jg-kv-page .jg-unified-bar,
body.dark-mode.jg-kv-page .jg-templates-embed {
  background: var(--surface);
  border-color: var(--border);
}

body.dark-mode.jg-kv-page .jg-unified-tab {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--fg-secondary);
}

body.dark-mode.jg-kv-page .jg-unified-tab:hover {
  color: var(--fg);
  border-color: var(--border-strong);
}

body.dark-mode.jg-kv-page .jg-micro-toast {
  background: var(--elevated);
  border-color: var(--border);
  color: var(--fg);
  box-shadow: var(--shadow-hover);
}

body.dark-mode.jg-kv-page .jg-social-proof {
  border-color: rgba(139, 92, 246, 0.28);
  background:
    linear-gradient(135deg, #2e1065 0%, #1e1b4b 42%, #0f0f1b 100%);
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.12),
    0 16px 36px rgba(0, 0, 0, 0.45);
  color: #ffffff;
}

body.dark-mode.jg-kv-page .jg-social-proof .jg-social-item,
body.dark-mode.jg-kv-page .jg-social-proof .jg-social-tx {
  color: rgba(255, 255, 255, 0.96);
}

body.dark-mode.jg-kv-page .jg-social-proof .jg-trust-item,
body.dark-mode.jg-kv-page .jg-trust-item {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
}

body.dark-mode.jg-kv-page svg,
body.dark-mode.jg-kv-page .jg-quick-scroll,
body.dark-mode.jg-kv-page .jg-variant-rail-nav {
  color: inherit;
}

@media (max-width: 1100px) {
  .jg-kv-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jg-kv-hero__head,
  .jg-kv-panel__grid,
  .jg-kv-templates__head {
    grid-template-columns: 1fr;
  }

  .jg-kv-ai {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "person"
      "filters";
  }

  .jg-kv-ai__filters {
    justify-content: center;
  }

  .jg-kv-ai__person {
    margin: 0 auto;
  }

  .jg-kv-template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jg-kv-templates[data-preview-shape="portrait"] .jg-kv-template-grid,
  .jg-kv-templates[data-preview-shape="wide"] .jg-kv-template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jg-kv-template-card__face-chip {
    width: 26px;
    height: 26px;
    left: 8px;
    bottom: 8px;
  }

  .jg-kv-template-summary {
    margin-bottom: 10px;
    padding: 0 12px;
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  body.jg-kv-page .container {
    width: calc(100vw - 8px);
    max-width: calc(100vw - 8px);
    padding-left: 4px;
    padding-right: 4px;
  }

  .jg-kv-shell {
    padding-top: 14px;
    padding-bottom: 28px;
  }

  .jg-kv-header__inner {
    min-height: 64px;
  }

  .jg-kv-header__actions {
    display: none;
  }

  .jg-kv-proof {
    grid-template-columns: 1fr 1fr;
  }

  .jg-kv-proof__item,
  .jg-kv-categories,
  .jg-kv-hero,
  .jg-kv-actions,
  .jg-kv-templates,
  .reviews-section,
  .seo-section {
    border-radius: 18px;
  }

  .jg-kv-hero,
  .jg-kv-actions,
  .jg-kv-templates {
    padding: 16px;
  }

  .jg-kv-ai {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "person"
      "filters";
    gap: 8px;
    margin-bottom: 10px;
  }

  .jg-kv-ai__hero {
    border-radius: 18px;
    padding: 12px 12px 10px;
  }

  .jg-kv-ai__brand {
    font-size: 24px;
  }

  .jg-kv-ai__title {
    font-size: 15px;
  }

  .jg-kv-ai__hint {
    font-size: 11px;
  }

  .jg-kv-ai__composer {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 8px;
    padding: 8px;
    border-radius: 18px;
  }

  .jg-kv-ai__input {
    min-height: 40px;
    padding: 0 10px;
  }

  .jg-kv-ai__submit {
    width: 100%;
    min-width: 0;
  }

  .jg-kv-ai__person-copy p {
    display: none;
  }

  .jg-kv-flow__label {
    font-size: 11px;
  }

  .jg-kv-ai__filters {
    justify-content: center;
    gap: 6px;
  }

  .jg-kv-ai__chip {
    min-height: 30px;
    padding: 0 11px;
    font-size: 11.5px;
  }

  .jg-kv-ai__person {
    width: 100%;
    justify-content: space-between;
  }

  .jg-kv-templates__head {
    display: grid;
  }

  body.jg-kv-page #stripesRoot > .stripe {
    flex-basis: min(100%, calc(100vw - 52px));
    min-width: min(100%, calc(100vw - 52px));
    max-width: min(100%, calc(100vw - 52px));
  }

  body.jg-kv-page .jg-variant-rail-shell.is-single-variant #stripesRoot > .stripe.jg-discovery-card.is-sv-stepper {
    flex-basis: min(100%, calc(100vw - 52px));
    min-width: min(100%, calc(100vw - 52px));
    max-width: min(100%, calc(100vw - 52px));
  }

  body.jg-kv-page #stripesRoot {
    gap: 10px;
    padding: 2px 2px 10px;
  }

  .jg-kv-template-grid {
    grid-template-columns: 1fr;
  }

  .jg-kv-templates[data-preview-shape="portrait"] .jg-kv-template-grid,
  .jg-kv-templates[data-preview-shape="wide"] .jg-kv-template-grid,
  .jg-kv-templates[data-preview-shape="landscape"] .jg-kv-template-grid {
    grid-template-columns: 1fr;
  }

  .jg-kv-template-summary {
    width: 100%;
    min-height: 32px;
    padding: 8px 12px;
    border-radius: 14px;
    text-align: center;
    white-space: normal;
  }
}
