/* 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 --- */
.landing-nav__wordmark {
  font-family: 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--stagecraft {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 0.55rem 0 0;
  padding: 0;
  border: none;
  background: transparent;
  max-width: 36rem;
}
.product-detail-lightbox__related-note--stagecraft {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-muted);
  max-width: 28rem;
}
.stagecraft-license-dialog__card {
  max-width: 26rem;
}
.stagecraft-license-dialog__code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0.85rem 0 0.35rem;
}
.stagecraft-license-dialog__code {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: color-mix(in srgb, var(--surface) 88%, var(--bg));
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
}
.stagecraft-license-dialog__until {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
}
.stagecraft-license-dialog__copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 5.5rem;
  justify-content: center;
}
.stagecraft-license-dialog__copy-mark {
  display: inline-flex;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
}
.stagecraft-license-dialog__copy-mark svg {
  width: 1em;
  height: 1em;
}
.stagecraft-license-dialog__copy.is-copied .stagecraft-license-dialog__copy-mark {
  display: inline-flex;
}
.stagecraft-license-dialog__copy.is-copy-failed {
  filter: saturate(0.85);
}
.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: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.65rem;
  row-gap: 0.4rem;
  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__actions > .product-detail-lightbox__engage-row {
  grid-column: 1;
}
.product-detail-lightbox__actions > .product-detail-lightbox__cta {
  grid-column: 2;
  justify-self: end;
}
.product-detail-lightbox__actions > .product-detail-lightbox__usage-link {
  grid-column: 2;
  justify-self: end;
}
.product-detail-lightbox__cta {
  display: inline-flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-left: 0;
}
.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%;
  min-height: 2.35rem;
  height: 2.35rem;
  box-sizing: border-box;
  justify-content: center;
}
.product-detail-lightbox__cta-primary .product-card__price.is-owned {
  min-width: 9.5rem;
  width: 100%;
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.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/wishlist match vault card squares. */
.product-detail-lightbox__like-engage .request__action--square,
.product-detail-lightbox__wishlist-engage .request__action--square {
  width: 2.35rem;
  height: 2.35rem;
  min-width: 2.35rem;
}
.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 {
  grid-column: 1 / -1;
  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__price-hint strong {
  color: var(--accent-deep);
}
.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);
}
video.product-detail-lightbox__variant-thumb {
  display: block;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  background: #0c0b0c;
}
.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,
.nav__item--story-map.is-locked {
  opacity: 0.58;
  color: var(--text-faint);
}
.nav__item--members-pantry.is-locked:hover,
.nav__item--story-map.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;
}

/* Episode-code + landscape still: stacked (preview → actions → code).
   Video+code and portrait still+code use --code-video side-by-side shell. */
.product-detail-lightbox__panel--with-code:not(.product-detail-lightbox__panel--code-video) {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: calc(100vh - 1.25rem);
  width: min(504px, calc(100vw - 2rem)) !important;
  max-width: min(504px, calc(100vw - 2rem)) !important;
  gap: 0;
}
.product-detail-lightbox__panel--with-code:not(.product-detail-lightbox__panel--code-video).product-detail-lightbox__panel--preview {
  overflow-x: hidden;
  overflow-y: auto;
}
.product-detail-lightbox__panel--with-code:not(.product-detail-lightbox__panel--code-video) .product-detail-lightbox__top {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: stretch;
  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:not(.product-detail-lightbox__panel--code-video) .product-detail-lightbox__body {
  flex: 0 0 auto;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.7rem;
  overflow: visible;
  align-self: stretch;
}
.product-detail-lightbox__panel--with-code:not(.product-detail-lightbox__panel--code-video).product-detail-lightbox__panel--preview-below .product-detail-lightbox__body {
  flex: 1 1 auto;
}
.product-detail-lightbox__panel--with-code:not(.product-detail-lightbox__panel--code-video) .product-detail-lightbox__media-shell {
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  /* Reduced height so preview image is 10% smaller on all sides. */
  max-height: min(45vh, calc(100vh - 16rem));
  align-self: stretch;
  display: block;
  overflow: hidden;
}
.product-detail-lightbox__panel--with-code:not(.product-detail-lightbox__panel--code-video) .product-detail-lightbox__media--preview,
.product-detail-lightbox__panel--with-code:not(.product-detail-lightbox__panel--code-video).product-detail-lightbox__panel--portrait .product-detail-lightbox__media--preview,
.product-detail-lightbox__panel--with-code:not(.product-detail-lightbox__panel--code-video).product-detail-lightbox__panel--landscape .product-detail-lightbox__media--preview {
  flex: none;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: min(45vh, calc(100vh - 16rem));
  margin-bottom: 0;
  align-self: stretch;
  background: var(--canvas-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  padding: 0;
  display: block;
}
.product-detail-lightbox__panel--with-code:not(.product-detail-lightbox__panel--code-video) .product-detail-lightbox__preview-wrap {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: min(45vh, calc(100vh - 16rem));
  aspect-ratio: var(--lightbox-preview-aspect, auto);
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  line-height: 0;
}
.product-detail-lightbox__panel--with-code:not(.product-detail-lightbox__panel--code-video) .product-detail-lightbox__preview,
.product-detail-lightbox__panel--with-code:not(.product-detail-lightbox__panel--code-video) video.product-detail-lightbox__preview,
.product-detail-lightbox__panel--with-code:not(.product-detail-lightbox__panel--code-video).product-detail-lightbox__panel--portrait .product-detail-lightbox__preview,
.product-detail-lightbox__panel--with-code:not(.product-detail-lightbox__panel--code-video).product-detail-lightbox__panel--landscape .product-detail-lightbox__preview,
.product-detail-lightbox__panel--with-code:not(.product-detail-lightbox__panel--code-video).product-detail-lightbox__panel--landscape video.product-detail-lightbox__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-position: center center;
  border-radius: 0;
  background: transparent;
}
/* Code + still: contain frame so full image displays without top/bottom crop. */
.product-detail-lightbox__panel--with-code:not(.product-detail-lightbox__panel--code-video) img.product-detail-lightbox__preview {
  object-fit: contain;
}
.product-detail-lightbox__panel--with-code:not(.product-detail-lightbox__panel--code-video) video.product-detail-lightbox__preview {
  object-fit: contain;
}
.product-detail-lightbox__panel--with-code:not(.product-detail-lightbox__panel--code-video) .product-detail-lightbox__copy > .eyebrow,
.product-detail-lightbox__panel--with-code:not(.product-detail-lightbox__panel--code-video) .product-detail-lightbox__copy > h2,
.product-detail-lightbox__panel--with-code:not(.product-detail-lightbox__panel--code-video) .product-detail-lightbox__copy > p.muted,
.product-detail-lightbox__panel--with-code:not(.product-detail-lightbox__panel--code-video) .product-detail-lightbox__meta,
.product-detail-lightbox__panel--with-code:not(.product-detail-lightbox__panel--code-video) .product-detail-lightbox__related-wrap {
  flex: 0 0 auto;
}
.product-detail-lightbox__panel--with-code:not(.product-detail-lightbox__panel--code-video) .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:not(.product-detail-lightbox__panel--code-video) .product-detail-lightbox__body > h2,
.product-detail-lightbox__panel--with-code:not(.product-detail-lightbox__panel--code-video) .product-detail-lightbox__copy > h2 {
  margin-bottom: 0.15rem;
  padding-right: 0;
}
.product-detail-lightbox__panel--with-code:not(.product-detail-lightbox__panel--code-video) #product-detail-code-wrap {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: 0.95rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--border);
}
.product-detail-lightbox__panel--with-code:not(.product-detail-lightbox__panel--code-video) #product-detail-code-wrap[hidden] {
  display: none;
}
.product-detail-lightbox__panel--with-code:not(.product-detail-lightbox__panel--code-video) .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:not(.product-detail-lightbox__panel--code-video) .product-detail-lightbox__code-head {
  flex: 0 0 auto;
}
.product-detail-lightbox__panel--with-code:not(.product-detail-lightbox__panel--code-video) .product-detail-lightbox__code-body {
  flex: 1 1 auto;
  height: auto;
  min-height: 3.5rem;
  max-height: min(22vh, 9.5rem);
  overflow: auto;
  overscroll-behavior: contain;
}
.product-detail-lightbox__panel--with-code:not(.product-detail-lightbox__panel--code-video) .product-detail-lightbox__actions {
  flex: 0 0 auto;
  margin-top: 0.55rem;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0.15rem;
  border-top: none;
  /* Unlock/download shares the like/wishlist midline; usage link sits on the next grid row. */
  align-items: center;
  row-gap: 0.4rem;
}
.product-detail-lightbox__panel--with-code:not(.product-detail-lightbox__panel--code-video) .product-detail-lightbox__engage-row {
  min-height: 2.35rem;
  align-items: center;
}
.product-detail-lightbox__panel--with-code:not(.product-detail-lightbox__panel--code-video) .product-detail-lightbox__actions > .product-detail-lightbox__usage-link {
  margin-top: 0.1rem;
  margin-bottom: 0.15rem;
}
.product-detail-lightbox__panel--with-code:not(.product-detail-lightbox__panel--code-video) .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:not(.product-detail-lightbox__panel--code-video) {
    width: min(560px, calc(100vw - 2rem)) !important;
    max-width: min(560px, calc(100vw - 2rem)) !important;
  }
}

