.jl-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* —— App dashboard shell —— */
.jl-shell--app {
  font-size: var(--jl-app-body);
}

.jl-shell--app .jl-shell__nav .jl-btn--ghost {
  color: var(--jl-text-muted);
  background: transparent;
}

.jl-shell--app .jl-shell__nav .jl-btn--ghost:hover {
  color: var(--jl-text);
  background: var(--jl-surface);
}

.jl-shell--app .jl-msg {
  box-shadow: var(--jl-shadow-sm);
}

.jl-shell--app .jl-breadcrumb {
  margin-bottom: 0.25rem;
}

.jl-shell--app .jl-shell__nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: color-mix(in srgb, var(--jl-surface) 92%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--jl-border) 80%, transparent);
  backdrop-filter: blur(10px);
}

.jl-shell__nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: start;
}

.jl-shell__nav-center {
  justify-self: center;
}

.jl-shell__nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  justify-self: end;
  min-width: 0;
}

.jl-shell__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--jl-text);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
}

.jl-shell__brand:hover {
  text-decoration: none;
}

.jl-shell__brand img {
  width: 24px;
  height: auto;
}

.jl-shell__nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.25rem;
  background: color-mix(in srgb, var(--jl-border) 55%, var(--jl-bg));
  border-radius: 999px;
}

.jl-shell__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.4rem 1rem;
  font-size: var(--jl-app-meta);
  font-weight: 500;
  color: var(--jl-text-muted);
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
}

.jl-shell__link:hover {
  color: var(--jl-text);
  background: color-mix(in srgb, var(--jl-surface) 70%, transparent);
  text-decoration: none;
}

.jl-shell__link.is-active {
  color: var(--jl-text);
  background: var(--jl-surface);
  box-shadow: var(--jl-shadow-sm);
}

.jl-shell__user {
  display: block;
  position: relative;
}

.jl-shell__user-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  max-width: 220px;
  padding: 0.25rem 0.55rem 0.25rem 0.25rem;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.jl-shell__user-btn:hover,
.jl-shell__user[open] .jl-shell__user-btn {
  background: var(--jl-surface);
  border-color: var(--jl-border);
  box-shadow: var(--jl-shadow-sm);
}

.jl-shell__user-btn::-webkit-details-marker {
  display: none;
}

.jl-shell__user-btn::marker {
  content: "";
}

.jl-shell__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--jl-info);
  color: var(--jl-text);
  font-size: var(--jl-caption);
  font-weight: 600;
}

.jl-shell__avatar--img {
  object-fit: cover;
  padding: 0;
  background: var(--jl-border);
}

.jl-shell__user-meta {
  display: none;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.jl-shell__user-name {
  font-size: var(--jl-caption);
  font-weight: 600;
  color: var(--jl-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}

.jl-shell__user-role {
  font-size: 0.7rem;
  color: var(--jl-text-muted);
}

.jl-shell__user-caret {
  display: none;
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  margin-left: 0.15rem;
  border-right: 1.5px solid var(--jl-text-muted);
  border-bottom: 1.5px solid var(--jl-text-muted);
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.7;
}

.jl-shell__user-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 50;
  min-width: 180px;
  padding: 0.35rem;
  background: var(--jl-surface);
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius);
  box-shadow: var(--jl-shadow);
}

.jl-shell__user-menu {
  min-width: 268px;
  padding: 0.4rem;
}

.jl-menu__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.5rem 0.7rem;
}

.jl-menu__who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  line-height: 1.25;
}

.jl-menu__name {
  font-size: var(--jl-caption);
  font-weight: 600;
  color: var(--jl-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jl-menu__handle {
  font-size: 0.75rem;
  color: var(--jl-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jl-menu__plan {
  flex-shrink: 0;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--jl-border);
  background: var(--jl-surface-2);
  color: var(--jl-text-muted);
  font-size: 0.7rem;
  font-weight: 600;
}

.jl-menu__plan.is-pro {
  border-color: transparent;
  background: var(--jl-cyan);
  color: var(--jl-on-accent);
}

.jl-menu__group {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0.3rem 0;
  border-top: 1px solid var(--jl-border);
}

.jl-menu__group a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.6rem;
  border-radius: calc(var(--jl-radius) - 2px);
  color: var(--jl-text);
  font-size: var(--jl-caption);
  font-weight: 500;
  text-decoration: none;
}

.jl-menu__group a .jl-ico {
  color: var(--jl-text-muted);
  flex-shrink: 0;
}

.jl-menu__group a:hover,
.jl-menu__group a:focus-visible {
  background: var(--jl-surface-2);
  text-decoration: none;
}

.jl-menu__group a:hover .jl-ico {
  color: var(--jl-text);
}

.jl-menu__group a.jl-menu__phone-only {
  display: none;
}

.jl-menu__tag {
  margin-left: auto;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--jl-cyan) 18%, transparent);
  color: var(--jl-text);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 600;
}

.jl-menu__group a.is-danger,
.jl-menu__group a.is-danger .jl-ico {
  color: #b4233a;
}

:root[data-theme="dark"] .jl-menu__group a.is-danger,
:root[data-theme="dark"] .jl-menu__group a.is-danger .jl-ico {
  color: #ff8d9c;
}

.jl-menu__theme {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.6rem;
  border-top: 1px solid var(--jl-border);
  font-size: var(--jl-caption);
  font-weight: 500;
}

.jl-menu__seg {
  display: inline-flex;
  padding: 2px;
  gap: 2px;
  border-radius: 999px;
  background: var(--jl-surface-2);
  border: 1px solid var(--jl-border);
}

.jl-menu__seg button,
.jl-menu__seg a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--jl-text-muted);
  cursor: pointer;
}

.jl-menu__seg button:hover,
.jl-menu__seg a:hover {
  color: var(--jl-text);
}

.jl-menu__seg button[aria-pressed="true"],
.jl-menu__seg a[aria-current="true"] {
  background: var(--jl-surface);
  color: var(--jl-cyan-accessible);
  box-shadow: var(--jl-shadow-sm);
}

.jl-shell__link .jl-ico {
  flex-shrink: 0;
  margin-right: 0.45rem;
  opacity: 0.85;
}

.jl-shell__link.is-active .jl-ico {
  color: var(--jl-cyan-accessible);
  opacity: 1;
}

@media (max-width: 480px) {
  .jl-shell__link .jl-ico {
    margin-right: 0.35rem;
  }
}

@media (min-width: 720px) {
  

  .jl-shell__user-meta {
    display: flex;
  }

  .jl-shell__user-caret {
    display: block;
  }
}

@media (max-width: 719px) {
  .jl-shell--app .jl-shell__nav {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand right"
      "pill pill";
  }

  .jl-shell__nav-left {
    grid-area: brand;
  }

  .jl-shell__nav-center {
    grid-area: pill;
    justify-self: stretch;
  }

  .jl-shell__nav-pill {
    width: 100%;
    justify-content: stretch;
  }

  .jl-shell__nav-pill .jl-shell__link {
    flex: 1;
  }

  .jl-shell__nav-right {
    grid-area: right;
  }
}

.jl-shell__main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.jl-shell--app .jl-shell__main {
  max-width: 1080px;
  padding: 1.75rem 1.5rem 3.5rem;
}

.jl-shell--app .jl-shell__main--wide {
  max-width: 1080px;
}

.jl-shell--app .jl-shell__main--builder {
  max-width: 1360px;
  padding: 1.25rem 1.25rem 2.5rem;
  width: 100%;
}

.jl-shell--app .jl-shell__main--desk {
  max-width: none;
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* —— Dashboard composition —— */
.jl-dash {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 68rem;
  margin: 0 auto;
  width: 100%;
}

.jl-dash--narrow {
  max-width: 640px;
}

.jl-dash-attention {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jl-dash-attention__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.5rem;
  border-top: 1px solid var(--jl-border);
}

.jl-dash-attention__row:first-child {
  border-top: 0;
}

.jl-dash-attention__copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.jl-dash-attention__name {
  font-weight: 600;
  color: var(--jl-ink);
}

.jl-dash-attention__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.jl-card {
  background: var(--jl-surface);
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius-md);
  box-shadow: var(--jl-shadow);
  padding: 1.5rem 1.6rem;
}

.jl-card--flush {
  padding: 0;
  overflow: hidden;
}

.jl-card--flush .jl-card__head,
.jl-card--flush .jl-card__body {
  padding: 1.25rem 1.5rem;
}

.jl-card--flush .jl-card__body {
  padding-top: 0;
}

.jl-card--flush .jl-table-wrap {
  margin: 0;
}

.jl-card--flush .jl-table th:first-child,
.jl-card--flush .jl-table td:first-child {
  padding-left: 1.5rem;
}

.jl-card--flush .jl-table th:last-child,
.jl-card--flush .jl-table td:last-child {
  padding-right: 1.5rem;
}

.jl-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.jl-card--flush .jl-card__head {
  margin-bottom: 0;
  border-bottom: 1px solid var(--jl-border);
}

.jl-card__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: var(--jl-body);
  font-weight: 600;
  color: var(--jl-text);
}

.jl-card__title .jl-badge {
  font-weight: 500;
}

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

.jl-stat-tile {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.jl-stat-tile + .jl-stat-tile {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--jl-border);
}

.jl-stat-tile__label {
  font-size: var(--jl-caption);
  color: var(--jl-text-muted);
  font-weight: 500;
}

.jl-stat-tile__value {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--jl-text);
}

.jl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

[hidden],
.jl-btn[hidden],
.jl-upload-stack__clear[hidden] {
  display: none !important;
}

.jl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.6rem 1.2rem;
  font-family: inherit;
  font-size: var(--jl-body);
  font-weight: 500;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.jl-btn .jl-icon {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}

.jl-btn:hover {
  text-decoration: none;
}

.jl-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--jl-cyan) 45%, transparent);
  outline-offset: 2px;
}

