/* Preview + paid deck photograph rule: never dim, filter, blur, desaturate, blend, or scale-soften photography; only place a scrim directly beneath text, limited to its footprint. */
#preview-content .pr-responsive-picture {
  display: contents;
}

@media (max-width: 768px) {
  /* Couple dashboard: one current vision, one quiet history list. */
  #view-dash:not(.hidden) ~ .footer {
    padding-bottom: calc(22px + env(safe-area-inset-bottom));
  }

  #view-dash .dashboard {
    min-height: calc(100dvh - 64px);
    overflow: visible;
  }

  .topbar-right > #btn-admin,
  .topbar-right > #btn-signout {
    display: none !important;
  }

  .mobile-account-overflow {
    position: relative;
    z-index: 30;
  }

  .mobile-overflow-trigger {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(198, 162, 75, 0.26);
    background: transparent;
    color: var(--parchment);
    font: 24px/1 var(--f-ui);
    letter-spacing: 0.08em;
    cursor: pointer;
  }

  .mobile-overflow-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 176px;
    padding: 6px;
    border: 1px solid var(--gold-line);
    background: #1a1712;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.46);
  }

  .mobile-overflow-menu[hidden] {
    display: none;
  }

  .mobile-overflow-menu a,
  .mobile-overflow-menu button {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 12px 13px;
    border: 0;
    background: transparent;
    color: var(--body);
    text-align: left;
    text-decoration: none;
    font: 10px var(--f-ui);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .mobile-overflow-menu a:focus-visible,
  .mobile-overflow-menu button:focus-visible {
    color: var(--gold);
    outline-offset: -2px;
  }

  .mobile-visions-dashboard {
    padding: 18px 16px 42px;
  }

  .mobile-new-wrap {
    display: grid;
    gap: 10px;
  }

  .mobile-new-vision {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 15px 18px;
    border: 1px solid var(--gold);
    background: var(--gold);
    color: var(--ink);
    text-decoration: none;
    text-transform: uppercase;
    font: 500 11px var(--f-ui);
    letter-spacing: 0.2em;
  }

  .mobile-new-vision.is-disabled {
    opacity: 0.46;
  }

  .mobile-new-limit {
    color: var(--dim);
    font: 12px/1.55 var(--f-ui);
  }

  .mobile-latest-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(660px, calc(100dvh - 158px));
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid var(--gold-line);
    background: var(--ink-panel);
  }

  .mobile-latest-picture,
  .mobile-latest-photo {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
  }

  .mobile-latest-photo {
    object-fit: cover;
    object-position: center;
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .mobile-latest-card.no-hero {
    background:
      radial-gradient(90% 72% at 80% 8%, rgba(198,162,75,.18), transparent 64%),
      linear-gradient(155deg, #241c13 0%, var(--ink) 74%);
  }

  .mobile-latest-scrim {
    position: relative;
    z-index: 2;
    width: calc(100% - 24px);
    margin: 12px;
    padding: 19px 18px 18px;
    background: rgba(20, 18, 15, 0.82);
    backdrop-filter: none;
  }

  .mobile-latest-scrim .eyebrow {
    color: var(--candle);
    font-size: 9px;
    line-height: 1.45;
    letter-spacing: 0.24em;
  }

  .mobile-latest-title {
    max-width: 14ch;
    margin-top: 9px;
    color: #fffaf0;
    font: 400 34px/1.06 var(--f-display);
  }

  .mobile-latest-couple {
    margin-top: 11px;
    color: var(--candle);
    font: 400 13px/1.35 var(--f-display);
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .mobile-latest-meta {
    margin-top: 8px;
    color: rgba(255, 250, 240, 0.72);
    font: 9px/1.65 var(--f-ui);
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .mobile-latest-state {
    margin-top: 13px;
    color: var(--body);
    font: italic 15px/1.48 var(--f-display);
  }

  .mobile-latest-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 17px;
  }

  .mobile-latest-actions:has(.pill + .pill) {
    grid-template-columns: 1fr 1fr;
  }

  .mobile-latest-actions .pill {
    justify-content: center;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 11px 10px;
    white-space: normal;
    text-align: center;
    letter-spacing: 0.13em;
  }

  .mobile-earlier {
    margin-top: 18px;
    border-top: 1px solid var(--gold-line);
    border-bottom: 1px solid var(--gold-line);
  }

  .mobile-earlier summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 0 4px;
    color: var(--parchment);
    list-style: none;
    text-transform: uppercase;
    font: 10px var(--f-ui);
    letter-spacing: 0.21em;
    cursor: pointer;
  }

  .mobile-earlier summary::-webkit-details-marker {
    display: none;
  }

  .mobile-earlier summary::after {
    content: "+";
    color: var(--gold);
    font-size: 20px;
    font-weight: 300;
  }

  .mobile-earlier[open] summary::after {
    content: "−";
  }

  .mobile-earlier summary span {
    margin-right: auto;
    margin-left: 6px;
    color: var(--dim);
  }

  .mobile-earlier-list {
    border-top: 1px solid var(--gold-line);
  }

  .mobile-earlier-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    min-height: 112px;
    padding: 16px 4px;
    border-bottom: 1px solid rgba(198, 162, 75, 0.13);
  }

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

  .mobile-earlier-title {
    overflow: hidden;
    color: var(--parchment);
    font: 400 19px/1.16 var(--f-display);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-earlier-names,
  .mobile-earlier-meta {
    margin-top: 5px;
    overflow: hidden;
    color: var(--dim);
    font: 9px/1.45 var(--f-ui);
    letter-spacing: 0.1em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .mobile-earlier-status {
    display: inline-block;
    margin-top: 7px;
    color: var(--gold);
    font: 9px var(--f-ui);
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .mobile-earlier-action .pill {
    min-height: 44px;
    max-width: 108px;
    padding: 10px 9px;
    white-space: normal;
    text-align: center;
    letter-spacing: 0.12em;
  }

  .mobile-earlier-progress {
    display: block;
    max-width: 92px;
    color: var(--dim);
    text-align: right;
    font: 10px/1.4 var(--f-ui);
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .mobile-visions-empty {
    min-height: 55dvh;
    padding: 70px 18px;
    text-align: center;
  }

  .mobile-visions-empty h1 {
    margin-top: 12px;
    color: var(--parchment);
    font: 400 34px/1.1 var(--f-display);
  }

  .mobile-visions-empty .val {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.6;
  }

  /* Signed-in zero-runs room: full-brightness photography with a localized foot gradient. */
  #view-dash .empty-room {
    min-height: calc(100dvh - 64px);
    height: calc(100dvh - 64px);
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0;
    overflow: hidden;
  }

  #view-dash .empty-room .empty-photo {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  #view-dash .empty-room .empty-foot {
    z-index: 1;
    height: 45%;
    background: linear-gradient(
      to top,
      rgba(14, 11, 7, .9),
      rgba(14, 11, 7, .42) 58%,
      transparent
    );
  }

  #view-dash .empty-room .empty-copy {
    z-index: 2;
    width: 100%;
    padding: 0 20px calc(28px + env(safe-area-inset-bottom));
  }

  #view-dash .empty-room h2 {
    margin-bottom: 12px;
    font-size: 34px;
    line-height: 1.1;
  }

  #view-dash .empty-room .val {
    max-width: 34ch;
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.55;
  }

  #view-dash .empty-room .pill {
    min-height: 46px;
    padding: 12px 18px;
  }

  body:has(#view-dash:not(.hidden) .empty-room) {
    overflow-x: hidden;
    scrollbar-width: none;
  }

  body:has(#view-dash:not(.hidden) .empty-room)::-webkit-scrollbar {
    display: none;
  }

  #preview-content [data-native-portrait="1"],
  #preview-content [data-native-portrait="1"] > .pr-mobile-lead-image,
  #preview-content [data-native-portrait="1"] > .pr-strip-image,
  #preview-content [data-native-portrait="1"] > .pr-responsive-picture > .pr-mobile-lead-image,
  #preview-content [data-native-portrait="1"] > .pr-responsive-picture > .pr-strip-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    animation: none !important;
  }

  #preview-content [data-native-portrait="1"]::before {
    display: none !important;
  }

  html,
  body {
    min-height: 100%;
    overscroll-behavior-y: none;
  }

  button,
  [role="button"],
  input,
  textarea {
    touch-action: manipulation;
  }

  input,
  textarea,
  .intake-input,
  .intake-textarea,
  .ceremony-other-input,
  #chat-textarea,
   #email-input {
    font-size: 16px !important;
  }

  #chat-scroll,
  .pr-reel,
  #pr-unlock-frame,
  .deck-content,
  .carousel-slides,
  #deck-mobile-contents,
  #deck-mobile-actions,
   .auth-side {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #chat-scroll::-webkit-scrollbar,
  .pr-reel::-webkit-scrollbar,
  #pr-unlock-frame::-webkit-scrollbar,
  .deck-content::-webkit-scrollbar,
  .carousel-slides::-webkit-scrollbar,
  #deck-mobile-contents::-webkit-scrollbar,
  #deck-mobile-actions::-webkit-scrollbar,
  .auth-side::-webkit-scrollbar,
  .dashboard::-webkit-scrollbar {
    display: none;
  }

  /* Landing */
  #cerena-landing {
    display: block;
    min-height: 100dvh;
    height: 100dvh;
    overflow: hidden;
    background: var(--cs-ink);
    border-radius: 24px;
    clip-path: inset(0 round 24px);
    font-family: "DM Sans", sans-serif;
    z-index: 200;
  }

  #cerena-landing:not([style*="display: none"]) + #view-chat > .topbar {
    visibility: hidden;
  }

  #cerena-landing::after {
    content: "";
    position: absolute;
    z-index: 20;
    inset: 0;
    border: 1px solid rgba(198, 162, 75, .62);
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(198, 162, 75, .18);
    pointer-events: none;
  }

  #cerena-landing .cl-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    z-index: 0;
    border-radius: inherit;
  }

  #cerena-landing .cl-frame {
    object-position: center;
  }

  #cerena-landing .cl-panel {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    min-height: 100%;
    padding:
      max(14px, env(safe-area-inset-top))
      20px
      calc(20px + env(safe-area-inset-bottom));
    background: transparent;
    color: var(--cs-ivory);
    pointer-events: none;
    border-radius: inherit;
  }

  #cerena-landing .cl-panel::before {
    content: "";
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 68%;
    background:
      linear-gradient(
        to bottom,
        transparent,
        color-mix(in srgb, var(--cs-ink) 76%, transparent) 30%,
        var(--cs-ink) 100%
      );
    pointer-events: none;
  }

  #cerena-landing .cl-inner {
    position: relative;
    z-index: 1;
    max-width: none;
    height: 100%;
    min-height: 0;
    padding: 0;
    margin: 0;
    justify-content: flex-end;
  }

  #cerena-landing .cl-wordmark {
    position: absolute;
    top: max(14px, env(safe-area-inset-top));
    left: 18px;
    width: 122px;
    height: auto;
    overflow: visible;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    pointer-events: auto;
  }

  #cerena-landing .cl-wm-img {
    width: 122px;
    margin-left: -11px;
  }

  #cerena-landing .cl-lockup {
    display: block;
    top: max(88px, calc(env(safe-area-inset-top) + 76px));
    right: 20px;
    bottom: auto;
    left: 20px;
    padding: 0;
    text-align: left;
    background: transparent;
    border: 0;
  }

  #cerena-landing .cl-lockup-sm {
    font-size: 10px;
    letter-spacing: .20em;
  }

  #cerena-landing .cl-lockup-lg {
    font-size: 23px;
    line-height: 1.15;
  }

  #cerena-landing .cl-lockup-rule {
    margin-left: 0;
  }

  #cerena-landing .cl-convo {
    width: 100%;
    padding: 0 2px;
    margin: 0;
    justify-content: flex-end;
    pointer-events: auto;
  }

  #cerena-landing .cl-sender {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
  }

  #cerena-landing .cl-sender-name,
  #cerena-landing .cl-sender-role {
    color: var(--cs-gold);
  }

  #cerena-landing .cl-sender-name {
    font-size: 10px;
  }

  #cerena-landing .cl-sender-role {
    margin-top: 0;
    font-size: 9px;
  }

  #cerena-landing .cl-line,
  #cerena-landing .cl-cta-sub {
    color: var(--cs-ivory);
  }

  #cerena-landing .cl-line {
    max-width: 31em;
    margin-bottom: 7px;
    font-size: clamp(13px, 3.55vw, 15.5px);
    line-height: 1.38;
  }

  #cerena-landing .cl-line-1 {
    font-size: 25px;
    line-height: 1.18;
  }

  #cerena-landing .cl-line-2 {
    font-size: 15.5px;
    line-height: 1.55;
  }

  #cerena-landing .cl-line-3,
  #cerena-landing .cl-cta-sub {
    display: none;
  }

  #cerena-landing .cl-line-4 {
    margin-bottom: 12px;
  }

  #cerena-landing .cl-cta {
    width: 100%;
    min-height: 52px;
    justify-content: space-between;
    color: var(--cs-gold);
    background: transparent;
    border-color: var(--cs-gold);
  }

  /* Intake */
  #view-chat {
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    position: relative;
    z-index: 150;
    isolation: isolate;
    background: var(--cs-ink);
    border-radius: 24px;
    clip-path: inset(0 round 24px);
  }

  #view-chat::after {
    content: "";
    position: absolute;
    z-index: 300;
    inset: 0;
    border: 1px solid rgba(198, 162, 75, .62);
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(198, 162, 75, .18);
    pointer-events: none;
  }

  #view-chat > .topbar {
    position: fixed;
    z-index: 150;
    top: 0;
    right: 0;
    left: 0;
    height: calc(72px + env(safe-area-inset-top));
    min-height: calc(72px + env(safe-area-inset-top));
    padding:
      env(safe-area-inset-top)
      16px
      0;
    background: color-mix(in srgb, var(--cs-ink) 94%, transparent);
    backdrop-filter: blur(12px);
  }

  #view-chat .intake-wm-img {
    width: 180px;
  }

  #view-preview .topbar .intake-wm-img {
    width: 170px;
    margin-left: -18px;
  }

  #view-chat .progress-wrap {
    min-width: 0;
    justify-content: flex-end;
    top: calc(72px + env(safe-area-inset-top));
    width: calc(100% - 28px);
    justify-content: center;
    pointer-events: none;
  }

  #view-chat .valentina-step-line {
    display: block !important;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 6px 12px 7px;
    color: var(--cs-ivory);
    background: rgba(20, 18, 15, .72);
    border: 1px solid var(--cs-gold-line);
    border-radius: 6px;
    line-height: 1.2;
    text-align: center;
  }

  #view-chat #btn-restart {
    display: none !important;
  }

  #intake-flow {
    position: fixed;
    z-index: 110;
    inset: 0;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    padding:
      calc(86px + env(safe-area-inset-top))
      14px
      calc(84px + env(safe-area-inset-bottom));
    overflow: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #intake-flow::-webkit-scrollbar {
    display: none;
  }

  #intake-flow::before {
    display: none;
  }

  #view-chat:has(#intake-flow.visible) > .topbar {
    background: transparent;
    border-bottom: 0;
    backdrop-filter: none;
  }

  #intake-flow .intake-bg {
    position: fixed;
    inset: 0;
  }

  #intake-flow .intake-wash {
    background: rgba(20, 18, 15, .40);
  }

  #intake-flow .intake-card {
    position: relative;
    top: 0;
    width: 100%;
    height: auto;
    max-height: none;
    min-height: 0;
    margin: 14px 0 0;
    padding: 0;
    overflow: visible;
    transform: none;
    border-radius: 6px;
    background: rgba(23, 20, 17, .94);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  #intake-flow .intake-step,
  #intake-flow #intake-closing {
    height: auto;
    max-height: none;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 16px;
    scrollbar-width: none;
  }

  #intake-flow .intake-bottom-bar {
    position: fixed;
    z-index: 170;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    min-height: calc(72px + env(safe-area-inset-bottom));
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    margin: 0;
    background: color-mix(in srgb, var(--cs-ink) 96%, transparent);
    border-top: 1px solid var(--cs-gold-line);
    backdrop-filter: blur(14px);
  }

  #intake-flow .btn-intake-back {
    width: 46px;
    min-width: 46px;
    min-height: 48px;
    padding: 0;
    overflow: hidden;
    color: transparent;
    border: 1px solid var(--cs-field-line);
    border-radius: 3px;
    font-size: 0;
  }

  #intake-flow .btn-intake-back::before {
    content: "←";
    color: var(--cs-ivory);
    font-size: 18px;
  }

  #intake-flow .intake-right-btns {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
  }

  #intake-flow .btn-intake-skip {
    min-width: 54px;
    min-height: 48px;
    padding: 0 8px;
    border: 0;
    background: transparent;
  }

  #intake-flow .btn-intake-next {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    border-radius: 3px;
  }

  /* Intake layout: keep the variable-height Valentina line in normal flow. */
  #view-chat:has(#intake-flow.visible) > .topbar {
    position: relative;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 72px auto;
    row-gap: 8px;
    height: auto;
    min-height: 0;
    padding:
      env(safe-area-inset-top)
      14px
      10px;
  }

  #view-chat:has(#intake-flow.visible) .progress-wrap {
    position: relative;
    grid-row: 2;
    top: auto;
    left: auto;
    width: 100%;
    transform: none;
    justify-self: stretch;
  }

  #view-chat:has(#intake-flow.visible) .step-label-col {
    width: 100%;
  }

  #view-chat:has(#intake-flow.visible) #intake-flow {
    position: relative;
    inset: auto;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    padding:
      0
      14px
      calc(84px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
  }

  /* Give the nested fixed/absolute carousel an explicit viewport box. */
  #intake-flow .intake-bg {
    width: 100vw;
    height: 100dvh;
    min-height: 100vh;
  }

  #intake-flow .intake-bg-slide {
    width: 100%;
    height: 100%;
    min-height: 100%;
  }

  /* A hidden Skip must not leave Next in an auto-sized first grid track. */
  #intake-flow .intake-right-btns:has(> .btn-intake-skip.hidden) {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Step 1 has neither Back nor Skip: collapse both reserved tracks. */
  #intake-flow .intake-bottom-bar:has(> .btn-intake-back.invisible):has(.btn-intake-skip.hidden) {
    grid-template-columns: minmax(0, 1fr);
  }

  #intake-flow .intake-bottom-bar:has(> .btn-intake-back.invisible):has(.btn-intake-skip.hidden) > .intake-right-btns {
    grid-column: 1 / -1;
  }

  #intake-flow .intake-heading {
    font-size: clamp(25px, 7.3vw, 34px);
    line-height: 1.05;
  }

  #intake-flow .intake-subheading {
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.45;
  }

  #intake-flow .intake-name-row,
  #intake-flow .intake-heritage-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #intake-flow .intake-partner-grid {
    gap: 10px;
  }

  #intake-flow .intake-partner-block {
    padding: 10px;
    gap: 7px;
  }

  #intake-flow .intake-input,
  #intake-flow .ceremony-other-input {
    min-height: 46px;
  }

  #intake-flow .intake-textarea {
    min-height: 112px;
    max-height: none;
  }

  #intake-flow .tradition-grid,
  #intake-flow .ceremony-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  #intake-flow .tradition-card,
  #intake-flow .ceremony-chip {
    min-height: 44px;
    padding: 8px;
  }

  #intake-flow .ceremony-partner {
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  #intake-flow .faith-consent {
    padding: 10px;
    gap: 9px;
  }

  #intake-flow .intake-color-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  #intake-flow .color-tile-img-wrap {
    aspect-ratio: 1;
    min-height: 0;
  }

  #intake-flow .color-tile:is(
    [data-color="Deep Navy"],
    [data-color="Forest Green"],
    [data-color="Charcoal"],
    [data-color="Deep Red"]
  ) .color-tile-img-wrap img {
    filter: brightness(1.38) contrast(.9) saturate(1.08);
  }

  #intake-flow .color-tile:is(
    [data-color="Deep Navy"],
    [data-color="Forest Green"],
    [data-color="Charcoal"],
    [data-color="Deep Red"]
  ) .color-name {
    color: var(--cs-ivory);
    font-weight: 500;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .8);
  }

  #intake-flow .color-name {
    min-height: 24px;
    font-size: 8px;
    line-height: 1.15;
  }

  #intake-flow .intake-month-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    position: relative; z-index: 1;
  }

  #intake-flow .month-tile {
    min-height: 44px;
    padding: 8px 4px;
  }

  #intake-flow .intake-location-input {
    position: relative;
    z-index: 3;
  }

  #intake-flow .location-suggestions {
    position: relative;
    z-index: 8;
    top: auto;
    right: 0;
    left: 0;
    max-height: min(180px, 24dvh);
    overflow-y: auto;
  }

  #intake-flow .intake-month-label {
    position: relative; z-index: 1;
  }

  /* Chat */
  #view-chat.conversation-active .progress-wrap {
    display: none;
  }

  #chat-state {
    position: fixed;
    inset:
      calc(72px + env(safe-area-inset-top))
      0
      0;
    width: 100%;
    height: auto;
    padding: 0;
    background: var(--cs-ink);
  }

  #chat-card {
    width: calc(100% - 28px);
    max-width: none;
    height: calc(100dvh - 100px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    max-height: calc(100dvh - 100px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    min-height: 0;
    border: 1px solid var(--cs-gold-line);
    border-radius: 6px;
    background: color-mix(in srgb, var(--cs-ink) 94%, transparent);
    box-shadow: none;
  }

  #chat-scroll {
    flex: 1 1 auto;
    min-height: 0;
    padding: 20px 18px 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  #chat-card .chat-divider {
    margin: 0 18px;
  }

  #chat-card .chat-card-input {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    min-height: calc(76px + env(safe-area-inset-bottom));
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--cs-ink);
  }

  #chat-card .chat-card-input.build-ready {
    display: block;
    min-height: calc(72px + env(safe-area-inset-bottom));
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--cs-gold-line);
  }

  #chat-card .chat-card-input.build-ready #btn-send {
    width: 100%;
    min-width: 0;
    height: 48px;
    min-height: 48px;
    border: 0;
    border-radius: 3px;
    background: var(--cs-gold);
    color: var(--cs-ink);
    font-family: var(--f-ui);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
  }

  #chat-card .msg-v-text {
    font-size: 17px;
    line-height: 1.5;
  }

  #chat-card .msg-user-bubble {
    max-width: 82%;
    font-size: 15px;
    line-height: 1.45;
  }

  #chat-card #chat-textarea,
  #chat-card #email-input {
    min-height: 48px;
    max-height: 120px;
  }

  #chat-card #chat-textarea {
    max-height: calc(4lh + 12px);
  }

  #chat-card #btn-send,
  #chat-card .btn-send {
    min-width: 48px;
    min-height: 48px;
  }

  /* Loading */
  #view-preview {
    height: 100dvh; min-height: 100dvh; max-height: 100dvh;
  }

  .preview-loading {
    height: 100dvh; min-height: 100dvh; max-height: 100dvh;
    align-items: center;
    justify-content: center;
    padding:
      calc(72px + env(safe-area-inset-top))
      20px
      calc(32px + env(safe-area-inset-bottom));
    text-align: center;
    background:
      radial-gradient(75% 58% at 82% 5%, rgba(184, 117, 49, .42), transparent 72%),
      radial-gradient(78% 68% at 12% 88%, rgba(119, 34, 32, .42), transparent 72%),
      linear-gradient(155deg, #2a1a10 0%, #17110e 48%, #14120F 100%);
  }

  .preview-loading::before {
    background:
      radial-gradient(62% 52% at 18% 72%, rgba(129, 51, 31, .28), transparent 72%),
      radial-gradient(48% 42% at 82% 24%, rgba(207, 145, 66, .18), transparent 74%);
  }

  .preview-loading .loading-topbar {
    position: absolute;
    z-index: 4;
    top: 0;
    right: auto;
    left: 0;
    width: 236px;
    height: calc(88px + env(safe-area-inset-top));
    padding:
      env(safe-area-inset-top)
      16px
      0;
    background:
      radial-gradient(
        ellipse 100% 92% at 0 0,
        rgba(20, 18, 15, .90) 0,
        rgba(20, 18, 15, .68) 40%,
        rgba(78, 45, 25, .30) 63%,
        transparent 79%
      );
    border: 0;
    backdrop-filter: none;
    pointer-events: none;
  }

  .preview-loading .loading-topbar img {
    width: 180px;
    margin-left: -19px;
  }

  /* Privacy document */
  body.privacy-page {
    min-width: 0;
    overflow-x: hidden;
  }

  body.privacy-page header {
    min-height: 72px;
    padding: 0 16px;
  }

  body.privacy-page .lockup img {
    width: 180px;
    margin-left: -19px;
  }

  body.privacy-page main {
    width: auto;
    margin: 0 20px;
    padding: 44px 0 64px;
  }

  body.privacy-page h1 {
    margin: 12px 0 20px;
    font-size: clamp(36px, 11vw, 46px);
  }

  body.privacy-page h2 {
    font-size: 25px;
    line-height: 1.15;
  }

  body.privacy-page .intro,
  body.privacy-page p,
  body.privacy-page li {
    font-size: 15px;
    line-height: 1.7;
  }

  body.privacy-page .notice {
    margin: 32px 0 42px;
    padding: 16px;
  }

  body.privacy-page section {
    padding: 26px 0;
  }

  body.privacy-page footer {
    padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  }

  .preview-loading .loading-name,
  .preview-loading .loading-sub,
  .preview-loading .loading-step-label,
  .preview-loading .loading-time-copy,
  .preview-loading .loading-leave-note {
    max-width: 30em;
    margin-right: auto;
    margin-left: auto;
  }

  /* Preview reel */
  #preview-content {
    height: 100dvh; min-height: 100dvh; max-height: 100dvh;
    position: fixed;
    inset: 0;
    overflow: hidden;
  }

  #preview-content .pr-mark {
    position: fixed;
    z-index: 44;
    top: 0;
    left: 0;
    width: 236px;
    height: calc(88px + env(safe-area-inset-top));
    padding:
      max(10px, env(safe-area-inset-top))
      16px
      7px;
    isolation: isolate;
    overflow: visible;
  }

  #preview-content .pr-mark::before {
    content: none;
    display: none;
  }

  #preview-content .pr-mark img {
    position: relative;
    z-index: 1;
  }

  #preview-content .pr-mark {
    border: 0;
    pointer-events: none;
  }

  #preview-content .pr-mark img {
    width: 150px;
    margin-left: -16px;
  }

  #preview-content .pr-mobile-new-vision {
    display: none !important;
  }

  #preview-content .pr-ticks {
    display: none !important;
  }

  #preview-content .pr-reel {
    counter-reset: mobile-space;
    height: 100dvh;
    padding-bottom: 0;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    overscroll-behavior-y: auto;
  }

  #preview-content .pr-frame {
    height: 100dvh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background:
      radial-gradient(86% 64% at 12% 12%, rgba(126, 58, 32, .58), transparent 68%),
      radial-gradient(72% 58% at 88% 48%, rgba(188, 125, 48, .34), transparent 72%),
      radial-gradient(82% 62% at 24% 92%, rgba(100, 28, 31, .34), transparent 70%),
      linear-gradient(155deg, #2a1a10 0%, #17110e 54%, #100d0b 100%);
  }

  #preview-content .pr-frame:not(#pr-unlock-frame) {
    padding-top: 0;
  }

  #preview-content .pr-frame[id^="pr-z"] {
    counter-increment: mobile-space;
  }

  #preview-content .pr-frame[id^="pr-z"]::before {
    display: none;
    content: none;
  }

  #preview-content .pr-frame > img.pr-bg.pr-desktop-lead,
  #preview-content .pr-frame > .pr-responsive-picture > img.pr-bg.pr-desktop-lead {
    display: none;
  }

  #preview-content [data-mobile-lead-stage][hidden] {
    display: none !important;
  }

  #preview-content .pr-mobile-lead-stage,
  #preview-content .pr-strip-item {
    position: absolute;
    inset: 0;
    isolation: isolate;
    overflow: hidden;
    background: transparent;
  }

  #preview-content .pr-mobile-lead-stage {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
  }

  #preview-content .pr-mobile-lead-stage::before,
  #preview-content .pr-strip-item::before {
    content: none;
    display: none;
  }

  #preview-content [data-mobile-lead-stage] > .pr-mobile-lead-image,
  #preview-content [data-mobile-lead-stage] > .pr-responsive-picture > .pr-mobile-lead-image {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: translate3d(-50%, -50%, 0);
    transform-origin: center;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-drag: none;
  }

  #preview-content .pr-space-strip [data-mobile-lead-stage] > .pr-mobile-lead-image,
  #preview-content .pr-space-strip [data-mobile-lead-stage] > .pr-responsive-picture > .pr-mobile-lead-image {
    touch-action: pan-x;
  }

  @keyframes pr-mobile-lead-pan {
    0% {
      transform: translate3d(-50%, -50%, 0);
    }
    42% {
      transform: translate3d(calc(-50% + var(--pr-pan-near-x, 0px)), -50%, 0);
    }
    100% {
      transform: translate3d(calc(-50% + var(--pr-pan-far-x, 0px)), -50%, 0);
    }
  }

  #preview-content [data-mobile-lead-stage].is-pan-active > .pr-mobile-lead-image,
  #preview-content [data-mobile-lead-stage].is-pan-active > .pr-responsive-picture > .pr-mobile-lead-image {
    animation: pr-mobile-lead-pan 6s ease-in-out infinite alternate;
    will-change: transform;
  }

  #preview-content [data-mobile-lead-stage].is-pan-paused > .pr-mobile-lead-image,
  #preview-content [data-mobile-lead-stage].is-pan-paused > .pr-responsive-picture > .pr-mobile-lead-image {
    animation-play-state: paused;
  }

  #preview-content .pr-space-strip {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    height: 100%;
    width: 100%;
    min-height: 100%;
    gap: 0;
    padding-right: 0;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x;
  }

  #preview-content .pr-space-strip::-webkit-scrollbar {
    display: none;
  }

  #preview-content .pr-space-strip > .pr-strip-item {
    position: relative;
    inset: auto;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    min-height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  #preview-content .pr-strip-item > .pr-strip-image,
  #preview-content .pr-strip-item > .pr-responsive-picture > .pr-strip-image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  #preview-content .pr-space-controls {
    position: absolute;
    z-index: 6;
    right: 18px;
    top: 12px;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0;
    color: var(--cs-ivory);
  }

  #preview-content .pr-space-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--cs-gold);
    font-size: 22px;
    line-height: 1;
    transition: opacity .2s ease;
    touch-action: manipulation;
  }

  #preview-content .pr-space-arrow:disabled {
    opacity: .22;
  }

  #preview-content .pr-space-readout {
    flex: 0 0 auto;
    min-width: 112px;
    margin: 0 4px;
    color: var(--cs-ivory);
    font-family: var(--f-ui);
    font-size: 10px;
    line-height: 1.35;
    letter-spacing: .04em;
    text-align: center;
  }

  #preview-content .pr-scrim {
    display: none;
  }

  #preview-content .pr-caption {
    position: absolute;
    z-index: 5;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    max-height: 46dvh;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    padding: 54px 20px calc(18px + env(safe-area-inset-bottom));
    background:
      linear-gradient(
        to top,
        rgba(16, 13, 11, .58) 0%,
        rgba(16, 13, 11, .48) 62%,
        transparent 100%
      );
    transition: background .2s ease;
  }

  #preview-content .pr-caption > .pr-eyebrow,
  #preview-content .pr-caption > .pr-zone-num {
    position: relative;
    z-index: 3;
    order: initial;
    display: block;
    flex: 0 0 auto;
    margin: 0 0 6px;
    color: var(--cs-gold);
    font-family: var(--f-ui);
    font-size: 9px;
    line-height: 1.3;
    letter-spacing: .24em;
    text-transform: uppercase;
  }

  #preview-content .pr-cue {
    display: none;
  }

  #preview-content .pr-caption > :not(.pr-eyebrow):not(.pr-zone-num) {
    position: relative;
    z-index: 3;
    order: initial;
    flex: 0 0 auto;
    margin-right: 0;
    margin-left: 0;
    text-align: left;
  }

  #preview-content #pr-hero .pr-preview-share-control {
    display: flex;
    margin-top: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    opacity: 1;
    visibility: visible;
  }

  #preview-content .pr-preview-share-control .btn-action.btn-action-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 15px;
    color: var(--cs-ink);
    background: var(--cs-gold);
    border-color: var(--cs-gold);
    font-weight: 600;
    opacity: 1;
    visibility: visible;
  }

  #preview-content .pr-preview-share-control .btn-action.btn-action-primary:hover,
  #preview-content .pr-preview-share-control .btn-action.btn-action-primary:focus-visible,
  #preview-content .pr-preview-share-control .btn-action.btn-action-primary:active {
    color: var(--cs-ink);
    background: var(--cs-ivory);
    border-color: var(--cs-ivory);
  }

  #preview-content .pr-preview-share-confirmation,
  #preview-content .pr-preview-unlock-message {
    margin: 0;
    color: rgba(232, 221, 208, .76);
    font-family: var(--f-ui);
    font-size: 9px;
    line-height: 1.4;
    letter-spacing: .02em;
    text-shadow: none;
  }

  #preview-content .reveal,
  #preview-content .reveal.in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  #preview-content .pr-couple,
  #preview-content .pr-zone-name,
  #preview-content .pr-day-name {
    font-size: clamp(27px, 8.2vw, 34px);
    line-height: 1.04;
    margin-top: 0;
    margin-bottom: 8px;
  }

  #preview-content .pr-frame[id^="pr-z"] .pr-zone-name {
    margin-bottom: 4px;
    font-size: 28px;
  }

  #preview-content .pr-mobile-description-toggle {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px;
    gap: 8px;
    width: 100%;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    text-align: left;
  }

  #preview-content .pr-mobile-description-toggle .pr-zone-line {
    display: -webkit-box !important;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  #preview-content .pr-mobile-description-chevron {
    align-self: start;
    color: var(--cs-gold);
    font-size: 22px;
    line-height: 1;
    transform: rotate(0);
    transition: transform .2s ease;
  }

  #preview-content .pr-caption.is-expanded {
    background: linear-gradient(to top, rgba(16, 13, 11, .78), rgba(16, 13, 11, .68) 72%, transparent);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  #preview-content .pr-caption.is-expanded .pr-mobile-description-toggle .pr-zone-line {
    display: block !important;
    overflow: visible;
    -webkit-line-clamp: unset;
  }

  #preview-content .pr-caption.is-expanded .pr-mobile-description-chevron {
    transform: rotate(180deg);
  }

  #preview-content .pr-mobile-caption-unlock {
    display: block;
    align-self: flex-start;
    min-height: 36px;
    margin-top: 10px;
    padding: 8px 14px;
    color: var(--cs-ink);
    background: var(--cs-gold);
    border: 0;
    font-family: var(--f-ui);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  #preview-content .pr-mobile-preview-header-actions {
    position: fixed;
    z-index: 45;
    top: max(14px, env(safe-area-inset-top));
    right: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }

  #preview-content .pr-mobile-preview-header-actions .btn-action {
    min-height: 34px;
    color: var(--cs-ink);
    background: var(--cs-gold);
    border-color: var(--cs-gold);
    font-weight: 600;
  }

  #preview-content .pr-mobile-preview-header-actions .pr-preview-share-confirmation {
    max-width: 190px;
    color: var(--cs-ivory);
    text-align: right;
  }

  #preview-content #pr-hero .pr-caption .pr-preview-share-control {
    display: none;
  }

  #preview-content .pr-concept {
    font-size: clamp(29px, 8.8vw, 36px);
    line-height: 1.04;
    margin-top: 0;
    margin-bottom: 8px;
  }

  #preview-content .pr-tagline,
  #preview-content .pr-zone-line,
  #preview-content .pr-concept-body,
  #preview-content .pr-day-summary {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: var(--cs-ivory);
    font-size: 15px;
    line-height: 1.38;
    text-shadow: none;
  }

  #preview-content .pr-concept-body {
    margin-bottom: 14px;
  }

  #preview-content .pr-day-summary {
    margin-top: 2px;
    margin-bottom: 14px;
    color: var(--cs-ivory-mute);
    font-family: var(--f-ui);
    font-size: 11px;
    line-height: 1.45;
    letter-spacing: .04em;
  }

  #preview-content .pr-palette {
    gap: 6px;
    width: 100%;
    margin-top: 2px;
    margin-right: 0;
    margin-left: 0;
    max-width: none;
    flex-wrap: nowrap;
  }

  #preview-content .pr-mat {
    min-width: 0;
    height: 58px;
    border-radius: 6px;
    box-shadow:
      0 12px 24px rgba(0,0,0,.42),
      inset 0 1px 0 rgba(255,255,255,.2);
  }

  #preview-content .pr-fill,
  #preview-content .pr-edge {
    border-radius: inherit;
  }

  #preview-content .pr-sheen {
    mix-blend-mode: soft-light;
    opacity: .72;
    background:
      linear-gradient(
        135deg,
        rgba(255,255,255,.46) 0%,
        rgba(255,255,255,.08) 24%,
        transparent 47%,
        rgba(0,0,0,.22) 72%,
        rgba(255,255,255,.18) 100%
      );
    transform: none;
    animation: none;
  }

  #preview-content .pr-mat b {
    padding: 5px;
    overflow: hidden;
    font-size: 7px;
    letter-spacing: .12em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #preview-content .pr-pill {
    position: fixed;
    z-index: 50;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    min-height: calc(64px + env(safe-area-inset-bottom));
    margin: 0;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    justify-content: center;
    transform: none;
    border: 0;
    border-top: 1px solid var(--cs-gold-line);
    border-radius: 0;
    background:
      linear-gradient(var(--cs-gold), var(--cs-gold))
      center 10px / calc(100% - 24px) calc(100% - 20px - env(safe-area-inset-bottom))
      no-repeat,
      var(--cs-ink);
    color: var(--cs-ink);
    backdrop-filter: none;
  }

  #preview-content .pr-pill {
    display: none !important;
  }

  #pr-mobile-readout[hidden] {
    display: none !important;
  }

  #view-preview > .debug-bar {
    display: none !important;
  }

  #pr-mobile-readout[hidden].is-zone {
    display: none !important;
    border-top: 1px solid var(--cs-gold-line);
    font-family: var(--f-ui);
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: .04em;
    text-align: center;
    backdrop-filter: blur(12px);
  }

  #preview-content .pr-pill.pr-pill-hide {
    display: none !important;
  }

  /* Paywall */
  #preview-content #pr-unlock-frame {
    display: block;
    position: relative;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  #preview-content #pr-unlock-frame .pr-mobile-unlock[hidden] {
    display: block !important;
    position: relative;
    height: 100%;
    padding:
      calc(104px + env(safe-area-inset-top))
      18px
      calc(222px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  #preview-content #pr-unlock-frame .pr-uwrap {
    display: none;
  }

  #preview-content .pr-mobile-unlock-kicker {
    margin: 0 0 16px;
    color: var(--cs-gold);
    font-family: var(--f-ui);
    font-size: 9px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-shadow: none;
  }

  #preview-content .pr-mobile-unlock-head {
    margin-bottom: 26px;
  }

  #preview-content .pr-mobile-unlock-head h2 {
    margin: 0;
    color: var(--cs-ivory);
    font-family: var(--f-display);
    font-size: clamp(31px, 9.2vw, 39px);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -.025em;
    text-shadow: none;
  }

  #preview-content .pr-mobile-unlock-head p {
    margin: 6px 0 0;
    color: var(--cs-candle, #E8BC6A);
    font-family: var(--f-display);
    font-size: clamp(24px, 7.4vw, 31px);
    font-style: italic;
    line-height: 1.08;
    text-shadow: none;
  }

  #preview-content .pr-mobile-benefits {
    display: grid;
    gap: 0;
  }

  #preview-content .pr-mobile-benefit {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 13px;
    padding: 14px 0;
    border-top: 1px solid var(--cs-gold-line);
  }

  #preview-content .pr-mobile-benefit:last-child {
    border-bottom: 1px solid var(--cs-gold-line);
  }

  #preview-content .pr-mobile-benefit-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--cs-gold);
    border: 1px solid var(--cs-gold);
    border-radius: 50%;
  }

  #preview-content .pr-mobile-benefit-icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.15;
  }

  #preview-content .pr-mobile-benefit h3 {
    margin: 0 0 3px;
    color: var(--cs-ivory);
    font-family: var(--f-ui);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    text-shadow: none;
  }

  #preview-content .pr-mobile-benefit p {
    margin: 0;
    color: var(--cs-body, #E8DDD0);
    font-family: var(--f-ui);
    font-size: 11.5px;
    line-height: 1.45;
    text-shadow: none;
  }

  #preview-content .pr-mobile-benefit--strong h3 {
    color: var(--cs-candle, #E8BC6A);
    font-size: 15px;
    text-shadow: none;
  }

  #preview-content .pr-mobile-counts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 24px 0 30px;
    padding: 16px 0;
    border-top: 1px solid var(--cs-gold-line);
    border-bottom: 1px solid var(--cs-gold-line);
  }

  #preview-content .pr-mobile-counts span {
    display: flex;
    min-width: 0;
    padding: 0 6px;
    flex-direction: column;
    color: rgba(232, 221, 208, .62);
    border-left: 1px solid var(--cs-gold-line);
    font-family: var(--f-ui);
    font-size: 7px;
    line-height: 1.3;
    letter-spacing: .05em;
    text-align: center;
    text-transform: uppercase;
    text-shadow: none;
  }

  #preview-content .pr-mobile-counts span:first-child {
    border-left: 0;
  }

  #preview-content .pr-mobile-counts b {
    margin-bottom: 3px;
    color: var(--cs-ivory);
    font-family: var(--f-display);
    font-size: 23px;
    font-weight: 400;
    line-height: 1;
    text-shadow: none;
  }

  #preview-content .pr-mobile-chip-group {
    margin: 0 0 24px;
  }

  #preview-content .pr-mobile-chip-group h3 {
    margin: 0 0 10px;
    color: var(--cs-gold);
    font-family: var(--f-ui);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-shadow: none;
  }

  #preview-content .pr-mobile-chip-group ul {
    display: flex;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
  }

  #preview-content .pr-mobile-chip-group li {
    padding: 7px 10px;
    color: var(--cs-body, #E8DDD0);
    border: 1px solid var(--cs-gold-line);
    border-radius: 999px;
    font-family: var(--f-ui);
    font-size: 10px;
    line-height: 1;
    text-shadow: none;
  }

  #preview-content .pr-mobile-concept-note {
    margin: 0;
    padding: 15px;
    color: rgba(232, 221, 208, .68);
    border-left: 2px solid var(--cs-gold);
    background: rgba(198, 162, 75, .07);
    font-family: var(--f-ui);
    font-size: 10.5px;
    line-height: 1.5;
    text-shadow: none;
  }

  #preview-content .pr-mobile-buybar {
    position: absolute;
    z-index: 48;
    right: 0;
    bottom: 0;
    left: 0;
    padding:
      10px
      16px
      calc(9px + env(safe-area-inset-bottom));
    background: rgba(20, 18, 15, .97);
    border-top: 1px solid var(--cs-gold-line);
    backdrop-filter: blur(14px);
  }

  #preview-content .pr-mobile-buybar[hidden] {
    display: block !important;
  }

  #preview-content .pr-mobile-buyrow {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
  }

  #preview-content .pr-mobile-price {
    color: var(--cs-ivory);
    font-family: var(--f-display);
    font-size: 35px;
    line-height: 1;
    text-shadow: none;
  }

  #preview-content .pr-mobile-price small {
    color: var(--cs-gold);
    font-family: var(--f-ui);
    font-size: 8px;
    letter-spacing: .12em;
    text-shadow: none;
  }

  #preview-content #btn-unlock-mobile {
    min-height: 46px;
    padding: 0 13px;
    font-size: 10px;
    white-space: nowrap;
  }

  #preview-content .pr-mobile-buycopy {
    margin: 7px 0 0 calc(50px + 14px);
  }

  #preview-content .pr-mobile-buycopy p {
    margin: 2px 0 0;
    color: rgba(232, 221, 208, .68);
    font-family: var(--f-ui);
    font-size: 8.5px;
    line-height: 1.25;
    text-align: center;
    text-shadow: none;
  }

  /* Deck */
  #view-deck {
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
  }

  #view-deck .deck-topbar {
    position: fixed;
    z-index: 180;
    top: 0;
    right: 0;
    left: 0;
    height: calc(72px + env(safe-area-inset-top));
    min-height: calc(72px + env(safe-area-inset-top));
    padding:
      env(safe-area-inset-top)
      14px
      0;
    gap: 8px;
    background: color-mix(in srgb, var(--c-pearl) 96%, transparent);
    backdrop-filter: blur(12px);
  }

  #view-deck .deck-topbar .deck-wm-img {
    width: 148px;
    margin-left: -16px;
  }

  #view-deck .deck-topbar-center {
    align-items: flex-start;
    min-width: 0;
  }

  #view-deck .deck-wedding-name,
  #view-deck .deck-couple-date {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #view-deck .deck-actions > .btn-action:not(#btn-mobile-deck-actions) {
    display: none !important;
  }

  #btn-mobile-deck-actions[hidden] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    min-height: 44px;
    padding: 0 12px;
  }

  #view-deck .deck-body {
    min-height: 0;
    height: 100dvh;
    padding:
      calc(72px + env(safe-area-inset-top))
      0
      calc(82px + env(safe-area-inset-bottom));
  }

  #view-deck .deck-sidebar {
    display: none !important;
  }

  #view-deck .deck-content {
    width: 100%;
    height: 100%;
    padding: 24px 16px 42px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  #view-deck .deck-section,
  #view-deck .concept-page,
  #view-deck .zone-page,
  #view-deck .timeline-page,
  #view-deck .yw-page {
    height: auto;
    min-height: 100%;
    max-height: none;
    overflow: visible;
  }

  #view-deck .zone-title {
    font-size: clamp(28px, 8.5vw, 40px);
  }

  #view-deck .zone-body,
  #view-deck .timeline-desc,
  #view-deck .yw-detail-value {
    font-size: 14px;
  }

  #view-deck .zone-carousel {
    display: block;
    flex: none;
    width: calc(100% + 32px);
    height: auto;
    min-height: 0;
    margin: 0 -16px 18px;
    overflow: visible;
  }

  #view-deck .carousel-slides {
    display: flex;
    width: 100%;
    height: auto;
    min-height: 0;
    position: static;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
  }

  #view-deck .carousel-slide,
  #view-deck .carousel-slide.active,
  #view-deck .zone-shot-pair,
  #view-deck .zone-shot-single,
  #view-deck .zone-shot-portrait-row {
    display: contents;
  }

  #view-deck .carousel-slides .zone-image,
  #view-deck .carousel-slides .li-no-image {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    border-radius: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  #view-deck .carousel-slides .zone-image.portrait {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
  }

  #view-deck .carousel-slides .zone-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #view-deck .carousel-nav {
    display: none !important;
  }

  /* The paid mobile deck is paged. Desktop continues to use navigate(). */
  #view-deck .deck-content.mobile-deck-document {
    display: block;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: auto;
    overscroll-behavior-y: contain;
  }

  #view-deck .mobile-deck-section {
    display: none;
    flex-direction: column;
    min-height: 100%;
    padding: 8px 0 24px;
    touch-action: pan-y;
  }

  #view-deck .mobile-deck-section.is-active {
    display: flex;
  }

  #view-deck .mobile-deck-zone-heading {
    padding-bottom: 14px;
  }

  #view-deck .mobile-deck-gallery {
    position: relative;
    width: calc(100% + 32px);
    margin: 0 -16px;
    background: var(--cs-ink);
    overflow: hidden;
  }

  #view-deck .mobile-deck-image-strip {
    display: flex;
    width: 100%;
    height: auto;
    align-items: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
  }

  #view-deck .mobile-deck-image-strip::-webkit-scrollbar {
    display: none;
  }

  #view-deck .mobile-deck-image-item {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  #view-deck .mobile-deck-picture,
  #view-deck .mobile-deck-picture img {
    display: block;
    width: 100%;
    height: auto;
  }

  #view-deck .mobile-deck-picture img {
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    transform: none !important;
    object-fit: contain;
  }

  #view-deck .mobile-deck-image-controls {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
    min-height: 48px;
    color: #F6F0E8;
    background: linear-gradient(to top, rgba(8, 12, 20, .82), rgba(8, 12, 20, 0));
    font-family: var(--f-ui);
    font-size: 10px;
    letter-spacing: .08em;
    pointer-events: none;
  }

  #view-deck .mobile-deck-space-gallery {
    height: calc(100dvh - 300px);
    min-height: 480px;
    max-height: 560px;
  }

  #view-deck .mobile-deck-space-gallery .mobile-deck-image-strip,
  #view-deck .mobile-deck-space-gallery .mobile-deck-image-item,
  #view-deck .mobile-deck-space-gallery .mobile-deck-picture,
  #view-deck .mobile-deck-space-gallery .mobile-deck-picture img {
    height: 100%;
  }

  #view-deck .mobile-deck-space-gallery .mobile-deck-picture img {
    width: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
  }

  #view-deck .mobile-deck-space-gallery [data-landscape-fallback="true"] img {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    object-fit: cover;
    animation: mobile-deck-landscape-pan 16s ease-in-out infinite alternate;
  }

  @keyframes mobile-deck-landscape-pan {
    from { object-position: 30% center; }
    to { object-position: 70% center; }
  }

  #view-deck .mobile-deck-space-scrim {
    display: block;
    min-height: 0;
    padding: 16px 18px;
    background: rgba(8, 12, 20, .5);
    pointer-events: none;
  }

  #view-deck .mobile-deck-image-nav {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
  }

  #view-deck .mobile-deck-space-eyebrow {
    margin: 0 48px 4px;
    color: var(--c-champagne);
    font-size: 8px;
    letter-spacing: .18em;
    text-align: center;
  }

  #view-deck .mobile-space-label {
    font-size: 16px;
    letter-spacing: .10em;
  }

  #view-deck .mobile-space-count {
    margin-left: 5px;
    font-size: 8px;
    letter-spacing: .12em;
  }

  #view-deck .mobile-deck-space-copy-toggle {
    position: relative;
    display: grid;
    width: 100%;
    height: auto;
    min-height: 72px;
    padding: 8px 28px 0 0;
    color: #F6F0E8;
    background: transparent;
    border: 0;
    text-align: left;
    pointer-events: auto;
  }

  #view-deck .mobile-deck-space-title {
    font-family: var(--f-display);
    font-size: 28px;
    line-height: 1.08;
  }

  #view-deck .mobile-deck-space-short,
  #view-deck .mobile-deck-space-full {
    margin-top: 8px;
    font-family: var(--f-ui);
    font-size: 12px;
    font-weight: 300;
    line-height: 1.5;
  }

  #view-deck .mobile-deck-space-short {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  #view-deck .mobile-deck-space-full {
    display: none;
    max-height: 28dvh;
    overflow-y: auto;
  }

  #view-deck .mobile-deck-space-chevron {
    position: absolute;
    top: 10px;
    right: 0;
    width: 9px;
    height: 9px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
  }

  #view-deck .mobile-deck-space-gallery.is-expanded .mobile-deck-space-short {
    display: none;
  }

  #view-deck .mobile-deck-space-gallery.is-expanded .mobile-deck-space-full {
    display: block;
  }

  #view-deck .mobile-deck-space-gallery.is-expanded .mobile-deck-space-scrim {
    padding-top: 16px;
    background: rgba(8, 12, 20, .7);
  }

  #view-deck .mobile-deck-space-gallery.is-expanded .mobile-deck-space-chevron {
    transform: rotate(225deg);
  }

  #view-deck .mobile-deck-image-controls span {
    text-align: center;
  }

  #view-deck .mobile-deck-image-controls button {
    width: 44px;
    height: 44px;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    font-size: 20px;
    pointer-events: auto;
  }

  #view-deck .mobile-deck-image-controls button:disabled {
    opacity: .35;
  }

  #view-deck .mobile-deck-ink {
    position: relative;
    z-index: 1;
    margin: 0 -16px;
    padding: 22px 16px 4px;
    color: var(--c-text-body);
    background: var(--c-frost);
  }

  #view-deck .mobile-deck-world-copy {
    padding-top: 24px;
  }

  #view-deck .mobile-deck-world-copy .zone-title {
    margin-bottom: 14px;
  }

  #view-deck .mobile-deck-detail-grid {
    display: grid;
    gap: 0;
    margin-top: 18px;
    border-top: var(--border-soft);
  }

  #view-deck .mobile-deck-detail-row {
    display: grid;
    grid-template-columns: minmax(82px, 28%) minmax(0, 1fr);
    gap: 12px;
    padding: 11px 0;
    border-bottom: var(--border-soft);
  }

  #view-deck .mobile-deck-detail-row span {
    color: var(--c-champagne);
    font-family: var(--f-ui);
    font-size: 8px;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  #view-deck .mobile-deck-detail-row strong {
    color: var(--c-text-body);
    font-family: var(--f-ui);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.55;
  }

  #view-deck .mobile-deck-detail-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
  }

  #view-deck .mobile-deck-detail-chips span {
    padding: 6px 9px;
    color: var(--c-text-muted);
    border: var(--border-soft);
    font-family: var(--f-ui);
    font-size: 9px;
    letter-spacing: .06em;
  }

  #view-deck .mobile-deck-read-more {
    margin-top: 16px;
    padding-top: 12px;
    border-top: var(--border-soft);
    color: var(--c-text-body);
    font-family: var(--f-ui);
    font-size: 13px;
    line-height: 1.65;
  }

  #view-deck .mobile-deck-read-more summary {
    width: max-content;
    min-height: 38px;
    color: var(--c-champagne);
    cursor: pointer;
    font-size: 10px;
    letter-spacing: .12em;
    line-height: 38px;
    list-style: none;
    text-transform: uppercase;
  }

  #view-deck .mobile-deck-read-more summary::-webkit-details-marker {
    display: none;
  }

  #view-deck .mobile-deck-read-more summary::after {
    content: " +";
  }

  #view-deck .mobile-deck-read-more[open] summary::after {
    content: " −";
  }

  #view-deck .mobile-deck-expanded {
    display: grid;
    gap: 0;
    padding-bottom: 8px;
  }

  #view-deck .mobile-deck-expanded-copy {
    padding: 8px 0 12px;
  }

  #view-deck .mobile-deck-page-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-top: auto;
    padding-top: 28px;
  }

  #view-deck .mobile-deck-page-nav.is-single {
    grid-template-columns: minmax(0, 1fr);
  }

  #view-deck .mobile-deck-page-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 74px;
    padding: 13px 14px;
    color: var(--c-text-strong);
    background: transparent;
    border: var(--border);
    font-family: var(--f-ui);
    text-align: left;
  }

  #view-deck .mobile-deck-page-back {
    text-align: right;
  }

  #view-deck .mobile-deck-page-control small,
  #view-deck .mobile-deck-page-control strong {
    display: block;
  }

  #view-deck .mobile-deck-page-control small {
    margin-bottom: 4px;
    color: var(--c-champagne);
    font-size: 8px;
    font-weight: 400;
    letter-spacing: .16em;
    text-transform: uppercase;
  }

  #view-deck .mobile-deck-page-control strong {
    font-family: var(--f-display);
    font-size: 18px;
    font-weight: 400;
  }

  #view-deck .mobile-deck-full-contrast {
    opacity: 1 !important;
    color: var(--c-text-body);
  }

  #view-deck .mobile-deck-opening {
    padding-top: 0;
  }

  #view-deck .mobile-deck-opening-hero {
    position: relative;
    display: grid;
    min-height: calc(100dvh - 276px);
    margin: 0 -16px;
    overflow: hidden;
    background: var(--cs-ink);
  }

  #view-deck .mobile-deck-opening-hero .mobile-deck-picture,
  #view-deck .mobile-deck-opening-hero .mobile-deck-picture img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  #view-deck .mobile-deck-opening-hero .mobile-deck-picture img {
    object-fit: cover;
  }

  #view-deck .mobile-deck-opening-copy {
    position: relative;
    z-index: 1;
    align-self: end;
    padding: 96px 18px 22px;
    color: #F6F0E8;
    background: linear-gradient(to top, rgba(8, 12, 20, .9), rgba(8, 12, 20, 0));
  }

  #view-deck .mobile-deck-opening-copy .zone-title {
    color: #F6F0E8;
  }

  #view-deck .mobile-deck-opening-couple {
    margin-bottom: 8px;
    font-family: var(--f-ui);
    font-size: 9px;
    letter-spacing: .18em;
    text-transform: uppercase;
  }

  #view-deck .mobile-deck-opening-quote {
    max-width: 34rem;
    margin-top: 12px;
    font-family: var(--f-display);
    font-size: 17px;
    font-style: italic;
    line-height: 1.45;
  }

  #view-deck .mobile-deck-opening-link {
    min-height: 40px;
    margin-top: 14px;
    padding: 0;
    color: #F6F0E8;
    background: transparent;
    border: 0;
    border-bottom: 1px solid currentColor;
    font-family: var(--f-ui);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  #view-deck .mobile-deck-opening-prose {
    margin: 0 -16px;
    padding: 24px 16px 4px;
    background: var(--c-frost);
  }

  #view-deck .mobile-deck-opening-prose-block {
    margin-bottom: 22px;
  }

  #view-deck .mobile-deck-opening-prose-block .zone-label {
    margin-bottom: 7px;
    font-family: var(--f-ui);
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  #view-deck .mobile-deck-no-image {
    width: calc(100% + 32px);
    min-height: 180px;
    margin: 0 -16px;
    display: grid;
    place-items: center;
    color: var(--c-text-muted);
    background: var(--cs-ink);
    font-family: var(--f-ui);
    font-size: 12px;
  }

  #view-deck .mobile-deck-closing {
    display: grid;
    align-content: center;
    min-height: calc(100dvh - 230px);
  }

  #view-deck .mobile-image-readout {
    padding: 10px 16px 0;
    color: var(--c-text-muted);
    font-family: var(--f-ui);
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: .08em;
    text-align: center;
  }

  #preview-content .pr-preview-share-control--mobile-unlock {
    display: grid;
    margin-top: 8px;
    justify-items: center;
    gap: 5px;
    opacity: 1;
    visibility: visible;
  }

  #preview-content .pr-preview-share-control--mobile-unlock .btn-action {
    width: 100%;
  }

  #preview-content .pr-preview-share-control--mobile-unlock .pr-preview-share-confirmation,
  #preview-content .pr-preview-share-control--mobile-unlock .pr-preview-unlock-message {
    text-align: center;
  }

  #view-deck .mobile-next-space {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    margin-top: 24px;
    padding: 0 14px;
    color: var(--c-text-strong);
    background: transparent;
    border: var(--border);
    font-family: var(--f-ui);
    font-size: 11px;
    letter-spacing: .10em;
    text-align: left;
  }

  #view-deck .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  #view-deck .pr-groups,
  #view-deck .lifestyle-grid {
    grid-template-columns: 1fr;
  }

  #view-deck .yw-detail-row {
    display: grid;
    grid-template-columns: minmax(88px, 28%) minmax(0, 1fr);
    gap: 12px;
  }

  #view-deck .yw-detail-row.mobile-wraps {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  #view-deck .pdf-bar {
    display: none !important;
  }

  #deck-mobile-bar[hidden] {
    position: fixed;
    z-index: 175;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: calc(72px + env(safe-area-inset-bottom));
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--c-pearl) 97%, transparent);
    border-top: var(--border);
    backdrop-filter: blur(14px);
  }

  #deck-mobile-bar .deck-mobile-bar-copy {
    min-width: 0;
  }

  #deck-mobile-context {
    color: var(--c-champagne);
    font-family: var(--f-ui);
    font-size: 8px;
    letter-spacing: .18em;
    text-transform: uppercase;
  }

  #deck-mobile-title {
    margin-top: 3px;
    overflow: hidden;
    color: var(--c-text-strong);
    font-family: var(--f-display);
    font-size: 17px;
    font-style: italic;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #btn-mobile-deck-contents {
    min-width: 92px;
    min-height: 44px;
    color: var(--c-text-strong);
    background: transparent;
    border: var(--border);
    font-family: var(--f-ui);
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
  }

  #deck-mobile-scrim[hidden] {
    position: fixed;
    z-index: 190;
    inset: 0;
    display: none !important;
    background: color-mix(in srgb, var(--c-gate-black) 72%, transparent);
  }

  #deck-mobile-scrim[hidden].is-open {
    display: block !important;
  }

  #deck-mobile-contents[hidden],
  #deck-mobile-actions[hidden] {
    position: fixed;
    z-index: 200;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    display: block !important;
    width: 100%;
    max-height: min(82dvh, 700px);
    padding:
      14px
      18px
      calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    background: var(--c-pearl);
    border-top: var(--border);
    border-radius: 14px 14px 0 0;
    transform: translateY(102%);
    transition: transform 240ms ease;
  }

  #deck-mobile-contents[hidden].is-open,
  #deck-mobile-actions[hidden].is-open {
    transform: translateY(0);
  }

  .deck-mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding-bottom: 16px;
    border-bottom: var(--border);
  }

  .deck-mobile-drawer-title {
    color: var(--c-text-strong);
    font-family: var(--f-display);
    font-size: 27px;
    font-style: italic;
  }

  .deck-mobile-close {
    width: 44px;
    min-width: 44px;
    height: 44px;
    color: var(--c-text-strong);
    background: transparent;
    border: var(--border);
    font-size: 20px;
  }

  #deck-mobile-contents-list,
  #deck-mobile-actions-list {
    padding-top: 10px;
  }

  .deck-mobile-group {
    margin: 18px 0 8px;
    color: var(--c-champagne);
    font-family: var(--f-ui);
    font-size: 8px;
    letter-spacing: .20em;
    text-transform: uppercase;
  }

  .deck-mobile-day {
    margin: 14px 0 5px;
    color: var(--c-champagne);
    font-family: var(--f-ui);
    font-size: 9px;
    letter-spacing: .14em;
    text-transform: uppercase;
  }

  .deck-mobile-entry {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 46px;
    padding: 8px 4px;
    color: var(--c-text-body);
    background: transparent;
    border: 0;
    border-bottom: var(--border-soft);
    font-family: var(--f-ui);
    font-size: 13px;
    text-align: left;
  }

  .deck-mobile-entry.is-current {
    color: var(--c-text-strong);
    border-left: 2px solid var(--c-champagne);
    padding-left: 12px;
  }

  /* /visions: gate, sign-in and dashboard */
  body > .topbar {
    position: relative;
    z-index: 20;
    height: calc(64px + env(safe-area-inset-top));
    min-height: calc(64px + env(safe-area-inset-top));
    padding:
      env(safe-area-inset-top)
      18px
      0;
  }

  body > .topbar .lockup .mark {
    width: 150px;
    height: 48px;
  }

  .auth-wrap,
  #view-register.gate-mode {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 170px minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
    height: calc(100dvh - 64px - env(safe-area-inset-top));
    min-height: 0;
    max-height: calc(100dvh - 64px - env(safe-area-inset-top));
    padding: 0;
    overflow: hidden;
  }

  .auth-wrap .auth-photo,
  #view-register.gate-mode .auth-photo {
    position: relative;
    inset: auto;
    width: 100%;
    height: 170px;
    min-height: 170px;
    border: 0;
  }

  .auth-photo .cap,
  #view-register.gate-mode .auth-photo .cap {
    right: 18px;
    bottom: 14px;
    left: 18px;
  }

  .auth-photo .cap .t {
    font-size: 24px;
    line-height: 1;
  }

  .auth-photo .cap .s {
    margin-top: 4px;
  }

  .auth-wrap .auth-side,
  #view-register.gate-mode .auth-side {
    position: relative;
    z-index: 3;
    display: block;
    width: 100%;
    max-width: none;
    min-height: 0;
    padding: 16px 22px calc(14px + env(safe-area-inset-bottom));
    overflow-y: auto;
    background: var(--ink);
    border: 0;
    box-shadow: none;
  }

  .auth-h,
  #view-register.gate-mode .auth-h {
    font-size: 27px;
    line-height: 1;
  }

  .auth-val,
  #view-register.gate-mode .auth-val {
    margin: 7px 0 12px;
    font-size: 14px;
    line-height: 1.35;
  }

  .social-stack {
    gap: 7px;
  }

  .btn-social {
    min-height: 44px;
  }

  .divider {
    margin: 10px 0;
  }

  .field-wrap {
    margin-bottom: 9px;
  }

  .field-label {
    margin-bottom: 4px;
  }

  .field {
    min-height: 44px;
    font-size: 16px !important;
    height: 44px;
    padding: 9px 12px;
  }

  .auth-actions {
    margin-top: 10px;
  }

  .auth-actions .pill {
    min-height: 44px;
    padding: 10px 18px;
  }

  .legal {
    margin-top: 10px;
  }

  .dashboard {
    min-height: calc(100dvh - 64px - env(safe-area-inset-top));
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .featured {
    min-height: min(66dvh, 560px);
  }

  .featured::after {
    content: "";
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    height: 46%;
    background:
      linear-gradient(
        to bottom,
        transparent,
        color-mix(in srgb, var(--ink) 88%, transparent)
      );
    pointer-events: none;
  }

  .featured-copy {
    z-index: 2;
    padding:
      0
      22px
      calc(28px + env(safe-area-inset-bottom));
  }

  .featured-copy .pill {
    min-height: 44px;
  }

  /* D16-4 — the dashboard's latest-vision card. Its markup has always
     carried .mobile-latest-scrim; these rules make it what its name says:
     the photograph fills the card underneath, and the title sits inside a
     bottom gradient, readable over any photograph. Overlay only — the
     photograph itself is untouched. */
  .mobile-latest-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(64dvh, 540px);
    overflow: hidden;
    background: var(--ink-panel);
  }

  .mobile-latest-picture,
  .mobile-latest-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
  }

  .mobile-latest-photo {
    object-fit: cover;
    object-position: center;
  }

  .mobile-latest-scrim {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 110px 22px calc(26px + env(safe-area-inset-bottom));
    background:
      linear-gradient(
        to top,
        rgba(14, 11, 7, 0.97),
        rgba(14, 11, 7, 0.62) 46%,
        transparent
      );
  }

  /* A card with no photograph keeps the shared .no-hero backdrop; a scrim
     over nothing would only dim it. */
  .mobile-latest-card.no-hero .mobile-latest-scrim {
    padding-top: 64px;
    background: none;
  }

  .mobile-latest-title {
    margin: 12px 0 8px;
    font-family: var(--f-display);
    font-size: 40px;
    font-weight: 400;
    line-height: 1.05;
    color: #fffaf0;
  }

  .mobile-latest-couple {
    font-family: var(--f-display);
    font-size: 14px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--candle);
  }

  .mobile-latest-meta {
    margin-top: 8px;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 250, 240, 0.72);
  }

  .mobile-latest-state {
    max-width: 46ch;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--body);
  }

  .mobile-latest-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
  }

  .mobile-latest-actions .pill {
    min-height: 44px;
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  #preview-content [data-mobile-lead-stage] > .pr-mobile-lead-image,
  #preview-content [data-mobile-lead-stage] > .pr-responsive-picture > .pr-mobile-lead-image {
    width: 100%;
    max-width: 100%;
    height: 100%;
    animation: none !important;
    object-fit: contain;
    transform: translate3d(-50%, -50%, 0) !important;
  }

  #cerena-landing .cl-frame,
  #deck-mobile-contents[hidden],
  #deck-mobile-actions[hidden],
  #view-deck .carousel-slides {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ── D15 — LOADING LOCKUP RULE (mobile) ──────────────────────────────────────
   Owner ruling, stated here as well as in the desktop stylesheet so neither
   surface can drift: on the loading page the Cerena lockup is CENTRED ABOVE
   VALENTINA, SMALL and UNCROPPED, and there is NO DARK TOP BAND behind it.
   It sits in the loading column's normal flow — never an absolutely positioned
   bar — and is sized by height with width:auto, so the artwork is never
   cropped or stretched at any width.
   The concept title beneath it appears only once the compile has produced one;
   until then the line stays Valentina's neutral copy. */
.preview-loading .loading-topbar {
  position: relative;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border-bottom: 0;
  padding: 0;
  margin: 0 0 24px;
}

.preview-loading .loading-topbar img {
  display: block;
  height: 24px;
  width: auto;
  max-width: 68vw;
  object-fit: contain;
  margin: 0;
}

/* ── D15d-A1 — RESTORATION SEAM ──────────────────────────────────────────────
   The whole 11-September stylesheet (b7cf8ba) returns above, and the two later
   owner rulings — the D15-11 loading lockup and the D15b-4 latest-card scrim —
   are re-applied verbatim after it. Three declarations from the restored rules
   are not re-stated by those rulings and would leak through the cascade
   against their intent: the old absolute top bar's fixed width and
   pointer-events (the lockup is centred and sized by its artwork), and the old
   scrim box's 12px margin (the gradient scrim fills the card edge to edge).
   This seam retires exactly those three; nothing else is rewritten. */
.preview-loading .loading-topbar {
  width: auto;
  pointer-events: auto;
}

.mobile-latest-scrim {
  margin: 0;
}