/* 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;
  display: block;
  background-color: var(--accent-deep);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.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 / portrait still: side-by-side media | code, roadmap-style footer */
.product-detail-lightbox__panel--code-video {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: min(630px, calc(100vw - 2rem)) !important;
  max-width: min(630px, calc(100vw - 2rem)) !important;
  max-height: calc(100vh - 0.75rem);
  gap: 0.55rem;
  padding: 0.7rem 1rem 0.85rem;
}
/* Multi-look + code/video: same footprint as backgrounds with options (560). */
.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--look-picker,
.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--look-picker.product-detail-lightbox__panel--has-video {
  width: min(560px, calc(100vw - 2rem)) !important;
  max-width: min(560px, calc(100vw - 2rem)) !important;
}
.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--look-picker .product-detail-lightbox__footer {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 0 0 auto;
  min-width: 0;
}
.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--look-picker .product-detail-lightbox__look-picker {
  width: 100%;
  min-width: 0;
  margin: 0;
}
.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--look-picker .product-detail-lightbox__variants {
  margin: 0;
}
/* Video+code: taller shell, narrower video column sized to the clip (no side bars). */
.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--has-video {
  width: min(608px, calc(100vw - 2rem)) !important;
  max-width: min(608px, calc(100vw - 2rem)) !important;
}
.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--look-picker.product-detail-lightbox__panel--has-video {
  width: min(560px, calc(100vw - 2rem)) !important;
  max-width: min(560px, calc(100vw - 2rem)) !important;
}
.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;
  flex: 1 1 auto;
  min-height: 0;
}
.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--has-video .product-detail-lightbox__content {
  grid-template-columns: auto minmax(0, 1fr);
}
.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(30vh, 270px);
  max-height: min(30vh, 270px);
  align-self: stretch;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}
