/*
 * Stage — how a list presents itself to visitors.
 * Loaded after components.css on public pages and in the editor preview.
 *
 * One composition, three layouts:
 *   Sheet      the title leads; the action sits on a card beside it (below it on phones).
 *   Cover      the title is a poster: a full-bleed panel in the page's primary color, wallpaper, or header photo.
 *   Editorial  type-led and ruled: a large title, hairlines, numbered choices.
 * Phones and the editor preview always use the phone composition, so the preview is the truth.
 */

.jl-public {
  --stage-gutter: 1.35rem;
  --stage-max: 76rem;
  --stage-title: clamp(2rem, 8.5vw, 2.6rem);
  --stage-radius: 22px;
  --stage-field-h: 52px;
}

.jl-public > .jl-public__scroll {
  container-type: inline-size;
  container-name: stage;
}

.jl-public--preview {
  --stage-gutter: 1.1rem;
  --stage-title: 1.65rem;
  --stage-field-h: 46px;
}

.jl-public.jl-public--radius-sharp {
  --stage-radius: 6px;
}

/* ———————————————————————————————————————————
   Lead: byline, title, description, countdown, social proof.
   ——————————————————————————————————————————— */

.jl-public__lead {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.jl-public .jl-public__identity-body {
  padding-top: 1.25rem;
}

.jl-public .jl-public__byline {
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.jl-public .jl-public__byline .jl-public__logo {
  width: 40px;
  height: 40px;
}

.jl-public .jl-public__owner {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.jl-public .jl-public__title {
  font-size: var(--stage-title);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 0.6rem;
  text-wrap: balance;
}

.jl-public .jl-public__tagline {
  font-size: 1.0625rem;
  line-height: 1.45;
  max-width: 34rem;
  text-wrap: pretty;
}

.jl-public--preview .jl-public__tagline {
  font-size: 0.9375rem;
}

/* Countdown: tabular digits with whole-word units. */
.jl-public .jl-public__countdown {
  margin-top: 1.25rem;
}

.jl-public .jl-public__countdown-label {
  font-style: normal;
  font-weight: 600;
}

.jl-public .jl-public__countdown-grid {
  gap: 0.5rem;
}

.jl-public .jl-public__countdown-unit {
  min-width: 3.25rem;
  padding: 0.55rem 0.6rem 0.45rem;
  border-radius: 12px;
  background: color-mix(in srgb, currentColor 8%, transparent);
}

.jl-public--radius-sharp .jl-public__countdown-unit {
  border-radius: 4px;
}

.jl-public .jl-public__countdown-num {
  font-size: 1.6rem;
}

.jl-public--preview .jl-public__countdown-num {
  font-size: 1.2rem;
}

.jl-public--preview .jl-public__countdown-unit {
  min-width: 2.6rem;
  padding: 0.4rem 0.45rem 0.35rem;
}

/* Social proof on a waitlist: the count, then faces. */
.jl-public__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 1.1rem var(--jl-public-gutter) 0;
}

.jl-public__proof:not(:has(> :not([hidden]))) {
  display: none;
}

.jl-public__proof .jl-public__context,
.jl-public__proof .jl-public__faces {
  margin: 0;
}

.jl-public__proof .jl-public__context {
  font-size: 0.9375rem;
}

/* Shared wishlists: real faces of everyone adding gifts, like a waitlist's crowd. */
.jl-public__face--photo {
  width: 2rem;
  height: 2rem;
  overflow: hidden;
}

.jl-public__face--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jl-public__crew .jl-public__context {
  font-weight: 600;
}

.jl-public__proof .jl-public__count {
  font-size: 1.125rem;
}

/* ———————————————————————————————————————————
   Sheet: the one place you act.
   ——————————————————————————————————————————— */

.jl-public .jl-public__sheet {
  border-radius: var(--stage-radius);
  gap: 1rem;
}

.jl-public--density-roomy .jl-public__sheet {
  padding: 1.35rem 1.25rem;
}

.jl-public .jl-btn--primary.jl-btn--block,
.jl-public .jl-step__actions .jl-btn {
  min-height: var(--stage-field-h);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
}

.jl-public--radius-sharp .jl-btn--primary.jl-btn--block,
.jl-public--radius-sharp .jl-step__actions .jl-btn {
  border-radius: 6px;
}

/* Grouped fields: one container, inline labels, a hairline between rows. */
.jl-fieldset {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--jl-field-border, var(--jl-border));
  border-radius: calc(var(--stage-radius) * 0.7);
  background: var(--jl-field-bg, var(--jl-surface));
  overflow: hidden;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.jl-fieldset:focus-within {
  border-color: var(--jl-theme-primary, var(--jl-cyan));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--jl-theme-primary, var(--jl-cyan)) 22%, transparent);
}

.jl-public .jl-fieldset > .jl-field {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem;
  min-height: var(--stage-field-h);
  margin: 0;
  padding: 0 1rem;
}

.jl-public .jl-fieldset > .jl-field[hidden] {
  display: none;
}

.jl-public .jl-fieldset > .jl-field:not([hidden]) ~ .jl-field:not([hidden]) {
  border-top: 1px solid var(--jl-field-border, var(--jl-border));
}

.jl-public .jl-fieldset > .jl-field > .jl-label {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: inherit;
  text-shadow: none;
}

.jl-public .jl-public__sheet .jl-fieldset .jl-input,
.jl-public .jl-public__sheet .jl-fieldset .jl-input:hover,
.jl-public .jl-public__sheet .jl-fieldset .jl-input:focus {
  min-height: calc(var(--stage-field-h) - 2px);
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  font-size: 1rem;
}

.jl-public .jl-form-consent {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  text-align: center;
}

.jl-public .jl-step__lead {
  margin: 0;
  font-size: 0.9375rem;
}

.jl-public .jl-step__actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
}

.jl-public .jl-step__actions .jl-btn--ghost {
  padding-inline: 1.25rem;
}

/* After joining: a ticket with your place in line. */
.jl-ticket {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1.5rem 1rem 1.35rem;
  border: 1px dashed var(--jl-field-border, var(--jl-border));
  border-radius: calc(var(--stage-radius) * 0.7);
  text-align: center;
}

.jl-ticket p {
  margin: 0;
  color: inherit;
}

