/* CookieCodeJar app extensions - 1.0 component styles adapted for 2.0 pink base.
   Load after css/style.css. Filter chips use fixed pantry pink; buttons may use --btn-* overrides. */

.btn-sprinkle {
  position: fixed;
  z-index: 9999;
  width: 12px;
  height: 12px;
  pointer-events: none;
  animation: btn-sprinkle-pop 0.75s var(--ease) forwards;
}
.btn-sprinkle svg {
  width: 100%;
  height: 100%;
}
@keyframes btn-sprinkle-pop {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(0deg) scale(0.4);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1);
  }
}

/* --- Buttons --- */
.btn--primary {
  background: var(--grad-accent);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-accent);
}
.btn--primary svg {
  stroke: currentColor;
}
.btn--ghost {
  background: var(--ghost-bg);
  color: var(--text-on-white);
  border: 1.5px solid var(--ghost-border);
  box-shadow: none;
}
.btn--ghost:hover {
  color: var(--text);
  border-color: var(--accent-deep);
  background: var(--accent-soft);
}
.btn--soft {
  background: var(--accent-soft);
  color: var(--text-on-accent-soft);
}

/* --- Unified controls: action = primary, browse/nav/filters = ghost --- */
.chip,
.roadmap-dropdown__trigger {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.25rem;
  height: 2.25rem;
  padding: 0 0.9rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--ghost-border);
  background: var(--ghost-bg);
  color: var(--text-on-white);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
  box-shadow: none;
}
.chip:hover,
.roadmap-dropdown__trigger:hover {
  color: var(--text);
  border-color: var(--accent-deep);
  background: var(--accent-soft);
}
.filter-bar .chip.is-active,
.roadmap-filters .chip.is-active,
.outfit-filters .chip.is-active,
.chip.is-active,
.chip--favorites.is-active,
.roadmap-dropdown__option.is-active,
.field-dropdown .roadmap-dropdown__option.is-active {
  background: var(--grad-accent);
  border-color: transparent;
  color: var(--text-on-accent);
  box-shadow: var(--shadow-accent);
}
.filter-bar .chip.is-active:hover,
.roadmap-filters .chip.is-active:hover,
.outfit-filters .chip.is-active:hover,
.chip.is-active:hover,
.chip--favorites.is-active:hover,
.roadmap-dropdown__option.is-active:hover,
.field-dropdown .roadmap-dropdown__option.is-active:hover {
  color: var(--text-on-accent);
  border-color: transparent;
  transform: translateY(-1px);
}

.roadmap-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.roadmap-dropdown__prefix {
  opacity: 0.75;
}
.roadmap-dropdown__chevron svg {
  width: 0.85rem;
  height: 0.85rem;
  display: block;
  flex-shrink: 0;
}

/* --- Landing nav wordmark (Outfit) --- */
.landing-nav__wordmark {
  font-family: "Outfit", var(--font-body);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
}
.landing-nav__word-plain,
.landing-nav__word-accent {
  display: inline-block;
}
.landing-nav__word-plain {
  animation: float-bob-inverse 5s ease-in-out infinite;
}
.landing-nav__word-accent {
  color: var(--accent-deep);
  animation: float-bob 5s ease-in-out infinite;
}
.hero-stats {
  justify-content: flex-start;
}

.landing-hero__peek {
  display: none;
  margin-top: 0.85rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-deep);
  text-decoration: none;
}
.landing-hero__peek:hover {
  text-decoration: underline;
}
.landing-how__note {
  margin-top: 0.65rem;
}

.showcase__fallback {
  width: 256px;
  min-width: 256px;
  max-width: 256px;
  height: 176px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  border: 1px solid var(--border-hi);
  box-shadow: var(--shadow-soft);
  background: linear-gradient(
    135deg,
    var(--accent-soft),
    var(--secondary-soft)
  );
  opacity: 0.85;
}
.landing-hero__aside {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.product-detail-lightbox__meta {
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0.2rem 0 0;
  letter-spacing: 0.01em;
}
.product-detail-lightbox__meta[hidden] {
  display: none;
}
.vault-unlock-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  margin: 0.55rem 0 0;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  width: fit-content;
  max-width: 100%;
}
.vault-unlock-stat[hidden] {
  display: none;
}
.vault-unlock-stat__icon {
  display: grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  color: var(--accent-deep);
  opacity: 0.88;
}
.vault-unlock-stat__icon svg {
  width: 0.95rem;
  height: 0.95rem;
}
.vault-unlock-stat__text strong {
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.product-detail-lightbox__related-wrap[hidden] {
  display: none;
}
.product-detail-lightbox__related-wrap--inline {
  margin: 0.35rem 0 0;
  width: fit-content;
  max-width: 100%;
}
.product-detail-lightbox__related {
  margin: 0.55rem 0 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--canvas-2);
}
.product-detail-lightbox__related--inline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.4rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  width: fit-content;
  max-width: 100%;
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--text-muted);
}
.product-detail-lightbox__related-prefix {
  font-weight: 600;
  color: var(--text-muted);
}
.product-detail-lightbox__related-note {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  line-height: 1.4;
}
.product-detail-lightbox__related-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: inherit;
  font-weight: 700;
  color: var(--accent-deep);
  cursor: pointer;
  text-align: left;
  width: fit-content;
  max-width: 100%;
}
.product-detail-lightbox__related-link-text {
  text-decoration: none;
}
.product-detail-lightbox__related-link:hover .product-detail-lightbox__related-link-text {
  text-decoration: underline;
}
.product-detail-lightbox__related-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.12em;
  vertical-align: super;
  position: relative;
  top: -0.35em;
  width: 0.72em;
  height: 0.72em;
  color: var(--accent-deep);
  opacity: 0.9;
  pointer-events: none;
}
.product-detail-lightbox__related-link-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}
.product-detail-lightbox__related-link:hover {
  text-decoration: none;
}
.product-detail-lightbox__recent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.product-detail-lightbox__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem 0.65rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.product-detail-lightbox__actions .btn {
  white-space: nowrap;
}
.product-detail-lightbox__actions .btn svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}
.product-detail-lightbox__cta {
  display: inline-flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.6rem;
  margin-left: auto;
}
.product-detail-lightbox__cta-primary {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  min-width: 9.5rem;
  width: fit-content;
}
.product-detail-lightbox__cta .btn,
.product-detail-lightbox__cta-primary .btn {
  min-width: 9.5rem;
  width: 100%;
  justify-content: center;
}
.product-detail-lightbox__cta-primary .product-card__price.is-owned {
  min-width: 9.5rem;
  width: 100%;
}
.product-detail-lightbox__usage-link {
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.85;
}
.product-detail-lightbox__usage-link:hover {
  opacity: 1;
}
.product-detail-lightbox__shop-hint {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  text-align: right;
}
.product-detail-lightbox__shop-hint[hidden] {
  display: none;
}
.product-detail-lightbox__engage {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 0;
  min-width: 0;
  flex: 0 1 auto;
  align-self: flex-start;
  padding-top: 0.12rem;
}
.product-detail-lightbox__engage-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 1 auto;
  min-width: 0;
  flex-wrap: wrap;
}
.product-detail-lightbox__engage-row .product-detail-lightbox__engage,
.product-detail-lightbox__engage-row .product-detail-lightbox__like-engage {
  flex: 0 0 auto;
  padding-top: 0;
}
.product-detail-lightbox__engage-row .product-detail-lightbox__jar-scoop {
  margin: 0;
  flex: 0 0 auto;
}

/* Lightbox likes match vault cards (square heart + corner badge). */
.product-detail-lightbox__like-engage .request__action--square {
  width: 2.15rem;
  height: 2.15rem;
  min-width: 2.15rem;
}
.product-detail-lightbox__like-engage .request__icon-action__badge[hidden],
.product-detail-lightbox__like-engage .request__icon-action__badge:empty {
  display: none !important;
}
.product-detail-lightbox__engage-row .product-detail-lightbox__jar-scoop.vault-unlock-stat {
  margin: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-soft) 28%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  color: var(--text-muted);
  font-size: 0.78rem;
}
.product-detail-lightbox__remaster-status {
  flex: 1 1 100%;
  min-width: 0;
  margin: 0;
}
.product-detail-lightbox__remaster {
  width: auto;
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
}
.product-detail-lightbox__remaster--pending {
  color: var(--text);
  font-weight: 600;
  line-height: 1.35;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.product-detail-lightbox__cta [data-remaster-discount-request] {
  flex: 0 1 auto;
  white-space: nowrap;
}
.product-detail-lightbox__price-hint {
  width: 100%;
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
}
.product-detail-lightbox__variants {
  margin: 0.85rem 0 0.35rem;
}
.product-detail-lightbox__variants[hidden] {
  display: none;
}
.product-detail-lightbox__variants-label {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.product-detail-lightbox__variant-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}
.product-detail-lightbox__variant-track {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  gap: 0.4rem;
  overflow: hidden;
  min-width: 0;
  flex: 1 1 auto;
  width: 100%;
}
.product-detail-lightbox__variants--carousel .product-detail-lightbox__variants-label {
  text-align: center;
  letter-spacing: 0.08em;
  margin: 0 0 0.3rem;
  font-size: 0.66rem;
}
.product-detail-lightbox__look-carousel {
  display: grid;
  grid-template-columns: 1.85rem minmax(0, 1fr) 1.85rem;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.product-detail-lightbox__variant-track.is-sliding {
  will-change: transform, opacity;
}
.product-detail-lightbox__variant-track--ghost {
  position: absolute;
  left: 1.85rem;
  right: 1.85rem;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: stretch;
  gap: 0.4rem;
  pointer-events: none;
  z-index: 1;
}
.product-detail-lightbox__look-nav {
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--canvas-2) 80%, var(--surface));
  color: var(--text);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
}
.product-detail-lightbox__look-nav svg {
  width: 0.95rem;
  height: 0.95rem;
  stroke: currentColor;
  fill: none;
}
.product-detail-lightbox__look-nav:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: var(--accent-soft);
}
.product-detail-lightbox__look-nav-spacer {
  width: 1.85rem;
  height: 1.85rem;
}
.product-detail-lightbox__panel--look-picker .product-detail-lightbox__look-picker {
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
}
.product-detail-lightbox__panel--look-picker .product-detail-lightbox__variants {
  margin: 0;
}
.product-detail-lightbox__panel--look-picker {
  width: min(560px, calc(100vw - 2rem)) !important;
  max-width: min(560px, calc(100vw - 2rem)) !important;
  max-height: calc(100vh - 0.75rem) !important;
  padding: 0.7rem 1rem 0.9rem;
  gap: 0.45rem;
}
.product-detail-lightbox__panel--look-picker .product-detail-lightbox__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
  flex: 1 1 auto;
}
.product-detail-lightbox__panel--look-picker .product-detail-lightbox__media-shell {
  flex: 0 1 auto;
  height: auto;
  max-height: min(72vh, calc(100vh - 11rem));
  min-height: 0;
  overflow: hidden;
  display: block;
}
.product-detail-lightbox__panel--look-picker .product-detail-lightbox__media--preview {
  flex: none;
  width: 100%;
  height: auto;
  max-height: min(72vh, calc(100vh - 11rem));
  min-height: 0;
  overflow: hidden;
}
.product-detail-lightbox__panel--look-picker .product-detail-lightbox__preview-wrap,
.product-detail-lightbox__panel--look-picker .product-detail-lightbox__preview {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: min(72vh, calc(100vh - 11rem));
  object-fit: contain;
  object-position: center center;
}
.product-detail-lightbox__panel--look-picker .product-detail-lightbox__actions {
  margin-top: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.product-detail-lightbox__variant--card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.55rem;
  min-width: 0;
  min-height: 2.65rem;
  height: 2.65rem;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--canvas-2) 88%, var(--surface));
  color: var(--text);
  text-align: left;
}
.product-detail-lightbox__variant--card:hover {
  border-color: color-mix(in srgb, var(--border-hi) 70%, var(--border));
}
.product-detail-lightbox__variant--current {
  flex: 1.35 1 0;
  min-width: 0;
  transform: none;
  opacity: 1;
  z-index: 1;
}
.product-detail-lightbox__variant--side {
  flex: 1 1 0;
  min-width: 0;
  transform: scale(0.9);
  transform-origin: center center;
  opacity: 0.7;
}
.product-detail-lightbox__variant--card.is-selected,
.product-detail-lightbox__variant--current.is-selected {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 22%, transparent);
  background: color-mix(in srgb, var(--accent-soft) 35%, var(--surface));
  opacity: 1;
  transform: none;
}
.product-detail-lightbox__variant--card .product-detail-lightbox__variant-thumb {
  width: 1.85rem;
  height: 1.85rem;
  flex: 0 0 1.85rem;
  border-radius: 50%;
}
.product-detail-lightbox__variant--current .product-detail-lightbox__variant-thumb {
  width: 1.95rem;
  height: 1.95rem;
  flex-basis: 1.95rem;
}
.product-detail-lightbox__variant--card .product-detail-lightbox__variant-copy {
  gap: 0;
  min-width: 0;
  flex: 1 1 auto;
}
.product-detail-lightbox__variant--card .product-detail-lightbox__variant-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-detail-lightbox__variant--current .product-detail-lightbox__variant-title {
  font-size: 0.82rem;
}
.product-detail-lightbox__variant--card .product-detail-lightbox__variant-stat {
  display: none;
}
.product-detail-lightbox__variant--side .product-detail-lightbox__variant-stat {
  display: none;
}
.product-detail-lightbox__variant {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.45rem;
  align-items: start;
  padding: 0.4rem 0.45rem;
  border: 1px solid rgba(90, 48, 28, 0.14);
  border-radius: var(--r-md, 12px);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.product-detail-lightbox__variant:hover {
  border-color: rgba(90, 48, 28, 0.28);
}
.product-detail-lightbox__variant.is-selected {
  border-color: rgba(196, 92, 110, 0.55);
  box-shadow: 0 0 0 2px rgba(196, 92, 110, 0.18);
  background: rgba(255, 236, 242, 0.9);
  color: #3a2e34;
}
.product-detail-lightbox__variant-thumb {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  background: var(--grad-soft, #f6e8ee) center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(90, 48, 28, 0.12);
}
.product-detail-lightbox__variant-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.product-detail-lightbox__variant-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.3rem;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.2;
  color: inherit;
}
.product-detail-lightbox__variant-owned {
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--text-muted);
}
.product-detail-lightbox__variant-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text-muted);
}
.product-detail-lightbox__variant-stat-text strong {
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

/* Look-picker pills must beat base .variant grid above. */
.product-detail-lightbox__variant.product-detail-lightbox__variant--card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 0 0.65rem;
  min-width: 0;
  width: 0;
  min-height: 2.7rem;
  height: 2.7rem;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--canvas-2) 88%, var(--surface));
  color: var(--text);
  text-align: left;
  grid-template-columns: unset;
}
.product-detail-lightbox__variant.product-detail-lightbox__variant--card:hover {
  border-color: color-mix(in srgb, var(--border-hi) 70%, var(--border));
}
.product-detail-lightbox__variant.product-detail-lightbox__variant--current {
  flex: 1.4 1 0 !important;
  min-width: 0;
  transform: none !important;
  opacity: 1;
  z-index: 1;
}
.product-detail-lightbox__variant.product-detail-lightbox__variant--side {
  flex: 1 1 0 !important;
  min-width: 0;
  transform: scale(0.9) !important;
  transform-origin: center center;
  opacity: 0.7 !important;
}
.product-detail-lightbox__variant.product-detail-lightbox__variant--card.is-selected,
.product-detail-lightbox__variant.product-detail-lightbox__variant--current.is-selected {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 22%, transparent);
  background: color-mix(in srgb, var(--accent-soft) 35%, var(--surface));
  opacity: 1;
  transform: none !important;
}
.product-detail-lightbox__variant--card .product-detail-lightbox__variant-thumb {
  width: 1.85rem !important;
  height: 1.85rem !important;
  flex: 0 0 1.85rem;
  border-radius: 50% !important;
  align-self: center;
}
.product-detail-lightbox__variant--current .product-detail-lightbox__variant-thumb {
  width: 1.95rem !important;
  height: 1.95rem !important;
  flex-basis: 1.95rem;
}
.product-detail-lightbox__variant--card .product-detail-lightbox__variant-copy {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start;
  gap: 0;
  min-width: 0;
  flex: 1 1 auto;
  height: 100%;
}
.product-detail-lightbox__variant--card .product-detail-lightbox__variant-title {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  padding: 0;
}
.product-detail-lightbox__variant--current .product-detail-lightbox__variant-title {
  font-size: 0.84rem;
}
.product-detail-lightbox__variant--card .product-detail-lightbox__variant-stat,
.product-detail-lightbox__variant--side .product-detail-lightbox__variant-stat {
  display: none !important;
}

.product-detail-lightbox__variant-stat-icon {
  display: grid;
  place-items: center;
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
  color: var(--accent-deep);
  opacity: 0.88;
}
.product-detail-lightbox__variant-stat-icon svg {
  width: 0.72rem;
  height: 0.72rem;
}
.product-detail-lightbox__variant.is-owned .product-detail-lightbox__variant-title {
  opacity: 0.85;
}
.product-detail-lightbox__variant.is-owned:not(.is-selected) {
  border-color: rgba(90, 48, 28, 0.2);
}
html[data-scheme="dark"] .product-detail-lightbox__variant {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 236, 242, 0.16);
  color: var(--text);
}
html[data-scheme="dark"] .product-detail-lightbox__variant:hover {
  border-color: rgba(232, 164, 180, 0.45);
  background: rgba(255, 255, 255, 0.12);
}
html[data-scheme="dark"] .product-detail-lightbox__variant.is-selected {
  background: color-mix(in srgb, var(--accent) 32%, var(--surface-2));
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(232, 164, 180, 0.22);
  color: var(--text);
}
html[data-scheme="dark"] .product-detail-lightbox__panel--preview .product-detail-lightbox__body p.muted,
html[data-scheme="dark"] .product-detail-lightbox__panel--preview .product-detail-lightbox__copy > p.muted,
html[data-scheme="dark"] .product-detail-lightbox #product-detail-desc {
  color: #e8e0e4;
  font-weight: 600;
}
html[data-scheme="dark"] .product-detail-lightbox__gallery-dots {
  background: rgba(18, 14, 20, 0.88);
}
html[data-scheme="dark"] .product-detail-lightbox__gallery-dot {
  background: rgba(255, 236, 242, 0.38);
}
html[data-scheme="dark"] .product-detail-lightbox__gallery-dot.is-active {
  background: var(--accent);
}
html[data-scheme="dark"] .product-detail-lightbox__panel--preview .product-detail-lightbox__body h2,
html[data-scheme="dark"] .product-detail-lightbox #product-detail-title {
  color: var(--text);
}
.remaster-discount-file-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  line-height: 1.35;
}
.remaster-discount-file-hint.is-error {
  color: var(--bad);
  font-weight: 700;
}
.remaster-discount-file-hint.is-shaking {
  animation: remaster-file-hint-shake 0.45s ease;
}
@keyframes remaster-file-hint-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-7px);
  }
  40%,
  80% {
    transform: translateX(7px);
  }
}
.product-detail-lightbox__like-label[hidden] {
  display: none;
}