.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--has-video .product-detail-lightbox__media-shell,
.product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--has-video .product-detail-lightbox__media-shell {
  width: auto;
  height: min(46vh, 416px);
  min-height: min(46vh, 416px);
  max-height: min(46vh, 416px);
  max-width: min(37vw, 240px);
  aspect-ratio: var(--lightbox-preview-aspect, 9 / 16);
  flex: 0 0 auto;
}
.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--look-picker.product-detail-lightbox__panel--has-video .product-detail-lightbox__media-shell {
  max-width: min(42vw, 220px);
  height: min(40vh, 360px);
  min-height: min(40vh, 360px);
  max-height: min(40vh, 360px);
}
.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(38vh, 340px);
  max-height: min(38vh, 340px);
  margin: 0;
  padding: 0;
  background: var(--canvas-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
  position: relative;
}
.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--has-video .product-detail-lightbox__media--preview,
.product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--has-video .product-detail-lightbox__media--preview,
.product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--has-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--has-video.product-detail-lightbox__panel--landscape .product-detail-lightbox__media--preview {
  min-height: 0;
  max-height: none;
  height: 100%;
  background: #0c0b0c;
}
.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: block;
  position: relative;
  line-height: 0;
  overflow: hidden;
  border-radius: inherit;
}
.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 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-position: center center;
  border-radius: 0;
  background: transparent;
}
/* Portrait/landscape still + code: cover the frame. Video + code: never crop. */
.product-detail-lightbox__panel--code-video img.product-detail-lightbox__preview,
.product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--code-video img.product-detail-lightbox__preview {
  object-fit: cover;
}
.product-detail-lightbox__panel--code-video video.product-detail-lightbox__preview,
.product-detail-lightbox__panel--with-code.product-detail-lightbox__panel--code-video video.product-detail-lightbox__preview {
  object-fit: contain;
}
.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;
  height: min(30vh, 270px);
  min-height: min(30vh, 270px);
  max-height: min(30vh, 270px);
  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);
  box-sizing: border-box;
}
.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--has-video .product-detail-lightbox__code {
  height: min(46vh, 416px);
  min-height: min(46vh, 416px);
  max-height: min(46vh, 416px);
}
/* Multi-look video|code: code column must match the look-picker video shell (360), not the single-look 416. */
.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--look-picker.product-detail-lightbox__panel--has-video .product-detail-lightbox__code {
  height: min(40vh, 360px);
  min-height: min(40vh, 360px);
  max-height: min(40vh, 360px);
}
.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;
  padding-bottom: 0.15rem;
  border-top: 1px solid var(--border);
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.4rem;
}
.product-detail-lightbox__panel--code-video .product-detail-lightbox__engage-row {
  min-height: 2.35rem;
  align-items: center;
}
.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: 0;
  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__panel--has-video {
    width: min(420px, calc(100vw - 2rem)) !important;
    max-width: min(420px, 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__panel--has-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: min(32vh, 280px);
    max-height: min(36vh, 300px);
  }
  .product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--has-video .product-detail-lightbox__media-shell {
    width: min(100%, 220px);
    max-width: min(100%, 220px);
    height: auto;
    min-height: 0;
    max-height: min(52vh, 420px);
    margin-inline: auto;
  }
  .product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--has-video .product-detail-lightbox__media--preview,
  .product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--has-video .product-detail-lightbox__code {
    min-height: min(42vh, 360px);
    max-height: min(52vh, 420px);
  }
  .product-detail-lightbox__panel--code-video .product-detail-lightbox__preview,
  .product-detail-lightbox__panel--code-video video.product-detail-lightbox__preview {
    max-height: none;
  }
  .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--like,
.product-card__foot .vault-product__like--heart,
.product-detail-lightbox__like,
.product-detail-lightbox__like.request__action {
  color: var(--accent);
  border-color: var(--accent);
  border: 1px solid var(--accent);
}
.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;
}
/* Heart outline always follows the active theme mood */
.request__action--like svg,
.product-card__foot .vault-product__like--heart svg,
.product-detail-lightbox__like svg {
  stroke: var(--accent);
  fill: none;
  color: var(--accent);
}
.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(--accent);
  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.28rem;
  right: -0.28rem;
  z-index: 2;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.32rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  border-radius: 999px;
  background: var(--surface-raised, #2a2228);
  border: 1.5px solid var(--surface, #17131a);
  color: var(--text);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  box-sizing: border-box;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
button.request__icon-action__badge.request__action--like-count {
  pointer-events: auto;
  cursor: pointer;
  font-family: inherit;
  background: var(--surface-raised, #2a2228);
  margin: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
button.request__icon-action__badge.request__action--like-count::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 999px;
}
.request__action--like.is-liked ~ .request__icon-action__badge,
.vault-product__like--heart.is-liked ~ .request__icon-action__badge,
.product-detail-lightbox__like.is-liked ~ .request__icon-action__badge {
  background: color-mix(in srgb, var(--accent) 32%, var(--surface-raised, #2a2228));
  color: var(--text);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 6px color-mix(in srgb, var(--accent) 30%, transparent);
}
button.request__icon-action__badge.request__action--like-count:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
}
.request__icon-action__badge[hidden],
.request__icon-action__badge:empty {
  display: none !important;
}
/* Wishlist counts are private - never show a public tally badge. */
.vault-product__wishlist-count {
  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: inline-grid;
  place-items: center;
  place-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--r-pill);
  padding: 0;
  margin: 0;
  line-height: 0;
  font-size: 0;
}
.engagement-likers-modal__close [data-icon] {
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  line-height: 0;
}
.engagement-likers-modal__close svg {
  display: block;
  width: 1rem;
  height: 1rem;
  margin: 0;
  transform: translateY(0.5px);
}
.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;
}
.profile-hero__upload-badge {
  position: absolute;
  top: 102px;
  left: 102px;
  z-index: 5;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--surface, #1c1612);
  border: 1.5px solid color-mix(in srgb, var(--accent, #c4a35a) 80%, transparent);
  color: var(--accent);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.profile-hero__upload-badge:hover,
.profile-hero__upload-badge:focus-within {
  transform: scale(1.12);
  background: var(--canvas-2, #261f1c);
  border-color: var(--accent);
  color: var(--text);
}
.profile-hero__upload-badge svg {
  width: 15px;
  height: 15px;
}
.profile-hero__frame-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--text-muted, #a8989e);
  cursor: pointer;
  user-select: none;
}
.profile-hero__frame-toggle input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
  cursor: pointer;
}
.profile-hero__frame-toggle[hidden] {
  display: none;
}
.profile-stats-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin-top: 0.85rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--r-md, 0.75rem);
  background: color-mix(in srgb, var(--surface, #1c1612) 80%, transparent);
  border: 1px solid color-mix(in srgb, var(--ghost-border, #4a3a40) 65%, transparent);
  width: fit-content;
  max-width: 100%;
}
.profile-stats-strip__item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
}
.profile-stats-strip__num {
  font-weight: 750;
  color: var(--text);
  font-size: 0.95rem;
}
.profile-stats-strip__label {
  color: var(--text-muted, #a8989e);
  font-size: 0.78rem;
}
.profile-stats-strip__sep {
  color: color-mix(in srgb, var(--text-muted, #a8989e) 50%, transparent);
  font-weight: 700;
}
.profile-unlock-mix__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.7rem;
  font-size: 0.82rem;
}

/* 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__frame--rect {
  width: 90%;
  height: 90%;
  border-radius: var(--r-md, 12px);
}
.avatar-edit-modal--portrait {
  width: min(380px, calc(100vw - 2rem));
  max-width: 380px;
}
.avatar-edit-modal--portrait .avatar-edit__viewport {
  max-width: 240px;
}
.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: repeat(3, 1fr);
  gap: 1.75rem;
  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--export {
  padding-left: 1.5rem;
  border-left: 1px solid color-mix(in srgb, var(--ghost-border, #4a3a40) 60%, transparent);
}
.profile-account-actions__col--danger {
  padding-left: 1.5rem;
  border-left: 1px solid rgba(224, 122, 122, 0.25);
}
@media (max-width: 860px) {
  .profile-account-actions__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .profile-account-actions__col--export,
  .profile-account-actions__col--danger {
    padding-left: 0;
    padding-top: 1.5rem;
    border-left: none;
    border-top: 1px solid color-mix(in srgb, var(--ghost-border, #4a3a40) 60%, transparent);
  }
  .profile-account-actions__col--danger {
    border-top-color: 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: #17131a;
  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;
}
dialog.request-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
  max-height: min(92vh, 920px);
  box-sizing: border-box;
}
.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: flex-start;
  gap: 0.55rem;
  margin-bottom: 0;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.field--checkbox label.checkbox span {
  font-weight: 500;
  line-height: 1.45;
}
.vault-delivery-consent-modal .request-modal__actions {
  margin-top: 0.75rem;
}
.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-banner__cta.hero-cta,
.vault-banner__cta {
  align-items: flex-start;
}
.vault-banner__cta-side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
}
.vault-banner__cta > .btn,
.vault-banner__cta-side > .btn {
  box-sizing: border-box;
  min-height: 2.85rem;
}
/* Ghost has a 1.5px border; match that box so both CTAs sit on one line. */
.vault-banner__cta > .btn--primary {
  border: 1.5px solid transparent;
}
.vault-earn-credits-link {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--text-on-banner, var(--text)) 72%, transparent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}
.vault-earn-credits-link:hover {
  color: var(--text-on-banner, var(--text));
}
.vault-earn-credits-modal .request-modal__head {
  margin-bottom: 0.35rem;
}
.vault-earn-credits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.vault-earn-credits-list li {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--r-md, 12px);
  border: 1px solid color-mix(in srgb, var(--border) 85%, var(--accent) 15%);
  background: color-mix(in srgb, var(--surface) 94%, var(--accent) 6%);
}
.vault-earn-credits-list strong {
  font-size: 0.95rem;
}
.vault-earn-credits-list .muted {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
}
.vault-earn-credits-list a {
  justify-self: start;
  margin-top: 0.2rem;
  font-size: 0.86rem;
  font-weight: 700;
}
.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 {
  width: 100%;
  max-width: none;
  min-width: 0;
}
[data-page="faq"] .page-head,
[data-page="faq"] .faq-page-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  margin-bottom: 0;
}
.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[hidden] {
  display: none !important;
}
.profile-kofi-email__form input[type="email"],
.profile-kofi-email__form input[type="text"] {
  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-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.vault-product__engage,
.vault-product__wishlist {
  flex-shrink: 0;
}
.product-card__foot .vault-product__engage .request__icon-action,
.product-card__foot .vault-product__wishlist .request__icon-action {
  display: inline-flex;
}
.product-card__foot .vault-product__like--heart.request__action--square,
.product-card__foot .vault-product__wishlist--btn.request__action--square {
  width: 2.15rem;
  height: 2.15rem;
  min-width: 2.15rem;
}
.vault-product__wishlist--btn.is-wishlisted {
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface));
}
.vault-product__wishlist--btn.is-wishlisted svg,
.vault-wishlist-filter.is-active svg,
.vault-wishlist-filter.is-active [data-icon] svg {
  fill: currentColor;
}
.product-detail-lightbox__engage-row .product-detail-lightbox__wishlist-engage {
  flex-shrink: 0;
}
.vault-wishlist-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.vault-wishlist-filter [data-icon],
.vault-wishlist-filter svg {
  width: 0.95rem;
  height: 0.95rem;
}

/* 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;
}
/* Multi-look + video|code: look-picker hug rules must not collapse the side-by-side video. */
.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--look-picker .product-detail-lightbox__media-shell,
.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--look-picker.product-detail-lightbox__panel--has-video .product-detail-lightbox__media-shell,
.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--look-picker.product-detail-lightbox__panel--preview .product-detail-lightbox__media-shell {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  width: auto !important;
  height: min(40vh, 360px) !important;
  min-height: min(40vh, 360px) !important;
  max-height: min(40vh, 360px) !important;
  max-width: min(42vw, 220px) !important;
  aspect-ratio: var(--lightbox-preview-aspect, 9 / 16) !important;
  overflow: hidden !important;
  margin-inline: 0 !important;
}
.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--look-picker .product-detail-lightbox__media--preview,
.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--look-picker.product-detail-lightbox__panel--has-video .product-detail-lightbox__media--preview,
.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--look-picker.product-detail-lightbox__panel--portrait .product-detail-lightbox__media--preview {
  display: flex !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: #0c0b0c !important;
}
.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--look-picker .product-detail-lightbox__preview-wrap {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
}
.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--look-picker .product-detail-lightbox__preview,
.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--look-picker video.product-detail-lightbox__preview {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
}
.product-detail-lightbox__panel--code-video.product-detail-lightbox__panel--look-picker.product-detail-lightbox__panel--has-video .product-detail-lightbox__code {
  height: min(40vh, 360px) !important;
  min-height: min(40vh, 360px) !important;
  max-height: min(40vh, 360px) !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: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;
  font-size: 0.88rem;
  line-height: 1.45;
}
.overlay-request-form__note--share {
  margin-top: 0.15rem;
}
.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: 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: 34rem;
  margin-inline: 0;
}
[data-page="faq"] .faq-page-head__eyebrow {
  margin-bottom: 0.35rem;
}
/* Full content rail; FAQ column centers alone */
[data-page="faq"] .main .content > .faq-page {
  max-width: 1200px;
}
.faq-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
  align-items: start;
  justify-items: center;
}
.faq-main {
  min-width: 0;
  width: 100%;
  max-width: 44rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.faq-layout {
  max-width: none;
  margin-inline: 0;
  width: 100%;
}
.faq-shell {
  display: contents;
}
.faq-section {
  margin-bottom: 1.45rem;
  scroll-margin-top: calc(var(--topbar-h, 3.5rem) + 0.85rem);
}
.faq-section:last-of-type {
  margin-bottom: 0;
}
.faq-section h2 {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  margin: 0 0 0.55rem;
  padding: 0;
  border-radius: 0;
  color: var(--text);
  background: transparent;
  border: none;
  text-align: left;
}
.faq-list {
  display: grid;
  gap: 0.5rem;
}
.faq-item {
  padding: 0;
  overflow: hidden;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--accent-soft) 28%, var(--surface));
  border: 1.5px solid color-mix(in srgb, var(--ghost-border) 85%, transparent);
  box-shadow: none;
}
.faq-item.card::before {
  display: none;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.78rem 0.95rem;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  color: var(--text);
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 1.4rem;
  height: 1.4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent-soft) 60%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--ghost-border) 70%, transparent);
}
.faq-item[open] {
  background: color-mix(in srgb, var(--accent-soft) 40%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 35%, var(--ghost-border));
  box-shadow: var(--shadow-soft, 0 4px 14px rgba(40, 28, 36, 0.08));
}
.faq-item[open] summary {
  color: var(--accent-deep);
  padding-bottom: 0.45rem;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item__body {
  padding: 0 0.95rem 0.95rem;
  max-width: none;
  color: var(--text-on-soft);
  font-size: 0.88rem;
  line-height: 1.55;
  font-weight: 500;
}
.faq-item__body p {
  margin: 0;
}
.faq-item__body p + p,
.faq-item__body ul + p,
.faq-item__body ol + p,
.faq-item__body p + ul,
.faq-item__body p + ol {
  margin-top: 0.55rem;
}
.faq-item__body ul,
.faq-item__body ol {
  margin: 0.45rem 0 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.35rem;
}
.faq-item__body li {
  padding-left: 0.1rem;
}
.faq-item__body li::marker {
  color: var(--accent-deep);
}
.faq-footer {
  margin-top: 1.5rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  font-size: 0.88rem;
  text-align: center;
  max-width: none;
  background: color-mix(in srgb, var(--accent-soft) 28%, var(--surface));
  border: 1.5px solid color-mix(in srgb, var(--ghost-border) 80%, transparent);
}
.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;
  width: 1px;
  height: 1.25rem;
  background: var(--border-hi, color-mix(in srgb, var(--text-muted) 40%, transparent));
  margin: 0 0.15rem;
  align-self: center;
}
.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);
  /* Locked landscape preview frame - prevents jump while media loads. */
  aspect-ratio: 4 / 3;
  overflow: hidden;
  contain: layout paint;
}
.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;
  /* Do not contain: layout - that makes the thumb the abspos containing block and
     crops the video to the 4/3 slot instead of filling the whole card. */
  contain: none;
}
.product-card--video video.product-card__preview {
  position: absolute;
  inset: 0;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  /* 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: var(--accent);
  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;
}
/* Keep like contour on theme accent even over preview-foot chrome */
.product-card--has-preview .product-card__foot .vault-product__like--heart.request__action,
.product-card--has-preview .product-card__foot .vault-product__like--heart {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}
.product-card--has-preview .product-card__foot .vault-product__like--heart:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface));
}
.product-card--has-preview .product-card__foot .vault-product__like--heart.is-liked {
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border-color: var(--accent);
  color: var(--accent);
}
.product-card--has-preview .product-card__foot .vault-product__wishlist--btn.request__action,
.product-card--has-preview .product-card__foot .vault-product__wishlist--btn {
  border-color: color-mix(in srgb, var(--accent) 70%, #fff);
  color: color-mix(in srgb, var(--accent) 85%, #fff);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}
.product-card--has-preview .product-card__foot .vault-product__wishlist--btn:hover {
  background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface));
}
.product-card--has-preview .product-card__foot .vault-product__wishlist--btn.is-wishlisted {
  background: color-mix(in srgb, var(--accent-soft) 50%, var(--surface));
  border-color: var(--accent);
  color: var(--accent);
}
.product-card--has-preview .product-card__foot .vault-product__like--heart.is-liked svg {
  fill: var(--accent);
  stroke: var(--accent);
}
.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;
}
/* Multi-preview galleries: keep video inside the still-image shell height. */
.product-detail-lightbox__panel--preview:not(.product-detail-lightbox__panel--with-code)
  .product-detail-lightbox__media-shell:has(.product-detail-lightbox__gallery-dot) {
  display: flex;
  flex-direction: column;
}
.product-detail-lightbox__panel--preview:not(.product-detail-lightbox__panel--with-code)
  .product-detail-lightbox__media-shell:has(.product-detail-lightbox__gallery-dot)
  .product-detail-lightbox__media--preview {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.product-detail-lightbox__panel--preview:not(.product-detail-lightbox__panel--with-code)
  .product-detail-lightbox__media-shell:has(.product-detail-lightbox__gallery-dot)
  .product-detail-lightbox__preview-wrap {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: 100%;
}
.product-detail-lightbox__panel--preview:not(.product-detail-lightbox__panel--with-code)
  .product-detail-lightbox__media-shell:has(.product-detail-lightbox__gallery-dot)
  video.product-detail-lightbox__preview {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}
.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: stretch;
  gap: 0.45rem;
  margin: 0 auto 1.15rem;
  max-width: 1200px;
  width: 100%;
}
.profile-quick-actions__group {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.45rem;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}
.profile-quick-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex: 1 1 0;
  min-width: 0;
  padding-inline: 0.55rem;
  white-space: nowrap;
}
.profile-quick-actions .btn [data-icon],
.profile-quick-actions .btn [data-icon] svg,
.profile-quick-actions .btn .nav__art {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  line-height: 0;
  color: inherit;
}
.profile-quick-actions .btn .nav__art {
  background-color: currentColor;
}
.profile-quick-actions .btn svg {
  display: block;
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
}
.profile-quick-actions__out {
  width: 0.85rem;
  height: 0.85rem;
  margin-left: -0.1rem;
  opacity: 0.55;
  flex-shrink: 0;
}
.profile-quick-actions__out svg {
  width: 0.75rem;
  height: 0.75rem;
}
@media (max-width: 900px) {
  .profile-quick-actions__group {
    flex-wrap: wrap;
  }
  .profile-quick-actions .btn {
    flex: 1 1 calc(33.333% - 0.45rem);
  }
}
@media (max-width: 560px) {
  .profile-quick-actions .btn {
    flex: 1 1 calc(50% - 0.45rem);
  }
}