.jl-ticket__label {
  font-size: 0.9375rem;
  font-weight: 500;
  opacity: 0.8;
}

.jl-ticket__number {
  font-size: clamp(3rem, 14cqi, 5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--jl-theme-primary, var(--jl-cyan-accessible)) !important;
}

.jl-ticket__body {
  font-size: var(--jl-caption);
  opacity: 0.75;
}

/* Wantlist question reads as the headline of the sheet. */
.jl-public .jl-public__question {
  font-size: 1.375rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.jl-public--preview .jl-public__question {
  font-size: 1.15rem;
}

/* ———————————————————————————————————————————
   Layout: Cover — the lead is a poster.
   ——————————————————————————————————————————— */

.jl-public--layout-cover > .jl-public__scroll {
  position: relative;
}

.jl-public.jl-public--layout-cover,
.jl-public--phone.jl-public--layout-cover:not(.jl-public--preview) {
  padding-top: 0;
}

.jl-public--layout-cover .jl-top-chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  padding-top: 0.75rem;
}

.jl-public--layout-cover .jl-public__main {
  padding-top: 0;
}

.jl-public--layout-cover .jl-public__lead {
  justify-content: flex-end;
  min-height: min(68vh, 34rem);
  padding: 4.5rem 0 1.75rem;
  background: var(--jl-theme-primary, var(--jl-ink));
  color: var(--jl-theme-band-text, var(--jl-theme-primary-text, #ffffff));
  border-radius: 0 0 var(--stage-radius) var(--stage-radius);
  overflow: hidden;
  isolation: isolate;
}

.jl-public--preview.jl-public--layout-cover .jl-public__lead {
  min-height: 21rem;
  padding-top: 3.5rem;
}

.jl-public--layout-cover .jl-public__lead .jl-public__identity {
  position: static;
  background: transparent !important;
  color: inherit !important;
}

.jl-public--layout-cover .jl-public__lead :is(.jl-public__title, .jl-public__tagline, .jl-public__owner, .jl-public__context, .jl-public__countdown, .jl-public__countdown-label) {
  color: inherit !important;
}

.jl-public--layout-cover .jl-public__lead .jl-public__count {
  color: inherit !important;
}

.jl-public--layout-cover .jl-public__title {
  font-size: calc(var(--stage-title) * 1.22);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

/* Header photo fills the poster, with a flat scrim for legible type. */
.jl-public--layout-cover .jl-public__lead .jl-public__header:not([hidden]) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  border-radius: 0;
  margin: 0;
}

.jl-public--layout-cover .jl-public__lead:has(.jl-public__header:not([hidden])) {
  color: #ffffff;
}

.jl-public--layout-cover .jl-public__lead:has(.jl-public__header:not([hidden]))::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 18, 32, 0.42);
}