.jl-btn:disabled,
.jl-btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.jl-btn--primary {
  background: var(--jl-theme-primary, var(--jl-cyan));
  color: var(--jl-theme-primary-text, #0b1220);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--jl-theme-primary, var(--jl-cyan)) 25%, transparent);
}

.jl-btn--primary:hover {
  background: color-mix(in srgb, var(--jl-theme-primary, var(--jl-cyan)) 88%, #0b1220);
}

.jl-btn--primary:active {
  background: color-mix(in srgb, var(--jl-theme-primary, var(--jl-cyan)) 78%, #0b1220);
}

/* Inline themed fills need !important to beat style="" on hover. */
.jl-public.is-themed .jl-btn--primary:hover,
.jl-public[data-live-primary] .jl-btn--primary:hover {
  background: color-mix(in srgb, var(--jl-theme-primary, var(--jl-cyan)) 88%, #0b1220) !important;
}

.jl-public.is-themed .jl-btn--primary:active,
.jl-public[data-live-primary] .jl-btn--primary:active {
  background: color-mix(in srgb, var(--jl-theme-primary, var(--jl-cyan)) 78%, #0b1220) !important;
}

.jl-btn--secondary {
  background: var(--jl-surface);
  color: var(--jl-text);
  border-color: var(--jl-border);
}

.jl-btn--secondary:hover {
  background: var(--jl-bg);
  border-color: color-mix(in srgb, var(--jl-border) 70%, var(--jl-text-muted));
}

.jl-btn--ghost {
  background: transparent;
  color: var(--jl-text);
}

.jl-btn--ghost:hover {
  background: var(--jl-bg);
}

.jl-btn--danger {
  background: var(--jl-danger, #fdecec);
  color: #b91c1c;
  border-color: color-mix(in srgb, #b91c1c 25%, transparent);
}

.jl-btn--danger:hover {
  background: color-mix(in srgb, var(--jl-danger, #fdecec) 60%, #fca5a5);
  border-color: #b91c1c;
  color: #991b1b;
}

.jl-btn--danger:active {
  background: color-mix(in srgb, var(--jl-danger, #fdecec) 45%, #fca5a5);
  border-color: #7f1d1d;
  color: #7f1d1d;
}

.jl-btn--lg {
  min-height: 52px;
  padding: 0.75rem 1.4rem;
  font-size: 1.0625rem;
}

.jl-btn--block {
  display: flex;
  width: 100%;
}

.jl-label {
  display: block;
  font-size: var(--jl-caption);
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--jl-text);
}

.jl-input,
.jl-select,
.jl-textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  font-family: inherit;
  font-size: var(--jl-body);
  color: var(--jl-text);
  background: var(--jl-surface);
  border: 1px solid var(--jl-control-border);
  border-radius: var(--jl-radius);
  appearance: none;
}

select.jl-input,
.jl-select {
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235B6575' d='M1.41 0 6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 12px 8px;
  cursor: pointer;
}

.jl-textarea {
  min-height: 6.5rem;
  resize: vertical;
  line-height: 1.45;
}

.jl-input:hover,
.jl-select:hover,
.jl-textarea:hover,
select.jl-input:hover {
  border-color: var(--jl-text-muted);
}

.jl-input:focus,
.jl-select:focus,
.jl-textarea:focus,
select.jl-input:focus {
  outline: 2px solid color-mix(in srgb, var(--jl-cyan) 40%, transparent);
  outline-offset: 1px;
  border-color: color-mix(in srgb, var(--jl-cyan) 35%, var(--jl-border));
}

.jl-input:disabled,
.jl-select:disabled,
.jl-textarea:disabled,
select.jl-input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--jl-bg);
}

.jl-input[type="file"] {
  padding: 0.45rem 0.75rem;
  font-size: var(--jl-caption);
}

.jl-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: var(--jl-caption);
  color: var(--jl-text-muted);
}

.jl-field {
  margin-bottom: 1.1rem;
}

.jl-field__error {
  margin-top: 0.35rem;
  font-size: var(--jl-caption);
  color: #8b1e2d;
}

.jl-field--error .jl-input,
.jl-field--error .jl-select,
.jl-field--error .jl-textarea,
.jl-field--error select.jl-input {
  border-color: color-mix(in srgb, #8b1e2d 35%, var(--jl-border));
  background: color-mix(in srgb, var(--jl-danger) 40%, var(--jl-surface));
}

.jl-field--success .jl-input,
.jl-field--success .jl-select,
.jl-field--success .jl-textarea {
  border-color: color-mix(in srgb, #1a6b3c 30%, var(--jl-border));
  background: color-mix(in srgb, var(--jl-success) 45%, var(--jl-surface));
}

.jl-check,
.jl-radio {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  font-size: var(--jl-body);
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
}

.jl-check input,
.jl-radio input {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0.15rem 0 0;
  flex-shrink: 0;
  accent-color: var(--jl-cyan);
  cursor: pointer;
}

.jl-check input:disabled,
.jl-radio input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.jl-link {
  color: var(--jl-link);
  font-weight: 500;
  text-decoration: none;
}

.jl-link:hover {
  text-decoration: underline;
}

.jl-link--muted {
  color: var(--jl-text-muted);
  font-weight: 400;
  text-decoration: none;
}

.jl-link--muted:hover {
  color: var(--jl-cyan);
  text-decoration: underline;
}

.jl-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  font-size: var(--jl-badge);
  font-weight: 500;
  line-height: 1.3;
  border-radius: 999px;
  border: none;
}

.jl-badge--neutral {
  background: var(--jl-border);
  color: var(--jl-text);
}

.jl-badge--cyan,
.jl-badge--info {
  background: var(--jl-info);
  color: var(--jl-text);
}

.jl-badge--magenta {
  background: color-mix(in srgb, var(--jl-magenta) 18%, var(--jl-surface));
  color: var(--jl-text);
}

.jl-badge--accent {
  background: color-mix(in srgb, var(--jl-theme-accent, var(--jl-magenta)) 16%, transparent);
  color: var(--jl-theme-accent, var(--jl-magenta));
}

.jl-badge--success {
  background: var(--jl-success);
  color: var(--jl-text);
}

.jl-badge--warning {
  background: var(--jl-warning);
  color: var(--jl-text);
}

.jl-badge--danger {
  background: var(--jl-danger);
  color: var(--jl-text);
}

.jl-msg {
  padding: 1rem 1.1rem;
  border-radius: var(--jl-radius);
  margin-bottom: 1.25rem;
}

.jl-msg__title {
  font-weight: 600;
  margin: 0;
  font-size: var(--jl-body);
  line-height: 1.35;
}

.jl-msg__body {
  margin: 0.35rem 0 0;
  font-size: var(--jl-caption);
  color: var(--jl-text);
  line-height: 1.45;
}

.jl-msg__body:first-child {
  margin-top: 0;
}

/* A notice sets its own text colour, so a photo behind it (list headers use white text over photos)
   can't make the words disappear on the tint. */
.jl-msg--info { color: var(--jl-info-ink); }
.jl-msg--success { color: var(--jl-success-ink); }
.jl-msg--warning { color: var(--jl-warning-ink); }
.jl-msg--error { color: var(--jl-danger-ink); }

.jl-msg__body {
  color: inherit;
  opacity: 0.85;
}

.jl-msg--info {
  background: var(--jl-info);
}

.jl-msg--success {
  background: var(--jl-success);
}

.jl-msg--warning {
  background: var(--jl-warning);
}

.jl-msg--error {
  background: var(--jl-danger);
}

.jl-stat {
  margin: 0.5rem 0 1.25rem;
}

.jl-stat__value {
  font-size: 2.75rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--jl-text);
  letter-spacing: -0.02em;
}

.jl-stat__label {
  margin-top: 0.3rem;
  font-size: var(--jl-caption);
  color: var(--jl-text-muted);
}

.jl-empty {
  padding: 2.75rem 1.5rem;
  text-align: center;
}

.jl-empty--compact {
  padding: 1.25rem 0.75rem 0.5rem;
}

.jl-empty__title {
  font-size: var(--jl-title);
  margin-bottom: 0.4rem;
}

.jl-empty__body {
  color: var(--jl-text-muted);
  margin: 0 auto 1.35rem;
  max-width: 28rem;
}

.jl-empty--compact .jl-empty__body {
  margin-bottom: 0;
}

/* Preview / empty sheet mockups */
.jl-sheet-mock {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.jl-sheet-mock__caption {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  color: var(--jl-text-muted);
  text-align: center;
}

.jl-public__faces {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0.35rem var(--jl-public-gutter, 1.35rem) 0.85rem;
  padding-left: 0.1rem;
}

.jl-public--preview .jl-public__faces {
  margin-left: var(--jl-public-gutter, 1.15rem);
  margin-right: var(--jl-public-gutter, 1.15rem);
}

.jl-public__face {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  border: 2px solid var(--jl-surface, #fff);
  background: color-mix(in srgb, var(--jl-cyan) 28%, var(--jl-surface));
  margin-left: -0.4rem;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--jl-ink) 72%, transparent);
  line-height: 1;
}

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

.jl-public__face--tone0 {
  background: color-mix(in srgb, var(--jl-cyan) 32%, var(--jl-surface));
}

.jl-public__face--tone1 {
  background: color-mix(in srgb, var(--jl-magenta) 22%, var(--jl-surface));
}

.jl-public__face--tone2 {
  background: color-mix(in srgb, var(--jl-ink) 10%, var(--jl-surface));
}

.jl-public__face--more {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--jl-text-muted);
  background: var(--jl-surface);
  border-color: var(--jl-border);
}

.jl-wish-list--mock {
  pointer-events: none;
  user-select: none;
}

.jl-wish-item--mock {
  opacity: 0.92;
}

.jl-sheet-mock__thumb {
  background: color-mix(in srgb, var(--jl-cyan) 14%, var(--jl-bg));
  border-style: solid;
}

.jl-sheet-mock__thumb--b {
  background: color-mix(in srgb, var(--jl-magenta) 12%, var(--jl-bg));
}

.jl-sheet-mock__thumb--c {
  background: color-mix(in srgb, var(--jl-ink) 8%, var(--jl-bg));
}

.jl-sheet-mock__bar {
  display: block;
  height: 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--jl-ink) 10%, var(--jl-bg));
  margin: 0 0 0.4rem;
}

.jl-sheet-mock__bar--merchant {
  width: 38%;
  height: 0.4rem;
  background: color-mix(in srgb, var(--jl-ink) 7%, var(--jl-bg));
}

.jl-sheet-mock__bar--title {
  width: 72%;
  height: 0.7rem;
}

.jl-sheet-mock__bar--note {
  width: 54%;
  height: 0.45rem;
  background: color-mix(in srgb, var(--jl-ink) 7%, var(--jl-bg));
}

.jl-sheet-mock__bar--short {
  width: 28%;
}

.jl-sheet-mock__bar--wide {
  width: 88%;
}

.jl-sheet-mock--public {
  gap: 0.35rem;
}

.jl-sheet-mock--public .jl-wish-list--mock {
  opacity: 0.45;
  filter: grayscale(0.15);
}

.jl-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
}

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

.jl-table th,
.jl-table td {
  text-align: left;
  padding: 0.95rem 0.85rem;
  border-bottom: 1px solid var(--jl-border);
  vertical-align: middle;
}

.jl-table th {
  font-weight: 500;
  color: var(--jl-text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  background: transparent;
}

.jl-table th:first-child,
.jl-table td:first-child {
  padding-left: 0;
}

.jl-table th:last-child,
.jl-table td:last-child {
  padding-right: 0;
}

.jl-table tbody tr {
  transition: background 0.1s ease;
}

.jl-table tbody tr:hover td {
  background: color-mix(in srgb, var(--jl-bg) 65%, transparent);
}

.jl-table tbody tr:last-child td {
  border-bottom: none;
}

.jl-table td {
  color: var(--jl-text);
}

.jl-table strong {
  font-weight: 600;
}

.jl-table__count {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

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

.jl-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.jl-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.jl-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: jl-step;
}

.jl-steps li {
  counter-increment: jl-step;
  display: grid;
  gap: 0.25rem;
  padding: 1rem 0 1rem 2.5rem;
  position: relative;
  border-bottom: 1px solid var(--jl-border);
}

.jl-steps li:last-child {
  border-bottom: none;
}

.jl-steps li::before {
  content: counter(jl-step);
  position: absolute;
  left: 0;
  top: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--jl-info);
  color: var(--jl-text);
  font-size: var(--jl-caption);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jl-steps strong {
  font-weight: 600;
}

.jl-steps span {
  color: var(--jl-text-muted);
  font-size: var(--jl-caption);
}

.jl-prose {
  max-width: 50rem;
  margin: 0 auto;
  line-height: 1.65;
  color: var(--jl-text);
}

.jl-prose h1 {
  font-size: var(--jl-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.jl-prose h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--jl-border);
}

.jl-prose h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.jl-prose p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.jl-prose ul,
.jl-prose ol {
  padding-left: 1.4rem;
  margin-top: 0;
  margin-bottom: 1.25rem;
  color: var(--jl-text);
}

.jl-prose li {
  margin-bottom: 0.45rem;
}

.jl-prose a {
  color: #0096ab;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.jl-prose a:hover {
  color: var(--jl-cyan);
}

.jl-prose code {
  font-size: 0.875em;
  padding: 0.15rem 0.35rem;
  background: rgba(11, 18, 32, 0.05);
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.jl-prose strong {
  font-weight: 600;
}

.jl-empty .jl-btn {
  margin-right: 0.5rem;
  margin-top: 0.25rem;
}

.jl-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.jl-page-head h1 {
  margin-bottom: 0.3rem;
  font-size: var(--jl-app-title);
  letter-spacing: -0.02em;
}

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

.jl-shell--app .jl-meta,
.jl-shell--app .jl-breadcrumb,
.jl-shell--app .jl-hint {
  font-size: var(--jl-app-meta);
}

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

.jl-breadcrumb a {
  color: var(--jl-text-muted);
}

.jl-breadcrumb a:hover {
  color: var(--jl-cyan);
}

.jl-search {
  margin-bottom: 1rem;
}

.jl-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
  word-break: break-all;
}

.jl-table__actions {
  text-align: right;
  white-space: nowrap;
}

.jl-btn--sm {
  min-height: 36px;
  padding: 0.4rem 0.85rem;
  font-size: var(--jl-caption);
}

.jl-table__actions .jl-btn {
  vertical-align: middle;
}

.jl-public {
  --jl-public-gutter: 1.35rem;
  /* The public page's own ink. Without it, text inside the sheet inherits the app's dark text when the page
     is shown in dark mode (the preview), and typed words vanish on the light fields. */
  color: var(--jl-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--jl-bg);
  position: relative;
}

.jl-public--preview {
  --jl-public-gutter: 1.15rem;
}

.jl-top-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0.85rem 0.75rem;
  flex-shrink: 0;
  background: transparent;
}

.jl-top-chrome__brand[hidden] {
  display: none !important;
}

.jl-top-chrome__brand {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--jl-ink);
  text-decoration: none;
  line-height: 1;
  transition: all 0.18s ease;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.jl-top-chrome__brand:hover {
  text-decoration: none;
  background: var(--jl-surface);
  border-color: rgba(15, 23, 42, 0.18);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.jl-top-chrome__mark {
  display: block;
  width: auto;
  height: 17px;
  object-fit: contain;
  flex-shrink: 0;
  background: transparent;
  border-radius: 0;
}

.jl-public.is-themed .jl-top-chrome__brand {
  color: var(--jl-header-text, var(--jl-live-text, var(--jl-ink)));
}

.jl-top-chrome__share {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border-radius: 9999px;
  font-family: inherit;
  line-height: 1;
  color: var(--jl-text) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
}

.jl-top-chrome__share:hover {
  background: var(--jl-surface) !important;
  border-color: rgba(15, 23, 42, 0.18) !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08) !important;
  color: var(--jl-text) !important;
}

.jl-top-chrome__share:active {
  transform: translateY(1px);
}

.jl-top-chrome__share .jl-icon {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  stroke: #0F172A;
  stroke-width: 2px;
}

.jl-public.is-themed {
  --jl-live-muted: color-mix(in srgb, var(--jl-live-text, var(--jl-text)) 72%, var(--jl-live-bg, var(--jl-bg)));
  --jl-border: color-mix(in srgb, var(--jl-live-text, var(--jl-text)) 18%, var(--jl-live-bg, var(--jl-bg)));
  color: var(--jl-live-text, var(--jl-text));
}

.jl-public.is-themed:not(.jl-public--has-bg-img) {
  background: var(--jl-live-bg, var(--jl-bg));
}

.jl-public.is-themed.jl-public--has-bg-img {
  background-color: transparent;
}

.jl-public.is-themed .jl-public__title {
  color: var(--jl-live-text, var(--jl-text));
}

.jl-public.is-themed .jl-public__tagline,
.jl-public.is-themed .jl-public__context,
.jl-public.is-themed .jl-public__legal,
.jl-public.is-themed .jl-public__legal a,
.jl-public.is-themed .jl-public__legal span {
  color: var(--jl-live-muted, var(--jl-live-text, var(--jl-text)));
}

.jl-public.is-themed .jl-public__legal a:hover {
  color: var(--jl-live-text, var(--jl-text));
}

.jl-public.is-themed .jl-public__sheet {
  --jl-bg: var(--jl-theme-surface, #fafbfc);
  --jl-surface: var(--jl-theme-surface, #ffffff);
  --jl-text: var(--jl-theme-surface-text, #0b1220);
  --jl-text-muted: color-mix(in srgb, var(--jl-theme-surface-text, #0b1220) 65%, var(--jl-theme-surface, #ffffff));
  --jl-border: color-mix(in srgb, var(--jl-theme-surface-text, #0b1220) 16%, var(--jl-theme-surface, #ffffff));
  --jl-ink: var(--jl-theme-surface-text, #0b1220);
  /* Option card contract — single source for unselected / selected chrome */
  --jl-option-bg: color-mix(in srgb, var(--jl-theme-surface-text, #0b1220) 6%, var(--jl-theme-surface, #ffffff));
  --jl-option-border: color-mix(in srgb, var(--jl-theme-surface-text, #0b1220) 28%, transparent);
  --jl-option-label: var(--jl-theme-surface-text, #0b1220);
  --jl-option-selected-bg: color-mix(in srgb, var(--jl-theme-accent, #f63174) 14%, #ffffff);
  --jl-option-selected-border: var(--jl-theme-accent, #f63174);
  --jl-option-selected-label: #0b1220;
  --jl-option-radius: var(--jl-radius-md);
  --jl-field-bg: color-mix(in srgb, var(--jl-theme-surface-text, #0b1220) 5%, var(--jl-theme-surface, #ffffff));
  --jl-field-border: color-mix(in srgb, var(--jl-theme-surface-text, #0b1220) 24%, var(--jl-theme-surface, #ffffff));
  background: var(--jl-theme-surface, #ffffff);
  backdrop-filter: var(--jl-theme-surface-backdrop, none);
  -webkit-backdrop-filter: var(--jl-theme-surface-backdrop, none);
  color: var(--jl-theme-surface-text, #0b1220);
  border-color: color-mix(in srgb, var(--jl-theme-surface-text, #0b1220) 16%, var(--jl-theme-surface, #ffffff));
}

/* No sheet fill — form sits directly on the page color / wallpaper */
.jl-public.is-themed.jl-public--surface-none .jl-public__sheet {
  --jl-bg: transparent;
  --jl-surface: transparent;
  --jl-text: var(--jl-live-text, var(--jl-theme-surface-text, #0b1220));
  --jl-text-muted: var(--jl-live-muted, color-mix(in srgb, var(--jl-live-text, #0b1220) 72%, transparent));
  --jl-border: color-mix(in srgb, var(--jl-live-text, #0b1220) 22%, transparent);
  --jl-ink: var(--jl-live-text, var(--jl-theme-surface-text, #0b1220));
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: transparent;
  box-shadow: none;
  color: var(--jl-live-text, #0b1220);
  /* Invisible card — keep alignment, leave room above the form */
  margin-top: 1.6rem;
  padding: 0;
  gap: 0.95rem;
}

.jl-public.is-themed.jl-public--surface-none .jl-public__sheet > form {
  gap: 0.95rem;
}

.jl-public.is-themed.jl-public--surface-none .jl-public__sheet .jl-label,
.jl-public.is-themed.jl-public--surface-none .jl-public__sheet .jl-public__context,
.jl-public.is-themed.jl-public--surface-none .jl-public__sheet .jl-wish-item__title,
.jl-public.is-themed.jl-public--surface-none .jl-public__sheet .jl-wish-item__title--link {
  color: var(--jl-live-text, #0b1220);
}

.jl-public.is-themed.jl-public--surface-none .jl-public__sheet .jl-hint,
.jl-public.is-themed.jl-public--surface-none .jl-public__sheet .jl-public__detail,
.jl-public.is-themed.jl-public--surface-none .jl-public__sheet .jl-wish-item__note,
.jl-public.is-themed.jl-public--surface-none .jl-public__sheet .jl-wish-item__merchant {
  color: color-mix(in srgb, var(--jl-live-text, #ffffff) 78%, transparent);
  text-shadow: 0 1px 2px color-mix(in srgb, #0b1220 55%, transparent);
}

/* Lead copy needs full body-text weight over busy wallpapers — not muted. */
.jl-public.is-themed.jl-public--surface-none .jl-public__sheet .jl-step__lead {
  color: var(--jl-live-text, #ffffff);
  font-weight: 500;
  text-shadow:
    0 1px 2px color-mix(in srgb, #0b1220 70%, transparent),
    0 0 1px color-mix(in srgb, #0b1220 45%, transparent);
}

.jl-public.is-themed.jl-public--surface-none .jl-public__sheet .jl-label,
.jl-public.is-themed.jl-public--surface-none .jl-public__sheet .jl-public__context {
  text-shadow: 0 1px 2px color-mix(in srgb, #0b1220 55%, transparent);
}

/* Outline fields — same language as ghost Back (border + ink, no fill). */
.jl-public.is-themed.jl-public--surface-none .jl-public__sheet .jl-input,
.jl-public.is-themed.jl-public--surface-none .jl-public__sheet .jl-select,
.jl-public.is-themed.jl-public--surface-none .jl-public__sheet .jl-textarea,
.jl-public.is-themed.jl-public--surface-none .jl-public__sheet select.jl-input {
  color: var(--jl-live-text, #ffffff);
  background: transparent;
  border-color: color-mix(in srgb, var(--jl-live-text, #ffffff) 55%, transparent);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.jl-public.is-themed.jl-public--surface-none .jl-public__sheet .jl-input::placeholder,
.jl-public.is-themed.jl-public--surface-none .jl-public__sheet .jl-textarea::placeholder {
  color: color-mix(in srgb, var(--jl-live-text, #ffffff) 62%, transparent);
  opacity: 1;
}

.jl-public.is-themed.jl-public--surface-none .jl-public__sheet .jl-input:hover,
.jl-public.is-themed.jl-public--surface-none .jl-public__sheet .jl-select:hover,
.jl-public.is-themed.jl-public--surface-none .jl-public__sheet .jl-textarea:hover,
.jl-public.is-themed.jl-public--surface-none .jl-public__sheet select.jl-input:hover {
  border-color: var(--jl-live-text, #ffffff);
  background: transparent;
}

.jl-public.is-themed.jl-public--surface-none .jl-public__sheet .jl-input:focus,
.jl-public.is-themed.jl-public--surface-none .jl-public__sheet .jl-select:focus,
.jl-public.is-themed.jl-public--surface-none .jl-public__sheet .jl-textarea:focus,
.jl-public.is-themed.jl-public--surface-none .jl-public__sheet select.jl-input:focus {
  border-color: var(--jl-live-text, #ffffff);
  outline: 2px solid color-mix(in srgb, var(--jl-live-text, #ffffff) 35%, transparent);
  outline-offset: 1px;
  background: transparent;
}

.jl-public.is-themed.jl-public--surface-none .jl-public__sheet .jl-btn--ghost {
  color: var(--jl-live-text, #ffffff);
  border-color: color-mix(in srgb, var(--jl-live-text, #ffffff) 55%, transparent);
  background: transparent;
}

.jl-public.is-themed.jl-public--surface-none .jl-public__sheet .jl-btn--ghost:hover {
  color: var(--jl-live-text, #ffffff);
  border-color: var(--jl-live-text, #ffffff);
  background: color-mix(in srgb, var(--jl-live-text, #ffffff) 8%, transparent);
}

.jl-public.is-themed.jl-public--surface-none .jl-public__sheet {
  /* Outline cards on wallpaper — border must stay visible with no fill. */
  --jl-option-bg: transparent;
  --jl-option-border: color-mix(in srgb, var(--jl-live-text, #ffffff) 62%, transparent);
  --jl-option-label: var(--jl-live-text, #ffffff);
  --jl-option-selected-bg: color-mix(in srgb, var(--jl-theme-accent, #f63174) 16%, #ffffff);
  --jl-option-selected-border: var(--jl-theme-accent, #f63174);
  --jl-option-selected-label: #0b1220;
  --jl-field-bg: transparent;
  --jl-field-border: color-mix(in srgb, var(--jl-live-text, #ffffff) 62%, transparent);
}

/* Frosted sheet over wallpaper — outline fields + option cards (same language as surface-none). */
.jl-public.is-themed.jl-public--surface-glass .jl-public__sheet {
  --jl-option-bg: color-mix(in srgb, var(--jl-theme-surface-text, #ffffff) 8%, transparent);
  --jl-option-border: color-mix(in srgb, var(--jl-theme-surface-text, #ffffff) 58%, transparent);
  --jl-option-label: var(--jl-theme-surface-text, #0b1220);
  --jl-option-selected-bg: color-mix(in srgb, var(--jl-theme-accent, #f63174) 16%, #ffffff);
  --jl-option-selected-border: var(--jl-theme-accent, #f63174);
  --jl-option-selected-label: #0b1220;
  --jl-field-bg: color-mix(in srgb, var(--jl-theme-surface-text, #ffffff) 8%, transparent);
  --jl-field-border: color-mix(in srgb, var(--jl-theme-surface-text, #ffffff) 58%, transparent);
}

.jl-public.is-themed .jl-public__sheet .jl-input,
.jl-public.is-themed .jl-public__sheet .jl-select,
.jl-public.is-themed .jl-public__sheet .jl-textarea,
.jl-public.is-themed .jl-public__sheet select.jl-input {
  color: var(--jl-theme-surface-text, var(--jl-text));
  background: var(--jl-field-bg, var(--jl-surface));
  border-color: var(--jl-field-border, var(--jl-border));
}

.jl-public.is-themed .jl-public__sheet .jl-input::placeholder,
.jl-public.is-themed .jl-public__sheet .jl-textarea::placeholder {
  color: color-mix(in srgb, var(--jl-theme-surface-text, var(--jl-text-muted)) 58%, transparent);
  opacity: 1;
}

.jl-public.is-themed .jl-public__sheet .jl-input:hover,
.jl-public.is-themed .jl-public__sheet .jl-select:hover,
.jl-public.is-themed .jl-public__sheet .jl-textarea:hover,
.jl-public.is-themed .jl-public__sheet select.jl-input:hover {
  border-color: color-mix(in srgb, var(--jl-theme-surface-text, var(--jl-text)) 72%, var(--jl-field-border, var(--jl-border)));
}

.jl-public.is-themed .jl-public__sheet .jl-input:focus,
.jl-public.is-themed .jl-public__sheet .jl-select:focus,
.jl-public.is-themed .jl-public__sheet .jl-textarea:focus,
.jl-public.is-themed .jl-public__sheet select.jl-input:focus {
  border-color: var(--jl-theme-primary, var(--jl-cyan));
  outline: 2px solid color-mix(in srgb, var(--jl-theme-primary, var(--jl-cyan)) 35%, transparent);
  outline-offset: 1px;
}

.jl-public.is-themed.jl-public--surface-none .jl-public__sheet .jl-option:not(:has(input:checked)):not(.is-selected) .jl-option__label {
  text-shadow: 0 1px 2px color-mix(in srgb, #0b1220 50%, transparent);
}

.jl-public.is-themed.jl-public--surface-none .jl-public__sheet .jl-option:not(:has(input:checked)):not(.is-selected) .jl-option__mark {
  border-color: color-mix(in srgb, var(--jl-live-text, #ffffff) 55%, transparent);
  background: transparent;
}

.jl-public.is-themed .jl-public__sheet .jl-label,
.jl-public.is-themed .jl-public__sheet .jl-public__context {
  color: var(--jl-theme-surface-text, #0b1220);
}

.jl-public.is-themed .jl-public__sheet .jl-hint,
.jl-public.is-themed .jl-public__sheet .jl-public__context,
.jl-public.is-themed .jl-public__sheet .jl-public__detail {
  color: var(--jl-text-muted, #5b6575);
}

.jl-public.is-themed .jl-public__sheet .jl-wish-item__title,
.jl-public.is-themed .jl-public__sheet .jl-wish-item__title--link {
  color: var(--jl-theme-surface-text, #0b1220);
}

.jl-public.is-themed .jl-public__sheet .jl-wish-item__note,
.jl-public.is-themed .jl-public__sheet .jl-wish-item__merchant {
  color: var(--jl-text-muted, #5b6575);
}

.jl-public.is-themed .jl-badge--accent,
.jl-public.is-themed .jl-wish-claim .jl-badge--neutral,
.jl-public.is-themed .jl-wish-item__actions > .jl-badge--neutral {
  background: color-mix(in srgb, var(--jl-theme-accent, #f63174) 16%, transparent);
  color: var(--jl-theme-accent, #f63174);
  border-color: transparent;
}

/* Selected chrome uses option contract tokens (light tint + dark label). */
.jl-public.is-themed .jl-option:has(input:checked),
.jl-public.is-themed .jl-option.is-selected {
  background: var(--jl-option-selected-bg);
  border: 2px solid var(--jl-option-selected-border);
  box-shadow: none;
  color: var(--jl-option-selected-label);
}

.jl-public.is-themed .jl-option:has(input:checked) .jl-option__label,
.jl-public.is-themed .jl-option.is-selected .jl-option__label {
  color: var(--jl-option-selected-label);
  text-shadow: none;
}

.jl-public.is-themed .jl-option:has(input:checked) .jl-option__mark,
.jl-public.is-themed .jl-option.is-selected .jl-option__mark {
  border-color: var(--jl-option-selected-border);
  background: var(--jl-option-selected-border);
}

.jl-public.is-themed .jl-option:not(:has(input:checked)):not(.is-selected) {
  background: var(--jl-option-bg);
  border: 2px solid var(--jl-option-border);
  box-shadow: none;
  color: var(--jl-option-label);
}

.jl-public.is-themed .jl-option:not(:has(input:checked)):not(.is-selected) .jl-option__label {
  color: var(--jl-option-label);
}

.jl-public.is-themed .jl-step__pick-kicker {
  color: var(--jl-theme-accent, #f63174);
}

.jl-public.is-themed .jl-public__countdown-label {
  /* Always accent — never overridden by Countdown → Timer color */
  color: var(--jl-theme-accent, #f63174);
}

.jl-public.is-themed .jl-public__sheet .jl-public__count[data-live-primary-text] {
  color: inherit;
}

.jl-public--phone {
  width: 100%;
  max-width: 390px; /* editor preview mock stays phone-sized */
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  position: relative;
  padding-block: 0.85rem 1.25rem;
}

/* Mobile public: full-bleed, document scroll */
@media (max-width: 639.98px) {
  .jl-public--phone:not(.jl-public--preview) {
    max-width: none;
    width: 100%;
    margin: 0;
    border-radius: 0;
    overflow: visible;
    min-height: 100dvh;
    height: auto;
  }

}

/*
 * Desktop public — Linktree-style profile column:
 * ~580px wide, min full viewport height, grows with content (no clipped bottom).
 * Phone mock framing is only for .jl-public--preview in the editor.
 */
@media (min-width: 640px) {
  body:has(.jl-public--phone:not(.jl-public--preview)) {
    background: #e8eaef;
  }

  body.jl-public-body:has(.jl-public--has-bg-img:not(.jl-public--preview)) {
    background: #e8eaef;
  }

  .jl-public--phone:not(.jl-public--preview) {
    --jl-public-col: 580px;
    max-width: var(--jl-public-col);
    width: 100%;
    min-height: calc(100dvh - 2.5rem);
    height: auto;
    margin: 2.5rem auto 0;
    border-radius: 1.5rem 1.5rem 0 0;
    overflow: visible;
    box-shadow: 0 24px 32px rgba(11, 18, 32, 0.12);
    border: 0;
    border-bottom: 0;
  }

  .jl-public--phone:not(.jl-public--preview) .jl-public__scroll {
    overflow: visible;
    flex: 1 0 auto;
    min-height: 0;
  }

  /*
   * Desktop column (~580px): wallpaper scales to the column, not the viewport
   * (fixed attachment made the photo pixelated / mis-framed vs mobile).
   */
  .jl-public--phone.jl-public--has-bg-img:not(.jl-public--preview) {
    margin: 2.5rem auto 0;
    min-height: calc(100dvh - 2.5rem);
    border-radius: 1.5rem 1.5rem 0 0;
    box-shadow: 0 24px 32px rgba(11, 18, 32, 0.12);
    overflow: hidden;
    padding-top: 1.1rem;
    background: transparent !important;
    isolation: isolate;
    container-type: inline-size;
    container-name: jl-public-col;
  }

  .jl-public--phone.jl-public--has-bg-img:not(.jl-public--preview) > .jl-public__wallpaper {
    display: block;
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-size: cover;
    background-position: 50% 0%;
  }

  .jl-public--phone.jl-public--has-bg-img:not(.jl-public--preview)::before {
    content: none;
    display: none;
  }

  .jl-public--phone.jl-public--has-bg-img:not(.jl-public--preview) .jl-top-chrome {
    padding-inline: 1rem;
  }
}

.jl-public--phone.jl-public--preview {
  min-height: 100%;
  height: 100%;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  border-radius: var(--jl-screen-radius, inherit);
  padding-block: 0.65rem 0.85rem;
}

.jl-public--phone.jl-public--preview:not(.jl-public--has-bg-img) {
  background: var(--jl-live-bg, var(--jl-bg));
}

.jl-preview-frame__screen--surface {
  background: transparent;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.jl-preview-frame__screen--surface > .jl-public--preview,
.jl-preview-frame__screen--surface > [data-create-preview] {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  border-radius: var(--jl-screen-radius, inherit);
}

.jl-preview-frame__screen--surface > [data-create-preview] {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.jl-preview-frame__screen--surface > [data-create-preview][hidden] {
  display: none !important;
}

.jl-preview-frame__screen--surface > [data-create-preview] > .jl-public--preview {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  border-radius: var(--jl-screen-radius, inherit);
}

.jl-public__scroll {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.jl-public__scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Mobile public: page scrolls with the document (Instagram WebView friendly) */
@media (max-width: 639.98px) {
  .jl-public--phone:not(.jl-public--preview) {
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }

  .jl-public--phone:not(.jl-public--preview) .jl-public__scroll {
    overflow: visible;
    flex: 1 0 auto;
    min-height: 0;
  }
}

.jl-public--has-bg-img {
  background: transparent !important;
}

/* Wallpaper layer — fixed on live pages (Linktree), absolute in editor preview */
.jl-public__wallpaper {
  display: none;
  pointer-events: none;
  background-color: #0b1220;
  background-image: var(--jl-wallpaper);
  background-size: cover;
  background-position: 50% 0%;
  background-repeat: no-repeat;
}

.jl-public__wallpaper[hidden] {
  display: none !important;
}

.jl-public--has-bg-img > .jl-public__wallpaper {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
}

.jl-public--has-bg-img > .jl-public__wallpaper::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Dark scrim only — never reuse solid page color over a wallpaper */
  background: #0b1220;
  opacity: var(--jl-theme-overlay, 0.45);
}

/*
 * Live public wallpaper scope:
 * - Mobile full-bleed column = viewport → fixed layer OK.
 * - Desktop 580px column → absolute inside .jl-public (see min-width 640px rules).
 */
@media (max-width: 639.98px) {
  .jl-public--has-bg-img:not(.jl-public--preview) > .jl-public__wallpaper {
    position: fixed;
    inset: 0;
  }
}

.jl-public--has-bg-img > *:not(.jl-public__wallpaper) {
  position: relative;
  z-index: 1;
}

.jl-public--layout-cover .jl-public__identity {
  padding-top: 1.75rem;
}

.jl-public--layout-cover .jl-public__title {
  font-size: 1.85rem;
}

.jl-public--layout-editorial .jl-public__title {
  letter-spacing: -0.03em;
  font-weight: 600;
}

.jl-public--layout-editorial .jl-public__sheet {
  border-radius: 0.5rem;
}

.jl-public--radius-sharp .jl-public__sheet,
.jl-public--radius-sharp .jl-btn,
.jl-public--radius-sharp .jl-input,
.jl-public--radius-sharp .jl-option,
.jl-public--radius-sharp .jl-option__media,
.jl-public--radius-sharp .jl-step__pick,
.jl-public--radius-sharp .jl-step__pick-media {
  border-radius: 0.35rem;
}

.jl-public--radius-sharp .jl-public__sheet {
  --jl-option-radius: 0.35rem;
}

.jl-public--radius-sharp .jl-want-stage--stack .jl-options--media .jl-option__media,
.jl-public--radius-sharp .jl-options--stack.jl-options--media .jl-option__media {
  border-radius: 0.3rem;
}

.jl-public--density-compact .jl-public__main {
  gap: 0.85rem;
}

.jl-public--density-compact .jl-public__sheet {
  margin-block: 1.45rem 1.35rem;
  padding: 1rem;
}

.jl-public--density-compact.jl-public--surface-none .jl-public__sheet {
  margin-block: 1.5rem 1.25rem;
  padding: 0;
}

.jl-public--density-compact .jl-field {
  margin-bottom: 0.65rem;
}

.jl-public--density-compact .jl-options {
  gap: 0.45rem;
}

.jl-public--density-compact .jl-option__row {
  padding: 0.65rem 0.75rem;
}

.jl-public--density-compact .jl-want-stage {
  gap: 0.45rem;
}

.jl-public--density-roomy .jl-public__sheet {
  margin-block: 1.85rem 1.75rem;
  padding: 1.35rem 1.2rem;
}

.jl-public--density-roomy .jl-options {
  gap: 0.85rem;
}

.jl-public--has-bg-img .jl-public__identity {
  background: transparent !important;
}

.jl-public--has-bg-img .jl-public__identity-body {
  position: relative;
  z-index: 1;
}

.jl-public--has-bg-img .jl-public__legal,
.jl-public--has-bg-img .jl-public__legal a,
.jl-public--has-bg-img .jl-public__signature {
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(11, 18, 32, 0.35);
}

.jl-public--has-bg-img .jl-public__sheet {
  margin-top: 1.85rem;
  box-shadow: 0 4px 20px -2px rgba(11, 18, 32, 0.15), 0 2px 6px -1px rgba(11, 18, 32, 0.08);
}

.jl-public--has-bg-img.jl-public--surface-none .jl-public__sheet {
  margin-top: 1.6rem;
  box-shadow: none;
}

.jl-public--preview.jl-public--has-bg-img .jl-public__sheet {
  margin-top: 1.55rem;
}

.jl-public--preview.jl-public--has-bg-img.jl-public--surface-none .jl-public__sheet {
  margin-top: 1.35rem;
}
.jl-public--preview .jl-top-chrome {
  padding: 0.45rem 0.9rem 0.55rem;
  flex: 0 0 auto;
  position: relative;
  z-index: 5;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.jl-public--preview .jl-public__title {
  font-size: 1.35rem;
  line-height: 1.35;
}

.jl-public--preview .jl-public__owner {
  font-size: 1.25rem;
}

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

.jl-public--preview .jl-public__sheet {
  margin: 1.25rem var(--jl-public-gutter) 1.4rem;
  max-width: calc(100% - (2 * var(--jl-public-gutter)));
  box-sizing: border-box;
  overflow: visible;
}

.jl-public--preview .jl-public__countdown {
  margin: 0.65rem var(--jl-public-gutter) 0;
}

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

.jl-public--preview .jl-public__context {
  margin: 0.55rem var(--jl-public-gutter) 0;
}

.jl-public--preview .jl-public__sheet .jl-public__context {
  margin: 0;
}

.jl-public__main {
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.35rem 0 0.5rem;
}

.jl-public--phone .jl-public__main {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
}

.jl-public--preview .jl-public__main {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  padding: 0 0 0.35rem;
}

.jl-public__identity {
  position: relative;
  background: var(--jl-header-bg, var(--jl-bg));
  color: var(--jl-header-text, var(--jl-text));
  overflow: visible;
}

.jl-public__identity-body {
  position: relative;
  z-index: 1;
  padding: 1.75rem var(--jl-public-gutter) 0;
}

.jl-public--preview .jl-public__identity-body {
  padding: 1.15rem var(--jl-public-gutter) 0;
}

/* Keep title clear of the top chrome when byline is hidden */
.jl-public__identity-body:has(> .jl-public__byline[hidden]),
.jl-public__identity-body:not(:has(.jl-public__byline:not([hidden]))) {
  padding-top: 1.65rem;
}

.jl-public--preview .jl-public__identity-body:has(> .jl-public__byline[hidden]),
.jl-public--preview .jl-public__identity-body:not(:has(.jl-public__byline:not([hidden]))) {
  padding-top: 1.75rem;
}

.jl-public__identity:has(.jl-public__header:not([hidden])) .jl-public__identity-body {
  padding-top: 1.15rem;
}

.jl-public--preview .jl-public__identity {
  overflow: visible;
  flex-shrink: 0;
}

.jl-public__identity .jl-public__title {
  color: inherit;
  margin-top: 0;
  padding-top: 0.15em; /* avoid ascender clip with tight line-height */
}

.jl-public__title {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  letter-spacing: -0.025em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.jl-public__identity .jl-public__tagline {
  color: color-mix(in srgb, currentColor 68%, transparent);
}

.jl-flash-banner {
  max-width: 390px;
  margin: 1rem auto 0;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.jl-public__logo {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0;
  background: var(--jl-surface);
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(11, 18, 32, 0.08), var(--jl-shadow-sm);
}

.jl-public__byline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1rem;
  min-width: 0;
}

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

.jl-public__byline-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.jl-public__byline-meta[hidden] {
  display: none !important;
}

.jl-public__owner {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: inherit;
  min-width: 0;
  overflow-wrap: anywhere;
}

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

.jl-public__identity:has(.jl-public__header:not([hidden])) .jl-public__logo:not([hidden]) {
  width: 64px;
  height: 64px;
  margin-top: -32px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--jl-surface, #fff), var(--jl-shadow-sm);
}

.jl-public__identity:has(.jl-public__header:not([hidden])) .jl-public__byline {
  margin-top: 0;
}

.jl-identity-photo {
  border: 0;
  margin: 1rem 0 0;
  padding: 0;
  min-inline-size: 0;
}

.jl-identity-photo__hint {
  margin: 0.15rem 0 0.55rem;
}

.jl-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.jl-choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--jl-border);
  border-radius: 999px;
  background: var(--jl-surface);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.jl-choice:hover {
  background: var(--jl-bg);
}

.jl-choice:has(input:checked) {
  background: var(--jl-info);
}

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

.jl-choice__label {
  font-size: var(--jl-caption);
  font-weight: 500;
  color: var(--jl-text);
  line-height: 1.2;
}

.jl-identity-logo {
  margin-top: 0.75rem;
}

.jl-public__identity .jl-public__tagline {
  margin-bottom: 0;
}

.jl-public__tagline {
  color: var(--jl-text-muted);
  margin-bottom: 0.5rem;
}

.jl-public__tagline:empty {
  display: none;
}

/* No reserved slot under the title when description is empty */
.jl-public__identity-body:not(:has(.jl-public__tagline:not([hidden]))) .jl-public__title {
  margin-bottom: 0;
}

.jl-public__identity:not(:has(.jl-public__tagline:not([hidden]))) + .jl-public__countdown {
  margin-top: 0.75rem;
}

/* End stack — join CTA + legal sit in flow after content (scroll to see) */
.jl-public__end {
  flex: 0 0 auto;
  width: 100%;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  /* Match sheet side inset so the join CTA shares the content width */
  padding: 2.25rem 1rem 0.5rem;
  box-sizing: border-box;
}

/* When branding is hidden, keep legal with comfortable end spacing */
.jl-public__end:not(:has(.jl-public__join-footer:not([hidden]))) {
  padding-top: 1.5rem;
}

.jl-public__legal-bar {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  text-align: center;
  width: 100%;
}

.jl-public__legal {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3rem 0.4rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: var(--jl-text-muted, #5b6575);
}

.jl-public__legal a {
  color: inherit;
  text-decoration: none;
}

.jl-public__legal a:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
  color: var(--jl-live-text, var(--jl-text));
}

.jl-public__legal > span[aria-hidden] {
  opacity: 0.4;
  font-weight: 400;
}

.jl-public__signature {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.jl-public__signature[hidden] {
  display: none !important;
}

.jl-public__signature:hover .jl-public__signature-text {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.jl-public__signature-text {
  font-size: inherit;
}

.jl-public__join-mark {
  width: auto;
  height: 0.875rem;
  display: block;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  flex-shrink: 0;
  /* Keep mark readable on dark wallpapers */
  filter: none;
}

.jl-public--has-bg-img .jl-public__join-mark {
  filter: brightness(0) invert(1);
}

/* Join footer — in-flow; width matches the phone content column */
.jl-public__join-footer {
  flex: 0 0 auto;
  width: 100%;
  max-width: 22rem;
  display: flex;
  justify-content: center;
}

@media (min-width: 640px) {
  .jl-public--phone:not(.jl-public--preview) .jl-public__join-footer {
    max-width: 26rem;
  }
}

.jl-public__join-footer[hidden] {
  display: none !important;
}

.jl-public__footer-cta {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  margin: 0;
  padding: 0.8rem 1.35rem;
  border: 1px solid rgba(11, 18, 32, 0.06);
  border-radius: 999px;
  background: var(--jl-surface);
  color: var(--jl-text);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.06), 0 4px 14px rgba(11, 18, 32, 0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.jl-public__footer-cta-label {
  display: inline;
  white-space: normal;
}

.jl-public__footer-cta:hover:not(:disabled) {
  background: var(--jl-surface);
  box-shadow: 0 2px 4px rgba(11, 18, 32, 0.08), 0 8px 20px rgba(11, 18, 32, 0.12);
  transform: translateY(-1px);
}

.jl-public__footer-cta:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.08);
}

.jl-public__footer-cta:disabled {
  cursor: default;
  opacity: 0.92;
  transform: none;
}

.jl-public__header:not([hidden]) {
  display: block;
  width: 100%;
  height: 148px;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
}

.jl-hub {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  text-align: center;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.jl-hub__scroll {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

@media (max-width: 639.98px) {
  .jl-hub {
    max-width: none;
    overflow: visible;
  }

  .jl-hub__scroll {
    overflow: visible;
    flex: 1 0 auto;
  }
}

@media (min-width: 640px) {
  body:has(.jl-hub) {
    background: #e8eaef;
  }

  .jl-hub {
    max-width: 580px;
    min-height: calc(100dvh - 2.5rem);
    height: auto;
    margin: 2.5rem auto 0;
    border-radius: 1.5rem 1.5rem 0 0;
    overflow: visible;
    box-shadow: 0 24px 32px rgba(11, 18, 32, 0.12);
    border: 0;
    background: var(--jl-bg);
    padding-bottom: 1.5rem;
  }

  .jl-hub__scroll {
    overflow: visible;
    flex: 1 0 auto;
  }
}

.jl-hub__head {
  position: relative;
  margin: 0 0 1.5rem;
  background: var(--jl-header-bg, var(--jl-bg));
  color: var(--jl-header-text, var(--jl-text));
  overflow: hidden;
}

.jl-hub__head-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.jl-hub__head-inner {
  position: relative;
  z-index: 1;
  padding: 1.75rem 1.35rem 1.5rem;
}

.jl-hub__head--media .jl-hub__head-inner {
  padding-top: 4.5rem;
}

.jl-hub__avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  background: var(--jl-info);
  box-shadow: 0 0 0 3px var(--jl-surface, #fff);
}

.jl-hub__avatar--mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  color: inherit;
  background: color-mix(in srgb, currentColor 12%, transparent);
}

.jl-hub__title {
  font-size: var(--jl-title);
  margin: 0 0 0.25rem;
  color: inherit;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.jl-hub__badge-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.35rem 0 0.85rem;
}

.jl-hub__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.22rem 0.75rem;
  font-family: var(--jl-font);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--jl-ink);
  background: var(--jl-surface, #ffffff);
  border: 1px solid var(--jl-border, #e6e9ef);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.04);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.jl-hub__badge:hover {
  background: var(--jl-bg, #f8fafc);
  border-color: color-mix(in srgb, var(--jl-ink) 25%, var(--jl-border));
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(11, 18, 32, 0.06);
}

.jl-hub__badge:active {
  transform: translateY(0);
}

.jl-hub__badge:focus-visible {
  outline: 2px solid var(--jl-ink);
  outline-offset: 2px;
}

.jl-hub__badge-at {
  color: var(--jl-text-muted);
  font-weight: 500;
}

.jl-hub__badge.is-copied {
  background: var(--jl-inverse);
  color: #ffffff;
  border-color: var(--jl-ink);
  transform: scale(1.02);
}

.jl-hub__badge.is-copied .jl-hub__badge-at {
  color: rgba(255, 255, 255, 0.7);
}

.jl-hub__head--media .jl-hub__badge {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--jl-ink);
  backdrop-filter: blur(8px);
}

.jl-hub__handle {
  color: color-mix(in srgb, currentColor 68%, transparent);
  margin: 0 0 0.75rem;
  font-size: var(--jl-caption);
}

.jl-hub__bio {
  color: color-mix(in srgb, currentColor 72%, transparent);
  margin: 0 auto;
  max-width: 28rem;
  line-height: 1.45;
}

.jl-hub__lists {
  list-style: none;
  margin: 0;
  padding: 0 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  flex: 1 0 auto;
}

.jl-hub .jl-empty {
  margin: 0 1rem;
}

.jl-hub__list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.125rem;
  background: var(--jl-surface);
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius);
  color: var(--jl-text);
  text-decoration: none;
  transition: background 0.15s ease;
}

.jl-hub__list:hover {
  background: var(--jl-bg);
}

.jl-hub__list-name {
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jl-profile-handle__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.jl-profile-handle__prefix {
  font-size: var(--jl-caption);
  font-weight: 500;
  color: var(--jl-text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.jl-profile-handle__row .jl-input {
  flex: 1 1 10rem;
  min-width: 0;
  max-width: 18rem;
}

.jl-profile-avatar__stack {
  width: 100%;
  max-width: 28rem;
}

.jl-upload--avatar .jl-upload__preview,
.jl-profile-avatar__preview {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
}

.jl-profile-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: var(--jl-border);
}

.jl-profile-avatar__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--jl-info);
  color: var(--jl-text);
  font-size: 1.5rem;
  font-weight: 600;
}

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

.jl-input--area {
  resize: vertical;
  min-height: 5.5rem;
  line-height: 1.45;
}

.jl-public__countdown {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.75rem var(--jl-public-gutter) 0;
  padding: 0;
  background: transparent;
  border: 0;
  /* Digits / date: explicit timer color, else body text */
  color: var(--jl-countdown-color, var(--jl-live-text, var(--jl-text)));
}

.jl-public__countdown-label {
  margin: 0;
  font-size: var(--jl-caption);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--jl-theme-accent, var(--jl-magenta, #f63174));
}

.jl-public__countdown-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.85rem 1.15rem;
}

.jl-public__countdown-grid[hidden] {
  display: none !important;
}

.jl-public__countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  min-width: 1.75rem;
}

.jl-public__countdown-num {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: inherit;
  font-variant-numeric: tabular-nums;
}

.jl-public__countdown-unit-label {
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  color: inherit;
  opacity: 0.55;
}

.jl-public__countdown-ends {
  margin: 0;
  font-size: var(--jl-caption);
  font-weight: 400;
  line-height: 1.35;
  color: inherit;
  opacity: 0.62;
}

.jl-public__countdown-ends[data-countdown-ends-primary] {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  opacity: 1;
}

.jl-segment {
  display: grid;
  gap: 0.55rem;
}

.jl-segment__opt {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.85rem 0.95rem;
  background: var(--jl-bg);
  border: 1.5px solid var(--jl-border);
  border-radius: var(--jl-radius-md);
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.jl-segment__opt:hover {
  background: var(--jl-surface);
}

.jl-segment__opt:has(input:checked) {
  background: var(--jl-info);
  border-color: var(--jl-border);
  box-shadow: var(--jl-shadow-sm);
}

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

.jl-segment__copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.jl-segment__title {
  font-size: var(--jl-body);
  font-weight: 500;
  color: var(--jl-text);
  line-height: 1.3;
}

.jl-segment__hint {
  font-size: var(--jl-caption);
  font-weight: 400;
  color: var(--jl-text-muted);
  line-height: 1.4;
}

.jl-public__question {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 0;
}

.jl-public__detail {
  margin: 0;
  color: var(--jl-text-muted);
  font-size: var(--jl-caption);
  line-height: 1.45;
}

.jl-public__context {
  margin: 1rem var(--jl-public-gutter) 0;
  font-size: var(--jl-caption);
  color: var(--jl-text-muted);
  line-height: 1.4;
}

.jl-public__sheet .jl-public__context {
  margin: 0;
}

.jl-public__count {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--jl-cyan);
}

.jl-public__stats .jl-public__count {
  color: var(--jl-cyan);
}

.jl-public__stats {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
  padding: 0.75rem 0.85rem;
  background: var(--jl-bg);
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius);
}

.jl-public__stats-total {
  margin: 0;
  font-size: var(--jl-caption);
  color: var(--jl-text-muted);
  line-height: 1.4;
}

.jl-public__stats-breakdown {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* One option per line: its name, and its votes on the right. */
.jl-vote-opt {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: var(--jl-caption);
  line-height: 1.35;
  color: var(--jl-ink);
}

.jl-vote-opt__label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.jl-vote-opt__votes {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* The option with the most votes is the only one in bold, once anyone has voted. */
.jl-vote-opt.is-leader .jl-vote-opt__label {
  font-weight: 700;
}

/* Results sit in the option's own name row: the row fills, behind the name, to the option's share,
   and the count and percent sit at its end. Fills use the text's own colour, so any background works. */
.jl-option__row {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.jl-option__row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: color-mix(in srgb, currentColor 14%, transparent);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: -1;
}

.jl-options.is-results .jl-option__row::before {
  width: var(--p, 0%);
}

.jl-option.is-leader .jl-option__row::before {
  background: color-mix(in srgb, var(--jl-cyan) 38%, transparent);
}

.jl-option__votes {
  display: none;
  margin-left: auto;
  padding-left: 0.5rem;
  white-space: nowrap;
  font-size: var(--jl-caption);
  font-variant-numeric: tabular-nums;
  color: inherit;
}

.jl-option__votes b {
  font-weight: 700;
}

.jl-options.is-results .jl-option__votes {
  display: inline;
}

.jl-results-toggle {
  appearance: none;
  border: 0;
  background: none;
  padding: 0.2rem 0;
  font: inherit;
  font-size: var(--jl-caption);
  color: var(--jl-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* After voting: the same numbers, read-only, under the receipt. */
.jl-vote-results {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.jl-vote-results__title {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jl-text-muted);
}

.jl-vote-results__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.jl-vote-results__row {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.5rem 0.55rem 0.85rem;
  border-radius: var(--jl-radius-md);
  background: var(--jl-surface-muted);
  color: var(--jl-ink);
  font-size: var(--jl-caption);
}

.jl-vote-results__fill {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -1;
  border-radius: inherit;
  background: color-mix(in srgb, var(--jl-cyan) 22%, transparent);
  transition: width 0.5s ease;
}

.jl-vote-results__label {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 500;
}

.jl-vote-results__figures {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.jl-vote-results__figures b {
  font-size: 1rem;
  font-weight: 800;
}

.jl-vote-results__pct {
  min-width: 3.25rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--jl-surface);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.jl-vote-results__row.is-leader {
  color: #0b1220;
}

.jl-vote-results__row.is-leader .jl-vote-results__fill {
  background: linear-gradient(90deg, var(--jl-cyan), color-mix(in srgb, var(--jl-cyan) 60%, #ffffff));
}

.jl-vote-results__row.is-leader .jl-vote-results__label {
  font-weight: 700;
}

.jl-vote-results__row.is-leader .jl-vote-results__pct {
  background: rgba(11, 18, 32, 0.14);
  color: #0b1220;
}

.jl-public__stats[hidden],
.jl-vote-opt[hidden] {
  display: none !important;
}

/* Voting Results Breakdown (Post-Vote & Results Display) */

.jl-public__sheet {
  /* Default option/field chrome — themed sheets override these. */
  --jl-option-bg: var(--jl-bg);
  --jl-option-border: var(--jl-border);
  --jl-option-label: var(--jl-ink);
  --jl-option-selected-bg: var(--jl-info);
  --jl-option-selected-border: var(--jl-cyan);
  --jl-option-selected-label: #0b1220;
  --jl-option-radius: var(--jl-radius-md);
  --jl-field-bg: var(--jl-surface);
  --jl-field-border: var(--jl-border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem var(--jl-public-gutter) 1.55rem;
  padding: 1.25rem 1.15rem;
  background: var(--jl-surface);
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius-md);
  max-width: calc(100% - (2 * var(--jl-public-gutter)));
  box-sizing: border-box;
  /* clip-x alone can force y-clip in some engines and shave option borders */
  overflow: visible;
  min-width: 0;
}

.jl-public__sheet > form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  min-width: 0;
  max-width: 100%;
}

.jl-public__sheet > .jl-msg:last-child {
  margin-bottom: 0;
}

.jl-public__sheet .jl-empty {
  margin: 0;
}

.jl-public__sheet .jl-field {
  margin: 0;
}

.jl-public__sheet .jl-btn--block {
  margin: 0;
}

.jl-options {
  /* Tokens inherit from .jl-public__sheet when themed. Do not redefine --jl-option-* here —
     that would shadow the sheet contract and kill borders on surface-none / glass. */
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}

.jl-options legend.jl-label {
  display: block;
  float: none;
  width: auto;
  padding: 0;
  margin: 0;
}

.jl-option {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  background: var(--jl-option-bg, var(--jl-bg));
  /* Fixed 2px — selected only swaps color (no extra focus ring / layout jump). */
  border: 2px solid var(--jl-option-border, var(--jl-border));
  border-radius: var(--jl-option-radius, var(--jl-radius-md));
  color: var(--jl-option-label, var(--jl-ink));
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  /* Clip media + footer so selected fill respects the same radius on all corners. */
  overflow: hidden;
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, color 0.12s ease;
}

.jl-option:hover {
  background: color-mix(in srgb, var(--jl-option-label) 4%, var(--jl-option-bg));
}

.jl-option:focus-within {
  outline: none;
}

/* Keyboard: tint border only when not already showing selected chrome. */
.jl-option:has(.jl-option__input:focus-visible):not(:has(input:checked)):not(.is-selected) {
  border-color: var(--jl-option-selected-border, var(--jl-cyan));
}

.jl-option:has(input:checked),
.jl-option.is-selected {
  background: var(--jl-option-selected-bg);
  border: 2px solid var(--jl-option-selected-border);
  box-shadow: none;
  color: var(--jl-option-selected-label);
}

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

.jl-option__input:focus,
.jl-option__input:focus-visible {
  outline: none;
}

.jl-option__media {
  display: none;
}

.jl-options--media .jl-option__media {
  display: block;
  position: relative;
  background: color-mix(in srgb, var(--jl-ink) 4%, var(--jl-bg));
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Stack + photos: compact thumb + label row (like the marketing mock) */
.jl-want-stage--stack .jl-options--media .jl-option--stack,
.jl-options--stack.jl-options--media .jl-option {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  padding: 0.4rem 0.55rem 0.4rem 0.4rem;
}

.jl-want-stage--stack .jl-options--media .jl-option__media,
.jl-options--stack.jl-options--media .jl-option__media {
  width: 4.75rem;
  height: 4.75rem;
  aspect-ratio: 1 / 1;
  border-radius: calc(var(--jl-option-radius, var(--jl-radius-md)) - 2px);
  overflow: hidden;
  flex: 0 0 auto;
}

.jl-want-stage--stack .jl-options--media .jl-option__img,
.jl-options--stack.jl-options--media .jl-option__img {
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.jl-want-stage--stack .jl-options--media .jl-option__initial,
.jl-options--stack.jl-options--media .jl-option__initial {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  font-size: 1.25rem;
}

.jl-want-stage--stack .jl-options--media .jl-option__row,
.jl-options--stack.jl-options--media .jl-option__row {
  padding: 0.15rem 0.15rem 0.15rem 0;
}

.jl-option__img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.jl-public [hidden] {
  display: none !important;
}

.jl-option__img[hidden],
.jl-option__initial[hidden],
.jl-public__context[hidden],
.jl-public__detail[hidden],
.jl-public__header[hidden],
.jl-public__logo[hidden] {
  display: none !important;
}

.jl-option__initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  aspect-ratio: inherit;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: color-mix(in srgb, var(--jl-option-label, var(--jl-text-muted)) 72%, transparent);
}

.jl-option__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.85rem 0.95rem;
  background: transparent;
}

.jl-option__mark {
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--jl-option-label, var(--jl-ink)) 35%, transparent);
  background: transparent;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.jl-option:has(input:checked) .jl-option__mark,
.jl-option.is-selected .jl-option__mark {
  border-color: var(--jl-option-selected-border, var(--jl-cyan));
  background: var(--jl-option-selected-border, var(--jl-cyan));
}

.jl-option:has(input:checked) .jl-option__mark::after,
.jl-option.is-selected .jl-option__mark::after {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--jl-surface);
}

.jl-option__label {
  font-weight: 500;
  line-height: 1.35;
  min-width: 0;
  color: inherit;
  user-select: none;
  -webkit-user-select: none;
}

.jl-option:has(input:checked) .jl-option__label,
.jl-option.is-selected .jl-option__label {
  color: var(--jl-option-selected-label, #0b1220);
  text-shadow: none;
}

.jl-wish-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.jl-people-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.jl-people-list__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--jl-border);
}

.jl-people-list__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.jl-people-list__row:first-child {
  padding-top: 0;
}

.jl-people-list__person {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.jl-people-list__avatar {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--jl-cyan) 16%, var(--jl-bg));
  border: 1px solid var(--jl-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.jl-people-list__avatar--mark {
  background: color-mix(in srgb, var(--jl-cyan) 18%, white);
}

.jl-people-list__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jl-people-list__avatar-initial {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--jl-ink);
  line-height: 1;
}

.jl-people-list__copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.jl-people-list__name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  min-width: 0;
}

.jl-people-list__name {
  font-weight: 600;
  font-size: var(--jl-text-body);
  color: var(--jl-ink);
  line-height: 1.3;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jl-people-list__email {
  font-size: var(--jl-app-meta);
  color: var(--jl-text-muted);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jl-people-list__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex-shrink: 0;
}

.jl-wish-sheet-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  margin: 0 0 0.65rem;
}

/* Empty head (no cart/tip) still sat in the flex step and added top gap. */
.jl-wish-sheet-head:not(:has(> :not([hidden]))) {
  display: none;
  margin: 0;
}

.jl-wish-sheet-head:has([data-wish-cart-dock]:not([hidden])) {
  justify-content: space-between;
}

/* "You're giving 2 gifts · Reserve them": floats at the bottom of the screen on the
   real page so it stays in reach while you keep scrolling; inline in the editor preview. */
.jl-wish-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 1 auto;
  min-width: 0;
  padding: 0.35rem 0.35rem 0.35rem 0.5rem;
  border: 1px solid var(--jl-border);
  border-radius: 999px;
  background: var(--jl-surface);
  color: var(--jl-text);
  box-shadow: 0 14px 34px -14px rgba(11, 18, 32, 0.45);
}

.jl-wish-cart.is-floating {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  width: max-content;
  max-width: calc(100vw - 1.5rem);
  transform: translateX(-50%);
  animation: jl-gift-dock-in 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes jl-gift-dock-in {
  from { opacity: 0; transform: translate(-50%, 16px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

body.jl-has-gift-dock .jl-public__end {
  padding-bottom: 5.5rem;
}

/* Big screens: the list sits on the right, so the bar waits in that corner. */
@media (min-width: 900px) {
  .jl-wish-cart.is-floating {
    left: auto;
    right: 2rem;
    bottom: 2rem;
    transform: none;
    animation-name: jl-gift-dock-in-corner;
  }
}

@keyframes jl-gift-dock-in-corner {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.jl-wish-cart__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--jl-magenta) 14%, #ffffff);
  color: #a3154f;
}

.jl-wish-cart__icon .jl-gift-ico {
  width: 17px;
  height: 17px;
}

.jl-wish-cart .jl-wish-cart__go {
  min-height: 2.4rem;
  padding: 0 1.1rem;
  border-radius: 999px !important;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .jl-wish-cart.is-floating {
    animation: none;
  }
}

/* The confirm step lists the gifts itself; the bar steps aside. */
body:has([data-jl-current-step="2"]) .jl-wish-cart.is-floating {
  display: none;
}

/* Outside the page the theme's variables don't reach it, so it carries its own. */
.jl-wish-cart.is-floating {
  --jl-surface: #ffffff;
  --jl-text: #0b1220;
  --jl-border: #e6e9ef;
  font-family: var(--jl-font, inherit);
}

.jl-wish-cart[hidden] {
  display: none !important;
}

.jl-wish-cart__copy {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--jl-text);
  white-space: nowrap;
}

.jl-tip {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  margin-left: auto;
}

.jl-tip > summary {
  list-style: none;
}

.jl-tip > summary::-webkit-details-marker {
  display: none;
}

.jl-wish-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem;
  background: var(--jl-surface);
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius);
}

.jl-wish-item.is-claimed {
  background: var(--jl-success);
}

.jl-wish-item__media {
  position: relative;
  flex: 0 0 5.5rem;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: calc(var(--jl-radius) - 2px);
  border: 1px solid var(--jl-border);
  background: var(--jl-bg);
  overflow: hidden;
  align-self: center;
}

.jl-wish-item__media--empty {
  background: var(--jl-bg);
  border-style: dashed;
}

.jl-wish-item__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--jl-bg);
}

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

.jl-wish-item__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
  justify-content: center;
}

.jl-wish-item__aside {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.35rem;
  align-self: center;
}

.jl-wish-item__aside[hidden] {
  display: none !important;
}

.jl-wish-item__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  min-height: 2rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 9999px;
}

.jl-wish-item__aside .jl-badge {
  white-space: nowrap;
}

/* Narrow editor phone: keep photo + copy readable; CTA under the title */
.jl-public--preview .jl-wish-item {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  grid-template-areas:
    "media body"
    "media aside";
  align-items: start;
  column-gap: 0.65rem;
  row-gap: 0.45rem;
  padding: 0.7rem;
}

.jl-public--preview .jl-wish-item__media {
  grid-area: media;
  flex: none;
  width: 4.25rem;
  height: 4.25rem;
  align-self: start;
}

.jl-public--preview .jl-wish-item__body {
  grid-area: body;
  min-width: 0;
}

.jl-public--preview .jl-wish-item__aside {
  grid-area: aside;
  align-items: flex-start;
  align-self: start;
}

.jl-public--preview .jl-wish-item__cta {
  min-height: 1.85rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
}

.jl-public--preview .jl-wish-item__title {
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

.jl-wish-item__merchant {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.2rem;
  font-size: var(--jl-caption);
  color: var(--jl-text-muted);
  line-height: 1.3;
  min-width: 0;
}

.jl-wish-item__merchant span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jl-wish-item__favicon {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  border-radius: 2px;
  object-fit: contain;
}

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

.jl-wish-item__title {
  display: block;
  min-width: 0;
  font-weight: 600;
  margin: 0;
  color: var(--jl-ink);
  line-height: 1.35;
  text-decoration: none;
  /* Long titles and URL-like words wrap instead of pushing the card wider. */
  overflow-wrap: anywhere;
}

a.jl-wish-item__title--link {
  color: var(--jl-ink);
  text-decoration: none;
  cursor: pointer;
}

a.jl-wish-item__title--link:hover,
a.jl-wish-item__title--link:focus-visible {
  text-decoration: underline;
  outline: none;
}

a.jl-wish-item__title[aria-disabled="true"] {
  cursor: default;
  pointer-events: none;
  text-decoration: none;
}

/* Gift price: an amount with its currency picked next to it. */
.jl-price-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.5rem;
  gap: 0.5rem;
}

.jl-wish-item__price {
  margin: 0.2rem 0 0;
  font-size: var(--jl-caption);
  font-weight: 600;
  color: var(--jl-ink);
  font-variant-numeric: tabular-nums;
}

.jl-wish-item__note {
  margin: 0.25rem 0 0;
  font-size: var(--jl-caption);
  color: var(--jl-text-muted);
  line-height: 1.4;
}

.jl-wish-item__claim-by {
  margin: 0.3rem 0 0;
  font-size: var(--jl-caption);
  color: var(--jl-text-muted);
  line-height: 1.35;
}

.jl-wish-item__by {
  margin: 0.3rem 0 0;
  font-size: var(--jl-caption);
  color: var(--jl-text-muted);
  line-height: 1.35;
}

/* Public author header: owner first, then full members. Never shows emails. */
/* Jump between people: sticky chips above the sections, scrolling sideways on phones. */
.jl-wish-jump {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0 0 1rem;
  padding: 0.5rem 0;
  background: var(--jl-theme-surface, var(--jl-surface, #ffffff));
  -webkit-backdrop-filter: var(--jl-theme-surface-backdrop, none);
  backdrop-filter: var(--jl-theme-surface-backdrop, none);
}

.jl-wish-jump__row {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.jl-wish-jump__row::-webkit-scrollbar {
  display: none;
}

.jl-wish-jump__chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.25rem;
  padding: 0.2rem 0.65rem 0.2rem 0.25rem;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 7%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 14%, transparent);
  color: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.jl-wish-jump__chip:hover {
  background: color-mix(in srgb, currentColor 12%, transparent);
  color: inherit;
  text-decoration: none;
}

.jl-wish-jump__chip.is-active {
  background: var(--jl-theme-primary, var(--jl-ink, #0b1220));
  color: var(--jl-theme-primary-text, #ffffff);
  box-shadow: none;
}

.jl-wish-jump__face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--jl-cyan) 22%, #ffffff);
  color: var(--jl-on-accent);
  font-size: 0.625rem;
  font-weight: 700;
}

.jl-wish-jump__face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jl-wish-jump__count {
  min-width: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 14%, transparent);
  font-size: 0.75rem;
  text-align: center;
}

.jl-wish-section {
  scroll-margin-top: 4rem;
}

/* Shared wishlist in sections: each person's gifts under their face and name. */
.jl-wish-section + .jl-wish-section {
  margin-top: 1.5rem;
}

.jl-wish-section__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.75rem;
}

.jl-wish-section__avatar {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--jl-cyan) 18%, #ffffff);
  color: var(--jl-on-accent);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 0 0 2px var(--jl-theme-surface, var(--jl-surface, #ffffff));
}

.jl-wish-section__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jl-wish-section__who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.jl-wish-section__name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jl-wish-section__count {
  font-size: var(--jl-caption);
  opacity: 0.7;
}

.jl-authors {
  margin: 0 0 var(--jl-space);
}

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

.jl-authors__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.jl-authors__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.jl-authors__avatar {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: var(--jl-radius-full);
  overflow: hidden;
  background: color-mix(in srgb, var(--jl-cyan) 16%, var(--jl-bg));
  border: 1px solid var(--jl-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.jl-authors__avatar--mark {
  background: color-mix(in srgb, var(--jl-cyan) 18%, white);
}

.jl-authors__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jl-authors__initial {
  font-size: var(--jl-caption);
  font-weight: 600;
}

.jl-authors__name {
  font-size: var(--jl-caption);
  overflow-wrap: anywhere;
}

.jl-wish-item__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.jl-wish-item__actions:not(:has(> :not([hidden]))) {
  display: none;
  margin: 0;
}

.jl-wish-unfurl-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius);
  background: var(--jl-bg);
}

.jl-wish-unfurl-preview__loading {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--jl-caption);
  color: var(--jl-text-muted);
}

.jl-wish-unfurl-preview__loading[hidden],
.jl-wish-unfurl-preview__body[hidden] {
  display: none;
}

.jl-wish-unfurl-preview__body {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  width: 100%;
}

.jl-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--jl-border);
  border-top-color: var(--jl-cyan, #01C1D9);
  border-radius: 50%;
  animation: jl-spin 0.7s linear infinite;
  flex: 0 0 auto;
}

@keyframes jl-spin {
  to { transform: rotate(360deg); }
}

.jl-wish-edit > summary {
  list-style: none;
  cursor: pointer;
}

.jl-wish-edit > summary::-webkit-details-marker {
  display: none;
}

.jl-wish-edit__form {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--jl-border);
}

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

.jl-wish-unfurl-preview__thumb {
  flex: 0 0 3rem;
  width: 3rem;
  height: 3rem;
  border-radius: calc(var(--jl-radius) - 2px);
  border: 1px solid var(--jl-border);
  object-fit: contain;
  background: var(--jl-surface);
}

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

.jl-wish-unfurl-preview__meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.jl-wish-unfurl-preview__merchant {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--jl-caption);
  color: var(--jl-text-muted);
}

.jl-wish-unfurl-preview__title {
  margin: 0;
  font-size: var(--jl-caption);
  font-weight: 600;
  color: var(--jl-ink);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jl-settings-items-table .jl-wish-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.jl-settings-items-table .jl-wish-row__thumb {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: calc(var(--jl-radius) - 2px);
  border: 1px solid var(--jl-border);
  object-fit: contain;
  background: var(--jl-bg);
}

.jl-settings-items-table .jl-wish-row__thumb--empty {
  background: var(--jl-bg);
  border-style: dashed;
}

.jl-settings-items-table .jl-wish-row__merchant {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
}

.jl-settings-items-table .jl-wish-row__merchant .jl-wish-item__favicon {
  flex: 0 0 auto;
}

.jl-wish-claim {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 36px;
}

.jl-wish-checkout__list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.jl-wish-checkout__list[hidden] {
  display: none !important;
}

.jl-wish-checkout__row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem;
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius);
  background: var(--jl-bg);
}

.jl-wish-checkout__thumb {
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: calc(var(--jl-radius) - 2px);
  border: 1px solid var(--jl-border);
  object-fit: contain;
  background: var(--jl-surface);
}

.jl-wish-checkout__thumb--empty {
  background: var(--jl-surface);
  border-style: dashed;
}

.jl-wish-checkout__name {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: var(--jl-caption);
  font-weight: 600;
  color: var(--jl-text);
  line-height: 1.35;
}

.jl-wish-checkout__remove {
  flex: 0 0 auto;
}

.jl-public.is-themed .jl-wish-cart,
.jl-public.is-themed .jl-wish-form .jl-step__pick,
.jl-public.is-themed .jl-wish-checkout__row {
  --jl-bg: #fafbfc;
  --jl-surface: #ffffff;
  --jl-text: #0b1220;
  --jl-text-muted: #5b6575;
  --jl-border: #e6e9ef;
}

/* A picked gift: white with a check, clearly different from "Gift this" even when
   the list's theme color is set inline on the button. */
.jl-btn.is-wish-added {
  background: var(--jl-surface) !important;
  color: var(--jl-text) !important;
  border-color: transparent !important;
  box-shadow: inset 0 0 0 2px var(--jl-theme-primary, #0b1220);
}

.jl-btn.is-wish-added .jl-gift-ico {
  display: none;
}

.jl-btn.is-wish-added::before {
  content: "";
  width: 0.5rem;
  height: 0.85rem;
  margin: -0.15rem 0.45rem 0 0.05rem;
  border: solid currentColor;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.jl-step {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.jl-step[hidden] {
  display: none !important;
}

.jl-step__lead {
  margin: 0;
}

.jl-step__pick {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  margin: 0 0 0.85rem;
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius-md);
  background: var(--jl-bg);
}

.jl-step__pick[hidden] {
  display: none !important;
}

.jl-step__pick-media {
  position: relative;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border-radius: 0.55rem;
  overflow: hidden;
  background: color-mix(in srgb, var(--jl-ink) 6%, var(--jl-bg));
}

.jl-step__pick-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jl-step__pick-initial {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--jl-ink);
}

.jl-step__pick-initial[hidden] {
  display: none !important;
}

.jl-step__pick-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.jl-step__pick-kicker {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--jl-text-muted);
}

.jl-step__pick-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--jl-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jl-step__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.jl-public__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
}

/* —— Sitebuilder —— */
.jl-builder {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .jl-builder {
    grid-template-columns: minmax(360px, 440px) minmax(0, 1fr);
    gap: 1.5rem;
  }

  .jl-builder--create {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.75rem;
    max-width: none;
  }

  .jl-builder:has([data-preview-root][data-viewport="mobile"]):not(.jl-builder--create) {
    grid-template-columns: minmax(360px, 440px) minmax(320px, 400px);
  }

  .jl-builder--create .jl-builder__preview {
    position: sticky;
    top: 5rem;
    align-self: start;
  }

  
}

.jl-builder__editor {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
  container-type: inline-size;
  container-name: builder-editor;
}

.jl-builder__preview {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  min-width: 0;
}

.jl-builder__preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
}

.jl-builder__preview-label {
  font-size: var(--jl-caption);
  font-weight: 500;
  color: var(--jl-text-muted);
}

.jl-builder__tab-hint {
  margin: 0 0 0.15rem;
  color: var(--jl-text-muted);
  font-size: var(--jl-caption);
}

.jl-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0.35rem 0 1.15rem;
  padding: 0.25rem;
  background: var(--jl-bg);
  border: 1px solid var(--jl-border);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
}

.jl-tabs__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  color: var(--jl-text-muted);
  font-size: var(--jl-caption);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
}

.jl-tabs__item:hover {
  color: var(--jl-text);
  text-decoration: none;
}

.jl-tabs__item.is-active {
  background: var(--jl-surface);
  color: var(--jl-text);
  font-weight: 600;
  box-shadow: var(--jl-shadow-sm);
}

.jl-stat--after-meta {
  margin-top: 1rem;
}

.jl-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--jl-border);
  border-radius: 999px;
  background: var(--jl-surface);
  color: var(--jl-text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
}

.jl-chip .jl-kind-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.jl-chip.is-active .jl-kind-icon {
  color: #fff;
}

.jl-chip span {
  font-variant-numeric: tabular-nums;
  color: var(--jl-text);
  font-weight: 600;
}

.jl-chip:hover {
  color: var(--jl-text);
  text-decoration: none;
  border-color: color-mix(in srgb, var(--jl-text-muted) 28%, var(--jl-border));
}

.jl-chip.is-active {
  background: var(--jl-text);
  border-color: var(--jl-text);
  color: #fff;
}

.jl-chip.is-active span {
  color: #fff;
  opacity: 0.85;
}

/* —— Dashboard detail pane (master–detail) —— */
.jl-builder__preview {
  min-height: 18rem;
}

@keyframes jl-pane-in {
  from {
    opacity: 0;
    transform: translateX(0.75rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.jl-preview-stage {
  width: 100%;
  display: flex;
  justify-content: stretch;
}

.jl-preview-frame {
  width: 100%;
  --jl-phone-radius: 2rem;
  --jl-phone-bezel: 0.65rem;
  background: #0b1220;
  border: 1px solid #1a2333;
  box-shadow: var(--jl-shadow);
  overflow: hidden;
  border-radius: var(--jl-phone-radius);
  padding: var(--jl-phone-bezel);
  transition: max-width 0.18s ease, border-radius 0.18s ease, height 0.18s ease;
}

[data-preview-root][data-viewport="desktop"] .jl-preview-frame {
  --jl-phone-radius: 0.85rem;
  --jl-phone-bezel: 0.55rem;
  max-width: none;
  width: 100%;
  aspect-ratio: auto;
  height: min(900px, calc(100vh - 6.25rem));
  max-height: none;
}

[data-preview-root][data-viewport="mobile"] .jl-preview-frame {
  --jl-phone-radius: 2.25rem;
  --jl-phone-bezel: 0.7rem;
  max-width: 390px;
  width: 100%;
  margin-inline: auto;
  aspect-ratio: 390 / 844;
  height: auto;
  max-height: min(844px, calc(100vh - 6.25rem));
}

.jl-preview-frame__screen {
  --jl-screen-radius: max(0px, calc(var(--jl-phone-radius, 2.25rem) - var(--jl-phone-bezel, 0.7rem)));
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: var(--jl-screen-radius);
  background: var(--jl-bg);
  overflow: hidden;
  isolation: isolate;
  transform: translateZ(0);
  /* Hard clip — overflow:hidden alone often fails to round child backgrounds */
  clip-path: inset(0 round var(--jl-screen-radius));
}

.jl-preview-frame__screen--surface > .jl-public--preview,
.jl-preview-frame__screen--surface > [data-create-preview] > .jl-public--preview {
  border-radius: var(--jl-screen-radius);
  background-clip: padding-box;
}

.jl-preview-frame__screen iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

/* Legacy phone aliases (empty states reuse screen styles) */

.jl-builder-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--jl-surface);
  border: 1px dashed var(--jl-border);
  border-radius: var(--jl-radius-md);
}

.jl-builder-empty__title {
  margin: 0 0 0.4rem;
  font-size: var(--jl-title);
}

.jl-builder-empty__body {
  margin: 0 auto 1.35rem;
  max-width: 22rem;
  color: var(--jl-text-muted);
}

.jl-preview-toggle {
  display: none;
}

@media (max-width: 959px) {
  .jl-preview-toggle {
    display: none;
  }

  .jl-builder--create {
    position: relative;
    padding-bottom: 5.5rem;
  }

  .jl-builder--create[data-settings-mode="edit"] .jl-builder__preview,
  .jl-builder--create[data-settings-mode="look"] .jl-builder__preview {
    display: none !important;
  }

  .jl-builder--create[data-settings-mode="preview"] .jl-builder__editor {
    display: none;
  }

  .jl-builder--create[data-settings-mode="preview"] .jl-builder__preview {
    display: flex !important;
  }

  .jl-builder:not(.jl-builder--create) .jl-builder__preview {
    display: none;
  }

  .jl-builder:not(.jl-builder--create).is-preview-open .jl-builder__preview {
    display: flex;
  }

  .jl-builder:not(.jl-builder--create).is-preview-open .jl-builder__editor {
    display: none;
  }

  

  

  

  [data-preview-root][data-viewport="mobile"] .jl-preview-frame,
  [data-preview-root][data-viewport="desktop"] .jl-preview-frame {
    height: min(720px, calc(100vh - 7rem));
    max-height: none;
  }

  
}

.jl-shell__share {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.jl-shell__share .jl-icon {
  flex-shrink: 0;
}

/* —— Daring controls —— */
.jl-switch {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.05rem;
  margin: 0;
  background: var(--jl-bg);
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius-md);
  cursor: pointer;
}

.jl-switch + .jl-switch,
.jl-field + .jl-field .jl-switch {
  margin-top: 0.65rem;
}

.jl-look-panel > .jl-settings-group + .jl-switch {
  margin-top: 0.5rem;
  margin-bottom: 0.35rem;
}

.jl-switch__copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.jl-switch__title-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.jl-switch__title {
  font-size: var(--jl-body);
  font-weight: 500;
  color: var(--jl-text);
  line-height: 1.35;
}

.jl-switch__hint {
  font-size: var(--jl-caption);
  font-weight: 400;
  color: var(--jl-text-muted);
  line-height: 1.4;
}

.jl-switch__control {
  position: relative;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.jl-switch__control input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 1;
}

.jl-switch__control input:disabled {
  cursor: not-allowed;
}

.jl-switch__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--jl-border);
  transition: background 0.15s ease;
}

.jl-switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--jl-surface);
  box-shadow: var(--jl-shadow-sm);
  transition: transform 0.15s ease;
}

.jl-switch__control input:checked + .jl-switch__track {
  background: var(--jl-cyan);
}

.jl-switch__control input:checked + .jl-switch__track::after {
  transform: translateX(20px);
}

.jl-switch__control input:disabled + .jl-switch__track {
  opacity: 0.45;
}

.jl-switch.is-locked {
  opacity: 0.85;
}

.jl-color {
  display: grid;
  gap: 0.5rem;
}

.jl-color__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.jl-color__swatch {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid var(--jl-border);
  overflow: hidden;
  box-shadow: var(--jl-shadow-sm);
  background: var(--jl-surface);
}

.jl-color__swatch input[type="color"] {
  position: absolute;
  inset: -20%;
  width: 140%;
  height: 140%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: none;
}

.jl-color__swatch input[type="color"]:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.jl-color__hex {
  flex: 1;
  min-width: 0;
  text-transform: uppercase;
}

.jl-color__hex::placeholder {
  text-transform: none;
}

.jl-color__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.jl-field.jl-color {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.jl-field.jl-color > .jl-hint {
  margin: 0.55rem 0 0;
  min-height: 2.75em;
  line-height: 1.35;
}

.jl-settings-grid:has(> .jl-field.jl-color:nth-child(3)) {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .jl-settings-grid:has(> .jl-field.jl-color:nth-child(3)) {
    grid-template-columns: 1fr 1fr;
  }
}

.jl-color__preset {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--jl-border);
  box-shadow: none;
  cursor: pointer;
  background-clip: padding-box;
}

.jl-color__preset:hover,
.jl-color__preset:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--jl-cyan) 50%, transparent);
  outline-offset: 1px;
}

.jl-color__preset.is-selected {
  border-color: var(--jl-ink);
  box-shadow: 0 0 0 2px var(--jl-surface), 0 0 0 4px var(--jl-ink);
}

.jl-datetime {
  display: grid;
  gap: 0.5rem;
}

.jl-datetime__box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.35rem 0.35rem 0.95rem;
  background: var(--jl-bg);
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius-md);
}

.jl-datetime__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--jl-cyan);
}

.jl-datetime__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  min-height: 44px;
  font: inherit;
  /* Same size as the other inputs, so the placeholder doesn't grow with the box. */
  font-size: var(--jl-body);
  font-weight: 500;
  color: var(--jl-text);
}

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

.jl-datetime__box:focus-within {
  outline: 2px solid color-mix(in srgb, var(--jl-cyan) 40%, transparent);
  outline-offset: 1px;
  border-color: color-mix(in srgb, var(--jl-cyan) 35%, var(--jl-border));
}

.jl-datetime__input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Flatpickr — JoinLike tokens */
.flatpickr-calendar {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius-md);
  box-shadow: var(--jl-shadow);
  background: var(--jl-surface);
  overflow: hidden;
}

.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-weekdays,
span.flatpickr-weekday,
.flatpickr-current-month input.cur-year {
  background: var(--jl-surface);
  color: var(--jl-ink);
  fill: var(--jl-ink);
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  fill: var(--jl-ink);
  color: var(--jl-ink);
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
  fill: var(--jl-cyan);
}

.flatpickr-day {
  border-radius: var(--jl-radius);
  color: var(--jl-ink);
}

.flatpickr-day:hover,
.flatpickr-day:focus,
.flatpickr-day.inRange,
.flatpickr-day.nextMonthDay:hover,
.flatpickr-day.prevMonthDay:hover {
  background: color-mix(in srgb, var(--jl-cyan) 12%, white);
  border-color: transparent;
  color: var(--jl-ink);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.today.selected {
  background: var(--jl-cyan);
  border-color: var(--jl-cyan);
  color: var(--jl-text);
}

.flatpickr-day.today {
  border-color: var(--jl-cyan);
}

.flatpickr-time input,
.flatpickr-time .flatpickr-am-pm {
  color: var(--jl-ink);
  font-weight: 500;
}

.flatpickr-time input:hover,
.flatpickr-time .flatpickr-am-pm:hover,
.flatpickr-time input:focus,
.flatpickr-time .flatpickr-am-pm:focus {
  background: color-mix(in srgb, var(--jl-cyan) 10%, white);
}

.jl-datetime__box .form-control.input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  min-height: 44px;
  font: inherit;
  font-size: var(--jl-body);
  font-weight: 500;
  color: var(--jl-text);
  box-shadow: none;
}

.jl-upload-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.jl-upload-stack__clear {
  align-self: flex-start;
}

.jl-upload {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 4.5rem;
  padding: 0.75rem 0.9rem;
  background: var(--jl-surface);
  border: 1.5px dashed var(--jl-border);
  border-radius: var(--jl-radius-md);
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.jl-upload:hover {
  border-color: color-mix(in srgb, var(--jl-cyan) 35%, var(--jl-border));
  background: color-mix(in srgb, var(--jl-info) 35%, var(--jl-surface));
}

.jl-upload.is-dragover {
  border-color: color-mix(in srgb, var(--jl-cyan) 55%, var(--jl-border));
  background: color-mix(in srgb, var(--jl-info) 55%, var(--jl-surface));
}

.jl-upload:focus-within {
  outline: 2px solid color-mix(in srgb, var(--jl-cyan) 45%, transparent);
  outline-offset: 2px;
}

.jl-upload.is-filled {
  border-style: solid;
  background: var(--jl-bg);
}

.jl-upload.is-filled:hover {
  background: color-mix(in srgb, var(--jl-info) 28%, var(--jl-bg));
}

.jl-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.jl-upload__preview {
  position: relative;
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.65rem;
  background: var(--jl-surface);
  border: 1px solid var(--jl-border);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.jl-upload--wide .jl-upload__preview {
  width: 5.5rem;
  height: 3.25rem;
}

.jl-upload__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.jl-upload__placeholder {
  display: grid;
  place-items: center;
  color: var(--jl-text-muted);
}

.jl-upload.is-filled .jl-upload__placeholder {
  display: none;
}

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

.jl-upload__copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  pointer-events: none;
}

.jl-upload__title {
  font-size: var(--jl-body);
  font-weight: 500;
  color: var(--jl-text);
  line-height: 1.3;
}

.jl-upload__meta {
  font-size: var(--jl-caption);
  font-weight: 400;
  color: var(--jl-text-muted);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jl-kind-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .jl-kind-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.jl-kind {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1rem;
  background: var(--jl-bg);
  border: 1.5px solid var(--jl-border);
  border-radius: var(--jl-radius-md);
  cursor: pointer;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  min-height: 7.5rem;
}

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

.jl-kind:hover {
  border-color: var(--jl-border);
  background: var(--jl-surface);
}

.jl-kind:has(input:checked) {
  background: var(--jl-info);
  border-color: var(--jl-border);
  box-shadow: var(--jl-shadow-sm);
}

.jl-kind:has(input:disabled) {
  opacity: 0.45;
  cursor: not-allowed;
}

.jl-kind-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  color: currentColor;
}

.jl-kind-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  stroke: currentColor;
  stroke-width: 1.95px;
}

.jl-badge--kind {
  gap: 0.4rem;
  padding: 0.3rem 0.7rem 0.3rem 0.45rem;
}

.jl-badge--kind .jl-kind-icon {
  width: 1.2rem;
  height: 1.2rem;
}

.jl-kind-icon--wait {
  color: #eab308;
}

.jl-kind-icon--want {
  color: #d81b60;
}

.jl-kind-icon--wish {
  color: #7c3aed;
}

.jl-kind__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.35rem;
  border-radius: 12px;
  background: var(--jl-surface);
  color: var(--jl-text);
}

.jl-kind__icon .jl-kind-icon {
  width: 1.85rem;
  height: 1.85rem;
}

.jl-kind--wait .jl-kind__icon {
  color: #eab308;
  background: color-mix(in srgb, #facc15 16%, var(--jl-surface, #ffffff));
}

.jl-kind--want .jl-kind__icon {
  color: #d81b60;
  background: color-mix(in srgb, #d81b60 14%, var(--jl-surface, #ffffff));
}

.jl-kind--wish .jl-kind__icon {
  color: #7c3aed;
  background: color-mix(in srgb, #7c3aed 14%, var(--jl-surface, #ffffff));
}

.jl-badge--wait {
  background: color-mix(in srgb, #facc15 18%, var(--jl-surface));
  color: var(--jl-text);
}

.jl-badge--want {
  background: color-mix(in srgb, #d81b60 14%, var(--jl-surface));
  color: var(--jl-text);
}

.jl-badge--wish {
  background: color-mix(in srgb, #7c3aed 14%, var(--jl-surface));
  color: var(--jl-text);
}

.jl-page-head__kind {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.jl-kind__name {
  font-size: var(--jl-app-name);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--jl-text);
}

.jl-kind__desc {
  margin: 0;
  font-size: var(--jl-app-meta);
  color: var(--jl-text-muted);
  line-height: 1.4;
}

.jl-create-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.jl-builder--create {
  position: relative;
}

.jl-builder--create .jl-settings-dock {
  display: none;
  z-index: 40;
}

@media (min-width: 960px) {
  .jl-builder--create {
    padding: 0 1rem 1.25rem;
  }

  .jl-builder--create .jl-builder__preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2rem 1.5rem;
    min-height: calc(100vh - 7rem);
  }

  .jl-builder--create .jl-builder__preview-bar {
    display: none;
  }
}

@media (max-width: 959px) {
  .jl-builder--create .jl-settings-dock {
    display: flex;
    position: fixed;
    left: 50%;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    width: min(22rem, calc(100% - 1.5rem));
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.4rem;
    background: var(--jl-surface);
    border: 1px solid var(--jl-border);
    border-radius: 999px;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.16);
    justify-content: space-around;
  }

  .jl-builder--create[data-settings-mode="look"] [data-settings-content-tabs] {
    display: none;
  }
}

.jl-create-editor {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.jl-card.jl-create-editor {
  padding: 0;
}

.jl-create-editor .jl-create-form {
  padding: 1.25rem 1.35rem 1.35rem;
  gap: 1.15rem;
}

@media (max-width: 959px) {
  .jl-create-editor .jl-create-form {
    padding-bottom: 5.5rem;
  }
}

.jl-create-editor__scroll {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: min(58vh, 36rem);
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.jl-create-editor:has([data-templates-preview-bar]:not([hidden])) .jl-create-editor__scroll {
  padding-bottom: 4.5rem;
}

.jl-create-editor .jl-templates-dock {
  left: 1.15rem;
  right: 1.15rem;
  bottom: 1rem;
}

.jl-create-editor .jl-settings-tabs {
  margin: 0 -0.1rem;
}

.jl-create-editor .jl-settings-panel {
  padding: 0;
}

.jl-create-editor .jl-settings-panel > :not(.jl-settings-panel__banner) {
  padding: 0;
  background: transparent;
}

.jl-create-panel-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1.15rem 1.25rem 1.35rem;
  background: var(--jl-bg, #FAFBFC);
}

.jl-kind-grid--create {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .jl-kind-grid--create {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

.jl-kind-grid--create .jl-kind {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.85rem;
  min-height: 0;
  padding: 1rem 1.1rem;
}

.jl-kind-grid--create .jl-kind__icon {
  margin-bottom: 0;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 14px;
}

.jl-kind-grid--create .jl-kind__icon .jl-kind-icon {
  width: 2rem;
  height: 2rem;
}

.jl-kind__copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.jl-builder--create .jl-kind-grid--create {
  grid-template-columns: 1fr;
}

@container builder-editor (min-width: 760px) {
  .jl-builder--create .jl-kind-grid--create {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.jl-create-form .jl-settings-grid {
  grid-template-columns: 1fr;
}

.jl-create-form .jl-upload__meta {
  white-space: normal;
}

.jl-builder--create [data-preview-root][data-viewport="mobile"] .jl-preview-frame__screen {
  height: 100%;
  min-height: 0;
}

@media (max-width: 959px) {
  .jl-preview-frame.jl-preview-frame--mock {
    --jl-mock-max-h: min(560px, calc(100vh - 12rem));
    --jl-mock-h: var(--jl-mock-max-h);
    --jl-mock-w: calc(var(--jl-mock-h) * 294 / 636);
  }
}

@media (min-width: 1100px) {
  .jl-create-form .jl-settings-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* —— Desk (lists hub) —— */
.jl-shell--app ::selection {
  background: var(--jl-info);
  color: var(--jl-text);
}

.jl-desk {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(340px, 520px);
  gap: 1rem;
  padding: 1rem 1.15rem 1.15rem;
  align-items: start;
}

/* Edit focus: hide list rail so editor + preview fill the desk */
@media (min-width: 960px) {
  .jl-desk:has(.jl-settings) {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    padding: 0.65rem 0.85rem 0.85rem;
  }

  .jl-desk:has(.jl-settings) .jl-rail {
    display: none;
  }

  .jl-desk:has(.jl-settings) .jl-stage {
    border: 0;
    box-shadow: none;
    background: transparent;
    max-height: none;
    height: 100%;
    width: 100%;
  }
}

.jl-rail {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 0;
  max-height: calc(100vh - 4.75rem - 2rem);
  padding: 1rem 1rem 0.85rem;
  background: var(--jl-surface);
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius-md);
  box-shadow: var(--jl-shadow-sm);
  overflow: hidden;
}

.jl-rail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-shrink: 0;
}

.jl-rail__head h1 {
  margin: 0;
  font-size: var(--jl-app-title);
  letter-spacing: -0.03em;
}

#jl-rail-main {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0.15rem 0.2rem 0.35rem;
}

.jl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}

.jl-chips .jl-chip {
  font-size: var(--jl-app-meta);
  min-height: 44px;
  padding: 0.4rem 0.85rem;
}

.jl-chips .jl-chip.is-active {
  background: var(--jl-info);
  border-color: var(--jl-border);
  color: var(--jl-text);
}

.jl-chips .jl-chip.is-active span {
  color: var(--jl-text);
  opacity: 1;
}

.jl-rail-main.htmx-request,
#jl-rail-main.htmx-request {
  opacity: 0.6;
  transition: opacity 0.16s ease;
}

.jl-rail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem;
  align-items: center;
  padding: 0;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  min-height: 44px;
  transition: background 0.16s ease;
  background: transparent;
}

.jl-rail-row__hit {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.75rem;
  min-width: 0;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
}

.jl-rail-row__hit:hover {
  text-decoration: none;
}

.jl-rail-row:hover {
  background: color-mix(in srgb, var(--jl-bg) 70%, var(--jl-surface));
}

.jl-rail-row.is-selected {
  background: color-mix(in srgb, var(--jl-cyan) 14%, var(--jl-surface));
}

.jl-rail-row.is-selected .jl-rail-row__name {
  color: var(--jl-ink);
}

.jl-rail-row.is-selected .jl-rail-row__sub,
.jl-rail-row.is-selected .jl-rail-row__time {
  color: color-mix(in srgb, var(--jl-text-muted) 70%, var(--jl-cyan));
}

.jl-rail-row:focus-within {
  outline: none;
}

.jl-rail-row:has(.jl-rail-row__hit:focus-visible) {
  box-shadow: inset 0 0 0 2px var(--jl-cyan);
}

.jl-rail-row__hit:focus-visible {
  outline: none;
}

.jl-rail-row__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--jl-bg);
}

.jl-rail-row--wait .jl-rail-row__mark {
  background: color-mix(in srgb, #eab308 14%, var(--jl-surface));
  color: #eab308;
}

.jl-rail-row--want .jl-rail-row__mark {
  background: color-mix(in srgb, #d81b60 14%, var(--jl-surface));
  color: #d81b60;
}

.jl-rail-row--wish .jl-rail-row__mark {
  background: color-mix(in srgb, #7c3aed 14%, var(--jl-surface));
  color: #7c3aed;
}

.jl-rail-row__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--jl-info);
  color: var(--jl-text);
  font-size: var(--jl-app-meta);
  font-weight: 600;
  flex-shrink: 0;
}

.jl-rail-row__main {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.jl-rail-row__name {
  font-size: var(--jl-app-name);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--jl-text);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

/* The name gives way to the ellipsis; the status badges after it always stay in full. */
.jl-rail-row__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jl-rail-row__name > .jl-badge {
  flex: none;
}

.jl-rail-row__sub,
.jl-rail-row__time {
  font-size: var(--jl-app-meta);
  color: var(--jl-text-muted);
}

.jl-rail-row__sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.6rem;
}

.jl-rail-row__time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.jl-rail-row__action {
  margin: 0;
  padding-right: 0.35rem;
}

@media (hover: hover) and (pointer: fine) {
  .jl-rail-row__action {
    opacity: 0;
    transition: opacity 0.16s ease;
  }

  .jl-rail-row:hover .jl-rail-row__action,
  .jl-rail-row:focus-within .jl-rail-row__action,
  .jl-rail-row.is-selected .jl-rail-row__action {
    opacity: 1;
  }
}

.jl-rail-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.jl-rail-more {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0.65rem 0.5rem;
  text-align: center;
  color: var(--jl-text-muted);
  font-size: var(--jl-app-meta);
}

.jl-rail-more__label {
  display: inline-block;
  min-height: 1.25rem;
}

.jl-rail-more.htmx-request .jl-rail-more__label {
  opacity: 0.7;
}

.jl-rail-more[hidden] {
  display: none !important;
}

.jl-rail-empty {
  padding: 2rem 0.5rem;
  text-align: center;
}

.jl-rail-empty--compact {
  padding: 1.5rem 0.5rem;
}

.jl-rail-empty--hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0.25rem 0 1.5rem;
  text-align: center;
  min-height: 18rem;
}

.jl-rail-empty--hero > .jl-btn {
  flex-shrink: 0;
  margin-bottom: 1.5rem;
}

.jl-rail-empty__center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.5rem 0.75rem;
}

.jl-rail-empty__mark {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: var(--jl-text-muted);
  opacity: 0.55;
}

.jl-rail-empty__mark .jl-kind-icon {
  width: 3.5rem;
  height: 3.5rem;
}

.jl-rail-empty__title {
  margin: 0 0 0.35rem;
  font-size: var(--jl-app-body);
  font-weight: 500;
  color: var(--jl-text-muted);
}

.jl-rail-empty--hero .jl-rail-empty__title {
  margin: 0;
  font-size: 1.05rem;
}

.jl-rail-empty__body {
  margin: 0 auto 1.15rem;
  max-width: 20rem;
  color: var(--jl-text-muted);
  font-size: var(--jl-app-meta);
}

.jl-rail-empty--hero .jl-rail-empty__body {
  margin: 0;
}

/* Undo global flush-table rule that zeroes edge padding */

.jl-rail-table__row.is-selected td {
  background: var(--jl-info);
}

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

.jl-stage {
  width: 100%;
  min-width: 0;
  min-height: 0;
  background: var(--jl-surface);
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius-md);
  box-shadow: var(--jl-shadow-sm);
  overflow: auto;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.jl-stage:has(.jl-record:not(.jl-record--empty)) {
  max-height: calc(100vh - 4.75rem - 2rem);
}

/* Settings: lock stage height so the save bar stays pinned in view */
.jl-desk:has(.jl-settings) {
  height: calc(100vh - 4.75rem);
  max-height: calc(100vh - 4.75rem);
  overflow: hidden;
}

.jl-stage:has(.jl-settings) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  min-height: 0;
}

.jl-stage.htmx-swapping {
  opacity: 0;
  transform: translateX(8px);
}

.jl-record {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  container-type: inline-size;
}

.jl-record:has(.jl-settings) {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.jl-record--empty {
  justify-content: center;
  align-items: center;
  min-height: 22rem;
}

.jl-record--enter {
  animation: jl-pane-in 0.2s ease both;
}

.jl-record__hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--jl-border);
  flex-shrink: 0;
  min-height: 3.75rem;
  background: var(--jl-surface);
}

.jl-record--wishlist .jl-record__hero,
.jl-record--wish .jl-record__hero {
  background: color-mix(in srgb, #7c3aed 14%, var(--jl-surface));
  border-bottom-color: color-mix(in srgb, #7c3aed 25%, var(--jl-border));
}

.jl-record--wantlist .jl-record__hero,
.jl-record--want .jl-record__hero {
  background: color-mix(in srgb, #d81b60 14%, var(--jl-surface));
  border-bottom-color: color-mix(in srgb, #d81b60 25%, var(--jl-border));
}

.jl-record--waitlist .jl-record__hero,
.jl-record--wait .jl-record__hero {
  background: color-mix(in srgb, #eab308 14%, var(--jl-surface));
  border-bottom-color: color-mix(in srgb, #eab308 26%, var(--jl-border));
}

.jl-record--wishlist .jl-record__close,
.jl-record--wish .jl-record__close,
.jl-record--wantlist .jl-record__close,
.jl-record--want .jl-record__close,
.jl-record--waitlist .jl-record__close,
.jl-record--wait .jl-record__close {
  background: color-mix(in srgb, var(--jl-surface) 72%, transparent);
  border-color: color-mix(in srgb, var(--jl-ink) 10%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.jl-record--wishlist .jl-record__hero-actions .jl-btn--ghost,
.jl-record--wish .jl-record__hero-actions .jl-btn--ghost,
.jl-record--wantlist .jl-record__hero-actions .jl-btn--ghost,
.jl-record--want .jl-record__hero-actions .jl-btn--ghost,
.jl-record--waitlist .jl-record__hero-actions .jl-btn--ghost,
.jl-record--wait .jl-record__hero-actions .jl-btn--ghost,
.jl-record--wishlist .jl-record__hero-actions .jl-btn--secondary,
.jl-record--wish .jl-record__hero-actions .jl-btn--secondary,
.jl-record--wantlist .jl-record__hero-actions .jl-btn--secondary,
.jl-record--want .jl-record__hero-actions .jl-btn--secondary,
.jl-record--waitlist .jl-record__hero-actions .jl-btn--secondary,
.jl-record--wait .jl-record__hero-actions .jl-btn--secondary {
  background: color-mix(in srgb, var(--jl-surface) 78%, transparent);
  border-color: color-mix(in srgb, var(--jl-ink) 12%, transparent);
}

.jl-record__hero-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.jl-record__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--jl-border);
  border-radius: 999px;
  background: var(--jl-surface);
  color: var(--jl-text);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.jl-record__close:hover {
  background: var(--jl-bg);
  border-color: var(--jl-border-strong, var(--jl-text));
}

.jl-record__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--jl-radius, 10px);
  border: 1px solid var(--jl-border);
  background: var(--jl-bg);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--jl-text);
  flex-shrink: 0;
}

.jl-record__badge--waitlist,
.jl-record__badge--wait {
  background: color-mix(in srgb, #eab308 18%, var(--jl-surface));
  border-color: color-mix(in srgb, #eab308 34%, var(--jl-border));
  color: #854d0e;
}

.jl-record__badge--wantlist,
.jl-record__badge--want {
  background: color-mix(in srgb, #d81b60 16%, var(--jl-surface));
  border-color: color-mix(in srgb, #d81b60 30%, var(--jl-border));
  color: #9f1239;
}

.jl-record__badge--wishlist,
.jl-record__badge--wish {
  background: color-mix(in srgb, #7c3aed 16%, var(--jl-surface));
  border-color: color-mix(in srgb, #7c3aed 30%, var(--jl-border));
  color: #5b21b6;
}

.jl-record__badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
}

.jl-record__badge-icon .jl-kind-icon,
.jl-record__badge-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.jl-record__badge-text {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1;
}

.jl-record__title-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.15rem;
}

.jl-record__hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .jl-record__hero {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .jl-record__hero-main {
    flex-basis: 100%;
  }
}

@container (max-width: 580px) {
  .jl-record__badge-text {
    display: none;
  }
  .jl-record__badge {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--jl-radius, 10px);
  }
  .jl-record__hero-actions .jl-record__btn-text {
    display: none;
  }
  .jl-record__hero-actions .jl-btn {
    padding: 0.4rem 0.55rem;
    min-height: 32px;
  }
}

.jl-record__name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--jl-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jl-record__tagline {
  margin: 0;
  font-size: var(--jl-app-meta);
  color: var(--jl-text-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jl-record__tabs {
  display: flex;
  gap: 0.15rem;
  padding: 0.75rem 1.35rem 0;
  border-bottom: 1px solid var(--jl-border);
  flex-shrink: 0;
}

.jl-record__tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  color: var(--jl-text-muted);
  font-size: var(--jl-app-meta);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.jl-record__tab:hover {
  color: var(--jl-text);
  text-decoration: none;
}

.jl-record__tab.is-active {
  color: var(--jl-text);
  font-weight: 600;
  border-bottom-color: var(--jl-text);
}

.jl-record__body {
  padding: 1.15rem 1.35rem 1.5rem;
  flex: 1;
  min-height: 0;
}

.jl-record__body:has(.jl-settings) {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
}

.jl-settings {
  position: relative;
  display: grid;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  background: transparent;
}

@media (min-width: 960px) {
  /* Editor fills left; preview column hugs the mock (no giant empty void) */
  .jl-settings {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 1.75rem;
    padding: 0 1rem 0 0;
    width: 100%;
  }
}

.jl-settings__editor {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: none;
  overflow: hidden;
  background: var(--jl-surface);
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius-md);
  box-shadow: var(--jl-shadow-sm);
}

.jl-settings__editor .jl-settings-tabs {
  border-radius: var(--jl-radius-md) var(--jl-radius-md) 0 0;
}

.jl-settings__editor-scroll {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem 1.75rem;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.jl-settings__editor:has([data-settings-savebar]:not([hidden])) .jl-settings__editor-scroll,
.jl-settings__editor:has([data-templates-preview-bar]:not([hidden])) .jl-settings__editor-scroll {
  padding-bottom: 5.5rem;
}

.jl-settings__dirtybar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin: 0;
  padding: 0.75rem 1.35rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: var(--jl-surface);
  border-top: 1px solid var(--jl-border);
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

@keyframes jlDirtyBarPulse {
  0% { transform: translateY(0); box-shadow: 0 -4px 16px rgba(1, 193, 217, 0.35); }
  50% { transform: translateY(-3px); box-shadow: 0 -8px 26px rgba(1, 193, 217, 0.45); }
  100% { transform: translateY(0); box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08); }
}

.jl-settings__dirtybar--pulse {
  animation: jlDirtyBarPulse 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.jl-settings__dirtybar[hidden] {
  display: none !important;
}

.jl-settings__dirtybar-hint {
  margin: 0;
}

.jl-settings__dirtybar.is-saving .jl-btn {
  pointer-events: none;
  opacity: 0.7;
}

.jl-settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  flex: 0 0 auto;
  margin: 0;
  padding: 0 1.35rem;
  background: var(--jl-surface);
  border-bottom: 1px solid var(--jl-border);
}

.jl-settings-tabs__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 -1px;
  padding: 0.75rem 0.9rem;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--jl-text-muted);
  font: inherit;
  font-size: var(--jl-app-meta);
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
}

.jl-settings-tabs__btn:hover {
  color: var(--jl-text);
  background: transparent;
}

.jl-settings-tabs__btn.is-active {
  color: var(--jl-text);
  font-weight: 600;
  background: transparent;
  border-bottom-color: var(--jl-text);
}

.jl-settings-tabs__btn[hidden] {
  display: none !important;
}

.jl-settings-tabs__icon {
  display: inline-flex;
  color: currentColor;
  opacity: 0.7;
}

.jl-settings-tabs__btn.is-active .jl-settings-tabs__icon {
  color: var(--jl-cyan);
  opacity: 1;
}

.jl-settings-tabs__icon .jl-icon {
  width: 15px;
  height: 15px;
}

.jl-settings-tabs__label {
  white-space: nowrap;
}

.jl-settings-panel {
  flex-shrink: 0;
  background: var(--jl-surface);
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius-md);
  padding: 0;
  box-shadow: var(--jl-shadow-sm);
  overflow: hidden;
}

.jl-settings-panel[hidden],
.jl-settings-panel.is-hidden {
  display: none !important;
}

.jl-settings-panel__banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  margin: 0;
  padding: 1rem 1.2rem;
  background: color-mix(in srgb, var(--jl-cyan) 6%, var(--jl-bg));
  border-bottom: 1px solid var(--jl-border);
}

.jl-settings-panel__copy {
  flex: 1 1 12rem;
  min-width: 0;
}

.jl-settings-panel__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--jl-text);
}

.jl-settings-panel__desc {
  margin: 0.25rem 0 0;
  color: var(--jl-text-muted);
  font-size: var(--jl-caption);
  font-weight: 400;
  line-height: 1.45;
  max-width: 28rem;
}

.jl-settings-panel > :not(.jl-settings-panel__banner) {
  padding: 1.25rem 1.25rem 1.5rem;
  background: var(--jl-bg, #FAFBFC);
}

.jl-settings-group {
  display: flex;
  flex-direction: column;
  background: var(--jl-surface);
  border: 1px solid var(--jl-border, #E2E8F0);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  margin-bottom: 1.15rem;
  padding: 0;
  overflow: hidden;
  transition: all 0.18s ease;
}

.jl-settings-group:hover {
  border-color: color-mix(in srgb, var(--jl-ink) 20%, var(--jl-border));
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
}

.jl-settings-group:last-child {
  margin-bottom: 0;
}

#jl-section-page {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

#jl-section-page > .jl-settings-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

#jl-section-page .jl-settings-group {
  margin-bottom: 0;
}

.jl-status-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--jl-radius-sm, 10px);
  border: 1px solid var(--jl-border);
  background: var(--jl-bg);
}

.jl-status-callout--success {
  background: color-mix(in srgb, var(--jl-success, #e6f9ed) 35%, white);
  border-color: color-mix(in srgb, var(--jl-success, #16a34a) 30%, transparent);
}

.jl-status-callout--warning {
  background: color-mix(in srgb, var(--jl-warning, #fef3c7) 45%, white);
  border-color: color-mix(in srgb, var(--jl-warning, #d97706) 30%, transparent);
}

.jl-status-callout__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.jl-status-callout--success .jl-status-callout__dot {
  background: #16a34a;
  box-shadow: 0 0 0 3px color-mix(in srgb, #16a34a 20%, transparent);
}

.jl-status-callout--warning .jl-status-callout__dot {
  background: #d97706;
  box-shadow: 0 0 0 3px color-mix(in srgb, #d97706 20%, transparent);
}

.jl-status-callout__body {
  flex: 1;
  min-width: 0;
}

.jl-status-callout__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--jl-text);
  margin: 0 0 0.15rem;
}

.jl-status-callout__text {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--jl-text-muted);
  margin: 0;
}

.jl-settings-group__head {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  background: var(--jl-surface);
  border-bottom: 1px solid color-mix(in srgb, var(--jl-border) 60%, transparent);
}

.jl-settings-group__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--jl-ink);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.jl-settings-group__title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 16px;
  border-radius: 4px;
  background: var(--jl-cyan);
  flex-shrink: 0;
}

.jl-settings-group__desc {
  margin: 0;
  padding-left: 0.8rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--jl-text-muted);
}

.jl-settings-group > :not(.jl-settings-group__head) {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.jl-settings-group > .jl-settings-group__head + * {
  padding-top: 1.15rem;
}

.jl-settings-group > :last-child {
  padding-bottom: 1.25rem;
}

.jl-settings-group > .jl-field + .jl-field {
  padding-top: 0;
  margin-top: 0.85rem;
}

.jl-settings-group .jl-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.jl-settings-group .jl-input,
.jl-settings-group .jl-select,
.jl-settings-group .jl-textarea {
  min-height: 42px;
  background: var(--jl-surface);
  border: 1px solid var(--jl-border);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  font-size: 0.875rem;
  color: var(--jl-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jl-settings-group .jl-input:focus,
.jl-settings-group .jl-select:focus,
.jl-settings-group .jl-textarea:focus {
  border-color: var(--jl-cyan);
  box-shadow: 0 0 0 3px rgba(1, 193, 217, 0.15);
}

.jl-settings-group .jl-hint {
  display: block;
  font-size: 0.775rem;
  color: var(--jl-text-muted);
  margin-top: 0.35rem;
}

.jl-settings-group > .jl-segment + .jl-field,
.jl-settings-group > .jl-segment ~ .jl-field:not([hidden]),
.jl-settings-group > .jl-segment ~ .jl-surface-none-note:not([hidden]),
.jl-settings-group > .jl-choice-row + .jl-field,
.jl-settings-group > .jl-choice-row ~ .jl-field:not([hidden]),
.jl-settings-group > .jl-choice-row + .jl-settings-toggles,
.jl-settings-group > .jl-choice-row ~ .jl-settings-toggles:not([hidden]),
.jl-settings-group > .jl-settings-toggles + .jl-identity-photo,
.jl-settings-group > .jl-settings-toggles + .jl-field,
.jl-settings-group > .jl-field + .jl-settings-toggles,
.jl-settings-group > .jl-field + .jl-identity-photo {
  margin-top: 1.25rem;
}

.jl-settings-group .jl-settings-toggles {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.jl-settings-group .jl-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem !important;
  background: var(--jl-surface-2) !important;
  border: 1px solid var(--jl-border) !important;
  border-radius: 10px !important;
  margin: 0 !important;
  cursor: pointer;
  transition: all 0.15s ease;
}

.jl-settings-group .jl-switch.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.jl-settings-group .jl-switch:hover {
  background: var(--jl-surface-2) !important;
  border-color: color-mix(in srgb, var(--jl-ink) 25%, var(--jl-border)) !important;
}

.jl-settings-group .jl-switch__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--jl-ink);
}

.jl-settings-group .jl-switch__hint {
  font-size: 0.8rem;
  color: var(--jl-text-muted);
}

.jl-settings-form > .jl-settings-toggles {
  background: var(--jl-surface);
  border: 1px solid var(--jl-border);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  padding: 1rem 1.25rem;
  margin-bottom: 1.15rem;
}

.jl-settings-form > .jl-settings-toggles .jl-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border: 0;
  background: transparent;
}

.jl-segment--mock .jl-segment__opt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.jl-segment--mock .jl-segment__opt--switch {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.jl-segment__opt--switch .jl-switch__control {
  margin-top: 0;
  pointer-events: auto;
}

.jl-segment__opt--switch .jl-switch__control input {
  pointer-events: auto;
}

.jl-segment__mock {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.75rem;
  min-height: 2.6rem;
  padding: 0.35rem;
  border-radius: 0.55rem;
  background: var(--jl-bg);
  border: 1px solid var(--jl-border);
}

.jl-segment__mock--timer {
  gap: 0.2rem;
}

.jl-segment__mock--timer span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.15rem;
  border-radius: 0.25rem;
  background: color-mix(in srgb, var(--jl-ink) 8%, white);
  color: var(--jl-ink);
  font-size: 0.58rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.jl-segment__mock--date .jl-segment__mock-cal {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 2.35rem;
  border-radius: 0.35rem;
  overflow: hidden;
  border: 1px solid var(--jl-border);
  background: var(--jl-surface);
}

.jl-segment__mock--date b {
  display: block;
  width: 100%;
  padding: 0.12rem 0;
  background: var(--jl-cyan);
  color: var(--jl-text);
  font-size: 0.55rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
}

.jl-segment__mock--date strong {
  display: block;
  padding: 0.2rem 0 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--jl-ink);
  line-height: 1;
}

.jl-segment--visitor {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.jl-segment__mock--counter {
  flex-direction: column;
  gap: 0.1rem;
  width: 4.75rem;
  min-height: 2.75rem;
}

.jl-segment__mock--counter strong {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--jl-ink);
  font-variant-numeric: tabular-nums;
}

.jl-segment__mock--counter span {
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--jl-text-muted);
  line-height: 1.2;
}

.jl-segment__mock--tallies {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.22rem;
  width: 4.75rem;
  min-height: 2.75rem;
  padding: 0.4rem 0.4rem;
}

.jl-segment__tally {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem;
  align-items: center;
}

.jl-segment__tally i {
  display: block;
  height: 0.28rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--jl-cyan) 55%, var(--jl-border));
}

.jl-segment__tally b {
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--jl-text-muted);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.jl-segment--visitor .jl-segment__opt:has(input:checked) .jl-segment__mock {
  background: var(--jl-surface);
  border-color: var(--jl-border);
}

.jl-settings-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}



.jl-settings-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding-top: 0.25rem;
}

.jl-settings-toggles {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.jl-settings-toggles .jl-switch {
  padding: 0.75rem 0;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--jl-border);
  background: transparent;
  border-radius: 0;
}

.jl-settings-toggles .jl-switch + .jl-switch {
  margin-top: 0;
}

.jl-settings-toggles .jl-switch:last-child {
  border-bottom: 0;
  padding-bottom: 0.15rem;
}

[data-create-preview][hidden] {
  display: none;
}

.jl-option-editors {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 0.35rem;
}

.jl-option-edit {
  display: grid;
  gap: 0.75rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--jl-border);
}

.jl-option-edit .jl-field {
  margin-bottom: 0;
}

.jl-option-edit[hidden] {
  display: none;
}

/* New option rows sit in their own list with the same spacing as the saved ones. */
.jl-option-new {
  margin-top: 1.15rem;
}

.jl-option-add {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
  margin-top: 0.5rem;
}

.jl-option-add .jl-btn {
  width: auto;
}

@media (min-width: 720px) {
  .jl-option-edit {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 1fr);
    align-items: end;
  }
}

.jl-settings-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .jl-settings-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.15rem;
  }

  .jl-settings-grid--2 {
    grid-template-columns: 1fr 1fr;
  }

  
}

/* Preview pane — soft mock; column only as wide as the phone */
.jl-settings__preview {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.25rem 0.5rem;
  background: transparent;
  border: 0;
  min-width: 0;
  min-height: 0;
  overflow: visible;
}

.jl-settings__stage {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  width: auto;
  height: auto;
  padding: 0;
}

/*
  Soft mockup: ~352×636, r24, ring shadow.
  Must beat [data-preview-root][data-viewport] .jl-preview-frame rules.
  Height budget includes shell + record chrome so the mock never clips.
*/
.jl-preview-frame.jl-preview-frame--mock {
  --jl-phone-bezel: 0;
  --jl-phone-radius: 24px;
  --jl-mock-max-h: min(760px, calc(100vh - 13rem));
  --jl-mock-h: var(--jl-mock-max-h);
  --jl-mock-w: calc(var(--jl-mock-h) * 0.58);
  width: var(--jl-mock-w) !important;
  height: var(--jl-mock-h) !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  margin: 0 auto;
  background: var(--jl-surface);
  border: 0;
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 8px 28px rgba(15, 23, 42, 0.1);
  padding: 0 !important;
  overflow: hidden;
  flex-shrink: 0;
}

.jl-preview-frame.jl-preview-frame--mock .jl-preview-frame__screen {
  --jl-screen-radius: 24px;
  border-radius: 24px;
  clip-path: inset(0 round 24px);
}

/* Hide annoying internal scrollbars inside the preview mockup */
.jl-preview-frame--mock,
.jl-preview-frame--mock * {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.jl-preview-frame--mock *::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.jl-public--preview,
.jl-public--preview * {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.jl-public--preview *::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

[data-preview-root][data-viewport="mobile"] .jl-preview-frame.jl-preview-frame--mock,
[data-preview-root][data-viewport="desktop"] .jl-preview-frame.jl-preview-frame--mock,
.jl-settings .jl-preview-frame.jl-preview-frame--mock,
.jl-builder--create .jl-preview-frame.jl-preview-frame--mock,
.jl-record-preview .jl-preview-frame.jl-preview-frame--mock {
  width: var(--jl-mock-w) !important;
  height: var(--jl-mock-h) !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
}

/* Dock: mobile only */
.jl-settings-dock {
  display: none;
}

.jl-settings-dock__btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 4.5rem;
  min-height: 3.35rem;
  padding: 0.45rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--jl-text-muted);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.15;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}

.jl-settings-dock__btn:hover {
  color: var(--jl-text);
  background: color-mix(in srgb, var(--jl-bg) 80%, var(--jl-surface));
}

.jl-settings-dock__btn.is-active {
  color: var(--jl-text);
  background: var(--jl-bg);
  font-weight: 600;
}

.jl-settings-dock__btn:disabled,
.jl-settings-dock__btn.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.jl-settings-dock__icon {
  display: inline-flex;
  color: currentColor;
}

.jl-settings-dock__icon .jl-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.jl-settings-dock__label {
  letter-spacing: -0.01em;
}

@media (min-width: 960px) {
  .jl-record:has(.jl-settings) {
    background: var(--jl-bg);
    border-radius: var(--jl-radius-md);
  }

  .jl-record:has(.jl-settings) .jl-record__hero {
    padding: 0.55rem 1rem 0.25rem;
  }

  .jl-record--wishlist:has(.jl-settings) .jl-record__hero,
  .jl-record--wish:has(.jl-settings) .jl-record__hero {
    background: color-mix(in srgb, #7c3aed 14%, var(--jl-surface));
    border-bottom-color: color-mix(in srgb, #7c3aed 25%, var(--jl-border));
  }

  .jl-record--wantlist:has(.jl-settings) .jl-record__hero,
  .jl-record--want:has(.jl-settings) .jl-record__hero {
    background: color-mix(in srgb, #d81b60 14%, var(--jl-surface));
    border-bottom-color: color-mix(in srgb, #d81b60 25%, var(--jl-border));
  }

  .jl-record--waitlist:has(.jl-settings) .jl-record__hero,
  .jl-record--wait:has(.jl-settings) .jl-record__hero {
    background: color-mix(in srgb, #eab308 14%, var(--jl-surface));
    border-bottom-color: color-mix(in srgb, #eab308 26%, var(--jl-border));
  }

  .jl-record:has(.jl-settings) .jl-record__tabs {
    padding: 0.35rem 1rem 0;
    background: transparent;
    border-bottom-color: var(--jl-border);
  }

  .jl-record:has(.jl-settings) .jl-record__body {
    padding: 0.6rem 0 0;
    background: transparent;
    /* Give the mock a real height budget inside the stage */
    min-height: 0;
  }

  .jl-record:has(.jl-settings) .jl-settings__preview {
    /* Stick phone in the remaining stage height */
    height: 100%;
    max-height: 100%;
  }

  /* Desktop always shows editor + preview together */
  .jl-settings[data-settings-mode] .jl-settings__editor,
  .jl-settings[data-settings-mode] .jl-settings__preview {
    display: flex;
  }

  .jl-settings[data-settings-mode="preview"] .jl-settings__editor {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 959px) {
  .jl-settings {
    grid-template-columns: 1fr;
    background: var(--jl-bg);
  }

  .jl-settings__editor {
    border-radius: 0;
    border: 0;
    box-shadow: none;
    background: var(--jl-bg);
  }

  .jl-settings__preview {
    flex-direction: column;
    padding: 1rem 1rem 6.5rem;
    container-type: normal;
  }

  .jl-settings[data-settings-mode="edit"] .jl-settings__preview,
  .jl-settings[data-settings-mode="look"] .jl-settings__preview {
    display: none;
  }

  .jl-settings[data-settings-mode="preview"] .jl-settings__editor {
    display: none;
  }

  .jl-settings[data-settings-mode="preview"] .jl-settings__preview {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
  }

  .jl-settings[data-settings-mode="look"] [data-settings-content-tabs] {
    display: none;
  }

  .jl-settings-dock {
    display: flex;
    position: fixed;
    z-index: 30;
    left: 50%;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    width: min(22rem, calc(100% - 1.5rem));
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.4rem;
    background: var(--jl-surface);
    border: 1px solid var(--jl-border);
    border-radius: 999px;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.16);
    justify-content: space-around;
  }

  .jl-settings-dock__btn {
    flex: 1 1 0;
    min-width: 0;
  }

  /* Mobile docks: template preview dock floats neatly ABOVE mobile nav bar */
  .jl-templates-dock {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    bottom: calc(5.35rem + env(safe-area-inset-bottom, 0px)) !important;
    width: min(23.5rem, calc(100% - 1.25rem)) !important;
    z-index: 50 !important;
  }

  .jl-create-editor .jl-templates-dock,
  .jl-builder--create .jl-templates-dock {
    left: 50% !important;
    right: auto !important;
    bottom: calc(5.35rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  .jl-templates-dock__inner {
    padding: 0.45rem 0.75rem;
    gap: 0.5rem;
  }

  .jl-templates-dock__preview-info {
    gap: 0.45rem;
  }

  .jl-templates-dock__name {
    font-size: 0.8125rem;
    max-width: 7.5rem;
  }

  .jl-templates-dock__btn {
    padding: 0.42rem 0.75rem;
    font-size: 0.75rem;
    gap: 0.3rem;
  }

  .jl-templates-dock__btn svg {
    width: 13px;
    height: 13px;
  }

  .jl-settings__editor-scroll,
  .jl-create-editor__scroll {
    padding: 1rem 1.1rem calc(9.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  .jl-settings__editor:has([data-settings-savebar]:not([hidden])) .jl-settings__editor-scroll {
    padding-bottom: calc(10.5rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Mobile dirtybar: floats neatly ABOVE the mobile dock switcher without overlapping */
  .jl-settings__dirtybar {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    bottom: calc(5.35rem + env(safe-area-inset-bottom, 0px)) !important;
    width: min(22rem, calc(100% - 1.5rem)) !important;
    z-index: 40 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    margin: 0 !important;
    padding: 0.45rem 0.55rem 0.45rem 1rem !important;
    border-radius: 999px !important;
    border: 1px solid var(--jl-border) !important;
    background: var(--jl-surface) !important;
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.16) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: jlDirtyBarSlideUpMobile 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .jl-settings__dirtybar[hidden] {
    display: none !important;
  }

  .jl-settings__dirtybar-hint {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--jl-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .jl-settings__dirtybar .jl-btn {
    flex-shrink: 0;
    border-radius: 999px;
  }

  .jl-settings__dirtybar--pulse {
    animation: jlDirtyBarPulseMobile 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  

  .jl-record:has(.jl-settings) .jl-record__hero {
    padding: 0.75rem 1rem 0.35rem;
  }

  .jl-record:has(.jl-settings) .jl-record__tabs {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .jl-record:has(.jl-settings) .jl-record__body {
    padding-bottom: 0;
  }

}

@keyframes jlDirtyBarSlideUpMobile {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes jlDirtyBarPulseMobile {
  0% {
    transform: translateX(-50%) translateY(0);
    box-shadow: 0 10px 32px rgba(1, 193, 217, 0.45);
  }
  50% {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 16px 36px rgba(1, 193, 217, 0.65);
  }
  100% {
    transform: translateX(-50%) translateY(0);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.16);
  }
}

@media (prefers-reduced-motion: reduce) {
  .jl-settings__editor-scroll {
    scroll-behavior: auto;
  }

  .jl-settings__dirtybar {
    animation: none !important;
  }

  .jl-settings__dirtybar--pulse {
    animation: none !important;
  }
}

.jl-settings-items-table {
  margin-top: 0.35rem;
  background: var(--jl-surface, #ffffff);
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius);
  overflow: hidden;
}

.jl-settings-items-table .jl-table th {
  background: var(--jl-bg, #fafbfc);
}

.jl-settings-items-table .jl-table th:first-child,
.jl-settings-items-table .jl-table td:first-child {
  padding-left: 0.95rem;
}

.jl-settings-items-table .jl-table th:last-child,
.jl-settings-items-table .jl-table td:last-child {
  padding-right: 0.95rem;
}

.jl-countdown-options {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid color-mix(in srgb, var(--jl-border) 70%, transparent);
}

.jl-countdown-options.is-locked {
  opacity: 0.55;
}

.jl-countdown-options.is-locked .jl-segment__opt,
.jl-countdown-options.is-locked .jl-color__preset,
.jl-countdown-options.is-locked .jl-input,
.jl-countdown-options.is-locked .jl-color__swatch {
  pointer-events: none;
  cursor: not-allowed;
}

.jl-countdown-options__lock {
  margin: 0.85rem 0 0.25rem;
}

.jl-input--follow {
  margin-top: 0.65rem;
}

.jl-record-empty {
  text-align: center;
  max-width: 18rem;
  padding: 2rem 1rem;
}

.jl-record-empty--quiet {
  min-height: 8rem;
}

.jl-record-empty__mark {
  display: flex;
  justify-content: center;
  margin-bottom: 0.85rem;
  color: var(--jl-cyan);
}

.jl-record-empty__mark .jl-kind-icon {
  width: 2.5rem;
  height: 2.5rem;
}

.jl-record-empty__title {
  margin: 0 0 0.35rem;
  font-size: var(--jl-app-name);
}

.jl-record-empty__body {
  margin: 0;
  color: var(--jl-text-muted);
}

.jl-record-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: min(720px, calc(100vh - 14rem));
  padding: 1rem 0.5rem 1.5rem;
}

.jl-search--inline {
  margin-bottom: 1rem;
}

.jl-btn.htmx-request {
  opacity: 0.65;
}

.jl-toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 80;
  padding: 0.7rem 1.1rem;
  background: var(--jl-inverse);
  color: #fff;
  border-radius: 999px;
  font-size: var(--jl-app-meta);
  font-weight: 500;
  box-shadow: var(--jl-shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.jl-toast.is-in {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.jl-mock-panel {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  height: 100%;
  padding: 1.75rem 1.5rem;
  background: var(--jl-surface);
  overflow: auto;
}

.jl-mock-panel__title {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.jl-mock-panel__tagline,
.jl-mock-panel__question {
  margin: 0;
  color: var(--jl-text-muted);
}

.jl-mock-panel__question {
  font-size: var(--jl-app-name);
  font-weight: 600;
  color: var(--jl-text);
}

.jl-mock-stat {
  display: flex;
  flex-direction: column;
}

.jl-mock-stat__value {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.jl-mock-stat__label {
  font-size: var(--jl-app-meta);
  color: var(--jl-text-muted);
}

.jl-mock-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: auto;
}

.jl-mock-options {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.jl-mock-option {
  display: block;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius);
  background: var(--jl-bg);
  font-weight: 500;
}

.jl-mock-option.is-picked {
  background: var(--jl-info);
}

.jl-mock-wish {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.jl-mock-wish li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius);
  background: var(--jl-bg);
}

@media (max-width: 959px) {
  .jl-desk {
    display: block;
    padding: 0.85rem;
    min-height: calc(100vh - 7.5rem);
  }

  .jl-rail {
    max-height: none;
    min-height: 0;
  }

  .jl-desk.is-open:has(.jl-settings) {
    height: calc(100vh - 7.5rem);
    max-height: calc(100vh - 7.5rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .jl-stage {
    display: none;
    min-height: calc(100vh - 9rem);
  }

  .jl-desk.is-open .jl-rail {
    display: none;
  }

  .jl-desk.is-open .jl-stage {
    display: block;
  }

  .jl-desk.is-open:has(.jl-settings) .jl-stage {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
  }

  .jl-record-preview[data-viewport="desktop"] .jl-preview-frame,
  .jl-record-preview[data-viewport="mobile"] .jl-preview-frame {
    height: min(640px, calc(100vh - 16rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .jl-record--enter,
  .jl-stage,
  .jl-rail-row,
  .jl-toast {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }

  .jl-stage.htmx-swapping {
    opacity: 1;
    transform: none;
  }
}

.jl-share-modal--app .jl-share-modal__footer {
  display: none;
}

.jl-record__hero-actions .jl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

body.jl-share-open {
  overflow: hidden;
}

.jl-share-modal {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: center;
  padding: 1rem;
}

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

.jl-share-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.55);
}

.jl-share-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 24rem);
  max-height: min(92vh, 40rem);
  overflow: auto;
  padding: 1.5rem 1.25rem 1.35rem;
  background: var(--jl-surface);
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius-lg);
  box-shadow: var(--jl-shadow);
  color: var(--jl-ink);
}

.jl-share-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: var(--jl-radius);
  background: transparent;
  color: var(--jl-text-muted);
  cursor: pointer;
}

.jl-share-modal__close:hover {
  background: var(--jl-bg);
  color: var(--jl-ink);
}

.jl-share-modal__title {
  margin: 0 0 1.15rem;
  padding: 0 2rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
}

.jl-share-modal__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 1.5rem 1.25rem 1.35rem;
  margin-bottom: 1.15rem;
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius-md);
  background: var(--jl-surface);
  text-align: center;
  color: var(--jl-ink);
}

.jl-share-modal__avatar,
.jl-share-modal__avatar-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.15rem;
  box-shadow: 0 0 0 2px var(--jl-border), 0 2px 8px rgba(15, 23, 42, 0.06);
}

.jl-share-modal__avatar[hidden],
.jl-share-modal__avatar-img[hidden] {
  display: none !important;
}

.jl-share-modal__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--jl-cyan);
  color: var(--jl-text);
  font-weight: 600;
  font-size: 1.35rem;
}

.jl-share-modal__name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--jl-ink);
  line-height: 1.3;
  word-break: break-word;
}

.jl-share-modal__path {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  max-width: 100%;
  margin: 0.1rem 0 0;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius);
  background: var(--jl-bg);
  font-size: var(--jl-caption);
  color: var(--jl-text-muted);
  font-weight: 500;
  box-sizing: border-box;
}

.jl-share-modal__path-mark {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  filter: none;
}

.jl-share-modal__path .jl-mono {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--jl-text-muted);
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.jl-share-modal__networks {
  display: flex;
  gap: 0.35rem;
  justify-content: space-between;
  align-items: flex-start;
  overflow-x: visible;
  padding: 0.15rem 0 0.35rem;
  margin: 0 0 0.35rem;
}

.jl-share-modal__net {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  max-width: 4.25rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--jl-ink);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.jl-share-modal__net:hover .jl-share-modal__net-icon {
  transform: translateY(-1px);
}

.jl-share-modal__net:focus-visible {
  outline: 2px solid var(--jl-cyan);
  outline-offset: 3px;
  border-radius: var(--jl-radius);
}

.jl-share-modal__net-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  transition: transform 120ms ease;
}

.jl-share-modal__net-icon--copy {
  background: var(--jl-bg);
  color: var(--jl-ink);
  box-shadow: inset 0 0 0 1px var(--jl-border);
}

.jl-share-modal__net-icon--x {
  background: #0b1220;
  color: #fff;
}

.jl-share-modal__net-icon--facebook {
  background: #1877f2;
  color: #fff;
}

.jl-share-modal__net-icon--whatsapp {
  background: #25d366;
  color: #fff;
}

.jl-share-modal__net-icon--linkedin {
  background: #0a66c2;
  color: #fff;
}

.jl-share-modal__net-icon--more {
  background: var(--jl-cyan);
  color: var(--jl-text);
}

.jl-share-modal__net-label {
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  color: var(--jl-text-muted);
  max-width: 100%;
}

.jl-share-modal__status {
  margin: 0 0 0.85rem;
  font-size: var(--jl-caption);
  color: var(--jl-text-muted);
  text-align: center;
}

.jl-share-modal__footer {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--jl-border);
}

.jl-share-modal__footer-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--jl-ink);
}

.jl-share-modal__footer-lead {
  margin: 0;
  font-size: var(--jl-caption);
  line-height: 1.45;
  color: var(--jl-text-muted);
}

.jl-share-modal__footer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.jl-share-modal__footer-actions .jl-btn {
  justify-content: center;
  width: 100%;
}

/* JoinLike claim modal (public pages) */
body.jl-join-open {
  overflow: hidden;
}

.jl-join-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

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

.jl-join-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.55);
}

.jl-join-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 52rem);
  max-height: min(94vh, 44rem);
  overflow: auto;
  padding: 1.75rem 1.35rem 1.75rem;
  background: var(--jl-surface);
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius-lg);
  box-shadow: var(--jl-shadow);
  color: var(--jl-ink);
}

.jl-join-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--jl-border);
  border-radius: 999px;
  background: transparent;
  color: var(--jl-text-muted);
  cursor: pointer;
}

.jl-join-modal__close:hover {
  background: var(--jl-bg);
  color: var(--jl-ink);
}

.jl-join-modal__layout {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 720px) {
  .jl-join-modal__dialog {
    padding: 2.25rem;
    overflow: visible;
  }

  .jl-join-modal__layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2rem;
    align-items: center;
  }
}

.jl-join-modal__mark {
  display: block;
  margin-bottom: 1rem;
  filter: none;
}

.jl-join-modal__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--jl-ink);
}

.jl-join-modal__accent {
  color: var(--jl-cyan);
}

.jl-join-modal__lead {
  margin: 0 0 1.25rem;
  color: var(--jl-text-muted);
  font-size: var(--jl-app-meta);
  line-height: 1.45;
  max-width: 28rem;
}

.jl-join-modal__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.jl-join-modal__field {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 48px;
  height: 48px;
  padding: 0 1.25rem;
  background: var(--jl-surface);
  border: 1.5px solid var(--jl-border);
  border-radius: 999px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: text;
}

.jl-join-modal__field:focus-within {
  border-color: var(--jl-ink);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--jl-ink) 18%, transparent);
}

.jl-join-modal__prefix {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  font-size: var(--jl-caption);
  font-weight: 500;
  color: var(--jl-text-muted);
  white-space: nowrap;
  user-select: none;
  line-height: 1;
}

.jl-join-modal__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0 0.35rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: var(--jl-body);
  font-weight: 600;
  color: var(--jl-ink);
  line-height: 1;
  outline: none;
  box-sizing: border-box;
}

.jl-join-modal__input:focus,
.jl-join-modal__input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.jl-join-modal__cta {
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
}

.jl-join-modal__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
  margin: 0 0 1rem;
  font-size: var(--jl-caption);
}

.jl-join-modal__links a {
  color: var(--jl-ink);
  text-decoration: none;
}

.jl-join-modal__links a:hover {
  color: var(--jl-cyan);
}

.jl-join-modal__copy > .jl-btn--secondary {
  border-color: var(--jl-border);
  background: var(--jl-surface);
  color: var(--jl-ink);
}

.jl-join-modal__copy > .jl-btn--secondary:hover {
  background: var(--jl-bg);
  border-color: var(--jl-border);
  color: var(--jl-ink);
}

.jl-join-modal__visual {
  display: none;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0.25rem;
  overflow: visible;
}

@media (min-width: 720px) {
  .jl-join-modal__visual {
    display: flex;
  }

  .jl-join-modal__dialog {
    overflow: visible;
  }
}

.jl-join-modal__phone {
  width: min(11rem, 100%);
  aspect-ratio: 388 / 845;
  padding: 0.4rem;
  border-radius: 1.5rem;
  background: var(--jl-inverse);
  box-shadow:
    0 0 0 1px rgba(11, 18, 32, 0.08),
    0 16px 36px -14px rgba(11, 18, 32, 0.35);
}

.jl-join-modal__phone-screen {
  height: 100%;
  padding: 0;
  border-radius: 1.15rem;
  background: var(--jl-surface);
  overflow: hidden;
}

.jl-join-modal__phone-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Image crop modal (WantList option uploads) */
body.jl-crop-open {
  overflow: hidden;
}

.jl-crop-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
}

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

.jl-crop-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.55);
}

.jl-crop-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 32rem);
  max-height: min(94vh, 44rem);
  overflow: auto;
  padding: 1.35rem 1.25rem 1.25rem;
  background: var(--jl-surface);
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius-lg);
  box-shadow: var(--jl-shadow);
  color: var(--jl-ink);
}

.jl-crop-modal__title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.jl-crop-modal__lead {
  margin: 0 0 1rem;
  font-size: var(--jl-caption);
  color: var(--jl-text-muted);
  line-height: 1.45;
}

.jl-crop-modal__stage {
  width: 100%;
  height: min(52vh, 24rem);
  background: var(--jl-inverse);
  border-radius: var(--jl-radius);
  overflow: hidden;
}

.jl-crop-modal__stage img {
  display: block;
  max-width: 100%;
}

.jl-crop-modal__ratios {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0;
}

.jl-crop-modal__ratios .jl-btn.is-active {
  background: var(--jl-bg);
  color: var(--jl-ink);
  box-shadow: inset 0 0 0 1px var(--jl-border);
}

.jl-crop-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
}

/* Option image lightbox — tap photo to expand */
.jl-option__media {
  position: relative;
  overflow: hidden;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.jl-option__media[data-jl-gallery-open] {
  cursor: zoom-in;
}

.jl-option__img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.jl-options--media .jl-option__media {
  position: relative;
}

body.jl-gallery-open {
  overflow: hidden;
}

.jl-gallery {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 1rem;
}

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

.jl-gallery__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.82);
}

.jl-gallery__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  width: min(100%, 56rem);
  max-height: min(92vh, 48rem);
}

.jl-gallery__close {
  position: absolute;
  top: -0.25rem;
  right: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.jl-gallery__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.jl-gallery__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  max-height: min(88vh, 46rem);
}

.jl-gallery__img {
  display: block;
  max-width: 100%;
  max-height: min(78vh, 40rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--jl-radius);
  background: var(--jl-inverse);
}

.jl-gallery__pick-bar {
  display: flex;
  justify-content: center;
  margin-top: 0.85rem;
}

.jl-gallery__pick {
  min-width: 12rem;
}

.jl-gallery__pick[aria-pressed="true"] {
  background: var(--jl-surface);
  color: var(--jl-ink);
}

.jl-gallery__caption {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  letter-spacing: -0.02em;
}

.jl-gallery__count {
  margin: 0;
  font-size: var(--jl-caption);
  color: rgba(255, 255, 255, 0.72);
}

.jl-gallery__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.jl-gallery__nav:hover {
  background: rgba(255, 255, 255, 0.22);
}

.jl-gallery__nav[hidden] {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 640px) {
  .jl-gallery__dialog {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    justify-items: center;
  }

  .jl-gallery__nav--prev {
    order: 2;
    position: absolute;
    left: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .jl-gallery__nav--next {
    order: 3;
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .jl-gallery__figure {
    order: 1;
  }

  .jl-gallery__close {
    top: 0.5rem;
    right: 0.5rem;
  }
}

/* WantList layout picker (editor) */
.jl-layout-picker {
  border: 0;
  margin: 0 0 1.25rem;
  padding: 0;
  min-inline-size: 0;
}

.jl-layout-picker__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

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

.jl-layout-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius-md);
  background: var(--jl-surface);
  cursor: pointer;
  transition: background 0.12s ease, box-shadow 0.12s ease;
}

.jl-layout-card:hover {
  background: var(--jl-bg);
}

.jl-layout-card:has(input:checked) {
  background: var(--jl-info);
  box-shadow: var(--jl-shadow-sm);
}

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

.jl-layout-card__preview {
  display: grid;
  gap: 0.28rem;
  height: 4.25rem;
  padding: 0.45rem;
  border-radius: 0.55rem;
  background: color-mix(in srgb, var(--jl-ink) 4%, var(--jl-bg));
}

.jl-layout-card__preview span {
  display: block;
  border-radius: 0.3rem;
  background: color-mix(in srgb, var(--jl-cyan) 35%, var(--jl-border));
}

.jl-layout-card__preview--stack {
  grid-template-rows: 1fr 1fr 1fr;
}

.jl-layout-card__preview--runway {
  grid-template-columns: 0.55fr 1fr 0.55fr;
  align-items: end;
}

.jl-layout-card__preview--runway span:nth-child(2) {
  height: 100%;
  background: var(--jl-cyan);
}

.jl-layout-card__preview--runway span:nth-child(1),
.jl-layout-card__preview--runway span:nth-child(3) {
  height: 72%;
  opacity: 0.55;
}

.jl-layout-card__preview--carousel {
  place-items: stretch;
}

.jl-layout-card__preview--carousel span {
  background: var(--jl-cyan);
}

.jl-layout-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.jl-layout-card__title {
  font-size: var(--jl-caption);
  font-weight: 600;
  color: var(--jl-ink);
}

.jl-layout-card__desc {
  font-size: 0.75rem;
  color: var(--jl-text-muted);
  line-height: 1.35;
}

/* WantList stage layouts: runway + carousel */
.jl-want-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  /* Keep option card borders from being clipped by the stage edge */
  padding: 2px;
  box-sizing: border-box;
  container-type: inline-size;
}

.jl-want-stage__chrome {
  display: none;
}

/* Overlay layer — never participate in flex (display:contents broke desktop column layout). */
.jl-want-stage--runway .jl-want-stage__chrome,
.jl-want-stage--carousel .jl-want-stage__chrome {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.jl-want-stage__controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* The dots sit in the flow right under the cards (never over them), shown for the carousel only. */
.jl-want-stage__dots {
  display: none;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.1rem 0 0;
}

.jl-want-stage--carousel + .jl-want-stage__dots {
  display: flex;
}

/* Linktree-style scroll guides — overlaid on 4:5 media (public + preview). */
.jl-want-stage__arrow {
  appearance: none;
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  /* Fixed colours: the arrow reads the same over a photo, a light card or a dark card. */
  border: 2px solid #0b1220;
  border-radius: 50%;
  background: #ffffff;
  color: #0b1220;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
  z-index: 5;
  pointer-events: auto;
  position: absolute;
  transform: translateY(-50%);
}

.jl-want-stage--runway .jl-want-stage__arrow,
.jl-want-stage--carousel .jl-want-stage__arrow {
  display: inline-flex;
}

.jl-want-stage--runway .jl-want-stage__arrow {
  top: 50%;
}

.jl-want-stage--carousel .jl-want-stage__arrow {
  top: calc(50% - 0.5rem);
}

.jl-want-stage__arrow svg {
  width: 22px;
  height: 22px;
}

.jl-want-stage__arrow:hover {
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55);
}

.jl-want-stage__arrow:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--jl-cyan) 45%, transparent);
  outline-offset: 2px;
}

.jl-want-stage__arrow.swiper-button-disabled,
.jl-want-stage__arrow.swiper-button-lock,
.jl-want-stage__arrow.swiper-button-hidden {
  display: none !important;
}

.jl-want-stage__arrow--prev {
  left: 0.35rem;
}

.jl-want-stage__arrow--next {
  right: 0.35rem;
}

.jl-want-stage__dot {
  appearance: none;
  width: 0.45rem;
  height: 0.45rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(11, 18, 32, 0.55), 0 1px 4px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.jl-want-stage__dot.is-active {
  background: var(--jl-cyan);
  box-shadow: 0 0 0 1px rgba(11, 18, 32, 0.55), 0 1px 4px rgba(0, 0, 0, 0.35);
  width: 1.1rem;
  border-radius: 999px;
}

.jl-options__legend--stage {
  display: block;
  float: none;
  width: auto;
  padding: 0;
  margin: 0;
}

.jl-want-stage--runway .jl-options__legend--stage,
.jl-want-stage--carousel .jl-options__legend--stage {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Runway — horizontal pasarela (left-aligned; next card peeks on the right) */
.jl-want-stage--runway .jl-options--runway {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 0;
  padding: 0.35rem 0 0.85rem;
  margin-inline: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-x;
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior-x: contain;
}

/* Swiper Integration for WantStage Runway & Carousel */
.jl-want-stage.swiper {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  padding-inline: 0;
}

.jl-want-stage.swiper .jl-options.swiper-wrapper {
  display: flex;
  flex-direction: row;
  overflow: visible;
  scroll-snap-type: none;
  scroll-behavior: auto;
  box-sizing: border-box;
  /* Native runway padding fights Swiper centeredSlides — kill it here */
  padding-inline: 0 !important;
  margin-inline: 0 !important;
  cursor: grab;
  touch-action: pan-y;
}

.jl-want-stage.swiper .jl-options.swiper-wrapper:active {
  cursor: grabbing;
}

.jl-want-stage.swiper .jl-option.swiper-slide {
  flex-shrink: 0;
  box-sizing: border-box;
}

.jl-want-stage--runway.swiper .jl-option--runway,
.jl-want-stage--runway .jl-option--runway {
  /* Always leave ~15% of the track for the next card (Linktree peek). */
  --jl-runway-gap: 6px;
  --jl-runway-peek: 2.35;
  width: calc((100% - var(--jl-runway-gap)) / var(--jl-runway-peek)) !important;
  flex: 0 0 calc((100% - var(--jl-runway-gap)) / var(--jl-runway-peek)) !important;
  max-width: calc((100% - var(--jl-runway-gap)) / var(--jl-runway-peek)) !important;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  transform: none;
  opacity: 0.92;
  transition: opacity 0.2s ease, border-color 0.15s ease, background 0.12s ease;
}

.jl-want-stage--runway.swiper .jl-option--runway.swiper-slide-active,
.jl-want-stage--runway.swiper .jl-option--runway.is-on-stage,
.jl-want-stage--runway .jl-option--runway.is-on-stage,
.jl-want-stage--runway .jl-option--runway:has(input:checked),
.jl-want-stage--runway .jl-option--runway.is-selected,
.jl-want-stage--runway .jl-option--runway.jl-option--readonly:first-child {
  opacity: 1;
}

.jl-want-stage--carousel.swiper {
  overflow: hidden;
}

.jl-want-stage--carousel.swiper .jl-options.swiper-wrapper {
  align-items: stretch;
}

.jl-want-stage--carousel.swiper .jl-option--carousel {
  width: 100%;
  flex: 0 0 100%;
  max-width: 100%;
  display: flex !important;
  flex-direction: column;
  height: auto;
}

.jl-want-stage--runway .jl-options--runway::-webkit-scrollbar {
  display: none;
}

.jl-want-stage--runway .jl-options--media .jl-option__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  border-radius: 0;
  background: color-mix(in srgb, var(--jl-option-label, var(--jl-ink)) 6%, var(--jl-option-bg, var(--jl-bg)));
}

.jl-want-stage--runway .jl-options--media .jl-option__initial {
  aspect-ratio: 4 / 5;
  font-size: 1.35rem;
}

.jl-want-stage--runway .jl-option__img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.jl-want-stage--runway .jl-option__row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  min-width: 0;
  border-top: 1px solid color-mix(in srgb, var(--jl-option-label, var(--jl-ink)) 14%, transparent);
}

.jl-want-stage--runway .jl-option__label {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Carousel — one hero look (1:1 like runway; Linktree-compact) */
.jl-want-stage--carousel .jl-options--carousel {
  display: grid;
  gap: 0;
}

.jl-want-stage--carousel .jl-option--carousel {
  display: none;
}

.jl-want-stage--carousel .jl-option--carousel.is-on-stage,
.jl-want-stage--carousel .jl-option--carousel.is-selected,
.jl-want-stage--carousel:not(:has(.is-on-stage)):not(:has(.is-selected)) .jl-option--carousel:not([hidden]):first-of-type {
  display: flex;
  flex-direction: column;
}

.jl-want-stage--carousel .jl-options--media .jl-option__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: color-mix(in srgb, var(--jl-option-label, var(--jl-ink)) 6%, var(--jl-option-bg, var(--jl-bg)));
}

.jl-want-stage--carousel .jl-options--media .jl-option__initial {
  aspect-ratio: 4 / 5;
  font-size: 1.35rem;
}

.jl-want-stage--carousel .jl-option__img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  animation: jl-want-fade 0.28s ease;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

@keyframes jl-want-fade {
  from { opacity: 0.35; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

.jl-want-stage--carousel .jl-option__row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.95rem;
  margin: 0;
  border-top: 1px solid color-mix(in srgb, var(--jl-option-label, var(--jl-ink)) 14%, transparent);
}

.jl-want-stage--carousel .jl-option__label {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.jl-public.is-themed .jl-want-stage__arrow {
  background: #ffffff;
  color: #0b1220;
  border-color: #0b1220;
}

/* Designer Templates Subzone & Preview Bar */
.jl-look-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.15rem;
  padding: 0.25rem;
  background: var(--jl-bg);
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius-md);
}

.jl-look-subtabs__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.45rem 0.85rem;
  border: none;
  border-radius: calc(var(--jl-radius-md) - 2px);
  background: transparent;
  color: var(--jl-text-muted);
  font-family: inherit;
  font-size: var(--jl-caption);
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.jl-look-subtabs__btn:hover {
  color: var(--jl-text);
  background: var(--jl-surface);
}

.jl-look-subtabs__btn.is-active {
  background: var(--jl-surface);
  color: var(--jl-text);
  box-shadow: var(--jl-shadow-sm);
}

.jl-look-subtabs__btn .jl-badge {
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
}

.jl-look-panel.is-hidden,
.jl-look-panel[hidden] {
  display: none !important;
}

.jl-templates-subzone {
  margin-bottom: 0.25rem;
  overflow: hidden;
}

.jl-templates-subzone__intro {
  margin: 0 0 1rem;
}

.jl-templates-dock {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.85rem;
  z-index: 30;
  pointer-events: auto;
  animation: jlDockSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.jl-templates-dock[hidden] {
  display: none !important;
}

@media (min-width: 960px) {
  .jl-settings > .jl-templates-dock,
  .jl-builder--create > .jl-templates-dock {
    position: absolute;
    left: 1.5rem;
    right: auto;
    width: calc(100% - 460px - 3rem);
    max-width: 36rem;
    bottom: 1.25rem;
    z-index: 30;
  }
}

@media (max-width: 420px) {
  .jl-templates-dock__tag {
    display: none;
  }
}

.jl-settings__editor.is-template-previewing .jl-settings__dirtybar {
  visibility: hidden;
  pointer-events: none;
}

@keyframes jlDockSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.jl-templates-dock__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.95rem 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 9999px;
  box-shadow: 0 12px 32px -4px rgba(15, 23, 42, 0.14), 0 3px 10px rgba(15, 23, 42, 0.05);
}

.jl-templates-dock__preview-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.jl-templates-dock__swatches {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 32px;
  height: 22px;
  flex-shrink: 0;
}

.jl-templates-dock__swatch {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
}

.jl-templates-dock__swatch--primary {
  left: 0;
  z-index: 2;
  background: var(--jl-cyan);
}

.jl-templates-dock__swatch--bg {
  left: 12px;
  z-index: 1;
  background: #0F172A;
}

.jl-templates-dock__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}

.jl-templates-dock__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748B;
}

.jl-templates-dock__pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0EA5E9;
  box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7);
  animation: jlPulseDot 1.8s infinite;
}

@keyframes jlPulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(14, 165, 233, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
  }
}

.jl-templates-dock__name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--jl-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jl-templates-dock__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.jl-templates-dock__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.44rem 0.95rem;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border: none;
  transition: all 0.16s ease;
}

.jl-templates-dock__btn--revert {
  background: var(--jl-surface-2);
  color: #475569;
}

.jl-templates-dock__btn--revert:hover {
  background: #E2E8F0;
  color: var(--jl-text);
}

.jl-templates-dock__btn--commit {
  background: #0F172A;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
}

.jl-templates-dock__btn--commit:hover {
  background: #1E293B;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
  transform: translateY(-1px);
}

.jl-templates-dock__btn--commit:active {
  transform: translateY(0);
}

.jl-templates-subzone__content {
  padding: 0;
}

.jl-template-card.is-previewing {
  border-color: var(--jl-cyan) !important;
  box-shadow: 0 0 0 2px var(--jl-cyan), 0 4px 14px rgba(1, 193, 217, 0.25) !important;
  transform: translateY(-2px);
}

.jl-template-card.is-previewing .jl-template-card__btn {
  background: var(--jl-cyan) !important;
  color: var(--jl-on-accent) !important;
  font-weight: 700;
}

.jl-templates-categories {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.65rem 0 0.85rem;
  margin-inline: -0.25rem;
  padding-inline: 0.25rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.jl-templates-categories::-webkit-scrollbar {
  display: none;
}

.jl-templates-category-btn {
  appearance: none;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--jl-border);
  background: var(--jl-surface);
  color: var(--jl-text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.jl-templates-category-btn:hover {
  border-color: var(--jl-ink);
  color: var(--jl-ink);
}

.jl-templates-category-btn.is-active {
  background: var(--jl-inverse);
  color: #fff;
  border-color: var(--jl-ink);
  font-weight: 600;
}

.jl-templates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
  margin-top: 0.35rem;
}

.jl-template-card {
  display: flex;
  flex-direction: column;
  background: var(--jl-surface);
  border: 1.5px solid var(--jl-border);
  border-radius: var(--jl-radius-md);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.jl-template-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--jl-cyan) 65%, var(--jl-border));
  box-shadow: var(--jl-shadow-md);
}

.jl-template-card.is-selected {
  border-color: var(--jl-cyan);
  box-shadow: 0 0 0 2px var(--jl-cyan), var(--jl-shadow-sm);
}

.jl-template-card__mockup {
  aspect-ratio: 9 / 14;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.75rem;
  border-radius: calc(var(--jl-radius-md) - 2px) calc(var(--jl-radius-md) - 2px) 0 0;
  overflow: hidden;
}

.jl-template-card__scrim {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.45);
  pointer-events: none;
}

.jl-template-card__phone-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
}

.jl-template-card__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.jl-template-card__lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 75%;
}

.jl-template-card__line--title {
  width: 80%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
}

.jl-template-card__line--sub {
  width: 50%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
}

.jl-template-card__btn-pill {
  width: 90%;
  height: 18px;
  border-radius: 999px;
  margin-top: 0.2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.jl-template-card__btn-pill--ghost {
  height: 16px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.jl-template-card__badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  padding: 0.15rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
}

.jl-template-card__body {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
  justify-content: space-between;
}

.jl-template-card__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--jl-ink);
  margin: 0;
  line-height: 1.25;
}

.jl-template-card__tagline {
  font-size: 0.72rem;
  color: var(--jl-text-muted);
  margin: 0.15rem 0 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jl-template-card__meta {
  margin: 0.3rem 0 0;
  font-size: 0.6875rem;
  color: var(--jl-text-muted);
}

.jl-template-card__actions {
  display: grid;
  gap: 0.35rem;
}

.jl-template-card__delete {
  margin: 0;
}

.jl-templates-save {
  margin-top: 1.5rem;
  margin-bottom: 0;
  padding-top: 0;
  border-top: none;
}

.jl-templates-save__row {
  display: grid;
  gap: 0.85rem;
  align-items: end;
}

@media (min-width: 720px) {
  .jl-templates-save__row {
    grid-template-columns: 1fr 1fr auto;
  }
}

.jl-templates-save__action {
  margin: 0;
}

.jl-templates-save__action-label {
  display: block;
  visibility: hidden;
  user-select: none;
}

.jl-templates-save__action .jl-btn {
  width: 100%;
  white-space: nowrap;
}

@media (min-width: 720px) {
  .jl-templates-save__action .jl-btn {
    width: auto;
  }
}

.jl-page-style .jl-field + .jl-field {
  margin-top: 1rem;
}

.jl-page-style .jl-settings-grid {
  margin-top: 1rem;
}

.jl-page-style .jl-settings-grid > .jl-field {
  margin-top: 0;
}

.jl-page-style .jl-settings-grid .jl-field + .jl-field {
  margin-top: 0;
}

.jl-chrome-mock__phone {
  display: block;
  position: relative;
  width: 2.15rem;
  height: 2.85rem;
  border-radius: 0.35rem;
  border: 1.5px solid color-mix(in srgb, var(--jl-ink) 28%, var(--jl-border));
  background: color-mix(in srgb, var(--jl-ink) 6%, white);
  overflow: hidden;
}

.jl-chrome-mock__sheet {
  position: absolute;
  left: 0.28rem;
  right: 0.28rem;
  background: var(--jl-surface);
  border: 1px solid color-mix(in srgb, var(--jl-ink) 12%, var(--jl-border));
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.08);
}

.jl-chrome-mock__sheet--sheet {
  bottom: 0.28rem;
  height: 1.15rem;
  border-radius: 0.28rem;
}

.jl-chrome-mock__sheet--cover {
  top: 0.2rem;
  bottom: 0.2rem;
  border-radius: 0.22rem;
}

.jl-chrome-mock__sheet--editorial {
  top: 0.55rem;
  left: 0.18rem;
  right: 0.45rem;
  bottom: 0.28rem;
  border-radius: 0.12rem 0.35rem 0.12rem 0.35rem;
}

.jl-chrome-mock__block {
  display: block;
  width: 2.4rem;
  height: 1.55rem;
  background: color-mix(in srgb, var(--jl-cyan) 18%, white);
  border: 1.5px solid color-mix(in srgb, var(--jl-ink) 18%, var(--jl-border));
}

.jl-chrome-mock__block--soft {
  border-radius: 0.55rem;
}

.jl-chrome-mock__block--sharp {
  border-radius: 0.12rem;
}

.jl-chrome-mock__lines {
  display: flex;
  flex-direction: column;
  width: 2.35rem;
  gap: 0.28rem;
}

.jl-chrome-mock__lines span {
  display: block;
  height: 0.28rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--jl-ink) 22%, white);
}

.jl-chrome-mock__lines span:nth-child(2) {
  width: 78%;
}

.jl-chrome-mock__lines span:nth-child(3) {
  width: 58%;
}

.jl-chrome-mock__lines--roomy {
  gap: 0.38rem;
}

.jl-chrome-mock__lines--compact {
  gap: 0.14rem;
}

.jl-chrome-mock__lines--compact span {
  height: 0.22rem;
}

/* Form card surface mocks — matches standard jl-segment__mock proportions */
.jl-segment__mock--surface {
  width: 4.75rem;
  min-height: 3.35rem;
  padding: 0.35rem;
}

.jl-chrome-mock__phone--scene {
  background: linear-gradient(150deg, #182438 0%, #0d1424 100%);
  border: 1.5px solid color-mix(in srgb, var(--jl-ink) 26%, var(--jl-border));
}

.jl-chrome-mock__phone--scene::before {
  content: "";
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: radial-gradient(circle, #01C1D9 0%, transparent 70%);
  opacity: 0.75;
}

.jl-chrome-mock__phone--scene::after {
  content: "";
  position: absolute;
  top: 0.75rem;
  left: -0.35rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: radial-gradient(circle, #F63174 0%, transparent 70%);
  opacity: 0.65;
}

.jl-chrome-mock__sheet--surf-solid,
.jl-chrome-mock__sheet--surf-frost,
.jl-chrome-mock__sheet--surf-none {
  position: absolute;
  left: 0.22rem;
  right: 0.22rem;
  bottom: 0.24rem;
  height: 1.35rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.16rem;
  padding: 0.18rem;
  z-index: 2;
}

.jl-chrome-mock__sheet--surf-solid span,
.jl-chrome-mock__sheet--surf-frost span,
.jl-chrome-mock__sheet--surf-none span {
  display: block;
  border-radius: 999px;
}

/* Solid: Crisp opaque white card with clean input line & primary button */
.jl-chrome-mock__sheet--surf-solid {
  background: var(--jl-surface);
  border-radius: 0.24rem;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 4px rgba(11, 18, 32, 0.25);
}

.jl-chrome-mock__sheet--surf-solid span:first-child {
  height: 0.22rem;
  width: 78%;
  background: #cbd5e1;
}

.jl-chrome-mock__sheet--surf-solid span:last-child {
  height: 0.26rem;
  width: 100%;
  background: #01C1D9;
}

/* Frosted: Glassmorphic translucent card letting ambient colors diffuse through */
.jl-chrome-mock__sheet--surf-frost {
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 0.24rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 6px rgba(11, 18, 32, 0.2), inset 0 0 0 0.5px rgba(255, 255, 255, 0.4);
}

.jl-chrome-mock__sheet--surf-frost span:first-child {
  height: 0.22rem;
  width: 78%;
  background: rgba(255, 255, 255, 0.65);
}

.jl-chrome-mock__sheet--surf-frost span:last-child {
  height: 0.26rem;
  width: 100%;
  background: #01C1D9;
}

/* No card: Form fields sit directly on the wallpaper without a card container */
.jl-chrome-mock__sheet--surf-none {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.jl-chrome-mock__sheet--surf-none span:first-child {
  height: 0.26rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0.12rem;
}

.jl-chrome-mock__sheet--surf-none span:last-child {
  height: 0.26rem;
  width: 100%;
  background: #01C1D9;
  border-radius: 0.12rem;
}

.jl-field--overlay {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--jl-border);
}

.jl-template-card__palette {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.jl-template-card__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.jl-template-card__btn {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.6rem;
}

/* Form card — solid / frosted / no card */

.jl-surface-mode {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
  padding: 0.55rem 0.5rem 0.65rem;
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius-md);
  background: var(--jl-surface);
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}

.jl-surface-mode:hover {
  background: var(--jl-bg);
}

.jl-surface-mode:has(input:checked) {
  border-color: var(--jl-ink);
  background: var(--jl-bg);
  box-shadow: 0 0 0 1px var(--jl-ink);
}

.jl-surface-mode input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

[data-bg-mode-panel][hidden],
[data-surface-panel][hidden] {
  display: none !important;
}

.jl-field--surface-frost {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.jl-surface-none-note {
  margin-top: 1.25rem;
  padding: 0.75rem 0.85rem;
  border: 1px dashed var(--jl-border);
  border-radius: var(--jl-radius-md);
  background: var(--jl-bg);
}

.jl-hint--flush {
  margin: 0;
}

.jl-field__head-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.jl-field__head-between .jl-label {
  margin: 0;
}

.jl-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--jl-border);
  outline: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.jl-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--jl-surface);
  border: 2px solid var(--jl-text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.15s ease;
}

.jl-range-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--jl-surface);
  border: 2px solid var(--jl-text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.jl-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.jl-surface-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.jl-surface-presets .jl-chip {
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--jl-radius-full);
  border: 1px solid var(--jl-border);
  background: var(--jl-surface);
  color: var(--jl-text-muted);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.jl-surface-presets .jl-chip:hover {
  background: var(--jl-bg);
  color: var(--jl-text);
  border-color: color-mix(in srgb, var(--jl-text-muted) 35%, var(--jl-border));
}

.jl-surface-presets .jl-chip.is-active {
  background: var(--jl-text);
  color: var(--jl-surface);
  border-color: var(--jl-text);
  font-weight: 600;
}

@media (max-width: 420px) {
  

  .jl-surface-mode {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.7rem;
  }

  

  
}

/* ==========================================================================
   Setup Checklist Onboarding Widget
   ========================================================================== */

.jl-checklist {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 850;
  font-family: inherit;
  color: var(--jl-text);
  animation: jl-checklist-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.jl-checklist [hidden] {
  display: none !important;
}

@keyframes jl-checklist-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Collapsed Card (Image 1) */
.jl-checklist-card {
  width: 260px;
  background: var(--jl-surface);
  border: 1px solid var(--jl-border);
  border-radius: 1.25rem;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.04);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jl-checklist-card:hover {
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.05);
}

.jl-checklist-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.jl-checklist-ring {
  position: relative;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jl-checklist-ring-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.jl-checklist-ring-track {
  fill: none;
  stroke: #EDE9FE;
  stroke-width: 5;
}

.jl-checklist-ring-bar {
  fill: none;
  stroke: #7C3AED;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 138.23;
  transform: rotate(-90deg);
  transform-origin: 27px 27px;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.jl-checklist-ring-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: #7C3AED;
  line-height: 1;
}

.jl-checklist-btn-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--jl-surface-2);
  color: var(--jl-text-muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.jl-checklist-btn-close:hover {
  background: #E4E7EC;
  color: var(--jl-text);
}

.jl-checklist-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.jl-checklist-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--jl-text);
  letter-spacing: -0.02em;
}

.jl-checklist-card__subtitle {
  margin: 0;
  font-size: 0.875rem;
  color: var(--jl-text-muted);
  font-weight: 500;
}

.jl-btn--checklist-cta {
  width: 100%;
  background: #6835F9;
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: none;
  box-shadow: 0 4px 14px rgba(104, 53, 249, 0.3);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}

.jl-btn--checklist-cta:hover {
  background: #5422E8;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(104, 53, 249, 0.4);
}

/* Expanded Modal / Popover (Image 2) */
.jl-checklist-modal {
  width: 350px;
  max-height: min(560px, calc(100vh - 4rem));
  background: var(--jl-surface);
  border: 1px solid var(--jl-border);
  border-radius: 1.4rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16), 0 4px 14px rgba(0, 0, 0, 0.06);
  padding: 1.35rem 1.35rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  animation: jl-checklist-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.jl-checklist-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jl-checklist-modal__title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.jl-checklist-modal__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--jl-text);
  letter-spacing: -0.02em;
}

.jl-checklist-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #ECFDF3;
  color: #027A48;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.jl-checklist-progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #EAECF0;
  overflow: hidden;
}

.jl-checklist-progress__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4F46E5 0%, #7C3AED 100%);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.jl-checklist-items {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  margin: 0 -0.5rem;
  padding: 0 0.5rem;
  max-height: calc(100vh - 12rem);
}

.jl-checklist-item {
  border-bottom: 1px solid #F2F4F7;
  padding: 0.75rem 0;
}

.jl-checklist-item:last-child {
  border-bottom: none;
}

.jl-checklist-item__header {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
  color: var(--jl-text);
}

.jl-checklist-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.jl-checklist-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.8px solid #D0D5DD;
  background: var(--jl-surface);
  transition: border-color 0.15s ease;
}

.jl-checklist-item:hover .jl-checklist-dot {
  border-color: #98A2B3;
}

.jl-checklist-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #12B76A;
  color: #ffffff;
}

.jl-checklist-item__title {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--jl-text);
  line-height: 1.3;
}

.jl-checklist-item.is-completed .jl-checklist-item__title {
  color: #98A2B3;
  text-decoration: line-through;
  font-weight: 500;
}

.jl-checklist-item__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #98A2B3;
  transition: transform 0.2s ease;
}

.jl-checklist-item.is-open .jl-checklist-item__chevron {
  transform: rotate(180deg);
}

.jl-checklist-item__body {
  padding: 0.4rem 0 0.35rem 2.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.jl-checklist-item__desc {
  margin: 0;
  font-size: 0.825rem;
  color: var(--jl-text-muted);
  line-height: 1.4;
}

.jl-btn--checklist-action {
  align-self: flex-start;
  background: #6835F9;
  color: #ffffff !important;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.jl-btn--checklist-action:hover {
  background: #5422E8;
  transform: translateY(-1px);
}

/* Minimized Floating Pill */
.jl-checklist-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.85rem 0.45rem 0.5rem;
  background: var(--jl-surface);
  border: 1px solid var(--jl-border);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  color: var(--jl-text);
  font-family: inherit;
}

.jl-checklist-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.jl-checklist-pill__ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.jl-checklist-pill__label {
  font-size: 0.82rem;
  font-weight: 600;
}

.jl-checklist-pill__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #ECFDF3;
  color: #027A48;
  font-size: 0.72rem;
  font-weight: 700;
}

.jl-checklist-scrim {
  display: none;
}

.jl-checklist-item__tag {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--jl-magenta) 14%, #ffffff);
  color: #a3154f;
  font-size: 0.6875rem;
  font-weight: 700;
  vertical-align: 0.1em;
}

/* An open invitation gets the brand accent so it reads as "start here". */
.jl-checklist--invite .jl-checklist-pill {
  border-color: color-mix(in srgb, var(--jl-magenta) 40%, var(--jl-border));
}

.jl-checklist--invite .jl-checklist-pill__label {
  color: #a3154f;
}

/* The checklist never sits on top of unsaved changes: the save bar wins. */
body:has([data-settings-savebar]:not([hidden])) .jl-checklist {
  display: none;
}

/* Phones: a small pill in the corner, and the list opens as a bottom sheet. */
@media (max-width: 768px) {
  .jl-checklist {
    left: 0.75rem;
    right: auto;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  }

  /* A finished checklist has nothing left to say on a small screen. */
  .jl-checklist--done {
    display: none;
  }

  .jl-checklist-pill {
    padding: 0.4rem 0.75rem 0.4rem 0.45rem;
  }

  /* [id] outranks the "sit above the tab bar" offset in studio.css. */
  .jl-checklist.is-sheet[id] {
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    animation: none;
  }

  .jl-checklist.is-sheet .jl-checklist-scrim {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(11, 18, 32, 0.45);
    animation: jl-checklist-fade 0.2s ease both;
  }

  .jl-checklist.is-sheet .jl-checklist-modal {
    position: relative;
    width: 100%;
    max-width: none;
    max-height: 82vh;
    max-height: 82dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 1.5rem 1.5rem 0 0;
    border-bottom: 0;
    padding: 1.1rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    animation: jl-checklist-sheet 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  /* A grab handle says "this slides away". */
  .jl-checklist.is-sheet .jl-checklist-modal::before {
    content: "";
    align-self: center;
    width: 2.5rem;
    height: 0.3rem;
    margin: -0.35rem 0 0.25rem;
    border-radius: 999px;
    background: var(--jl-border);
  }

  .jl-checklist.is-sheet .jl-checklist-item__header {
    min-height: 3rem;
  }

  .jl-checklist.is-sheet .jl-btn--checklist-action {
    width: 100%;
    justify-content: center;
  }
}

@keyframes jl-checklist-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes jl-checklist-sheet {
  from { transform: translateY(100%); }
  to { transform: none; }
}

/* ==========================================================================
   Footer Component
   ========================================================================== */

/* ==========================================================================
   Cookie Consent Banner & Modal
   ========================================================================== */

.jl-cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  max-width: 42rem;
  margin: 0 auto;
  z-index: 9999;
  background: var(--jl-inverse);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--jl-radius-md);
  box-shadow: 0 12px 36px rgba(11, 18, 32, 0.4), 0 2px 8px rgba(11, 18, 32, 0.2);
  padding: 1.25rem 1.5rem;
  transition: opacity 0.25s ease, transform 0.25s ease;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

.jl-cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.jl-cookie-banner__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.jl-cookie-banner__content {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  flex: 1;
}

.jl-cookie-banner__icon {
  flex-shrink: 0;
  color: var(--jl-cyan);
  margin-top: 0.15rem;
}

.jl-cookie-banner__text {
  flex: 1;
}

.jl-cookie-banner__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: #ffffff;
}

.jl-cookie-banner__desc {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.jl-cookie-banner__link {
  color: var(--jl-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.jl-cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-self: center;
}

.jl-cookie-banner__btn {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}

.jl-cookie-banner__btn--primary {
  background: var(--jl-cyan);
  color: var(--jl-ink);
  border: none;
  font-weight: 600;
}

.jl-cookie-banner__btn--primary:hover {
  filter: brightness(1.08);
}

.jl-cookie-banner__btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.jl-cookie-banner__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.jl-cookie-banner__close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.25rem;
}

.jl-cookie-banner__close:hover {
  color: #ffffff;
}

@media (max-width: 640px) {
  .jl-cookie-banner {
    bottom: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    padding: 1.1rem;
  }
  .jl-cookie-banner__inner {
    flex-direction: column;
    gap: 1rem;
  }
  .jl-cookie-banner__actions {
    width: 100%;
    align-self: stretch;
  }
  .jl-cookie-banner__actions button {
    flex: 1;
    text-align: center;
  }
}

/* Cookie Preferences Modal */
.jl-cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.65);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.jl-cookie-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.jl-cookie-modal__card {
  background: var(--jl-surface);
  color: var(--jl-text);
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius-md);
  max-width: 32rem;
  width: 100%;
  padding: 1.75rem;
  box-shadow: 0 16px 40px rgba(11, 18, 32, 0.16);
  transform: scale(0.96);
  transition: transform 0.2s ease;
  font-family: var(--jl-font);
}

.jl-cookie-modal.is-open .jl-cookie-modal__card {
  transform: scale(1);
}

.jl-cookie-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.jl-cookie-modal__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  color: var(--jl-text);
}

.jl-cookie-modal__close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--jl-text-muted);
  padding: 0.25rem;
  line-height: 1;
}

.jl-cookie-modal__close:hover {
  color: var(--jl-text);
}

.jl-cookie-modal__body {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--jl-text);
  margin-bottom: 1.5rem;
}

.jl-cookie-group {
  padding: 1rem 0;
  border-top: 1px solid var(--jl-border);
}

.jl-cookie-group:first-of-type {
  border-top: 1px solid var(--jl-border);
}

.jl-cookie-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.jl-cookie-group__title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0;
}

.jl-cookie-group__badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--jl-bg);
  color: var(--jl-text-muted);
  border: 1px solid var(--jl-border);
}

.jl-cookie-group__desc {
  font-size: 0.8125rem;
  color: var(--jl-text-muted);
  margin: 0;
  line-height: 1.45;
}

.jl-cookie-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--jl-border);
}

.jl-form-consent {
  margin-top: 0.75rem;
  margin-bottom: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--jl-live-muted, var(--jl-text-muted));
  text-align: center;
}

.jl-form-consent a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.jl-form-consent a:hover {
  color: var(--jl-live-text, var(--jl-ink));
}

/* ==========================================================================
   Accessibility & Keyboard Navigation
   ========================================================================== */

.jl-skip-link {
  position: absolute;
  top: -9999px;
  left: 1rem;
  z-index: 100000;
  padding: 0.65rem 1.25rem;
  background: var(--jl-inverse);
  color: #ffffff !important;
  border-radius: var(--jl-radius);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(11, 18, 32, 0.25);
  transition: top 0.15s ease;
}

.jl-skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--jl-cyan);
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--jl-ink);
  outline-offset: 2px;
}

.jl-join-modal__input:focus-visible,
.jl-claim-bar__input:focus-visible,
.jl-wait-card__input:focus-visible {
  outline: none !important;
}

.jl-footer :focus-visible,
.jl-cookie-banner :focus-visible,
.jl-cookie-modal :focus-visible {
  outline: 2px solid var(--jl-cyan);
  outline-offset: 2px;
}

/* ---- Polish pass: settings insets, copy fields, reserved item contrast ---- */

/* One inset for everything inside a settings group: header, body and actions share 1.25rem. */
.jl-settings-group__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
}

.jl-settings-group > .jl-settings-form__actions {
  padding: 0 1.25rem 1.25rem;
}

/* Read-only link with a copy button beside it. */
.jl-copy-field {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.jl-copy-field > .jl-input {
  flex: 1 1 auto;
  min-width: 0;
}

.jl-copy-field > .jl-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.jl-row-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.jl-row-split > form {
  margin: 0;
}

/* Owner note on the public page: says where to invite people, and offers the actions.
   It is JoinLike's own UI on a fixed light tint, so it never takes the list's
   theme colors (a dark theme made its buttons white on white). */
.jl-public .jl-owner-note {
  --jl-text: #0b1220;
  --jl-surface: #ffffff;
  --jl-border: #d5dbe3;
  --jl-theme-primary: #0b1220;
  --jl-theme-primary-text: #ffffff;
  color: var(--jl-text);
}

.jl-public .jl-owner-note .jl-btn--secondary {
  background: var(--jl-surface) !important;
  color: var(--jl-text) !important;
  border: 1px solid #d5dbe3 !important;
}

.jl-public .jl-owner-note .jl-btn--secondary:hover {
  background: var(--jl-surface-2) !important;
}

.jl-public .jl-owner-note .jl-btn--primary {
  background: #0b1220 !important;
  color: #ffffff !important;
  border-color: #0b1220 !important;
}

.jl-public .jl-owner-note .jl-btn--primary:hover {
  background: #263043 !important;
}

.jl-owner-note__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* Reserved items keep the sheet surface so the theme's text colors stay readable. */
.jl-public__sheet .jl-wish-item.is-claimed {
  background: color-mix(in srgb, var(--jl-surface) 88%, var(--jl-text) 12%);
}

.jl-public__sheet .jl-wish-item.is-claimed .jl-wish-item__title,
.jl-public__sheet .jl-wish-item.is-claimed .jl-wish-item__title--link {
  color: var(--jl-text);
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--jl-text) 45%, transparent);
}

.jl-public__sheet .jl-wish-item.is-claimed .jl-wish-item__note,
.jl-public__sheet .jl-wish-item.is-claimed .jl-wish-item__merchant,
.jl-public__sheet .jl-wish-item.is-claimed .jl-wish-item__claim-by,
.jl-public__sheet .jl-wish-item.is-claimed .jl-wish-item__by {
  color: var(--jl-text-muted);
}

.jl-public__sheet .jl-wish-item.is-claimed .jl-wish-item__media img {
  opacity: 0.55;
}

.jl-public__sheet .jl-wish-item.is-claimed .jl-badge {
  /* Fixed pair: the sheet remaps --jl-surface to transparent, which hid the label. */
  background: #0b1220;
  color: #ffffff;
  border-color: transparent;
}

/* Choice chips: a clear selected state (tint, border, weight) and a visible keyboard focus ring. */
.jl-choice:has(input:checked) {
  background: color-mix(in srgb, var(--jl-cyan) 14%, var(--jl-surface));
  border-color: var(--jl-cyan-accessible);
}

.jl-choice:has(input:checked) .jl-choice__label {
  font-weight: 600;
}

.jl-choice:focus-within {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--jl-cyan) 35%, transparent);
}

.jl-choice.jl-choice--disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---- Groups: card heads, footers and ballot controls ---- */

/* Title on the left, the one-line rule on the right, wrapping cleanly on narrow screens. */
.jl-group-head {
  align-items: flex-start;
}

.jl-group-head > .jl-stack {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.jl-group-head > .jl-hint {
  max-width: 36ch;
  margin: 0;
}

/* A list's name opens its page, so voters can look before they pick. */
.jl-group-list__link {
  color: inherit;
  text-decoration: none;
}

.jl-group-list__link:hover {
  color: var(--jl-primary-ink, #008294);
  text-decoration: underline;
}

/* Footer actions sit inside the card's own padding, so they line up with the rows above. */
.jl-group-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-top: 1rem;
}

.jl-group-foot > form {
  margin: 0;
}

/* Ballot: the native control stays visible, so people can see what they picked. */
.jl-ballot {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.jl-ballot__option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius);
  background: var(--jl-surface);
  cursor: pointer;
}

.jl-ballot__option:hover {
  background: var(--jl-bg);
}

.jl-ballot__option:has(input:checked) {
  border-color: var(--jl-cyan-accessible);
  background: color-mix(in srgb, var(--jl-cyan) 10%, var(--jl-surface));
}

.jl-ballot__option input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--jl-cyan-accessible);
}