.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;
  }

  /* Gate is appended after footer; order keeps gate mid-page and footer at bottom. */
  html.ccj-mobile-gated .desktop-gate {
    display: flex;
    order: 1;
  }

  html.ccj-mobile-gated .main > .site-footer {
    order: 2;
    margin-top: auto;
  }
}

/* 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: #17131a;
  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;
  display: grid;
  place-items: center;
}
.pantry-tease-modal__emoji .nav__art {
  width: 2.4rem;
  height: 2.4rem;
  display: block;
  background-color: var(--accent);
}
.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%;
}
.pantry-tease-modal__demo-note {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* --- 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 {
  position: relative;
  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__close.request-modal__close {
  position: absolute;
  top: var(--dialog-dismiss-inset, 0.75rem);
  /* Clear the scroll track (Windows scrollbars sit on the panel edge). */
  right: calc(var(--dialog-dismiss-inset, 0.75rem) + 1.1rem);
  margin: 0;
  z-index: 2;
}
.legal-lightbox__scroll {
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.legal-lightbox__body.legal-doc {
  max-width: none;
  margin: 0;
  padding: calc(var(--dialog-dismiss-inset, 0.75rem) + 2.35rem)
    calc(var(--dialog-dismiss-inset, 0.75rem) + 2.25rem + 1.1rem)
    1.75rem
    1.25rem;
}
.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__close.request-modal__close {
  background: #2a242c;
  color: #f5b88a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
html[data-public-surface="1"] .legal-lightbox__close.request-modal__close:hover {
  color: #ffd9c0;
}
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: #f5b88a;
}

/* --- 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%, #17131a);
  --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;
  text-align: left;
}
.profile-unlock-mix .eyebrow {
  margin: 0 0 0.42rem;
  text-align: center;
}
.profile-unlock-mix__empty {
  margin: 0.24rem 0 0;
  font-size: 0.88rem;
  line-height: 1.4;
  text-align: left;
}
.profile-unlock-mix__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 1.02rem 1.26rem;
  margin-top: 0.24rem;
}
.profile-unlock-mix__pie-svg {
  width: 7.2rem;
  height: 7.2rem;
  flex-shrink: 0;
  display: block;
  overflow: visible;
}
.profile-unlock-mix__slice {
  cursor: pointer;
  transform-box: view-box;
  transform-origin: 60px 60px;
  transition: transform 0.18s ease;
}
.profile-unlock-mix__slice:hover,
.profile-unlock-mix__slice.is-hot {
  transform: scale(1.1);
}
.profile-unlock-mix__slice path,
.profile-unlock-mix__slice circle {
  shape-rendering: geometricPrecision;
}
.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;
  transition: color 0.15s ease, font-weight 0.15s ease;
}
.profile-unlock-mix__legend li.is-hot {
  font-weight: 800;
  color: var(--accent);
}
.profile-unlock-mix__legend li.is-hot .muted {
  color: var(--accent);
  font-weight: 750;
}
.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;
}

/* Monthly jar lottery */
dialog.lottery-modal {
  max-width: min(560px, calc(100vw - 1.25rem));
}
.lottery-modal__card {
  max-width: min(520px, calc(100vw - 1.25rem));
  text-align: center;
}
.lottery-modal__odds {
  margin: 0.85rem 0 1rem;
  padding: 0.9rem 1rem 1rem;
  border-radius: var(--r-md);
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent-soft) 70%, transparent), transparent 70%),
    color-mix(in srgb, var(--accent-soft) 28%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--ghost-border));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.lottery-modal__odds-label {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--accent-deep);
}
.lottery-modal__odds-value {
  margin: 0.2rem 0 0.15rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 7vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent-deep);
  letter-spacing: -0.02em;
}
.lottery-modal__odds-sub {
  margin: 0;
  font-size: 0.86rem;
}
.lottery-modal__rules {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  text-align: left;
}
.lottery-modal__rules li {
  padding: 0.55rem 0.75rem;
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--accent-soft) 35%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--ghost-border) 70%, transparent);
}
.lottery-modal__rules .lottery-modal__prize-line {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 40%, var(--ghost-border));
}
.lottery-modal__rules strong {
  color: var(--accent-deep);
  font-weight: 800;
}
.lottery-modal--won .lottery-modal__winner {
  color: var(--accent-deep);
}
.lottery-modal--lost .lottery-modal__winner {
  color: var(--text);
}
.lottery-modal__actions {
  display: flex;
  justify-content: center;
  margin-top: 0.35rem;
}
.lottery-modal__status {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
}
.lottery-modal__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}
.lottery-modal__spin-note {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
}
.lottery-modal__winner {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--accent-deep);
}
.lottery-wheel {
  position: relative;
  width: min(22.5rem, 86vw);
  height: min(22.5rem, 86vw);
  margin: 0 auto;
}
.lottery-wheel__pointer {
  position: absolute;
  top: -0.2rem;
  left: 50%;
  z-index: 3;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 0.65rem solid transparent;
  border-right: 0.65rem solid transparent;
  border-top: 1.1rem solid var(--accent-deep);
  filter: drop-shadow(0 2px 2px rgba(40, 28, 36, 0.25));
}
.lottery-wheel__disc {
  position: absolute;
  inset: 0.45rem;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--ghost-border) 80%, #fff);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 10px 28px rgba(40, 28, 36, 0.22);
  overflow: hidden;
  will-change: transform;
}
.lottery-wheel__hub {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 2.85rem;
  height: 2.85rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  background: var(--surface);
  border: 2px solid var(--accent-soft);
  box-shadow: var(--shadow-soft, 0 4px 14px rgba(40, 28, 36, 0.12));
  color: var(--accent-deep);
}
.lottery-wheel__hub [data-icon] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  line-height: 0;
}
.lottery-wheel__hub svg {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0;
  flex-shrink: 0;
}
.lottery-wheel__label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48%;
  transform: rotate(var(--a)) translate(0, -50%);
  transform-origin: left center;
  padding-left: 1.35rem;
  font-size: clamp(0.78rem, 2.4vw, 0.95rem);
  font-weight: 800;
  line-height: 1.15;
  color: #2d2228;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.admin-lottery__schedule {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.admin-lottery__schedule-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.admin-lottery__force-hint {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
}
.admin-lottery__test-panel {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--canvas-2) 70%, var(--surface));
}
.admin-lottery__test-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.admin-lottery__candidates {
  display: grid;
  gap: 0.35rem;
  max-height: 14rem;
  overflow: auto;
}
.admin-lottery__candidate {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  padding: 0.45rem 0.55rem;
  border-radius: var(--r-sm, 8px);
  border: 1px solid transparent;
  cursor: pointer;
}
.admin-lottery__candidate:hover {
  background: color-mix(in srgb, var(--accent-soft) 28%, transparent);
}
.admin-lottery__candidate strong {
  display: block;
}
.admin-lottery__candidate small {
  display: block;
  margin-top: 0.1rem;
}
.lottery-modal--early .lottery-modal__card {
  border-color: color-mix(in srgb, var(--secondary) 55%, var(--ghost-border));
  box-shadow:
    var(--shadow-raised),
    0 0 0 1px color-mix(in srgb, var(--secondary) 25%, transparent);
}
.lottery-modal--early .lottery-modal__odds {
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--secondary-soft) 75%, transparent), transparent 70%),
    color-mix(in srgb, var(--secondary-soft) 35%, var(--surface));
  border-color: color-mix(in srgb, var(--secondary) 45%, var(--ghost-border));
}
.lottery-modal--early .lottery-modal__odds-label,
.lottery-modal--early .lottery-modal__odds-value {
  color: var(--secondary-deep, #a895e8);
}
.lottery-modal--early .lottery-modal__rules li {
  background: color-mix(in srgb, var(--secondary-soft) 45%, var(--surface));
}
.lottery-modal--early .lottery-modal__rules .lottery-modal__prize-line {
  background: color-mix(in srgb, var(--secondary) 16%, var(--surface));
  border-color: color-mix(in srgb, var(--secondary) 40%, var(--ghost-border));
}
.lottery-modal--early .lottery-modal__winner {
  color: var(--secondary-deep, #a895e8);
}
@media (prefers-reduced-motion: reduce) {
  .lottery-wheel__disc {
    transition: none !important;
  }
}


.admin-mfa-form .field input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.35rem;
  letter-spacing: 0.28em;
  text-align: center;
}

/* UGC report link on suggestion footers (shared) */
.request__report {
  margin-left: auto;
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.request__report:hover {
  color: var(--ink);
}

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 100;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-hi);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  transform: translateY(-150%);
  transition: transform 0.15s ease;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.chip--clear {
  border-style: dashed;
}

/* Cookie / analytics banner: keep CTAs reachable on phones */
@media (max-width: 520px) {
  html:not([data-ccj-analytics])[data-ccj-need-consent] #ccj-analytics-consent {
    bottom: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    max-width: none;
  }
  html:not([data-ccj-analytics])[data-ccj-need-consent] body {
    padding-bottom: 7.5rem;
  }
  .analytics-consent__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0.7rem 0.85rem;
  }
  .analytics-consent__copy {
    font-size: 0.82rem;
    line-height: 1.35;
  }
}

