:root {
  --bg: #07080d;
  --bg-soft: #0b0c12;
  --surface: #111218;
  --surface-strong: #151720;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(160, 110, 255, 0.34);
  --text: #f7f4ff;
  --muted: #a4a0ad;
  --muted-strong: #d6d0df;
  --primary: #8b4dff;
  --primary-2: #c24bff;
  --accent: #51d6ff;
  --success: #49e6a2;
  --shadow: 0 22px 70px rgba(91, 40, 190, 0.2);
  --radius: 8px;
  --radius-sm: 6px;
  --surface-raised: var(--surface-strong);
  --max: 1120px;
  --fs-body: 15px;
  --fs-h1: 34px;
  --fs-h2: 30px;
  --fs-h3: 17.50px;
  --fs-lead: 18px;
  --fs-button: 14px;
  --fs-caption: 13px;
  --fs-small: 12px;
  --fs-display: 36px;
  --lh-body: 1.55;
  --lh-heading: 1.16;
  --section-panel-padding: clamp(2rem, 4vw, 2.7rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Mulish", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

body.menu-open {
  overflow: hidden;
}

/* Product media V1 */
.prompt-card .prompt-art,
.detail-art.prompt-art {
  height: auto;
  aspect-ratio: 4 / 3;
}

.detail-thumb-button {
  min-width: 0;
  padding: 0;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

.detail-thumb-button .cart-thumb {
  min-height: 82px;
  border: 0;
}

.detail-thumb-button:hover {
  border-color: var(--line-strong);
}

.detail-thumb-button.is-selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(127, 86, 239, 0.2);
}

.detail-thumb-button:focus-visible {
  outline: 3px solid rgba(127, 86, 239, 0.4);
  outline-offset: 2px;
}

.admin-media-manager {
  display: grid;
  gap: 14px;
  padding: 16px 0;
  border-block: 1px solid var(--line);
}

.admin-media-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.admin-media-heading h3 {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-h3);
}

.admin-media-heading p,
.admin-media-selection,
.admin-media-empty {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: var(--fs-caption);
}

.admin-media-picker {
  position: relative;
  min-height: 40px;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--text) !important;
  white-space: nowrap;
  overflow: hidden;
}

.admin-media-picker[hidden] {
  display: none !important;
}

.admin-media-picker-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-media-picker.is-secondary {
  border-color: var(--line);
  background: transparent;
}

.admin-media-picker:hover {
  background: var(--surface-hover);
}

.admin-media-picker:focus-within {
  outline: 3px solid rgba(127, 86, 239, 0.42);
  outline-offset: 2px;
}

.admin-media-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  opacity: 0;
}

.admin-media-picker svg {
  width: 16px;
  height: 16px;
}

.admin-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-media-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

.admin-media-preview {
  position: relative;
  min-height: 96px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  background: #161821;
}

.admin-media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-media-primary {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 4px 7px;
  border-radius: 5px;
  color: #e8ddff;
  background: #35265a;
  font-size: 10px;
  font-weight: 800;
}

.admin-media-item > label {
  align-self: start;
}

.admin-media-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-media-actions .icon-button {
  width: 44px;
  height: 44px;
}

.admin-media-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
  color: var(--muted);
  font-size: var(--fs-caption);
}

.admin-media-empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.prompt-art.is-image-error,
.cart-thumb.is-image-error,
.admin-media-preview.is-image-error {
  display: grid;
  place-items: center;
  background: #171a23;
}

.prompt-art.is-image-error::before,
.cart-thumb.is-image-error::before,
.admin-media-preview.is-image-error::before {
  content: "PM";
  position: static;
  color: var(--text-subtle);
  font-size: 13px;
  font-weight: 800;
}

.prompt-art.is-image-error::after,
.cart-thumb.is-image-error::after,
.admin-media-preview.is-image-error::after {
  display: none;
}