.jl-ballot__name {
  font-size: var(--jl-caption);
  font-weight: 500;
  color: var(--jl-text);
  min-width: 0;
  overflow-wrap: anywhere;
}

.jl-ballot__owner {
  color: var(--jl-text-muted);
  font-weight: 400;
}

/* Separates two forms that share one card, such as voting settings and the ballot. */
.jl-group-divide {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--jl-border);
}

/* Small phones: the section nav scrolls sideways inside its pill, so the page itself never does. */
@media (max-width: 480px) {
  .jl-shell__nav-pill {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .jl-shell__nav-pill::-webkit-scrollbar {
    display: none;
  }

  .jl-shell__nav-pill .jl-shell__link {
    flex: 0 0 auto;
    white-space: nowrap;
    padding-inline: 0.9rem;
  }
}

/* The setup checklist floats over the bottom of the page on phones. Leave room so content can clear it. */
@media (max-width: 768px) {
  .jl-shell__main {
    padding-bottom: 5.5rem;
  }
}

/* Dashboard actions wrap to full width on phones; the Pro link can break onto its own line. */

/* Empty state inside a group card: sits directly under the header, no stray gap. */
.jl-group-empty {
  margin: 0;
}

/* Switches hide their input, so keyboard focus is drawn on the visible track instead. */
.jl-switch__control:has(input:focus-visible) .jl-switch__track {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--jl-cyan) 40%, transparent);
}