/* On a wallpaper the photo is the poster: no panel fill. */
.jl-public--layout-cover.jl-public--has-bg-img .jl-public__lead {
  background: transparent;
  color: var(--jl-live-text, #ffffff);
}

.jl-public--layout-cover .jl-public__sheet {
  margin-top: 1.5rem;
}

/* ———————————————————————————————————————————
   Layout: Editorial — type-led, ruled, numbered.
   ——————————————————————————————————————————— */

.jl-public--layout-editorial .jl-public__title {
  font-weight: 600;
  font-size: calc(var(--stage-title) * 1.12);
  letter-spacing: -0.05em;
  line-height: 1;
}

.jl-public--layout-editorial .jl-public__identity-body {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  margin-inline: var(--jl-public-gutter);
  padding-inline: 0;
}

.jl-public--layout-editorial .jl-public__byline {
  flex-direction: row-reverse;
  justify-content: space-between;
}

.jl-public--layout-editorial .jl-public__sheet {
  box-shadow: none;
}

.jl-public--layout-editorial .jl-options {
  counter-reset: stage-option;
}

.jl-public--layout-editorial .jl-option {
  counter-increment: stage-option;
}

.jl-public--layout-editorial .jl-option__label::before {
  content: counter(stage-option, decimal-leading-zero);
  margin-right: 0.6rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  opacity: 0.55;
}

.jl-public--layout-editorial .jl-wish-list:not(.jl-wish-list--mock) {
  counter-reset: stage-item;
}

.jl-public--layout-editorial .jl-wish-list:not(.jl-wish-list--mock) > .jl-wish-item:not([hidden]) {
  counter-increment: stage-item;
}

.jl-public--layout-editorial .jl-wish-list:not(.jl-wish-list--mock) > .jl-wish-item .jl-wish-item__title::before {
  content: counter(stage-item, decimal-leading-zero) "  ";
  white-space: pre;
  font-size: 0.8125em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  opacity: 0.55;
}

/* ———————————————————————————————————————————
   Larger screens. The page fills the window; no floating column.
   ——————————————————————————————————————————— */

@media (min-width: 640px) {
  body:has(.jl-public--phone:not(.jl-public--preview)),
  body.jl-public-body:has(.jl-public--has-bg-img:not(.jl-public--preview)) {
    background: var(--jl-bg);
  }

  .jl-public--phone:not(.jl-public--preview),
  .jl-public--phone.jl-public--has-bg-img:not(.jl-public--preview) {
    max-width: none;
    width: 100%;
    min-height: 100dvh;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    padding-top: 0.5rem;
    overflow: visible;
  }

  .jl-public--has-bg-img:not(.jl-public--preview) > .jl-public__wallpaper {
    position: fixed !important;
    inset: 0;
    border-radius: 0 !important;
  }

  .jl-public--phone:not(.jl-public--preview) .jl-top-chrome,
  .jl-public--phone:not(.jl-public--preview) .jl-public__main,
  .jl-public--phone:not(.jl-public--preview) .jl-public__end {
    width: 100%;
    max-width: 40rem;
    margin-inline: auto;
  }

  .jl-public--phone:not(.jl-public--preview) {
    --stage-title: clamp(2.5rem, 6vw, 3.25rem);
  }
}

@container stage (min-width: 1000px) {
  .jl-public__scroll > .jl-top-chrome,
  .jl-public__scroll > .jl-public__main,
  .jl-public__scroll > .jl-public__end {
    max-width: var(--stage-max) !important;
    padding-inline: 2.5rem;
  }

  .jl-public__main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 30rem);
    column-gap: clamp(3rem, 7vw, 7.5rem);
    align-items: start;
    align-content: center;
    min-height: calc(100dvh - 9rem);
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  .jl-public__main > * {
    min-width: 0;
  }

  .jl-public__lead {
    position: sticky;
    top: 2rem;
    --jl-public-gutter: 0px;
  }

  .jl-public__lead .jl-public__identity-body {
    padding-inline: 0;
  }

  .jl-public__lead .jl-public__title {
    font-size: clamp(3rem, 5vw, 4.75rem);
    line-height: 1;
    letter-spacing: -0.045em;
  }

  .jl-public__lead .jl-public__tagline {
    font-size: 1.25rem;
  }

  .jl-public__main > .jl-public__sheet {
    margin: 0;
    max-width: none;
  }

  /* Wishlists are browsed: the items take the wide column as a gallery. */
  .jl-public__main--wishlist {
    grid-template-columns: minmax(18rem, 24rem) minmax(0, 1fr);
  }

  .jl-public__main--wishlist .jl-public__lead .jl-public__title {
    font-size: clamp(2.5rem, 3.6vw, 3.5rem);
  }

  .jl-public__main--wishlist .jl-wish-list:not(.jl-wish-list--mock) {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
    gap: 1rem;
  }

  .jl-public__main--wishlist .jl-wish-list:not(.jl-wish-list--mock) > .jl-wish-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.6rem 0.6rem 0.85rem;
  }

  .jl-public__main--wishlist .jl-wish-list:not(.jl-wish-list--mock) .jl-wish-item__media {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .jl-public__main--wishlist .jl-wish-list:not(.jl-wish-list--mock) .jl-wish-item__body {
    padding-inline: 0.25rem;
  }

  .jl-public__main--wishlist .jl-wish-list:not(.jl-wish-list--mock) .jl-wish-item__aside {
    align-items: stretch;
    padding-inline: 0.25rem;
  }

  .jl-public__scroll > .jl-public__end {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-block: 1.5rem 2rem;
  }

  .jl-public__end .jl-public__join-footer {
    width: auto;
    max-width: none;
  }

  .jl-public__end .jl-public__legal-bar {
    width: auto;
  }

  /* Cover on wide screens: the poster holds the left half, full height. */
  .jl-public--layout-cover .jl-public__scroll > .jl-public__main {
    max-width: none !important;
    min-height: 0;
    align-content: start;
    padding: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 0;
  }

  .jl-public--layout-cover .jl-public__lead {
    top: 0;
    height: 100dvh;
    min-height: 0;
    padding: 6rem clamp(2.5rem, 5vw, 5rem) 3.5rem;
    border-radius: 0;
    --jl-public-gutter: 0px;
  }

  .jl-public--layout-cover .jl-public__lead .jl-public__title {
    font-size: clamp(3.5rem, 6.5vw, 6.5rem);
  }

  .jl-public--layout-cover .jl-public__main > .jl-public__sheet {
    width: min(100% - 5rem, 30rem);
    margin: 0 auto;
    /* Sit on the same baseline as the title block instead of floating at the top. */
    align-self: end;
    margin-bottom: 3.5rem;
  }

  .jl-public--layout-cover .jl-top-chrome {
    max-width: none !important;
  }

  .jl-public--layout-cover .jl-public__scroll > .jl-public__end {
    margin-left: 50%;
    max-width: 50% !important;
    flex-direction: column;
  }

  /* Editorial on wide screens: a narrow title column and a ruled content column. */
  .jl-public--layout-editorial .jl-public__main {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }

  .jl-public--layout-editorial .jl-public__lead .jl-public__identity-body {
    margin-inline: 0;
  }

  .jl-public--layout-editorial .jl-public__lead .jl-public__title {
    font-size: clamp(3.25rem, 6vw, 6rem);
  }

}

@media (prefers-reduced-motion: reduce) {
  .jl-fieldset {
    transition: none;
  }
}

.jl-public--preview .jl-fieldset > .jl-field {
  grid-template-columns: 3.4rem minmax(0, 1fr);
  padding: 0 0.75rem;
}

.jl-public--preview .jl-fieldset > .jl-field > .jl-label,
.jl-public--preview .jl-public__sheet .jl-fieldset .jl-input {
  font-size: 0.875rem;
}

/* ———————————————————————————————————————————
   Hub (/w/{handle}): who you are, then every list as a small poster in its own look.
   Same composition as a list page: identity leads, the content follows.
   ——————————————————————————————————————————— */

.jl-hub {
  text-align: left;
}

@media (min-width: 640px) {
  body:has(.jl-hub:not(.jl-hub--preview)) {
    background: var(--jl-bg);
  }

  .jl-hub {
    max-width: none;
    margin: 0;
    min-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
    background: var(--jl-bg);
  }

  .jl-hub .jl-top-chrome,
  .jl-hub .jl-public__end {
    width: 100%;
    max-width: 72rem;
    margin-inline: auto;
  }
}

.jl-hubx {
  display: grid;
  gap: 2rem;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 1.35rem 1rem;
}

.jl-hubx__who {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.jl-hubx__avatar {
  width: 5.5rem;
  height: 5.5rem;
  margin-bottom: 0.5rem;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(11, 18, 32, 0.08);
}

.jl-hubx__avatar--mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--jl-info);
  color: var(--jl-ink);
  font-size: 2rem;
  font-weight: 600;
}