/* Animated lock Unlock control */
.vault-unlock-btn {
  min-width: 2.35rem;
  padding-inline: 0.7rem;
  justify-content: center;
}
.vault-unlock-btn--labeled {
  min-width: 0;
  gap: 0.45rem;
  padding-inline: 0.85rem 1rem;
}
.vault-unlock-btn__label {
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.vault-unlock-btn__icons {
  position: relative;
  display: grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
}
.vault-unlock-btn__icon {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.vault-unlock-btn__icon svg {
  width: 1.05rem;
  height: 1.05rem;
}
.vault-unlock-btn__icon--locked {
  animation: vault-lock-swap-a 2.4s ease-in-out infinite;
}
.vault-unlock-btn__icon--unlocked {
  animation: vault-lock-swap-b 2.4s ease-in-out infinite;
}
@keyframes vault-lock-swap-a {
  0%,
  38% {
    opacity: 1;
    transform: scale(1);
  }
  48%,
  88% {
    opacity: 0;
    transform: scale(0.82);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes vault-lock-swap-b {
  0%,
  38% {
    opacity: 0;
    transform: scale(0.82);
  }
  48%,
  88% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.82);
  }
}
@media (prefers-reduced-motion: reduce) {
  .vault-unlock-btn__icon--locked,
  .vault-unlock-btn__icon--unlocked {
    animation: none;
  }
  .vault-unlock-btn__icon--unlocked {
    opacity: 0;
  }
  .vault-unlock-btn__icon--locked {
    opacity: 1;
  }
}
.outfit-lightbox__copy {
  position: relative;
}
.outfit-lightbox__copy.is-locked {
  cursor: not-allowed;
  opacity: 0.72;
}
.outfit-lightbox__copy-lock {
  position: absolute;
  right: -0.2rem;
  bottom: -0.15rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--accent-deep);
  box-shadow: 0 0 0 1.5px var(--border);
  pointer-events: none;
}
.outfit-lightbox__copy-lock svg {
  width: 0.55rem;
  height: 0.55rem;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
}
.product-detail-lightbox__code {
  margin: 0.75rem 0 0.85rem;
  padding: 0.65rem 0.75rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}
.product-detail-lightbox__code-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.product-detail-lightbox__code-head .outfit-lightbox__label {
  flex: 1;
  margin: 0;
}
.product-detail-lightbox__code-head .outfit-lightbox__copied {
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 0.2s, transform 0.2s;
}
.product-detail-lightbox__code-copy {
  position: relative;
  flex-shrink: 0;
  white-space: nowrap;
}
.product-detail-lightbox__code-copy.is-locked {
  cursor: not-allowed;
  opacity: 0.72;
}
.product-detail-lightbox__code-copy-lock {
  position: absolute;
  right: -0.2rem;
  bottom: -0.15rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--accent-deep);
  box-shadow: 0 0 0 1.5px var(--border);
  pointer-events: none;
}
.product-detail-lightbox__code-copy-lock svg {
  width: 0.55rem;
  height: 0.55rem;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
}
.product-detail-lightbox__code-head.is-copied .outfit-lightbox__copied {
  opacity: 1;
  transform: translateX(0);
}
.product-detail-lightbox__code-body {
  position: relative;
  height: 16rem;
  min-height: 16rem;
  max-height: 16rem;
  overflow: auto;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--canvas-2);
}
/* Products with Episode code: image | details side-by-side, code below */
.product-detail-lightbox__top {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 0;
}
.product-detail-lightbox__copy {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}
.product-detail-lightbox__media-shell {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
}
.product-detail-lightbox__preview-wrap {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  line-height: 0;
  overflow: hidden;
}
.product-detail-lightbox__preview-loader {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
  color: var(--accent-deep);
}
.product-detail-lightbox__media:not(.is-loading) .product-detail-lightbox__preview-loader {
  display: none;
}
.product-detail-lightbox__preview-loader .btn__spinner {
  width: 1.4rem;
  height: 1.4rem;
  margin: 0;
  border-width: 2.5px;
}
.product-detail-lightbox__gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}
.product-detail-lightbox__gallery-prev { left: 0.45rem; }
.product-detail-lightbox__gallery-next { right: 0.45rem; }
.product-detail-lightbox__gallery-chrome {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  flex: 0 0 auto;
  min-height: 2.1rem;
  padding: 0.2rem 0.45rem 0.3rem;
  z-index: 3;
}
.product-detail-lightbox__gallery-chrome--overlay {
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  bottom: 3px;
  min-height: 0;
  padding: 0;
  pointer-events: none;
  z-index: 5;
  /* Bottom-align so dots sit on the sector edge (zoom is taller and was
     vertically centering the dots ~1rem higher). */
  align-items: end;
}
.product-detail-lightbox__gallery-chrome--overlay .product-detail-lightbox__gallery-dots {
  align-self: end;
  margin-bottom: 0;
}
.product-detail-lightbox__gallery-chrome--overlay .product-detail-lightbox__gallery-dots,
.product-detail-lightbox__gallery-chrome--overlay .product-detail-lightbox__zoom {
  pointer-events: auto;
}
.product-detail-lightbox__gallery-chrome--overlay .product-detail-lightbox__zoom {
  justify-self: end;
  grid-column: 3;
}
.product-detail-lightbox__gallery-dots {
  grid-column: 2;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.25rem 0.4rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.82);
  flex-shrink: 0;
}
.product-detail-lightbox__gallery-dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--ghost-border);
  cursor: pointer;
}
.product-detail-lightbox__gallery-dot.is-active {
  background: var(--accent-deep);
}

.nav__item--members-pantry.is-locked {
  opacity: 0.58;
  color: var(--text-faint);
}
.nav__item--members-pantry.is-locked:hover {
  opacity: 0.78;
  color: var(--text-muted);
}

.members-pantry-lock {
  text-align: center;
  padding: 3rem 1.5rem;
  max-width: 28rem;
  margin: 2rem auto 0;
}
.members-pantry-lock [data-icon] {
  display: inline-flex;
  margin-bottom: 0.75rem;
  color: var(--accent-deep);
}
.members-pantry-lock [data-icon] svg {
  width: 2rem;
  height: 2rem;
}
.members-pantry-lock h2 {
  margin: 0 0 0.4rem;
}
.members-pantry-lock p {
  margin: 0 0 1.15rem;
}
.product-detail-lightbox__zoom {
  grid-column: 3;
  justify-self: end;
  position: static;
  z-index: 3;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: var(--surface);
  color: var(--text-on-accent-soft);
  box-shadow: var(--shadow-soft);
  opacity: 1;
}
.product-detail-lightbox__zoom svg {
  width: 1rem;
  height: 1rem;
  display: block;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}
.product-detail-lightbox__zoom[hidden] {
  display: none;
}

.product-detail-lightbox__panel--with-code {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: calc(100vh - 2rem);
  width: min(820px, calc(100vw - 2rem)) !important;
  max-width: min(820px, calc(100vw - 2rem)) !important;
  gap: 0;
}
.product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--preview {
  overflow-x: hidden;
  overflow-y: auto;
}
.product-detail-lightbox__panel--with-code .product-detail-lightbox__top {
  display: grid;
  grid-template-columns: minmax(11rem, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem 1.15rem;
  align-items: start;
  flex: 0 0 auto;
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
}
.product-detail-lightbox__panel--with-code .product-detail-lightbox__media-shell {
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-detail-lightbox__panel--with-code .product-detail-lightbox__media--preview,
.product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--portrait .product-detail-lightbox__media--preview {
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  margin-bottom: 0;
  align-self: start;
  background: var(--canvas-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}
.product-detail-lightbox__panel--with-code .product-detail-lightbox__preview-wrap {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: min(48vh, 420px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--r-md) - 2px);
  overflow: hidden;
  position: relative;
  line-height: 0;
}
.product-detail-lightbox__panel--with-code .product-detail-lightbox__preview {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(48vh, 420px);
  object-fit: contain;
  border-radius: 0;
}
.product-detail-lightbox__panel--with-code video.product-detail-lightbox__preview {
  min-width: 0;
  min-height: 0;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(48vh, 420px);
  background: #0c0b0c;
}
/* Landscape preview: equal columns, media stays compact */
.product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--landscape .product-detail-lightbox__top {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}
.product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--landscape .product-detail-lightbox__preview,
.product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--landscape video.product-detail-lightbox__preview {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: min(36vh, 320px);
  object-fit: contain;
  background: #0c0b0c;
}
.product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--landscape .product-detail-lightbox__preview-wrap {
  max-height: min(36vh, 320px);
}
/* Portrait: cap height so tall clips don't dominate the details column */
.product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--portrait .product-detail-lightbox__media-shell {
  max-width: 100%;
  max-height: none;
  height: auto;
  align-self: start;
}
.product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--portrait .product-detail-lightbox__preview {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(48vh, 400px);
}
.product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--portrait video.product-detail-lightbox__preview {
  width: auto;
  max-width: min(100%, 260px);
  height: auto;
  max-height: min(48vh, 400px);
}
.product-detail-lightbox__panel--with-code .product-detail-lightbox__body {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  overflow: visible;
  align-self: stretch;
}
.product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--preview .product-detail-lightbox__body {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overflow: visible;
}
.product-detail-lightbox__panel--with-code .product-detail-lightbox__copy > .eyebrow,
.product-detail-lightbox__panel--with-code .product-detail-lightbox__copy > h2,
.product-detail-lightbox__panel--with-code .product-detail-lightbox__copy > p.muted,
.product-detail-lightbox__panel--with-code .product-detail-lightbox__meta,
.product-detail-lightbox__panel--with-code .product-detail-lightbox__related-wrap {
  flex: 0 0 auto;
}
.product-detail-lightbox__panel--with-code .product-detail-lightbox__copy > p.muted {
  margin-bottom: 0.15rem;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-detail-lightbox__panel--with-code .product-detail-lightbox__body > h2,
.product-detail-lightbox__panel--with-code .product-detail-lightbox__copy > h2 {
  margin-bottom: 0.15rem;
  padding-right: 0;
}
.product-detail-lightbox__panel--with-code #product-detail-code-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}
.product-detail-lightbox__panel--with-code #product-detail-code-wrap[hidden] {
  display: none;
}
.product-detail-lightbox__panel--with-code .product-detail-lightbox__code {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0.55rem 0.65rem 0.65rem;
}
.product-detail-lightbox__panel--with-code .product-detail-lightbox__code-head {
  flex: 0 0 auto;
}
.product-detail-lightbox__panel--with-code .product-detail-lightbox__code-body {
  flex: 1 1 auto;
  height: auto;
  min-height: 4.5rem;
  max-height: min(28vh, 12.5rem);
  overflow: auto;
  overscroll-behavior: contain;
}
.product-detail-lightbox__panel--with-code .product-detail-lightbox__actions {
  flex: 0 0 auto;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  align-items: flex-start;
}
.product-detail-lightbox__panel--with-code .product-detail-lightbox__copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  overflow: visible;
  flex: 0 1 auto;
}
@media (max-width: 720px) {
  .product-detail-lightbox__panel--with-code {
    width: min(560px, calc(100vw - 2rem)) !important;
    max-width: min(560px, calc(100vw - 2rem)) !important;
  }
  .product-detail-lightbox__panel--with-code .product-detail-lightbox__top {
    grid-template-columns: 1fr;
    min-height: 0;
    flex: 0 0 auto;
  }
  .product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--landscape .product-detail-lightbox__top {
    grid-template-columns: 1fr;
  }
  .product-detail-lightbox__panel--with-code .product-detail-lightbox__media-shell,
  .product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--portrait .product-detail-lightbox__media-shell {
    max-width: 100%;
    max-height: none;
    width: 100%;
    justify-content: center;
  }
  .product-detail-lightbox__panel--with-code .product-detail-lightbox__media--preview,
  .product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--portrait .product-detail-lightbox__media--preview {
    min-height: 0;
  }
  .product-detail-lightbox__panel--with-code .product-detail-lightbox__preview,
  .product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--portrait .product-detail-lightbox__preview,
  .product-detail-lightbox__panel--with-code .product-detail-lightbox__preview-wrap {
    max-width: 100%;
    max-height: min(36vh, 300px);
  }
  .product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--portrait video.product-detail-lightbox__preview {
    max-width: min(100%, 200px);
    max-height: min(36vh, 300px);
  }
  .product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--landscape .product-detail-lightbox__preview,
  .product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--landscape video.product-detail-lightbox__preview,
  .product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--landscape .product-detail-lightbox__preview-wrap {
    width: 100%;
    max-height: min(26vh, 220px);
  }
}

/* Category masthead: icon rail + uppercase label (all product types) */
.product-detail-lightbox__panel--category-masthead .product-detail-lightbox__masthead {
  flex-shrink: 0;
  padding-right: 1.5rem;
}
.product-detail-lightbox__panel--category-masthead:not(.product-detail-lightbox__panel--code-video) .product-detail-lightbox__masthead {
  padding-bottom: 0.65rem;
}
.product-detail-lightbox__panel--category-masthead .product-detail-lightbox__masthead-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  min-width: 0;
}
.product-detail-lightbox__panel--category-masthead .product-detail-lightbox__masthead-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  width: 5.15rem;
  flex-shrink: 0;
  padding-right: 0.85rem;
  border-right: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
}
.product-detail-lightbox__panel--category-masthead .product-detail-lightbox__masthead-type-label {
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  text-align: center;
  line-height: 1.15;
  white-space: nowrap;
}
.product-detail-lightbox__panel--category-masthead .product-detail-lightbox__masthead-type-icon {
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  color: var(--accent-deep);
}
.product-detail-lightbox__panel--category-masthead .product-detail-lightbox__masthead-type-icon .request__type-icon-img {
  width: 2.45rem;
  height: 2.45rem;
  object-fit: contain;
  display: block;
}
.product-detail-lightbox__panel--category-masthead .product-detail-lightbox__masthead-type-icon svg {
  width: 1.55rem;
  height: 1.55rem;
}
.product-detail-lightbox__panel--category-masthead .product-detail-lightbox__masthead-copy {
  min-width: 0;
  padding-top: 0.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.product-detail-lightbox__panel--category-masthead .product-detail-lightbox__masthead-copy h2 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.28rem;
  line-height: 1.22;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.product-detail-lightbox__panel--category-masthead .product-detail-lightbox__masthead-copy > p.muted {
  margin: 0 0 0.15rem;
  font-size: 0.88rem;
  line-height: 1.45;
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
}
.product-detail-lightbox__panel--category-masthead .product-detail-lightbox__copy {
  display: none;
}

/* Code + video preview: side-by-side media | code, roadmap-style footer */
.product-detail-lightbox__panel--code-video {
  width: min(630px, calc(100vw - 2rem)) !important;
  max-width: min(630px, calc(100vw - 2rem)) !important;
  max-height: calc(100vh - 0.75rem);
  gap: 0.65rem;
  padding: 0.7rem 1rem 0.95rem;
}
.product-detail-lightbox__panel--code-video .product-detail-lightbox__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: stretch;
  min-height: 0;
}
.product-detail-lightbox__panel--code-video #product-detail-media-shell {
  grid-column: 1;
  grid-row: 1;
}
.product-detail-lightbox__panel--code-video #product-detail-code-wrap {
  grid-column: 2;
  grid-row: 1;
}
.product-detail-lightbox__panel--code-video .product-detail-lightbox__media-shell,
.product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--code-video .product-detail-lightbox__media-shell {
  min-width: 0;
  min-height: min(52vh, 420px);
  align-self: stretch;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}