/* Between tablet and small desktop the section nav needs the room: the share button keeps its icon
   and its label stays available to screen readers. */
@media (max-width: 1024px) {
  .jl-nav-share__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* Tablet and narrow laptops: the pill gives up width and scrolls inside itself. */
@media (max-width: 1024px) {
  .jl-shell--app .jl-shell__nav {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .jl-shell__nav-left {
    min-width: max-content;
  }

  .jl-shell__nav-center {
    min-width: 0;
    justify-self: stretch;
  }

  .jl-shell__nav-pill {
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 100%;
  }

  .jl-shell__nav-pill::-webkit-scrollbar {
    display: none;
  }

  .jl-shell__nav-pill .jl-shell__link {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* Reservations on phones: each request becomes a card so Accept and Decline stay in view. */
@media (max-width: 600px) {
  .jl-table--compact-sm {
    min-width: 0;
  }

  .jl-table--compact-sm thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .jl-table--compact-sm,
  .jl-table--compact-sm tbody,
  .jl-table--compact-sm tr,
  .jl-table--compact-sm td {
    display: block;
    width: 100%;
  }

  .jl-table--compact-sm tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.45rem 0.75rem;
    align-items: center;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--jl-border);
  }

  .jl-table--compact-sm td {
    padding: 0;
    border: 0;
  }

  .jl-table--compact-sm td:nth-child(1),
  .jl-table--compact-sm td:nth-child(2) {
    grid-column: 1 / -1;
  }

  .jl-table--compact-sm td:nth-child(3) {
    grid-column: 1;
  }

  .jl-table--compact-sm .jl-table__actions {
    grid-column: 2;
    text-align: right;
    white-space: normal;
  }

  .jl-table--compact-sm .jl-table__actions .jl-btn {
    margin: 0 0 0 0.35rem;
  }
}

/* Focus lands on the stage after an action swaps it; it is a container, not a control, so no ring. */
#jl-stage:focus {
  outline: none;
}

/* On phones the settings mode dock sits fixed at the bottom; hide the setup checklist pill under it so the two never overlap. */
@media (max-width: 768px) {
  body:has(.jl-settings-dock) .jl-checklist:not(.is-sheet) {
    display: none;
  }
}

/* "Page not found": one big number, one sentence, a way back. */
.jl-lost {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  min-height: 78vh;
  margin: 0;
  padding: 9rem max(1.5rem, calc((100% - 44rem) / 2)) 5rem;
  background: var(--jl-bg);
  color: var(--jl-text);
}

.jl-lost__code {
  margin: 0;
  font-size: clamp(6rem, 22vw, 12rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--jl-cyan);
}

.jl-lost__title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

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

.jl-lost__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.jl-billing-trial {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--jl-border);
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.jl-billing-trial .jl-hint {
  margin: 0;
}

/* A button that reads as an inline link inside prose (e.g. "cookie settings"). */
.jl-btn-text {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--jl-link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.jl-btn-text:focus-visible {
  outline: 2px solid var(--jl-link);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Profile photo crop: a locked square shown as a circle. */
.jl-crop-modal.is-locked .jl-crop-modal__ratios {
  display: none;
}

.jl-crop-modal.is-circle .cropper-view-box,
.jl-crop-modal.is-circle .cropper-face {
  border-radius: 50%;
}

.jl-crop-modal.is-circle .cropper-view-box {
  outline: 0;
  box-shadow: 0 0 0 2px #fff;
}

.jl-upload--avatar .jl-upload__preview {
  flex: 0 0 auto;
  overflow: hidden;
}

.jl-profile-avatar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.jl-profile-avatar__actions .jl-upload-stack__clear {
  margin: 0;
}

[data-avatar-adjust][hidden] {
  display: none !important;
}

/* People: how a shared wishlist shows its gifts, as two picture choices. */
.jl-share-layout {
  margin-top: 1rem;
}

.jl-share-layout__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.jl-share-layout__option {
  position: relative;
  display: block;
  cursor: pointer;
}

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

.jl-share-layout__card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  height: 100%;
  padding: 0.85rem;
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius-md, 14px);
  background: var(--jl-surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jl-share-layout__option:hover .jl-share-layout__card {
  border-color: color-mix(in srgb, var(--jl-cyan) 50%, var(--jl-border));
}

.jl-share-layout__option input:checked + .jl-share-layout__card {
  border-color: var(--jl-cyan);
  box-shadow: 0 0 0 1px var(--jl-cyan), 0 0 0 4px color-mix(in srgb, var(--jl-cyan) 18%, transparent);
}

.jl-share-layout__option input:focus-visible + .jl-share-layout__card {
  outline: 2px solid var(--jl-cyan);
  outline-offset: 2px;
}

/* Tiny wireframes: rows are gifts, round dots are people. */
.jl-share-layout__art {
  display: grid;
  gap: 4px;
  margin-bottom: 0.35rem;
  padding: 0.55rem;
  border-radius: 10px;
  background: var(--jl-bg, #f5f7fa);
}

.jl-share-layout__art i {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--jl-text) 16%, transparent);
}

.jl-share-layout__art b {
  display: block;
  width: 40%;
  height: 7px;
  border-radius: 4px;
  background: var(--jl-cyan);
}

.jl-share-layout__title {
  font-weight: 700;
  font-size: 0.9375rem;
}

.jl-share-layout__hint {
  color: var(--jl-text-muted);
  font-size: var(--jl-caption);
  line-height: 1.4;
}

@media (max-width: 420px) {
  .jl-share-layout__options {
    grid-template-columns: minmax(0, 1fr);
  }
}

.jl-wish-checkout__kicker {
  margin: 0;
  font-size: var(--jl-caption);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--jl-text-muted);
}

/* Save a public list */
.jl-top-chrome__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.jl-top-chrome__save.is-saved .jl-icon {
  fill: #0F172A;
}

.jl-top-chrome__save .jl-icon {
  transition: fill 0.18s ease, transform 0.18s ease;
}

.jl-top-chrome__save:active .jl-icon {
  transform: scale(0.85);
}

.jl-save-modal {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: center;
  padding: 1rem;
}

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

.jl-save-modal__dialog {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding-top: 2rem;
}

.jl-save-modal__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: var(--jl-bg);
  color: var(--jl-ink);
}