.jl-hubx__name {
  margin: 0;
  font-size: clamp(2.25rem, 9vw, 3rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.jl-hubx__bio {
  margin: 0.25rem 0 0;
  max-width: 30rem;
  font-size: 1.0625rem;
  color: var(--jl-text-muted);
}

.jl-hubx__count {
  margin: 0;
  font-size: var(--jl-caption);
  color: var(--jl-text-muted);
}

.jl-hubx__lists {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jl-hubx-card {
  --card-bg: var(--jl-surface);
  --card-text: var(--jl-text);
  display: flex;
  flex-direction: column;
  min-height: 11rem;
  overflow: hidden;
  border-radius: 22px;
  background: var(--jl-surface);
  color: var(--jl-text);
  box-shadow: 0 0 0 1px var(--jl-border);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.jl-hubx-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--jl-border), var(--jl-shadow);
  color: var(--jl-text);
  text-decoration: none;
}

.jl-hubx-card:focus-visible {
  outline: 2px solid var(--jl-cyan);
  outline-offset: 3px;
}

.jl-hubx-card__cover {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 1.25rem 1.25rem;
  background: var(--card-bg);
  color: var(--card-text);
  isolation: isolate;
}

/* Lists without a custom look use their type's quiet tint. */
.jl-hubx-card--waitlist:not(.jl-hubx-card--themed):not(.jl-hubx-card--photo) .jl-hubx-card__cover { background: color-mix(in srgb, #eab308 16%, var(--jl-surface)); }
.jl-hubx-card--wantlist:not(.jl-hubx-card--themed):not(.jl-hubx-card--photo) .jl-hubx-card__cover { background: color-mix(in srgb, #d81b60 12%, var(--jl-surface)); }
.jl-hubx-card--wishlist:not(.jl-hubx-card--themed):not(.jl-hubx-card--photo) .jl-hubx-card__cover { background: color-mix(in srgb, #01c1d9 14%, var(--jl-surface)); }

.jl-hubx-card--photo .jl-hubx-card__cover {
  background: #0b1220 var(--card-photo) center / cover;
  color: #ffffff;
}

.jl-hubx-card--photo .jl-hubx-card__cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 18, 32, 0.45);
}

.jl-hubx-card__kind {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--jl-caption);
  font-weight: 600;
}

.jl-hubx-card__kind .jl-kind-icon,
.jl-hubx-card__kind svg {
  width: 1.1rem;
  height: 1.1rem;
}

.jl-hubx-card--themed .jl-hubx-card__kind svg *,
.jl-hubx-card--photo .jl-hubx-card__kind svg * {
  stroke: currentColor;
}

.jl-hubx-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.jl-hubx-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
}

.jl-hubx-card__tagline {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--jl-text-muted);
  font-size: 0.9375rem;
}

.jl-hubx-card__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--jl-ink);
  color: #ffffff;
  transition: transform 0.18s ease;
}

.jl-hubx-card:hover .jl-hubx-card__go {
  transform: translateX(2px);
}

/* Shared wishlists: the faces of everyone adding gifts, under the title. */
.jl-hubx-card__crew {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  margin-top: -0.85rem;
}

.jl-hubx-card__faces {
  display: inline-flex;
  flex-shrink: 0;
}

.jl-hubx-card__face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-left: -0.45rem;
  overflow: hidden;
  border-radius: 999px;
  border: 2px solid var(--card-bg, #ffffff);
  background: color-mix(in srgb, var(--card-text, #0b1220) 14%, #ffffff);
  color: #0b1220;
  font-size: 0.625rem;
  font-weight: 700;
}

.jl-hubx-card__face:first-child {
  margin-left: 0;
}

.jl-hubx-card__face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jl-hubx-card--photo .jl-hubx-card__face {
  border-color: rgba(255, 255, 255, 0.85);
}

.jl-hubx-card--wishlist:not(.jl-hubx-card--themed):not(.jl-hubx-card--photo) .jl-hubx-card__face {
  border-color: color-mix(in srgb, #01c1d9 14%, var(--jl-surface));
}

.jl-hubx-card__crew-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.9;
}

/* Search and filters: only on profiles with enough lists to need them. */
.jl-hub-find {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.jl-hub-find__search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--jl-surface);
  color: var(--jl-text-muted);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--hub-text, var(--jl-text)) 14%, transparent);
}

.jl-hub-find__search:focus-within {
  box-shadow: 0 0 0 2px var(--jl-cyan);
}

.jl-hub-find__search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--jl-text);
  font: inherit;
  font-size: 1rem;
  outline: none;
}

.jl-hub-find__chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.jl-hub-find__chips::-webkit-scrollbar {
  display: none;
}

.jl-hub-find__chip {
  flex-shrink: 0;
  height: 2.25rem;
  padding: 0 0.95rem;
  border: 0;
  border-radius: 999px;
  background: var(--jl-surface);
  color: var(--jl-text);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--hub-text, var(--jl-text)) 14%, transparent);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.jl-hub-find__chip.is-active {
  background: var(--jl-ink);
  color: #ffffff;
  box-shadow: none;
}

.jl-hubx__lists > li {
  min-width: 0;
}

.jl-hubx__lists > li[hidden] {
  display: none;
}

.jl-hubx__empty {
  padding: 2rem 1.5rem;
  border: 1px dashed var(--jl-border);
  border-radius: 22px;
  text-align: center;
}

.jl-hubx__empty-title {
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.jl-hubx__empty-body {
  margin: 0;
  color: var(--jl-text-muted);
}

@media (min-width: 720px) {
  .jl-hubx__lists {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .jl-hubx {
    grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
    padding: 3rem 2.5rem 2rem;
  }

  .jl-hubx__who {
    position: sticky;
    top: 2rem;
  }

  .jl-hubx__name {
    font-size: clamp(3rem, 4.5vw, 4rem);
  }

  .jl-hubx-card {
    min-height: 13rem;
  }

  .jl-hub .jl-public__end {
    flex-direction: row;
    justify-content: space-between;
    padding: 1.5rem 2.5rem 2rem;
  }

  .jl-hub .jl-public__join-footer {
    width: auto;
    max-width: none;
  }

  .jl-hub .jl-public__legal-bar {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jl-hubx-card,
  .jl-hubx-card__go {
    transition: none;
  }
}

/* ———————————————————————————————————————————
   Wishlist quantities and your own reservation.
   ——————————————————————————————————————————— */

.jl-wish-item__qty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--jl-text-muted);
}

.jl-wish-item__qty-bar {
  position: relative;
  flex: 0 0 4.5rem;
  height: 0.35rem;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 18%, transparent);
}

.jl-wish-item__qty-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: var(--jl-theme-accent, var(--jl-magenta));
}