.product-detail-lightbox__panel--code-video .product-detail-lightbox__media--preview,
.product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--code-video .product-detail-lightbox__media--preview,
.product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--portrait .product-detail-lightbox__media--preview,
.product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--landscape .product-detail-lightbox__media--preview {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  align-self: stretch;
  min-height: min(52vh, 420px);
  max-height: min(52vh, 420px);
  margin: 0;
  padding: 0.35rem;
  background: var(--canvas-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.product-detail-lightbox__panel--code-video .product-detail-lightbox__preview-wrap,
.product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--code-video .product-detail-lightbox__preview-wrap,
.product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--landscape .product-detail-lightbox__preview-wrap,
.product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--portrait .product-detail-lightbox__preview-wrap {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  line-height: 0;
}
.product-detail-lightbox__panel--code-video .product-detail-lightbox__preview,
.product-detail-lightbox__panel--code-video video.product-detail-lightbox__preview,
.product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--code-video .product-detail-lightbox__preview,
.product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--code-video video.product-detail-lightbox__preview,
.product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--landscape .product-detail-lightbox__preview,
.product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--landscape video.product-detail-lightbox__preview,
.product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--portrait .product-detail-lightbox__preview,
.product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--portrait video.product-detail-lightbox__preview {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: calc(var(--r-md) - 2px);
  background: #0c0b0c;
}
.product-detail-lightbox__panel--code-video #product-detail-code-wrap {
  margin: 0;
  padding: 0;
  border: none;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.product-detail-lightbox__panel--code-video .product-detail-lightbox__code {
  flex: 1 1 auto;
  min-height: min(52vh, 420px);
  max-height: min(52vh, 420px);
  margin: 0;
  padding: 0.65rem 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}
.product-detail-lightbox__panel--code-video .product-detail-lightbox__code-body {
  flex: 1 1 auto;
  min-height: 8rem;
  max-height: none;
  height: auto;
}
.product-detail-lightbox__panel--code-video .product-detail-lightbox__footer {
  flex: 0 0 auto;
}
.product-detail-lightbox__panel--code-video .product-detail-lightbox__footer .product-detail-lightbox__actions {
  margin: 0.35rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.75rem;
}
.product-detail-lightbox__panel--code-video .product-detail-lightbox__like-engage {
  flex: 0 0 auto;
}
.product-detail-lightbox__panel--code-video .product-detail-lightbox__cta {
  margin-left: auto;
  flex: 0 0 auto;
}
.product-detail-lightbox__panel--code-video .product-detail-lightbox__top {
  display: none;
}

/* Code + video + related product suggestion in masthead */
.product-detail-lightbox__panel--code-video-suggest .product-detail-lightbox__masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13.5rem, 0.55fr);
  gap: 0.75rem;
  align-items: start;
  padding-right: 0;
}
.product-detail-lightbox__panel--code-video-suggest .product-detail-lightbox__masthead-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  min-width: 0;
  padding-right: 0;
  border-right: none;
}
.product-detail-lightbox__panel--code-video-suggest .product-detail-lightbox__masthead-rail {
  border-right: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
  padding-right: 0.85rem;
}
.product-detail-lightbox__panel--code-video-suggest .product-detail-lightbox__masthead-suggest {
  min-width: 0;
  align-self: stretch;
  display: flex;
}
.product-detail-lightbox__panel--code-video-suggest .product-detail-lightbox__related-wrap--masthead {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
.product-detail-lightbox__panel--code-video-suggest .product-detail-lightbox__related--masthead {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.75rem 0.9rem;
  min-height: 5.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--canvas-2) 88%, var(--surface));
}
.product-detail-lightbox__panel--code-video-suggest .product-detail-lightbox__related-note--masthead {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.2;
  color: var(--text-muted);
  flex: 0 0 auto;
  min-width: 0;
}
.product-detail-lightbox__panel--code-video-suggest .product-detail-lightbox__related-head {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  width: fit-content;
  max-width: 100%;
}
.product-detail-lightbox__related-open {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.55rem;
  height: 1.55rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text-on-accent);
  cursor: pointer;
  font: inherit;
}
.product-detail-lightbox__related-open svg {
  width: 0.95rem;
  height: 0.95rem;
  stroke: currentColor;
  fill: none;
}
.product-detail-lightbox__related-open:hover {
  background: var(--accent-deep);
  color: var(--text-on-accent);
}
.product-detail-lightbox__panel--code-video-suggest .product-detail-lightbox__related-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-deep);
  text-align: left;
}
@media (max-width: 720px) {
  .product-detail-lightbox__panel--code-video {
    width: min(392px, calc(100vw - 2rem)) !important;
    max-width: min(392px, calc(100vw - 2rem)) !important;
  }
  .product-detail-lightbox__panel--code-video .product-detail-lightbox__content {
    grid-template-columns: 1fr;
  }
  .product-detail-lightbox__panel--code-video .product-detail-lightbox__media--preview,
  .product-detail-lightbox__panel--code-video .product-detail-lightbox__code {
    min-height: 0;
    max-height: none;
  }
  .product-detail-lightbox__panel--code-video .product-detail-lightbox__preview,
  .product-detail-lightbox__panel--code-video video.product-detail-lightbox__preview {
    max-height: min(36vh, 300px);
  }
  .product-detail-lightbox__panel--code-video-suggest .product-detail-lightbox__masthead {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .product-detail-lightbox__panel--code-video-suggest .product-detail-lightbox__masthead-main {
    padding-right: 0;
    border-right: none;
  }
  .product-detail-lightbox__panel--code-video-suggest .product-detail-lightbox__masthead-rail {
    border-right: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
    padding-right: 0.85rem;
  }
}

/* Full-size preview over the product lightbox */
.product-preview-zoom {
  position: fixed;
  inset: 0;
  z-index: 450;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 1.5rem;
  background: rgba(20, 16, 18, 0.82);
  backdrop-filter: blur(8px);
}
.product-preview-zoom.is-open {
  display: flex;
}
.product-preview-zoom__media {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: calc(100vh - 5.5rem);
  min-height: 0;
}
.product-preview-zoom__img {
  display: block;
  max-width: min(96vw, 1400px);
  max-height: calc(100vh - 5.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-raised);
  background: var(--canvas-2);
}
.product-preview-zoom__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}
.product-preview-zoom__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.product-preview-zoom__prev { left: max(0.75rem, env(safe-area-inset-left)); }
.product-preview-zoom__next { right: max(0.75rem, env(safe-area-inset-right)); }
.product-preview-zoom__nav[hidden],
.product-preview-zoom__dots[hidden] {
  display: none !important;
}
.product-preview-zoom__dots {
  position: static;
  transform: none;
  left: auto;
  bottom: auto;
  z-index: 2;
  flex-shrink: 0;
  margin: 0;
}
body.product-preview-zoom-open {
  overflow: hidden;
}
.product-detail-lightbox__code-body.is-loading .product-detail-lightbox__code-text {
  visibility: hidden;
}
.product-detail-lightbox__code-body.is-loading .product-detail-lightbox__code-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}
.product-detail-lightbox__code-body.is-loading .product-detail-lightbox__code-status .btn__spinner {
  margin-right: 0;
  color: var(--accent-deep);
}
.product-detail-lightbox__code-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  pointer-events: none;
}
.product-detail-lightbox__code-text {
  margin: 0;
  padding: 0.75rem;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
  user-select: text;
}
.product-detail-lightbox__code.is-locked .product-detail-lightbox__code-text {
  filter: blur(7px);
  user-select: none;
  pointer-events: none;
}
.product-detail-lightbox__code-lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0 1rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(2px);
}
body.product-lightbox-open {
  overflow: hidden;
}
.product-card {
  cursor: pointer;
}
.product-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.asset-card,
.asset-row {
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s var(--ease);
}
.asset-card:hover,
.asset-row:hover {
  transform: translateY(-2px);
}
.asset-row__thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  object-fit: cover;
  background: var(--grad-soft);
}
.asset-row__meta h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}
.asset-row__meta p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.asset-row__action {
  flex-shrink: 0;
}
.asset-row__action .btn {
  white-space: nowrap;
}
@media (max-width: 640px) {
  .asset-card,
  .asset-row {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "thumb action"
      "meta meta";
    align-items: center;
    gap: 0.75rem 1rem;
  }
  .asset-row__thumb {
    grid-area: thumb;
  }
  .asset-row__action {
    grid-area: action;
    justify-self: end;
  }
  .asset-row__meta {
    grid-area: meta;
    min-width: 0;
  }
  .asset-row__meta p {
    white-space: normal;
  }
}
.suggestion-card {
  padding: 1.25rem 1.5rem;
}


.member-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.member-link:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}
.member-link strong {
  font-weight: inherit;
}
.suggestion-lightbox__comment-head .member-link {
  font-size: inherit;
}

/* Discord-style member hover preview */
.member-hover-card {
  position: fixed;
  z-index: 80;
  width: min(22.5rem, calc(100vw - 1.25rem));
  max-width: calc(100vw - 1.25rem);
  margin: 0;
  inset: unset;
  border: none;
  padding: 0;
  background: transparent;
  color: inherit;
  overflow: visible;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(0.2rem) scale(0.98);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.member-hover-card.is-open {
  opacity: 1;
  transform: none;
}
.member-hover-card.is-loading .member-hover-card__inner {
  min-height: 5.4rem;
}
.member-hover-card__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem 0.85rem;
  align-items: center;
  padding: 0.95rem 1.05rem 0.95rem 1.1rem;
  border-radius: var(--r-lg);
  border: 1px solid color-mix(in srgb, var(--border) 88%, var(--accent-soft));
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--surface) 92%, var(--accent-soft)) 0%,
      var(--surface) 100%
    );
  box-shadow: var(--shadow-soft), 0 0.55rem 1.4rem rgba(40, 24, 32, 0.14);
  overflow: visible;
}
.member-hover-card.has-frame .member-hover-card__inner {
  gap: 0.7rem 1.25rem;
  padding: 1.05rem 1.1rem 1.15rem 1.15rem;
}
.member-hover-card__avatar-wrap {
  position: relative;
  width: 3.6rem;
  height: 3.6rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  margin: 0.15rem 0.1rem 0.15rem 0.05rem;
  overflow: visible;
}
.member-hover-card__avatar {
  position: relative;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 9999px;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-on-accent-soft);
  background: var(--accent-soft);
  border: 2px solid color-mix(in srgb, var(--border) 70%, transparent);
  box-sizing: border-box;
  box-shadow: none;
  /* Force a true disc even if a parent style fights border-radius. */
  -webkit-mask-image: radial-gradient(circle at center, #000 99%, transparent 100%);
  mask-image: radial-gradient(circle at center, #000 99%, transparent 100%);
}
.member-hover-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: 9999px;
  display: block;
}
.member-hover-card__photo[hidden] {
  display: none;
}
.member-hover-card__initials {
  position: relative;
  z-index: 1;
  line-height: 1;
}
.member-hover-card__initials[hidden] {
  display: none;
}
.member-hover-card__avatar-loader {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  z-index: 2;
}
.member-hover-card.is-loading .member-hover-card__avatar-loader {
  display: grid;
}
.member-hover-card.is-loading .member-hover-card__photo,
.member-hover-card.is-loading .member-hover-card__initials {
  opacity: 0;
}
.member-hover-card.is-loading .member-hover-card__tier,
.member-hover-card.is-loading .member-hover-card__deleted,
.member-hover-card.is-loading .member-hover-card__episode,
.member-hover-card.is-loading .member-hover-card__birthday,
.member-hover-card.is-loading .member-hover-card__since {
  display: none;
}
.member-hover-card__skel {
  display: none;
  flex-direction: column;
  gap: 0.38rem;
  margin-top: 0.12rem;
}
.member-hover-card.is-loading .member-hover-card__skel {
  display: flex;
}
.member-hover-card__skel-line {
  display: block;
  height: 0.62rem;
  width: 72%;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-soft) 72%, var(--border));
  animation: member-hover-skel 1.05s ease-in-out infinite;
}
.member-hover-card__skel-line--short {
  width: 46%;
  animation-delay: 0.16s;
}
@keyframes member-hover-skel {
  0%,
  100% {
    opacity: 0.42;
  }
  50% {
    opacity: 0.9;
  }
}
.member-hover-card__avatar-wrap[data-frame] {
  width: 4.75rem;
  height: 4.75rem;
  margin: 0.2rem 0.1rem 0.4rem 0.05rem;
}
.member-hover-card__avatar-wrap > .avatar-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  z-index: 3;
  pointer-events: none;
  display: block;
}
.member-hover-card__avatar-wrap[data-frame] > .member-hover-card__avatar {
  width: 2.45rem;
  height: 2.45rem;
  border: none;
}
.member-hover-card__avatar-wrap .avatar-tier-badge {
  position: absolute;
  left: 50%;
  bottom: -0.15rem;
  transform: translateX(-50%);
  z-index: 5;
  white-space: nowrap;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.12rem 0.4rem;
  border-radius: var(--r-pill);
  background: var(--grad-accent);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-accent);
}
.member-hover-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.member-hover-card__name {
  margin: 0;
  font-family: var(--font-display, Fraunces, Georgia, serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  overflow-wrap: anywhere;
}
.member-hover-card__tier {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-deep);
}
.member-hover-card__deleted {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}
.member-hover-card__deleted[hidden] {
  display: none;
}
.member-hover-card__episode,
.member-hover-card__birthday,
.member-hover-card__since {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.member-hover-card__episode a {
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
}
.member-hover-card__episode a:hover {
  text-decoration: underline;
}
.profile-hero__since {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
}
.profile-notifications__list {
  border: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.profile-notifications__row {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--canvas-2);
}
.profile-notifications__row .checkbox {
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
}
.profile-notifications__copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.profile-notifications__copy strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.profile-notifications__copy small {
  font-size: 0.78rem;
  line-height: 1.35;
}
.profile-notifications__status {
  margin: 0.75rem 0 0;
}
.profile-notifications__status.is-bad {
  color: var(--bad);
}
.profile-notif-modal {
  width: min(28rem, calc(100vw - 1.5rem));
}
.profile-hero.card {
  position: relative;
  overflow: visible;
}
.profile-hero__notif-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid var(--border-hi);
  border-radius: var(--r-pill);
  background: var(--canvas-2);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.profile-hero__notif-btn:hover {
  color: var(--accent-deep);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border-hi));
  background: var(--accent-soft);
}
.profile-hero__notif-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.profile-hero__notif-btn svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}
html[data-scheme="dark"] .member-hover-card__inner {
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--surface) 88%, var(--accent-deep)) 0%,
      var(--surface) 100%
    );
  box-shadow: 0 0.65rem 1.6rem rgba(0, 0, 0, 0.35);
}

.member-profile__note {
  margin-top: 0.75rem;
  font-size: 0.88rem;
}
.member-profile__partial {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
}
.member-profile__since {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
}
.member-profile__missing {
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.member-profile__missing svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  color: var(--text-faint);
}
.request__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-top: 0.15rem;
}
.request__action,
.product-card__foot .vault-product__like--foot,
.product-detail-lightbox__like {
  border: 1px solid var(--border-hi);
  background: var(--canvas);
  border-radius: var(--r-md);
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: auto;
  width: auto;
  height: auto;
  box-shadow: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.request__action svg,
.product-card__foot .vault-product__like--foot svg,
.product-detail-lightbox__like svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  display: block;
  margin: 0;
  transform: none;
}
.product-card__foot .vault-product__like--foot [data-icon],
.product-detail-lightbox__like [data-icon] {
  display: contents;
}
.request__action--like.is-liked svg,
.product-card__foot .vault-product__like--heart.is-liked svg,
.product-detail-lightbox__like.is-liked svg {
  fill: var(--accent);
  stroke: var(--accent);
}
.request__action:hover,
.product-card__foot .vault-product__like--foot:hover,
.product-detail-lightbox__like:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text-on-accent-soft);
  transform: none;
}
.request__action--like.is-liked,
.product-card__foot .vault-product__like--heart.is-liked,
.product-detail-lightbox__like.is-liked {
  color: var(--text);
  border-color: var(--border-hi);
  background: var(--surface);
}
.request__action--like.is-liked:hover,
.product-card__foot .vault-product__like--heart.is-liked:hover,
.product-detail-lightbox__like.is-liked:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--text);
}
.request__action--like.is-liked:hover svg,
.product-card__foot .vault-product__like--heart.is-liked:hover svg,
.product-detail-lightbox__like.is-liked:hover svg {
  fill: var(--accent);
  stroke: var(--accent);
}
.request__like-engage,
.vault-product__engage {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.request__icon-action {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}
.request__action--square {
  width: 2.35rem;
  height: 2.35rem;
  min-width: 2.35rem;
  padding: 0;
}
.request__icon-action__badge {
  position: absolute;
  top: -0.32rem;
  right: -0.32rem;
  z-index: 1;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.18rem;
  display: inline-grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  border-radius: 0.2rem;
  background: var(--canvas-2);
  border: 1px solid var(--border-hi);
  color: var(--text);
  pointer-events: none;
}
button.request__icon-action__badge.request__action--like-count {
  pointer-events: auto;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid var(--border-hi);
  background: var(--canvas-2);
}
button.request__icon-action__badge.request__action--like-count:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text-on-accent-soft);
}
.request__icon-action__badge[hidden],
.request__icon-action__badge:empty {
  display: none !important;
}
/* Legacy text-style count (not corner badges). */
.request__action--like-count:not(.request__icon-action__badge),
.vault-product__like-count-btn:not(.request__icon-action__badge),
.product-detail-lightbox__like-count-btn:not(.request__icon-action__badge) {
  border: none;
  background: transparent;
  min-width: auto;
  padding: 0.2rem 0.45rem;
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1;
  color: var(--text-muted);
  border-radius: var(--r-md);
  cursor: pointer;
}
.request__action--like-count:not(.request__icon-action__badge):hover,
.vault-product__like-count-btn:not(.request__icon-action__badge):hover,
.product-detail-lightbox__like-count-btn:not(.request__icon-action__badge):hover {
  color: var(--text-on-accent-soft);
  background: var(--accent-soft);
}
.request__action--like-count b,
.vault-product__like-count-btn b,
.product-detail-lightbox__like-count-btn b {
  font-weight: inherit;
}
.request__action--like-count[hidden],
.vault-product__like-count-btn[hidden],
.product-detail-lightbox__like-count-btn[hidden] {
  display: none !important;
}

/* Who liked modal (Instagram-style list) */
dialog.engagement-likers-modal {
  width: min(22rem, calc(100vw - 2rem));
  max-width: 22rem;
  max-height: min(70vh, 32rem);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  color: var(--text);
  background: var(--surface);
  overflow: hidden;
}
dialog.engagement-likers-modal::backdrop {
  background: rgba(69, 53, 60, 0.45);
  backdrop-filter: blur(8px);
}
.engagement-likers-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}
.engagement-likers-modal__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}
.engagement-likers-modal__close {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--r-pill);
}
.engagement-likers-modal__close:hover {
  background: var(--accent-soft);
  color: var(--text);
}
.engagement-likers-modal__body {
  overflow: auto;
  max-height: calc(min(70vh, 32rem) - 3.2rem);
}
.engagement-likers-modal__status {
  padding: 1.25rem 1rem;
  text-align: center;
  margin: 0;
}
.engagement-likers-modal__list {
  display: flex;
  flex-direction: column;
}
.engagement-likers-modal__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  color: inherit;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 65%, transparent);
}
.engagement-likers-modal__row:last-child {
  border-bottom: none;
}
.engagement-likers-modal__remove {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid var(--border-hi);
  background: var(--canvas);
  color: var(--text-muted);
  border-radius: var(--r-md);
  padding: 0.3rem 0.55rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}
.engagement-likers-modal__remove svg {
  width: 0.9rem;
  height: 0.9rem;
  display: block;
}
.engagement-likers-modal__remove:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text-on-accent-soft);
}
.engagement-likers-modal__remove:disabled {
  opacity: 0.6;
  cursor: wait;
}
.engagement-likers-modal__avatar {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--canvas-2);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
}
.engagement-likers-modal__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.engagement-likers-modal__meta {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.engagement-likers-modal__name {
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: left;
}
.engagement-likers-modal__tier {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-deep);
}
.engagement-likers-modal__tier--deleted {
  color: var(--text-muted);
  font-weight: 650;
}