/* Member Support form */
.support-form-card {
  max-width: 36rem;
  padding: 1.15rem 1.2rem;
}
.support-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.35rem;
}
.support-form__msg {
  margin: 0 0 0.75rem;
}
.support-form__msg.is-ok {
  color: var(--ok, #2f9e6a);
}

.support-nav-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #9a8f96;
  flex: 0 0 auto;
  margin-left: 0.05rem;
  align-self: center;
}
.support-nav-dot[data-online="1"] {
  background: #2f9e6a;
  box-shadow: 0 0 0 3px color-mix(in srgb, #2f9e6a 28%, transparent);
}
.nav__item[data-page="support"] .nav__item-label {
  flex: 0 1 auto;
}

.support-page .page-head,
.support-page .support-layout,
.admin-support-page .page-head,
.admin-support-page .admin-support-layout {
  max-width: 42rem;
  width: 100%;
  margin-inline: auto;
}
.support-page .page-head {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.support-page .page-head > div {
  display: block;
  text-align: center;
}
.support-page .page-head p {
  max-width: 34rem;
  margin-inline: auto;
}
.admin-support-page .page-head {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.admin-support-page .page-head > div {
  display: block;
  text-align: left;
}
.admin-support-page .page-head__actions {
  justify-content: flex-start;
  width: auto;
}
.support-page[data-support-view="thread"] .page-head {
  margin-bottom: 0.85rem;
}
.support-page[data-support-view="thread"] .support-toolbar {
  display: none;
}

.support-layout {
  display: grid;
  gap: 0.85rem;
}
.support-list-empty {
  margin: 0;
  padding: 2.5rem 1.25rem 2rem;
  justify-self: center;
  width: min(100%, 28rem);
  display: grid;
  justify-items: center;
  text-align: center;
}
.support-list-empty h3,
.support-list-empty p {
  text-align: center;
  max-width: 22rem;
}
.support-list-empty[hidden] {
  display: none;
}
.support-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.65rem 0.85rem;
  width: 100%;
  margin-bottom: 1.25rem;
}
.support-toolbar__spacer {
  min-width: 0;
}
.support-toolbar__actions {
  justify-self: end;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}
.support-toolbar__actions[hidden] {
  visibility: hidden;
  pointer-events: none;
}
.support-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0.28rem;
  justify-self: center;
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  border-radius: var(--r-pill, 999px);
  background: color-mix(in srgb, var(--canvas-2) 92%, transparent);
}
.support-tab {
  padding: 0.5rem 0.95rem;
  border: 0;
  border-radius: var(--r-pill, 999px);
  color: var(--text-muted);
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}
.support-tab:hover {
  color: var(--text);
}
.support-tab.is-on {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 32%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
}
.support-tab:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 2px;
}
.support-list-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 10rem;
  padding: 1.5rem 1rem;
}
.support-list-loading[hidden] {
  display: none;
}
.support-list-loading .btn__spinner {
  width: 1.75rem;
  height: 1.75rem;
}
.support-list-error {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  text-align: center;
}
.support-list-error[hidden] {
  display: none;
}
.support-survey {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--r-md, 12px);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  text-align: center;
  justify-items: center;
}
.support-survey__q {
  margin: 0;
  font-weight: 700;
}
.support-survey__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
}
.support-thread-list {
  display: grid;
  gap: 0.55rem;
}
.support-thread-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem 0.55rem;
  align-items: stretch;
  width: 100%;
  padding: 0.8rem 0.85rem;
  border-radius: var(--r-md, 12px);
  border: 1px solid var(--ghost-border, var(--border));
  background: var(--surface);
  color: var(--text);
  box-shadow: none;
}
.support-thread-card:hover,
.support-thread-card.is-active {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}
.support-thread-card__open {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  margin: 0;
  padding: 0.05rem 0.1rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.support-thread-card__remove {
  align-self: center;
  flex-shrink: 0;
}
.support-thread-card__title {
  margin: 0;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.support-thread-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.55rem;
  align-items: center;
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}
.support-thread-card__meta-left {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.support-thread-card__date {
  flex-shrink: 0;
  color: var(--text-muted);
}
.support-thread-card__preview {
  font-size: 0.92rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.support-thread-card.is-unread {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: var(--surface);
  box-shadow: inset 3px 0 0 var(--accent);
}
.support-thread-card.is-unread .support-thread-card__title {
  color: var(--text);
}
.support-thread-card.is-unread .support-thread-card__meta {
  color: var(--accent-deep);
}
.support-thread-card.is-unread .support-thread-card__preview,
.support-thread-card.is-unread .support-thread-card__date {
  color: var(--text-muted);
}
.support-thread-card__new {
  display: inline-flex;
  align-items: center;
  margin-right: 0.4rem;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--text-on-accent, #1a1210);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 0.1em;
}
.support-thread-card__unread-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
}

.support-thread {
  display: grid;
  gap: 0.75rem;
  width: 100%;
}
.support-thread__pane {
  display: grid;
  gap: 0.85rem;
  width: 100%;
  padding: 1.05rem 1.15rem 1.1rem;
  border-radius: var(--r-lg, 16px);
  border: 1px solid var(--ghost-border, var(--border));
  background: var(--surface);
  box-shadow: none;
}
.support-thread__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  width: 100%;
}
.support-thread__head {
  display: grid;
  gap: 0.25rem;
  text-align: left;
}
.support-thread__title-row {
  display: grid;
  gap: 0.2rem;
}
.support-thread__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}
.support-thread__meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.support-thread__meta-line {
  margin: 0;
  font-size: 0.88rem;
}