.jl-wish-item.is-mine {
  background: color-mix(in srgb, var(--jl-theme-accent, var(--jl-magenta)) 12%, var(--jl-surface, #fff));
}

.jl-wish-item__cancel {
  margin: 0;
}

.jl-link-btn {
  padding: 0.25rem 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: inherit;
  opacity: 0.75;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.jl-link-btn:hover {
  opacity: 1;
}

/* Quantity picker in the reserve step */
.jl-qty {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.jl-wish-checkout__row .jl-qty {
  grid-column: 1 / -1;
  margin-top: 0.25rem;
}

.jl-qty__label,
.jl-qty__hint {
  margin: 0;
}

.jl-qty__label {
  font-size: 0.9375rem;
  font-weight: 600;
}

.jl-qty__hint {
  font-size: 0.8125rem;
  opacity: 0.75;
}

.jl-qty__choices {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
}

.jl-qty__choice,
.jl-qty__stepper {
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--jl-field-border, var(--jl-border));
  border-radius: 999px;
  background: var(--jl-field-bg, var(--jl-surface));
  color: inherit;
}

.jl-qty__choice {
  justify-content: center;
  padding: 0 1.1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.jl-qty__choice.is-on,
.jl-qty__stepper.is-on {
  border-color: var(--jl-theme-primary, var(--jl-cyan));
  box-shadow: 0 0 0 1px var(--jl-theme-primary, var(--jl-cyan));
}

.jl-qty__stepper {
  justify-content: space-between;
  padding: 0 0.25rem;
}

.jl-qty__step {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 8%, transparent);
  color: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.jl-qty__input {
  width: 3rem;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  text-align: center;
  -moz-appearance: textfield;
}

.jl-qty__input::-webkit-outer-spin-button,
.jl-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.jl-qty__input:focus {
  outline: none;
}

.jl-sheet-mock + .jl-qty,
.jl-public--radius-sharp .jl-qty__choice,
.jl-public--radius-sharp .jl-qty__stepper {
  border-radius: 6px;
}

.jl-wish-checkout__row:has(.jl-qty) {
  flex-wrap: wrap;
}

.jl-wish-checkout__row .jl-qty {
  flex-basis: 100%;
}



/* Your own reservation stays lively even when it filled the item. */
.jl-public .jl-wish-item.is-mine.is-claimed {
  background: color-mix(in srgb, var(--jl-theme-accent, var(--jl-magenta)) 12%, var(--jl-surface, #fff));
  opacity: 1;
  filter: none;
}

.jl-public .jl-wish-item.is-mine.is-claimed .jl-wish-item__title,
.jl-public .jl-wish-item.is-mine.is-claimed .jl-wish-item__title--link {
  text-decoration: none;
  opacity: 1;
}

.jl-public .jl-wish-item.is-mine.is-claimed .jl-wish-item__img,
.jl-public .jl-wish-item.is-mine.is-claimed .jl-wish-item__media {
  opacity: 1;
  filter: none;
}

.jl-public .jl-wish-item.is-mine .jl-badge {
  background: color-mix(in srgb, var(--jl-theme-accent, var(--jl-magenta)) 14%, transparent);
  color: var(--jl-theme-accent, #c2185b);
}

.jl-wish-checkout__name {
  flex: 1;
  min-width: 0;
}

/* ———————————————————————————————————————————
   Contrast pass: every color inside the sheet derives from the sheet's own text color,
   so solid, frosted, and no-card sheets stay readable on any wallpaper.
   ——————————————————————————————————————————— */

/* Item cards: a faint tint of the sheet's text color, never a second white layer. */
.jl-public.is-themed .jl-public__sheet .jl-wish-item {
  background: color-mix(in srgb, var(--jl-theme-surface-text, #0b1220) 5%, transparent);
  border-color: color-mix(in srgb, var(--jl-theme-surface-text, #0b1220) 16%, transparent);
  color: var(--jl-theme-surface-text, #0b1220);
}

.jl-public.is-themed.jl-public--surface-none .jl-public__sheet .jl-wish-item {
  background: color-mix(in srgb, #0b1220 42%, transparent);
  border-color: color-mix(in srgb, #ffffff 22%, transparent);
  color: var(--jl-live-text, #ffffff);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.jl-public.is-themed .jl-public__sheet .jl-wish-item .jl-wish-item__title,
.jl-public.is-themed .jl-public__sheet .jl-wish-item .jl-wish-item__title--link {
  color: inherit;
}

.jl-public.is-themed .jl-public__sheet .jl-wish-item :is(.jl-wish-item__note, .jl-wish-item__merchant, .jl-wish-item__by, .jl-wish-item__claim-by, .jl-wish-item__qty) {
  color: color-mix(in srgb, currentColor 74%, transparent);
  text-shadow: none;
}

.jl-public .jl-public__sheet .jl-wish-item :is(.jl-wish-item__note, .jl-wish-item__merchant, .jl-wish-item__by, .jl-wish-item__claim-by, .jl-wish-item__qty) {
  color: color-mix(in srgb, var(--jl-theme-surface-text, var(--jl-text)) 74%, transparent);
}

/* Reserved: the photo steps back, the words stay readable. */
.jl-public .jl-public__sheet .jl-wish-item.is-claimed {
  background: color-mix(in srgb, var(--jl-theme-surface-text, #0b1220) 9%, transparent);
}

.jl-public .jl-public__sheet .jl-wish-item.is-claimed .jl-wish-item__title,
.jl-public .jl-public__sheet .jl-wish-item.is-claimed .jl-wish-item__title--link {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
}

.jl-public .jl-public__sheet .jl-wish-item.is-claimed .jl-wish-item__media img {
  opacity: 0.45;
  filter: grayscale(0.6);
}

/* Consent and hints follow the sheet, not the page behind it. */
.jl-public .jl-public__sheet .jl-form-consent,
.jl-public .jl-public__sheet .jl-form-consent a,
.jl-public .jl-public__sheet .jl-hint,
.jl-public .jl-public__sheet .jl-step__lead {
  color: color-mix(in srgb, var(--jl-theme-surface-text, var(--jl-text)) 78%, transparent);
  text-shadow: none;
}

.jl-public.jl-public--surface-none .jl-public__sheet :is(.jl-form-consent, .jl-form-consent a, .jl-hint, .jl-step__lead) {
  color: color-mix(in srgb, var(--jl-live-text, #ffffff) 88%, transparent);
  text-shadow: 0 1px 2px rgba(11, 18, 32, 0.55);
}

/* Fields and option tiles inherit the sheet text, including placeholders. */
.jl-public.is-themed .jl-public__sheet .jl-fieldset {
  color: var(--jl-theme-surface-text, #0b1220);
}

.jl-public.is-themed.jl-public--surface-none .jl-public__sheet .jl-fieldset {
  color: var(--jl-live-text, #ffffff);
  background: color-mix(in srgb, #0b1220 38%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.jl-public .jl-public__sheet .jl-fieldset .jl-input {
  color: inherit !important;
}

.jl-public .jl-public__sheet .jl-fieldset .jl-input::placeholder {
  color: color-mix(in srgb, currentColor 55%, transparent) !important;
  opacity: 1;
}

/* Stats box inside the sheet follows the sheet as well. */
.jl-public.is-themed .jl-public__sheet .jl-public__stats {
  background: color-mix(in srgb, var(--jl-theme-surface-text, #0b1220) 5%, transparent);
  border-color: color-mix(in srgb, var(--jl-theme-surface-text, #0b1220) 16%, transparent);
  color: var(--jl-theme-surface-text, #0b1220);
}

.jl-public.is-themed .jl-public__sheet .jl-public__stats :is(.jl-vote-opt__label, .jl-vote-opt__votes, .jl-public__stats-total) {
  color: inherit;
}

/* Over a photo, the words above the sheet keep full strength and a soft shadow. */
.jl-public--has-bg-img .jl-public__lead :is(.jl-public__tagline, .jl-public__context, .jl-public__owner, .jl-public__countdown-ends) {
  color: var(--jl-live-text, #ffffff);
  opacity: 0.92;
  text-shadow: 0 1px 3px rgba(11, 18, 32, 0.5);
}

.jl-public--has-bg-img .jl-public__lead .jl-public__title {
  text-shadow: 0 2px 12px rgba(11, 18, 32, 0.35);
}

/* Gallery cards: the action fills the card width so every card ends the same way. */
@container stage (min-width: 1000px) {
  .jl-public__main--wishlist .jl-wish-list:not(.jl-wish-list--mock) .jl-wish-item__aside {
    margin-top: auto;
    align-self: stretch;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .jl-public__main--wishlist .jl-wish-list:not(.jl-wish-list--mock) .jl-wish-item__cta {
    flex: 1;
    min-height: 40px;
  }

  .jl-public__main--wishlist .jl-wish-list:not(.jl-wish-list--mock) .jl-wish-item__media {
    background: color-mix(in srgb, #ffffff 92%, transparent);
  }

  .jl-public__main--wishlist .jl-wish-list:not(.jl-wish-list--mock) .jl-wish-item__img {
    object-fit: contain;
  }
}

/* ———————————————————————————————————————————
   Profile look: the owner's background color or photo, text by contrast.
   ——————————————————————————————————————————— */

body:has(.jl-hub) {
  background: var(--hub-bg, var(--jl-bg));
}

.jl-hub,
.jl-hub[class] {
  background: var(--hub-bg, var(--jl-bg)) !important;
  color: var(--hub-text, var(--jl-text));
  position: relative;
  isolation: isolate;
}

.jl-hub--photo,
.jl-hub--photo[class] {
  background: #0b1220 !important;
}

.jl-hub__wallpaper {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #0b1220 var(--hub-photo) center / cover no-repeat;
}

.jl-hub__wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #0b1220;
  opacity: var(--hub-overlay, 0.4);
}

.jl-hub .jl-hubx__name {
  color: var(--hub-text, var(--jl-text));
}

.jl-hub .jl-hubx__bio,
.jl-hub .jl-hubx__count {
  color: color-mix(in srgb, var(--hub-text, var(--jl-text)) 78%, transparent);
}

.jl-hub--photo .jl-hubx__who :is(.jl-hubx__name, .jl-hubx__bio) {
  text-shadow: 0 1px 3px rgba(11, 18, 32, 0.45);
}

.jl-hub--dark .jl-public__legal,
.jl-hub--dark .jl-public__legal a,
.jl-hub--dark .jl-public__legal span {
  color: color-mix(in srgb, #ffffff 82%, transparent);
}

/* Social icons: one row of round buttons, Linktree-style. */
.jl-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.jl-socials__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hub-text, var(--jl-text)) 8%, transparent);
  color: var(--hub-text, var(--jl-text));
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.jl-hub--photo .jl-socials__link {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.jl-socials__link:hover {
  background: color-mix(in srgb, var(--hub-text, var(--jl-text)) 16%, transparent);
  transform: translateY(-1px);
}

.jl-socials__link:focus-visible {
  outline: 2px solid var(--hub-text, var(--jl-text));
  outline-offset: 2px;
}

.jl-socials__icon {
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

/* Tabs: ready for Links and more; today it labels the lists. */
.jl-hubx__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.jl-hub-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hub-text, var(--jl-text)) 8%, transparent);
  scrollbar-width: none;
}

.jl-hub--photo .jl-hub-tabs {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.jl-hub-tabs__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: color-mix(in srgb, var(--hub-text, var(--jl-text)) 80%, transparent);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.jl-hub-tabs__tab.is-active {
  background: var(--jl-surface);
  color: var(--jl-ink);
  box-shadow: 0 1px 3px rgba(11, 18, 32, 0.12);
}

.jl-hub-tabs__count {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  opacity: 0.65;
}

.jl-hub-panel[hidden] {
  display: none;
}

/* Type badge on every list card: a solid chip, readable on any cover. */
.jl-kind-chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem 0.3rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0b1220;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.12);
}

.jl-kind-chip .jl-kind-icon,
.jl-kind-chip .jl-kind-icon svg {
  width: 1rem;
  height: 1rem;
}

.jl-kind-chip--waitlist .jl-kind-icon { color: #92400e; }
.jl-kind-chip--wantlist .jl-kind-icon { color: #c2185b; }
.jl-kind-chip--wishlist .jl-kind-icon { color: #5b21b6; }

.jl-hub .jl-hubx-card {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--hub-text, var(--jl-text)) 12%, transparent), 0 10px 30px -18px rgba(11, 18, 32, 0.45);
}

/* ———————————————————————————————————————————
   Profile preview in the editor: always the phone layout.
   ——————————————————————————————————————————— */

.jl-hub--preview {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  font-size: 0.875rem;
}

.jl-hub--preview .jl-hub__wallpaper {
  position: absolute;
}

.jl-hub--preview .jl-hubx,
.jl-hub--preview .jl-hubx[class] {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  align-content: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  padding: 2.25rem 1rem 1.5rem;
}

.jl-hub--preview .jl-hubx__who {
  position: static;
}

.jl-hub--preview .jl-hubx__name,
.jl-hub--preview .jl-hubx__name[class] {
  font-size: 1.75rem;
}

.jl-hub--preview .jl-hubx__lists,
.jl-hub--preview .jl-hubx__lists[class] {
  grid-template-columns: minmax(0, 1fr);
}

.jl-hub--preview .jl-hubx-card {
  min-height: 0;
}

.jl-hub--preview .jl-hubx-card__cover {
  min-height: 6.5rem;
}

.jl-hub--preview .jl-socials__link {
  width: 36px;
  height: 36px;
}

.jl-hub--preview .jl-socials__icon {
  width: 16px;
  height: 16px;
}

.jl-hub--preview .jl-socials[hidden] {
  display: none;
}

.jl-hub--preview .jl-hub-tabs__tab {
  min-height: 32px;
  padding: 0 0.85rem;
  cursor: default;
}

/* Profile templates: a grid of tiny pages. */
.jl-ptpl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: 0.75rem;
}

.jl-ptpl__item {
  position: relative;
  display: grid;
  gap: 0.4rem;
  cursor: pointer;
}

.jl-ptpl__item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.jl-ptpl__swatch {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  aspect-ratio: 3 / 4;
  padding: 0.85rem 0.6rem;
  border-radius: var(--jl-radius-md, 12px);
  background: var(--sw-bg);
  background-image: linear-gradient(rgba(11, 18, 32, 0.35), rgba(11, 18, 32, 0.35)), var(--sw-photo, none);
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(11, 18, 32, 0.1);
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.jl-ptpl__swatch:not([style*="--sw-photo"]) {
  background-image: none;
}

.jl-ptpl__swatch i {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: var(--sw-text);
  opacity: 0.85;
}

.jl-ptpl__swatch b {
  width: 100%;
  height: 0.85rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--sw-text) 22%, transparent);
}

.jl-ptpl__swatch b:first-of-type {
  margin-top: 0.35rem;
}

.jl-ptpl__name {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--jl-text);
}

.jl-ptpl__item:hover .jl-ptpl__swatch {
  transform: translateY(-1px);
}

.jl-ptpl__item input:checked + .jl-ptpl__swatch {
  box-shadow: 0 0 0 2px var(--jl-surface), 0 0 0 4px var(--jl-ink);
}

.jl-ptpl__item input:focus-visible + .jl-ptpl__swatch {
  outline: 2px solid var(--jl-ink);
  outline-offset: 4px;
}

.jl-ptpl__item.is-locked {
  cursor: not-allowed;
}

.jl-ptpl__item.is-locked .jl-ptpl__swatch {
  opacity: 0.55;
}

/* Social rows in the editor. */
.jl-social-rows {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jl-social-rows:empty {
  display: none;
}

.jl-social-row {
  display: grid;
  grid-template-columns: 2.25rem minmax(7rem, 10rem) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
}

.jl-social-row__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--jl-surface-muted, #f1f3f6);
  position: relative;
}

.jl-social-row__icon::after {
  content: "";
  position: absolute;
  inset: 0.55rem;
  background: var(--jl-ink);
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.jl-social-row__move {
  display: inline-flex;
  gap: 0.15rem;
}

.jl-social-row:first-child [data-social-up] {
  visibility: hidden;
}

@media (max-width: 560px) {
  .jl-social-row {
    grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  }

  .jl-social-row__val {
    grid-column: 2 / -1;
    grid-row: 2;
  }
}

.jl-profile-editor .jl-settings-group > [data-look-panel]:not([hidden]) {
  margin-top: 1rem;
}

.jl-hub:not(.jl-hub--photo) .jl-hub__wallpaper {
  display: none;
}

.jl-social-rows:not([hidden]) ~ .jl-settings-form__actions {
  margin-top: 0.85rem;
}

.jl-social-rows[hidden] {
  display: none;
}

/* Editor preview: after "sending", the sample confirmation a visitor would see.
   Nothing is sent; the note says so, and "Try it again" brings the form back. */
.jl-preview-done {
  display: grid;
  gap: 0.6rem;
}

.jl-preview-done[hidden],
.jl-preview-done__again[hidden] {
  display: none;
}

.jl-preview-done__note {
  margin: 0;
  font-size: 0.8125rem;
  text-align: center;
  color: inherit;
  opacity: 0.72;
}

.jl-preview-done__again {
  margin-top: 0.6rem;
}

/* Filter the gifts: all, still available, or already reserved. */
.jl-wish-filter {
  display: flex;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  overflow-x: auto;
}

.jl-wish-filter[hidden] {
  display: none;
}

.jl-wish-filter__chip {
  appearance: none;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 9999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}

.jl-wish-filter__chip span {
  opacity: 0.65;
}

.jl-wish-filter__chip.is-active {
  background: var(--jl-theme-primary, var(--jl-ink));
  border-color: transparent;
  color: var(--jl-theme-primary-text, #fff);
}

.jl-wish-filter__empty {
  margin: 0.5rem 0 1rem;
  opacity: 0.7;
  font-size: 0.875rem;
}
.jl-wish-item[hidden],
.jl-wish-section[hidden] {
  display: none !important;
}

/* Your reservation: the whole card carries the accent, no edge stripe. */
.jl-public .jl-wish-item.is-mine,
.jl-public.is-themed .jl-public__sheet .jl-wish-item.is-mine,
.jl-public .jl-wish-item.is-mine.is-claimed {
  background: color-mix(in srgb, var(--jl-theme-accent, var(--jl-magenta, #e11d74)) 16%, transparent);
  box-shadow: none;
}

/* Surprise mode: a happy card with a wrapped gift and confetti. */
.jl-surprise {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem 0.75rem 0.75rem;
  border-radius: 16px;
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, #FFC857 28%, transparent), transparent 60%),
    color-mix(in srgb, var(--jl-theme-accent, var(--jl-magenta, #ff3d81)) 12%, transparent);
}

.jl-surprise__art {
  flex: none;
  overflow: visible;
}

.jl-surprise__confetti > * {
  transform-box: fill-box;
  transform-origin: center;
  animation: jl-confetti 3.2s ease-in-out infinite;
}

.jl-surprise__confetti > *:nth-child(2n) { animation-delay: -1.1s; }
.jl-surprise__confetti > *:nth-child(3n) { animation-delay: -2.1s; }

@keyframes jl-confetti {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-4px) rotate(14deg); }
}

@media (prefers-reduced-motion: reduce) {
  .jl-surprise__confetti > * { animation: none; }
}

.jl-surprise__copy {
  min-width: 0;
}

.jl-surprise__title {
  margin: 0 0 0.15rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.jl-surprise__body {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  opacity: 0.85;
}

/* Grid and list views, chosen by the owner or by the visitor. Same rules at any width. */
.jl-wish-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
}

.jl-wish-bar {
  flex-wrap: wrap;
}

.jl-wish-bar .jl-wish-filter {
  margin: 0;
  max-width: 100%;
}

.jl-wish-view {
  display: inline-flex;
  margin-left: auto;
  flex-shrink: 0;
  padding: 0.15rem;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 9999px;
}

.jl-wish-view__btn {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 1.75rem;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: inherit;
  opacity: 0.65;
  cursor: pointer;
}

.jl-wish-view__btn.is-active {
  opacity: 1;
  background: var(--jl-theme-primary, var(--jl-ink));
  color: var(--jl-theme-primary-text, #fff);
}

.jl-public .jl-wish-list[data-wish-view="grid"] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 0.75rem;
}

/* Phones: two across, so photos stay big and titles stay readable. */
@container stage (max-width: 520px) {
  .jl-public .jl-wish-list[data-wish-view="grid"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.jl-public .jl-wish-list[data-wish-view="grid"] > .jl-wish-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
  padding: 0.6rem 0.6rem 0.85rem;
}

.jl-public .jl-wish-list[data-wish-view="grid"] .jl-wish-item__media {
  flex: none;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.jl-public .jl-wish-list[data-wish-view="grid"] .jl-wish-item__body {
  padding-inline: 0.25rem;
}

.jl-public .jl-wish-list[data-wish-view="grid"] .jl-wish-item__aside {
  margin-top: auto;
  align-self: stretch;
  width: 100%;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-inline: 0.25rem;
}

.jl-public .jl-wish-list[data-wish-view="grid"] .jl-wish-item__cta {
  flex: 1;
  min-height: 40px;
}

.jl-public .jl-wish-list[data-wish-view="list"] {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.jl-public .jl-wish-list[data-wish-view="list"] > .jl-wish-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem;
}

.jl-public .jl-wish-list[data-wish-view="list"] .jl-wish-item__media {
  flex: 0 0 5.5rem;
  width: 5.5rem;
  height: 5.5rem;
  aspect-ratio: auto;
}

.jl-public .jl-wish-list[data-wish-view="list"] .jl-wish-item__body {
  padding-inline: 0;
}

.jl-public .jl-wish-list[data-wish-view="list"] .jl-wish-item__aside {
  margin-top: 0;
  align-self: center;
  width: auto;
  flex-direction: column;
  align-items: flex-end;
  padding-inline: 0;
}

.jl-public .jl-wish-list[data-wish-view="list"] .jl-wish-item__cta {
  flex: none;
  min-height: 2rem;
}

/* Phones: the photo stays on the left and the action drops under the copy,
   so long titles get the full card width instead of a narrow column. */
@container stage (max-width: 520px) {
  .jl-public .jl-wish-list:not([data-wish-view="grid"]) > .jl-wish-item {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    grid-template-areas:
      "media body"
      "media aside";
    align-items: start;
    column-gap: 0.75rem;
    row-gap: 0.5rem;
    min-width: 0;
  }

  .jl-public .jl-wish-list:not([data-wish-view="grid"]) .jl-wish-item__media {
    grid-area: media;
    flex: none;
    width: 4.5rem;
    height: 4.5rem;
    align-self: start;
  }

  .jl-public .jl-wish-list:not([data-wish-view="grid"]) .jl-wish-item__body {
    grid-area: body;
    min-width: 0;
    padding-inline: 0;
  }

  .jl-public .jl-wish-list:not([data-wish-view="grid"]) .jl-wish-item__aside {
    grid-area: aside;
    width: auto;
    margin-top: 0;
    align-self: start;
    align-items: flex-start;
    padding-inline: 0;
  }
}

/* Grid cards: the action may wrap inside its pill, so it never spills past the card. */
.jl-public .jl-wish-list[data-wish-view="grid"] .jl-wish-item__cta {
  min-width: 0;
  white-space: normal;
  text-align: center;
  justify-content: center;
}

/* The photo tile takes the color along the photo's edges, so white shots blend in. */
.jl-public .jl-wish-item__media[style*="--wish-bg"] {
  background: var(--wish-bg) !important;
  border-color: transparent;
}

.jl-public .jl-wish-item__media[style*="--wish-bg"] .jl-wish-item__img {
  background: transparent;
}

/* Most wanted: the gifts an author wants the most stand out, with a heart and a soft glow. */
.jl-wish-item__top {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.3rem;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--jl-theme-accent, var(--jl-magenta, #f63174)) 18%, transparent);
  color: var(--jl-theme-accent, #c2185b);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.jl-public .jl-wish-item.is-top {
  background: color-mix(in srgb, var(--jl-theme-accent, var(--jl-magenta, #f63174)) 9%, var(--jl-theme-surface, var(--jl-surface, #fff)));
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--jl-theme-accent, var(--jl-magenta, #f63174)) 40%, transparent),
    0 6px 20px color-mix(in srgb, var(--jl-theme-accent, var(--jl-magenta, #f63174)) 18%, transparent);
}

.jl-public .jl-wish-item.is-top.is-mine,
.jl-public .jl-wish-item.is-top.is-mine.is-claimed {
  background: color-mix(in srgb, var(--jl-theme-accent, var(--jl-magenta, #f63174)) 16%, transparent);
}