.jl-save-modal__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.jl-save-modal__lead {
  margin: 0 0 0.5rem;
  color: var(--jl-text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.jl-save-modal__later {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--jl-text-muted);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.35rem 0.75rem;
}

.jl-save-modal__later:hover {
  color: var(--jl-ink);
}

.jl-home-saved__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.jl-home-saved__item > .jl-home-list__row {
  flex: 1;
  min-width: 0;
}

.jl-home-saved__remove {
  margin: 0;
  flex-shrink: 0;
}

.jl-home__saved {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 2rem;
  min-width: 0;
}

/* Reserved gifts page */
.jl-rsv__views {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.2rem;
  border: 1px solid var(--jl-border);
  border-radius: 9999px;
  background: var(--jl-surface);
}

.jl-rsv__view {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  border-radius: 9999px;
  padding: 0.35rem 0.75rem;
  background: transparent;
  color: var(--jl-text-muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}

.jl-rsv__view.is-active {
  background: var(--jl-inverse);
  color: #fff;
}

.jl-rsv__group {
  margin-top: 1.75rem;
}

.jl-rsv__group-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin-bottom: 0.75rem;
}

.jl-rsv__list {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.jl-rsv__by {
  color: var(--jl-text-muted);
  font-size: 0.875rem;
}

.jl-rsv__open {
  margin-left: auto;
  font-size: 0.875rem;
}

.jl-wish-item__by {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.jl-wish-item__by-face {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--jl-cyan) 18%, #ffffff);
  color: var(--jl-on-accent);
  font-size: 0.5625rem;
  font-weight: 700;
}

.jl-wish-item__by-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gift photo editor */
.jl-photoed {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
}

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

.jl-photoed__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.55);
}