.support-thread-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 12rem;
  padding: 2rem 1rem;
  text-align: center;
}
.support-thread-loading[hidden] {
  display: none;
}
.support-thread-loading .btn__spinner {
  width: 1.75rem;
  height: 1.75rem;
}
.support-thread-loading p {
  margin: 0;
  font-size: 0.92rem;
}

.support-chat {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-items: stretch;
  min-height: 12rem;
  max-height: min(48vh, 22rem);
  overflow: auto;
  padding: 0.75rem 0.65rem;
  border-radius: var(--r-md, 12px);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: color-mix(in srgb, var(--canvas-2) 88%, transparent);
}
.support-msg {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  width: fit-content;
  max-width: 85%;
}
.support-msg--mine {
  align-self: flex-end;
  flex-direction: row;
  justify-content: flex-end;
}
.support-msg--cookie {
  align-self: flex-start;
}
.support-msg__avatar {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 22%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}
.support-msg__avatar.has-photo,
.support-msg__avatar--cookie {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--surface);
  font-size: 0;
  color: transparent;
}
.support-msg__avatar--cookie {
  background-image: url("/small_logo.png");
  background-size: 72%;
}
.support-bubble {
  flex: 1 1 auto;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  border: 1px solid transparent;
}
.support-bubble--mine {
  background: color-mix(in srgb, var(--accent, #c47a4a) 22%, var(--surface));
  border-color: color-mix(in srgb, var(--accent, #c47a4a) 36%, var(--border));
}
.support-bubble--cookie {
  background: var(--surface);
  border-color: color-mix(in srgb, var(--border) 90%, var(--accent) 10%);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink, #2a2228) 10%, transparent);
}
.support-bubble__who {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.7;
}
.support-bubble__body {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.4;
  font-size: 0.95rem;
}
.support-bubble__time {
  margin: 0.3rem 0 0;
  font-size: 0.72rem;
}

.support-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  align-items: start;
  padding-top: 0.15rem;
  border-top: 1px solid color-mix(in srgb, var(--ink, #2a2228) 10%, transparent);
  overflow: visible;
}
.support-composer > .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;
}
.support-composer .emoji-field {
  width: 100%;
  min-width: 0;
  overflow: visible;
}
.support-composer .emoji-field__input {
  width: 100%;
}
.support-composer__input,
.support-composer .emoji-field__textarea {
  width: 100%;
  min-height: 2.75rem;
  max-height: 8rem;
  resize: vertical;
  padding: 0.65rem 0.85rem 0.65rem 2.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md, 12px);
  font: inherit;
  background: var(--canvas-2);
  color: var(--text);
  outline: none;
}
.support-composer__input:focus,
.support-composer .emoji-field__textarea:focus {
  border-color: var(--accent);
}
.support-composer .btn {
  white-space: nowrap;
}

/* Emoji picker (Support + other pages that load app-extensions) */
.emoji-picker[hidden] {
  display: none !important;
}
.emoji-field {
  position: relative;
  overflow: visible;
}
.field:has(.emoji-field) {
  overflow: visible;
}
.emoji-field__input {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
}
.emoji-field__textarea {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding-left: 2.75rem;
}
.field .emoji-field {
  width: 100%;
}
.field .emoji-field__input {
  width: 100%;
}
.field .emoji-field__textarea {
  padding: 0.7rem 1rem 0.7rem 2.75rem;
}
.emoji-field__toggle {
  position: absolute;
  left: 0.35rem;
  top: 0.35rem;
  width: 2.15rem;
  height: 2.15rem;
  border: none;
  border-radius: var(--r-sm);
  background: var(--canvas-2);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 0.08rem;
  overflow: visible;
}
.emoji-field__toggle[aria-expanded="true"] {
  background: var(--accent-soft);
}
.emoji-picker {
  position: absolute;
  left: 0;
  right: auto;
  bottom: calc(100% + 0.35rem);
  z-index: 30;
  width: min(18rem, 100%);
  max-width: 100%;
  max-height: min(13.5rem, 38vh);
  padding: 0.5rem;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-raised);
}
.emoji-picker__btn {
  border: none;
  background: transparent;
  font-size: 1.05rem;
  line-height: 1.1;
  padding: 0.3rem 0.15rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}
.emoji-picker__btn:hover {
  background: var(--accent-soft);
}

/* Contests coming-soon gate (member) + empty admin shell */
.contests-boot {
  display: grid;
  place-items: center;
  min-height: 10rem;
  padding: 2rem 1rem;
}
.contests-gate {
  max-width: 28rem;
  margin: 0.5rem auto 0;
  padding: 1.35rem 1.25rem 1.25rem;
  text-align: center;
}
.contests-gate__art {
  display: grid;
  place-items: center;
  margin: 0 auto 0.85rem;
  width: 3.25rem;
  height: 3.25rem;
  color: var(--accent);
}
.contests-gate__art svg,
.contests-gate__art .nav__art {
  width: 2.5rem;
  height: 2.5rem;
}
.contests-gate__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.contests-gate__lead {
  margin: 0 0 0.75rem;
}
.contests-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}
.contests-admin-empty {
  max-width: 36rem;
  margin: 0.75rem 0 0;
  padding: 1rem 0;
}
.contests-hub {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.35rem;
}
.contests-toolbar {
  margin-bottom: 0.35rem;
}
.contests-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr));
  gap: 1rem;
  max-width: none;
  margin: 0;
  width: 100%;
}
.contests-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  grid-column: 1 / -1;
}
.contests-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-md, 12px);
  background: var(--surface);
  box-shadow: var(--shadow-raised, none);
  min-width: 0;
}
.contests-card--open {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}
.contests-card--voting {
  border-color: color-mix(in srgb, #6aa8ff 40%, var(--border));
}
.contests-card--closed {
  opacity: 0.94;
}
.contests-card__cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 0;
  background: color-mix(in srgb, var(--accent-soft) 40%, var(--canvas-2));
  cursor: pointer;
  overflow: hidden;
}
.contests-card__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.contests-card__cover-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: color-mix(in srgb, var(--accent) 70%, var(--text-muted));
}
.contests-card__cover-fallback svg {
  width: 2rem;
  height: 2rem;
}
.contests-card__cover .contests-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
}
.contests-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: var(--r-pill);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--product-badge-text);
  background: var(--product-badge-bg);
  border: 1px solid var(--product-badge-border);
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
}
.contests-card__badge--open {
  color: var(--product-badge-text);
  background: var(--product-badge-bg);
  border-color: var(--product-badge-border);
}
.contests-card__badge--voting {
  color: #8ec0ff;
  background: color-mix(in srgb, #6aa8ff 28%, var(--surface));
  border-color: color-mix(in srgb, #6aa8ff 44%, transparent);
}
.contests-card__badge--closed {
  color: var(--text-muted);
  background: color-mix(in srgb, var(--canvas-2) 88%, var(--surface));
  border-color: color-mix(in srgb, var(--ghost-border) 85%, transparent);
}
.contests-card__badge--waiting {
  color: #c9a227;
  background: color-mix(in srgb, #e8c547 22%, var(--surface));
  border-color: color-mix(in srgb, #c9a227 40%, transparent);
}
.contests-card__badge--results {
  color: #3d9a6a;
  background: color-mix(in srgb, #4caf7a 22%, var(--surface));
  border-color: color-mix(in srgb, #3d9a6a 40%, transparent);
}
.contest-announce-fields {
  display: grid;
  gap: 0.85rem;
}
.contest-announce-row {
  display: grid;
  gap: 0.35rem;
}
.contest-announce-credits-label {
  margin-top: 0.25rem;
  font-size: 0.85rem;
}
.contest-page-lead__wait {
  display: inline;
  color: var(--text-muted);
}
.contests-card__body {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem 0.85rem 0.9rem;
  flex: 1;
}
.contests-card__type {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}
.contests-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.25;
}
.contests-card__title-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.contests-card__title-btn:hover {
  color: var(--accent-deep, var(--accent));
}
.contests-card__deadline,
.contests-card__prize {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
}
.contest-countdown {
  color: var(--accent-deep, var(--accent));
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.contest-countdown--idle,
.contest-countdown--done {
  color: var(--text-muted);
  font-weight: 600;
}
#contest-page-lead .contest-countdown:not(.contest-countdown--idle):not(.contest-countdown--done) {
  font-weight: 700;
}
.contests-card__prize {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.contests-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid color-mix(in srgb, var(--ghost-border) 80%, transparent);
}
.contests-card__engage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  width: 100%;
}
.contests-card__engage .request__action--follow {
  height: 2.35rem;
  min-height: 2.35rem;
  box-sizing: border-box;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: var(--canvas);
}
.contests-card__engage .request__action--follow svg {
  stroke: var(--accent);
  color: var(--accent);
}
.contests-card__engage .request__action--follow:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-deep, var(--accent));
}
.contests-card__engage .request__action--follow.is-following {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-on-accent);
}
.contests-card__engage .request__action--follow.is-following svg {
  stroke: currentColor;
  color: currentColor;
}
.contests-card__engage .request__action--follow.is-following:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-on-accent);
}
.contests-card__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-inline-start: auto;
}
.contests-card__ctas .btn {
  height: 2.35rem;
  min-height: 2.35rem;
  box-sizing: border-box;
  padding-block: 0;
  display: inline-flex;
  align-items: center;
}
.contest-detail-modal {
  width: min(72rem, calc(100vw - 1.5rem));
  max-width: min(72rem, calc(100vw - 1.5rem));
}
.contest-detail-body {
  max-height: min(78vh, 48rem);
  overflow: auto;
  padding-bottom: 0.35rem;
}
.contest-page-toolbar__search-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.55rem 0.65rem;
  width: 100%;
}
.contest-page-toolbar__search-row .outfit-search {
  flex: 1 1 12rem;
  width: auto;
  max-width: 400px;
  align-self: stretch;
}
.contest-page-entry-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.45rem;
}
.contest-page-entry-actions .btn {
  box-sizing: border-box;
  height: auto;
  min-height: 100%;
  padding-block: 0;
  display: inline-flex;
  align-items: center;
  align-self: stretch;
}
.contest-page-entry-actions[hidden] {
  display: none;
}
.contest-detail-hero {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 1.15rem 1.35rem;
  margin: 0 0 1.1rem;
  width: 100%;
}
body[data-page="contest"] .page-head {
  margin-bottom: 0.55rem;
}
body[data-page="contest"] .page-head > div {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}
body[data-page="contest"] .page-head h1 {
  margin: 0;
}
body[data-page="contest"] .page-head .vault-counter {
  margin: 0;
}
body[data-page="contest"] .contest-detail-hero {
  margin-top: 0;
}
.contest-detail-hero--no-cover {
  display: block;
}
.contest-detail-hero[hidden] {
  display: none !important;
}
.contest-detail-cover {
  flex: 0 1 24rem;
  width: min(42%, 24rem);
  max-width: 24rem;
  margin: 0;
  border-radius: var(--r-md, 12px);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--canvas-2);
  border: 1px solid color-mix(in srgb, var(--ghost-border) 85%, transparent);
  align-self: start;
}
.contest-detail-cover[hidden] {
  display: none !important;
}
.contest-detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.contest-page-copy {
  flex: 1 1 16rem;
  min-width: 0;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  overflow: visible;
}
.contest-detail-hero--no-cover .contest-page-copy {
  max-width: 42rem;
}
.contest-page-lead {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-muted);
}
.contest-page-lead__meta {
  font-weight: 700;
  color: var(--text-muted);
}
.contest-page-lead[hidden] {
  display: none !important;
}
.contest-page-reqs {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  min-width: 0;
  overflow: visible;
}
.contest-page-reqs .contest-detail-sub {
  margin: 0.15rem 0 0;
}
.contest-page-reqs .contest-detail-sub:first-child,
.contest-page-reqs .contest-detail-sub-row:first-child .contest-detail-sub {
  margin-top: 0;
}
.contest-detail-sub-row {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
}
.contest-detail-sub-row .contest-detail-sub {
  margin: 0;
}
.contest-rules-info {
  display: inline-grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  flex: 0 0 auto;
  line-height: 0;
}
.contest-rules-info:hover,
.contest-rules-info[aria-expanded="true"] {
  color: var(--accent);
}
.contest-rules-info [data-icon] {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  line-height: 0;
}
.contest-rules-info svg {
  display: block;
  width: 100%;
  height: 100%;
}
.contest-rules-pop {
  position: absolute;
  left: 0;
  top: calc(100% + 0.4rem);
  z-index: 30;
  width: min(22rem, 78vw);
  padding: 0.75rem 0.85rem;
  border-radius: var(--r-md, 0.75rem);
  border: 1px solid var(--ghost-border);
  background: var(--surface-raised, var(--surface));
  box-shadow: var(--shadow-soft);
  color: var(--text);
}
.contest-rules-pop[hidden] {
  display: none !important;
}
.contest-rules-pop p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  font-weight: 500;
  color: var(--text-muted);
}
.contest-page-filters #contest-back {
  text-decoration: none;
  gap: 0.25rem;
}
.contest-page-filters #contest-back .nav__art {
  width: 1rem;
  height: 1rem;
  color: currentColor;
}
.contest-gallery-grid.outfit-grid {
  margin-top: 0.85rem;
  overflow: visible;
}
.contest-detail-blurb {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.45;
  font-size: 0.92rem;
  color: var(--text);
  max-width: 80%;
}
.contest-detail-sub {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-transform: none;
  color: var(--text);
}
.contest-detail-prizes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0;
  margin: 0;
  max-width: 28rem;
}
.contest-detail-prizes > div {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.92rem;
  line-height: 1.35;
}
.contest-detail-prizes > div:not(:last-child)::after {
  content: "·";
  margin-inline: 0.65rem;
  color: var(--text-muted);
  font-weight: 700;
  line-height: 1;
  align-self: center;
}
.contest-detail-prizes dt {
  margin: 0;
  padding: 0;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.contest-detail-prizes dd {
  margin: 0;
  min-width: 0;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent-deep, var(--accent));
}
.contest-detail-prizes dd::before,
.contest-detail-reqs dd::before {
  content: "-";
  margin-inline-end: 0.35rem;
  color: var(--text-muted);
  font-weight: 700;
}
.contest-detail-reqs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0;
  margin: 0 0 0.85rem;
  max-width: 28rem;
}
.contest-detail-reqs > div {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 0.92rem;
  line-height: 1.35;
}
.contest-detail-reqs > div:not(:last-child)::after {
  content: "·";
  margin-inline: 0.65rem;
  color: var(--text-muted);
  font-weight: 700;
  line-height: 1;
  align-self: center;
}
.contest-detail-reqs dt {
  margin: 0;
  padding: 0;
  font-weight: 700;
  color: var(--text-muted);
}
.contest-detail-reqs dd {
  margin: 0;
  min-width: 0;
  font-weight: 800;
  color: var(--accent-deep, var(--accent));
}
.contest-detail-reqs dd.is-all {
  font-weight: 700;
  color: var(--text-muted);
}
@media (max-width: 820px) {
  .contest-detail-hero:not(.contest-detail-hero--no-cover) {
    flex-direction: column;
  }
  .contest-detail-cover {
    width: 100%;
    max-width: 100%;
    flex: none;
    max-height: 14rem;
  }
}
.admin-contest-cover-preview {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.55rem;
  max-width: 18rem;
}
.admin-contest-cover-preview img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--r-sm, 8px);
  border: 1px solid var(--border);
}
.contest-submit-form {
  display: grid;
  gap: 0.75rem;
}
.contest-submit-preview {
  border-radius: var(--r-md, 12px);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #f5f4f7 0%, #e3e1e8 100%);
  max-width: 12rem;
  margin-inline: auto;
}
html[data-scheme="dark"] .contest-submit-preview {
  background: linear-gradient(180deg, #0c0e15 0%, #3f3846 100%);
}
.contest-submit-preview img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 310 / 650;
  object-fit: cover;
}
.contest-gallery-modal {
  width: min(72rem, calc(100vw - 1.5rem));
  max-width: min(72rem, calc(100vw - 1.5rem));
}
.contest-gallery-body {
  max-height: min(78vh, 44rem);
  overflow: auto;
  padding-bottom: 0.35rem;
}
.contest-subs-modal {
  width: min(44rem, calc(100vw - 1.5rem));
  max-width: min(44rem, calc(100vw - 1.5rem));
}
.contest-subs-list {
  display: grid;
  gap: 0.85rem;
  max-height: min(68vh, 36rem);
  overflow: auto;
  padding: 0.15rem 0.1rem 0.35rem;
  margin: 0 0 0.75rem;
}
.contest-subs-empty {
  margin: 0.5rem 0;
}
.contest-subs-card {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md, 12px);
  background: color-mix(in srgb, var(--surface) 92%, var(--bg));
}
.contest-subs-card__thumb {
  display: block;
  width: 5.5rem;
  padding: 0;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-sm, 8px);
  overflow: hidden;
  background: var(--bg);
  cursor: pointer;
  aspect-ratio: 310 / 650;
}
.contest-subs-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contest-subs-card__thumb--empty {
  cursor: default;
  background: color-mix(in srgb, var(--border) 35%, var(--surface));
}
.contest-subs-card__body {
  min-width: 0;
  display: grid;
  gap: 0.45rem;
  align-content: start;
}
.contest-subs-card__title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}
.contest-subs-card__author {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
}
.contest-subs-card__items {
  margin: 0;
  padding: 0.55rem 0.65rem;
  border-radius: var(--r-sm, 8px);
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-body, inherit);
  font-size: 0.82rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 9rem;
  overflow: auto;
}
.contest-subs-card__empty-items {
  margin: 0;
  font-size: 0.85rem;
}
.contest-subs-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.contest-gallery-card {
  cursor: default;
}
.contest-gallery-card.is-voted {
  /* Inset so overflow:hidden on .outfit-card / .card does not clip it. */
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: -2px;
}
.contest-gallery-card.is-winner .contest-gallery-card__author,
.contest-gallery-card.is-winner .contest-gallery-card__author-link,
.contest-gallery-card.is-winner .contest-gallery-card__author-link strong,
.contest-gallery-card.is-winner .contest-gallery-card__place {
  color: var(--accent);
}
.contest-gallery-card.is-winner .contest-gallery-card__author-link:hover,
.contest-gallery-card.is-winner .contest-gallery-card__author-link:hover strong {
  color: var(--accent-deep, var(--accent));
}
/* Shell keeps Cookie sparks / place glow outside card overflow. */
.contest-gallery-card-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: visible;
  border-radius: var(--r-lg, 1rem);
}
.contest-gallery-card-shell > .contest-gallery-card {
  width: 100%;
  height: 100%;
}
.contest-gallery-card-shell--cookie,
.contest-gallery-card-shell--place-1,
.contest-gallery-card-shell--place-2,
.contest-gallery-card-shell--place-3 {
  z-index: 1;
}
.contest-gallery-card-shell--cookie:hover,
.contest-gallery-card-shell--cookie:focus-within,
.contest-gallery-card-shell--place-1:hover,
.contest-gallery-card-shell--place-1:focus-within,
.contest-gallery-card-shell--place-2:hover,
.contest-gallery-card-shell--place-2:focus-within,
.contest-gallery-card-shell--place-3:hover,
.contest-gallery-card-shell--place-3:focus-within {
  z-index: 3;
}
/* Soft theme glow: strongest for 1st, softer for 2nd, softest for 3rd. Cookie uses sparks only. */
.contest-gallery-card-shell--place-1 {
  filter:
    drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 43%, transparent))
    drop-shadow(0 0 22px color-mix(in srgb, var(--accent) 25%, transparent));
}
.contest-gallery-card-shell--place-2 {
  filter:
    drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 33%, transparent))
    drop-shadow(0 0 16px color-mix(in srgb, var(--accent) 17%, transparent));
}
.contest-gallery-card-shell--place-3 {
  filter:
    drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 24%, transparent))
    drop-shadow(0 0 12px color-mix(in srgb, var(--accent) 11%, transparent));
}
@media (prefers-reduced-motion: reduce) {
  .contest-gallery-card-shell--place-1 {
    filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 30%, transparent));
  }
  .contest-gallery-card-shell--place-2 {
    filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 23%, transparent));
  }
  .contest-gallery-card-shell--place-3 {
    filter: drop-shadow(0 0 4px color-mix(in srgb, var(--accent) 17%, transparent));
  }
}
.contest-gallery-card-shell--cookie > .contest-gallery-card__sparks,
.contest-gallery-card-shell--cookie > .remaster-sparks {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  overflow: visible;
  border-radius: var(--r-lg, 1rem);
}
.contest-gallery-card__winner--cookie {
  color: var(--accent);
}
.contest-gallery-card .outfit-card__title {
  border-top-color: var(--accent);
}
.contest-gallery-card__author {
  margin: 0;
  padding: 0 0.85rem 0.9rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}