/* Profile hero (2.0 shell + 1.0 upload) */
.profile-hero__avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}
.profile-hero__avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--grad-accent);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-on-accent);
  box-shadow: var(--shadow-accent);
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.profile-hero__avatar.has-photo {
  color: transparent;
  background-color: var(--canvas-2);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.profile-hero h2,
#profile-name {
  color: var(--text);
  margin: 0;
}
.profile-hero__name-row {
  margin-bottom: 0.25rem;
}
.profile-hero__name-line {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.profile-hero__name-edit {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--r-sm);
  flex-shrink: 0;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.profile-hero__name-edit:hover {
  color: var(--text-on-accent-soft);
  background: var(--accent-soft);
}
.profile-hero__name-edit svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  display: block;
}
.profile-hero__name-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.profile-hero__name-form[hidden],
.profile-hero__name-line[hidden] {
  display: none !important;
}
.profile-hero__name-form input {
  flex: 1;
  min-width: 10rem;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font: inherit;
  font-size: 0.95rem;
  background: var(--canvas-2);
  color: var(--text);
}
.profile-hero__name-form input:focus {
  outline: none;
  border-color: var(--accent);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#profile-email {
  color: var(--text-muted);
  margin: 0;
}
.tier-grid--loading {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  min-height: 12rem;
}
.my-assets-list[data-loading]:empty,
#assets-list[data-loading]:empty {
  min-height: 14rem;
}
.profile-overlays.is-primed {
  animation: none;
}
dialog.request-modal,
dialog.profile-delete-modal,
dialog.profile-notif-modal {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}
dialog.request-modal::backdrop,
dialog.profile-delete-modal::backdrop,
dialog.profile-notif-modal::backdrop {
  background: rgba(69, 53, 60, 0.45);
  backdrop-filter: blur(8px);
}
.profile-hero__avatar.has-photo {
  background-color: var(--canvas-2);
}
.profile-hero__upload {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-deep);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Discord-style avatar crop editor */
dialog.avatar-edit-modal {
  width: min(420px, calc(100vw - 2rem));
  max-width: 420px;
  padding: 1.25rem 1.35rem 1.35rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}
dialog.avatar-edit-modal::backdrop {
  background: rgba(69, 53, 60, 0.5);
  backdrop-filter: blur(8px);
}
.avatar-edit-modal .request-modal__head {
  margin-bottom: 0.85rem;
}
.avatar-edit-modal .request-modal__head h2 {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
}
.avatar-edit-modal .request-modal__head .muted {
  margin: 0;
  font-size: 0.82rem;
}
.avatar-edit__stage {
  display: grid;
  place-items: center;
  width: 100%;
  margin: 0 0 0.85rem;
  border-radius: var(--r-md);
  background: #1a1418;
  overflow: hidden;
}
.avatar-edit__viewport {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1;
  height: auto;
  margin-inline: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
  overflow: hidden;
}
.avatar-edit__viewport.is-dragging {
  cursor: grabbing;
}
.avatar-edit__image {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: auto;
  max-width: none;
  transform-origin: center center;
  pointer-events: none;
  -webkit-user-drag: none;
}
.avatar-edit__frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 81.25%;
  height: 81.25%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  z-index: 1;
}
.avatar-edit__controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}
.avatar-edit__zoom {
  flex: 1;
  min-width: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.avatar-edit__zoom-icon {
  display: grid;
  place-items: center;
  color: var(--text-muted);
  flex-shrink: 0;
}
.avatar-edit__zoom-icon svg {
  width: 1rem;
  height: 1rem;
}
.avatar-edit__zoom-icon--sm svg {
  width: 0.85rem;
  height: 0.85rem;
}
.avatar-edit__zoom-icon--lg svg {
  width: 1.2rem;
  height: 1.2rem;
}
.avatar-edit__rotate {
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--canvas-2);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}
.avatar-edit__rotate:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}
.avatar-edit__rotate svg {
  width: 1.05rem;
  height: 1.05rem;
}
.avatar-edit__actions {
  justify-content: space-between;
  margin-top: 1rem;
}
.avatar-edit__actions-end {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}
.avatar-edit__reset {
  margin-right: auto;
}
dialog.profile-delete-modal[open],
dialog.profile-password-modal[open] {
  margin: auto;
  overflow: auto;
}
@keyframes ccj-moz-autofill-start {
  from {
    opacity: 1;
  }
  to {
    opacity: 1;
  }
}
.profile-delete-modal input:-moz-autofill,
.profile-password-modal input:-moz-autofill {
  animation: ccj-moz-autofill-start 1ms;
}
.profile-delete-modal .field input,
.profile-password-modal .field input,
.profile-delete-modal .password-field input,
.profile-password-modal .password-field input {
  background: var(--canvas-2);
  color: var(--text);
  border: 1.5px solid var(--border);
  outline: none;
  box-shadow: none;
}
.profile-password-modal:focus-within .password-field input:not(:focus),
.profile-delete-modal:focus-within .password-field input:not(:focus),
.profile-password-modal .password-field input.is-idle,
.profile-delete-modal .password-field input.is-idle {
  border-color: var(--border) !important;
  outline: none !important;
  box-shadow: 0 0 0 1000px var(--canvas-2) inset !important;
  background-color: var(--canvas-2) !important;
}
.profile-delete-modal .field input:-webkit-autofill,
.profile-delete-modal .field input:-webkit-autofill:hover,
.profile-password-modal .field input:-webkit-autofill,
.profile-password-modal .field input:-webkit-autofill:hover,
.profile-delete-modal .password-field input:-webkit-autofill,
.profile-delete-modal .password-field input:-webkit-autofill:hover,
.profile-password-modal .password-field input:-webkit-autofill,
.profile-password-modal .password-field input:-webkit-autofill:hover {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  border-color: var(--border);
  box-shadow: 0 0 0 1000px var(--canvas-2) inset;
  transition: background-color 99999s ease-out 0s;
}
.profile-password-modal:focus-within .password-field input:not(:focus):-webkit-autofill,
.profile-delete-modal:focus-within .password-field input:not(:focus):-webkit-autofill {
  border-color: var(--border) !important;
  box-shadow: 0 0 0 1000px var(--canvas-2) inset !important;
}
.profile-delete-modal .field input:-webkit-autofill:focus,
.profile-password-modal .field input:-webkit-autofill:focus,
.profile-delete-modal .password-field input:-webkit-autofill:focus,
.profile-password-modal .password-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 0 0 1000px var(--canvas-2) inset;
}
.profile-delete-modal .field input:autofill,
.profile-password-modal .field input:autofill,
.profile-delete-modal .password-field input:autofill,
.profile-password-modal .password-field input:autofill {
  box-shadow: 0 0 0 1000px var(--canvas-2) inset;
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  border-color: var(--border);
}
.profile-delete-modal .field input:-moz-autofill,
.profile-delete-modal .field input:-moz-autofill-preview,
.profile-password-modal .field input:-moz-autofill,
.profile-password-modal .field input:-moz-autofill-preview,
.profile-delete-modal .password-field input:-moz-autofill,
.profile-delete-modal .password-field input:-moz-autofill-preview,
.profile-password-modal .password-field input:-moz-autofill,
.profile-password-modal .password-field input:-moz-autofill-preview {
  background-color: var(--canvas-2) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
  box-shadow: 0 0 0 1000px var(--canvas-2) inset !important;
  filter: none;
  outline: none !important;
}
.profile-password-modal:focus-within .password-field input:not(:focus):-moz-autofill,
.profile-delete-modal:focus-within .password-field input:not(:focus):-moz-autofill {
  border-color: var(--border) !important;
  box-shadow: 0 0 0 1000px var(--canvas-2) inset !important;
  outline: none !important;
}
.profile-password-modal .field input:focus,
.profile-delete-modal .field input:focus,
.profile-password-modal .password-field input:focus,
.profile-delete-modal .password-field input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 28%, transparent);
}
.profile-password-modal .field input:not(:focus):-moz-autofill,
.profile-delete-modal .field input:not(:focus):-moz-autofill,
.profile-password-modal .password-field input:not(:focus):-moz-autofill,
.profile-delete-modal .password-field input:not(:focus):-moz-autofill {
  border-color: var(--border) !important;
  box-shadow: 0 0 0 1000px var(--canvas-2) inset !important;
}
.profile-password-modal .field input:focus:-moz-autofill,
.profile-delete-modal .field input:focus:-moz-autofill,
.profile-password-modal .password-field input:focus:-moz-autofill,
.profile-delete-modal .password-field input:focus:-moz-autofill {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 1000px var(--canvas-2) inset, 0 0 0 2px color-mix(in srgb, var(--accent) 28%, transparent);
}
.profile-hero__identity {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  min-width: 0;
  flex: 1 1 auto;
}
.profile-hero__info {
  min-width: 0;
}
.profile-hero__email {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
}
.profile-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.55rem;
  margin: 0.45rem 0 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.profile-hero__meta-item {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
}
.profile-hero__meta-label,
.profile-hero__meta-sep,
.profile-hero__meta-divider {
  color: var(--text-muted);
  font-weight: 500;
}
.profile-hero__meta-value {
  color: var(--text);
  font-weight: 600;
}
.profile-hero__meta-edit {
  width: 1.55rem;
  height: 1.55rem;
}
.profile-hero__meta-edit svg {
  width: 0.85rem;
  height: 0.85rem;
}
.profile-hero__birthday-lock {
  display: inline-grid;
  place-items: center;
  color: var(--text-muted);
  opacity: 0.75;
}
.profile-hero__birthday-lock[hidden] {
  display: none;
}
.profile-hero__birthday-lock svg {
  width: 0.85rem;
  height: 0.85rem;
  stroke: currentColor;
  fill: none;
  display: block;
}
.profile-hero__jar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  flex: 0 0 auto;
  margin-left: auto;
}
.profile-hero__credits {
  font-weight: 700;
  color: var(--accent-deep);
  margin: 0.55rem 0 0;
  text-align: left;
  font-size: 0.92rem;
  line-height: 1.3;
}
.profile-credit-story {
  margin: 0.9rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 26rem;
}
.profile-credit-balance.vault-banner__balance {
  gap: 0.8rem;
  width: 100%;
}
.profile-credit-balance .vault-banner__balance-mark {
  width: 2.35rem;
  height: 2.35rem;
}
.profile-credit-balance .vault-banner__balance-mark svg {
  width: 1.15rem;
  height: 1.15rem;
}
.profile-credit-balance .vault-banner__balance-body {
  min-width: 0;
  flex: 1 1 auto;
}
.profile-credit-balance .vault-banner__balance-num {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
}
.profile-credit-balance .vault-banner__balance-label {
  font-size: 0.78rem;
}
.profile-credit-balance .vault-banner__meter {
  width: 100%;
  max-width: 16.5rem;
  margin-top: 0.28rem;
}
.profile-credit-story a {
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
}
.profile-credit-story a:hover {
  text-decoration: underline;
}
.profile-credit-story__next {
  display: block;
  margin-top: 0.45rem;
  color: var(--text);
}
.pantry-lock__tease {
  margin-top: 0.35rem;
}
.profile-hero__episode-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-deep);
}
.profile-hero__episode-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.45rem 0 0;
}
.profile-hero__episode-form input {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font: inherit;
  font-size: 0.88rem;
}
.profile-hero__episode-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.profile-hero__birthday-form select {
  flex: 0 1 9rem;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font: inherit;
  font-size: 0.88rem;
}
.profile-hero__birthday-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.profile-hero__birthday-note {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
}
.profile-hero__meta:has(#profile-episode-display[hidden]) .profile-hero__meta-divider,
.profile-hero__meta:has(#profile-birthday-display[hidden]) .profile-hero__meta-divider {
  display: none;
}
.profile-hero__avatar-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  display: grid;
  place-items: center;
  margin-inline: auto;
}
.profile-hero__avatar-wrap .profile-hero__avatar {
  width: 88px;
  height: 88px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-soft);
}
.profile-hero__avatar-wrap .avatar-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
  display: none;
}
.profile-hero__avatar-wrap[data-frame] > .avatar-frame {
  display: block;
}
.profile-hero__avatar-wrap .avatar-tier-badge {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 0.18rem 0.55rem;
  border-radius: var(--r-pill);
  background: var(--grad-accent);
  color: var(--text-on-accent);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow:
    0 0 0 1px rgba(90, 48, 28, 0.18),
    0 0.12rem 0.4rem rgba(74, 40, 22, 0.38),
    0 0 0.55rem rgba(90, 48, 28, 0.22);
  pointer-events: none;
  line-height: 1.2;
}

/* Membership avatar ornaments (PNG/WebP rings in jar/tier_*.webp) */
.avatar-frame {
  display: none;
  pointer-events: none;
  user-select: none;
}
.avatar-wrap[data-frame] > .avatar-frame,
.profile-hero__avatar-wrap[data-frame] > .avatar-frame {
  display: block;
  /* Soft brown halo so light dough/icing frames don’t melt into the card */
  filter:
    drop-shadow(0 0 0.2rem rgba(90, 48, 28, 0.28))
    drop-shadow(0 0.1rem 0.35rem rgba(74, 40, 22, 0.32));
}
.avatar-wrap[data-frame] > .avatar,
.avatar-wrap[data-frame] > .profile-hero__avatar {
  border-color: transparent;
}

/* Soft opacity twinkles on Batch (few) and Sugar Rush (more) */
.avatar-sparks {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
}
.avatar-spark {
  position: absolute;
  top: var(--spark-top);
  left: var(--spark-left);
  width: var(--spark-size);
  height: auto;
  transform: rotate(var(--spark-rotate, 0deg));
  opacity: 0;
  animation: avatar-spark-twinkle 2.6s ease-in-out infinite;
  animation-delay: var(--spark-delay, 0s);
  filter: drop-shadow(0 0 0.2rem rgba(255, 214, 230, 0.55));
}
@keyframes avatar-spark-twinkle {
  0%,
  100% {
    opacity: 0;
  }
  35%,
  55% {
    opacity: 0.95;
  }
}
@media (prefers-reduced-motion: reduce) {
  .avatar-spark {
    animation: none;
    opacity: 0.55;
  }
}
.topbar .avatar-sparks {
  display: none;
}
.profile-account-actions {
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.profile-account-actions__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.profile-account-actions__col h2 {
  margin-bottom: 0.35rem;
}
.profile-account-actions__text {
  margin-bottom: 1rem;
  max-width: 42ch;
}
.profile-account-actions__col--danger {
  padding-left: 2rem;
  border-left: 1px solid rgba(224, 122, 122, 0.25);
}
@media (max-width: 720px) {
  .profile-account-actions__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .profile-account-actions__col--danger {
    padding-left: 0;
    padding-top: 1.5rem;
    border-left: none;
    border-top: 1px solid rgba(224, 122, 122, 0.25);
  }
}
dialog.profile-password-modal {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}
dialog.profile-password-modal::backdrop {
  background: rgba(69, 53, 60, 0.45);
}
dialog.pen-name-setup-modal {
  width: min(420px, calc(100vw - 2rem));
  padding: 1.35rem 1.5rem 1.5rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
}
dialog.pen-name-setup-modal::backdrop {
  background: rgba(69, 53, 60, 0.45);
  backdrop-filter: blur(6px);
}
.pen-name-setup-modal__head {
  margin-bottom: 1rem;
}
.pen-name-setup-modal__form .field {
  margin-bottom: 0.85rem;
}
#assets-list.roadmap-grid:not(.my-assets-list--empty) {
  display: grid;
  gap: 0.85rem;
}

.auth-card .hint,
#auth-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
}
.auth-card {
  position: relative;
  overflow: hidden;
  padding: 1.35rem 1.35rem 1.5rem;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent-soft) 40%, var(--surface)) 0%,
    var(--surface) 32%
  );
}
.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--grad-accent);
  opacity: 0.65;
  pointer-events: none;
}
.auth-card::after {
  content: "";
  position: absolute;
  right: -0.65rem;
  bottom: -0.35rem;
  width: 5.25rem;
  height: 5.25rem;
  background: url("../jar/jar_0.webp") center / contain no-repeat;
  opacity: 0.09;
  pointer-events: none;
}
.auth-card > * {
  position: relative;
  z-index: 1;
}
.auth-card__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  padding: 0.35rem;
  margin: -0.35rem -0.35rem 1rem;
  background: var(--canvas-2);
  border-radius: var(--r-md);
}
.auth-tab {
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.55rem 0.75rem;
  border-radius: calc(var(--r-md) - 4px);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.auth-tab:hover {
  color: var(--text-on-white);
}
.auth-tab.is-active {
  background: var(--surface);
  color: var(--text-on-white);
  box-shadow: var(--shadow-soft);
}
.auth-msg {
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  margin: 0 0 0.75rem;
  min-height: 1.25rem;
}
.auth-msg:empty {
  display: none;
}
.auth-msg.is-error {
  color: var(--bad);
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--r-md);
  background: rgba(199, 100, 78, 0.1);
  border: 1px solid rgba(199, 100, 78, 0.28);
}
.auth-msg.is-ok {
  color: var(--good);
}
.auth-verify {
  text-align: center;
  padding: 0.5rem 0 0.25rem;
}
.auth-verify__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--text-on-accent-soft);
}
.auth-verify__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}
.auth-verify h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}
.auth-verify__lead {
  font-size: 0.88rem;
  margin: 0 0 1rem;
}
.auth-verify .btn {
  margin-top: 0.5rem;
}
.auth-verify__back {
  margin-top: 0.35rem;
}
.auth-forgot-row {
  margin: -0.35rem 0 0.85rem;
  text-align: right;
}
.auth-forgot-link {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-deep);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-forgot-link:hover {
  color: var(--accent);
}
.auth-forgot-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.reset-form {
  text-align: left;
  margin-top: 0.5rem;
}
.reset-form__email {
  font-size: 0.88rem;
  margin: 0 0 1rem;
  text-align: center;
}

.auth-boot-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  text-align: center;
  background: var(--canvas, #fffcfd);
  color: var(--text, #45353c);
}
html[data-scheme="dark"] .auth-boot-loader {
  background: #141218;
  color: #f2eaee;
}
html.ccj-auth-pending .auth-boot-loader,
html.ccj-redirecting .auth-boot-loader {
  display: grid;
}
.auth-boot-loader__logo {
  width: 56px;
  height: auto;
  animation: auth-boot-pulse 1.4s ease-in-out infinite;
}
.auth-boot-loader__text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted, #7a6670);
}
@keyframes auth-boot-pulse {
  0%, 100% { opacity: 0.72; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .auth-boot-loader__logo { animation: none; }
}

/* --- Verify email landing --- */
.verify-page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: calc(100vh - var(--nav-h, 68px));
  padding: 2rem 1.25rem 3rem;
}
.verify-card {
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
}
.verify-card.card::before {
  display: none;
}
.verify-card__bar {
  height: 5px;
  margin: -1.75rem -1.5rem 1.25rem;
  background: var(--grad-accent);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.verify-card__eyebrow {
  margin-bottom: 0.65rem;
}
.verify-card__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.85rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--text-on-accent-soft);
  overflow: hidden;
  flex-shrink: 0;
}
.verify-card__icon > svg {
  width: 1.35rem;
  height: 1.35rem;
  max-width: 1.35rem;
  max-height: 1.35rem;
  display: block;
}
.verify-card__title {
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 0 0 0.5rem;
}
.verify-card__lead {
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0 auto 0.85rem;
  max-width: 32ch;
}
.verify-card .auth-msg {
  font-size: 0.82rem;
  line-height: 1.45;
  max-width: 34ch;
  margin: 0 auto 0.75rem;
}
.verify-card .btn {
  margin-top: 0.35rem;
}
.verify-card--success .verify-card__icon {
  background: rgba(109, 191, 150, 0.18);
  color: var(--good);
}
.verify-card--error .verify-card__icon {
  background: rgba(224, 122, 122, 0.15);
  color: var(--bad);
}