.jl-photoed__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  width: min(100%, 30rem);
  max-height: 94vh;
  overflow: auto;
  padding: 1.25rem;
  background: var(--jl-surface);
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius-lg);
  box-shadow: var(--jl-shadow);
  color: var(--jl-ink);
}

.jl-photoed__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jl-photoed__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.jl-photoed__close {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: var(--jl-radius);
  background: transparent;
  color: var(--jl-text-muted);
  cursor: pointer;
}

.jl-photoed__stage {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
}

.jl-photoed__canvas {
  width: min(100%, 26rem);
  aspect-ratio: 1;
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius);
  background: repeating-conic-gradient(#e5e7eb 0% 25%, #fff 0% 50%) 50% / 16px 16px;
  cursor: grab;
  touch-action: none;
}

.jl-photoed__canvas:active {
  cursor: grabbing;
}

.jl-photoed__status {
  margin: 0;
  min-height: 1.25rem;
  color: var(--jl-text-muted);
  font-size: 0.8125rem;
}

.jl-photoed__controls {
  display: grid;
  gap: 0.75rem;
}

.jl-photoed__row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  align-items: center;
  gap: 0.75rem;
}

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

.jl-photoed__label {
  color: var(--jl-text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.jl-photoed__range {
  width: 100%;
  accent-color: var(--jl-ink);
}

.jl-photoed__swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.jl-photoed__swatch {
  appearance: none;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.5rem;
  border: 1px solid var(--jl-border);
  border-radius: 9999px;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--jl-ink);
  background: var(--jl-bg);
  cursor: pointer;
}

.jl-photoed__swatch.is-active {
  outline: 2px solid var(--jl-ink);
  outline-offset: 2px;
}

.jl-photoed__color {
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 1px solid var(--jl-border);
  border-radius: 9999px;
  background: none;
  cursor: pointer;
}

.jl-photoed__tools,
.jl-photoed__actions {
  display: flex;
  gap: 0.5rem;
}

.jl-photoed__actions {
  justify-content: flex-end;
}

/* Reserved gifts: the list sits above its gifts */
.jl-rsv__group-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius-lg);
  background: var(--jl-surface);
}