@media (max-width: 760px) {
  .admin-media-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-media-picker {
    justify-content: center;
  }

  .admin-media-picker-group {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-media-grid {
    grid-template-columns: 1fr;
  }

  .admin-media-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}

/* Product detail purchase area: compact, natural-height composition. */
body[data-customer-surface="detail"] .product-detail-shell .detail-layout {
  align-items: stretch;
}

body[data-customer-surface="detail"] .detail-media {
  min-height: 0;
  padding: 20px;
}

body[data-customer-surface="detail"] .detail-media-fallback .detail-art.prompt-art {
  aspect-ratio: 4 / 3;
}

body[data-customer-surface="detail"] .product-detail-shell .detail-panel {
  align-self: start;
  min-height: 0;
  height: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

body[data-customer-surface="detail"] .detail-price-block {
  margin-top: 16px;
  padding: 8px 0 0;
}

body[data-customer-surface="detail"] .product-action-row {
  margin-top: 16px;
}

body[data-customer-surface="detail"] .detail-description {
  min-height: 0;
  margin-top: 16px;
  padding: 0;
  display: block;
}

body[data-customer-surface="detail"] .trust-badges {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
  padding-top: 14px;
}

body[data-customer-surface="detail"] .trust-badge {
  justify-content: center;
}

body[data-customer-surface="detail"] .text-preview-meta {
  margin: 22px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body[data-customer-surface="detail"] .text-preview-meta div {
  padding: 0;
  background: transparent;
}

body[data-customer-surface="detail"] .text-preview-meta dt {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

body[data-customer-surface="detail"] .text-preview-meta dd {
  margin-top: 5px;
  color: var(--muted-strong);
  font-weight: 500;
}

body[data-customer-surface="detail"] .text-preview-section {
  margin-top: 24px;
}

@media (min-width: 981px) {
  body[data-customer-surface="detail"] .detail-layout > .detail-media {
    align-self: stretch;
    contain: size;
    overflow: hidden;
  }

  body[data-customer-surface="detail"] .detail-image-gallery {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  body[data-customer-surface="detail"] .detail-video-gallery {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
  }

  body[data-customer-surface="detail"] .detail-audio-gallery {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  body[data-customer-surface="detail"] .detail-image-stage,
  body[data-customer-surface="detail"] .detail-player-stage {
    min-height: 0;
    aspect-ratio: auto;
  }

  body[data-customer-surface="detail"] .detail-audio-stage {
    min-height: 0;
  }

  body[data-customer-surface="detail"] .detail-text-preview {
    height: 100%;
    max-height: none;
    overflow-y: auto;
  }

  body[data-customer-surface="detail"] .detail-media-fallback {
    grid-template-rows: minmax(0, 1fr) auto;
    align-content: stretch;
  }

  body[data-customer-surface="detail"] .detail-media-fallback .detail-art.prompt-art {
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }
}

@media (max-width: 640px) {
  body[data-customer-surface="detail"] .detail-media,
  body[data-customer-surface="detail"] .product-detail-shell .detail-panel {
    padding: 16px;
  }

  body[data-customer-surface="detail"] .trust-badges {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  body[data-customer-surface="detail"] .trust-badge {
    justify-content: center;
    font-size: 9px;
  }
}

/* Customer typography pilot: compact Mulish scale for high-traffic routes. */
body[data-customer-surface] {
  --fs-body: 14.5px;
  --fs-h1: 30px;
  --fs-h2: 24px;
  --fs-h3: 16px;
  --fs-lead: 15px;
  --fs-button: 13.5px;
  --fs-caption: 12.5px;
  --fs-small: 11.5px;
  --fs-display: 34px;
  --lh-body: 1.62;
  --lh-heading: 1.2;
}

body[data-customer-surface] .page-heading {
  max-width: 720px;
  margin-bottom: 26px;
}

body[data-customer-surface] .page-heading h1 {
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

body[data-customer-surface] .page-heading span {
  max-width: 68ch;
  font-size: 14.5px;
  line-height: 1.65;
}

body[data-customer-surface] .page-heading p,
body[data-customer-surface] .panel-eyebrow,
body[data-customer-surface] .dashboard-section-head p {
  font-size: 11.5px;
  letter-spacing: 0.12em;
}

body[data-customer-surface] .pill-button,
body[data-customer-surface] .icon-text-button,
body[data-customer-surface] .text-link {
  font-size: 13.5px;
}

body[data-customer-surface="home"] .hero-content h1 {
  max-width: 680px;
  font-size: clamp(30px, 3.2vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.018em;
}

body[data-customer-surface="home"] .hero-copy {
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.62;
}

body[data-customer-surface="home"] .section-heading h2,
body[data-customer-surface="home"] .faq-section > .container > .section-heading h2 {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.012em;
}

body[data-customer-surface="home"] .section-heading p,
body[data-customer-surface="home"] .quality-copy p {
  font-size: 14px;
  line-height: 1.65;
}

body[data-customer-surface="home"] .quality-copy h2 {
  max-width: 420px;
  font-size: clamp(24px, 2.4vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

body[data-customer-surface="home"] .quality-kicker {
  font-size: 11.5px;
  letter-spacing: 0.12em;
}

body[data-customer-surface="home"] .benefit-card h3 {
  font-size: 15px;
  line-height: 1.35;
}

body[data-customer-surface="home"] .benefit-card p {
  font-size: 13.5px;
  line-height: 1.65;
}

body[data-customer-surface="home"] .faq-list summary {
  font-size: 16px;
  line-height: 1.35;
}

body[data-customer-surface="home"] .faq-list p {
  font-size: 14px;
  line-height: 1.65;
}

body[data-customer-surface] .site-footer h2 {
  font-size: 0.72rem;
  line-height: 1.35;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body[data-customer-surface] .site-footer a:not(.brand) {
  font-size: 0.86rem;
  line-height: 1.5;
}

body[data-customer-surface] .site-footer p {
  max-width: 44ch;
  font-size: 0.9rem;
  line-height: 1.65;
}

body[data-customer-surface] .site-footer .copyright {
  font-size: 11.5px;
  line-height: 1.5;
}

body[data-customer-surface="catalog"] .catalog-search input,
body[data-customer-surface="catalog"] .filter-pill,
body[data-customer-surface="catalog"] .filter-dropdown-button,
body[data-customer-surface="catalog"] .filter-dropdown-option,
body[data-customer-surface="catalog"] .listing-summary {
  font-size: 13px;
  line-height: 1.4;
}

body[data-customer-surface="detail"] .detail-title {
  max-width: 24ch;
  font-size: clamp(27px, 2.1vw, 31px);
  line-height: 1.16;
  letter-spacing: -0.018em;
}

body[data-customer-surface="detail"] .detail-title.is-long {
  font-size: clamp(25px, 1.8vw, 28px);
  line-height: 1.18;
}

body[data-customer-surface="detail"] .detail-title.is-very-long {
  font-size: clamp(23px, 1.6vw, 26px);
  line-height: 1.2;
}

body[data-customer-surface="detail"] .detail-price {
  font-size: 28px;
  line-height: 1.1;
}

body[data-customer-surface="detail"] .detail-description,
body[data-customer-surface="detail"] .product-detail-card p {
  font-size: 14.5px;
  line-height: 1.65;
}

body[data-customer-surface="detail"] .product-detail-card h2,
body[data-customer-surface="detail"] .related-prompts-section .section-heading h2 {
  font-size: 18px;
  line-height: 1.3;
}

body[data-customer-surface="cart"] .cart-row h2,
body[data-customer-surface="checkout"] .cart-row h2 {
  font-size: 15px;
  line-height: 1.35;
}

body[data-customer-surface="cart"] .cart-row p,
body[data-customer-surface="checkout"] .checkout-user-box span,
body[data-customer-surface="checkout"] .checkout-user-box small,
body[data-customer-surface="checkout"] .summary-panel p {
  font-size: 12.5px;
  line-height: 1.55;
}

body[data-customer-surface="cart"] .summary-panel > strong,
body[data-customer-surface="checkout"] .summary-panel > strong {
  font-size: 24px;
  line-height: 1.1;
}

body[data-customer-surface="checkout"] .form-panel label,
body[data-customer-surface="checkout"] .legal-acknowledgement legend {
  font-size: 13px;
  line-height: 1.45;
}

body[data-customer-surface="checkout"] .form-panel input,
body[data-customer-surface="checkout"] .form-panel textarea {
  font-size: 14px;
}

body[data-customer-surface="dashboard"] .dashboard-section-head h2,
body[data-customer-surface="dashboard"] .security-panel h2 {
  font-size: 18px;
  line-height: 1.3;
}

body[data-customer-surface="dashboard"] .dashboard-stats strong {
  font-size: 24px;
  line-height: 1;
}

body[data-customer-surface="dashboard"] .dashboard-library-heading h3,
body[data-customer-surface="dashboard"] .dashboard-actions strong {
  font-size: 14px;
  line-height: 1.35;
}

body[data-customer-surface="dashboard"] .dashboard-actions small,
body[data-customer-surface="dashboard"] .dashboard-library-heading span {
  font-size: 11.5px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  body[data-customer-surface] {
    --fs-h1: 26px;
    --fs-h2: 22px;
    --fs-display: 28px;
  }

  body[data-customer-surface] .page-heading h1 {
    font-size: 26px;
  }

  body[data-customer-surface="home"] .hero-content h1 {
    font-size: 28px;
    line-height: 1.12;
  }

  body[data-customer-surface="home"] .section-heading h2,
  body[data-customer-surface="home"] .faq-section > .container > .section-heading h2 {
    font-size: 22px;
  }

  body[data-customer-surface="home"] .faq-list summary {
    font-size: 15px;
  }

  body[data-customer-surface="detail"] .detail-title,
  body[data-customer-surface="detail"] .detail-title.is-long,
  body[data-customer-surface="detail"] .detail-title.is-very-long {
    max-width: 28ch;
    font-size: 24px;
    line-height: 1.2;
  }
}

/* Product-type media experiences */
.detail-media {
  position: relative;
  min-width: 0;
  min-height: 560px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.detail-media-heading .detail-media-favorite {
  position: static;
}

.detail-media-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.detail-media-heading h2,
.detail-audio-stage h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
}

.detail-media-heading p,
.detail-media-current span,
.detail-audio-stage p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.detail-media-favorite {
  z-index: 3;
  flex: 0 0 auto;
}

.detail-image-stage,
.detail-player-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--bg);
}

.detail-image-stage {
  background: var(--surface);
}

.detail-image-stage .detail-media-favorite,
.detail-player-stage .detail-media-favorite,
.detail-audio-stage .detail-media-favorite,
.detail-media-fallback .detail-media-favorite {
  position: absolute;
  top: 12px;
  right: 12px;
}

.detail-image-open {
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
  border: 0;
  background: var(--surface);
}

.detail-image-open > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.detail-image-open > span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  color: var(--text);
  background: rgba(6, 7, 10, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  font-size: 12px;
}

.detail-image-open svg,
.detail-media-option svg {
  width: 16px;
  height: 16px;
}

.detail-media-selector {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.detail-media-option {
  flex: 0 0 auto;
  min-width: 0;
  cursor: pointer;
  color: var(--muted-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

.detail-media-option:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong, var(--line-strong));
}

.detail-media-option.is-selected {
  color: var(--text);
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(127, 86, 239, 0.17);
}

.detail-media-option:focus-visible,
.detail-image-open:focus-visible,
.product-lightbox button:focus-visible {
  outline: 3px solid rgba(127, 86, 239, 0.42);
  outline-offset: 2px;
}

.detail-image-selector .detail-media-option {
  width: 86px;
  height: 72px;
  padding: 0;
  overflow: hidden;
}

.detail-image-selector img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-lightbox {
  width: min(1280px, calc(100vw - 32px));
  max-width: none;
  height: min(860px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  padding: 58px 18px 16px;
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.product-lightbox[open] {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
}

.product-lightbox.has-controls[open] {
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
}

.product-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.84);
}

.lightbox-image-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  background: var(--surface);
}

.lightbox-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  transform: scale(1);
  transform-origin: 50% 50%;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
  .lightbox-image-wrap {
    cursor: zoom-in;
  }

  .lightbox-image-wrap.is-zoomed {
    cursor: zoom-out;
  }

  .lightbox-image-wrap.is-zoomed img {
    transform: scale(2);
    transform-origin: var(--lightbox-origin-x, 50%) var(--lightbox-origin-y, 50%);
  }
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--text);
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

.lightbox-close svg,
.lightbox-controls svg {
  width: 18px;
  height: 18px;
}

.lightbox-controls {
  grid-row: 2;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .lightbox-image-wrap img {
    transition: none;
  }
}

.lightbox-controls button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--text);
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

.detail-player-stage {
  aspect-ratio: 16 / 10;
}

.detail-player-stage video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #050608;
}

.detail-media-current {
  margin-top: 14px;
  display: grid;
  gap: 2px;
}

.detail-media-current strong {
  color: var(--text);
  font-size: 17px;
}

.detail-video-selector .detail-media-option,
.detail-audio-selector .detail-media-option {
  width: min(210px, 48vw);
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.detail-media-option > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.detail-media-option b,
.detail-media-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-media-option b {
  color: inherit;
  font-size: 12px;
}

.detail-media-option small {
  color: var(--muted);
  font-size: 10px;
}

.media-option-poster {
  position: relative;
  width: 62px;
  height: 46px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.media-option-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-option-poster svg {
  position: absolute;
  left: 50%;
  top: 50%;
  color: #fff;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 1px 4px #000);
}

.detail-audio-stage {
  position: relative;
  min-height: 430px;
  padding: 54px clamp(24px, 5vw, 52px);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 24px;
  text-align: center;
  border-radius: var(--radius);
  background: var(--surface-raised);
}

.detail-audio-stage small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-audio-stage audio {
  width: min(100%, 520px);
  color-scheme: dark;
}

.audio-wave-mark {
  height: 84px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.audio-wave-mark i {
  width: 5px;
  height: calc(24px + var(--wave) * 5px);
  max-height: 80px;
  border-radius: var(--radius-sm);
  background: var(--primary);
}

.detail-audio-selector .detail-media-option {
  min-height: 70px;
}

.detail-audio-selector .detail-media-option > svg {
  color: var(--primary);
  flex: 0 0 auto;
}

.detail-text-preview {
  max-height: 680px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.detail-text-preview.is-compact {
  min-height: 0;
  max-height: none;
}

.detail-text-preview:focus-visible {
  outline: 3px solid rgba(127, 86, 239, 0.42);
  outline-offset: 3px;
}

.text-preview-legacy-empty {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.text-preview-meta {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.text-preview-meta div {
  padding: 14px 16px;
  background: var(--surface-raised);
}

.text-preview-meta dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.text-preview-meta dd {
  margin: 5px 0 0;
  color: var(--text);
  font-weight: 800;
}

.text-preview-section {
  margin-top: 28px;
}

.text-preview-section h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 16px;
}

.text-preview-section pre {
  margin: 0;
  color: var(--muted-strong);
  font: inherit;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.text-preview-section.is-output {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.detail-media-empty,
.detail-media-fallback > p {
  color: var(--muted);
}

.detail-media-fallback {
  position: relative;
  display: grid;
  align-content: center;
  gap: 14px;
  text-align: center;
}

.detail-media-fallback .detail-art {
  width: 100%;
  max-width: 560px;
  margin: auto;
}

.admin-type-fields {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-quiet);
}

.admin-type-fields[hidden] {
  display: none;
}

.admin-type-fields-heading {
  grid-column: 1 / -1;
}

.admin-type-fields-heading h3 {
  margin: 0;
  font-size: var(--fs-h3);
}

.admin-type-fields-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: var(--fs-caption);
}

.admin-type-fields > label:nth-last-child(2),
.admin-type-fields > label:last-child {
  grid-column: 1 / -1;
}

.admin-form .admin-long-textarea {
  min-height: 220px;
}

.admin-legacy-fields {
  padding: 12px 0;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.admin-legacy-fields summary {
  cursor: pointer;
  font-size: var(--fs-caption);
  font-weight: 800;
}

.admin-legacy-fields label {
  margin-top: 12px;
}

.admin-media-queue {
  display: grid;
  gap: 10px;
}

.admin-media-queue[hidden] {
  display: none;
}

.admin-media-queue-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

.admin-media-queue-preview {
  min-height: 90px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--bg);
}

.admin-media-queue-preview img,
.admin-media-queue-preview video,
.admin-media-preview video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.admin-media-queue-copy,
.admin-media-fields {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.admin-media-queue-copy > strong,
.admin-media-queue-copy > small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-media-queue-copy > small {
  color: var(--muted);
  font-size: 11px;
}

.admin-media-file-icon {
  min-height: 90px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  color: var(--muted);
  text-align: center;
}

.admin-media-file-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.admin-media-file-icon b {
  max-width: 100%;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-image-stage.is-image-error,
.media-option-poster.is-image-error,
.admin-media-queue-preview.is-image-error {
  display: grid;
  place-items: center;
  background: var(--surface-raised);
}

.detail-image-stage.is-image-error::after,
.media-option-poster.is-image-error::after,
.admin-media-queue-preview.is-image-error::after {
  content: "Önizleme kullanılamıyor";
  padding: 8px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

@media (max-width: 980px) {
  .detail-media {
    min-height: 0;
  }

  .detail-text-preview {
    max-height: none;
  }
}

@media (max-width: 640px) {
  .detail-media {
    padding: 14px;
  }

  .detail-image-stage,
  .detail-player-stage {
    aspect-ratio: 4 / 3;
  }

  .detail-image-open > span b {
    display: none;
  }

  .detail-image-open > span {
    width: 34px;
    justify-content: center;
    padding: 0;
  }

  .detail-media-favorite {
    width: 44px;
    height: 44px;
  }

  .detail-audio-stage {
    min-height: 350px;
    padding: 42px 16px 24px;
  }

  .audio-wave-mark {
    transform: scale(0.82);
  }

  .text-preview-meta {
    grid-template-columns: 1fr;
  }

  .detail-media-selector {
    margin-inline: -2px;
  }

  .product-lightbox {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
    padding-inline: 8px;
  }

  .admin-type-fields {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .admin-type-fields > * {
    grid-column: 1 !important;
  }

  .admin-media-queue-item {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .admin-media-pagination {
    align-items: stretch;
    flex-direction: column;
  }
}

body.app-booting main,
body.app-booting footer {
  display: none;
}

body.app-ready main,
body.app-ready footer {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.narrow {
  width: min(calc(100% - 32px), 640px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  overflow: visible;
  background: rgba(7, 8, 13, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.app-notice {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 14px;
  color: var(--text);
  background: rgba(17, 18, 24, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: var(--fs-caption);
  font-weight: 800;
  backdrop-filter: blur(16px);
}

.app-notice.is-success {
  border-color: rgba(73, 230, 162, 0.3);
}

.app-notice.is-warning {
  border-color: rgba(255, 214, 107, 0.32);
}

.app-notice.is-info {
  border-color: rgba(139, 77, 255, 0.32);
}

.nav-shell {
  position: relative;
  z-index: 2001;
  overflow: visible;
  min-height: 68px;
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  color: var(--text);
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 8px;
  background: var(--primary);
  box-shadow: none;
}

.brand-mark svg {
  width: 18px;
  height: 18px;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: var(--fs-button);
  font-weight: 600;
}

.nav-links a,
.ghost-link,
.text-link {
  transition: color 180ms ease;
}

.nav-links a:hover,
.ghost-link:hover,
.text-link:hover {
  color: var(--text);
}

.nav-actions {
  position: relative;
  z-index: 2002;
  overflow: visible;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--fs-button);
}

.ghost-link {
  color: var(--muted);
  font-weight: 600;
}

.cart-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
  transition: color 180ms ease;
}

.cart-link:hover {
  color: var(--text);
}

.cart-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  color: var(--text);
  background: rgba(139, 77, 255, 0.22);
  border: 1px solid rgba(174, 100, 255, 0.45);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  box-shadow: 0 0 18px rgba(139, 77, 255, 0.22);
}

.login-button {
  color: #fff;
  background: var(--primary);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.login-button:hover {
  background: #7350dd;
}

.login-button svg {
  width: 16px;
  height: 16px;
}

.account-menu {
  position: relative;
  z-index: 2003;
  display: inline-flex;
}

.account-menu::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 240px;
  height: 12px;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 2100;
  width: 236px;
  padding: 8px;
  display: grid;
  gap: 4px;
  color: var(--text);
  background: rgba(24, 24, 38, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(139, 77, 255, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  backdrop-filter: blur(18px);
}

.account-dropdown[hidden] {
  display: none;
}

.account-menu.is-authenticated:hover .account-dropdown,
.account-menu.is-authenticated:focus-within .account-dropdown,
.account-menu.is-authenticated.is-open .account-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.account-dropdown a {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  color: var(--text);
  border-radius: var(--radius);
  font-size: var(--fs-button);
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.account-dropdown a:hover,
.account-dropdown a:focus-visible {
  color: #fff;
  background: rgba(139, 77, 255, 0.14);
  outline: none;
  transform: translateX(2px);
}

.account-dropdown svg {
  width: 18px;
  height: 18px;
  color: rgba(247, 244, 255, 0.9);
  flex: 0 0 auto;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.pill-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 800;
  font-size: var(--fs-button);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.pill-button:hover {
  transform: translateY(-1px);
}

.pill-button.light {
  color: #111218;
  background: #fff;
}

.pill-button.dark {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

.pill-button.subtle {
  color: var(--text);
  background: var(--surface-strong);
  border-color: var(--line);
}

.pill-button.large {
  min-height: 42px;
  padding: 0 20px;
  font-size: var(--fs-button);
}

.pill-button svg {
  width: 18px;
  height: 18px;
}

.hero-section {
  position: relative;
  z-index: 20;
  overflow: visible;
  min-height: 380px;
  max-height: 380px;
  display: grid;
  align-items: center;
  background: #0b0c11;
}

.hero-section::before {
  display: none;
}

.hero-glow {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 30;
  padding: 24px 0 19px;
  text-align: center;
}

.announcement {
  width: fit-content;
  margin: 0 auto 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted-strong);
  font-size: var(--fs-caption);
  font-weight: 600;
}

.announcement span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 18px var(--success);
}

.hero-content h1 {
  max-width: 820px;
  margin: 0 auto;
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
  font-weight: 800;
}

.hero-content h1 strong,
.quality-copy h2 strong {
  display: block;
  color: #b7a4f8;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.hero-copy {
  max-width: 660px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: var(--fs-lead);
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.search-panel {
  width: min(100%, 600px);
  min-height: 52px;
  margin: 16px auto 0;
  padding: 6px;
  position: relative;
  z-index: 50;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 12px;
  border-radius: 12px;
  background: rgba(7, 8, 13, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.search-panel svg {
  width: 22px;
  height: 22px;
  margin-left: 12px;
  color: var(--muted);
}

.search-panel input {
  min-width: 0;
  height: 44px;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
}

.search-panel input::placeholder {
  color: #6f6a78;
}

.search-panel > button[type="submit"] {
  min-width: 84px;
  height: 44px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 1000;
  max-height: min(380px, 58vh);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.search-results-dropdown[hidden] {
  display: none;
}

.search-results-dropdown::-webkit-scrollbar {
  width: 8px;
}

.search-results-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
  border: 2px solid var(--surface-strong);
  border-radius: 999px;
  background: var(--line-strong);
}

.search-results-header {
  min-height: 34px;
  padding: 0 10px;
  position: sticky;
  top: -6px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted-strong);
  background: var(--surface-strong);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
}

.search-results-header small {
  color: var(--muted);
  font-size: inherit;
  font-weight: 600;
}

.search-results-list {
  display: grid;
}

.search-result-item,
.search-result-empty {
  width: 100%;
  text-align: left;
  color: var(--text);
  border: 0;
  background: transparent;
}

.search-panel .search-result-item {
  min-width: 0;
  min-height: 64px;
  height: auto;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border-radius: 6px;
  border-bottom: 1px solid var(--line-subtle);
  color: var(--text);
  background: transparent;
  font-family: inherit;
  font-weight: inherit;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.search-results-list .search-result-item:last-child {
  border-bottom-color: transparent;
}

.search-panel .search-result-item:hover {
  background: var(--surface-hover);
}

.search-panel .search-result-item:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
  background: var(--surface-hover);
}

.search-result-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.search-result-item strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-price {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.search-panel .search-result-item:hover strong,
.search-panel .search-result-item:focus-visible strong {
  color: #c9b8ff;
}

.search-result-empty {
  min-height: 72px;
  padding: 16px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.model-strip {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: #080710;
}

.model-strip-track {
  --model-strip-gap: clamp(42px, 7vw, 96px);
  min-height: 90px;
  width: max-content;
  min-width: max-content;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  color: rgba(139, 134, 226, 0.28);
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
  transform: translate3d(0, 0, 0);
  animation: modelMarquee 32s linear infinite;
  will-change: transform;
}

.model-strip-group {
  min-width: max-content;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--model-strip-gap);
  padding-right: var(--model-strip-gap);
}

.model-strip-track span {
  flex: 0 0 auto;
}

@keyframes modelMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .model-strip-track {
    animation-duration: 90s;
  }
}


.section {
  padding: var(--section-panel-padding) 0;
}

.bordered {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.01);
}

.section-heading {
  margin-bottom: 38px;
}

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading.centered {
  text-align: center;
}

.section-heading h2,
.quality-copy h2 {
  margin: 0;
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  letter-spacing: 0;
}

.section-heading p,
.quality-copy p,
.site-footer p {
  color: var(--muted);
  margin: 12px 0 0;
}

.text-link {
  color: var(--primary-2);
  font-weight: 800;
  white-space: nowrap;
}

.text-link::after {
  content: " ->";
}

.prompt-carousel,
.category-carousel {
  position: relative;
}

.prompt-grid,
.category-grid {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.prompt-grid {
  --prompt-card-width: calc((100% - 54px) / 4);
  gap: 18px;
}

.category-grid {
  --category-tile-width: calc((100% - 70px) / 6);
  gap: 14px;
}

.prompt-grid::-webkit-scrollbar,
.category-grid::-webkit-scrollbar {
  display: none;
}

.prompt-card,
.category-tile,
.benefit-card,
.faq-list details {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.prompt-card {
  flex: 0 0 var(--prompt-card-width);
  overflow: hidden;
  min-width: 0;
  scroll-snap-align: start;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.prompt-card.is-hovered {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.prompt-card.is-highlighted {
  border-color: var(--line-strong);
  box-shadow: 0 18px 48px rgba(139, 77, 255, 0.14);
}

.slider-button {
  position: absolute;
  top: 50%;
  z-index: 8;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--text);
  background: rgba(7, 8, 13, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(14px);
  transition: opacity 260ms ease, transform 260ms ease, background 180ms ease, border-color 180ms ease;
}

.slider-button:hover {
  background: rgba(17, 18, 24, 0.82);
  border-color: rgba(255, 255, 255, 0.24);
}

.slider-button svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

.slider-prev {
  left: 12px;
  transform: translate(-8px, -50%);
}

.slider-next {
  right: 12px;
  transform: translate(8px, -50%);
}

.prompt-carousel:hover .slider-button,
.prompt-carousel:focus-within .slider-button,
.category-carousel:hover .slider-button,
.category-carousel:focus-within .slider-button {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%);
}

.related-prompts-section {
  margin-top: var(--section-panel-padding);
}

.related-prompts-section .section-heading {
  margin-bottom: 20px;
}

.related-grid.is-static {
  overflow: visible;
  scroll-snap-type: none;
}

.related-grid.is-static .prompt-card {
  flex-grow: 0;
}

.related-grid .prompt-card {
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: box-shadow;
}

.related-grid .prompt-card.is-hovered {
  transform: translateZ(0);
}

.section-cta {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.prompt-art {
  position: relative;
  height: 170px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #161821;
}

.prompt-art::before,
.prompt-art::after {
  content: "";
  position: absolute;
  inset: 0;
}

.prompt-art::after {
  display: none;
}

.prompt-art.has-uploaded-image::before {
  display: none;
}

.prompt-art.has-uploaded-image img,
.cart-thumb.has-uploaded-image img,
.detail-thumbs .cart-thumb.has-uploaded-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-saas::before {
  background: #17232c;
}

.art-code::before {
  background: #17251f;
}

.art-image::before {
  background: #22253a;
}

.art-pitch::before {
  background: #1a1822;
}

.favorite-button {
  position: absolute;
  z-index: 2;
  right: 10px;
  top: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  color: var(--text);
  background: rgba(7, 8, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.favorite-button:hover {
  transform: scale(1.04);
  border-color: rgba(255, 255, 255, 0.22);
}

.favorite-button svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.2;
}

.favorite-button.is-favorite,
.favorite-button[aria-pressed="true"] {
  color: #ff5f8f;
  background: rgba(255, 95, 143, 0.16);
  border-color: rgba(255, 95, 143, 0.34);
}

.favorite-button.is-favorite svg,
.favorite-button[aria-pressed="true"] svg {
  fill: currentColor;
}

.owned-badge {
  position: absolute;
  z-index: 2;
  left: 10px;
  top: 10px;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  color: #b9f5d0;
  background: rgba(73, 230, 162, 0.16);
  border: 1px solid rgba(185, 245, 208, 0.28);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.owned-inline-badge,
.owned-text {
  color: #b9f5d0;
}

.card-body {
  padding: 12px 14px 14px;
  min-height: 90px;
  display: flex;
  flex-direction: column;
}

.badge-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.model-badge,
.category-badge {
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.model-chatgpt {
  color: #b9f5d0;
  background: rgba(91, 214, 143, 0.18);
  border: 1px solid rgba(185, 245, 208, 0.24);
}

.model-claude {
  color: #ffd2a8;
  background: rgba(255, 166, 92, 0.18);
  border: 1px solid rgba(255, 210, 168, 0.24);
}

.model-midjourney {
  color: #decaff;
  background: rgba(170, 124, 255, 0.2);
  border: 1px solid rgba(222, 202, 255, 0.25);
}

.category-badge {
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.prompt-card h3,
.benefit-card h3 {
  margin: 0;
  font-size: var(--fs-h3);
  line-height: 1.25;
}

.prompt-card h3 {
  font-size: 13px;
  line-height: 1.28;
  min-height: calc(13px * 1.28 * 2);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.prompt-card p,
.benefit-card p,
.faq-list p {
  color: var(--muted);
  margin: 10px 0 0;
}

.card-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: var(--fs-caption);
}

.card-meta strong {
  color: var(--text);
  font-size: var(--fs-button);
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.category-tile {
  flex: 0 0 var(--category-tile-width);
  min-height: 130px;
  padding: 20px 12px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted-strong);
  scroll-snap-align: start;
  transition: border-color 180ms ease, background 180ms ease;
}

.category-tile:hover {
  border-color: var(--line-strong);
  background: rgba(139, 77, 255, 0.1);
}

.icon-shell {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.icon-shell svg {
  width: 22px;
  height: 22px;
}

.category-tile strong {
  margin-top: 10px;
}

.category-tile small {
  color: var(--muted);
}

.quality-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 72px;
}

.quality-copy p {
  max-width: 500px;
  margin-bottom: 24px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.benefit-card {
  padding: 22px;
}

.mini-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  color: #d9c8ff;
  background: rgba(139, 77, 255, 0.24);
}

.mini-icon svg {
  width: 18px;
  height: 18px;
}

.faq-section {
  background: #080910;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.faq-column {
  display: grid;
  gap: 12px;
}

.faq-list details {
  overflow: hidden;
}

.faq-list summary {
  min-height: 58px;
  padding: 18px 22px;
  list-style: none;
  cursor: pointer;
  font-weight: 800;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--muted);
}

.faq-list details[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  padding: 0 22px 20px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #0a0b10;
}

.footer-grid {
  padding: 58px 0;
  display: grid;
  grid-template-columns: 1.45fr repeat(3, minmax(0, 0.75fr));
  gap: 48px;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: var(--fs-caption);
}

.site-footer a:not(.brand) {
  display: block;
  color: var(--muted);
  margin-top: 10px;
}

.copyright {
  min-height: 64px;
  display: flex;
  align-items: center;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: var(--fs-caption);
}

.page-shell {
  min-height: 64vh;
  padding: var(--section-panel-padding) 0;
  position: relative;
  isolation: isolate;
  overflow: visible;
  background: var(--bg);
}

.page-shell::before {
  display: none;
}

.page-shell > .container {
  position: relative;
  z-index: 1;
}

.page-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.page-heading p {
  margin: 0 0 8px;
  color: var(--primary-2);
  font-size: var(--fs-caption);
  font-weight: 800;
}

.page-heading h1 {
  margin: 0;
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
}

.page-heading span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: var(--fs-lead);
}

.prompts-toolbar {
  margin: 0 0 22px;
  position: sticky;
  top: 68px;
  z-index: 16;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: visible;
  padding: 8px 0 12px;
  background: transparent;
  border-radius: 999px;
  transition: background 180ms ease, box-shadow 180ms ease, backdrop-filter 180ms ease;
}

.prompts-toolbar.is-stuck {
  background: rgba(7, 8, 13, 0.82);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

.prompt-type-tabs {
  width: fit-content;
  min-height: 58px;
  padding: 6px;
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
  overflow: visible;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
}

.filter-pill {
  min-height: 44px;
  min-width: 60px;
  padding: 0 10px;
  flex: 0 0 auto;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: var(--fs-button);
  font-weight: 800;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.filter-pill:hover {
  color: var(--text);
}

.filter-pill.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.prompt-filter-row {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.filter-select {
  width: 152px;
  min-width: 0;
  flex: 0 0 152px;
  position: relative;
  display: grid;
  gap: 0;
  color: var(--muted-strong);
  font-size: var(--fs-button);
  font-weight: 800;
}

.filter-select select,
.filter-dropdown-button {
  min-height: 58px;
  min-width: 0;
  width: 100%;
  padding: 0 30px 0 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  appearance: none;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-select select {
  appearance: auto;
  background: rgba(255, 255, 255, 0.045);
}

.filter-dropdown-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
}

.filter-dropdown-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-dropdown-button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  transition: transform 180ms ease;
}

.filter-dropdown.is-open .filter-dropdown-button svg {
  transform: rotate(180deg);
}

.filter-select select:focus,
.filter-dropdown-button:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(139, 77, 255, 0.16);
}

.filter-select select:hover,
.filter-dropdown-button:hover {
  color: var(--text);
}

.filter-select option {
  color: var(--text);
  background: var(--surface);
}

.filter-dropdown-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  width: 100%;
  min-width: 100%;
  max-height: 320px;
  overflow-y: auto;
  display: none;
  padding: 6px;
  border-radius: var(--radius);
  background: rgba(17, 18, 24, 0.98);
  border: 1px solid var(--line);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  overscroll-behavior: contain;
  scrollbar-color: rgba(139, 77, 255, 0.5) rgba(255, 255, 255, 0.05);
}

.filter-dropdown.is-open .filter-dropdown-menu {
  display: grid;
  gap: 4px;
}

.filter-dropdown-option {
  min-height: 38px;
  width: 100%;
  padding: 0 10px;
  overflow: hidden;
  color: var(--muted-strong);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--fs-caption);
  font-weight: 800;
  cursor: pointer;
}

.filter-dropdown-option:hover,
.filter-dropdown-option.is-selected {
  color: var(--text);
  background: rgba(139, 77, 255, 0.16);
  border-color: rgba(139, 77, 255, 0.22);
}

.sort-select {
  width: 220px;
  flex-basis: 220px;
  margin-left: auto;
}

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

.listing-grid .prompt-card {
  flex: initial;
}

.prompts-load-state {
  min-height: 60px;
  margin-top: 28px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: var(--fs-caption);
  font-weight: 700;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.route-card {
  cursor: pointer;
}

.detail-layout,
.cart-layout,
.checkout-layout,
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 24px;
  align-items: start;
}

.product-detail-shell {
  padding-top: clamp(2.6rem, 5vw, 4rem);
}

.product-detail-shell .detail-layout {
  align-items: stretch;
}

.product-detail-shell .detail-panel {
  min-height: 560px;
  display: flex;
  flex-direction: column;
}

.detail-gallery,
.detail-panel,
.product-detail-card,
.form-panel,
.summary-panel,
.stack-panel,
.prompt-content-panel,
.empty-panel,
.status-panel,
.dashboard-card,
.library-row {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.detail-gallery,
.detail-panel,
.product-detail-card,
.form-panel,
.summary-panel,
.prompt-content-panel,
.empty-panel,
.status-panel {
  padding: 22px;
}

.detail-art.prompt-art {
  height: 420px;
  border-radius: var(--radius);
}

.detail-thumbs {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.detail-thumbs span,
.cart-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #161821;
  border: 1px solid var(--line);
}

.detail-thumbs span {
  min-height: 82px;
}

.detail-price {
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1;
}

.detail-price-block {
  display: grid;
  gap: 6px;
}

.detail-price-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.detail-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-original-price {
  color: rgba(214, 208, 223, 0.48);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  text-decoration-thickness: 2px;
}

.discount-badge {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #b9f5d0;
  background: rgba(73, 230, 162, 0.14);
  border: 1px solid rgba(185, 245, 208, 0.24);
  font-size: var(--fs-caption);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.detail-title {
  margin: 0 0 10px;
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  letter-spacing: 0;
}

.legal-document-lead > svg {
  color: #f0c96f;
}

.legal-document a,
.check-row a {
  color: #caa8ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-detail-shell .detail-badges {
  margin: 0 0 12px;
}

.detail-description {
  max-width: 58ch;
  margin: 14px 0 0;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.product-action-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-action-row .pill-button {
  width: 100%;
}

.product-action-row .full-button {
  grid-column: 1 / -1;
}

.detail-badges {
  margin: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trust-badges {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.trust-badge {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.trust-badge svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: #964DFF;
  stroke-width: 2.2;
}

.detail-panel p,
.product-detail-card p,
.summary-panel p,
.empty-panel p,
.status-panel p,
.prompt-content-panel pre,
.library-row small {
  color: var(--muted);
}

.product-extra-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 24px;
  align-items: stretch;
}

.product-detail-card {
  height: clamp(280px, 34vw, 360px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-detail-card h2 {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
}

.product-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-write-button {
  min-height: 34px;
  padding: 0 14px;
  color: var(--text);
  background: var(--primary);
  border: 1px solid rgba(178, 102, 255, 0.42);
  border-radius: 8px;
  box-shadow: none;
  font-size: var(--fs-small);
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.review-write-button:hover {
  filter: brightness(1.05);
}

.product-detail-card > p {
  min-height: 0;
  margin: 16px 0 0;
  padding-right: 8px;
  overflow-y: auto;
  line-height: var(--lh-body);
}

.review-list {
  min-height: 0;
  margin-top: 16px;
  display: grid;
  gap: 12px;
  padding-right: 8px;
  overflow-y: auto;
}

.product-detail-card > p,
.review-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 77, 255, 0.48) rgba(255, 255, 255, 0.045);
}

.product-detail-card > p::-webkit-scrollbar,
.review-list::-webkit-scrollbar {
  width: 7px;
}

.product-detail-card > p::-webkit-scrollbar-track,
.review-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.045);
  border-radius: 999px;
}

.product-detail-card > p::-webkit-scrollbar-thumb,
.review-list::-webkit-scrollbar-thumb {
  background: rgba(139, 77, 255, 0.48);
  border-radius: 999px;
}

.review-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.075);
}

.review-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: var(--muted-strong);
  background: rgba(139, 77, 255, 0.16);
  border: 1px solid rgba(139, 77, 255, 0.22);
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-avatar svg {
  width: 18px;
  height: 18px;
}

.review-content {
  min-width: 0;
}

.review-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.review-head strong,
.review-head span {
  display: block;
}

.review-head strong {
  color: var(--text);
  font-size: var(--fs-caption);
  line-height: 1.25;
}

.review-head span {
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.25;
}

.review-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: rgba(214, 208, 223, 0.32);
  flex: 0 0 auto;
}

.review-stars span {
  display: inline-flex;
}

.review-stars .is-filled {
  color: #ffd66b;
}

.review-stars svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  stroke-width: 1.7;
}

.review-card p {
  margin: 10px 0 0;
  font-size: var(--fs-caption);
  line-height: 1.5;
}

.review-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.review-actions button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 700;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.review-actions button:hover {
  color: var(--text);
  background: rgba(139, 77, 255, 0.12);
  border-color: rgba(139, 77, 255, 0.22);
}

.review-actions svg {
  width: 13px;
  height: 13px;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.full-button {
  width: 100%;
}

.auth-page-shell {
  min-height: calc(100svh - 68px);
  display: grid;
  align-items: center;
  padding-block: clamp(20px, 4vh, 36px);
}

.review-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: var(--fs-small);
}

.card-price-stack { display: grid; justify-items: end; gap: 3px; flex: 0 0 auto; }
.card-rating { display: inline-flex; align-items: center; gap: 3px; color: #ffd66b; font-size: 10px; font-style: normal; }
.card-rating svg { width: 11px; height: 11px; fill: currentColor; }
.card-rating i { color: var(--muted); font-style: normal; }

.review-summary strong {
  color: var(--text);
  font-size: var(--fs-body);
}

.review-editor,
.review-gate,
.review-empty,
.review-loading {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.review-gate,
.review-empty {
  display: grid;
  gap: 4px;
}

.review-gate p,
.review-empty strong,
.review-empty span,
.review-loading {
  margin: 0;
  font-size: var(--fs-caption);
}

.review-gate a {
  width: fit-content;
  color: var(--accent-soft);
  font-size: var(--fs-caption);
  font-weight: 800;
}

.review-editor {
  display: grid;
  gap: 10px;
}

.review-status {
  width: fit-content;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: var(--fs-small);
  font-weight: 800;
}

.review-status.is-approved { color: #8de5b7; border-color: rgba(74, 222, 128, 0.28); }
.review-status.is-rejected { color: #ff9a9a; border-color: rgba(248, 113, 113, 0.28); }

.review-moderation-note {
  margin: 0;
  color: #ffb0b0;
  font-size: var(--fs-small);
}

.review-rating-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.review-rating-field legend,
.review-text-field {
  color: var(--muted-strong);
  font-size: var(--fs-small);
  font-weight: 800;
}

.review-rating-input {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.review-rating-input label { cursor: pointer; }
.review-rating-input input { position: absolute; opacity: 0; pointer-events: none; }
.review-rating-input span { display: grid; place-items: center; color: rgba(214, 208, 223, 0.32); }
.review-rating-input svg { width: 20px; height: 20px; fill: currentColor; }
.review-rating-input label:has(input:checked) span,
.review-rating-input label:has(~ label input:checked) span { color: #ffd66b; }
.review-rating-input label:focus-within span { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.review-text-field { display: grid; gap: 6px; }
.review-text-field textarea {
  min-height: 84px;
  resize: vertical;
  padding: 10px 12px;
  color: var(--text);
  background: var(--surface-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  line-height: 1.5;
}
.review-text-field textarea:focus { outline: 2px solid rgba(139, 77, 255, 0.34); border-color: var(--accent); }
.review-editor-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.review-editor-actions .pill-button { min-height: 36px; padding: 0 14px; }
.review-editor > small { color: var(--muted); font-size: var(--fs-small); }
.review-load-more { margin: 12px auto 0; }

.admin-review-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.admin-review-filters input,
.admin-review-filters select,
.admin-review-moderation input {
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  color: var(--text);
  background: var(--surface-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}

.admin-review-list { display: grid; gap: 12px; }
.admin-review-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}
.admin-review-card > header { display: flex; justify-content: space-between; gap: 16px; }
.admin-review-card > header div { display: grid; gap: 3px; }
.admin-review-card > header span { color: var(--muted); font-size: var(--fs-small); }
.admin-review-card > .review-stars { margin-top: 10px; }
.admin-review-card > p { margin: 10px 0; white-space: pre-wrap; font-size: var(--fs-caption); line-height: 1.55; }
.admin-review-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: var(--fs-small); }
.admin-review-moderation { display: grid; grid-template-columns: minmax(220px, 1fr) repeat(4, auto); gap: 8px; margin-top: 14px; }
.admin-review-audit { margin: 12px 0 0; padding: 10px 10px 10px 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-small); }
.admin-review-audit li { margin-top: 5px; }
.admin-review-audit strong { margin-left: 8px; color: var(--muted-strong); }

@media (max-width: 760px) {
  .admin-review-filters,
  .admin-review-moderation { grid-template-columns: 1fr; }
  .admin-review-card > header,
  .admin-review-meta { align-items: flex-start; flex-direction: column; }
  .review-editor-actions > * { flex: 1 1 auto; justify-content: center; }
}

.auth-page-shell .container {
  display: grid;
  justify-items: center;
}

.auth-layout {
  width: min(100%, 420px);
  display: grid;
  justify-items: center;
}

.form-panel.auth-panel {
  width: 100%;
  gap: 12px;
  padding: 20px;
}

.auth-panel-heading {
  margin-bottom: 2px;
}

.auth-panel-heading h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

:where(
  [data-auth-form="login"],
  [data-auth-form="register"],
  [data-forgot-form]
) .auth-panel-heading h1 {
  font-weight: 900;
}

.google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 18px;
  color: var(--text);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--state-fast), border-color var(--state-fast), box-shadow var(--state-fast);
}

.google-mark {
  display: block;
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.google-btn:hover {
  background: var(--surface-hover);
  border-color: var(--line-strong);
}

.google-btn:active {
  background: var(--surface);
}

.google-btn:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(127, 86, 239, 0.2);
}

.google-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: var(--fs-caption);
  font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.auth-side-link {
  width: fit-content;
  margin-top: -6px;
  justify-self: end;
  font-size: var(--fs-caption);
}

.password-strength {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: var(--fs-caption);
  font-weight: 800;
}

.password-strength span {
  height: 5px;
  width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.password-strength span::before {
  content: "";
  display: block;
  height: 100%;
  width: 34%;
  border-radius: inherit;
  background: #ff7a7a;
}

.password-strength[data-level="orta"] span::before {
  width: 66%;
  background: #ffd66b;
}

.password-strength[data-level="güçlü"] span::before {
  width: 100%;
  background: #49e6a2;
}

.password-strength {
  gap: 8px;
  font-weight: 700;
}

.password-strength-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.password-strength .password-strength-track span {
  width: 100%;
  height: 4px;
  overflow: visible;
  border-radius: 999px;
  background: var(--line);
  transition: background-color var(--state-fast);
}

.password-strength .password-strength-track span::before {
  content: none;
}

.password-strength p {
  margin: 0;
}

.password-strength p span {
  width: auto;
  height: auto;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.password-strength p span::before {
  content: none;
}

.password-strength[data-level="weak"] {
  color: #ef9292;
}

.password-strength[data-level="weak"] .password-strength-track span:first-child {
  background: #d86d6d;
}

.password-strength[data-level="medium"] {
  color: #e4c471;
}

.password-strength[data-level="medium"] .password-strength-track span:nth-child(-n + 2) {
  background: #cba94f;
}

.password-strength[data-level="strong"] {
  color: var(--success);
}

.password-strength[data-level="strong"] .password-strength-track span {
  background: var(--success);
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field > label {
  color: var(--muted-strong);
  font-size: var(--fs-caption);
  font-weight: 800;
}

.password-field {
  position: relative;
}

.auth-panel .password-field input {
  padding-inline-end: 52px;
}

.password-visibility-button {
  position: absolute;
  z-index: 1;
  inset-block-start: 50%;
  inset-inline-end: 6px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color var(--state-fast), background-color var(--state-fast), box-shadow var(--state-fast);
}

.password-visibility-button:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.password-visibility-button:focus-visible {
  outline: none;
  color: var(--text);
  box-shadow: 0 0 0 2px var(--primary);
}

.password-visibility-button .lucide {
  width: 18px;
  height: 18px;
}

.form-message {
  margin: 0;
  color: var(--muted-strong);
  font-size: var(--fs-caption);
  font-weight: 700;
}

.form-panel {
  display: grid;
  gap: 16px;
}

.form-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted-strong);
  font-size: var(--fs-caption);
  font-weight: 800;
}

.form-panel input,
.form-panel select,
.form-panel textarea {
  min-height: 48px;
  width: 100%;
  padding: 0 14px;
  color: var(--text);
  background: rgba(7, 8, 13, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  font: inherit;
}

.form-panel textarea {
  min-height: 150px;
  padding-top: 13px;
  resize: vertical;
}

.form-panel input:focus,
.form-panel select:focus,
.form-panel textarea:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(139, 77, 255, 0.16);
}

.check-row {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
}

.check-row input {
  min-height: 18px;
  margin-top: 3px;
  accent-color: var(--primary);
}

.legal-acknowledgement {
  min-width: 0;
  margin: 0;
  padding: 14px;
  color: var(--muted-strong);
  background: rgba(139, 77, 255, 0.08);
  border: 1px solid rgba(171, 123, 255, 0.22);
  border-radius: var(--radius);
}

.legal-acknowledgement legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.legal-acknowledgement legend svg {
  width: 16px;
  height: 16px;
  color: var(--primary-2);
}

.legal-acknowledgement .check-row {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
}

.form-field-error {
  margin: 8px 0 0 28px;
  color: #ffb4b4;
  font-size: 13px;
  line-height: 1.4;
}

.form-field-error[hidden] {
  display: none;
}

.captcha-placeholder {
  min-height: 58px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.16);
}

.checkout-user-box,
.mock-payment-box {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.checkout-user-box span,
.mock-payment-box span {
  color: var(--muted);
  font-size: var(--fs-caption);
}

.checkout-user-box strong,
.mock-payment-box strong {
  color: var(--text);
}

.centered-link {
  width: fit-content;
  margin: 0 auto;
}

.auth-panel label,
.auth-panel .auth-field {
  gap: 6px;
}

.auth-panel input {
  min-height: 44px;
}

.auth-panel input:-webkit-autofill,
.auth-panel input:-webkit-autofill:hover,
.auth-panel input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--surface-quiet) inset !important;
  caret-color: var(--text);
  border-color: var(--line);
  box-shadow: 0 0 0 1000px var(--surface-quiet) inset !important;
  transition: background-color 9999s ease-out;
}

.auth-panel input:-webkit-autofill:focus {
  border-color: var(--line-strong);
  -webkit-box-shadow: 0 0 0 1000px var(--surface-quiet) inset, 0 0 0 3px rgba(127, 86, 239, 0.16) !important;
  box-shadow: 0 0 0 1000px var(--surface-quiet) inset, 0 0 0 3px rgba(127, 86, 239, 0.16) !important;
}

.auth-panel .captcha-placeholder {
  min-height: 48px;
}

.auth-panel .check-row {
  align-items: center;
  gap: 8px;
  line-height: 1.35;
}

.auth-panel .check-row input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
}

.auth-legal-consent {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

.auth-legal-consent a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.auth-legal-consent a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-legal-consent a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (max-width: 420px) {
  .auth-legal-consent {
    font-size: 9px;
    white-space: normal;
  }
}

.auth-footer-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: var(--fs-caption);
}

.auth-footer-links.is-single {
  justify-content: center;
}

.auth-footer-links .text-link {
  white-space: nowrap;
}

.cart-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.cart-row:last-child {
  border-bottom: 0;
}

.cart-thumb {
  width: 76px;
  height: 62px;
}

.cart-row h2,
.detail-panel h2,
.prompt-content-panel h2,
.empty-panel h2,
.status-panel h2 {
  margin: 0;
  font-size: var(--fs-h3);
  line-height: 1.25;
}

.cart-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: var(--fs-caption);
}

.icon-text-button {
  min-height: 38px;
  padding: 0 12px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.admin-actions .icon-text-button {
  min-height: 30px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  font-weight: 800;
  white-space: nowrap;
  background: transparent;
}

.admin-actions .icon-text-button:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.admin-actions .icon-text-button.is-danger {
  color: #ffc0c0;
  border-color: rgba(255, 108, 108, 0.24);
  background: transparent;
}

.admin-actions .icon-text-button.is-danger:hover {
  background: rgba(255, 108, 108, 0.08);
}

.summary-panel {
  display: grid;
  gap: 14px;
}

.summary-panel > span {
  color: var(--muted);
  font-size: var(--fs-caption);
  font-weight: 800;
}

.summary-panel > strong {
  font-size: var(--fs-h2);
  line-height: 1;
}

.summary-panel p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.empty-panel,
.status-panel {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.status-panel {
  min-height: 260px;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.status-panel.is-success {
  border-color: rgba(73, 230, 162, 0.28);
}

.status-panel.is-failed {
  border-color: rgba(255, 95, 143, 0.28);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-card {
  min-height: 150px;
  padding: 22px;
  display: grid;
  align-content: space-between;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.dashboard-card:hover,
.library-row:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.security-panel {
  margin-top: 24px;
}

.dashboard-card span {
  color: var(--muted);
  font-weight: 700;
}

.dashboard-card strong {
  font-size: var(--fs-h2);
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: 22px;
  align-items: start;
}

.support-history {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.support-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.support-history-head h2 {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
}

.support-history-head span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: var(--muted-strong);
  background: rgba(139, 77, 255, 0.12);
  border: 1px solid rgba(139, 77, 255, 0.22);
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 800;
}

.support-ticket-list .library-row {
  align-items: start;
}

.support-ticket-list .library-row.is-selected {
  border-color: rgba(139, 77, 255, 0.46);
  box-shadow: 0 0 0 1px rgba(139, 77, 255, 0.14);
}

.support-conversation {
  padding: 18px;
  display: grid;
  gap: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.support-conversation-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.support-conversation-head h2 {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
}

.support-conversation-head span {
  color: var(--muted);
  font-size: var(--fs-caption);
  font-weight: 700;
}

.support-messages {
  max-height: 420px;
  display: grid;
  gap: 12px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 77, 255, 0.48) rgba(255, 255, 255, 0.045);
}

.support-message {
  width: min(88%, 640px);
  padding: 13px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.support-message.is-admin {
  justify-self: end;
  background: rgba(139, 77, 255, 0.12);
  border-color: rgba(139, 77, 255, 0.25);
}

.support-message div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.support-message strong {
  color: var(--text);
  font-size: var(--fs-caption);
}

.support-message small {
  color: var(--muted);
  font-size: var(--fs-small);
}

.support-message p {
  margin: 8px 0 0;
  color: var(--muted-strong);
  line-height: var(--lh-body);
}

.support-reply-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.support-reply-form label {
  display: grid;
  gap: 8px;
  color: var(--muted-strong);
  font-size: var(--fs-caption);
  font-weight: 800;
}

.support-reply-form textarea,
.support-reply-form select {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  color: var(--text);
  background: rgba(7, 8, 13, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  font: inherit;
}

.support-reply-form textarea {
  min-height: 96px;
  resize: vertical;
}

.support-reply-form textarea:focus,
.support-reply-form select:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(139, 77, 255, 0.16);
}

.support-status-select {
  min-width: 180px;
}

.support-reply-form .form-message {
  grid-column: 1 / -1;
}

.support-reply-form .pill-button {
  min-height: 46px;
}

.empty-panel.compact {
  padding: 16px;
}

.empty-panel.compact h2 {
  font-size: var(--fs-h3);
}

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

.profile-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.82fr) minmax(0, 1.18fr);
  gap: 20px;
  align-items: stretch;
}

.profile-summary-card,
.profile-form {
  min-width: 0;
  padding: clamp(20px, 2.5vw, 30px);
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.profile-summary-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.profile-summary-main {
  display: grid;
  align-content: start;
  gap: 22px;
}

.profile-summary-copy {
  display: grid;
  gap: 6px;
}

.profile-summary-copy .panel-eyebrow,
.profile-form-head .panel-eyebrow {
  margin: 0;
}

.profile-summary-copy h2,
.profile-form-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 21px;
  line-height: 1.2;
}

.profile-summary-copy > span,
.profile-form-head span {
  color: var(--muted);
  font-size: var(--fs-caption);
  line-height: 1.5;
}

.profile-summary-meta {
  margin: auto 0 0;
  padding-top: 18px;
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
}

.profile-summary-meta div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.profile-summary-meta dt {
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 700;
}

.profile-summary-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--muted-strong);
  font-size: var(--fs-caption);
  font-weight: 700;
}

.profile-form {
  max-width: none;
  align-content: start;
  gap: 20px;
}

.profile-form-head {
  display: grid;
  gap: 6px;
}

.profile-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profile-form > .pill-button {
  justify-self: start;
}

.profile-avatar {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  color: var(--muted-strong);
  background: rgba(139, 77, 255, 0.16);
  border: 1px solid rgba(139, 77, 255, 0.24);
}

.profile-avatar svg {
  width: 30px;
  height: 30px;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 980px) {
  .profile-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-summary-card {
    min-height: 0;
  }

  .profile-summary-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .profile-field-grid,
  .profile-summary-meta {
    grid-template-columns: minmax(0, 1fr);
  }
}

.purchased-detail-head {
  margin-bottom: 18px;
  padding: 16px;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.purchased-detail-head .cart-thumb {
  width: 96px;
  height: 76px;
}

.purchased-detail-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: var(--fs-caption);
}

.order-status {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: var(--fs-caption);
  font-weight: 800;
}

.order-status.is-paid {
  color: #b9f5d0;
  background: rgba(73, 230, 162, 0.14);
  border: 1px solid rgba(185, 245, 208, 0.22);
}

.order-status.is-failed {
  color: #ffc0c0;
  background: rgba(255, 122, 122, 0.14);
  border: 1px solid rgba(255, 192, 192, 0.22);
}

.library-list {
  display: grid;
  gap: 12px;
}

.library-row {
  padding: 14px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.library-row span:not(.cart-thumb, .order-status) {
  display: grid;
  gap: 3px;
}

.library-row em {
  color: var(--primary-2);
  font-style: normal;
  font-weight: 800;
  font-size: var(--fs-caption);
}

.prompt-content-panel pre {
  margin: 16px 0 0;
  padding: 18px;
  overflow-x: auto;
  white-space: pre-wrap;
  border-radius: var(--radius);
  background: rgba(7, 8, 13, 0.72);
  border: 1px solid var(--line);
  font-family: "Mulish", Arial, sans-serif;
  line-height: 1.55;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 5, 9, 0.72);
  backdrop-filter: blur(16px);
}

.modal-backdrop[hidden] {
  display: none;
}

.variable-modal {
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.52);
}

.modal-head {
  padding: 20px 22px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.modal-head span {
  color: var(--primary-2);
  font-size: var(--fs-caption);
  font-weight: 800;
}

.modal-head h2 {
  margin: 4px 0 0;
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
}

.modal-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.variable-form {
  min-height: 0;
  padding: 22px;
  display: grid;
  gap: 14px;
  overflow-y: auto;
}

.variable-form label {
  display: grid;
  gap: 7px;
}

.variable-form label > span {
  color: var(--text);
  font-size: var(--fs-caption);
  font-weight: 800;
}

.variable-form input {
  min-height: 46px;
  width: 100%;
  padding: 0 13px;
  color: var(--text);
  background: rgba(7, 8, 13, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
}

.variable-form input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(139, 77, 255, 0.16);
}

.variable-form small,
.variable-form em {
  color: var(--muted);
  font-size: var(--fs-caption);
  line-height: 1.45;
}

.variable-form em {
  font-style: normal;
  color: var(--muted-strong);
}

.modal-actions {
  margin-top: 4px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.admin-page-shell .page-heading {
  max-width: 760px;
  margin-bottom: 22px;
}

.admin-page-shell {
  overflow-x: clip;
}

.admin-page-shell .page-heading > p {
  display: none;
}

.admin-page-shell .page-heading h1 {
  font-size: clamp(28px, 3vw, 38px);
}

.admin-page-shell .page-heading span {
  max-width: 620px;
  margin-top: 8px;
  font-size: var(--fs-body);
  line-height: 1.6;
}

.admin-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.admin-sidebar,
.admin-panel,
.admin-stats article {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.admin-sidebar {
  position: sticky;
  top: 68px;
  z-index: 18;
  padding: 7px;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 4px;
  background: var(--surface-raised);
}

.admin-system-tabs {
  position: sticky;
  top: 68px;
  z-index: 17;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-system-tabs a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  color: var(--muted);
  border-radius: var(--radius-sm);
  font-size: var(--fs-caption);
  font-weight: 800;
}

.admin-system-tabs a:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.admin-system-tabs a.is-active {
  color: var(--text);
  background: rgba(127, 86, 239, 0.16);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.admin-system-tabs a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.admin-system-tabs svg {
  width: 15px;
  height: 15px;
}

.admin-sidebar a {
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 9px;
  color: var(--muted);
  border-radius: var(--radius-sm);
  font-size: var(--fs-caption);
  font-weight: 800;
  text-align: center;
  transition: color 150ms ease, background-color 150ms ease;
}

.admin-sidebar a > svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  stroke-width: 1.8;
}

.admin-sidebar a span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-sidebar a em {
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  color: var(--text);
  background: rgba(127, 86, 239, 0.22);
  border: 1px solid rgba(127, 86, 239, 0.34);
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
  line-height: 1;
}

.admin-sidebar a:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.admin-sidebar a.is-active {
  color: var(--text);
  background: rgba(127, 86, 239, 0.16);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.admin-sidebar a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.admin-system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-system-card {
  min-width: 0;
  min-height: 132px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.018);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.admin-system-card:hover {
  background: var(--surface-hover);
  border-color: rgba(139, 77, 255, 0.48);
  transform: translateY(-1px);
}

.admin-system-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.admin-system-card-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #c2a5ff;
  background: rgba(139, 77, 255, 0.14);
  border: 1px solid rgba(139, 77, 255, 0.24);
  border-radius: 8px;
}

.admin-system-card-icon svg,
.admin-system-card-arrow svg {
  width: 16px;
  height: 16px;
}

.admin-system-card strong,
.admin-system-card small {
  display: block;
}

.admin-system-card strong {
  font-size: 14px;
  line-height: 1.35;
}

.admin-system-card small {
  margin-top: 8px;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.55;
}

.admin-system-card-arrow {
  color: var(--muted);
}

.admin-seo-list,
.admin-media-list {
  display: grid;
  gap: 8px;
}

.admin-seo-item,
.admin-file-item,
.admin-orphan-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.018);
}

.admin-seo-item[open],
.admin-file-item[open] {
  border-color: rgba(139, 77, 255, 0.38);
}

.admin-seo-item > summary,
.admin-file-item > summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 14px;
  cursor: pointer;
  list-style: none;
}

.admin-seo-item > summary::-webkit-details-marker,
.admin-file-item > summary::-webkit-details-marker {
  display: none;
}

.admin-seo-item > summary::after,
.admin-file-item > summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 18px;
  font-weight: 400;
}

.admin-seo-item[open] > summary::after,
.admin-file-item[open] > summary::after {
  content: "−";
  color: var(--accent-soft);
}

.admin-seo-item > summary > span:first-child,
.admin-media-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-seo-item > summary strong,
.admin-media-main strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: var(--fs-caption);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-seo-item > summary small,
.admin-media-main small,
.admin-seo-summary {
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.4;
}

.admin-seo-summary {
  flex: 0 1 auto;
  text-align: right;
}

.admin-seo-form,
.admin-media-detail {
  padding: 14px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.12);
}

.admin-seo-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-seo-form-grid .admin-seo-wide {
  grid-column: 1 / -1;
}

.admin-seo-toggles {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  color: var(--muted-strong);
  font-size: var(--fs-caption);
  font-weight: 800;
}

.admin-seo-toggles label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.admin-seo-toggles input {
  width: 15px;
  height: 15px;
  min-height: 0;
  accent-color: var(--accent);
}

.admin-seo-private {
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 600;
}

.admin-files-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(120px, 0.65fr)) auto;
  gap: 8px;
  margin-bottom: 14px;
}

.admin-files-toolbar > label:not(.admin-search) {
  display: block;
}

.admin-files-toolbar select {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  color: var(--text);
  background: var(--surface-quiet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}

.admin-files-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: var(--fs-small);
  white-space: nowrap;
}

.admin-files-summary strong {
  color: var(--text);
  font-size: 18px;
}

.admin-media-preview {
  width: 48px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--surface-quiet);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.admin-media-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.admin-media-preview-fallback {
  color: var(--muted);
}

.admin-media-preview-fallback svg {
  width: 17px;
  height: 17px;
}

.admin-file-item > summary {
  display: grid;
  grid-template-columns: minmax(230px, 1.35fr) minmax(220px, 1fr) auto 18px;
  align-items: center;
  justify-content: initial;
}

.admin-file-item > summary::after {
  margin-left: 0;
}

.admin-media-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.admin-media-facts {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: var(--fs-small);
}

.admin-media-facts span {
  min-width: 0;
  padding: 4px 7px;
  overflow: hidden;
  background: var(--surface-quiet);
  border: 1px solid var(--line);
  border-radius: 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-media-usage,
.admin-file-item .admin-status {
  flex: 0 0 auto;
  font-size: var(--fs-small);
  font-weight: 800;
}

.admin-media-usage.is-used {
  color: #b9f5d0;
}

.admin-media-usage.is-unused {
  color: #ffd66b;
}

.admin-media-detail {
  display: grid;
  gap: 14px;
}

.admin-media-detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-media-detail-actions .icon-text-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  font-size: var(--fs-small);
  font-weight: 800;
}

.admin-media-detail-actions .icon-text-button svg {
  width: 15px;
  height: 15px;
}

.admin-media-detail-actions .icon-text-button.is-danger {
  color: #ffc0c0;
  border-color: rgba(255, 108, 108, 0.28);
  background: rgba(255, 108, 108, 0.05);
}

.admin-media-protected {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: var(--fs-small);
}

.admin-media-protected svg {
  width: 14px;
  height: 14px;
}

.admin-media-detail dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.admin-media-detail dl div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.admin-media-detail dt,
.admin-media-detail strong {
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 800;
}

.admin-media-detail dd {
  min-width: 0;
  margin: 0;
  color: var(--muted-strong);
  font-size: var(--fs-caption);
  overflow-wrap: anywhere;
}

.admin-media-detail code,
.admin-orphan-row code {
  color: #c9b8ff;
  font-size: 10px;
}

.admin-media-variants,
.admin-media-references {
  display: grid;
  gap: 6px;
}

.admin-media-variants span,
.admin-media-references span {
  padding: 7px 9px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: var(--fs-small);
  overflow-wrap: anywhere;
}

.admin-orphan-panel {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
}

.admin-orphan-panel h3,
.admin-orphan-panel p {
  margin: 0;
}

.admin-orphan-panel h3 {
  color: var(--text);
  font-size: var(--fs-caption);
}

.admin-orphan-panel p {
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.5;
}

.admin-orphan-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.admin-main {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.admin-panel-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-list-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: var(--fs-caption);
  font-weight: 800;
}

.admin-search {
  width: min(260px, 34vw);
  height: 40px;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-quiet);
}

.admin-search > svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.admin-search input {
  min-width: 0;
  width: 100%;
  height: 38px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.admin-search:focus-within {
  border-color: var(--line-strong);
  outline: 2px solid rgba(127, 86, 239, 0.28);
  outline-offset: 2px;
}

.admin-record-count {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  color: var(--muted-strong);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: nowrap;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: var(--fs-caption);
  font-weight: 800;
}

.admin-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-upload-field,
.admin-icon-picker {
  display: grid;
  gap: 10px;
}

.admin-upload-field > span,
.admin-icon-picker > span {
  color: var(--muted);
  font-size: var(--fs-caption);
  font-weight: 800;
}

.admin-upload-field > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
}

.admin-upload-preview .cart-thumb {
  width: 112px;
  height: 88px;
}

.admin-upload-control {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
}

.admin-upload-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-upload-control strong,
.admin-icon-option strong {
  color: var(--text);
  font-size: var(--fs-caption);
}

.admin-upload-control small {
  color: var(--muted);
  font-size: var(--fs-small);
}

.admin-upload-control:hover,
.admin-icon-option:hover {
  border-color: rgba(139, 77, 255, 0.42);
}

.admin-icon-picker > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.admin-icon-option {
  min-height: 72px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
}

.admin-icon-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.admin-icon-option svg,
.admin-icon-cell svg {
  width: 18px;
  height: 18px;
}

.admin-icon-option:has(input:checked) {
  border-color: rgba(139, 77, 255, 0.72);
  box-shadow: 0 0 0 1px rgba(139, 77, 255, 0.28);
}

.admin-icon-cell {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-stats article {
  min-height: 84px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-stats span,
.admin-panel-head p,
.admin-table th,
.admin-table td,
.taxonomy-list span {
  color: var(--muted);
}

.admin-stats strong {
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}

.admin-panel {
  padding: 20px;
  min-width: 0;
}

.admin-panel-head {
  margin-bottom: 18px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.admin-panel-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: var(--lh-heading);
}

.admin-panel-head p {
  margin: 6px 0 0;
  font-size: var(--fs-caption);
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.admin-table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
  font-size: var(--fs-caption);
}

.admin-table th,
.admin-table td {
  padding: 13px 11px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.admin-table th {
  color: var(--muted);
  background: var(--surface-raised);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-table td {
  color: var(--muted-strong);
}

.admin-table tbody tr {
  transition: background-color 140ms ease;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-product-cell {
  min-width: 230px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.admin-product-cell .cart-thumb {
  width: 68px;
  height: 52px;
}

.admin-product-cell strong {
  color: var(--text);
  line-height: 1.4;
}

.admin-status {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-status.is-live {
  color: #b9f5d0;
  background: rgba(73, 230, 162, 0.14);
  border: 1px solid rgba(185, 245, 208, 0.22);
}

.admin-status.is-draft {
  color: #ffd66b;
  background: rgba(255, 214, 107, 0.12);
  border: 1px solid rgba(255, 214, 107, 0.22);
}

.admin-status.is-archived {
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.legal-page .page-heading {
  max-width: 850px;
}

.legal-document {
  max-width: 900px;
  display: grid;
  gap: 0;
  padding: clamp(20px, 4vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.legal-document section {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.legal-document section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-document section:first-of-type {
  padding-top: 8px;
}

.legal-document h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: var(--fs-h3);
  line-height: 1.3;
}

.legal-document p {
  max-width: 74ch;
  margin: 0 0 12px;
  color: var(--muted-strong);
  font-size: var(--fs-body);
  line-height: 1.7;
}

.legal-document p:last-child {
  margin-bottom: 0;
}

.legal-document-lead {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 8px;
  padding: 16px;
  background: rgba(139, 77, 255, 0.09);
  border: 1px solid rgba(171, 123, 255, 0.2);
  border-radius: var(--radius);
}

.legal-document-lead > svg {
  width: 24px;
  height: 24px;
}

.legal-document-lead strong,
.legal-document-lead span {
  display: block;
}

.legal-document-lead strong {
  color: var(--text);
  font-size: 15px;
}

.legal-document-lead span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.admin-form-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--muted-strong);
  font-size: var(--fs-caption);
  font-weight: 800;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  min-height: 44px;
  width: 100%;
  padding: 0 12px;
  color: var(--text);
  background: var(--surface-quiet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  font: inherit;
}

.admin-form textarea {
  min-height: 116px;
  padding-top: 12px;
  resize: vertical;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(139, 77, 255, 0.16);
}

.admin-form .admin-media-picker input {
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.taxonomy-list {
  display: grid;
  gap: 14px;
}

.taxonomy-form {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.admin-detail-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.taxonomy-list div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.taxonomy-list strong {
  width: 100%;
  color: var(--text);
  font-size: var(--fs-caption);
}

.taxonomy-list span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
}

.admin-message-text {
  width: 100%;
  margin: 0;
  color: var(--muted);
  line-height: var(--lh-body);
}

.admin-operation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.admin-form.compact {
  align-content: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.admin-form.compact textarea {
  min-height: 82px;
}

.admin-notes {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.admin-notes h3 {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-caption);
}

.admin-note-list {
  display: grid;
  gap: 8px;
}

.admin-note-list article {
  padding: 12px;
  border-left: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.025);
}

.admin-note-list p,
.admin-empty-copy {
  margin: 0;
  color: var(--muted-strong);
  font-size: var(--fs-caption);
  line-height: 1.55;
}

.admin-note-list small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--fs-small);
}

.admin-audit-filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr)) auto;
  gap: 8px;
  margin-bottom: 16px;
}

.admin-audit-filters input {
  min-width: 0;
  height: 40px;
  padding: 0 11px;
  color: var(--text);
  background: rgba(7, 8, 13, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}

.admin-support-filter,
.admin-inline-operation {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-support-filter label {
  min-width: 220px;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: var(--fs-caption);
  font-weight: 800;
}

.admin-support-filter select {
  height: 40px;
  padding: 0 11px;
  color: var(--text);
  background: rgba(7, 8, 13, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}

.admin-support-panel {
  padding: 0;
  overflow: hidden;
}

.admin-support-panel-head {
  padding: 20px 22px 16px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.admin-support-panel-head h2,
.admin-support-section-head h3,
.admin-support-detail-head h2,
.admin-support-empty h2,
.admin-support-queue-empty h3 {
  margin: 0;
  color: var(--text);
}

.admin-support-panel-head h2 {
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
}

.admin-support-panel-head p {
  max-width: 62ch;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: var(--fs-caption);
  line-height: 1.55;
}

.admin-support-total {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 800;
  white-space: nowrap;
}

.admin-support-toolbar {
  padding: 0 22px 18px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.admin-support-search {
  min-width: 0;
  height: 42px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 0 12px;
  color: var(--muted);
  background: rgba(7, 8, 13, 0.58);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-support-search:focus-within {
  color: var(--text);
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(139, 77, 255, 0.14);
}

.admin-support-search svg {
  width: 18px;
  height: 18px;
}

.admin-support-search input {
  min-width: 0;
  width: 100%;
  height: 40px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: var(--fs-caption);
}

.admin-support-filter {
  margin: 0;
  align-items: center;
}

.admin-support-filter label {
  min-width: 180px;
}

.admin-support-filter select {
  width: 100%;
  height: 42px;
  background: rgba(7, 8, 13, 0.58);
}

.admin-support-filter .icon-text-button {
  min-height: 42px;
}

.admin-support-error {
  margin: 0 22px 22px;
}

.admin-support-workspace {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  border-top: 1px solid var(--line);
}

.admin-support-queue {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.admin-support-ticket-list {
  max-height: min(720px, calc(100vh - 300px));
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 77, 255, 0.4) transparent;
}

.admin-support-ticket {
  position: relative;
  width: 100%;
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font: inherit;
  transition: background-color 160ms ease;
}

.admin-support-ticket:hover {
  background: rgba(255, 255, 255, 0.035);
}

.admin-support-ticket:focus-visible {
  z-index: 1;
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.admin-support-ticket.is-selected {
  background: rgba(139, 77, 255, 0.09);
}

.admin-support-ticket.is-selected::before {
  position: absolute;
  inset: 12px auto 12px 0;
  width: 2px;
  content: "";
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}

.admin-support-ticket-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 700;
}

.admin-support-ticket strong {
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.45;
}

.admin-support-ticket-user,
.admin-support-ticket-preview {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-support-ticket-preview {
  color: var(--muted-strong);
}

.admin-support-queue .admin-pagination {
  min-height: 58px;
  margin: auto 0 0;
  padding: 10px 14px;
  justify-content: center;
  border-top: 1px solid var(--line);
}

.admin-support-queue-empty {
  padding: 32px 20px;
  text-align: center;
}

.admin-support-queue-empty h3 {
  font-size: 15px;
}

.admin-support-queue-empty p {
  margin: 7px auto 0;
  color: var(--muted);
  font-size: var(--fs-caption);
  line-height: 1.55;
}

.admin-support-detail-region {
  min-width: 0;
  padding: 22px;
}

.admin-support-detail {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.admin-support-detail-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.admin-support-detail-head h2 {
  overflow-wrap: anywhere;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.3;
}

.admin-support-detail-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 700;
}

.admin-support-context {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.admin-support-context > div {
  min-width: 0;
  padding: 0 16px;
}

.admin-support-context > div:first-child {
  padding-left: 0;
}

.admin-support-context > div + div {
  border-left: 1px solid var(--line);
}

.admin-support-context dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 800;
}

.admin-support-context dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--muted-strong);
  font-size: var(--fs-caption);
  line-height: 1.5;
}

.admin-support-context dd:first-of-type {
  color: var(--text);
  font-weight: 800;
}

.admin-support-status-form {
  display: flex;
  align-items: end;
  gap: 10px;
}

.admin-support-status-form label {
  min-width: 210px;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 800;
}

.admin-support-status-form select {
  width: 100%;
  height: 40px;
  padding: 0 11px;
  color: var(--text);
  background: rgba(7, 8, 13, 0.58);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  font: inherit;
}

.admin-support-status-form select:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(139, 77, 255, 0.14);
}

.admin-support-status-form .form-message {
  flex: 1 1 auto;
}

.admin-support-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
}

.admin-support-section-head h3 {
  font-size: 15px;
}

.admin-support-section-head > span {
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 800;
}

.admin-support-detail .support-conversation.is-embedded {
  padding: 0;
  gap: 14px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.admin-support-detail .support-messages {
  max-height: 360px;
  padding: 2px 6px 2px 0;
}

.admin-support-detail .support-message {
  width: min(88%, 620px);
}

.admin-support-detail .support-message p {
  overflow-wrap: anywhere;
}

.admin-support-detail .support-reply-form {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-support-detail .support-reply-form .pill-button {
  border-radius: var(--radius);
}

.admin-support-notes {
  padding-top: 2px;
  border-top: 1px solid var(--line);
}

.admin-support-notes summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  cursor: pointer;
  font-size: var(--fs-caption);
  font-weight: 800;
  list-style: none;
}

.admin-support-notes summary::-webkit-details-marker {
  display: none;
}

.admin-support-notes summary span:last-child {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
}

.admin-support-notes-body {
  display: grid;
  gap: 14px;
  padding: 4px 0 2px;
}

.admin-support-notes .admin-note-list {
  gap: 0;
}

.admin-support-notes .admin-note-list article {
  padding: 12px 0;
  background: transparent;
  border-left: 0;
  border-bottom: 1px solid var(--line);
}

.admin-support-notes .admin-form.compact {
  padding: 0;
  background: transparent;
  border: 0;
}

.admin-support-empty {
  min-height: 440px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 32px;
  color: var(--muted);
  text-align: center;
}

.admin-support-empty svg {
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
}

.admin-support-empty h2 {
  font-size: var(--fs-h3);
}

.admin-support-empty p {
  max-width: 42ch;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: var(--fs-caption);
  line-height: 1.55;
}

@media (max-width: 980px) {
  :root {
    --fs-h1: 32px;
    --fs-h2: 28px;
    --fs-h3: 17.50px;
    --fs-display: 32px;
  }

  .nav-shell {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links,
  .nav-actions {
    position: fixed;
    left: 16px;
    right: 16px;
    display: none;
    background: rgba(17, 18, 24, 0.98);
    border: 1px solid var(--line);
    backdrop-filter: blur(18px);
  }

  .nav-links {
    top: 80px;
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-actions {
    top: 292px;
    padding: 16px;
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    flex-direction: column;
    align-items: stretch;
  }

  .account-menu {
    display: block;
  }

  .account-menu::after,
  .account-dropdown {
    display: none !important;
  }

  .account-menu .login-button {
    width: 100%;
  }

  .menu-open .nav-links,
  .menu-open .nav-actions {
    display: flex;
  }

  .prompt-grid {
    --prompt-card-width: calc((100% - 18px) / 2);
  }

  .category-grid {
    --category-tile-width: calc((100% - 28px) / 3);
  }

  .quality-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

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

  .prompts-toolbar {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .prompts-toolbar::-webkit-scrollbar {
    display: none;
  }

  .detail-layout,
  .cart-layout,
  .checkout-layout,
  .content-layout,
  .support-layout,
  .settings-grid,
  .admin-shell,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: sticky;
    top: 78px;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .admin-sidebar a {
    min-width: 128px;
  }

  .admin-sidebar::-webkit-scrollbar {
    display: none;
  }

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

  .product-extra-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-card {
    height: 320px;
  }

  .product-detail-shell .detail-panel {
    min-height: auto;
  }

  .model-strip-track {
    --model-strip-gap: 42px;
    min-height: 90px;
    justify-content: flex-start;
  }

  .admin-panel-head,
  .admin-panel-actions,
  .admin-list-tools {
    align-items: stretch;
  }

  .admin-panel-actions,
  .admin-list-tools {
    width: 100%;
  }

  .admin-search,
  .admin-search input {
    width: 100%;
  }

  .support-reply-form {
    grid-template-columns: 1fr;
  }

  .support-message {
    width: 100%;
  }

  .admin-upload-field > div,
  .admin-icon-picker > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-operation-grid,
  .admin-audit-filters {
    grid-template-columns: 1fr;
  }

  .admin-support-filter,
  .admin-inline-operation {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-support-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-support-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-support-filter label {
    min-width: 0;
  }

  .admin-support-workspace {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .admin-support-queue {
    border-right: 0;
  }

  .admin-support-workspace.has-selection .admin-support-detail-region {
    order: -1;
    border-bottom: 1px solid var(--line);
  }

  .admin-support-ticket-list {
    max-height: none;
  }

  .admin-support-context {
    grid-template-columns: 1fr;
  }

  .admin-support-context > div {
    padding: 12px 0;
  }

  .admin-support-context > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .admin-support-status-form {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-support-status-form label {
    min-width: 0;
  }

  .admin-system-grid {
    grid-template-columns: 1fr;
  }

  .admin-files-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-files-toolbar .admin-search,
  .admin-files-toolbar button {
    width: 100%;
    grid-column: 1 / -1;
  }

  .admin-media-detail dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-file-item > summary {
    grid-template-columns: minmax(220px, 1fr) auto 18px;
  }

  .admin-media-facts {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --fs-body: 15px;
    --fs-h1: 28px;
    --fs-h2: 24px;
    --fs-h3: 17.50px;
    --fs-lead: 16px;
    --fs-caption: 12px;
    --fs-display: 24px;
  }

  .container,
  .narrow,
  .nav-shell {
    width: min(calc(100% - 24px), var(--max));
  }

  .hero-section {
    min-height: 380px;
    max-height: 380px;
  }

  .hero-content {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .announcement {
    margin-bottom: 8px;
    padding: 5px 10px;
    font-size: var(--fs-caption);
  }

  .hero-copy {
    margin-top: 8px;
  }

  .hero-actions {
    margin-top: 10px;
    align-items: center;
    flex-direction: row;
  }

  .pill-button.large {
    width: auto;
    padding: 0 14px;
  }

  .search-panel {
    grid-template-columns: 22px 1fr auto;
    margin-top: 12px;
  }

  .search-panel button {
    grid-column: auto;
    width: auto;
  }

  .admin-page-shell .page-heading {
    margin-bottom: 18px;
  }

  .admin-page-shell .page-heading h1 {
    font-size: 28px;
  }

  .admin-sidebar {
    top: 60px;
  }

  .admin-sidebar a {
    min-width: 118px;
  }

  .admin-system-tabs {
    top: 60px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .admin-system-tabs::-webkit-scrollbar {
    display: none;
  }

  .admin-system-tabs a {
    flex: 0 0 auto;
  }

  .admin-panel {
    padding: 16px;
  }

  .admin-seo-item > summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .admin-file-item > summary {
    grid-template-columns: minmax(0, 1fr) 18px;
  }

  .admin-file-item > summary .admin-status {
    display: none;
  }

  .admin-media-preview {
    width: 54px;
    height: 44px;
  }

  .admin-seo-summary {
    width: 100%;
    text-align: left;
  }

  .admin-seo-form-grid,
  .admin-media-detail dl {
    grid-template-columns: 1fr;
  }

  .admin-files-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-files-toolbar .admin-search,
  .admin-files-toolbar button {
    grid-column: auto;
  }

  .admin-orphan-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-orphan-row button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .admin-panel-head {
    flex-direction: column;
  }

  .admin-panel-actions {
    justify-content: flex-start;
  }

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

  .admin-stats article {
    min-height: 76px;
    padding: 14px;
  }

  .admin-stats strong {
    font-size: 24px;
  }

  .admin-support-panel-head {
    padding: 18px 16px 14px;
    align-items: start;
    flex-direction: column;
  }

  .admin-support-toolbar {
    padding: 0 16px 16px;
  }

  .admin-support-filter {
    grid-template-columns: 1fr;
  }

  .admin-support-detail-region {
    padding: 18px 16px;
  }

  .admin-support-detail-head {
    flex-direction: column;
  }

  .admin-support-detail .support-message {
    width: 100%;
  }

  .model-strip-track {
    --model-strip-gap: 32px;
    min-height: 90px;
    font-size: 20px;
  }

  .section-heading.split {
    align-items: start;
    flex-direction: column;
  }

  .benefit-grid,
  .faq-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    --category-tile-width: calc((100% - 12px) / 2);
    gap: 12px;
  }

  .prompt-grid {
    --prompt-card-width: calc((100% - 12px) / 2);
    gap: 12px;
  }

  .prompts-toolbar {
    display: grid;
    position: static;
    top: auto;
    z-index: auto;
    gap: 12px;
    overflow: visible;
    padding: 0;
    background: transparent;
    border-radius: 0;
    backdrop-filter: none;
  }

  .prompt-type-tabs {
    width: 100%;
    overflow-x: auto;
    border-radius: 22px;
    scrollbar-width: none;
  }

  .prompt-type-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-pill {
    min-width: 74px;
    padding: 0 14px;
  }

  .prompt-filter-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .filter-select {
    width: 100%;
    flex-basis: auto;
  }

  .sort-select {
    display: none;
  }

  .prompt-carousel .slider-button,
  .category-carousel .slider-button {
    display: grid;
    opacity: 1;
    pointer-events: auto;
    transform: translate(0, -50%);
  }

  .prompt-art {
    height: 150px;
  }

  .detail-art.prompt-art {
    height: 300px;
  }

  .trust-badges {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .trust-badges::-webkit-scrollbar {
    display: none;
  }

  .trust-badge {
    flex: 0 0 auto;
    padding-inline: 9px;
  }

  .cart-row,
  .library-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .cart-row > strong,
  .cart-row .icon-text-button,
  .library-row em,
  .library-row .pill-button,
  .library-row .icon-text-button {
    grid-column: 2;
    justify-self: start;
  }

  .purchased-detail-head {
    grid-template-columns: 1fr;
  }

  .cart-thumb {
    width: 64px;
    height: 56px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .admin-form-row {
    grid-template-columns: 1fr;
  }

  .category-tile {
    min-height: 104px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .model-strip-track {
    animation-name: modelMarquee !important;
    animation-duration: 90s !important;
    animation-timing-function: linear !important;
    animation-iteration-count: infinite !important;
  }
}

/* Impeccable redesign: The Curated Index */
:root {
  --bg: #090a0d;
  --bg-soft: #06070a;
  --surface: #11131a;
  --surface-strong: #171a23;
  --surface-soft: #0d0f14;
  --surface-quiet: #0b0c11;
  --surface-hover: #1d212c;
  --line: #292e3a;
  --line-strong: #3d4453;
  --line-subtle: #20242d;
  --text: #f4f6fa;
  --muted: #8e96a8;
  --muted-strong: #b8beca;
  --primary: #7f56ef;
  --primary-2: #7f56ef;
  --accent: #7f56ef;
  --success: #55c98c;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  --radius: 8px;
  --max: 1180px;
  --content-reading: 70ch;
  --cover-ratio: 1.48;
  --state-fast: 160ms ease;
  --fs-h1: 36px;
  --fs-h2: 26px;
  --fs-h3: 17.5px;
  --section-panel-padding: clamp(2rem, 4vw, 2.7rem);
}

body {
  color: var(--text);
  background: var(--bg);
}

button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}

:where(a, button, input, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.site-header {
  min-height: 64px;
  background: rgba(9, 10, 13, 0.97);
  border-color: var(--line);
  backdrop-filter: none;
}

.nav-shell {
  min-height: 64px;
}

.brand-mark {
  border-radius: 7px;
  background: var(--primary);
  box-shadow: none;
}

.nav-links {
  gap: 24px;
}

.nav-links a {
  position: relative;
  padding: 20px 0;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 12px;
  left: 0;
  height: 2px;
  background: var(--primary);
}

.account-dropdown,
.app-notice {
  background: var(--surface-strong);
  border-color: var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.account-dropdown a:hover,
.account-dropdown a:focus-visible {
  background: var(--surface-hover);
  transform: none;
}

.pill-button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  box-shadow: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.pill-button:hover {
  transform: none;
}

.pill-button.light {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.pill-button.light:hover {
  background: #7350dd;
  border-color: #7350dd;
}

.login-button,
.login-button:hover {
  color: #fff;
  background: var(--primary);
  background-image: none;
  border-color: var(--primary);
  box-shadow: none;
}

.login-button:hover {
  background: #7350dd;
}

.pill-button.dark,
.pill-button.subtle {
  color: var(--text);
  background: transparent;
  border-color: var(--line-strong);
}

.pill-button.dark:hover,
.pill-button.subtle:hover {
  background: var(--surface-hover);
  border-color: #596173;
}

.text-link {
  color: var(--muted-strong);
  font-weight: 750;
}

.text-link:hover {
  color: var(--text);
}

.text-link::after {
  color: var(--primary);
}

.hero-section {
  min-height: 380px;
  max-height: none;
  background: var(--surface-quiet);
  border-bottom: 1px solid var(--line);
}

.hero-section::before,
.hero-glow {
  display: none;
}

.hero-content {
  min-height: 380px;
  padding: 26px 0 24px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.announcement {
  margin: 0 0 12px;
  padding: 6px 9px;
  border-radius: 6px;
  color: var(--muted-strong);
  background: var(--surface);
  border-color: var(--line);
}

.announcement span {
  box-shadow: none;
}

.hero-content h1 {
  max-width: 740px;
  margin: 0 auto;
  font-size: var(--fs-display);
  text-wrap: balance;
}

.hero-content h1 strong,
.quality-copy h2 strong {
  display: block;
  color: #b7a4f8;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.hero-copy {
  max-width: 590px;
  margin: 12px auto 0;
  color: var(--muted-strong);
  text-wrap: balance;
}

.hero-actions {
  width: 100%;
  margin-top: 18px;
  justify-content: center;
  align-items: center;
}

.hero-actions .pill-button {
  min-width: 196px;
}

.search-panel {
  width: min(100%, 660px);
  min-height: 50px;
  margin: 14px auto 0;
  padding: 4px;
  border-radius: 8px;
  background: var(--surface);
  border-color: var(--line-strong);
  box-shadow: none;
}

.search-panel:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(138, 99, 246, 0.14);
}

.search-panel input {
  height: 40px;
}

.search-panel > button[type="submit"] {
  min-width: 72px;
  height: 40px;
  border-radius: 6px;
  background: var(--primary);
  border-color: var(--primary);
}

.search-results-dropdown {
  border-radius: 8px;
  background: var(--surface-strong);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.search-result-item,
.search-result-empty {
  border-radius: 6px;
}

.search-result-item:hover,
.search-result-item:focus-visible {
  background: var(--surface-hover);
}

.model-strip {
  background: var(--surface-quiet);
  border-color: var(--line);
}

.model-strip-track {
  --model-strip-gap: clamp(42px, 7vw, 92px);
  min-height: 72px;
  color: #646b7a;
  font-size: 18px;
  letter-spacing: 0;
  animation: modelMarquee 38s linear infinite;
}

.model-strip:hover .model-strip-track {
  animation-play-state: paused;
}

.section {
  padding: var(--section-panel-padding) 0;
}

#prompts.section {
  background: var(--surface-soft);
}

.bordered,
.faq-section {
  background: var(--bg);
  border-color: var(--line);
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  letter-spacing: -0.02em;
}

.section-heading p,
.quality-copy p,
.site-footer p {
  margin-top: 8px;
}

.prompt-card,
.category-tile,
.benefit-card,
.faq-list details {
  border-radius: 8px;
  background: var(--surface);
  border-color: var(--line);
}

.prompt-card {
  position: relative;
  overflow: hidden;
  transition: border-color var(--state-fast), background var(--state-fast);
}

.prompt-card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.prompt-card-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -3px;
}

.prompt-card-link .card-body {
  flex: 1 1 auto;
}

.prompt-card.is-hovered,
.prompt-card.is-highlighted {
  border-color: var(--line-strong);
  background: var(--surface-strong);
  box-shadow: none;
}

.prompt-art {
  aspect-ratio: var(--cover-ratio);
  height: auto;
  background: #191c24;
}

.prompt-art::after {
  display: none;
}

.art-saas::before {
  background: #17232c;
}

.art-saas::after {
  inset: 0 auto 0 14%;
  width: 9%;
  display: block;
  background: #24404d;
}

.art-code::before {
  background: #17251f;
}

.art-code::after {
  inset: -25% auto -25% 38%;
  width: 26%;
  display: block;
  background: #25483a;
  transform: rotate(38deg);
}

.art-image::before {
  background: #22253a;
}

.art-image::after {
  inset: 31% auto auto 42%;
  width: 16%;
  aspect-ratio: 1;
  display: block;
  border-radius: 50%;
  background: #4979db;
  border: 1px solid #6c91e1;
}

.art-pitch::before {
  background: #1a1822;
  background-size: auto;
}

.art-pitch::after {
  inset: 18%;
  display: block;
  background: transparent;
  border: 1px solid #373141;
}

.prompt-art.has-uploaded-image::after {
  display: none;
}

.prompt-cover {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  padding: 14px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: #f6f3ed;
  background: #18252d;
  isolation: isolate;
}

.prompt-cover::before,
.prompt-cover::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.prompt-cover::before {
  inset: 12px;
  border: 1px solid rgba(246, 243, 237, 0.16);
}

.prompt-cover::after {
  right: -12%;
  bottom: -18%;
  width: 54%;
  aspect-ratio: 1;
  background: #284957;
  transform: rotate(18deg);
}

.prompt-cover-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
}

.prompt-cover-top b {
  letter-spacing: 0.08em;
}

.prompt-cover-top i {
  color: rgba(246, 243, 237, 0.62);
  font-style: normal;
}

.prompt-cover-mark {
  align-self: center;
  justify-self: start;
  color: rgba(246, 243, 237, 0.12);
  font-size: clamp(44px, 5vw, 76px);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.04em;
}

.prompt-cover-copy {
  max-width: 80%;
  display: grid;
  gap: 4px;
}

.prompt-cover-copy small {
  color: rgba(246, 243, 237, 0.68);
  font-size: 9px;
}

.prompt-cover-copy strong {
  font-size: clamp(11px, 1.05vw, 14px);
  line-height: 1.18;
  text-wrap: balance;
}

.prompt-cover-index {
  position: absolute;
  right: 15px;
  bottom: 13px;
  color: rgba(246, 243, 237, 0.72);
  font-size: 8px;
  font-weight: 800;
}

.cover-variant-2 {
  color: #f4efe5;
  background: #2b211b;
}

.cover-variant-2::before {
  inset: 0 66% 0 0;
  border: 0;
  background: #b06f3c;
}

.cover-variant-2::after {
  right: 13%;
  bottom: 18%;
  width: 34%;
  height: 36%;
  aspect-ratio: auto;
  background: transparent;
  border: 1px solid rgba(244, 239, 229, 0.34);
  transform: none;
}

.cover-variant-2 .prompt-cover-mark {
  justify-self: end;
  color: rgba(244, 239, 229, 0.18);
}

.cover-variant-3 {
  color: #edf2f7;
  background: #1a2038;
}

.cover-variant-3::before {
  inset: 18% auto auto 14%;
  width: 44%;
  aspect-ratio: 1;
  border: 1px solid rgba(237, 242, 247, 0.2);
  border-radius: 50%;
}

.cover-variant-3::after {
  right: 0;
  bottom: 0;
  width: 43%;
  height: 100%;
  aspect-ratio: auto;
  background: #2f4987;
  transform: none;
}

.cover-variant-4 {
  color: #edf7f1;
  background: #13231d;
}

.cover-variant-4::before {
  inset: 22% 10% auto;
  height: 1px;
  border: 0;
  background: rgba(237, 247, 241, 0.28);
  box-shadow: 0 18px 0 rgba(237, 247, 241, 0.18), 0 36px 0 rgba(237, 247, 241, 0.1);
}

.cover-variant-4::after {
  right: 11%;
  bottom: 16%;
  width: 23%;
  aspect-ratio: 1;
  background: #2f765b;
  transform: rotate(45deg);
}

.cover-variant-5 {
  color: #f6eff5;
  background: #241926;
}

.cover-variant-5::before {
  inset: 13% auto 13% 50%;
  width: 1px;
  border: 0;
  background: rgba(246, 239, 245, 0.24);
}

.cover-variant-5::after {
  right: 14%;
  bottom: 16%;
  width: 32%;
  aspect-ratio: 1;
  background: #6d3f69;
  transform: none;
}

.cover-variant-5 .prompt-cover-copy {
  max-width: 54%;
}

.cover-variant-6 {
  color: #f4f4ed;
  background: #292c22;
}

.cover-variant-6::before {
  inset: auto auto 0 0;
  width: 46%;
  height: 48%;
  border: 0;
  background: #747b43;
}

.cover-variant-6::after {
  right: 12%;
  top: 25%;
  bottom: auto;
  width: 30%;
  aspect-ratio: 1;
  background: transparent;
  border: 1px solid rgba(244, 244, 237, 0.32);
  transform: rotate(45deg);
}

.prompt-art.has-uploaded-image .prompt-cover {
  display: none;
}

.prompt-art.is-owned .prompt-cover-top b {
  visibility: hidden;
}

.favorite-button {
  z-index: 3;
  background: rgba(9, 10, 13, 0.9);
  border-color: var(--line-strong);
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.favorite-button:hover {
  transform: none;
  background: var(--surface-hover);
}

.favorite-button.is-favorite,
.favorite-button[aria-pressed="true"] {
  color: #ef7b9c;
  background: #2a1820;
  border-color: #683549;
}

.owned-badge,
.discount-badge {
  border-radius: 5px;
}

.category-tile {
  min-height: 136px;
  padding: 18px;
  align-content: end;
  background: var(--surface-soft);
}

.category-tile::after {
  content: "↗";
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--muted);
  font-size: 15px;
  transition: color var(--state-fast), transform var(--state-fast);
}

.category-tile:hover {
  border-color: var(--line-strong);
  background: var(--surface-strong);
}

.category-tile:hover::after {
  color: var(--text);
  transform: translate(2px, -2px);
}

.icon-shell {
  width: 30px;
  height: 30px;
  margin-bottom: auto;
  border: 0;
  border-radius: 0;
  color: #b7a4f8;
  background: transparent;
}

.quality-layout {
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(48px, 7vw, 92px);
}

.quality-section {
  background: var(--surface-soft);
  border-block: 1px solid var(--line-subtle);
}

.quality-copy {
  max-width: 470px;
}

.quality-kicker {
  display: block;
  margin-bottom: 12px;
  color: #b7a4f8;
  font-size: 12px;
  font-weight: 800;
}

.quality-copy h2 {
  max-width: 440px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.quality-copy p {
  max-width: 55ch;
  margin: 16px 0 26px;
  color: var(--muted-strong);
  line-height: 1.7;
}

.quality-copy .text-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.quality-copy .text-link::after {
  content: none;
}

.quality-copy .text-link svg {
  width: 17px;
  height: 17px;
  color: var(--primary);
  transition: transform var(--state-fast);
}

.quality-copy .text-link:hover svg {
  transform: translateX(3px);
}

.benefit-grid {
  position: relative;
  gap: 0;
  border-top: 0;
}

.benefit-grid::before,
.benefit-grid::after {
  content: "";
  position: absolute;
  z-index: 1;
  background: var(--line);
  pointer-events: none;
}

.benefit-grid::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.benefit-grid::after {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
}

.benefit-card {
  min-height: 148px;
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-content: center;
  align-items: start;
  gap: 7px 16px;
  border: 0;
  background: transparent;
}

.mini-icon {
  width: 38px;
  height: 38px;
  grid-row: 1 / 3;
  margin: 0;
  border-radius: 8px;
  color: #b7a4f8;
  background: rgba(127, 86, 239, 0.11);
}

.benefit-card h3,
.benefit-card p {
  grid-column: 2;
}

.benefit-card h3 {
  margin-top: 1px;
}

.benefit-card p {
  margin-top: 0;
  color: var(--muted-strong);
  line-height: 1.6;
}

.faq-list {
  max-width: 1040px;
  margin-inline: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
  border-top: 0;
}

.faq-column {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-self: stretch;
}

.faq-column:has(details[open]) {
  grid-template-rows: none;
  grid-auto-rows: auto;
}

.faq-list details {
  height: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  transition: background var(--state-fast);
}

.faq-list details:hover {
  background: var(--surface-hover);
}

.faq-list details[open] {
  background: var(--surface-strong);
}

.faq-list details.is-animating {
  overflow: hidden;
  will-change: height;
}

.faq-list summary {
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
  transition: color var(--state-fast);
}

.faq-list details:not([open]) summary {
  height: 100%;
}

.faq-list summary:hover {
  color: var(--text);
}

.faq-list summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
  border-radius: 8px;
}

.faq-list summary::after {
  float: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: var(--muted-strong);
  background: var(--surface-strong);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.faq-list details[open] summary {
  color: #c9bafb;
  border-bottom: 0;
}

.faq-list details[open] summary::after {
  content: "−";
  color: var(--text);
  background: rgba(127, 86, 239, 0.2);
}

.faq-list p {
  max-width: 62ch;
  margin: 0;
  padding: 0 54px 20px 18px;
  color: var(--muted-strong);
  font-size: 14px;
  line-height: 1.65;
}

.site-footer {
  background: var(--bg-soft);
  border-color: var(--line);
}

.footer-grid {
  padding: 46px 0;
}

.page-shell {
  background: var(--bg);
}

.page-shell::before {
  display: none;
}

.page-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.page-heading p,
.panel-eyebrow,
.dashboard-section-head p {
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
}

.page-heading span {
  max-width: 680px;
  color: var(--muted-strong);
}

.catalog-tools {
  position: relative;
  margin-bottom: 18px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.catalog-search {
  width: 100%;
  margin: 0 0 8px;
  border-color: transparent;
  background: var(--surface);
}

.prompts-toolbar {
  top: 64px;
  margin: 0;
  padding: 0;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px;
}

.prompts-toolbar.is-stuck {
  margin-inline: -10px;
  padding: 10px;
  background: var(--surface-soft);
  border-color: var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: none;
}

.prompt-type-tabs {
  min-height: 44px;
  padding: 3px;
  gap: 2px;
  border-radius: 8px;
  background: var(--surface-quiet);
  border-color: var(--line);
}

.filter-pill {
  min-height: 36px;
  min-width: 54px;
  border-radius: 6px;
  font-size: 13px;
}

.filter-pill.is-active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: none;
}

.filter-select {
  width: 146px;
  flex-basis: 146px;
}

.filter-select select,
.filter-dropdown-button {
  min-height: 44px;
  padding-left: 12px;
  border-radius: 8px;
  color: var(--muted-strong);
  background: var(--surface-quiet);
  border-color: var(--line);
}

.filter-select select {
  background: var(--surface);
}

.filter-select select:focus,
.filter-dropdown-button:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(138, 99, 246, 0.14);
}

.filter-dropdown-menu {
  left: 0;
  right: auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  max-height: 304px;
  padding: 6px;
  border-radius: 8px;
  background: var(--surface-strong);
  border-color: var(--line);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.38);
  backdrop-filter: none;
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.filter-dropdown-menu::-webkit-scrollbar {
  width: 8px;
}

.filter-dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}

.filter-dropdown-menu::-webkit-scrollbar-thumb {
  border: 2px solid var(--surface-strong);
  border-radius: 999px;
  background: var(--line-strong);
}

.filter-dropdown.is-open .filter-dropdown-button {
  color: var(--text);
  background: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(138, 99, 246, 0.12);
}

.filter-dropdown-option {
  min-height: 38px;
  padding: 0 9px 0 11px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  color: var(--muted-strong);
  border: 0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  transition: color var(--state-fast), background-color var(--state-fast);
}

.filter-dropdown-option:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.filter-dropdown-option:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
  background: var(--surface-hover);
}

.filter-dropdown-option.is-selected {
  color: var(--text);
  background: rgba(127, 86, 239, 0.12);
}

.filter-option-check {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  color: transparent;
}

.filter-dropdown-option.is-selected .filter-option-check {
  color: var(--primary);
}

.filter-option-check svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.4;
}

.sort-select {
  width: 196px;
  flex-basis: 196px;
}

.sort-select .filter-dropdown-menu {
  left: auto;
  right: 0;
  width: 100%;
}

.listing-summary {
  min-height: 36px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.listing-summary strong {
  color: var(--text);
}

.listing-summary a {
  color: var(--muted-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.listing-grid {
  gap: 18px 16px;
}

.prompts-load-state {
  margin-top: 28px;
  padding-top: 24px;
  border-color: var(--line);
  border-width: 1px 0 0;
  border-radius: 0;
  background: transparent;
}

.detail-gallery,
.detail-panel,
.product-detail-card,
.form-panel,
.summary-panel,
.stack-panel,
.prompt-content-panel,
.empty-panel,
.status-panel,
.dashboard-card,
.library-row {
  border-radius: 8px;
  background: var(--surface);
  border-color: var(--line);
}

.product-detail-shell {
  padding-top: 34px;
}

.product-detail-shell .detail-panel {
  min-height: 0;
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  grid-template-rows: auto auto auto minmax(96px, 1fr) auto auto;
  align-items: start;
  background: var(--surface-strong);
}

.product-detail-shell .detail-layout {
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, 0.97fr);
}

.detail-art.prompt-art {
  height: auto;
  aspect-ratio: 1.22;
  border-radius: 6px;
}

.detail-title {
  max-width: 22ch;
  margin: 0;
  font-size: clamp(27px, 2.35vw, 35px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.detail-title.is-long {
  font-size: clamp(25px, 2vw, 31px);
  line-height: 1.15;
}

.detail-title.is-very-long {
  font-size: clamp(23px, 1.75vw, 28px);
  line-height: 1.18;
}

.product-detail-shell .detail-badges {
  margin: 10px 0 0;
  gap: 6px;
}

.detail-price-label {
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-description {
  min-height: 96px;
  max-width: var(--content-reading);
  margin: 0;
  padding: 18px 0 20px;
  display: flex;
  align-items: center;
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.7;
  border-bottom: 0;
}

.detail-price-block {
  margin-top: 20px;
  padding: 10px 0 4px;
  border: 0;
}

.detail-price {
  font-size: 32px;
  letter-spacing: -0.02em;
}

.product-action-row {
  margin-top: 0;
  gap: 10px;
}

.product-action-row .pill-button {
  min-height: 46px;
  border-radius: 8px;
}

body[data-customer-surface="detail"] .quantity-discount-callout {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  color: var(--text);
  background: rgba(127, 86, 239, 0.09);
  border: 1px solid rgba(139, 77, 255, 0.34);
  border-radius: 8px;
}

.quantity-discount-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #d7c6ff;
  background: rgba(139, 77, 255, 0.18);
  border: 1px solid rgba(202, 168, 255, 0.28);
  border-radius: 50%;
}

.quantity-discount-icon svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

.quantity-discount-callout > span:last-child {
  min-width: 0;
}

.quantity-discount-callout strong,
.quantity-discount-callout small {
  display: block;
}

.quantity-discount-callout strong {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.quantity-discount-callout small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.45;
}

.trust-badges {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  gap: 10px;
}

.trust-badge {
  min-height: 30px;
  justify-content: flex-start;
  gap: 5px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  color: var(--muted-strong);
  background: transparent;
  font-weight: 600;
}

.trust-badge svg {
  width: 13px;
  height: 13px;
  color: var(--primary);
  stroke-width: 2;
}

.product-detail-card {
  padding: 24px;
  background: var(--surface-soft);
  border-color: var(--line-subtle);
}

.product-detail-card > p {
  max-width: var(--content-reading);
  font-size: 15px;
  line-height: 1.75;
}

.product-extra-grid {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.review-write-button {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 7px;
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: none;
}

.review-card {
  background: transparent;
  border-color: var(--line-subtle);
}

.review-avatar {
  color: var(--primary);
  background: #201a31;
  border-color: #45346c;
}

.slider-button {
  background: var(--surface-strong);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.slider-button:hover {
  background: var(--surface-hover);
  border-color: #596173;
}

/* Keep a slice of the next featured product visible as a scroll affordance. */
#prompts .prompt-grid {
  --prompt-card-width: calc(23.5294% - 16.95px);
}

#prompts .prompt-carousel .slider-button {
  top: 50%;
}

#prompts .prompt-carousel .slider-button:disabled {
  opacity: 0;
  pointer-events: none;
}

@media (min-width: 641px) and (hover: hover) and (pointer: fine) {
  #prompts .prompt-carousel .slider-button {
    top: 0;
    bottom: 0;
    width: 68px;
    height: 100%;
    color: #fff;
    background: rgba(4, 5, 8, 0.52);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    opacity: 0;
    transition: opacity 180ms ease, transform 180ms ease, background 160ms ease;
  }

  #prompts .prompt-carousel .slider-prev {
    left: 0;
    transform: translateX(-8px);
  }

  #prompts .prompt-carousel .slider-next {
    right: 0;
    transform: translateX(8px);
  }

  #prompts .prompt-carousel:hover .slider-button:not(:disabled),
  #prompts .prompt-carousel:focus-within .slider-button:not(:disabled) {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }

  #prompts .prompt-carousel .slider-button:hover {
    color: #fff;
    background: rgba(4, 5, 8, 0.68);
  }

  #prompts .prompt-carousel .slider-button svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.2;
  }
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.dashboard-nav {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  scrollbar-width: none;
}

.dashboard-nav::-webkit-scrollbar {
  display: none;
}

.dashboard-nav a {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-bottom: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 750;
}

.dashboard-nav a:hover {
  color: var(--text);
  background: var(--surface);
}

.dashboard-nav a.is-active {
  color: var(--text);
  background: var(--surface-strong);
  border-bottom-color: var(--primary);
}

.dashboard-nav svg,
.dashboard-actions svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.dashboard-main {
  min-width: 0;
  display: grid;
  gap: 20px;
}

.dashboard-overview {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.dashboard-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-section-head p,
.panel-eyebrow {
  margin: 0 0 4px;
}

.dashboard-section-head h2,
.security-panel h2 {
  margin: 0;
  font-size: 20px;
}

.dashboard-stats {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  border-radius: 0;
}

.dashboard-stats a {
  min-height: 86px;
  padding: 16px 18px;
  display: grid;
  align-content: space-between;
  color: var(--muted);
}

.dashboard-stats a + a {
  border-left: 1px solid var(--line);
}

.dashboard-stats strong {
  color: var(--text);
  font-size: 26px;
  letter-spacing: -0.03em;
}

.dashboard-library-preview {
  margin-top: 28px;
}

.dashboard-library-heading {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-library-heading h3 {
  margin: 0;
  font-size: 15px;
}

.dashboard-library-heading span {
  color: var(--muted);
  font-size: 12px;
}

.dashboard-library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-library-item {
  min-width: 0;
  padding: 8px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-subtle);
  border-radius: 7px;
  color: var(--text);
  background: var(--surface);
  transition: border-color var(--state-fast), background var(--state-fast);
}

.dashboard-library-item:hover {
  border-color: var(--line-strong);
  background: var(--surface-strong);
}

.dashboard-library-cover.prompt-art {
  width: 58px;
  height: 72px;
  aspect-ratio: auto;
  border-radius: 5px;
}

.dashboard-library-cover .prompt-cover {
  padding: 6px;
  display: grid;
  place-items: center;
}

.dashboard-library-cover .prompt-cover-top,
.dashboard-library-cover .prompt-cover-copy,
.dashboard-library-cover .prompt-cover-index {
  display: none;
}

.dashboard-library-cover .prompt-cover-mark {
  align-self: center;
  justify-self: center;
  font-size: 22px;
}

.dashboard-library-item > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.dashboard-library-item strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-library-item small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-library-item > svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.dashboard-actions {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.dashboard-actions > a {
  min-height: 68px;
  padding: 12px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.dashboard-actions > a:hover {
  color: var(--text);
}

.dashboard-actions > a > span {
  min-width: 0;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
}

.dashboard-actions strong,
.dashboard-actions small {
  grid-column: 2;
}

.dashboard-actions small {
  color: var(--muted);
}

.security-panel {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.security-panel > div:first-child,
.security-panel .form-message,
.security-actions {
  grid-column: 1 / -1;
}

.security-actions {
  display: flex;
  gap: 10px;
}

.form-panel input,
.form-panel select,
.form-panel textarea {
  border-radius: 7px;
  background: var(--bg-soft);
  border-color: var(--line-strong);
}

.email-verification-banner {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.email-verification-banner h2,
.email-verification-banner p {
  margin: 0;
}

.email-verification-banner p {
  margin-top: 4px;
  color: var(--muted);
}

.email-verification-banner .pill-button {
  width: auto;
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .nav-links,
  .nav-actions {
    background: var(--surface);
    backdrop-filter: none;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .quality-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .quality-copy {
    max-width: 620px;
  }

  .listing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .prompts-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .prompt-type-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .detail-layout,
  .product-extra-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-layout > *,
  .product-extra-grid > * {
    min-width: 0;
    width: 100%;
  }

  .product-detail-shell .detail-panel {
    height: auto;
    grid-template-rows: auto;
  }

  .product-detail-shell .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-nav {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 1024px) {
  #prompts .prompt-grid {
    --prompt-card-width: calc(44.4444% - 8.89px);
  }
}

@media (max-width: 640px) {
  :root {
    --fs-h1: 28px;
    --fs-h2: 22px;
    --fs-display: 30px;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-content {
    padding: 18px 0 16px;
  }

  .announcement {
    display: none;
  }

  .hero-copy {
    margin-top: 10px;
    font-size: 15px;
  }

  .hero-actions {
    margin-top: 14px;
    align-items: center;
  }

  .hero-actions .pill-button {
    width: min(100%, 220px);
  }

  .faq-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .faq-column {
    grid-template-rows: none;
    grid-auto-rows: auto;
    gap: 10px;
  }

  .search-panel {
    margin-top: 12px;
  }

  .search-results-dropdown {
    left: -4px;
    right: -4px;
    max-height: min(340px, 52vh);
  }

  .search-results-header {
    padding-inline: 8px;
  }

  .search-panel .search-result-item {
    min-height: 60px;
    padding: 9px 8px;
    gap: 10px;
  }

  .search-result-item strong {
    font-size: 12px;
  }

  .search-result-price {
    font-size: 11px;
  }

  .model-strip-track {
    min-height: 62px;
    font-size: 16px;
  }

  .prompt-grid {
    --prompt-card-width: calc((100% - 10px) / 2);
    gap: 10px;
  }

  #prompts .prompt-grid {
    --prompt-card-width: calc(44.4444% - 8.89px);
  }

  .prompt-carousel .slider-button {
    top: 50%;
    width: 34px;
    height: 34px;
  }

  .prompt-carousel .slider-button svg {
    width: 16px;
    height: 16px;
  }

  .prompt-carousel .slider-prev {
    left: 7px;
  }

  .prompt-carousel .slider-next {
    right: 7px;
  }

  #prompts .prompt-carousel .slider-button {
    top: 0;
    bottom: 0;
    width: 44px;
    height: 100%;
    color: #fff;
    background: rgba(4, 5, 8, 0.48);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  #prompts .prompt-carousel .slider-button:disabled {
    opacity: 0;
    pointer-events: none;
  }

  #prompts .prompt-carousel .slider-prev {
    left: 0;
  }

  #prompts .prompt-carousel .slider-next {
    right: 0;
  }

  #prompts .prompt-carousel .slider-button svg {
    width: 18px;
    height: 18px;
  }

  .prompt-card .card-body {
    padding: 10px 10px 12px;
  }

  .prompt-card .card-meta {
    gap: 4px;
  }

  .prompt-card .badge-stack {
    flex-wrap: nowrap;
    gap: 4px;
    overflow: hidden;
  }

  .prompt-card .model-badge,
  .prompt-card .category-badge {
    min-width: 0;
    max-width: 68px;
    overflow: hidden;
    padding-inline: 5px;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .prompt-card .category-badge {
    display: none;
  }

  .prompt-card .card-meta strong {
    flex: 0 0 auto;
    font-size: 13px;
    white-space: nowrap;
  }

  .listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .catalog-search {
    margin-bottom: 10px;
  }

  .catalog-tools {
    padding: 8px;
  }

  .prompts-toolbar {
    padding: 0;
    border: 0;
    border-radius: 0;
  }

  .filter-pill {
    min-height: 44px;
  }

  .prompt-filter-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-select,
  .sort-select {
    width: 100%;
    flex-basis: auto;
  }

  .filter-dropdown[data-filter-key="model"] .filter-dropdown-menu {
    left: auto;
    right: 0;
  }

  .sort-select {
    display: none;
  }

  .listing-summary {
    align-items: flex-start;
  }

  .detail-gallery,
  .detail-panel,
  .product-detail-card,
  .form-panel,
  .summary-panel,
  .prompt-content-panel,
  .empty-panel,
  .status-panel {
    padding: 16px;
  }

  .detail-art.prompt-art {
    height: auto;
    aspect-ratio: 1.18;
  }

  .detail-description {
    min-height: 0;
    flex: none;
    padding: 16px 0;
  }

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

  .favorite-button {
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
  }

  .favorite-button svg {
    width: 16px;
    height: 16px;
  }

  .product-action-row {
    grid-template-columns: 1fr;
  }

  body[data-customer-surface="detail"] .quantity-discount-callout {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
    padding: 10px 11px;
  }

  .quantity-discount-icon {
    width: 30px;
    height: 30px;
  }

  .dashboard-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
  }

  .dashboard-nav a {
    min-width: 0;
  }

  .dashboard-overview {
    padding: 16px;
  }

  .dashboard-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-stats a {
    min-height: 76px;
    padding: 12px 10px;
  }

  .dashboard-stats a + a {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .dashboard-stats span {
    font-size: 11px;
  }

  .dashboard-library-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-library-item {
    grid-template-columns: 52px minmax(0, 1fr) 16px;
  }

  .dashboard-library-cover.prompt-art {
    width: 52px;
    height: 64px;
  }

  .benefit-card {
    min-height: auto;
    padding: 16px 0;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: start;
    gap: 4px 12px;
    border-bottom: 1px solid var(--line);
  }

  .benefit-grid::before,
  .benefit-grid::after {
    display: none;
  }

  .benefit-card .mini-icon {
    width: 30px;
    height: 30px;
    grid-row: 1 / 3;
    margin: 0;
  }

  .benefit-card h3,
  .benefit-card p {
    grid-column: 2;
  }

  .benefit-card p {
    margin-top: 2px;
  }

  .security-panel {
    grid-template-columns: 1fr;
  }

  .security-panel > * {
    grid-column: 1 !important;
  }

  .security-actions {
    flex-direction: column;
  }

  .email-verification-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .email-verification-banner .pill-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .model-strip-track {
    animation: none !important;
    transform: none !important;
  }
}

.copyright {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cookie-preferences-button {
  padding: 4px 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cookie-preferences-button:hover,
.cookie-preferences-button:focus-visible {
  color: var(--text);
}

.consent-panel {
  position: fixed;
  z-index: 1200;
  right: 24px;
  bottom: 24px;
  width: min(520px, calc(100vw - 48px));
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  color: var(--text);
  background: var(--surface-raised, #171a23);
  border: 1px solid var(--line, #292e3a);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
}

.consent-copy h2 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.3;
}

.consent-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.consent-copy a {
  display: inline-block;
  margin-top: 8px;
  color: var(--text);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-actions {
  display: grid;
  gap: 8px;
}

.consent-actions button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.consent-primary {
  border: 1px solid var(--primary);
  color: var(--text);
  background: var(--primary);
}

.consent-secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
}

.consent-actions button:focus-visible {
  outline: 3px solid rgba(127, 86, 239, 0.34);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .consent-panel {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .consent-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 360px) {
  :root {
    --fs-display: 28px;
  }

  .hero-content h1 {
    line-height: 1.05;
  }

  .hero-copy {
    font-size: 14px;
    line-height: 1.45;
  }

  .hero-actions {
    margin-top: 12px;
  }

  .search-panel {
    margin-top: 10px;
  }
}

/* Product media V1 must remain after legacy component overrides. */
.prompt-card .prompt-art,
.product-detail-shell .detail-art.prompt-art {
  height: auto;
  aspect-ratio: 4 / 3;
}

@media (max-width: 760px) {
  .admin-media-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-media-picker {
    justify-content: center;
  }

  .admin-media-grid {
    grid-template-columns: 1fr;
  }

  .admin-media-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}