.roadmap-dropdown {
  position: relative;
}
.roadmap-dropdown__menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 30;
  min-width: 12rem;
  padding: 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-raised);
}
.roadmap-dropdown__option {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.65rem;
  border-radius: calc(var(--r-md) - 4px);
  color: var(--text-muted);
  cursor: pointer;
}
.roadmap-dropdown__option:hover {
  background: var(--canvas-2);
  color: var(--text-on-accent-soft);
}

/* Roadmap toolbar + modals (1.0 features on 2.0 base) */
dialog.request-modal:not([open]) {
  display: none !important;
}
.request-modal {
  padding: 1.75rem;
  max-width: 560px;
  width: calc(100% - 2rem);
  max-height: min(92vh, 920px);
  overflow-x: hidden;
  overflow-y: auto;
}
.request-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
dialog.unlock-confirm-modal.request-modal {
  container-type: inline-size;
  container-name: unlock-modal;
  width: min(100% - 1.5rem, 30rem);
  max-width: min(100vw - 1.5rem, 30rem);
  padding: 1rem 1.1rem 1.15rem;
  box-sizing: border-box;
  text-align: center;
}
.unlock-confirm-modal__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  margin-bottom: 0.65rem;
  padding-inline: 1.5rem;
  box-sizing: border-box;
}
.unlock-confirm-modal__intro .eyebrow {
  width: 100%;
  text-align: center;
  margin: 0;
}
.unlock-confirm-modal #unlock-confirm-title {
  display: block;
  width: 65%;
  min-width: 65%;
  max-width: 65%;
  margin: 0;
  text-align: center;
  font-size: clamp(1.35rem, 4.5vw, 1.65rem);
  line-height: 1.2;
  box-sizing: border-box;
}
.unlock-confirm-modal #unlock-confirm-lead {
  display: block;
  width: 77%;
  min-width: 77%;
  max-width: 77%;
  margin: 0;
  text-align: center;
  line-height: 1.45;
  font-size: 0.92rem;
  box-sizing: border-box;
}
@supports (width: 1cqw) {
  .unlock-confirm-modal #unlock-confirm-title {
    width: 65cqw;
    min-width: 65cqw;
    max-width: 65cqw;
  }
  .unlock-confirm-modal #unlock-confirm-lead {
    width: 77cqw;
    min-width: 77cqw;
    max-width: 77cqw;
  }
}
.unlock-confirm-modal .request-modal__actions {
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.request-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  flex-wrap: nowrap;
  align-items: center;
  margin-top: 1.25rem;
}
.request-modal__edit-note {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.45;
}
.request-modal__submit {
  white-space: nowrap;
}
.request-modal__actions .btn--ghost {
  white-space: nowrap;
}
.request-modal__status {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  font-weight: 600;
}
.request-modal__status.is-error {
  color: var(--bad, #e05252);
}
.request-modal.is-processing .request-modal__close,
.request-modal.is-processing .request-modal__actions .btn--ghost {
  pointer-events: none;
  opacity: 0.55;
}
.select--block {
  width: 100%;
}
.field-dropdown {
  position: relative;
  width: 100%;
}
.field-dropdown .roadmap-dropdown__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--canvas-2);
  color: var(--text);
  font: inherit;
  font-size: inherit;
  font-weight: 400;
  cursor: pointer;
  text-align: left;
}
.field-dropdown .roadmap-dropdown__trigger:hover {
  border-color: var(--accent-soft);
}
.field-dropdown .roadmap-dropdown__trigger[aria-expanded="true"] {
  border-color: var(--accent);
}
.field-dropdown .roadmap-dropdown__value {
  flex: 1;
  min-width: 0;
}
.field-dropdown .roadmap-dropdown__chevron svg {
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
}
.field-dropdown .roadmap-dropdown__menu {
  left: 0;
  right: 0;
  min-width: 100%;
}
.request-modal .field select.select {
  padding-right: 2.5rem;
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--canvas-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23655660' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 0.85rem;
}
.request-modal .field textarea {
  min-height: 5rem;
  max-height: 7.5rem;
  resize: none;
  overflow-y: auto;
}
.overlay-request-form textarea {
  resize: none;
}
.field--checkbox {
  margin-bottom: 0.75rem;
}
.field--checkbox label.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.field--checkbox input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--accent-deep);
}
.field__hint {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin: 0.35rem 0 0;
}
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  cursor: pointer;
}
.empty,
.empty--page,
.empty--vault,
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  grid-column: 1 / -1;
}
.empty svg,
.empty--page svg,
.empty-state svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--text-faint);
  margin: 0 auto 0.75rem;
  display: block;
}
.empty h3,
.empty--page h3,
.empty--vault h3,
.empty-state h3 {
  margin: 0 0 0.35rem;
}
.empty p,
.empty--page p,
.empty--vault p,
.empty-state p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 0.25rem;
}
.vault-howto {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--ghost-border);
  background: color-mix(in srgb, var(--canvas-2) 80%, transparent);
}
.vault-howto[hidden] {
  display: none;
}
.vault-howto__text {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.92rem;
  line-height: 1.45;
}
.vault-howto__dismiss {
  flex: 0 0 auto;
}
.faq-search {
  min-width: min(100%, 16rem);
  max-width: 22rem;
}
[data-page="faq"] .page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
}
.page-module-error {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--r-md);
  border: 1.5px solid var(--ghost-border);
  background: var(--ghost-bg);
  color: var(--text-on-white);
  font-size: 0.9rem;
  font-weight: 600;
}
.link-btn {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--accent-deep);
  cursor: pointer;
  text-decoration: none;
}
.link-btn:hover {
  text-decoration: underline;
}
.profile-subscription__charge {
  font-weight: 600;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.35;
}
.profile-subscription__charge svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  color: var(--accent-deep);
}
.profile-subscription__charge span {
  min-width: 0;
}
.profile-subscription__note {
  display: block;
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 1rem 0 0;
  max-width: none;
  color: var(--text-muted);
  text-align: left;
}
@media (min-width: 720px) {
  .profile-subscription__note {
    white-space: nowrap;
  }
}
.profile-subscription__note [data-icon] {
  display: inline-block;
  vertical-align: -0.15em;
  margin-right: 0.35rem;
}
.profile-subscription__note svg {
  width: 1rem;
  height: 1rem;
  display: inline-block;
  vertical-align: -0.15em;
}
.profile-kofi-link {
  margin-top: 1.25rem;
  text-align: left;
}
.profile-kofi-link[hidden] {
  display: none !important;
}
.profile-kofi-email {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid color-mix(in srgb, var(--text-muted) 22%, transparent);
  max-width: 28rem;
  text-align: left;
}
.profile-kofi-email .eyebrow {
  margin-bottom: 0.25rem;
}
.profile-kofi-email__lead {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}
.profile-kofi-email__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.profile-kofi-email__form input[type="email"] {
  flex: 1 1 12rem;
  min-width: 0;
  font: inherit;
  padding: 0.45rem 0.7rem;
  border-radius: 0.65rem;
  border: 1px solid color-mix(in srgb, var(--text-muted) 35%, transparent);
  background: var(--surface, #fff);
  color: var(--text);
}
.profile-kofi-email__status {
  margin: 0.55rem 0 0;
}

/* Vault/pantry likes share .request__action styles (roadmap). Do not re-size them here. */
.vault-product__engage {
  flex-shrink: 0;
}
.product-card__foot .vault-product__engage .request__icon-action {
  display: inline-flex;
}
.product-card__foot .vault-product__like--heart.request__action--square {
  width: 2.15rem;
  height: 2.15rem;
  min-width: 2.15rem;
}

/* Story shelf lightbox */
body.story-lightbox-open {
  overflow: hidden;
}
.story-lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(69, 53, 60, 0.45);
  backdrop-filter: blur(8px);
}
.story-lightbox.is-open {
  display: flex;
}
.story-lightbox__panel {
  position: relative;
  width: min(624px, calc(100vw - 2rem));
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-raised);
  padding: 0.95rem;
}
.story-lightbox__close {
  position: absolute;
  top: calc(0.85rem + 5px);
  right: calc(0.85rem + 5px);
  z-index: 2;
}
.story-lightbox__media {
  width: 100%;
  aspect-ratio: 892 / 591;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--canvas-2);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}
.story-lightbox__hero {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-lightbox__genre {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.story-lightbox__title {
  margin: 0 2.5rem 0.35rem 0;
  font-size: 1.05rem;
  line-height: 1.2;
}
.story-lightbox__author {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}
.story-lightbox__author span {
  font-weight: 700;
  color: var(--text-muted);
}
.story-lightbox__description {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.product-detail-lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(69, 53, 60, 0.45);
  backdrop-filter: blur(6px);
}
.product-detail-lightbox.is-open {
  display: flex;
}
.product-detail-lightbox__frame {
  display: grid;
  grid-template-columns: auto minmax(0, max-content) auto;
  align-items: center;
  gap: 0.75rem;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2.5rem);
}
.outfit-lightbox__nav {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--accent-deep);
  box-shadow: var(--shadow-soft);
  flex-shrink: 0;
}
.product-detail-lightbox__frame > .product-detail-lightbox__nav {
  position: relative;
  z-index: 9;
}
.outfit-lightbox__nav svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  display: block;
}
.outfit-lightbox__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.product-detail-lightbox__panel {
  position: relative;
  width: min(560px, calc(100vw - 2rem));
  max-width: min(560px, calc(100vw - 2rem));
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-raised);
  padding: 0.75rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.product-detail-lightbox__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex: 0 0 auto;
  min-height: 1.85rem;
  margin: 0 -0.15rem;
  position: sticky;
  top: 0;
  z-index: 8;
  background: var(--surface);
}
.product-detail-lightbox__chrome .product-detail-lightbox__share {
  margin: 0;
  align-self: center;
  padding-inline: 0.65rem;
  font-size: 0.78rem;
  font-weight: 650;
  position: relative;
  z-index: 9;
}
.product-detail-lightbox__chrome .product-detail-lightbox__close {
  position: static;
  top: auto;
  right: auto;
  flex: 0 0 auto;
  margin: 0;
  z-index: 1;
}
/* One consistent modal width for stacked (no-code) listings. */
.product-detail-lightbox__panel--preview:not(.product-detail-lightbox__panel--with-code),
.product-detail-lightbox__panel--preview.product-detail-lightbox__panel--landscape:not(.product-detail-lightbox__panel--with-code),
.product-detail-lightbox__panel--preview.product-detail-lightbox__panel--portrait:not(.product-detail-lightbox__panel--with-code) {
  width: min(560px, calc(100vw - 2rem));
  max-width: min(560px, calc(100vw - 2rem));
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  overflow-x: hidden;
}
.product-detail-lightbox__media-shell {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
}
.product-detail-lightbox__media--preview {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: min(72vh, calc(100vh - 12rem));
  margin-bottom: 0;
  border-radius: var(--r-md);
  background: var(--canvas-2);
  border: 1px solid var(--border);
  display: block;
  overflow: hidden;
}
.product-detail-lightbox__preview {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: min(72vh, calc(100vh - 12rem));
  object-fit: contain;
  object-position: center center;
  opacity: 1;
  transition: opacity 0.15s ease;
}
.product-detail-lightbox__panel:not(.product-detail-lightbox__panel--with-code) .product-detail-lightbox__preview-wrap {
  width: 100%;
  flex: none;
  min-height: 0;
  height: auto;
  max-width: 100%;
  max-height: none;
  display: block;
  position: relative;
  line-height: 0;
}
.product-detail-lightbox__panel:not(.product-detail-lightbox__panel--with-code) .product-detail-lightbox__preview {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: min(72vh, calc(100vh - 12rem));
  object-fit: contain;
}
.product-detail-lightbox__preview--loading {
  opacity: 0;
}
.product-detail-lightbox__panel--portrait .product-detail-lightbox__media--preview {
  height: auto;
  min-height: 0;
  max-height: min(72vh, calc(100vh - 12rem));
}

/*
 * No-code vault products: when body content (related note, unlock count, etc.)
 * would overflow the modal, shrink the preview just enough to fit - no scrollbar.
 */
.product-detail-lightbox__panel--preview:not(.product-detail-lightbox__panel--with-code) {
  max-height: calc(100vh - 2rem);
  overflow: hidden;
}
.product-detail-lightbox__panel--preview:not(.product-detail-lightbox__panel--with-code) .product-detail-lightbox__top {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.product-detail-lightbox__panel--preview:not(.product-detail-lightbox__panel--with-code) .product-detail-lightbox__media-shell {
  flex: 0 1 auto;
  height: auto;
  min-height: 0;
  max-height: min(72vh, calc(100vh - 12rem));
  display: block;
  overflow: hidden;
}

/* Preview shell hugs the image; dots/zoom stay overlaid on the image itself. */
.product-detail-lightbox__panel--look-picker .product-detail-lightbox__media-shell,
.product-detail-lightbox__panel--look-picker.product-detail-lightbox__panel--preview:not(.product-detail-lightbox__panel--with-code) .product-detail-lightbox__media-shell,
.product-detail-lightbox__panel--look-picker.product-detail-lightbox__panel--preview-below:not(.product-detail-lightbox__panel--with-code) .product-detail-lightbox__media-shell {
  flex: 0 0 auto !important;
  height: auto !important;
  max-height: min(72vh, calc(100vh - 11rem)) !important;
  min-height: min(var(--lightbox-preview-min-h, 0px), 72vh) !important;
  display: block !important;
  overflow: hidden !important;
}
.product-detail-lightbox__panel--look-picker .product-detail-lightbox__media--preview,
.product-detail-lightbox__panel--look-picker.product-detail-lightbox__panel--portrait .product-detail-lightbox__media--preview,
.product-detail-lightbox__panel--look-picker.product-detail-lightbox__panel--preview:not(.product-detail-lightbox__panel--with-code) .product-detail-lightbox__media--preview,
.product-detail-lightbox__panel--look-picker.product-detail-lightbox__panel--preview:not(.product-detail-lightbox__panel--with-code).product-detail-lightbox__panel--portrait .product-detail-lightbox__media--preview {
  flex: none !important;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  max-height: min(72vh, calc(100vh - 11rem)) !important;
  margin-bottom: 0;
  overflow: hidden !important;
}
.product-detail-lightbox__panel--look-picker .product-detail-lightbox__preview-wrap {
  display: block !important;
  height: auto !important;
  max-height: min(72vh, calc(100vh - 11rem)) !important;
  overflow: hidden !important;
}
.product-detail-lightbox__panel--look-picker .product-detail-lightbox__preview {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: min(72vh, calc(100vh - 11rem)) !important;
}
.product-detail-lightbox__panel--preview:not(.product-detail-lightbox__panel--with-code) .product-detail-lightbox__media--preview,
.product-detail-lightbox__panel--preview:not(.product-detail-lightbox__panel--with-code).product-detail-lightbox__panel--portrait .product-detail-lightbox__media--preview {
  flex: none;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: min(72vh, calc(100vh - 12rem));
  margin-bottom: 0;
}
.product-detail-lightbox__panel--preview:not(.product-detail-lightbox__panel--with-code) .product-detail-lightbox__body {
  flex: 0 0 auto;
  min-height: 0;
}
.product-detail-lightbox__panel--preview:not(.product-detail-lightbox__panel--with-code) .product-detail-lightbox__actions {
  margin-top: 0.7rem;
}
/* Image-only previews: copy on top, gallery below, actions at bottom */
.product-detail-lightbox__panel--preview-below:not(.product-detail-lightbox__panel--with-code) .product-detail-lightbox__top {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.product-detail-lightbox__panel--preview-below:not(.product-detail-lightbox__panel--with-code) .product-detail-lightbox__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.product-detail-lightbox__panel--preview-below:not(.product-detail-lightbox__panel--with-code) .product-detail-lightbox__copy {
  flex: 0 0 auto;
}
.product-detail-lightbox__panel--preview-below:not(.product-detail-lightbox__panel--with-code) .product-detail-lightbox__media-shell {
  flex: 0 1 auto;
  min-height: 0;
  height: auto;
  max-height: min(72vh, calc(100vh - 12rem));
  display: block;
  overflow: hidden;
}
.product-detail-lightbox__panel--preview-below:not(.product-detail-lightbox__panel--with-code) .product-detail-lightbox__media--preview,
.product-detail-lightbox__panel--preview-below:not(.product-detail-lightbox__panel--with-code).product-detail-lightbox__panel--portrait .product-detail-lightbox__media--preview {
  flex: none;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: min(72vh, calc(100vh - 12rem));
  margin-bottom: 0;
}
.product-detail-lightbox__panel--preview-below:not(.product-detail-lightbox__panel--with-code) .product-detail-lightbox__preview-wrap {
  flex: none;
  min-height: 0;
  height: auto;
  width: 100%;
  display: block;
}
.product-detail-lightbox__panel--preview-below:not(.product-detail-lightbox__panel--with-code) .product-detail-lightbox__actions {
  margin-top: 0;
  padding-top: 0.75rem;
  flex: 0 0 auto;
}
.product-detail-lightbox__panel--code-video .product-detail-lightbox__engage-row {
  align-items: center;
}
.product-detail-lightbox__panel:not(.product-detail-lightbox__panel--with-code) #product-detail-code-wrap[hidden] {
  display: none;
}

.product-detail-lightbox__panel--preview .product-detail-lightbox__body {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  z-index: 2;
  background: var(--surface);
}
.product-detail-lightbox__panel--preview .product-detail-lightbox__copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.product-detail-lightbox__panel--preview-below:not(.product-detail-lightbox__panel--with-code) .product-detail-lightbox__copy {
  flex: 0 0 auto;
}
.product-detail-lightbox__panel--preview .product-detail-lightbox__actions {
  margin-top: auto;
}
.product-detail-lightbox__panel--preview-below:not(.product-detail-lightbox__panel--with-code) .product-detail-lightbox__actions {
  margin-top: 0;
}
/* Shop / overlay / look products: shell height follows the preview image. */
.product-detail-lightbox__panel--preview.product-detail-lightbox__panel--shop:not(.product-detail-lightbox__panel--with-code) .product-detail-lightbox__top {
  flex: 0 1 auto;
  min-height: 0;
}
.product-detail-lightbox__panel--preview.product-detail-lightbox__panel--shop:not(.product-detail-lightbox__panel--with-code) .product-detail-lightbox__media-shell {
  flex: 0 1 auto;
  height: auto;
  max-height: min(72vh, calc(100vh - 12rem));
  min-height: 0;
  overflow: hidden;
  display: block;
}
.product-detail-lightbox__panel--preview.product-detail-lightbox__panel--shop:not(.product-detail-lightbox__panel--with-code) .product-detail-lightbox__media--preview {
  flex: none;
  width: 100%;
  height: auto;
  max-height: min(72vh, calc(100vh - 12rem));
  min-height: 0;
  overflow: hidden;
}
.product-detail-lightbox__panel--preview.product-detail-lightbox__panel--shop:not(.product-detail-lightbox__panel--with-code) .product-detail-lightbox__preview-wrap {
  flex: none;
  min-height: 0;
  height: auto;
  display: block;
  overflow: hidden;
}
.product-detail-lightbox__panel--preview.product-detail-lightbox__panel--shop:not(.product-detail-lightbox__panel--with-code) .product-detail-lightbox__preview {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: min(72vh, calc(100vh - 12rem));
  object-fit: contain;
  object-position: center center;
}
.product-detail-lightbox__panel--preview.product-detail-lightbox__panel--shop .product-detail-lightbox__body {
  flex: 0 0 auto;
}
.product-detail-lightbox__panel--preview.product-detail-lightbox__panel--shop .product-detail-lightbox__copy {
  flex: 0 0 auto;
}
.product-detail-lightbox__panel--preview.product-detail-lightbox__panel--shop .product-detail-lightbox__actions {
  margin-top: 0.55rem;
  align-items: flex-start;
}
.product-detail-lightbox__panel--preview.product-detail-lightbox__panel--shop {
  padding-bottom: 1.15rem;
}
.product-detail-lightbox__panel--preview:has(#product-detail-variants:not([hidden])) .product-detail-lightbox__copy {
  flex: 0 1 auto;
}
.product-detail-lightbox__panel--preview:has(#product-detail-variants:not([hidden])) .product-detail-lightbox__actions {
  margin-top: 0.7rem;
}
.product-detail-lightbox__panel--preview .product-detail-lightbox__body h2 {
  font-size: 1.22rem;
  margin: 0.05rem 0 0.1rem;
  padding-right: 0;
  line-height: 1.22;
}
.product-detail-lightbox__panel--preview .product-detail-lightbox__body p.muted,
.product-detail-lightbox__panel--preview .product-detail-lightbox__copy > p.muted {
  font-size: 0.84rem;
  line-height: 1.45;
  margin: 0;
}
.product-detail-lightbox__panel--preview .product-detail-lightbox__copy > .eyebrow {
  margin: 0;
  letter-spacing: 0.08em;
}
.product-detail-lightbox__emoji {
  display: grid;
  place-items: center;
  min-height: 180px;
  font-size: 3rem;
}
.product-detail-lightbox__share {
  flex: 0 0 auto;
}
/* Global .btn:hover lifts buttons - that clips under overflow:hidden here */
.product-detail-lightbox__share:hover,
.product-detail-lightbox__share:focus-visible {
  transform: none;
}
.product-detail-lightbox__body h2 {
  padding-right: 0;
}
.product-detail-lightbox__media:empty,
.product-detail-lightbox__body:empty {
  min-height: 8rem;
  border-radius: var(--r-md);
  background: repeating-linear-gradient(
    -45deg,
    var(--canvas-2),
    var(--canvas-2) 8px,
    var(--canvas) 8px,
    var(--canvas) 16px
  );
  border: 1px dashed var(--border-hi);
}
.product-detail-lightbox__media:empty::before,
.product-detail-lightbox__body:empty::before {
  content: "Product preview";
  display: grid;
  place-items: center;
  min-height: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-faint);
}