.jl-rsv__group-mark {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: #ede4fb;
  color: #6d3fd1;
}

.jl-rsv__group-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.jl-rsv__list a {
  color: inherit;
  text-decoration: none;
}

.jl-rsv__list a:hover {
  text-decoration: underline;
}

.jl-rsv__open {
  margin-left: 0;
  flex: none;
}

/* Saved lists page */
.jl-saved__items {
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
}

.jl-saved__card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius-lg);
  background: var(--jl-surface);
}

.jl-saved__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.jl-saved__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.jl-saved__name {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.jl-saved__meta {
  color: var(--jl-text-muted);
  font-size: 0.8125rem;
}

.jl-saved__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jl-saved__actions form {
  margin: 0;
}

/* "Remove" on the dashboard reads as a link, not a browser button. */
.jl-saved__actions .jl-link-btn,
.jl-home-saved__remove .jl-link-btn {
  appearance: none;
  border: 0;
  background: none;
  padding: 0.25rem 0;
  font: inherit;
  font-size: 0.8125rem;
  color: var(--jl-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

/* Shipping addresses */
.jl-addr__list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.jl-addr__card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius-lg);
  background: var(--jl-surface);
}

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

.jl-addr__lines {
  display: grid;
  font-style: normal;
  color: var(--jl-text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.jl-addr__notes {
  margin: 0.5rem 0 0;
  color: var(--jl-text-muted);
  font-size: 0.875rem;
}

.jl-addr__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}

.jl-addr__actions form {
  margin: 0;
}

.jl-addr__form {
  display: grid;
  gap: 0.9rem;
  padding: 1.25rem;
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius-lg);
  background: var(--jl-surface);
}

.jl-addr__form-title {
  margin: 0;
  font-size: 1.125rem;
}

.jl-addr__line2 {
  margin-top: 0.5rem;
}

.jl-rsv__ship {
  align-self: stretch;
  margin-top: 0.35rem;
  padding: 0.7rem 0.8rem 0.8rem;
  border: 1px solid color-mix(in srgb, var(--jl-cyan) 40%, transparent);
  border-radius: var(--jl-radius);
  background: color-mix(in srgb, var(--jl-cyan) 14%, var(--jl-surface));
  font-size: 0.875rem;
}

.jl-rsv__ship summary {
  cursor: pointer;
  font-weight: 700;
}

.jl-rsv__ship-body {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.jl-rsv__ship-list {
  display: grid;
  gap: 0.4rem;
  margin: 0;
}

.jl-rsv__ship-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.15rem 0.75rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--jl-radius-md);
  background: var(--jl-surface);
}