.contest-gallery-card__author-link {
  font: inherit;
  font-weight: 700;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.contest-gallery-card__author-link:hover {
  color: var(--accent-deep, var(--accent));
}
.contest-gallery-card__author-link strong {
  font-weight: 700;
}
.contest-gallery-card__manage {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  padding: 0 0.65rem 0.75rem;
}
.contest-gallery-card__manage .btn {
  min-height: 1.85rem;
  height: 1.85rem;
  padding-inline: 0.7rem;
  font-size: 0.78rem;
}
.outfit-lightbox--media-only .outfit-lightbox__frame {
  width: min(560px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.outfit-lightbox--media-only .outfit-lightbox__panel {
  width: min(420px, 100%);
  flex: 0 1 auto;
  justify-self: unset;
}
.outfit-lightbox--media-only .outfit-lightbox__layout {
  grid-template-columns: 1fr;
}
.outfit-lightbox--media-only .outfit-lightbox__media {
  background: transparent;
}
.outfit-lightbox--media-only .outfit-lightbox__figure {
  position: relative;
  padding: 0;
  background: transparent;
  border-radius: 0;
  max-height: min(78vh, 720px);
  height: auto;
}
.outfit-lightbox--media-only .outfit-lightbox__img {
  border-radius: var(--r-md);
  filter: none;
  max-height: min(78vh, 720px);
}
html[data-scheme="dark"] .outfit-lightbox--media-only .outfit-lightbox__figure {
  background: transparent;
}
html[data-scheme="dark"] .outfit-lightbox--media-only .outfit-lightbox__img {
  filter: none;
}
.contest-entry-lightbox__vote {
  top: 0.55rem;
  right: 0.55rem;
  left: auto;
  z-index: 5;
  pointer-events: none;
}
.contest-entry-lightbox__vote .contest-gallery-card__vote {
  pointer-events: none;
  cursor: default;
}
.contest-entry-lightbox__vote #contest-entry-lightbox-votes {
  pointer-events: none;
  cursor: default;
}
.contest-entry-lightbox__vote #contest-entry-lightbox-votes.is-voters-open {
  pointer-events: auto;
  cursor: pointer;
}
.contest-gallery-card__count--static {
  pointer-events: none;
  cursor: default;
}
.outfit-lightbox--media-only .outfit-lightbox__credit-link {
  font: inherit;
  font-style: italic;
  font-weight: 500;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.outfit-lightbox--media-only .outfit-lightbox__credit-link:hover {
  color: var(--accent-deep, var(--accent));
}
.outfit-lightbox--media-only .outfit-lightbox__credit-link strong {
  font-weight: 500;
}
.contest-gallery-card__winner {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 4;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: #c9972e;
  box-shadow: var(--shadow-soft);
  pointer-events: none;
}
.contest-gallery-card__winner svg {
  width: 0.95rem;
  height: 0.95rem;
}
.contest-gallery-card--mine .contest-gallery-card__vote:disabled {
  opacity: 0.45;
  cursor: default;
}
/* Unvoted: outline only. Voted: theme accent fill. Hover soft-fills + lifts. */
.contest-gallery-card__vote {
  color: var(--accent);
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.18s var(--ease);
}
.contest-gallery-card__vote:hover:not(:disabled):not([aria-disabled="true"]) {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.06);
}
.contest-gallery-card__vote svg,
.contest-gallery-card__vote svg path {
  fill: none !important;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition: fill 0.18s var(--ease), stroke 0.18s var(--ease);
}
.contest-gallery-card__vote:hover:not(:disabled):not([aria-disabled="true"]) svg,
.contest-gallery-card__vote:hover:not(:disabled):not([aria-disabled="true"]) svg path {
  fill: color-mix(in srgb, var(--accent) 40%, transparent) !important;
  stroke: currentColor;
}
.contest-gallery-card__vote.is-favorited {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--surface);
}
.contest-gallery-card__vote.is-favorited:hover:not(:disabled):not([aria-disabled="true"]) {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: scale(1.06);
}
.contest-gallery-card__vote.is-favorited svg,
.contest-gallery-card__vote.is-favorited svg path {
  fill: var(--accent) !important;
  stroke: none;
  color: var(--accent);
}
.contest-gallery-card__vote.is-favorited:hover:not(:disabled):not([aria-disabled="true"]) svg,
.contest-gallery-card__vote.is-favorited:hover:not(:disabled):not([aria-disabled="true"]) svg path {
  fill: var(--accent) !important;
  stroke: none;
}

/* DRAFT: Stagecraft extension sign-in — Connected devices in the licence dialog. */
.stagecraft-devices { margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--line, rgba(255,255,255,.1)); }
.stagecraft-devices[hidden] { display: none; }
.stagecraft-devices__title { margin: 0 0 .25rem; font-size: 1rem; }
.stagecraft-devices__hint { margin: 0 0 .6rem; font-size: .85rem; }
.stagecraft-devices__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.stagecraft-devices__row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