@media (max-width: 768px) {
  .outfit-lightbox__layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .outfit-lightbox__panel {
    overflow: auto;
    padding: 0.55rem 0.85rem 0.95rem;
  }
  .outfit-lightbox__layout {
    flex: none;
  }
  .outfit-lightbox__img {
    max-height: min(48vh, 420px);
    max-width: min(280px, 100%);
  }
  .suggestion-lightbox__panel {
    height: min(90vh, calc(100vh - 2.5rem));
  }
  .suggestion-lightbox__comments {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 0.85rem;
    min-height: 0;
  }
  .outfit-lightbox__frame,
  .product-detail-lightbox__frame,
  .suggestion-lightbox__frame {
    grid-template-columns: 1fr;
  }
  .outfit-lightbox__nav,
  .product-detail-lightbox__nav {
    display: none;
  }
}

/* --- Admin users page --- */
.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;
}

.nav__group--admin {
  color: var(--accent-deep);
}
.nav-admin {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0.85rem 0 0.25rem;
}
.nav-admin__toggle {
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: var(--accent-deep);
  font-weight: 700;
}
.nav-admin__toggle .nav-admin__label {
  flex: 1;
  min-width: 0;
}
.nav-admin__chevron {
  margin-left: 0.15rem;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  transition: transform 0.2s var(--ease);
}
.nav-admin__chevron svg {
  width: 0.9rem;
  height: 0.9rem;
}
.nav-admin.is-open .nav-admin__chevron {
  transform: rotate(180deg);
}
.nav-admin__menu {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.15rem 0 0.25rem 0.55rem;
  margin: 0 0 0 0.55rem;
  border-left: 1.5px solid color-mix(in srgb, var(--accent) 35%, var(--border));
}
.nav-admin__menu[hidden] {
  display: none;
}
.nav-admin__link {
  font-size: 0.9rem;
}
.nav-admin__summary-badge[hidden] {
  display: none;
}

/* --- Profile overlay requests --- */
.profile-overlays {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  scroll-margin-top: 5rem;
}
.profile-overlays h2 {
  margin-bottom: 0.35rem;
}
.profile-overlays__lead {
  margin-top: 0.35rem;
  max-width: 42rem;
}
.my-assets-vault__head {
  margin-bottom: 0.85rem;
}
.my-assets-vault__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.my-assets-vault__desc {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  max-width: 36rem;
}
.my-assets-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}
.my-assets-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
}
.my-assets-search {
  width: 100%;
  max-width: 400px;
  flex: 0 0 auto;
  align-self: flex-start;
}
.my-assets-pagination {
  margin-top: 1.25rem;
}

/* Shared grid pagination (vault, pantry, my assets, featured outfits) */
.outfit-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.outfit-pagination[hidden],
#outfit-first[hidden],
#outfit-prev[hidden],
#outfit-next[hidden],
#outfit-last[hidden],
#vault-first[hidden],
#vault-prev[hidden],
#vault-next[hidden],
#vault-last[hidden],
#pantry-first[hidden],
#pantry-prev[hidden],
#pantry-next[hidden],
#pantry-last[hidden],
#assets-first[hidden],
#assets-prev[hidden],
#assets-next[hidden],
#assets-last[hidden] {
  display: none !important;
}
.outfit-pagination__jump {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}
.outfit-pagination__jump label {
  margin: 0;
}
.outfit-pagination__input {
  width: 3.4rem;
  padding: 0.38rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font: inherit;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  background: var(--surface);
  -moz-appearance: textfield;
  appearance: textfield;
}
.outfit-pagination__input::-webkit-outer-spin-button,
.outfit-pagination__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.outfit-pagination__input:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}
.outfit-pagination__of {
  white-space: nowrap;
}
.outfit-pagination__status {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.my-assets-zone--vault {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.my-assets-zone--overlays:not([hidden]):has(#profile-overlays:not([hidden])) + .my-assets-zone--vault {
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border, rgba(0, 0, 0, 0.08));
}
.overlay-hub {
  margin-top: 1rem;
}
.overlay-hub__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.overlay-hub__count {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  min-height: 1.1em;
  display: flex;
  align-items: center;
}
.profile-overlays.is-loading-quota .overlay-hub__count {
  min-height: 1.35em;
  color: transparent;
}
.profile-overlays.is-loading-quota .overlay-hub__count::before {
  content: "";
  display: block;
  box-sizing: border-box;
  width: 1.35rem;
  height: 1.35rem;
  border: 2.5px solid var(--accent-deep);
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.65s linear infinite;
  flex-shrink: 0;
}
.profile-overlays.is-loading-quota .overlay-quota-meter__fill {
  width: 28% !important;
  opacity: 0.4;
}
.profile-overlays.is-loading-quota #overlay-request-open {
  opacity: 0.72;
}
.overlay-hub__label {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
}
.overlay-hub__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}
@media (max-width: 640px) {
  .overlay-hub__row {
    flex-direction: column;
    align-items: stretch;
  }
  .overlay-hub__actions {
    width: 100%;
  }
  .overlay-hub__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
.overlay-request-form input[type="file"] {
  width: auto;
  max-width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
}
.overlay-request-form .field > span {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}
.overlay-request-form {
  display: grid;
  gap: 1rem;
}
.overlay-request-form__note {
  margin: -0.25rem 0 0;
}
.overlay-downloads-list {
  display: grid;
  gap: 1.25rem;
  max-height: min(60vh, 420px);
  overflow: auto;
  margin-bottom: 0.5rem;
}
.overlay-downloads-empty {
  padding: 0.5rem 0 1rem;
}
.overlay-downloads-group__title {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.overlay-downloads-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.overlay-downloads-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--r-md, 0.75rem);
  background: var(--surface-soft);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
}
.overlay-downloads-item__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.overlay-downloads-item__title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.overlay-downloads-item__when {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
}
.overlay-downloads-item__expiry {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--warning-text);
}
.overlay-downloads-item__note {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.overlay-downloads-item__note--decline {
  color: var(--bad, #e05252);
}

.overlay-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin-top: 0.65rem;
}
.overlay-rating__label {
  font-size: 0.8rem;
}
.overlay-rating__actions {
  display: inline-flex;
  gap: 0.35rem;
}
.overlay-rating__btn {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid var(--border, rgba(0, 0, 0, 0.1));
  background: var(--canvas-2);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.overlay-rating__btn:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border, rgba(0, 0, 0, 0.1)));
  transform: translateY(-1px);
}
.overlay-rating--done {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.overlay-rating__emoji {
  font-size: 1.05rem;
  line-height: 1;
}
.overlay-rating.is-busy {
  opacity: 0.78;
  pointer-events: none;
}
.overlay-rating.is-busy .overlay-rating__label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.overlay-rating.is-busy .overlay-rating__label::before {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid var(--accent-deep, var(--accent));
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.65s linear infinite;
  flex-shrink: 0;
}


/* --- Coming soon (public index gate) --- */
.coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  padding: 2.5rem 1.25rem 3.5rem;
  box-sizing: border-box;
}
.coming-soon__card {
  width: min(100%, 420px);
  max-width: 420px;
  margin: 0 auto;
  padding: 2rem 1.75rem 1.75rem;
  text-align: center;
  position: relative;
  flex-shrink: 0;
}
.coming-soon__card.card::before {
  display: none;
}
.coming-soon__bar {
  height: 5px;
  margin: -2rem -1.75rem 1.5rem;
  background: var(--grad-accent);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.coming-soon__logo-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}
.coming-soon__sparkles {
  position: absolute;
  inset: -0.5rem -1rem auto;
  pointer-events: none;
}
.coming-soon__sparkles span {
  position: absolute;
  font-size: 0.85rem;
  color: var(--accent);
  animation: twinkle 2.4s ease-in-out infinite;
}
.coming-soon__sparkles span:nth-child(1) {
  top: 0.2rem;
  left: 18%;
  animation-delay: 0s;
}
.coming-soon__sparkles span:nth-child(2) {
  top: 0.5rem;
  right: 16%;
  animation-delay: 0.8s;
}
.coming-soon__sparkles span:nth-child(3) {
  top: 2.4rem;
  left: 8%;
  animation-delay: 1.5s;
}
.coming-soon__mark,
.coming-soon__logo {
  width: 72px;
  height: auto;
  max-width: 72px;
  border-radius: 22px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  flex-shrink: 0;
}
.coming-soon__wordmark {
  margin: 0;
  font-family: "Outfit", var(--font-body);
  font-weight: 700;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
}
.coming-soon__wordmark span {
  color: var(--accent-deep);
}
.coming-soon__eyebrow {
  margin-bottom: 0.55rem;
}
.coming-soon__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.55rem, 4.5vw, 2rem);
  line-height: 1.12;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}
.coming-soon__lead {
  margin: 0 auto 1.35rem;
  max-width: 34ch;
  font-size: 0.95rem;
  line-height: 1.6;
}
.coming-soon__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}
.coming-soon__links .btn {
  min-width: 7.5rem;
}

/* --- FAQ --- */
[data-page="faq"] .page-head {
  justify-content: flex-start;
  text-align: left;
}
[data-page="story-shelf"] .page-head {
  margin-bottom: 0.85rem;
}
.member-profile.profile-hero {
  margin-top: 0;
}
.member-profile .profile-hero__body {
  justify-content: flex-start;
}
.member-profile .member-profile__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  font-weight: 600;
}
.member-profile .member-profile__stats li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.member-profile .member-profile__stats svg {
  width: 0.9rem;
  height: 0.9rem;
  stroke: currentColor;
}
.member-profile .member-profile__since,
.member-profile .member-profile__partial,
.member-profile .member-profile__note {
  margin: 0.45rem 0 0;
  font-size: 0.86rem;
}
[data-page="faq"] .page-head > div {
  max-width: none;
}
[data-page="faq"] .page-head p {
  max-width: 560px;
  margin-inline: 0;
}
.faq-layout {
  max-width: none;
  margin-inline: 0;
}
.faq-section {
  margin-bottom: 2rem;
}
.faq-section h2 {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
  color: var(--text);
  text-align: left;
}
.faq-list {
  display: grid;
  gap: 0.65rem;
}
.faq-item {
  padding: 0;
  overflow: hidden;
  background: var(--ghost-bg);
  border: 1.5px solid var(--ghost-border);
  box-shadow: none;
}
.faq-item.card::before {
  display: none;
}
.faq-item summary {
  padding: 0.95rem 1.1rem;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  list-style: none;
  color: var(--text-on-white);
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 800;
  color: var(--accent-deep);
  line-height: 1.2;
}
.faq-item[open] summary {
  color: var(--accent-deep);
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item__body {
  padding: 0 1.1rem 1rem;
  color: var(--text-on-soft);
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 500;
}
.faq-item__body p {
  margin: 0;
}
.faq-item__body p + p {
  margin-top: 0.65rem;
}
.faq-footer {
  margin-top: 2rem;
  font-size: 0.9rem;
  text-align: center;
}
.faq-footer a {
  font-weight: 700;
}

/* --- UX batch: vault, overlays, favorites, credits, empty states --- */
.product-grid[data-loading]:empty,
.roadmap-grid[data-loading]:empty,
.outfit-grid[data-loading]:empty,
.my-assets-list[data-loading]:empty,
#assets-list[data-loading]:empty,
.profile-suggestions__list[data-loading]:empty {
  min-height: 14rem;
}
.product-grid__loading,
.pantry-boot-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 14rem;
  grid-column: 1 / -1;
  padding: 2rem 1rem;
  text-align: center;
}
.product-grid__loading .btn__spinner,
.pantry-boot-loading .btn__spinner {
  width: 1.75rem;
  height: 1.75rem;
}
.product-grid__loading p,
.pantry-boot-loading p {
  margin: 0;
  font-size: 0.92rem;
}
.pantry-boot-loading[hidden] {
  display: none;
}

.vault-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  padding: 0.95rem 1.05rem;
  border-radius: var(--r-lg);
  border: 1px solid color-mix(in srgb, var(--border) 88%, var(--accent-soft));
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--surface) 92%, var(--accent-soft)) 0%,
      var(--surface) 55%,
      color-mix(in srgb, var(--surface) 96%, var(--secondary-soft, var(--accent-soft))) 100%
    );
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 55%, transparent);
  overflow: visible;
}
html[data-scheme="dark"] .vault-toolbar {
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--surface) 88%, var(--accent-deep)) 0%,
      var(--surface) 100%
    );
  box-shadow: none;
}
.vault-toolbar__search-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}
.vault-search-hint {
  margin: -0.35rem 0 0.85rem;
  font-size: 0.88rem;
}
.vault-toolbar__search {
  flex: 1 1 auto;
  max-width: 400px;
  min-width: 0;
  width: auto;
  align-self: auto;
}
.vault-toolbar__toggles {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}
.vault-toolbar__icon-btn {
  position: relative;
  width: calc(0.82rem * 1.55 + 1rem + 3px);
  height: calc(0.82rem * 1.55 + 1rem + 3px);
  min-height: 0;
  padding: 0;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  align-self: center;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--ghost-border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.vault-toolbar__icon-btn:hover {
  border-color: var(--accent-deep);
  background: var(--accent-soft);
  color: var(--text);
}
.vault-toolbar__icon-btn [data-icon],
.vault-toolbar__icon-btn svg {
  display: block;
  width: 1rem;
  height: 1rem;
}
.vault-toolbar__icon-btn[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  top: calc(100% + 0.45rem);
  transform: translateX(-50%) translateY(-2px);
  padding: 0.38rem 0.62rem;
  border-radius: 0.55rem;
  background: var(--text);
  color: var(--surface);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  z-index: 12;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--text) 22%, transparent);
}
.vault-toolbar__icon-btn:hover::after,
.vault-toolbar__icon-btn:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .vault-toolbar__icon-btn[data-tip]::after {
    transform: translateX(-50%);
  }
}
.vault-toolbar__filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem 0.5rem;
  min-width: 0;
}
.vault-toolbar .filter-bar {
  margin-bottom: 0;
  flex: 0 1 auto;
  min-width: 0;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.vault-toolbar .filter-bar::-webkit-scrollbar {
  display: none;
}
.vault-toolbar .outfit-filters__divider {
  flex-shrink: 0;
}
.vault-toolbar .roadmap-dropdown {
  flex: 0 0 auto;
  flex-shrink: 0;
}
.vault-toolbar .roadmap-dropdown__trigger {
  max-width: 14.5rem;
}
.vault-toolbar .roadmap-dropdown__value {
  overflow: hidden;
  text-overflow: ellipsis;
}

.roadmap-toolbar,
.outfit-toolbar,
.my-assets-toolbar {
  margin-bottom: 1.25rem;
}

.product-card__thumb {
  position: relative;
}
.product-card--most-loved .product-card__thumb {
  overflow: hidden;
}
.product-card--most-loved:not(.product-card--owned) {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent), var(--shadow-soft);
}
.product-card--most-loved.product-card--owned {
  border-color: color-mix(in srgb, var(--good) 72%, var(--border));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--good) 48%, transparent), var(--shadow-soft);
}
.product-card__thumb--photo {
  display: block;
  background: var(--surface);
  /* Match landscape vault collage proportions (shorter than 3/4 portrait). */
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.product-card__thumb--photo .product-card__badge,
.product-card__thumb--photo .product-card__badges,
.product-card__thumb--photo .product-card__ribbon {
  z-index: 3;
}
.product-card__thumb--photo .product-card__ribbon {
  z-index: 4;
}
.product-card__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}
video.product-card__preview,
video.asset-row__thumb {
  pointer-events: none;
  background: var(--surface);
}