.jl-rsv__ship-row dt {
  grid-column: 1;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--jl-text-muted);
}

.jl-rsv__ship-row dd {
  grid-column: 1;
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.jl-rsv__ship-row .jl-rsv__copy {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.jl-rsv__copy {
  min-height: 2rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--jl-border);
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--jl-ink);
  cursor: pointer;
  white-space: nowrap;
}

.jl-rsv__copy:hover,
.jl-rsv__copy:focus-visible {
  border-color: var(--jl-cyan);
  color: var(--jl-cyan-accessible);
}

.jl-rsv__copy.is-done {
  background: var(--jl-cyan);
  border-color: var(--jl-cyan);
  color: #0b1220;
}

.jl-rsv__copy-all {
  justify-self: start;
}

.jl-ship-offers {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.jl-label .jl-hint {
  display: inline;
  margin-left: 0.25rem;
  font-weight: 400;
}

/* Phone / desktop preview switch */
.jl-preview-modes {
  display: inline-flex;
  align-self: center;
  gap: 0.2rem;
  margin: 0 auto 0.6rem;
  padding: 0.2rem;
  border: 1px solid var(--jl-border);
  border-radius: 9999px;
  background: var(--jl-surface);
}

.jl-preview-modes__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--jl-text-muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}

.jl-preview-modes__btn.is-active {
  background: var(--jl-inverse);
  color: #fff;
}

.jl-record-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.jl-deskprev {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

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

.jl-deskprev__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.6);
}

.jl-deskprev__window {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1280px, 100%);
  height: min(860px, 100%);
  overflow: hidden;
  border-radius: 14px;
  background: var(--jl-surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.jl-deskprev__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--jl-border);
  background: var(--jl-bg);
}

.jl-deskprev__dots {
  display: inline-flex;
  gap: 0.35rem;
}

.jl-deskprev__dots i {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #d5d9e0;
}

.jl-deskprev__url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: var(--jl-surface);
  color: var(--jl-text-muted);
  font-size: 0.8125rem;
}

.jl-deskprev__close {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: var(--jl-radius);
  background: transparent;
  color: var(--jl-text-muted);
  cursor: pointer;
}

.jl-deskprev__frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: var(--jl-surface);
}

.jl-deskprev__note {
  margin: 0;
  padding: 0.4rem 0.75rem;
  border-top: 1px solid var(--jl-border);
  color: var(--jl-text-muted);
  font-size: 0.75rem;
  text-align: center;
}

/* Saved lists on the dashboard: the whole row is one card, Remove stays inside it. */
/* The list itself is the card; each saved row sits inside it with Remove at the end. */

.jl-home-saved__remove {
  padding-right: 1rem;
}

.jl-rsv__date.jl-datetime {
  min-width: 0;
}

.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-magenta, #f63174) 14%, transparent);
  color: #c2185b;
  font-size: 0.6875rem;
  font-weight: 700;
}

/* Add a gift: steps on the left, a live preview of the gift on the right */
.jl-addgift {
  display: grid;
  gap: 1rem;
}

.jl-addgift__intro {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.jl-addgift__icon {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--jl-magenta, #f63174) 12%, var(--jl-surface));
  color: #c2185b;
}

.jl-addgift__layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.jl-addgift {
  container-type: inline-size;
  container-name: addgift;
}

@container addgift (min-width: 760px) {
  .jl-addgift__layout {
    grid-template-columns: minmax(0, 1fr) 20rem;
  }

  .jl-addgift__mock {
    position: sticky;
    top: 1rem;
  }
}

.jl-addgift__form {
  display: grid;
  gap: 1.1rem;
}

.jl-addgift__step {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius-lg);
  background: var(--jl-surface);
}

.jl-addgift__step-head {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.jl-addgift__num {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 9999px;
  background: var(--jl-inverse);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.jl-addgift__step-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.jl-addgift__step-desc {
  margin: 0.1rem 0 0;
  color: var(--jl-text-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.jl-addgift__tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.45rem;
  border-radius: 9999px;
  background: var(--jl-bg);
  color: var(--jl-text-muted);
  font-size: 0.6875rem;
  font-weight: 500;
  vertical-align: middle;
}

.jl-addgift__link {
  font-size: 1rem;
  padding-block: 0.75rem;
}

.jl-addgift .jl-wish-unfurl-preview__body {
  display: none;
}

.jl-addgift__mock {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px dashed var(--jl-border);
  border-radius: var(--jl-radius-lg);
  background: color-mix(in srgb, var(--jl-bg) 70%, var(--jl-surface));
}

.jl-addgift__mock-label {
  margin: 0;
  color: var(--jl-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.jl-addgift__mock-list {
  pointer-events: none;
}

.jl-addgift__mock .jl-wish-item.is-top {
  background: color-mix(in srgb, var(--jl-magenta, #f63174) 8%, var(--jl-surface));
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--jl-magenta, #f63174) 40%, transparent);
}

/* Add a gift: breathing room inside the card, and the extension tip */
.jl-settings-group.jl-addgift {
  padding: 1.25rem 1.25rem 1.35rem;
  gap: 1.1rem;
}

.jl-addgift__tip {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--jl-radius-lg);
  background: color-mix(in srgb, var(--jl-cyan, #01c1d9) 10%, var(--jl-surface));
}

.jl-addgift__tip-icon {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 12px;
  background: var(--jl-surface);
  color: #008294;
}

.jl-addgift__tip-copy {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--jl-text-muted);
}

.jl-addgift__tip-copy strong {
  color: var(--jl-ink);
}

@media (max-width: 640px) {
  .jl-addgift__tip {
    flex-wrap: wrap;
  }
}

/* Address form: same quiet inputs as the list editor, one card, no nested borders */
.jl-addr__form .jl-input,
.jl-addr__form select.jl-input {
  min-height: 42px;
  background-color: var(--jl-surface);
  border: 1px solid var(--jl-border);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  font-size: 0.9375rem;
  color: var(--jl-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.jl-addr__form select.jl-input {
  padding-right: 2.25rem;
}

.jl-addr__form textarea.jl-input {
  min-height: 4.5rem;
  resize: vertical;
}

.jl-addr__form .jl-input:focus {
  outline: none;
  border-color: var(--jl-cyan);
  box-shadow: 0 0 0 3px rgba(1, 193, 217, 0.15);
}

.jl-addr__form {
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
}

/* Fields sit closer together: the form's own gap does the spacing, not each field's margin. */
.jl-addr__form .jl-field {
  margin-bottom: 0;
}

.jl-addr__form .jl-label {
  margin-bottom: 0.3rem;
  font-size: 0.875rem;
}

.jl-addr__form .jl-input,
.jl-addr__form select.jl-input {
  min-height: 40px;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}

/* Required fields carry an asterisk; everything else says "(optional)" in muted text. */
.jl-req {
  margin-left: 0.15rem;
  color: #b4233a;
  font-weight: 600;
}

.jl-addr__opt {
  font-weight: 400;
}

.jl-addr__legend {
  margin: -0.25rem 0 0;
}

.jl-addr__form-head .jl-hint {
  margin: 0.2rem 0 0;
}

.jl-addr__grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr 1fr;
}

.jl-addr__grid--3 {
  grid-template-columns: 1.4fr 1fr 0.8fr;
}

@media (max-width: 560px) {
  .jl-addr__grid,
  .jl-addr__grid--3 {
    grid-template-columns: 1fr;
  }
}

.jl-addr__optional {
  display: grid;
  gap: 0.9rem;
  padding-top: 0.25rem;
  border-top: 1px dashed var(--jl-border);
}

.jl-addr__optional-title {
  margin: 0.75rem 0 0;
  color: var(--jl-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.jl-addr__card {
  box-shadow: none;
}

/* Address form: location tip and collapsible delivery notes */
.jl-addr__locate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid color-mix(in srgb, var(--jl-cyan, #01c1d9) 45%, transparent);
  border-radius: var(--jl-radius-lg);
  background: color-mix(in srgb, var(--jl-cyan, #01c1d9) 16%, var(--jl-surface));
}

/* The location button is the way to fill the address faster, so it reads as the main action. */
.jl-addr__locate-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding-inline: 1rem;
  font-weight: 600;
}

.jl-addr__locate-copy {
  margin: 0;
  flex: 1;
  min-width: 14rem;
  font-size: 0.875rem;
}

.jl-addr__locate-note {
  flex-basis: 100%;
  margin: 0;
}

.jl-addr__notes-box {
  border: 1px solid var(--jl-border);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
}

.jl-addr__notes-box summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
}

.jl-addr__notes-hint {
  color: var(--jl-text-muted);
  font-weight: 400;
  font-size: 0.8125rem;
}

.jl-addr__notes-box textarea {
  margin-top: 0.6rem;
}

/* QR tab: the code sits where the list preview normally is */
.jl-qr-side {
  display: none;
}

.is-qr-tab .jl-qr-side {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  align-content: center;
  padding: 0.5rem;
}

/* The picture is already the finished card (its own background and margins), so it sits on its own. */
.jl-qr-side__card {
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 10px 30px rgba(15, 23, 42, 0.12);
  line-height: 0;
}

.jl-qr-side__img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(62vh, 30rem);
}

.jl-qr-side__hint {
  margin: 0;
  max-width: 18rem;
  color: var(--jl-text-muted);
  font-size: 0.8125rem;
  text-align: center;
}

.is-qr-tab .jl-preview-frame--mock,
.is-qr-tab .jl-preview-modes,
.is-qr-tab .jl-preview-stage {
  display: none;
}

/* Beside the form the code already shows in the preview column, so the copy inside the form goes.
   On a phone it stays at the top of the form, and the list's Preview tab shows it too. */
@media (min-width: 960px) {
  .is-qr-tab .jl-qr__stage {
    display: none;
  }
}

/* Dark theme adjustments (signed-in app). Public surfaces keep their light tokens, see tokens.css. */
:root[data-theme="dark"] .jl-btn--danger {
  color: #ff9aa7;
  border-color: color-mix(in srgb, #ff9aa7 30%, transparent);
}

/* The phone frame is a dark bezel in light mode. On the dark app background it would vanish into the page and
   leave only a hairline, so lift it a step and give it a visible edge. */
:root[data-theme="dark"] .jl-preview-frame {
  background: #1b2124;
  border-color: #313a3f;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), var(--jl-shadow);
}

/* The mock frame has no bezel: its corners must match the screen's, and nothing of the frame may show behind a themed list. */
:root[data-theme="dark"] .jl-preview-frame.jl-preview-frame--mock {
  background: transparent;
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 10px 32px rgba(0, 0, 0, 0.5);
}

/* List-type chips: their light-mode text colors are dark hues, so lift them in the dark app. */
:root[data-theme="dark"] .jl-record__badge--waitlist,
:root[data-theme="dark"] .jl-record__badge--wait {
  color: #f3cf55;
}

:root[data-theme="dark"] .jl-record__badge--wantlist,
:root[data-theme="dark"] .jl-record__badge--want {
  color: #ff8fb6;
}

:root[data-theme="dark"] .jl-record__badge--wishlist,
:root[data-theme="dark"] .jl-record__badge--wish {
  color: #c4a8ff;
}

/* New list: one card per gift, same fields as "Add a gift" on an existing list. */
.jl-giftrows {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.jl-giftrow {
  display: grid;
  gap: 0.95rem;
  padding: 1rem 1.1rem 1.15rem;
  border-radius: var(--jl-radius-md);
  background: var(--jl-surface-2);
}

.jl-giftrow__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.jl-giftrow__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--jl-cyan);
  color: var(--jl-on-accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.jl-giftrow__title {
  margin: 0;
  font-size: var(--jl-app-meta);
  font-weight: 600;
}

.jl-giftrow__remove {
  margin-left: auto;
}

.jl-giftrow .jl-input,
.jl-giftrow .jl-upload {
  background: var(--jl-surface);
}

.jl-create-panel-body .jl-addgift__tip {
  margin: 0.25rem 0 0;
}

/* New-list preview of a WantList: options without a photo show a soft image tile instead of a bare letter. */
.jl-option__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: color-mix(in srgb, var(--jl-option-label, var(--jl-ink)) 38%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--jl-cyan) 22%, var(--jl-surface)), color-mix(in srgb, var(--jl-cyan) 6%, var(--jl-surface)));
}

.jl-option__placeholder--1 {
  background: linear-gradient(135deg, color-mix(in srgb, var(--jl-magenta) 18%, var(--jl-surface)), color-mix(in srgb, var(--jl-magenta) 5%, var(--jl-surface)));
}

.jl-option__placeholder--2 {
  background: linear-gradient(135deg, color-mix(in srgb, #eab308 22%, var(--jl-surface)), color-mix(in srgb, #eab308 6%, var(--jl-surface)));
}

.jl-option__placeholder[hidden] {
  display: none !important;
}

/* Options with photos are cards you tap, so the radio dot is redundant: the picked one gets the card
   highlight and a check on its photo instead. */
.jl-options--media .jl-option__mark {
  display: none;
}

.jl-options--media .jl-option:has(input:checked) .jl-option__media::after,
.jl-options--media .jl-option.is-selected:not(.jl-option--readonly) .jl-option__media::after {
  content: "";
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--jl-option-selected-border, var(--jl-cyan))
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E")
    center / 70% no-repeat;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.jl-menu__seg a {
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Reserved gifts: compact rows by default, cards in grid view */
.jl-rsv__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius-lg);
  background: var(--jl-surface);
}

.jl-rsv__card {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.25rem 0.9rem;
  padding: 0.75rem 0.9rem;
}

.jl-rsv__card + .jl-rsv__card {
  border-top: 1px solid var(--jl-border);
}

.jl-rsv__media {
  display: grid;
  place-items: center;
  width: 4rem;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--jl-radius);
  background: var(--jl-surface-2);
  color: var(--jl-text-muted);
}

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

.jl-rsv__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
}

.jl-rsv__title {
  margin: 0;
  color: var(--jl-ink);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
}

a.jl-rsv__title:hover {
  text-decoration: underline;
}

.jl-rsv__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.4rem;
  margin: 0;
  color: var(--jl-text-muted);
  font-size: 0.8125rem;
}

.jl-rsv__meta img {
  border-radius: 3px;
}

.jl-rsv__state.is-done {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: color-mix(in srgb, #22c55e 70%, var(--jl-ink));
  font-weight: 600;
}

.jl-rsv__state .jl-icon,
.jl-rsv__state.is-done .jl-icon {
  width: 0.9rem;
  height: 0.9rem;
}

.jl-rsv__reminder {
  color: var(--jl-ink);
  font-weight: 500;
}

.jl-rsv__note,
.jl-rsv__status {
  margin: 0;
  color: var(--jl-text-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.jl-rsv__card.is-bought .jl-rsv__media,
.jl-rsv__card.is-bought .jl-rsv__title {
  opacity: 0.6;
}

.jl-rsv__actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.jl-rsv__actions form {
  margin: 0;
}

.jl-rsv__more {
  position: relative;
}

.jl-rsv__more-btn {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  color: var(--jl-text-muted);
  cursor: pointer;
  list-style: none;
}

.jl-rsv__more-btn::-webkit-details-marker,
.jl-rsv__more-btn::marker {
  display: none;
  content: "";
}

.jl-rsv__more-btn:hover,
.jl-rsv__more[open] .jl-rsv__more-btn {
  background: var(--jl-surface-2);
  color: var(--jl-text);
}

.jl-rsv__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.3rem);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 15rem;
  padding: 0.35rem;
  background: var(--jl-surface);
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius);
  box-shadow: var(--jl-shadow);
}

.jl-rsv__menu form {
  margin: 0;
}

.jl-rsv__menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.6rem;
  border: 0;
  border-radius: calc(var(--jl-radius) - 2px);
  background: transparent;
  color: var(--jl-text);
  font: inherit;
  font-size: var(--jl-caption);
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.jl-rsv__menu-item:hover {
  background: var(--jl-surface-2);
}

.jl-rsv__menu-item.is-danger {
  color: #b4233a;
}

:root[data-theme="dark"] .jl-rsv__menu-item.is-danger {
  color: #ff8d9c;
}

.jl-rsv__remind-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem 0.6rem;
  border-bottom: 1px solid var(--jl-border);
  margin-bottom: 0.25rem;
}

.jl-rsv__remind-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--jl-ink);
  font-size: 0.875rem;
}

.jl-rsv__remind-head svg {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--jl-cyan-accessible);
}

.jl-rsv__remind-help {
  margin: 0;
  color: var(--jl-text-muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.jl-rsv__remind-form .jl-datetime,
.jl-rsv__remind-form .jl-datetime__box {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.jl-rsv__remind-form .jl-datetime__input {
  min-width: 0;
  width: 100%;
}

.jl-rsv__menu-label {
  color: var(--jl-text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.jl-rsv__remind-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.jl-rsv__date {
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
  padding-block: 0.4rem;
}

.jl-rsv[data-view="grid"] .jl-rsv__items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
  border: 0;
  background: transparent;
}

.jl-rsv[data-view="grid"] .jl-rsv__card {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 0.6rem;
  padding: 0.6rem 0.6rem 0.8rem;
  border: 1px solid var(--jl-border);
  border-radius: var(--jl-radius-lg);
  background: var(--jl-surface);
}

.jl-rsv[data-view="grid"] .jl-rsv__card + .jl-rsv__card {
  border-top: 1px solid var(--jl-border);
}

.jl-rsv[data-view="grid"] .jl-rsv__media {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.jl-rsv[data-view="grid"] .jl-rsv__actions {
  flex-wrap: wrap;
}

.jl-rsv[data-view="grid"] .jl-rsv__more {
  margin-left: auto;
}

@media (max-width: 560px) {
  .jl-rsv[data-view="list"] .jl-rsv__card {
    grid-template-columns: 3.25rem minmax(0, 1fr);
  }

  .jl-rsv[data-view="list"] .jl-rsv__media {
    width: 3.25rem;
  }

  .jl-rsv[data-view="list"] .jl-rsv__actions {
    grid-column: 1 / -1;
  }

  .jl-rsv[data-view="list"] .jl-rsv__more {
    margin-left: auto;
  }
}

/* After reserving: an optional reminder to buy the gift, set right there (Pro). */
.jl-reminder-prompt {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px dashed var(--jl-border);
  border-radius: var(--jl-radius);
  background: var(--jl-surface);
}

.jl-reminder-prompt__title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--jl-ink);
}

.jl-reminder-prompt__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.jl-reminder-prompt__gift {
  flex: 1 1 10rem;
  min-width: 0;
  font-size: var(--jl-caption);
  color: var(--jl-text-muted);
  overflow-wrap: anywhere;
}

.jl-reminder-prompt__date {
  width: auto;
  min-width: 10rem;
  min-height: 2.25rem;
}

.jl-reminder-prompt__done {
  margin: 0.5rem 0 0;
}

/* Counts that need attention: a solid pill for what is left to do, a green one for what is done */
.jl-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.jl-pill .jl-icon {
  width: 0.85rem;
  height: 0.85rem;
}

.jl-pill--todo {
  background: var(--jl-cyan);
  color: var(--jl-on-accent, #0b1220);
}

.jl-pill--done {
  background: color-mix(in srgb, #15803d 14%, var(--jl-surface));
  color: #15803d;
}

:root[data-theme="dark"] .jl-pill--done {
  color: #6ee7a0;
}

.jl-rsv__tally {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 0.4rem;
}

.jl-rsv__counts,
.jl-home-list__counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
  flex: none;
}

.jl-rsv__by {
  font-size: 0.875rem;
}

/* The human check sits under the sign-in buttons, centred and kept out of the way. */
.jl-magic__human {
  display: flex;
  justify-content: center;
  margin-top: 0.25rem;
}

/* Event pass callout (billing, and the marketing pages) */
.jl-pass-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin: 1.25rem 0 0;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  border: 1px solid currentColor;
}
.jl-pass-callout__eyebrow { margin: 0 0 0.25rem; font-size: 0.8rem; font-weight: 600; opacity: 0.7; }
.jl-pass-callout__title { margin: 0 0 0.4rem; font-size: 1.2rem; }
.jl-pass-callout__body { margin: 0; max-width: 34rem; font-size: 0.95rem; opacity: 0.85; }
.jl-pass-callout__cta { white-space: nowrap; }

/* Event pass page: one row per list, the date and the button together */
.jl-pass-explain { margin-bottom: 1rem; }
.jl-pass-pick { display: grid; gap: 0.6rem; padding: 1rem 0; border-top: 1px solid currentColor; }
.jl-pass-pick:first-of-type { border-top: 0; }
.jl-pass-pick__name { display: flex; align-items: center; gap: 0.6rem; }
.jl-pass-pick__title { font-weight: 700; }
.jl-pass-pick__row { display: flex; flex-wrap: wrap; align-items: end; gap: 0.6rem; }
.jl-pass-pick__row .jl-input { max-width: 14rem; }

/* Event pass: the offer in the list editor. It sits in the editor column, above the panels, so the phone
   preview beside it never covers the date and the button. */
.jl-event-pass {
  margin: 0 0 1rem;
}

.jl-event-pass__eyebrow {
  margin: 0 0 0.2rem;
  font-size: var(--jl-caption);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--jl-text-muted);
}

.jl-event-pass .jl-card__title {
  margin: 0;
}

.jl-event-pass .jl-meta {
  margin: 0.35rem 0 0.9rem;
}

.jl-event-pass__form {
  display: grid;
  gap: 0.4rem;
  max-width: 34rem;
}

.jl-event-pass__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.jl-event-pass__date {
  flex: 1 1 11rem;
  min-width: 0;
}