/*
 * Preview cards: image = media in 4/3 thumb + solid title band under it.
 * Video = full-bleed cover behind the whole card; title→foot band translucent.
 * Hover swaps title → description on both.
 */
.product-card.product-card--has-preview {
  overflow: hidden;
}
.product-card--has-preview .product-card__thumb--photo {
  position: relative;
  z-index: 0;
  flex: none;
  overflow: hidden;
}
.product-card--has-preview img.product-card__preview {
  object-fit: contain;
  object-position: center center;
}
.product-card--has-preview .product-card__badge,
.product-card--has-preview .product-card__badges,
.product-card--has-preview .product-card__ribbon {
  z-index: 3;
}
.product-card--has-preview .product-card__body {
  position: relative;
  z-index: 1;
  flex: none;
  gap: 0.55rem;
  margin: 0;
  padding: 0.9rem 1.15rem 1rem;
  background: #1a1518;
  color: #fff;
  pointer-events: none;
}

/* Video only: cover fills the card; title→foot band stays put, see-through. */
.product-card.product-card--video {
  position: relative;
  isolation: isolate;
}
.product-card--video .product-card__thumb--photo {
  position: static;
  aspect-ratio: 4 / 3;
  background: transparent;
  overflow: visible;
}
.product-card--video video.product-card__preview {
  position: absolute;
  inset: auto;
  left: 0;
  right: 0;
  top: -80px;
  width: 100%;
  height: calc(100% + 80px);
  object-fit: cover;
  object-position: center top;
  /* Below in-flow body so the scrim paints as one plate over the video. */
  z-index: -1;
}
.product-card--has-preview.product-card--video .product-card__body {
  z-index: 2;
  background: rgba(26, 21, 24, 0.7);
  /* Pin to card bottom when the grid row stretches taller than content. */
  margin-top: auto;
  transform: translateZ(0);
  isolation: isolate;
}

.product-card--has-preview .product-card__title-slot {
  display: block;
  position: relative;
  min-height: 2.5em;
}
.product-card--has-preview .product-card__title-slot h3 {
  margin: 0;
  color: #fff;
  text-shadow: none;
  transition: opacity 0.2s var(--ease);
}
.product-card--has-preview .product-card__body-snippet {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: none;
  opacity: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  transition: opacity 0.2s var(--ease);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .product-card--has-preview:hover .product-card__title-slot h3,
  .product-card--has-preview:focus-visible .product-card__title-slot h3 {
    opacity: 0;
  }
  .product-card--has-preview:hover .product-card__body-snippet,
  .product-card--has-preview:focus-visible .product-card__body-snippet {
    opacity: 1;
  }
}
.product-card--has-preview .product-card__foot {
  pointer-events: auto;
}
.product-card--has-preview .product-card__price {
  color: #f2a8b8;
  text-shadow: none;
}
.product-card--has-preview .product-card__price.is-owned {
  color: #c8f0d4;
}
.product-card--has-preview .product-card__price-was {
  color: rgba(255, 255, 255, 0.55);
}
.product-card--has-preview .product-card__foot .request__action {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.product-card--has-preview .product-card__foot .request__action:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.product-card--has-preview .product-card__foot .vault-product__like--heart.is-liked {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.product-card--has-preview .product-card__hover-snippet {
  display: none;
}

/* Soft: discourage casual drag / save of preview & outfit art (not unlock downloads). */
img.product-card__preview,
video.product-card__preview,
img.outfit-card__cover,
img.asset-row__thumb,
video.asset-row__thumb,
img.product-detail-lightbox__preview,
video.product-detail-lightbox__preview,
img.product-preview-zoom__img,
video.product-preview-zoom__img,
#outfit-lightbox-img,
#showcase-track img,
#showcase-track video,
.look__grid img,
.look__grid video,
img[data-save-guard],
video[data-save-guard] {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}
video.product-detail-lightbox__preview {
  background: #1a1618;
}
.product-card--has-preview .product-card__emoji {
  display: none;
}
.product-card--has-preview .product-card__hover-snippet {
  background: rgba(0, 0, 0, 0.5);
}
.product-card__hover-snippet {
  position: absolute;
  inset: auto 0 0;
  margin: 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .product-card:hover .product-card__hover-snippet,
  .product-card:focus-visible .product-card__hover-snippet {
    opacity: 1;
    transform: translateY(0);
  }
}
.product-card--remaster:not(.product-card--owned):not(.product-card--exclusive) {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), var(--shadow-soft);
}
/* Shell keeps sparks as a sibling ABOVE the card frame/shadow. */
.product-card-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: visible;
}
.product-card-shell > .product-card {
  width: 100%;
  height: 100%;
}
.product-card-shell--remaster {
  z-index: 1;
}
.product-card-shell--remaster:hover,
.product-card-shell--remaster:focus-within {
  z-index: 3;
}
.product-card-shell--remaster > .product-card__sparks,
.product-card-shell--remaster > .remaster-sparks {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  overflow: visible;
  border-radius: var(--r-lg);
}
.product-card.product-card--remaster {
  overflow: visible;
}
.remaster-sparks,
.product-card__sparks,
.product-detail-lightbox__sparks {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  overflow: visible;
}
.remaster-spark {
  position: absolute;
  top: var(--spark-top);
  left: var(--spark-left);
  width: var(--spark-size);
  height: auto;
  /* Anchor at the spark center so top/left sit on the frame line. */
  transform: translate(-50%, -50%) rotate(var(--spark-rotate, 0deg));
  opacity: 0;
  animation: avatar-spark-twinkle 2.6s ease-in-out infinite;
  animation-delay: var(--spark-delay, 0s);
  filter: drop-shadow(0 0 0.3rem rgba(255, 255, 255, 0.85))
    drop-shadow(0 0 0.45rem rgba(255, 214, 230, 0.55));
  z-index: 1;
}
.product-card__thumb .remaster-sparks {
  z-index: 4;
}
.product-detail-lightbox__preview-wrap .product-detail-lightbox__sparks {
  inset: 0;
  z-index: 4;
  border-radius: inherit;
}
.product-detail-lightbox__panel--preview .product-detail-lightbox__media-shell,
.product-detail-lightbox__panel--preview .product-detail-lightbox__media--preview {
  overflow: hidden;
}
.product-detail-lightbox__panel--preview .product-detail-lightbox__preview-wrap {
  overflow: hidden;
  position: relative;
}
@media (prefers-reduced-motion: reduce) {
  .remaster-spark {
    animation: none;
    opacity: 0.55;
  }
}
.product-card--exclusive {
  box-shadow: 0 0 0 2px #e8c860, var(--shadow-soft);
}
.product-card--liked {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent), var(--shadow-soft);
}
.product-card--owned {
  border-color: color-mix(in srgb, var(--good) 72%, var(--border));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--good) 48%, transparent), var(--shadow-soft);
}
.product-card--owned.product-card--liked {
  border-color: color-mix(in srgb, var(--good) 72%, var(--border));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--good) 48%, transparent), var(--shadow-soft);
}
.product-card--liked:not(.product-card--owned) .product-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(248, 196, 208, 0.18), transparent 55%);
  pointer-events: none;
}
.product-card--owned .product-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--good) 16%, transparent), transparent 55%);
  pointer-events: none;
}

.vault-hide-owned.is-active {
  background: color-mix(in srgb, var(--good) 22%, var(--surface));
  border-color: color-mix(in srgb, var(--good) 55%, var(--border));
  color: color-mix(in srgb, var(--good) 35%, var(--text));
}
.vault-hide-owned.is-active:hover {
  background: color-mix(in srgb, var(--good) 28%, var(--surface));
  border-color: color-mix(in srgb, var(--good) 62%, var(--border));
  color: color-mix(in srgb, var(--good) 28%, var(--text));
}

.vault-toolbar__icon-btn.vault-pause-videos.is-active {
  background: color-mix(in srgb, var(--text) 8%, var(--surface));
  border-color: color-mix(in srgb, var(--text) 22%, var(--border));
  color: var(--text);
  box-shadow: none;
}
.vault-toolbar__icon-btn.vault-pause-videos.is-active:hover {
  background: color-mix(in srgb, var(--text) 12%, var(--surface));
  color: var(--text);
  border-color: color-mix(in srgb, var(--text) 28%, var(--border));
}

.credit-jar__fill--spend {
  transition: height 0.35s var(--ease) !important;
  filter: brightness(0.92);
}

.credit-spend-float {
  position: absolute;
  left: 50%;
  top: 35%;
  transform: translateX(-50%);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent-deep);
  pointer-events: none;
  animation: credit-spend-rise 1.1s var(--ease) forwards;
  z-index: 3;
}
@keyframes credit-spend-rise {
  0% { opacity: 0; transform: translate(-50%, 8px); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -28px); }
}

.profile-quick-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin: 0 auto 1.15rem;
  max-width: 1200px;
  width: 100%;
}
.profile-quick-actions__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  flex: 1 1 auto;
  min-width: 0;
}
.profile-quick-actions__notif {
  flex-shrink: 0;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  padding-inline: 0.65rem;
}
.profile-quick-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.profile-quick-actions .btn [data-icon],
.profile-quick-actions .btn [data-icon] svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  width: 1rem;
  height: 1rem;
  color: inherit;
}
.profile-quick-actions .btn svg {
  display: block;
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
}

.profile-suggestions {
  padding: 1.35rem 1.5rem 1.5rem;
  margin-bottom: 2rem;
}
.profile-suggestions__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.profile-suggestions__head .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.profile-suggestions__head .btn [data-icon] {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.profile-suggestions__head .btn svg {
  display: block;
  width: 1rem;
  height: 1rem;
}
.profile-suggestions__head h2 {
  margin: 0 0 0.35rem;
}
.profile-suggestions__list {
  margin: 0;
}
.profile-suggestions__list[data-loading] {
  min-height: 6rem;
}
.empty--compact {
  padding: 1.5rem 1rem;
  text-align: center;
}
.empty--compact h3 {
  margin: 0.5rem 0 0.35rem;
  font-size: 1rem;
}
.empty--compact p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.overlay-quota-meter {
  width: 100%;
  max-width: 12rem;
  height: 0.45rem;
  border-radius: var(--r-pill);
  background: var(--canvas-2);
  overflow: hidden;
  margin-bottom: 0.45rem;
}
.overlay-quota-meter__fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: var(--grad-accent);
  transition: width 0.45s var(--ease);
}
.overlay-downloads-btn {
  position: relative;
}
.overlay-downloads-btn__badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: var(--r-pill);
  background: var(--accent-deep);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.15rem;
  text-align: center;
}
.overlay-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}
.overlay-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.8rem;
  border-radius: var(--r-pill);
  font-size: 0.84rem;
  font-weight: 700;
  border: none;
  background: var(--canvas-2);
  color: var(--text-muted);
  cursor: default;
}
button.overlay-status-chip--ready {
  cursor: pointer;
  background: rgba(109, 191, 150, 0.16);
  color: var(--good);
}
button.overlay-status-chip--ready:hover {
  background: rgba(109, 191, 150, 0.24);
}
.overlay-status-chip--progress {
  background: var(--status-progress-bg);
  color: var(--status-progress-text);
}
button.overlay-status-chip--declined {
  cursor: pointer;
  background: rgba(220, 120, 120, 0.14);
  color: var(--bad, #b44);
}
button.overlay-status-chip--declined:hover {
  background: rgba(220, 120, 120, 0.22);
}
.overlay-status-row--library {
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
}
.overlay-library-item {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.55rem;
  width: 100%;
  padding: 0;
  border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
  border-radius: var(--r-md, 12px);
  background: var(--canvas-2);
  overflow: hidden;
}
.overlay-library-item__open {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.overlay-library-item__open:hover {
  background: color-mix(in srgb, var(--accent) 6%, var(--canvas-2));
}
.overlay-library-item__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.65rem 0.55rem 0;
  flex-shrink: 0;
}
.overlay-library-item__resubmit,
.overlay-library-item__clear {
  align-self: stretch;
  margin: 0;
  flex-shrink: 0;
}
.overlay-library-item__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}
.overlay-library-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
}
.overlay-library-item__note {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.outfit-card--favorited {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 45%, transparent), var(--shadow-soft);
}
.outfit-card--favorited .outfit-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 14%, transparent), transparent 60%);
  pointer-events: none;
}

.member-profile__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  list-style: none;
  padding: 0;
  margin: 0.65rem 0 0;
}
.member-profile__stats li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}
.member-profile__stats svg {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
}

.request__action--follow {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-deep);
}
.request__action--follow.is-following {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-on-accent);
}
.request__action--follow.is-following:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-on-accent);
}
.request__action--follow.is-following svg {
  stroke: currentColor;
}

.empty--vault {
  padding: 2.75rem 1.5rem;
}
.empty--vault h3 {
  font-size: 1.05rem;
}
.empty--vault .btn {
  margin-top: 0.35rem;
}

/* ========== DARK SCHEME - extension overrides ========== */
html[data-scheme="dark"] .product-detail-lightbox {
  background: rgba(10, 9, 12, 0.78);
}

html[data-scheme="dark"] .product-detail-lightbox__code-lock {
  background: rgba(37, 34, 42, 0.88);
}

html[data-scheme="dark"] .chip.is-active,
html[data-scheme="dark"] button.chip.is-active,
html[data-scheme="dark"] .filter-bar .chip.is-active,
html[data-scheme="dark"] .roadmap-filters .chip.is-active,
html[data-scheme="dark"] .outfit-filters .chip.is-active,
html[data-scheme="dark"] .chip--favorites.is-active,
html[data-scheme="dark"] .roadmap-dropdown__option.is-active,
html[data-scheme="dark"] .field-dropdown .roadmap-dropdown__option.is-active {
  background: var(--grad-accent);
  border-color: transparent;
  color: var(--text-on-accent);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
}

html[data-scheme="dark"] .chip.is-active:hover,
html[data-scheme="dark"] button.chip.is-active:hover,
html[data-scheme="dark"] .filter-bar .chip.is-active:hover,
html[data-scheme="dark"] .roadmap-filters .chip.is-active:hover,
html[data-scheme="dark"] .outfit-filters .chip.is-active:hover,
html[data-scheme="dark"] .chip--favorites.is-active:hover,
html[data-scheme="dark"] .roadmap-dropdown__option.is-active:hover,
html[data-scheme="dark"] .field-dropdown .roadmap-dropdown__option.is-active:hover {
  color: var(--text-on-accent);
  border-color: transparent;
}

html[data-scheme="dark"] .vault-toolbar__icon-btn.vault-pause-videos.is-active {
  background: rgba(255, 236, 242, 0.1);
  border-color: rgba(255, 236, 242, 0.22);
  color: var(--text);
  box-shadow: none;
}
html[data-scheme="dark"] .vault-toolbar__icon-btn.vault-pause-videos.is-active:hover {
  background: rgba(255, 236, 242, 0.14);
  color: var(--text);
  border-color: rgba(255, 236, 242, 0.28);
}

html[data-scheme="dark"] .filter-bar .chip:not(.is-active),
html[data-scheme="dark"] .roadmap-filters .chip:not(.is-active),
html[data-scheme="dark"] .outfit-filters .chip:not(.is-active),
html[data-scheme="dark"] .vault-toolbar .roadmap-dropdown__trigger,
html[data-scheme="dark"] .roadmap-toolbar .roadmap-dropdown__trigger,
html[data-scheme="dark"] .vault-toolbar__icon-btn:not(.is-active) {
  background: rgba(255, 236, 242, 0.04);
  border-color: rgba(255, 236, 242, 0.1);
  color: var(--text-muted);
}

html[data-scheme="dark"] .filter-bar .chip:not(.is-active):hover,
html[data-scheme="dark"] .roadmap-filters .chip:not(.is-active):hover,
html[data-scheme="dark"] .outfit-filters .chip:not(.is-active):hover,
html[data-scheme="dark"] .vault-toolbar .roadmap-dropdown__trigger:hover,
html[data-scheme="dark"] .roadmap-toolbar .roadmap-dropdown__trigger:hover,
html[data-scheme="dark"] .vault-toolbar__icon-btn:not(.is-active):hover {
  border-color: var(--ghost-border);
  color: var(--text);
  background: var(--ghost-bg);
}

html[data-scheme="dark"] .sidebar .nav__item.is-active,
html[data-scheme="dark"] .landing-nav__links .nav__item.is-active {
  color: #fff;
}

html[data-scheme="dark"] .outfit-card__lock {
  background: rgba(20, 18, 24, 0.88);
  color: var(--text-on-accent-soft);
}

html[data-scheme="dark"] .card,
html[data-scheme="dark"] .asset-row,
html[data-scheme="dark"] .vault-toolbar,
html[data-scheme="dark"] .my-assets-overlays {
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

html[data-scheme="dark"] .outfit-card__favorite {
  background: var(--canvas);
  color: var(--text-muted);
  border-color: var(--border-hi);
}

/* Profile account buttons match Vault Unlock in dark mode */
html[data-scheme="dark"] #change-password-btn.btn--ghost,
html[data-scheme="dark"] #delete-account-btn.btn--ghost,
html[data-scheme="dark"] #delete-account-submit.btn--ghost {
  background: var(--grad-accent);
  color: var(--text-on-accent);
  border-color: transparent;
  box-shadow: var(--shadow-accent);
}
html[data-scheme="dark"] #change-password-btn.btn--ghost:hover,
html[data-scheme="dark"] #delete-account-btn.btn--ghost:hover,
html[data-scheme="dark"] #delete-account-submit.btn--ghost:hover {
  filter: brightness(1.05);
  color: var(--text-on-accent);
  border-color: transparent;
}
html[data-scheme="dark"] #change-password-btn.btn--ghost svg,
html[data-scheme="dark"] #delete-account-btn.btn--ghost svg,
html[data-scheme="dark"] #delete-account-submit.btn--ghost svg {
  stroke: currentColor;
}
html[data-scheme="dark"] #delete-account-btn.btn--danger,
html[data-scheme="dark"] #delete-account-submit.btn--danger {
  background: var(--grad-accent);
  color: var(--text-on-accent);
  border-color: transparent;
  box-shadow: var(--shadow-accent);
}

html[data-scheme="dark"] .outfit-card__expand {
  background: var(--surface);
  color: var(--text-on-accent-soft);
}

html[data-scheme="dark"] .tag--planned {
  background: var(--status-planned-bg);
  color: var(--status-planned-text);
}

html[data-scheme="dark"] .tag--progress {
  background: var(--status-progress-bg);
  color: var(--status-progress-text);
}

html[data-scheme="dark"] .tag--done {
  background: var(--status-done-bg);
  color: var(--status-done-text);
}

html[data-scheme="dark"] .overlay-card__status--pending {
  background: rgba(200, 160, 64, 0.16);
  color: var(--warning-text);
}

html[data-scheme="dark"] .overlay-card__status--in_progress {
  background: var(--status-planned-bg);
  color: var(--status-planned-text);
}

html[data-scheme="dark"] .overlay-card__status--delivered {
  background: var(--status-done-bg);
  color: var(--status-done-text);
}

html[data-scheme="dark"] .overlay-card__status--expired,
html[data-scheme="dark"] .overlay-card__status--cancelled {
  background: var(--surface-2);
  color: var(--text-muted);
}


html[data-scheme="dark"] .request-modal .field select.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a59fa3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* --- Mobile desktop gate (browse on PC, download on phone) --- */
.desktop-gate {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem 2.5rem;
}

.desktop-gate__card {
  width: min(100%, 28rem);
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: 1.15rem;
  background: color-mix(in srgb, var(--surface) 92%, var(--accent-soft));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  box-shadow: var(--shadow-raised);
  text-align: center;
}

.desktop-gate__title {
  margin: 0.35rem 0 0.65rem;
  font-size: 1.35rem;
}

.desktop-gate__lead {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.desktop-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

@media (max-width: 768px) and (hover: none) and (pointer: coarse) {
  html.ccj-mobile-gated .main > .content {
    display: none !important;
  }

  html.ccj-mobile-gated .desktop-gate {
    display: flex;
  }
}

/* Public legal pages (terms, privacy, asset usage) */
.landing-nav--legal .landing-nav__logo {
  width: 64px;
  height: auto;
}
.landing-nav--legal .landing-nav__sparkles {
  display: none;
}
.legal-doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}
.legal-doc h1 {
  font-family: var(--font-display, "Fraunces", serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.35rem;
  line-height: 1.15;
}
.legal-doc h2 {
  font-size: 1.05rem;
  margin: 2rem 0 0.65rem;
  color: var(--text);
}
.legal-doc p,
.legal-doc li {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-on-white, var(--text));
}
.legal-doc ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}
.legal-doc li + li {
  margin-top: 0.35rem;
}
.legal-doc__updated {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.legal-doc__summary {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem 0.85rem 1.35rem;
  border-radius: var(--r-md, 12px);
  border: 1.5px solid var(--ghost-border);
  background: color-mix(in srgb, var(--canvas-2) 88%, transparent);
  list-style: disc;
}
.legal-doc__summary li + li {
  margin-top: 0.4rem;
}
.legal-doc__toc {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r-md, 12px);
  border: 1.5px solid var(--ghost-border);
  background: color-mix(in srgb, var(--canvas-2) 70%, transparent);
}
.legal-doc__toc-label {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.legal-doc__toc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
}
.legal-doc__toc-links a {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: none;
}
.legal-doc__toc-links a:hover {
  text-decoration: underline;
}
.legal-doc__lead {
  margin: 0 0 1rem;
}
.legal-doc__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1.5px solid var(--ghost-border);
  font-size: 0.9rem;
  font-weight: 600;
}
.legal-doc__nav a[aria-current="page"] {
  color: var(--accent-deep);
}
.legal-kofi-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.25rem;
  font-size: 0.88rem;
}
.legal-kofi-table caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.legal-kofi-table th,
.legal-kofi-table td {
  border: 1.5px solid var(--ghost-border);
  padding: 0.55rem 0.65rem;
  text-align: left;
  vertical-align: top;
}
.legal-kofi-table th {
  background: var(--ghost-bg);
  font-weight: 700;
}
.legal-page .landing-footer {
  margin-top: 0;
}

html[data-public-surface="1"] body.legal-page {
  background: #141218;
  color: #f4ecef;
}

html[data-public-surface="1"] body.legal-page .legal-doc h1,
html[data-public-surface="1"] body.legal-page .legal-doc h2,
html[data-public-surface="1"] body.legal-page .legal-doc p,
html[data-public-surface="1"] body.legal-page .legal-doc li {
  color: #f4ecef;
}

html[data-public-surface="1"] body.legal-page .legal-doc__updated,
html[data-public-surface="1"] body.legal-page .muted {
  color: #b7a6ae;
}

/* Birthday cake next to public pen names */
.birthday-cake {
  display: inline;
  font-size: 0.95em;
  line-height: 1;
  margin-left: 0.15em;
  vertical-align: baseline;
}

/* Birthday / credit gift modals (confetti celebration).
   Reset global `dialog` chrome so only __card paints a panel (no double window). */
dialog.birthday-gift-modal,
dialog.jar-gift-modal {
  border: none;
  border-radius: 0;
  padding: 0;
  width: auto;
  max-width: min(420px, calc(100vw - 2rem));
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
dialog.birthday-gift-modal::backdrop,
dialog.jar-gift-modal::backdrop {
  background: rgba(40, 28, 36, 0.55);
  backdrop-filter: blur(4px);
}
.birthday-gift-modal__confetti,
.jar-gift-modal__confetti {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}
.birthday-gift-modal__card,
.jar-gift-modal__card {
  position: relative;
  z-index: 1;
  margin: 12vh auto 0;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1.5px solid var(--ghost-border);
  box-shadow: var(--shadow-raised);
  text-align: center;
}
.birthday-gift-modal__emoji,
.jar-gift-modal__emoji {
  font-size: 2.75rem;
  margin: 0 0 0.5rem;
  line-height: 1;
}
.birthday-gift-modal__title,
.jar-gift-modal__title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.birthday-gift-modal__lead,
.jar-gift-modal__lead {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}
.birthday-gift-modal__credits,
.jar-gift-modal__credits {
  margin: 0 0 0.75rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--accent-deep);
}
.jar-gift-modal__note {
  margin: 0 0 1rem;
  font-size: 0.85rem;
}
.jar-gift-modal__combo-link {
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 700;
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 0.14em;
  cursor: pointer;
}
.jar-gift-modal__combo-link:hover {
  color: var(--accent);
}
.tier-update-modal__mark {
  display: flex;
  justify-content: center;
  margin: 0 0 0.35rem;
}
.tier-update-modal__frame {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
}
.tier-update-modal__tier {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-deep);
}
.birthday-gift-modal__status {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  min-height: 1.2em;
}
.birthday-gift-modal__close,
.jar-gift-modal__close {
  width: 100%;
}
.birthday-gift-modal__card > .request-modal__close,
.jar-gift-modal__card > .request-modal__close,
.jar-gift-modal__dismiss,
.unlock-spend-modal__close {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  z-index: 3;
}
.unlock-spend-modal__actions {
  justify-content: center;
}
.unlock-spend-modal__actions .btn {
  width: 100%;
}

/* Members Pantry tease (free accounts). Soft window, no confetti. */
dialog.pantry-tease-modal {
  border: none;
  border-radius: 0;
  padding: 0;
  width: auto;
  max-width: min(380px, calc(100vw - 2rem));
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
dialog.pantry-tease-modal::backdrop {
  background: rgba(40, 28, 36, 0.48);
  backdrop-filter: blur(3px);
}
.pantry-tease-modal__card {
  position: relative;
  margin: 18vh auto 0;
  padding: 1.55rem 1.35rem 1.35rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1.5px solid var(--ghost-border);
  box-shadow: var(--shadow-raised);
  text-align: center;
}
.pantry-tease-modal__x {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
}
.pantry-tease-modal__emoji {
  font-size: 2.2rem;
  line-height: 1;
  margin: 0.15rem 0 0.45rem;
}
.pantry-tease-modal__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.45rem;
  color: var(--text);
}
.pantry-tease-modal__lead {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.45;
}
.pantry-tease-modal__tease {
  text-align: left;
  margin: 0 0 1.1rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}
.pantry-tease-modal__tease-label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--accent-deep);
  text-transform: uppercase;
}
.pantry-tease-modal__tease ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
}
.pantry-tease-modal__tease li + li {
  margin-top: 0.2rem;
}
.pantry-tease-modal__actions {
  display: grid;
  gap: 0.5rem;
}
.pantry-tease-modal__actions .btn {
  width: 100%;
}

/* --- Like pop (heart bounce + crumb sparkles) --- */
.product-card__foot .vault-product__like--heart.is-like-pop {
  position: relative;
  z-index: 1;
  animation: vault-like-heart-bounce 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent);
}
.product-card__foot .vault-product__like--heart.is-like-pop::before,
.product-card__foot .vault-product__like--heart.is-like-pop::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 40%;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  opacity: 0;
}
.product-card__foot .vault-product__like--heart.is-like-pop::before {
  box-shadow:
    -0.55rem -0.15rem 0 -0.05rem color-mix(in srgb, var(--accent) 85%, #fff),
    0.6rem -0.35rem 0 -0.06rem color-mix(in srgb, var(--accent) 70%, #f4d4a8),
    -0.15rem -0.7rem 0 -0.08rem color-mix(in srgb, var(--accent) 55%, #fff);
  animation: vault-like-crumbs-a 0.65s ease-out both;
}
.product-card__foot .vault-product__like--heart.is-like-pop::after {
  width: 0.28rem;
  height: 0.28rem;
  background: color-mix(in srgb, var(--accent) 75%, #f4d4a8);
  box-shadow:
    0.45rem 0.1rem 0 -0.04rem var(--accent),
    -0.65rem 0.25rem 0 -0.05rem color-mix(in srgb, var(--accent) 60%, #fff);
  animation: vault-like-crumbs-b 0.65s ease-out both;
}
@keyframes vault-like-heart-bounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.32); }
  50% { transform: scale(0.9); }
  70% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
@keyframes vault-like-crumbs-a {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, calc(-50% - 1.15rem)) scale(1); }
}
@keyframes vault-like-crumbs-b {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, calc(-50% - 0.85rem)) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .product-card__foot .vault-product__like--heart.is-like-pop,
  .product-card__foot .vault-product__like--heart.is-like-pop::before,
  .product-card__foot .vault-product__like--heart.is-like-pop::after {
    animation: none;
  }
}

/* --- Still warm (My assets) --- */
.asset-row--still-warm {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), var(--shadow-soft);
}
.asset-row__warm {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-deep);
}


/* --- Analytics consent banner --- */
/* Hidden by default. Visible only after JS confirms no stored choice
   and sets html[data-ccj-need-consent]. */
#ccj-analytics-consent,
.analytics-consent {
  display: none !important;
}
html[data-ccj-analytics] #ccj-analytics-consent,
html[data-ccj-analytics] .analytics-consent {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
html:not([data-ccj-analytics])[data-ccj-need-consent] #ccj-analytics-consent {
  display: block !important;
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  max-width: 34rem;
  margin-inline: auto;
  padding: 0;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}
html:not([data-ccj-analytics])[data-ccj-need-consent] #ccj-analytics-consent.is-armed {
  visibility: visible;
  opacity: 1;
}
html:not([data-ccj-analytics])[data-ccj-need-consent] #ccj-analytics-consent .analytics-consent__inner {
  pointer-events: auto;
}
.analytics-consent__inner {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--r-md, 0.85rem);
  border: 1px solid var(--border-hi);
  background: color-mix(in srgb, var(--surface) 92%, var(--accent-soft));
  box-shadow: var(--shadow-raised, 0 12px 32px rgba(40, 20, 30, 0.14));
}
.analytics-consent__copy {
  flex: 1 1 12rem;
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text);
}
.analytics-consent__copy a {
  color: var(--accent-deep);
  font-weight: 700;
}
.analytics-consent__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
@media (max-width: 520px) {
  html:not([data-ccj-analytics])[data-ccj-need-consent] #ccj-analytics-consent {
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.65rem;
  }
  .analytics-consent__actions {
    width: 100%;
  }
  .analytics-consent__actions .btn {
    flex: 1;
  }
}

/* --- Cookie counter --- */
.cookie-counter {
  margin: 0;
  max-width: min(42vw, 18rem);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 820px) {
  .cookie-counter { display: none; }
}

/* --- Legal lightbox (Terms / Privacy / Asset usage) --- */
.legal-lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(69, 53, 60, 0.45);
  backdrop-filter: blur(6px);
}
.legal-lightbox.is-open {
  display: flex;
}
body.legal-lightbox-open {
  overflow: hidden;
}
.legal-lightbox__frame {
  width: min(720px, calc(100vw - 2rem));
  max-height: calc(100vh - 2.5rem);
}
.legal-lightbox__panel {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2.5rem);
  border-radius: var(--r-md, 0.85rem);
  border: 1.5px solid var(--border-hi);
  background: var(--surface);
  box-shadow: var(--shadow-raised, 0 16px 40px rgba(40, 20, 30, 0.18));
  overflow: hidden;
}
.legal-lightbox__chrome {
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--ghost-border);
  background: color-mix(in srgb, var(--surface) 88%, var(--accent-soft));
}
.legal-lightbox__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.legal-lightbox__close:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--accent-soft) 45%, transparent);
}
.legal-lightbox__close svg {
  width: 1rem;
  height: 1rem;
}
.legal-lightbox__scroll {
  overflow: auto;
  overscroll-behavior: contain;
}
.legal-lightbox__body.legal-doc {
  max-width: none;
  margin: 0;
  padding: 0.5rem 1.25rem 1.75rem;
}
.legal-lightbox__loading {
  padding: 1.5rem 0;
}
.legal-lightbox__body .faq-layout {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.75rem;
}
.legal-lightbox__body .faq-section h2 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}

html[data-public-surface="1"] .legal-lightbox__panel {
  background: #1c191f;
  border-color: rgba(244, 236, 239, 0.14);
  color: #f4ecef;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
html[data-public-surface="1"] .legal-lightbox__chrome {
  background: color-mix(in srgb, #1c191f 88%, #e899a9 12%);
  border-bottom-color: rgba(244, 236, 239, 0.1);
}
html[data-public-surface="1"] .legal-lightbox__close {
  color: #b7a6ae;
}
html[data-public-surface="1"] .legal-lightbox__body.legal-doc h1,
html[data-public-surface="1"] .legal-lightbox__body.legal-doc h2,
html[data-public-surface="1"] .legal-lightbox__body.legal-doc p,
html[data-public-surface="1"] .legal-lightbox__body.legal-doc li {
  color: #f4ecef;
}
html[data-public-surface="1"] .legal-lightbox__body .faq-item {
  background: rgba(255, 252, 253, 0.06);
  border-color: rgba(255, 252, 253, 0.14);
}
html[data-public-surface="1"] .legal-lightbox__body .faq-item summary,
html[data-public-surface="1"] .legal-lightbox__body .faq-item__body {
  color: #f4ecef;
}
html[data-public-surface="1"] .legal-lightbox__body .faq-item[open] summary {
  color: #e899a9;
}

/* --- First unlock ceremony (centered, same family as gift modals) --- */
dialog.first-unlock-modal {
  border: none;
  border-radius: 0;
  padding: 0;
  width: auto;
  max-width: min(420px, calc(100vw - 2rem));
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
dialog.first-unlock-modal::backdrop {
  background: rgba(40, 28, 36, 0.55);
  backdrop-filter: blur(4px);
}

/* --- Profile unlock mix pie (glossy SVG sticker style) --- */
:root {
  --profile-pie-stroke: color-mix(in srgb, var(--accent-deep) 38%, var(--text));
  --profile-pie-sparkle: color-mix(in srgb, var(--secondary-deep) 50%, transparent);
}
html[data-scheme="dark"] {
  --profile-pie-stroke: color-mix(in srgb, var(--accent-deep) 48%, #141218);
  --profile-pie-sparkle: color-mix(in srgb, var(--accent) 42%, transparent);
}
.profile-unlock-mix {
  flex: 0 1 22.45rem;
  margin: 0 0 0 auto;
  padding: 0.2rem 0 0.2rem 1.38rem;
  border-top: none;
  border-left: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
  align-self: center;
  min-width: 16.7rem;
  max-width: 24.75rem;
}
.profile-unlock-mix .eyebrow {
  margin: 0 0 0.42rem;
}
.profile-unlock-mix__empty {
  margin: 0.24rem 0 0;
  font-size: 0.88rem;
  line-height: 1.4;
}
.profile-unlock-mix__stats {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.35;
}
.profile-unlock-mix__stats:empty {
  display: none;
}
.profile-unlock-mix__stats a,
.profile-unlock-mix__stats strong {
  color: var(--accent-deep);
  font-weight: 800;
  text-decoration: none;
}
.profile-unlock-mix__stats a:hover {
  text-decoration: underline;
}
.profile-unlock-mix__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 1.02rem 1.26rem;
  margin-top: 0.24rem;
}
.profile-unlock-mix__pie-svg {
  width: 7.8rem;
  height: 7.8rem;
  flex-shrink: 0;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 3px 8px color-mix(in srgb, var(--profile-pie-stroke) 22%, transparent));
}
.profile-unlock-mix__sparkle {
  fill: var(--profile-pie-sparkle);
  opacity: 0.55;
}
.profile-unlock-mix__slice path {
  paint-order: stroke fill;
}
.profile-unlock-mix__legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.36rem;
  font-size: 0.88rem;
  min-width: 0;
  flex: 1 1 auto;
}
.profile-unlock-mix__legend li {
  display: flex;
  align-items: baseline;
  gap: 0.42rem;
  flex-wrap: wrap;
}
.profile-unlock-mix__swatch {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--swatch, #e0d0d8);
  box-shadow:
    inset 0 1px 2px color-mix(in srgb, #fff 35%, transparent),
    0 0 0 1.5px var(--profile-pie-stroke);
}
@media (max-width: 900px) {
  .profile-unlock-mix {
    flex: 1 1 100%;
    margin: 0.85rem 0 0;
    padding: 0.85rem 0 0;
    border-left: none;
    border-top: 1px solid color-mix(in srgb, var(--border) 75%, transparent);
    max-width: none;
    min-width: 0;
    align-self: stretch;
  }
}

/* Theme-aware scrollbars (site-wide; respects light/dark + color scheme) */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}
*::-webkit-scrollbar {
  width: 0.5rem;
  height: 0.5rem;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--accent-deep);
}
*::-webkit-scrollbar-button {
  display: none;
  height: 0;
  width: 0;
}

.announcement-gift-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1rem;
}
.announcement-gift-modal__actions .btn {
  min-width: 8rem;
}
