/* brand-tokens:start — generated from packages/ui/src/brand/tokens.css by scripts/build-brand-tokens.mjs; do not edit */
:root{
  color-scheme:light;
  --cloud:#FDFDFE;
  --sky:#0099FF;
  --sky-deep:#0069C8;
  --sky-ink:#00579E;
  --red:#E63F26;
  --red-deep:#C93320;
  --sky-tint-1:#E8F5FF;
  --sky-tint-2:#CDEAFF;
  --sky-tint-3:#9BD8FF;
  --surface:#F3F7FB;
  --surface-2:#EAF1F8;
  --red-tint:#FDECE8;
  --ink:#16181D;
  --ink-2:#454B54;
  --ink-3:#62686F;
  --line:#DBE2EA;
  --line-strong:#B9C6D4;
  --ok:#14743F;
  --ok-tint:#E5F4EA;
  --warn:#8A5A00;
  --warn-tint:#FFF1CF;
  --err:#C93320;
  --err-tint:#FDECE8;
  --info:#0069C8;
  --info-tint:#E8F5FF;
  --focus-ring:0 0 0 2px var(--cloud), 0 0 0 4px var(--sky-deep);
  --shadow-card:0 1px 2px rgb(0 62 120 / .05),0 4px 16px rgb(0 62 120 / .06);
  --shadow-raised:0 2px 6px rgb(0 62 120 / .07),0 14px 34px rgb(0 62 120 / .11);
  --shadow-pop:0 8px 28px rgb(0 62 120 / .18);
  /* platform layout token (not a brand value) */
  --lockup-h:40px;
  --font-display:'Archivo','Inter',-apple-system,'Segoe UI',Roboto,sans-serif;
  --font-text:'Inter',-apple-system,'Segoe UI',Roboto,sans-serif;
  --display-stretch:118%;
  --display-tracking:-0.015em;
  --radius-btn:10px;
  --radius-card:16px;
  --radius-input:10px;
  --radius-lg:24px;
  --radius-pill:999px;
  --space-1:4px;
  --space-2:8px;
  --space-3:12px;
  --space-4:16px;
  --space-5:24px;
  --space-6:32px;
  --space-7:48px;
  --space-8:64px;
  --space-9:96px;
  --space-10:128px;
  --motion-fast:120ms;
  --motion-base:200ms;
  --motion-slow:340ms;
  /* platform layout token (not a brand value) */
  --motion-pulse:1.4s;
  --ease-standard:cubic-bezier(.2,0,0,1);
  --ease-out:cubic-bezier(0,0,.2,1);
  --ease-in-out:cubic-bezier(.4,0,.2,1);
  --type-display-1:clamp(2.9rem,6vw + 1rem,5.4rem);
  --type-display-2:clamp(2.3rem,4.2vw + .6rem,3.8rem);
  --type-display-3:2.2rem;
  --type-h3:1.55rem;
  --type-h4:1.28rem;
  --type-h5:1.1rem;
  --type-body:1.0625rem;
  --type-body-sm:.9375rem;
  --type-caption:.8125rem;
  --type-micro:.72rem;
  --lh-display:1.0;
  --lh-head:1.14;
  --lh-body:1.55;
  /* DA-T1 (Mobile Density program, DENSITY-AUDIT §2.1–2.3): the
     Miglesia app-shell design tokens — Miglesia's OWN surfaces only
     (landing, funnel, Studio, panel). Theme-rendered church sites
     keep their theme tokens; these must never reach the renderer.
     The 4-pt spacing scale maps onto the --space-* tokens above;
     --mi-gutter is its one new value (shells drop it to 16px below
     360px wide). Floor: nothing below --mi-micro (12px) anywhere in
     the app shell; nothing interactive below 13px text. */
  --mi-display:clamp(2.25rem,min(10vw,11svh),2.75rem);
  --mi-display-lh:1;
  --mi-display-moment:1.75rem;
  --mi-display-moment-lh:1.1;
  --mi-title-1:1.75rem;
  --mi-title-1-lh:2.125rem;
  --mi-title-2:1.5rem;
  --mi-title-2-lh:1.8125rem;
  --mi-headline:1.25rem;
  --mi-headline-lh:1.625rem;
  --mi-body:1rem;
  --mi-body-lh:1.5rem;
  --mi-question:1.0625rem;
  --mi-question-lh:1.5rem;
  --mi-input:1.0625rem;
  --mi-input-lh:1.5rem;
  --mi-button:1.0625rem;
  --mi-button-lh:1.375rem;
  --mi-button-sm:1rem;
  --mi-button-sm-lh:1.25rem;
  --mi-segmented:.9375rem;
  --mi-callout:.875rem;
  --mi-callout-lh:1.25rem;
  --mi-eyebrow:.8125rem;
  --mi-eyebrow-lh:1rem;
  --mi-meta:.8125rem;
  --mi-meta-lh:1rem;
  --mi-micro:.75rem;
  --mi-landing-h2:1.625rem;
  --mi-landing-h2-lh:1.875rem;
  --mi-gutter:20px;
  --mi-card-pad:16px;
  --mi-btn-h:48px;
  --mi-chip-h:44px;
  --mi-topbar-h:52px;
}
/* brand-tokens:end */
/* DA-T1: below 360px the shell gutter steps down to 16px (§2.2). */
@media(max-width:359px){:root{--mi-gutter:16px}}
/* brand-fonts:start — generated from packages/ui/src/brand/fonts.css by scripts/build-brand-tokens.mjs; do not edit */
/* Canonical self-hosted platform faces; Archivo is the display face; paths are relative to each shell. */
@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;src:url(fonts/inter-latin.woff2) format('woff2');font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Archivo';font-style:normal;font-weight:500 900;font-stretch:62% 125%;src:url(fonts/archivo-latin.woff2) format('woff2');font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* brand-fonts:end */
/* P-F1: the named motion utility subset (keyframes + classes). Every
   animation below is neutralized by the global reduced-motion rule. */
@keyframes miglesia-fade{from{opacity:0}to{opacity:1}}
@keyframes miglesia-fade-up{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@keyframes miglesia-drawer-slide{from{opacity:0;transform:translateX(2rem)}to{opacity:1;transform:none}}
@keyframes miglesia-toast-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.motion-fade{animation:miglesia-fade var(--motion-base) var(--ease-out)}
.motion-fade-up{animation:miglesia-fade-up var(--motion-base) var(--ease-out)}
.motion-drawer-slide{animation:miglesia-drawer-slide var(--motion-base) var(--ease-out)}
.motion-toast-in{animation:miglesia-toast-in var(--motion-slow) var(--ease-out)}
/* P-Q1 (P-V7-c): the journey toast — the dashboard stylesheet's toast
   rules (static-dashboard/styles.css) at the same values, so a
   confirmation reads identically on every surface of the product. */
.toast-region{position:fixed;right:16px;bottom:16px;z-index:1200;display:grid;gap:8px;max-width:min(24rem,calc(100vw - 32px))}
.toast{background:var(--ink);color:var(--cloud);padding:12px 16px;border-radius:8px;border-inline-start:5px solid var(--red);display:flex;gap:12px;align-items:center;box-shadow:0 8px 24px rgb(10 21 38 / .3);animation:miglesia-toast-in var(--motion-slow) var(--ease-out)}
*{
  box-sizing:border-box
}
body{
  margin:0;
  background:var(--cloud);
  color:var(--ink);
  font:var(--type-body)/1.6 var(--font-text)
}
h1,h2,h3,.wordmark{
  font-family:var(--font-display);
  font-weight:700;
  letter-spacing:var(--display-tracking);
  line-height:1.12;
  /* P-F1: a display headline never overflows its container — a long
     church name wraps (D-40: wrap, never shrink the name to fit). */
  overflow-wrap:anywhere
}
h1{
  /* Brief 106 (mobile overflow): the old clamp pinned the hero at its
     2.5rem floor across the whole 360–800px range — the size never scaled
     with the viewport, and under wider serif metrics the headline could
     clip at phone widths. The size now tracks viewport width through the
     mobile range (~34.6px at 360px, ~37px at 430px, ~73px at 1440px) and
     still caps at the same 5.2rem desktop maximum.
     P-F1: that exact clamp now lives in the shared --type-display-1
     token (see :root); this rule references the token. */
  font-size:var(--type-display-1);
  letter-spacing:-.04em
}
h2{
  font-size:var(--type-display-2)
}
h3{
  font-size:var(--type-h3)
}
p{
  max-width:65ch
}
a{
  color:var(--sky-deep);
  text-underline-offset:4px
}
header,footer{
  padding:var(--space-5) max(var(--space-5),calc((100vw - 1280px)/2));
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--space-5);
  border-bottom:1px solid var(--line)
}
footer{
  padding-bottom:calc(24px + env(safe-area-inset-bottom, 0px));
  border-top:1px solid var(--line);
  border-bottom:0;
  margin-top:64px;
  font-size:.9rem
}
/* cx34-10: the resume link is a real control on touch — give it a
   full-height hit area instead of a 23px text line. */
footer>a{display:inline-block;padding:10px 0}
/* Round 3 (R3-5): the composed brand footer — lockup + about, real
   navigation, and the help path in three columns over a bottom row.
   The class rule overrides the shared header/footer flex layout. */
.site-footer{
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr);
  gap:var(--space-6) var(--space-7);
  align-items:start
}
.footer-mark{
  --lockup-h:26px
}
.footer-about{
  margin:14px 0 0;
  max-width:38ch
}
.site-footer h3{
  font-size:1.05rem;
  margin:2px 0 10px
}
.footer-nav{
  flex-direction:column;
  align-items:flex-start;
  gap:2px
}
/* JE-T3 (JOURNEY-EVAL JE-24): footer link rows meet the 44px touch
   floor — the links' line box is 23px, so 11px of vertical padding
   makes each row 45px. Only the rows' own height grows. */
.footer-nav a,.footer-help a{
  display:inline-block;
  padding:11px 0
}
.footer-help p{
  margin:0 0 4px
}
.footer-bottom-row{
  grid-column:1/-1;
  border-top:1px solid var(--line);
  padding-top:16px
}
.footer-bottom-row p{
  margin:0
}
@media(max-width:700px){
  .site-footer{
    grid-template-columns:1fr;
    gap:var(--space-5)
  }
}
.wordmark{
  font-size:2rem;
  text-decoration:none;
  color:var(--ink)
}
/* JE-T3 (JOURNEY-EVAL JE-24): the chrome lockup links meet the 44px
   touch floor — the same hit-area pattern UX-FIX-FLOOR shipped for the
   funnel header (.funnel-header .wordmark, which keeps its own rule).
   The artwork stays at --lockup-h; only the link's own box grows, with
   the span centered inside it. Scoped to the marketing header and the
   composed footer; the Studio subbar's lockup is a div, untouched. */
header .wordmark,.site-footer .wordmark{
  display:inline-flex;
  align-items:center;
  min-height:44px
}
/* PX-F22 (FG-2, founder ruling Nov 13, 2026): the lockup's tagline
   <small> no longer exists — the proposed tagline was not adopted, so
   the R3-5 tagline treatment (this rule) is removed with the element.
   The lockup is the C1 artwork alone. */
nav,.actions{
  display:flex;
  gap:var(--space-3);
  align-items:center;
  flex-wrap:wrap
}
main{
  max-width:1280px;
  margin:auto;
  padding:var(--space-6) var(--space-5)
}
section{
  margin-bottom:64px
}
.hero{
  padding:40px 0 var(--space-7);
  max-width:1000px
}
.hero-mark{display:block;width:28px;height:4px;background:var(--red);margin-bottom:var(--space-4)}
.hero h1{
  font-size:clamp(2.6rem,4.6vw,4.1rem)
}
.hero h1 span{
  display:block
}
.hero h1 span+span{
  color:var(--sky-deep)
}
.hero p{
  font-size:1.3rem;
  max-width:48ch;
  margin-bottom:32px
}
button,.button{
  display:inline-block;
  font:inherit;
  cursor:pointer;
  padding:12px 24px;
  border:1px solid var(--sky-deep);
  border-radius:var(--radius-btn);
  font-weight:600;
  background:var(--sky-deep);
  color:var(--cloud);
  text-decoration:none;
  text-align:center;
  transition:background-color var(--motion-fast) var(--ease-standard),color var(--motion-fast) var(--ease-standard),border-color var(--motion-fast) var(--ease-standard),transform var(--motion-fast) var(--ease-standard)
}
/* Brief 106 (B2): one spacing rule for every CTA pair/group on the page —
   a real 16px gap (the hero pair previously rendered flush, sharing an
   edge), wrapping safely instead of colliding at narrow widths. */
.cta-row{
  display:flex;
  flex-wrap:wrap;
  gap:var(--space-4);
  align-items:center
}
/* Brief 106 (§A): the secondary action gains a clear hover voice of its
   own (accent border + ink shift on cloud) instead of the generic grey
   wash it shared with every other control. */
.button.secondary{background:var(--cloud);color:var(--ink);border:1px solid var(--line)}
.button.secondary:hover{
  background:var(--cloud);
  border-color:var(--sky-deep);
  color:var(--sky-ink)
}
button:active,.button:active{
  transform:translateY(1px)
}
button:hover,.button:hover{
  background:var(--sky-ink)
}
.primary{
  background:var(--sky-deep);
  color:var(--cloud)
}
.primary:hover{
  background:var(--sky-ink);
  color:var(--cloud)
}
/* DA-T1: filled primary actions carry the button token — 48px
   comfort height at the 22px button line-height (the base rule's
   padding then lands single-line primaries at exactly 48). Filled
   buttons are never underlined (base rule, text-decoration:none).
   The Studio ribbon's phone primary keeps its own 44px rule — its
   ID selector outranks this one (DA-T3 owns the ribbon). */
button.primary,.button.primary{min-height:var(--mi-btn-h);line-height:var(--mi-button-lh)}
.reveal-actions button,.reveal-actions .button{min-height:var(--mi-btn-h);line-height:var(--mi-button-lh)}
/* UNSLP-T16 (audit O-2; tokens.md §4 state contract): a disabled button
   takes the quiet disabled treatment — --ink-3 text on --surface with a
   hairline border and no shadow — instead of the enabled primary fill at
   half opacity. The :hover twins keep a hovered disabled button from
   flashing back to the primary hover fill. */
button:disabled,.button:disabled,
button:disabled:hover,.button:disabled:hover{
  background:var(--surface);
  color:var(--ink-3);
  border-color:var(--line);
  box-shadow:none;
  opacity:1;
  cursor:default
}
button[aria-pressed=true],.button[aria-pressed=true]{
  background:var(--sky-tint-1);
  color:var(--sky-deep);
  box-shadow:inset 0 0 0 2px var(--sky-deep)
}
/* STUDIO-P1-STATES: shared option states; UNSLP-T03 re-token to the §4 contract. */
.opt-group{display:flex;flex-wrap:wrap;gap:var(--space-2);align-items:center}
.opt-group button[aria-pressed="false"],
.service-tiles button[aria-pressed="false"],
.mobile-mode button[aria-pressed="false"],
.preview-locale-pair button[aria-pressed="false"],
[data-photo-source] button[aria-pressed="false"],
.placement-alternatives button[aria-pressed="false"],
.service-days button[aria-pressed="false"],
.library-chip[aria-pressed="false"]{
  background:var(--cloud);
  color:var(--ink);
  border:1px solid var(--line)
}
.opt-group button[aria-pressed="true"],
.service-tiles button[aria-pressed="true"],
.mobile-mode button[aria-pressed="true"],
.preview-locale-pair button[aria-pressed="true"],
[data-photo-source] button[aria-pressed="true"],
.placement-alternatives button[aria-pressed="true"],
.service-days button[aria-pressed="true"],
.library-chip[aria-pressed="true"]{
  background:var(--sky-tint-1);
  color:var(--sky-deep);
  border:1px solid transparent;
  box-shadow:inset 0 0 0 2px var(--sky-deep);
  font-weight:700
}
:focus-visible{
  outline:3px solid var(--sky-deep);
  outline-offset:4px
}
.cards{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:var(--space-5);
  padding-left:0;
  list-style-position:inside
}
.card,.question-card,.setup-card,.service-card,.domain-card,.inspector,.draft-row{
  background:var(--cloud);
  border:1px solid var(--line);
  border-radius:var(--radius-card);
  padding:var(--space-5);
  box-shadow:var(--shadow-card)
}
.card h3{
  margin:16px 0 8px
}
.example-frame-wrap{
  position:relative;
  /* PE-GALLERY: measured hero height supersedes the photo aspect ratio. */
  overflow:hidden;
  background:var(--example-bg, var(--cloud));
  border-top:4px solid var(--example-accent, var(--line))
}
/* Brief 103 (G1): until the example frame paints, the card shows the
   design's name in its own ink on its own background — an intentional
   placeholder, not a blank hole. The frame paints over it once loaded. */
.example-frame-wrap::before{
  content:attr(data-example-label);
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:var(--example-ink);
  opacity:.55;
  font-weight:600;
  letter-spacing:.02em;
  pointer-events:none
}
/* PE-GALLERY: separate detail and choose actions supersede the stretched link. */
.example-card{
  position:relative;
  transition:transform var(--motion-base) var(--ease-standard), box-shadow var(--motion-base) var(--ease-standard)
}
.example-card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow-raised)
}
.example-card:hover .example-frame-wrap{
  box-shadow:inset 0 0 0 2px var(--example-accent, var(--sky-deep))
}
.example-card:active{
  transform:translateY(-1px);
  box-shadow:var(--shadow-raised)
}
.example-card:focus-within{
  outline:3px solid var(--sky-deep);
  outline-offset:4px
}
.example-card a[data-example-link]{
  font-weight:600
}
@media (prefers-reduced-motion: reduce){
  .example-card{
    transition:none
  }
  .example-card:hover,.example-card:active{
    transform:none
  }
}
.step-desc{margin:8px 0 0;font-size:var(--mi-body)}
ol.cards li::marker{color:var(--sky-deep);font-weight:700}
.theme-signature{margin:4px 0 0;font-size:.95rem}
.reveal-note{margin:16px 0 0}
.reveal-name{font-size:1.25rem;margin:8px 0 0}
/* R4-C1 (§9): step-2 guidance and the address-reconciliation choice. */
.setup-intro{margin:12px 0 0;font-size:var(--mi-body)}
.field-help{margin:6px 0 0;font-size:var(--mi-callout);color:var(--ink-2);text-decoration:none;cursor:default}
.address-reconcile{display:flex;gap:10px;align-items:flex-start;margin:10px 0 0;font-weight:600}
.address-reconcile input{margin-top:3px;width:20px;height:20px;flex:none}
/* R4-C1 (§10): the reveal's framed preview card — the TOP of the site,
   height-limited with a fade into the page, never a full-page scroll.
   The frame itself is taller than the card and inert: looking, not
   scrolling, is what the full-preview tap is for. */
.reveal-card{margin:24px auto 0;max-width:860px}
.reveal-frame{position:relative;height:440px;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--cloud);box-shadow:0 16px 36px -28px rgb(10 21 38 / .45);margin:0 auto}
.reveal-frame iframe{height:880px;min-height:880px;pointer-events:none}
.reveal-frame::after{content:'';position:absolute;left:0;right:0;bottom:0;height:120px;background:linear-gradient(to bottom,rgb(250 246 239 / 0),var(--cloud));pointer-events:none}
.reveal-actions{display:flex;gap:16px;flex-wrap:wrap;align-items:center;margin-top:16px}
.button.quiet{background:transparent;border:1px solid transparent;color:var(--sky-ink);text-decoration:underline;text-underline-offset:3px}
.button.quiet:hover{background:var(--surface);color:var(--ink)}
/* R4-C1 (§11): the checkpoint's slim confirmation + saved banner. */
.saved-banner{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}
.checkpoint-actions{display:flex;gap:16px;flex-wrap:wrap;align-items:center;margin:20px 0}
.readiness-action{font-weight:600}
/* P-V3 (§7): the return-to-work cards — the entry choice's summaries
   and the account panel's saved-website rows — share the one card
   anatomy: cloud surface, shared shadow, the wider padding rhythm. */
.start-summary{border:1px solid var(--line);border-radius:12px;padding:20px 24px;margin:20px 0;background:var(--cloud);box-shadow:var(--shadow-card)}
.draft-thumb{background:var(--surface);border:1px solid var(--line);border-radius:8px;min-height:44px;margin-bottom:12px}
.start-edited,.draft-edited{margin:6px 0 0;font-size:.9rem}
.draft-row{margin:12px 0}
.start-name{font-size:1.25rem;font-weight:700;margin:0}
.start-web,.start-progress{margin:6px 0 0}
.start-options{display:grid;gap:12px;justify-items:start;margin-top:20px}
.start-options button{min-height:44px}
.start-note{margin:0}
.start-confirm{border-top:1px solid var(--line);margin-top:24px;padding-top:8px}
.studio-welcome{background:var(--surface);border-left:4px solid var(--sky-deep);padding:20px;margin-bottom:24px}
.studio-welcome h2{margin-top:0;font-size:1.5rem}
.pricing{
  grid-template-columns:minmax(0,620px);
  justify-content:center
}
/* Brief 106 (B4): the single-plan card carries the page's one deliberate
   elevation — a restrained shadow in the same family as the template
   cards' approved hover shadow — plus roomier padding and a heading that
   starts flush at the top of the card. */
#precios .card h3{
  margin-top:0
}
.price{
  /* P-V2 (§4): the price rides the shared display token (P-F1 scale)
     instead of a one-off 2.5rem, in the same serif as the headings. */
  font-family:var(--font-display);
  font-weight:700;
  letter-spacing:var(--display-tracking);
  font-size:var(--type-display-2);
  margin:20px 0 16px
}
/* Brief 106 (B5): the checkmark list is shared by the pricing card and the
   closing band's "what your church receives" list — one style, both homes. */
.includes{
  list-style:none;
  padding:0;
  font-size:1em
}
.includes li{
  display:block;
  position:relative;
  padding-left:1.5em
}
.includes li::before{
  content:'';
  position:absolute;
  left:.16em;
  top:.34em;
  width:.38em;
  height:.66em;
  border-right:2px solid var(--sky-deep);
  border-bottom:2px solid var(--sky-deep);
  transform:rotate(45deg)
}
.includes li+li{
  margin-top:6px
}
/* Brief 106 (B5): the closing band is a composed two-column close —
   heading + CTA on one side, the receives list on the other — instead of
   a heading and a button stranded in a wide empty field. */
.final-band{
  padding:40px;
  background:var(--surface);
  border-radius:12px;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:var(--space-4) var(--space-7);
  align-items:center
}
.final-band h2{
  margin-top:0
}
.final-includes{
  margin:0
}
@media(max-width:700px){
  .final-band{
    grid-template-columns:1fr;
    padding:var(--space-6) var(--space-5)
  }
}
/* --- P-V2: marketing composition -------------------------------------
   Hero previews, the example cards' identity stack, the "what your
   church receives" section, and the plan card. Everything here is
   scoped to the front door (its classes render nowhere else) and rides
   the shared tokens: Umbral C1 colors, the P-F1 type + motion tables.
   Motion is transform/shadow only and dies under reduced motion. */
/* §5: every front-door control is a real 44px touch target. */
main[data-view=front-door] button,main[data-view=front-door] .button{
  min-height:44px
}
/* §1: hero previews — framed site previews built from the demos' hero
   photos. Phones: they stack below the CTAs in DOM order, full width.
   Wider: a composed arrangement (one wide frame over two) that sits
   beside the headline on desktop, never squeezing it. */
.hero-previews{
  display:grid;
  grid-template-columns:1fr;
  gap:var(--space-4);
  margin-top:40px
}
.hero-preview{
  display:block;
  text-decoration:none;
  color:var(--ink);
  background:var(--cloud);
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 16px 36px -28px rgb(10 21 38 / .45);
  transition:transform var(--motion-base) var(--ease-standard), box-shadow var(--motion-base) var(--ease-standard)
}
.hero-preview:hover{
  transform:translateY(-3px);
  box-shadow:0 22px 44px -26px rgb(10 21 38 / .5)
}
.hero-preview-bar{
  display:flex;
  align-items:baseline;
  gap:var(--space-3);
  padding:10px var(--space-4);
  background:var(--surface);
  border-bottom:1px solid var(--line);
  font-size:var(--type-caption)
}
.hero-preview-bar strong{
  min-width:0
}
.hero-preview-theme{
  margin-left:auto;
  white-space:nowrap;
  color:var(--sky-deep);
  font-weight:600
}
.hero-preview-img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:3/2;
  object-fit:cover
}
@media(min-width:640px){
  .hero-previews{
    grid-template-columns:1fr 1fr
  }
  .hero-preview:first-child{
    grid-column:1/-1
  }
}
@media(min-width:1024px){
  .hero{
    max-width:none;
    display:grid;
    grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);
    column-gap:56px;
    align-items:start;
    align-content:start
  }
  .hero h1,.hero>p,.hero .cta-row{
    grid-column:1
  }
  .hero-previews{
    grid-column:2;
    grid-row:1/4;
    margin-top:0
  }
}
@media (prefers-reduced-motion: reduce){
  .hero-preview{
    transition:none
  }
  .hero-preview:hover{
    transform:none
  }
}
/* §2: the example card's identity stack — design name + demo city under
   the church name. */
.example-meta{
  display:flex;
  flex-wrap:wrap;
  gap:4px 8px;
  align-items:baseline;
  font-size:var(--type-body-sm);
  color:var(--sky-deep);
  font-weight:600
}
.example-city::before{
  content:'·';
  margin-right:8px
}
/* EQ-6: one primary benefit followed by three supporting inclusions. */
@media(min-width:701px){
  #ejemplos .cards{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .receive-cards{
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
}
.receive-card{
  box-shadow:none
}
.receive-card h3{
  margin-top:0;
  font-size:var(--type-body);
  font-weight:600
}
.receive-featured{
  grid-column:1/-1;
  border-top:4px solid var(--sky-deep);
  box-shadow:var(--shadow-card)
}
.receive-featured h3{
  font-size:var(--type-display-3)
}
.receive-bilingual{
  margin:24px 0 0;
  padding:14px 20px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:999px;
  text-align:center;
  font-weight:600;
  max-width:none
}
.flow-strip{
  margin-bottom:24px
}
.question-card{
  max-width:860px;
  margin:auto
}
.question-card h2{
  margin-top:0
}
.badge,.pill{display:inline-flex;align-items:center;padding:4px 10px;border-radius:var(--radius-pill);font-size:.75rem;font-weight:600;letter-spacing:.04em;background:var(--surface);color:var(--ink)}
.badge{margin-bottom:24px}
progress{
  width:100%;
  height:10px;
  accent-color:var(--sky-deep)
}
label{
  display:block;
  font-size:.95rem;
  margin:16px 0
}
/* DA-T1: funnel form questions carry the question token (17/24/600 —
   they GROW from 15.2/400). Scoped to the setup card/rail so Studio
   and panel-form labels keep their own sizes; inputs nested inside a
   question label keep the input weight (400), not the label's 600. */
.setup-card label,.setup-card legend,.setup-rail label,.setup-rail legend{font-size:var(--mi-question);line-height:var(--mi-question-lh);font-weight:600}
.setup-card label :is(input,select,textarea),.setup-rail label :is(input,select,textarea){font-weight:400}
/* DA-T3 (Density §3.7): the Studio's form labels take the same
   question token — DA-T1 scoped it to the setup card/rail and left
   the inspector's labels at the global .95rem (15.2/400). The
   inspector is the Studio's form surface; its labels are the same
   pastor-facing questions. Nested controls keep the input weight,
   mirroring the setup rule above. */
.inspector label,.inspector legend{font-size:var(--mi-question);line-height:var(--mi-question-lh);font-weight:600}
.inspector label :is(input,select,textarea){font-weight:400}
input,select{
  display:block;
  width:100%;
  font:inherit;
  color:var(--ink);
  background:var(--cloud);
  border:1px solid var(--line);
  border-radius:var(--radius-input);
  padding:12px;
  margin-top:6px;
  min-width:0
}
input[type=checkbox],input[type=radio]{
  display:inline-block;
  width:auto;
  margin-right:12px
}
input[readonly]{
  background:var(--cloud)
}
.editor-row{
  border:1px solid var(--line);
  margin:24px 0;
  padding:var(--space-5);
  border-radius:var(--radius-card);
  background:var(--surface)
}
.editor-row legend{
  padding:0 8px;
  /* P-V3: the legend notch paints the row's own surface (cx34-11's
     rule, matched to the editing card's background). */
  background:var(--surface)
}
form .actions{
  margin-top:32px
}
.banner{
  background:var(--surface);
  color:var(--ink);
  padding:20px;
  border-left:4px solid var(--sky-deep);
  margin-bottom:24px
}
.banner a{
  margin-left:16px
}
[data-error-list],[data-recovery-error]{
  color:var(--err)
}
.recovery-block{
  margin:16px 0 24px;
  max-width:860px
}
.recovery-block p{
  font-size:.9rem
}
summary{
  cursor:pointer
}
details{
  margin-top:20px
}
.preview-wrapper{
  margin:24px auto;
  width:100%;
  background:white
}
.preview-wrapper iframe{
  display:block;
  border:0;
  width:100%;
  height:80vh;
  min-height:600px
}
.preview-wrapper.mobile{
  width:min(430px,100%);
  border:8px solid var(--ink);
  border-radius:24px;
  overflow:hidden
}
.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
}
main>.button{
  margin:12px 12px 12px 0
}
@media(min-width:1100px){
  main[data-view=flow]{
    display:grid;
    grid-template-columns:280px minmax(0,1fr);
    gap:40px
  }
  .flow-strip{
    align-self:start;
    position:sticky;
    top:20px
  }
  .question-card{
    width:100%
  }
  .banner{
    grid-column:1/-1
  }
}
@media(max-width:700px){
  header,footer{
    padding:20px;
    gap:var(--space-3)
  }
  header .primary{
    display:none
  }
  footer{
    padding-bottom:calc(24px + env(safe-area-inset-bottom, 0px));
    flex-direction:column;
    align-items:start
  }
  .cards,.pricing{
    grid-template-columns:1fr
  }
  .hero{
    padding-top:24px
  }
  main{
    padding:24px var(--mi-gutter) calc(24px + env(safe-area-inset-bottom, 0px))
  }
  form .actions{
    position:sticky;
    bottom:0;
    padding:12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
    background:var(--cloud)
  }
  /* Brief 106 (B2): the old .hero .button top-margin hack is gone — the
     .cta-row gap now spaces the hero pair at every width. */
  .actions button{
    padding:10px 14px
  }
  .preview-wrapper iframe{
    min-height:560px
  }
  section{
    margin-bottom:40px
  }
}

fieldset.editor-row{min-width:0}
img,video{max-width:100%}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    transition:none !important;
    animation:none !important;
    scroll-behavior:auto !important
  }
}

/* P3 studio: one workspace and one mobile action bar. */
[data-view=studio]{max-width:1800px}
[data-view=studio] section{margin-bottom:24px}
.setup-card{max-width:720px;margin:32px auto}
/* UNSLP-T11 (audit O-6/S-2): chooser + Paso heads are product page heads —
   the display-3 role (2.2rem / 750 / 1.08), not the display-2 hero step. */
/* DA-T1: funnel step titles carry the title-2 token (24/29/700,
   tracking −0.01em — §2.1 keeps tracking ≥ −0.01em below 30px). */
.setup-card h1{font-size:var(--mi-title-2);font-weight:700;line-height:var(--mi-title-2-lh);letter-spacing:-.01em}
/* DA-T1: the name field carries the input token (17px text). */
#setup-name{font-size:var(--mi-input);font-weight:400}
/* P-V3 (§3): the subbar is a status strip — a raised card surface
   holding the church name, the plain publish state, the save-state
   note, and the strip's one primary action. */
.studio-subbar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;background:var(--cloud);border:1px solid var(--line);border-radius:var(--radius-card);padding:16px 20px;box-shadow:var(--shadow-card)}
.studio-subbar [data-saved-note]{font-size:.85rem;display:inline-block}
.studio-subbar [data-saved-note][data-save-state=unsaved]{border-color:var(--warn);color:var(--warn);background:var(--warn-tint);font-weight:600}
.workspace{display:grid;grid-template-columns:180px minmax(0,1fr);gap:24px;margin-top:24px;align-items:start}
.workspace>*{min-width:0}
.section-nav{display:flex;flex-direction:column;align-items:stretch;gap:8px;position:sticky;top:20px}
/* UNSLP-T02/E-4: one fixed rail row height. */
.section-nav button{text-align:left;height:56px;min-height:56px;display:flex;align-items:center;padding:0 var(--space-4);line-height:1.25}
/* P-V3 (§2): the selected-state bar was the D-53 coral "Luz bar";
   under D-58 §4 it takes sky-deep like every other selected state
   in the system (EDITOR-REFINE). */
.section-nav button[aria-pressed=true]{background:var(--surface);color:var(--ink);font-weight:700;box-shadow:inset 3px 0 0 var(--sky-deep)}
.inspector h1{font-size:var(--mi-title-2);line-height:var(--mi-title-2-lh);margin-top:0;margin-bottom:16px}
.inspector h2{font-size:var(--mi-headline)}
.studio-preview{grid-column:2;min-width:0}
.studio-design-controls{display:grid;gap:12px}
/* DA-T1: the edit hint and locale note carry the callout token (14). */
.studio-edit-hint{margin:12px 0 0;font-size:var(--mi-callout);color:var(--ink-2)}
.preview-locale-badge{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:var(--mi-callout);color:var(--ink-2)}
.preview-locale-badge button{padding:6px 12px;font-size:.85rem}
/* DA-T3 (Density §3.7): the badge is now the Studio's single context
   line — edit hint · language on screen, one 14px line — and its flip
   control meets the 44px floor like every other control (it measured
   ~33px tall whenever it was visible). The hint rides as a span in
   the line: no block margin, the line's own callout size. */
.preview-locale-badge button{min-height:44px;min-width:44px;padding:6px 8px}
.preview-locale-badge .studio-edit-hint{margin:0;font-size:inherit}
/* DA-FIX-2 (DENSITY-VERDICT (d)): the preview-language segmented
   pair — its pressed option IS the visible language state (the
   shared option-state treatment above paints it). */
.preview-locale-pair{display:flex;gap:4px;flex:none}
.studio-context-sep{flex:none;color:var(--ink-2)}
/* DA-T3: the design ribbon lives in the subbar's status line now
   (studio-view.ts) — meta voice, quiet ink, one line. */
.studio-design-ribbon{font-size:var(--mi-meta);line-height:var(--mi-meta-lh);font-weight:500;color:var(--ink-2);white-space:nowrap}
/* DA-T3: the full-preview expand control rides the Studio frame —
   the design browser's 44×44 ⤢, surfaced so it stays visible over
   any theme's hero. The wrapper is its anchor at every device (the
   :not(.mobile) rule below already positioned it for the framed
   treatments).
   DA-FIX-2 (DENSITY-VERDICT D4): the corner is the frame's
   BOTTOM-right now. At the top-right the control sat on top of the
   framed site's own hamburger button (320/375/390, both locales);
   the bottom-right covers no site control in any driven state. */
.studio-preview .preview-wrapper{position:relative}
.studio-frame-expand{position:absolute;bottom:var(--space-3);right:var(--space-3);z-index:2;width:44px;height:44px;min-width:44px;padding:0;margin:0;display:flex;align-items:center;justify-content:center;font-size:20px;line-height:1;background:var(--cloud);color:var(--ink);border:1px solid var(--line);border-radius:999px;box-shadow:var(--shadow-card);cursor:pointer}
.studio-design-controls>*{margin:0}
.studio-designs{display:grid;gap:12px;margin:16px 0}
.studio-designs button{display:grid;gap:2px;text-align:left}
.studio-designs .theme-signature{margin:0}
.studio-action-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.studio-preview .preview-wrapper{margin-top:16px}
.studio-preview .preview-wrapper iframe{min-height:600px;height:70vh}
/* P-V3 (§5): the Studio's item cards — services and the P-S1 content
   blocks alike — take the dashboard's item-card anatomy (P-V1): the
   12px radius, the wider padding rhythm, the cloud surface and the
   shared card shadow. The block editor's open form (.editor-row)
   reads as the editing card of the same system. */
.service-card,.domain-card{margin:16px 0}
.service-card>p:first-child{font-weight:600}
.service-card button{padding:8px;margin:4px;font-size:.85rem}
.service-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.service-tiles button{padding:12px 8px;font-size:.9rem;overflow-wrap:anywhere}
textarea{display:block;width:100%;min-height:100px;font:inherit;padding:12px;color:var(--ink);background:var(--cloud);border:1px solid var(--line);border-radius:var(--radius-input)}
input:focus,select:focus,textarea:focus{border-color:var(--sky-deep)}
fieldset{min-width:0;border:1px solid var(--line)}
/* cx34-11: a wrapped legend otherwise lets the fieldset border strike
   through its second line; painting the legend with the panel surface
   (every fieldset sits on a --cloud card) keeps the notch clean.
   UNSLP-T16 (audit O-1): the fieldset border is the token hairline, never the UA groove default. */
fieldset>legend{background:var(--cloud);padding:0 8px;border-radius:4px}
[data-slug-status][data-state=available]{color:var(--ok)}
[data-slug-status][data-state=taken],[data-slug-status][data-state=invalid]{color:var(--err)}
[data-slug-status][data-state=reserved],[data-slug-status][data-state=unavailable]{color:var(--sky-ink)}
/* P-V3 (§3): the not-published pill speaks the P-V1 draft language —
   the Luz tint — wherever a draft's state is shown (Studio strip,
   saved-website cards, the entry choice). */
.pill.unpublished{border:1px solid var(--warn);color:var(--warn);background:var(--warn-tint)}
.mobile-mode{display:none}
.checkpoint-preview{max-width:720px}
.checkpoint-preview iframe{height:360px;min-height:360px}
.wordmark>span{display:inline-flex;vertical-align:middle}
.wordmark>span>svg{display:block;height:var(--lockup-h);width:auto}
@media(min-width:1100px){
 /* P-V3 (§1): the preview column gains presence — the editor rail
    keeps its disciplined width (its max drops 460px → 420px) and the
    freed width, plus a wider gutter, goes to the framed site. */
 .workspace{grid-template-columns:220px minmax(320px,420px) minmax(0,1fr);gap:28px}
 .studio-preview{grid-column:3;position:sticky;top:20px}
 .service-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:900px){
 [data-view="studio"]:has(.workspace[data-mode="preview"]) .studio-subbar{position:static}
 .workspace{grid-template-columns:minmax(0,1fr);gap:16px}
 .mobile-mode{display:flex;gap:8px;margin:20px 0}
 .mobile-mode button{flex:1}
 .section-nav{position:static;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding:4px}
 .section-nav button{white-space:nowrap;flex-shrink:0}
 /* P-V3 (§2): on the horizontal phone rail the Luz bar moves to the
    button's bottom edge. */
 .section-nav button[aria-pressed=true]{box-shadow:inset 0 -3px 0 var(--sky-deep)}
 .studio-preview{grid-column:1}
 .workspace[data-mode=preview] .inspector,.workspace[data-mode=preview] .section-nav{display:none}
 .workspace[data-mode=edit] .studio-preview{display:none}
 header{flex-wrap:wrap}
 .setup-card{margin:0 auto}
}

/* Brief 29: the hidden attribute must always win over component display styles
   (e.g. the service form\u2019s second-language field shows only for bilingual services). */
[hidden]{display:none!important}

/* Brief 37: writing suggestions and bilingual review. */
.suggestion-list { margin-block: .75rem; }
.suggestion-list:empty { display: none; }
.suggestion-card { background: var(--surface); border-left: 3px solid var(--sky-deep); padding: .75rem; margin-block: .5rem; }
.suggestion-card s { opacity: .75; }
.languages-panel { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1rem; }
.translation-row { border-top: 1px solid var(--line); padding-block: 1rem; overflow-wrap: anywhere; }
.translation-status { display: inline-block; font-size: .85rem; padding: .2rem .5rem; border: 1px solid var(--line); border-radius: 1rem; }
[data-translation-status="machine-unreviewed"] { border-color: var(--warn); }
[data-translation-status="machine-reviewed"], [data-translation-status="pastor"] { color: var(--ok); }
[data-translation-status="missing"] { color: var(--ink); opacity: .75; }
.machine-label { font-weight: 600; }
.translation-row textarea { width: 100%; }

/* Staged photo adjustments use the existing P3 palette and inherited type. */
.placement-overlay { position:fixed; inset:0; z-index:1000; background:rgb(17 35 60 / .65); display:flex; align-items:center; justify-content:center; padding:16px; }
.placement-dialog { background:#FFFCF7; color:#1E2A44; width:min(850px,100%); max-height:calc(100dvh - 32px); overflow:auto; padding:24px; border-radius:16px; box-shadow:0 16px 48px rgb(17 35 60 / .3); }
.placement-previews { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:20px; }
.placement-preview { overflow:hidden; background:#E8EDF3; position:relative; touch-action:none; }
.placement-preview:focus-visible { outline:3px solid var(--sky-deep); outline-offset:3px; }
.placement-preview img { display:block; border-radius:0; pointer-events:none; }
.placement-full { position:relative; overflow:hidden; width:min(100%,320px); margin:auto; }
.placement-full img { display:block; width:100%; height:auto; }
.placement-guide { position:absolute; border:2px solid white; box-shadow:0 0 0 9999px rgb(0 0 0 / .45); pointer-events:none; }
.placement-alternatives,.placement-actions { display:flex; flex-wrap:wrap; gap:8px; margin-block:16px; }
.placement-alternatives [aria-pressed="true"] { background:var(--sky-tint-1); color:var(--sky-deep); box-shadow:inset 0 0 0 2px var(--sky-deep); }
.placement-dialog input[type="range"] { width:100%; }
@media (max-width:600px) { .placement-previews { grid-template-columns:minmax(0,1fr); } .placement-dialog { padding:16px; } }

.theme-feel{display:block}
.theme-swatches{display:flex;gap:4px;margin-top:8px}
.theme-swatch{display:inline-block;width:14px;height:14px;border-radius:50%;border:1px solid rgba(0,0,0,.2)}

/* Brief 90R: Studio library picker — the header and honesty subline read as
   one grouped section, separated from the pastor's own upload controls above
   by a hairline; thumbnails are uniform 3:2 cover tiles in a responsive
   grid; the badge is an overlaid pill; the selected tile carries a ring in
   the accent tone via the aria-pressed state set by library-picker.ts. */
section.library-picker{margin:24px 0 0;padding-top:20px;border-top:1px solid var(--line)}
.library-picker h4{margin:0 0 4px;font-size:1.1rem;line-height:1.3}
.library-honesty{margin:0 0 16px;font-size:.9rem}
/* STUDIO-P1-STATES: measured 0px gap between search and category chips. */ .library-search{margin-bottom:var(--space-3)}
.library-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.library-chip{padding:8px 14px;border-radius:999px;font-size:.9rem;line-height:1.3;min-height:44px}
.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.library-thumb{position:relative;display:block;padding:0;border:1px solid var(--line);border-radius:8px;overflow:hidden;aspect-ratio:3/2;background:var(--surface);line-height:0;text-align:left}
.library-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.library-thumb:hover{border-color:var(--sky-deep)}
.library-thumb[aria-pressed=true]{background:var(--surface);border-color:var(--sky-deep);box-shadow:0 0 0 3px var(--sky-deep)}
/* DA-T1: the badge sat at 11.52px — the floor token is 12px. */
.library-badge{position:absolute;top:8px;left:8px;z-index:1;padding:3px 8px;border-radius:999px;background:rgb(20 28 48 / .85);color:#fff;font-size:var(--mi-micro);line-height:1.35}
@media(max-width:480px){.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Brief 96 (D-46): the photo library opens in a contextual drawer —
   a right-side panel on desktop and a bottom sheet at <=640px. The
   picker inside keeps its inline styles; the drawer only adds chrome,
   the current-vs-new comparison, and the explicit footer actions. */
.photo-drawer-overlay { position:fixed; inset:0; z-index:1100; background:rgb(17 35 60/.55); display:flex; justify-content:flex-end; animation:miglesia-fade var(--motion-fast) var(--ease-standard); }
.photo-drawer { background:#FFFCF7; color:var(--ink); width:min(560px,100%); height:100dvh; max-height:100dvh; overflow:hidden; padding:24px; box-shadow:-16px 0 48px rgb(17 35 60/.3); display:flex; flex-direction:column; animation:miglesia-drawer-slide var(--motion-base) var(--ease-out); }
.photo-drawer-header { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:16px; }
.photo-drawer-header h2 { font-size:var(--mi-title-2); margin:0; }
.photo-drawer-context { margin:4px 0 0; color:var(--ink-2); }
.photo-drawer-close { flex:0 0 auto; width:44px; height:44px; padding:0; border-radius:999px; font-size:1.5rem; line-height:1; }
.photo-drawer-compare { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-bottom:8px; }
.photo-drawer-photo { margin:0; min-width:0; }
.photo-drawer-photo figcaption { font-weight:700; margin-bottom:6px; }
.photo-drawer-photo img, .photo-drawer-empty { width:100%; aspect-ratio:3/2; object-fit:cover; border-radius:8px; background:var(--surface); }
.photo-drawer-empty { display:flex; align-items:center; justify-content:center; text-align:center; padding:12px; color:var(--ink-2); }
.photo-drawer-body { flex:1; min-height:0; overflow:auto; }
.photo-drawer-body .library-picker { margin-top:8px; padding-top:12px; }
.photo-drawer .library-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.photo-drawer-actions { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; border-top:1px solid var(--line); padding-top:16px; margin-top:20px; }
@media(max-width:640px){ .photo-drawer-overlay { justify-content:stretch; align-items:flex-end; } .photo-drawer { width:100%; height:auto; max-height:88dvh; border-radius:16px 16px 0 0; box-shadow:0 -16px 48px rgb(17 35 60/.3); padding:20px 16px calc(16px + env(safe-area-inset-bottom)); animation-name:miglesia-fade-up; } }
/* Brief 91 (D-45): the Portada block opens the photos editor — wide banner
   thumbnail (or the honest empty-state note), provenance note for library
   picks, and one prominent change button. Inside every photo row the source
   choice (upload / library / keep) is a segmented pill row that comes first;
   the upload and library panels swap under it. The pressed choice is painted
   by the global button[aria-pressed=true] rule. */
.portada-block{margin:0 0 24px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.portada-block h4{margin:0 0 12px;font-size:1.1rem;line-height:1.3}
.portada-thumb{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:8px;margin:0 0 12px}
.portada-note{margin:0 0 12px;font-size:.95rem;line-height:1.45}
.portada-change{padding:10px 18px;border-radius:999px;font-size:1rem;line-height:1.3}
.portada-editor{margin-top:16px}
.photo-source{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 12px}
.photo-source-choice{padding:8px 14px;border-radius:999px;font-size:.9rem;line-height:1.3}
.photo-source-remove{padding:8px 14px;border-radius:999px;font-size:.9rem;line-height:1.3}
.photo-panel{margin:0 0 4px}

/* Brief 98 (D-46): one explicit rhythm on the front door instead of UA
   default heading margins (an 8px scale: heading gaps of 24, the examples
   note bound to its heading at 12 with 24 to the grid); the example card's
   lower stack breathes in order; the footer's top margin no longer stacks
   on the last front-door section's bottom margin; and the Studio's saved
   note gains a visible saved state (class set in studio-view.ts). */
[data-view=front-door] h1{margin:0 0 24px}
[data-view=front-door] h2{margin:0 0 24px}
[data-view=front-door] #ejemplos h2{margin-bottom:12px}
[data-view=front-door] #ejemplos>p{margin:0 0 24px}
.example-card>p{margin:0}
.example-card a[data-example-link]{display:inline-block;margin-top:12px}
main[data-view=front-door]+footer{margin-top:0}
.studio-subbar [data-saved-note].is-saved{color:var(--ok);font-weight:600}
/* Brief 104 (C7): the single design-choice confirmation and the
   explanatory Design panel summary. */
.design-confirmed{background:var(--ok-tint);border:1px solid var(--ok);border-radius:8px;padding:10px 12px;font-weight:600;animation:miglesia-fade-up var(--motion-slow) var(--ease-out)}
.design-panel-summary{display:grid;gap:2px;margin:16px 0 8px}
.design-panel-summary .theme-signature{margin:0}
.domain-composed{font-weight:700;font-size:1.05rem;margin:8px 0 0}
/* Brief 104 (C8): a light entrance transition as the Studio section
   panel changes, so navigation state reads clearly.
   P-F1: the entrance is the shared fade-up utility (tokens above); the
   global reduced-motion rule neutralizes it. */
[data-section-panel]{animation:miglesia-fade-up var(--motion-base) var(--ease-out)}

/* Round 3 (R3-4): the Studio's two zones read as two places. The panel
   column is the controls (a bordered card, above); the preview column's
   frame is the website — a framed, labeled surface whose label bar
   carries the preview's own name («Así va tu sitio»), so a pastor can
   always tell which side edits and which side is their site. Inside the
   photo rows, the current photo is a labeled figure at a consistent
   size, and the panels that swap under the source choices enter with
   the same light motion as the Studio's section panel (the global
   reduced-motion rule above turns all of it off). */
/* P-V3 (§1): the preview frame casts the shared raised shadow (the
   P-V1 token), and its label bar takes the calmer P-V2 caption-bar
   metrics — same surface, same border, caption type at natural case. */
.studio-preview .preview-wrapper:not(.mobile){position:relative;border:1px solid var(--line);border-radius:var(--radius-card);overflow:hidden;background:var(--cloud);box-shadow:var(--shadow-raised)}
.studio-preview .preview-wrapper:not(.mobile)::before{content:attr(data-preview-label);display:block;padding:10px 16px;background:var(--surface);border-bottom:1px solid var(--line);font-size:var(--type-caption);font-weight:700;letter-spacing:.02em}
.studio-preview .preview-wrapper.mobile{box-shadow:var(--shadow-raised)}
.photo-current{margin:0 0 12px;min-width:0}
.photo-current img{display:block;width:min(340px,100%);aspect-ratio:3/2;object-fit:cover;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.photo-current figcaption{margin-top:8px;font-weight:700;font-size:.9rem}
.photo-current-note{margin:4px 0 0;font-size:.9rem;line-height:1.45}
[data-photo-panel]{animation:miglesia-fade-up var(--motion-base) var(--ease-out)}
.portada-editor{animation:miglesia-fade-up var(--motion-base) var(--ease-out)}

/* P-V3 (§6): the branded auth composition. The sign-in panel (signed
   out) and the sign-in-link landing card center on the page at a
   reading width and carry the raised elevation; the Umbral lockup
   heads them at a disciplined 52px — prominent, never billboard.
   The sent state reads as a settled success (the design-confirmed
   palette), and the account panel's signed-in line (§7) sits quiet
   in caption type above the saved-website cards. */
/* PX-F4: the account form's text inputs clear the 16px iOS focus-zoom
   threshold — the shared label rule (.95rem, inherited via font:inherit)
   computed the email field to 15.2px. */
/* DA-T1: account-panel inputs carry the input token (17px). */
#account-email,[data-account-panel] input{font-size:var(--mi-input)}
/* PX-F28: the same 16px floor inside the Studio — its fields computed
   15.2px via the shared label rule and zoomed on iOS focus.
   pilot-fix-001 (audit Finding 9): select joins the floor — the
   Studio's language/day dropdowns computed 15.2px the same way. */
[data-view="studio"] input,[data-view="studio"] textarea,[data-view="studio"] select{font-size:var(--mi-input)}
[data-account-panel][data-auth-state=signed-out]{max-width:600px;margin-inline:auto;box-shadow:var(--shadow-card)}
.auth-card{max-width:600px;margin-inline:auto;box-shadow:var(--shadow-card)}
.auth-lockup{display:block;margin-bottom:20px}
.auth-lockup>span>svg{height:52px}
/* PX-F22: the auth lockup's tagline offset rule is removed with the
   tagline element itself (founder ruling Nov 13, 2026). */
.account-sent{border:1px solid var(--ok);background:var(--ok-tint);border-radius:8px;padding:4px 16px 12px;margin-top:16px}
.account-sent h3{margin-bottom:4px}
.account-sent-to{font-weight:600;margin:2px 0 8px}
.account-not-arrived{margin-top:10px;border-top:1px solid var(--ok);padding-top:8px}
.account-not-arrived-title{font-weight:700;margin:0 0 4px}
.account-not-arrived-body{margin:0 0 8px}
.account-sent-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.account-change-email{background:none;border:none;padding:6px 2px;color:var(--sky-deep);text-decoration:underline;cursor:pointer;font:inherit}
/* PX-F14: the confirmation replaces the form — tighten the sent
   card's internal rhythm so the panel stays content-sized. */
.account-sent{margin-top:8px}
.account-sent h3{margin-top:10px}
.account-sent>p:not([class]){margin:9px 0}
.signed-in-line{font-size:var(--type-caption);color:var(--sky-deep);margin:0 0 12px}
/* P-V3 (§4): the «Currently showing» hint under a stored-empty field
   whose place on the site already carries an effective text. */
.showing-note{font-size:.9rem;color:var(--sky-deep);background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:8px 12px}

/* EQ-4: creation and editing use the shared type scale and a single task. */
/* DA-T1: the Paso 2 design heading and the checkpoint title carry
   title-2 (24/29/700, tracking −0.01em). */
[data-view=studio] h1,[data-view=checkpoint] h1{font-size:var(--mi-title-2);line-height:var(--mi-title-2-lh);letter-spacing:-.01em}
/* UNSLP-T11: Paso heads keep the display-3 role inside the studio view;
   the studio panel and checkpoint heads above stay on their own step. */
[data-view=studio] .setup-card h1{font-size:var(--mi-title-2)}
@media(max-width:700px){.setup-card h1,[data-view=studio] .setup-card h1{font-size:var(--mi-title-2)}}
.inspector h2{font-size:var(--mi-headline)}
.design-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:20px 0}
.design-choice{position:relative;display:flex;flex-direction:column;align-items:stretch;text-align:left;padding:12px;gap:12px;border:2px solid var(--line);border-radius:12px;background:var(--cloud);color:var(--ink);min-width:0;cursor:pointer}
.design-choice strong{font-size:var(--mi-headline)}
.design-choice .theme-signature{font-size:var(--type-body-sm);line-height:1.5}
/* UX-FIX-PICKER (B-09): the card is a radio now — the selected ring keys
   off aria-checked, and keyboard focus gets the house focus ring. */
.design-choice[aria-checked=true]{background:var(--surface);color:var(--ink);border-color:var(--sky-deep);box-shadow:0 0 0 3px var(--sky-deep)}
.design-choice:focus-visible{outline:3px solid var(--sky-deep);outline-offset:2px}
.design-thumbnail{display:block;position:relative;height:220px;overflow:hidden;background:var(--surface);border-radius:6px;pointer-events:none}
.design-thumbnail iframe{position:absolute;left:0;top:0;width:1000px;height:800px;transform:scale(.36);transform-origin:top left;border:0;pointer-events:none}
.studio-subbar{position:sticky;top:0;z-index:8}
.studio-design-controls{gap:4px}
.workspace{grid-template-columns:160px minmax(280px,.85fr) minmax(0,1.65fr);gap:24px}
.studio-preview{grid-column:3;position:sticky;top:150px}
.studio-preview .preview-wrapper iframe{height:72vh;min-height:620px}
.mobile-section-select{display:none}
.domain-card[data-conflict=true]{border:2px solid var(--err);box-shadow:none}
.domain-card [data-slug-status]:empty{display:none}
.checkpoint-transition{padding:32px 0;border-bottom:1px solid var(--line);animation:eq4-arrive var(--motion-slow) var(--ease-out)}
/* DA-T1: the checkpoint celebration headline carries title-1; its
   uppercase display voice (stretch/tracking) is set by the brand
   block further down and is unchanged. */
.checkpoint-transition h2{font-size:var(--mi-title-1);line-height:var(--mi-title-1-lh);max-width:24ch}
.checkpoint-progress{font-weight:700;color:var(--sky-deep)}
.checkpoint-account{margin-top:32px;border-top:1px solid var(--line);padding:24px 0}
.portada-block:has(.portada-thumb[hidden]){border:2px dashed var(--line);padding:24px;text-align:center;background:var(--surface);border-radius:12px}
.portada-block:has(.portada-thumb[hidden])::before{content:'↥';display:block;font-size:var(--type-display-1);color:var(--sky-deep)}
.portada-actions{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}
.portada-saved:empty{display:none}
@keyframes eq4-arrive{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.checkpoint-transition{animation:none}}
@media(min-width:1300px){[data-view=preview] .design-picker{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1099px) and (min-width:901px){.workspace{grid-template-columns:150px minmax(0,1fr)}.studio-preview{grid-column:2;position:static}}
.studio-stage-controls{display:flex;align-items:center;gap:var(--space-3);flex-wrap:wrap;margin-left:auto}
@media(max-width:900px){
 .workspace{grid-template-columns:minmax(0,1fr);gap:16px}
 .studio-stage-controls{margin-left:0}
 .studio-preview{grid-column:1;position:static}
 .section-nav{display:block;overflow:visible;padding:0}
 .section-nav>button{display:none}
 .mobile-section-select{display:block;width:100%;min-height:48px;font:inherit;padding:12px;color:var(--ink);background:var(--cloud);border:1px solid var(--line);border-radius:var(--radius-input)}
 .studio-subbar{position:sticky;top:0;padding:12px;gap:8px}
 .studio-subbar .mobile-mode{position:static;flex-basis:100%;margin:0;padding:4px 0;background:transparent}
 .workspace[data-mode=preview] .section-nav,.workspace[data-mode=preview] .inspector{display:none}
 .workspace[data-mode=edit] .studio-preview{display:none}
 .studio-preview .preview-wrapper iframe{min-height:560px;height:70vh}
 .design-picker{grid-template-columns:minmax(0,1fr)}
 .design-thumbnail{height:240px}
 .design-thumbnail iframe{transform:scale(.34)}
 .studio-welcome{padding:16px}
}
[data-editor=photos]:has(.portada-thumb[hidden])>button:last-child{display:none}
.portada-safeguard{font-size:var(--type-body-sm);color:var(--sky-deep);margin:20px 0 0}
@media(min-width:901px){
 .workspace:has([data-section-panel=diseno]) .inspector{grid-column:2 / 4}
 .workspace:has([data-section-panel=diseno]) .studio-preview{grid-column:2 / 4;position:static}
 .inspector .design-picker{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* PE-7C: the Studio's own application frame — the status strip as a
   slim top bar (brand, church identity, save state, language, one
   primary), the preview stage's controls in a single bar above the
   framed site, and the theme-identity card in the Diseño panel. */
.studio-subbar{gap:var(--space-3);padding:12px var(--space-4)}
/* PX-F28: every Studio subbar control clears the 44px touch floor at
   every width (the ≤480px subbar rules below carry the same floor),
   and the language toggle is never narrower than 44px. */
.studio-subbar button,.studio-subbar .button{min-height:44px}
.studio-subbar .btn-lang{min-width:44px}
.studio-subbar .studio-brand{display:inline-flex;align-items:center;min-height:44px}
.studio-subbar .wordmark>span>svg{height:28px}
.studio-identity-line{display:contents}
.studio-identity{display:inline-flex;align-items:center;gap:var(--space-3);min-width:0}
.studio-identity [data-draft-name]{overflow-wrap:anywhere}
.studio-publish-state{font-size:var(--type-body-sm);color:var(--ink-2);white-space:nowrap}
.theme-identity-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-card);padding:var(--space-5);margin:var(--space-4) 0}
.theme-identity-card h2{margin-top:0}
.theme-identity-name{font-family:var(--font-display);font-size:var(--type-h4);font-weight:700;margin:0 0 var(--space-2)}
.theme-identity-summary{font-weight:600}
.theme-identity-grammar{display:grid;gap:var(--space-2);margin:var(--space-3) 0;padding-left:20px}
.theme-identity-motion{font-weight:600}
.theme-identity-note{color:var(--ink-2);font-size:var(--type-body-sm)}
.inspector [data-service-open]{cursor:pointer}
@media(min-width:1100px){.studio-preview{top:88px}}

/* PE-GALLERY: one specimen gallery shared by discovery and preview. */
.theme-gallery{margin:20px 0}
.gallery-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 16px;font-weight:600}
.studio-device-toggle{display:inline-flex;border:1px solid var(--line);border-radius:999px;overflow:hidden}
.studio-device-toggle button{padding:8px 16px;min-height:44px;background:var(--cloud);color:var(--ink);border:0;font:inherit;font-size:var(--mi-segmented);font-weight:600;cursor:pointer}
.studio-device-toggle button[aria-pressed="true"]{background:var(--sky-tint-1);color:var(--sky-deep);box-shadow:inset 0 0 0 2px var(--sky-deep);font-weight:700}
/* PX-F26 (audit T1/P2): the end buttons carry the toggle's own radius.
 * Without it the selected end pill is a square-cornered box inside a
 * 999px-radius overflow:hidden frame, and the frame's rounded clip
 * slices the pill's inset ring at the corners — the selected pill read
 * as cut off at the left edge (Computadora) or right (Teléfono) at
 * phone width. With the radius on the buttons, the ring follows the
 * same curve as the frame and renders whole in every state. */
.studio-device-toggle button:first-child{border-radius:999px 0 0 999px}
.studio-device-toggle button:last-child{border-radius:0 999px 999px 0}
.gallery-device-toggle{display:inline-flex;border:1px solid var(--line);border-radius:999px;overflow:hidden}
.gallery-device-toggle button{padding:8px 16px;min-height:44px;background:var(--cloud);color:var(--ink);border:0;font:inherit;cursor:pointer}
.gallery-device-toggle button[aria-pressed="true"]{background:var(--sky-deep);color:var(--cloud);font-weight:700}
.gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
@media(min-width:1300px){.gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.gallery-grid{grid-template-columns:minmax(0,1fr)}}
.gallery-card{cursor:pointer;position:relative;display:flex;flex-direction:column;gap:10px;padding:20px;background:var(--cloud);border:1px solid var(--line);border-radius:10px;min-width:0}
.gallery-card h3{margin:8px 0 0}
.gallery-frame-wrap{border-radius:6px;min-height:180px}
.gallery-frame{position:absolute;inset:0;overflow:hidden}
.gallery-frame iframe{position:absolute;left:0;top:0;border:0;transform-origin:top left;pointer-events:none}
.gallery-personality{font-size:var(--type-body);line-height:1.5}
.gallery-fit{font-size:var(--type-body-sm);line-height:1.5}
.gallery-card-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:auto}
.gallery-card[data-selected="true"]{border-color:var(--sky-deep);box-shadow:0 0 0 3px var(--sky-deep)}
.gallery-card:focus-visible{outline:3px solid var(--sky-deep);outline-offset:2px}
.gallery-selected-badge{position:absolute;top:12px;right:12px;z-index:2;background:var(--sky-deep);color:var(--cloud);border-radius:999px;padding:4px 10px;font-size:var(--type-body-sm);font-weight:700}
.gallery-badge-off{display:none}
.gallery-detail-backdrop{position:fixed;inset:0;z-index:60;display:grid;place-items:center;padding:16px;background:color-mix(in srgb, var(--ink) 55%, transparent)}
.gallery-detail{background:var(--cloud);color:var(--ink);border-radius:12px;box-shadow:var(--shadow-raised);width:100%;max-width:1060px;max-height:92vh;overflow:auto;padding:24px}
.gallery-detail-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.gallery-detail-head strong{font-size:var(--type-h3)}
.gallery-detail-frame-wrap{background:var(--surface);border:1px solid var(--line);border-radius:8px;height:68vh;overflow:hidden;margin-top:16px}
.gallery-detail-frame{display:block;width:100%;height:100%;border:0;background:var(--cloud)}
.gallery-detail-frame-wrap.mobile .gallery-detail-frame{width:390px;margin:0 auto}
.gallery-detail-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:16px}
@media(max-width:900px){.gallery-detail{padding:16px}.gallery-detail-frame-wrap{height:60vh}}

.gallery-probe{position:fixed;left:0;top:0;visibility:hidden;pointer-events:none;border:0;z-index:-1}

/* PE-9A: scope secondary button semantics to gallery cards (native
   buttons do not carry the kit's .button class). */
.theme-gallery .gallery-card-actions button.secondary{background:var(--cloud);color:var(--ink);border:1px solid var(--line);box-shadow:none}
.theme-gallery .gallery-card-actions button.secondary:hover{background:var(--surface);color:var(--ink)}
.section-nav button{background:transparent;color:var(--ink);border-color:transparent;box-shadow:none}
.section-nav button:hover{background:var(--surface);color:var(--ink)}
.section-nav button[aria-pressed=true]{background:var(--surface);color:var(--ink);font-weight:600;box-shadow:inset 3px 0 0 var(--sky-deep)}
#btn-lang{background:transparent;color:var(--sky-ink);border:1px solid var(--line);box-shadow:none}
#btn-lang:hover{background:var(--surface);color:var(--ink)}
/* DA-T1: account/auth panel titles carry title-1 (28/34). */
[data-account-panel] h1,.auth-card h1{font-size:var(--mi-title-1);line-height:var(--mi-title-1-lh)}
[data-view=front-door] :is(#como-funciona,#ejemplos,#recibes,#precios,.final-band){margin-block:0;padding-block:var(--space-6)}
[data-view=front-door] #ejemplos{background:var(--surface);border-block:1px solid var(--line);padding-inline:var(--space-5);border-radius:var(--radius-card)}
[data-view=front-door] :is(#como-funciona,#ejemplos,#recibes,#precios)>h2{max-width:26ch;margin-top:0;letter-spacing:var(--display-tracking)}
[data-view=front-door] :is(#como-funciona,#recibes) .card{box-shadow:none;border-top:1px solid var(--line)}
@media(max-width:480px){
 /* DA-T3: the phone subbar's vertical padding tightens to the 4px
    token — with the controls stack dissolved, these are the last
    pixels between the ribbon and the audit's ≤160 frame top. */
 /* DA-FIX-2 (DENSITY-VERDICT D1): row 2's columns are now
    modes-intrinsic / toggle-44 / primary-flexible. DA-FIX-1's
    min-width on the mode buttons exposed the old template's flaw:
    the modes sat in the flexible column, so the pair (92px of
    buttons) overflowed a ~63px cell, painted over the language
    toggle, and clipped their own labels ("Previ", "Previe"). The
    segmented control takes its intrinsic width here, and the
    PRIMARY is the row's flexible element — it yields before the
    segments do. */
 .studio-subbar{display:grid;grid-template-columns:auto auto minmax(0,1fr);gap:2px 4px;padding:4px 6px;align-items:center;font-size:var(--mi-meta);line-height:1.25}
 .studio-subbar .studio-brand{display:none}
 .studio-subbar .studio-brand svg{max-width:100px;height:22px}
 /* DA-T1: the ribbon identity line GROWS 11px → the meta token
    (13/500) — the saved-state note inherits it (font-size:inherit
    in the PE-7D rule below), so both clear the floor together. */
 .studio-subbar .studio-identity-line{grid-column:1 / -1;grid-row:1;display:flex;align-items:center;gap:6px;min-width:0;font-size:var(--mi-meta);font-weight:500;line-height:var(--mi-meta-lh)}
 .studio-subbar .studio-identity{display:flex;align-items:center;gap:6px;min-width:0;flex:1}
 /* DA-FIX-2 (adjudication (c)): at this width the publish state
    collapses to a status dot — it gives up its width BEFORE the
    church name or the save time do. The shell keeps the full state
    as its aria-label (studio-view.ts); the dot is its visual form. */
 .studio-subbar .unpublished{flex:none;width:10px;height:10px;min-width:10px;border-radius:50%;background:var(--warn);padding:0}
 .studio-subbar .unpublished-text{display:none}
 /* DA-T3 (Density §3.7): ribbon row 1 leads with the church name at
    15/600, truncated — it was the meta line's 13px strong before.
    The shrink order is deliberate (two after-drives proved the
    alternatives wrong): the identity cluster sizes to its content
    and shrinks last, the design ribbon takes only the leftover —
    with the locked copy lengths ("Diseño elegido: …" + "Aún no
    publicado" + "Guardado 22:55") name and ribbon cannot both fit
    at 390px, and the audit's pattern leads with the name. The
    publish state and the saved note never shrink. */
 .studio-subbar .studio-identity{flex:0 1 auto}
 /* DA-FIX-2 (adjudication (c)): the name holds a 7ch floor — a
    bare "…" (or "Igl…") reads as broken. With the publish state
    collapsed to its dot, the floor is met at every driven width. */
 .studio-subbar [data-draft-name]{flex:1 1 auto;min-width:7ch;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:15px;font-weight:600}
 .studio-subbar .studio-design-ribbon{flex:1 1 0%;min-width:0;overflow:hidden;text-overflow:ellipsis}
 .studio-subbar [data-saved-note]{margin:0;padding:2px 0;border:0;background:transparent;font-size:inherit;flex-shrink:0;white-space:nowrap}
 .studio-subbar #btn-lang{grid-column:2;grid-row:2;padding:4px 8px;min-height:44px;min-width:44px}
 .studio-subbar>#btn-save-continue{display:flex;grid-column:3;grid-row:2;padding:6px;min-height:44px;min-width:0;align-items:center;justify-content:center;font-size:var(--mi-segmented);font-weight:600}
 .studio-subbar .mobile-mode{grid-column:1;grid-row:2;display:flex;min-height:44px;padding:0;gap:2px;flex-basis:auto}
 /* DA-FIX-2 (D1): the segments never shrink and never wrap — the
    container (now intrinsically sized, above) always fits them. */
 .studio-subbar .mobile-mode button{padding:4px 2px;min-height:44px;min-width:44px;flex:none;white-space:nowrap;font-size:var(--mi-segmented);font-weight:600}
 .studio-subbar [data-account-chip]{grid-column:1 / 3;grid-row:3;overflow-wrap:anywhere}
 .studio-subbar #account-sign-out{grid-column:3;grid-row:3;padding:4px;font-size:inherit}
}

/* DA-T3 (Density §3.7): phone Studio spacing — with the controls
   stack dissolved (ribbon into the status line, full-preview onto
   the frame, badge + hint merged into one line), the remaining
   above-frame spacing tightens so the frame top lands at the
   audit's ≤160: the view's top padding halves, the workspace gap
   halves, and the frame's top margin halves. The stage-controls
   container leaves the phone layout entirely — its only remaining
   child is the device toggle JE-T8 already hides at this width, so
   the empty row no longer holds a grid slot above the frame. This
   block sits before the file's last max-width:900px block on
   purpose (the elev-s2/JE-T8 position pins). */
@media(max-width:900px){
 [data-view=studio]{padding-top:var(--space-3)}
 [data-view=studio] .workspace{margin-top:var(--space-2)}
 .studio-preview .preview-wrapper{margin-top:var(--space-1)}
 .preview-locale-badge{gap:8px}
 /* DA-T3: the merged context line never wraps its controls onto a
    second line — the hint is the only flexible segment and wraps
    internally (two 14px lines still leave the row at the chip's
    44px); separator, language name and the flip chip never shrink. */
 .preview-locale-badge{flex-wrap:nowrap}
 .preview-locale-badge .studio-edit-hint{min-width:0}
 .preview-locale-badge .preview-locale-pair,.preview-locale-badge button{flex:none}
 .studio-stage-controls{display:none}
}

.row-card-head{
  display:block;
  width:100%;
  text-align:left;
  font-weight:600;
  cursor:pointer;
  border-bottom:1px solid var(--line)
}
.row-card-body{padding-top:var(--space-5)}
.undo-bar{display:flex;gap:12px;align-items:center;margin:16px 0}
.undo-bar:empty{display:none;margin:0}
.service-more{margin-top:16px}
.service-more>summary{cursor:pointer;font-weight:600}
details.service-more label{margin-top:16px}
/* JE-T7 (JOURNEY-EVAL T7 / JE-07, founder flag F4): the setup step's
   button disclosure — a full-width 44px row in the <summary>'s voice
   (the base button treatment is fully overridden), a CSS chevron that
   follows aria-expanded, and the details pattern's label rhythm
   inside the region. */
.service-more-toggle{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;margin-top:16px;padding:8px 0;background:none;border:0;border-radius:0;color:var(--ink);font-weight:600;text-align:left;cursor:pointer}
.service-more-toggle::after{content:"";flex:none;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);transition:transform var(--motion-base) var(--ease-standard)}
.service-more-toggle[aria-expanded="true"]::after{transform:rotate(225deg)}
.service-more-region label{margin-top:16px}
@media(prefers-reduced-motion:reduce){.service-more-toggle::after{transition:none}}

/* MARKETING-B (D-58) — homepage recomposition + gallery identity.
   JOURNEY-BRAND reconciliation: the vendored scoped token declarations that
   originally opened this section were removed — every value was verified
   identical to the canonical generated brand-tokens block at the top of
   this file (BRAND-CORE), which now serves these scopes. The @font-face
   below is retained deliberately: it is a font-delivery rule (the variable
   TTF's full weight range serves the condensed display treatments), not a
   token value. */
@font-face{font-family:'Archivo';src:url(fonts/mkt/archivo-var.ttf) format('truetype-variations');font-weight:100 1000;font-stretch:62% 125%;font-display:swap}
.mkt-cond{font-family:'Archivo','Inter',sans-serif;font-weight:800;font-stretch:82%;text-transform:uppercase;letter-spacing:-.01em;line-height:.98}
/* PX-F24: full-viewport breakout — compensate main's centering offset as well as its padding, mirroring the .mkt-poster ≥1101px pattern. */
.hero.mkt-hero{display:flex;flex-direction:column;max-width:none;margin-inline:calc(-1 * (var(--space-5) + max(0px,(100vw - 1280px)/2)));padding:var(--space-8) calc(var(--space-5) + max(0px,(100vw - 1280px)/2)) 0;background:linear-gradient(180deg,#0099FF 0%,#2FA9FF 46%,#BEE6FF 82%,#FDFDFE 100%);text-align:center;overflow:hidden}
.hero.mkt-hero .mkt-hero-title{font-size:clamp(2.9rem,7.6vw,6.4rem);color:var(--cloud);text-shadow:0 2px 22px rgb(0 84 160 / .18);margin:0}
.hero.mkt-hero .mkt-hero-sub{color:var(--cloud);font-weight:550;font-size:1.16rem;max-width:56ch;margin:var(--space-5) auto 0}
.hero.mkt-hero h1 span+span{color:var(--cloud)}
.mkt-hero-ctas{justify-content:center;margin-top:var(--space-6);align-self:stretch}
.mkt-btn-red{background:var(--red);color:var(--cloud);border:2px solid transparent;font-family:'Archivo','Inter',sans-serif;font-weight:800;font-size:1.19rem;letter-spacing:.01em;height:60px;padding:0 var(--space-6);border-radius:var(--radius-btn);box-shadow:var(--shadow-raised)}
.mkt-btn-red:hover{background:#D5381F;color:var(--cloud)}
/* JE-T3 (JOURNEY-EVAL JE-16): the trust line sits at the gradient's
   near-white tail (measured fraction ~0.96-0.98 of the hero box), where
   cloud text measured 1.03-1.06:1 against the pixels behind it — and
   white cannot reach 4.5:1 anywhere on this gradient (its best case,
   the saturated #0099FF end, is ~3.0:1). Ink passes at every stop
   (>=5.4:1) and measures ~17:1 at the line's actual position. The
   words, the gradient and the hero composition are unchanged. */
.hero.mkt-hero .mkt-hero-fine{margin:var(--space-4) auto 0;color:var(--ink);font-weight:600;font-size:var(--type-body-sm)}
.mkt-photos{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--space-4);max-width:1180px;width:100%;margin:var(--space-8) auto 0;align-items:end}
.mkt-photo{display:block;overflow:hidden;border-radius:var(--radius-lg);aspect-ratio:9/10;box-shadow:var(--shadow-raised)}
.mkt-photo--arch{border-radius:180px 180px 18px 18px}
.mkt-photo--oval{border-radius:50%;aspect-ratio:10/11}
.mkt-photo--tall{aspect-ratio:4/5}
.mkt-photo img{display:block;width:100%;height:100%;object-fit:cover;transform:translateY(var(--mkt-py,0px)) scale(1.07)}
.mkt-motion [data-reveal]{opacity:0;transform:translateY(18px);transition:opacity var(--motion-slow) var(--ease-out),transform var(--motion-slow) var(--ease-out);transition-delay:var(--reveal-delay,0ms)}
.mkt-motion [data-reveal].is-inview{opacity:1;transform:none}
.mkt-step-rows{list-style:none;margin:0;padding:0;border-bottom:1px solid var(--line)}
.mkt-step-row{display:grid;grid-template-columns:220px minmax(0,1fr);gap:var(--space-5);align-items:start;padding:var(--space-6) 0;border-top:1px solid var(--line)}
.mkt-step-num{font-family:'Archivo','Inter',sans-serif;font-weight:800;font-stretch:118%;font-size:var(--type-display-2);line-height:1;letter-spacing:var(--display-tracking);color:var(--sky-deep)}
.mkt-step-title{font-family:'Archivo','Inter',sans-serif;font-weight:700;font-size:var(--type-h3);line-height:1.14;margin:0;color:var(--ink)}
.mkt-step-row .step-desc{font-family:var(--font-text);font-weight:400;font-size:var(--type-body);color:var(--ink-2);line-height:1.55;margin:var(--space-2) 0 0}
.mkt-sec-head{font-family:'Archivo','Inter',sans-serif;font-weight:800;font-stretch:82%;text-transform:uppercase;font-size:clamp(2.1rem,4vw,3.3rem);line-height:.98;letter-spacing:-.01em;color:var(--ink)}
.mkt-sec-note{color:var(--ink-2)}
.mkt-stage{margin-top:var(--space-2)}
/* UX-FIX-1 (UXEVAL 1.3 + contract 4.2): the stage outline is a real border
   on the framed container — never an inset shadow painted over content —
   and the identity panel owns the inset, so stage text never touches the
   painted edge. The preview frame stays full-bleed (media exemption). */
.mkt-stage[data-selected="true"]{background:var(--sky-tint-1);color:var(--sky-deep);border:2px solid var(--sky-deep);border-radius:var(--radius-lg);overflow:hidden}
.mkt-stage .mkt-stage-meta h3{color:var(--ink)}
.mkt-stage-caption{margin:0;padding:var(--space-3) var(--space-5) 0;font-size:var(--type-caption);color:var(--ink-2)}
.mkt-stage-panel{padding:var(--space-5)}
.mkt-stage .gallery-personality{color:var(--ink)}
.mkt-stage .gallery-fit{color:var(--ink-2)}
/* JE-T3 (JOURNEY-EVAL JE-24): the stage's example link is a 44px-tall
   flex item in the actions row (the row is already as tall as its
   primary button, so the row does not grow). */
.mkt-stage .mkt-stage-example{color:var(--ink);text-decoration:underline;display:inline-flex;align-items:center;min-height:44px}
.mkt-stage-frame .gallery-frame{transition:opacity var(--motion-base) var(--ease-out)}
.mkt-stage-meta{display:grid;grid-template-columns:1.05fr .95fr;gap:var(--space-5);align-items:start}
.mkt-stage-meta h3{font-size:var(--type-h3);margin:0 0 var(--space-1)}
.mkt-stage-meta .gallery-personality{margin:0}
.mkt-stage-meta .gallery-fit{margin:var(--space-1) 0 0}
.mkt-stage-actions{display:flex;align-items:center;gap:var(--space-4);flex-wrap:wrap;margin-top:var(--space-4)}
.mkt-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:var(--space-6)}
.mkt-tile{cursor:pointer;display:flex;flex-direction:column;gap:10px;padding:16px;background:var(--cloud);border:1px solid var(--line);border-radius:var(--radius-lg);min-width:0}
.mkt-tile[aria-pressed="true"]{background:var(--sky-tint-1);color:var(--sky-deep);box-shadow:inset 0 0 0 2px var(--sky-deep)}
.mkt-tile:focus-visible{outline:3px solid var(--sky-deep);outline-offset:2px}
.mkt-tile-frame{aspect-ratio:4/3;flex:none}
.mkt-tile-name{font-family:'Archivo','Inter',sans-serif;font-size:var(--type-body);font-weight:700;margin:0}
.mkt-tile .gallery-personality{margin:0;color:var(--ink-2);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* PX-F24: full-viewport breakout — compensate main's centering offset as well as its padding, mirroring the .mkt-poster ≥1101px pattern. */
.mkt-band{background:var(--surface);margin-inline:calc(-1 * (var(--space-5) + max(0px,(100vw - 1280px)/2)));padding:var(--space-7) calc(var(--space-5) + max(0px,(100vw - 1280px)/2));margin-top:var(--space-7)}
.mkt-band-title{font-family:'Archivo','Inter',sans-serif;font-weight:800;font-stretch:82%;font-size:clamp(1.9rem,3.4vw,2.75rem);line-height:1.02;letter-spacing:-.01em;color:var(--ink);margin:0 0 var(--space-5)}
.mkt-band-shots{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.mkt-band-fig{margin:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--cloud)}
.mkt-band-fig img{display:block;width:100%;height:auto}
.mkt-band-points{list-style:none;margin:var(--space-5) 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-4)}
.mkt-band-points li{border-top:2px solid var(--sky);padding-top:var(--space-3);font-size:var(--type-body);line-height:1.5;color:var(--ink)}
.mkt-poster-help{grid-column:1/-1;margin:0;color:var(--cloud)}
.mkt-poster-help .mkt-help-link{color:var(--cloud);text-decoration:underline}
@media(max-width:1100px){.mkt-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.mkt-step-row{grid-template-columns:84px minmax(0,1fr);gap:var(--space-4);padding:var(--space-5) 0}.mkt-stage-meta{grid-template-columns:1fr}.mkt-stage-panel{padding:var(--space-4)}.mkt-stage-caption{padding-inline:var(--space-4)}.mkt-tiles{grid-template-columns:1fr}.mkt-band{padding:var(--space-6) var(--space-5)}.mkt-band-shots{grid-template-columns:1fr}.mkt-band-points{grid-template-columns:1fr}}
@media(max-width:700px){.mkt-band{margin-inline:calc(-1 * var(--mi-gutter));padding-inline:var(--mi-gutter)}}
[data-view=front-door] #ejemplos{background:transparent;border-block:0;border-radius:0;padding-inline:0}
.gallery-device-toggle{border:0;background:var(--surface-2);border-radius:var(--radius-pill);padding:4px;gap:4px}
.gallery-device-toggle button{background:transparent;border:0;border-radius:var(--radius-pill);padding:8px 18px;color:var(--ink-2);font-weight:600;min-height:40px}
.gallery-device-toggle button[aria-pressed="true"]{background:var(--cloud);color:var(--ink);box-shadow:var(--shadow-card)}
.gallery-card{border:3px solid transparent;border-radius:var(--radius-lg);box-shadow:var(--shadow-card);transition:transform var(--motion-fast) var(--ease-out),box-shadow var(--motion-base) var(--ease-out),border-color var(--motion-fast) var(--ease-out)}
.gallery-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-raised)}
.gallery-card[data-selected="true"]{border-color:var(--sky-deep);box-shadow:var(--shadow-raised)}
.gallery-selected-badge{background:var(--sky-deep);color:var(--cloud);font-family:'Archivo','Inter',sans-serif;font-weight:800;text-transform:uppercase;letter-spacing:.04em;font-size:.85rem;padding:6px 13px}
.gallery-selected-badge:not(.gallery-badge-off){animation:miglesia-badge-pop var(--motion-base) var(--ease-out)}
@keyframes miglesia-badge-pop{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:scale(1)}}
.theme-gallery button.primary{background:var(--sky-deep);color:var(--cloud)}
.theme-gallery button.primary:hover{background:#005FB2;color:var(--cloud)}
.gallery-frame-wrap{border-radius:12px}
.gallery-detail{border-radius:var(--radius-lg)}
.mkt-poster{background:var(--ink);color:var(--cloud);border-radius:28px;padding:var(--space-7);display:grid;grid-template-columns:1.15fr .85fr;gap:var(--space-7);align-items:center}
/* DA-T1: the poster eyebrow sat at 11.52px, below the 12px floor —
   it carries the eyebrow token (13px); weight/tracking stay. */
.mkt-eyebrow{font-size:var(--mi-eyebrow);font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--sky-tint-3);margin:0}
.mkt-poster-title{color:var(--cloud);font-size:clamp(2.2rem,4.2vw,3.6rem);margin:var(--space-3) 0 0}
.mkt-poster-title .mkt-dot{color:var(--red)}
.mkt-poster-note{color:#C9D4E2;margin:var(--space-4) 0 0;max-width:40ch}
.mkt-price{margin:0}
.mkt-price-amount{font-family:'Archivo','Inter',sans-serif;font-weight:800;font-stretch:82%;font-size:4.2rem;line-height:1;color:var(--cloud)}
.mkt-price-per{font-weight:600;color:#C9D4E2}
.mkt-poster .includes{color:#E8EEF5;margin:var(--space-5) 0 var(--space-4)}
.mkt-poster .includes li::before{color:var(--sky-tint-3)}
.mkt-billing{color:#C9D4E2;font-size:var(--type-body-sm)}
.mkt-btn-white{background:var(--cloud);color:var(--sky-deep);border:2px solid transparent;height:52px;padding:0 var(--space-5);font-weight:650}
.mkt-btn-white:hover{background:var(--sky-tint-1);color:var(--sky-deep)}
@media(min-width:1101px){.mkt-poster{border-radius:0;margin-inline:calc(-1 * (var(--space-5) + max(0px,(100vw - 1280px)/2)));padding-inline:calc(var(--space-5) + max(0px,(100vw - 1280px)/2))}.mkt-poster .mkt-price-amount{font-stretch:118%;font-size:var(--type-display-2);letter-spacing:var(--display-tracking)}.mkt-poster .mkt-checks{display:grid;grid-template-columns:1fr 1fr;column-gap:var(--space-5)}}
.mkt-help{text-align:center}
.mkt-help p{max-width:none;color:var(--ink-2);margin:0 auto}
/* JE-T3 (JOURNEY-EVAL JE-24): the poster's help link meets the 44px
   touch floor as an inline-level flex box; only its own line grows. */
.mkt-help-link{font-weight:650;color:var(--sky-deep);white-space:nowrap;display:inline-flex;align-items:center;min-height:44px}
.mkt-credit{text-align:center;color:var(--ink-3);font-size:var(--type-caption);max-width:none}
/* BRAND-HEADER-FLIP (D-58): overlay the front header on the continuous sky field. */
header.site-head-front{--front-head-h:96px;position:relative;z-index:6;height:var(--front-head-h);margin-bottom:calc(-1 * var(--front-head-h));background:transparent;border-bottom:0}
/* BRAND-HEADER-FLIP (D-58): the on-color lockup stands alone.
   (PX-F22: its tagline display:none override is gone with the tagline
   element itself — the lockup is artwork-only on every surface.) */
/* BRAND-HEADER-FLIP (D-58): cloud language control with a 48px touch target. */
header.site-head-front #btn-lang{color:var(--cloud);border:1px solid rgb(253 253 254 / .65);background:transparent;padding:0 var(--space-4);height:48px;display:inline-flex;align-items:center}
/* BRAND-HEADER-FLIP (D-58): cloud hover ground retains readable sky ink. */
header.site-head-front #btn-lang:hover{background:var(--cloud);color:var(--sky-ink)}
/* BRAND-HEADER-FLIP (D-58): on-dark start action uses cloud ground and sky-deep ink. */
header.site-head-front .primary{background:var(--cloud);color:var(--sky-deep);border-color:transparent;height:48px;display:inline-flex;align-items:center;padding:0 var(--space-5)}
/* BRAND-HEADER-FLIP (D-58): keep the start action light on hover. */
header.site-head-front .primary:hover{background:var(--sky-tint-1);color:var(--sky-deep)}
/* BRAND-HEADER-FLIP (D-58): two-tone focus remains visible on sky and cloud. */
header.site-head-front :focus-visible{outline:3px solid var(--cloud);outline-offset:3px;box-shadow:0 0 0 6px var(--sky-deep)}
/* BRAND-HEADER-FLIP (D-58): the base #btn-lang rule pins box-shadow:none at ID specificity — restate the focus ring for the front toggle at winning specificity. */
header.site-head-front #btn-lang:focus-visible{box-shadow:0 0 0 6px var(--sky-deep)}
/* BRAND-HEADER-FLIP (D-58): pull the hero behind the header, preserving title position. */
.hero.mkt-hero{margin-top:calc(-1 * var(--space-6));padding-top:calc(var(--space-8) + 96px + var(--space-6))}
@media(max-width:1100px){.mkt-poster{grid-template-columns:1fr}.mkt-photos{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* BRAND-HEADER-FLIP (D-58): preserve the tablet title position under the overlay. */
@media(max-width:760px){.hero.mkt-hero{padding-top:calc(var(--space-7) + 96px + var(--space-6))}.hero.mkt-hero .mkt-hero-title{font-size:var(--mi-display)}.mkt-photos{gap:var(--space-3);margin-top:var(--space-7)}.mkt-poster{padding:var(--space-6) var(--space-5);border-radius:var(--radius-lg)}.mkt-btn-red{font-size:1.1rem;padding:0 var(--space-5)}
/* DA-T4 (Density §3.1): the hero lead steps to 17/26/500 and the
   landing's section headings take the staged landing-h2 token
   (26/30/800) at phone widths; desktop keeps the clamp scales. */
.hero.mkt-hero .mkt-hero-sub{font-size:1.0625rem;line-height:1.625rem;font-weight:500}
.mkt-sec-head{font-size:var(--mi-landing-h2);line-height:var(--mi-landing-h2-lh)}
.mkt-band-title{font-size:var(--mi-landing-h2);line-height:var(--mi-landing-h2-lh)}}
/* DA-T1 (H7): short landscape viewports escape the ≤760px query and
   took the desktop hero size (64px at 844×390) — the display token's
   svh term caps them too. */
@media(max-height:430px){.hero.mkt-hero .mkt-hero-title{font-size:var(--mi-display)}}
@media(max-width:700px){
  /* BRAND-HEADER-FLIP (D-58): compact lockup and 88px header fit the mobile row. */
  header.site-head-front{--front-head-h:88px;--lockup-h:32px;padding-inline:var(--space-4)}
  /* BRAND-HEADER-FLIP (D-58): keep start visible and tighten both controls. */
  header.site-head-front .primary{display:inline-flex;padding-inline:var(--space-4)}
  /* BRAND-HEADER-FLIP (D-58): match the compact start control padding. */
  header.site-head-front #btn-lang{padding-inline:var(--space-4)}
  /* BRAND-HEADER-FLIP (D-58): compensate for mobile main padding and header height. */
  /* DA-T1: the bleed compensates main's inline padding — now the
     gutter token, so the hero stays flush below 360px too. */
  .hero.mkt-hero{margin-inline:calc(-1 * var(--mi-gutter));padding-inline:var(--mi-gutter);margin-top:-24px;padding-top:calc(var(--space-7) + 88px + 24px)}
}
@media(max-width:600px){
  /* DA-T4 (Density §3.1): the phone header is ONE 56px row — logo +
     language toggle. The header's start action leaves the row (the
     hero's amber CTA is the first screen's single primary); at
     320px the wrapped three-row header used to sit ON the hero
     title, hiding its first line. The hero's top padding tracks
     the new header height by the ≤700px formula. */
  header.site-head-front{--front-head-h:56px}
  header.site-head-front .primary{display:none}
  .hero.mkt-hero{padding-top:calc(var(--space-7) + 56px + 24px)}
}
@media (prefers-reduced-motion: reduce){.mkt-photo img{transform:none}}

/* JOURNEY-BRAND (D-58 §3): the post-homepage journey carries the approved
   identity — a branded progress treatment and address chip in the setup
   steps, the reveal and the checkpoint celebration in the condensed
   display voice, one shared secondary treatment for native buttons, an
   unambiguous device toggle on the preview screen, the conversion block
   as a designed surface with the single red commitment action, and
   card-scale headings on the account / return / utility screens.
   Everything rides the canonical tokens; no flow logic lives here. */
.setup-card{box-shadow:var(--shadow-raised)}
.setup-progress{display:flex;gap:6px;margin:0 0 20px}
.setup-progress i{flex:1;height:6px;border-radius:var(--radius-pill);background:var(--surface-2)}
.setup-card[data-step="1"] .setup-progress i:nth-child(1),
.setup-card[data-step="2"] .setup-progress i:nth-child(-n+2),
.setup-card[data-step="3"] .setup-progress i,
.setup-card[data-step="service"] .setup-progress i,
.setup-design-heading .setup-progress i:nth-child(-n+2){background:var(--sky)}
.setup-step{font-size:var(--type-caption);font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--sky-ink);margin:0 0 8px}
/* DA-T2 (DENSITY-AUDIT §2.4 H3): the wayfinding row — progress
   segments and the «Paso N de 3» eyebrow on ONE line, the only
   wayfinding device on a setup step. The children's margins are
   the row's to give, and the eyebrow's line-height is set (1.3)
   so the row's height is a known quantity: the Paso 2 stage-fit
   formula in the design-browser block counts it (17px row). */
.setup-wayfinding{display:flex;align-items:center;gap:var(--space-3);margin:0 0 20px}
.setup-wayfinding .setup-progress{flex:1 1 auto;margin:0}
.setup-wayfinding .setup-step{flex:none;margin:0;line-height:1.3}
.setup-design-heading .setup-wayfinding{margin:0}
.setup-card [data-slug-preview]{display:block;background:transparent;color:var(--sky-deep);font-weight:700;padding:var(--space-2) 0;border-radius:0;margin:0 0 var(--space-4);overflow-wrap:anywhere}
.setup-card [data-slug-preview-status]:empty{display:none}
.setup-card [data-slug-preview-status]{margin:0 0 var(--space-4);font-size:var(--mi-body);overflow-wrap:anywhere}
.setup-card [data-slug-preview-status][data-state=taken]{color:var(--err)}
.setup-card [data-slug-preview-status][data-state=reserved]{color:var(--sky-ink)}
#setup-back{background:var(--cloud);color:var(--ink);border-color:var(--line)}
#setup-back:hover{background:var(--surface);color:var(--sky-ink);border-color:var(--sky-deep)}
button.secondary{background:var(--cloud);color:var(--ink);border-color:var(--line)}
button.secondary:hover{background:var(--surface);color:var(--sky-ink);border-color:var(--sky-deep)}
.setup-card[data-step="3"],.setup-card[data-step="service"]{border-top:4px solid var(--sky)}
.setup-card[data-step="3"] h1{font-stretch:82%;letter-spacing:-.01em;text-transform:uppercase}
[data-view=preview] [data-device][aria-pressed="false"]{background:var(--cloud);color:var(--ink);border-color:var(--line)}
[data-view=preview] [data-device][aria-pressed="false"]:hover{background:var(--surface);color:var(--sky-ink);border-color:var(--sky-deep)}
.checkpoint-progress{font-size:var(--type-caption);letter-spacing:.12em;text-transform:uppercase}
.checkpoint-transition h2{font-stretch:82%;letter-spacing:-.01em;text-transform:uppercase}
[data-account-panel] h2{font-size:var(--mi-headline)}
[data-account-panel] h3,[data-view=checkpoint] h3{font-size:var(--mi-headline)}
.setup-card h2{font-size:var(--mi-headline)}
.convert-box{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-card);padding:var(--space-5);margin-top:var(--space-4)}
.convert-box h3{margin-top:0}
/* PROD-TICKET-A (§17538): the operator disclosure sits inside the
   convert box above the pay action, set in the shell's callout size. */
.operator-disclosure{margin-top:var(--space-4);padding-top:var(--space-3);border-top:1px solid var(--line);font-size:var(--mi-callout);line-height:var(--mi-callout-lh);color:var(--ink-2)}
.operator-disclosure p{margin:0 0 var(--space-1)}
.operator-disclosure p:last-child{margin-bottom:0}
.operator-disclosure-title{font-weight:600;color:var(--ink)}
.operator-disclosure-name{font-weight:600;color:var(--ink)}
#account-convert{background:var(--red);border-color:var(--red)}
#account-convert:hover{background:var(--red-deep);border-color:var(--red-deep)}
[data-view=checkout-complete],[data-view=checkout-cancelled]{max-width:640px;background:var(--cloud);border:1px solid var(--line);border-radius:var(--radius-card);box-shadow:var(--shadow-card)}
[data-view=checkout-complete] h1,[data-view=checkout-cancelled] h1{font-size:var(--mi-title-1);line-height:var(--mi-title-1-lh)}
[data-view=recovery]{max-width:720px}
[data-view=recovery] h1{font-size:var(--mi-title-1);line-height:var(--mi-title-1-lh)}
[data-view=outbox]{max-width:860px}
[data-view=outbox] h1{font-size:var(--mi-title-1);line-height:var(--mi-title-1-lh)}
[data-view=outbox] h2{font-size:var(--type-h4)}
.studio-welcome{border-radius:var(--radius-card);box-shadow:var(--shadow-card)}

/* ELEV-S2: the form is a rail beside the site it is creating. */
.funnel-header{gap:var(--space-3)}
.funnel-header .wordmark{margin-right:auto}
/* UX-FIX-FLOOR (B-10): the funnel header's own 44px floor, the Studio
   subbar's standing standard. The lockup link's HIT AREA grows to 44px
   tall while the artwork itself stays at --lockup-h (the span centers
   in the taller box), and the draft exit never drops below 44px — at
   <=900px its caption-size rule otherwise takes it to ~39px. */
.funnel-header .wordmark{display:inline-flex;align-items:center;min-height:44px}
.funnel-header [data-funnel-exit]{display:inline-flex;align-items:center;min-height:44px}
/* JE-T14 (JOURNEY-EVAL T14 / JE-20, founder flag F3): the funnel brand
   link also carries the Umbral symbol span; it stays hidden wherever
   the full lockup shows — the <=430px block at the end of this file
   swaps the two. */
.funnel-header .wordmark-mark{display:none}
[data-view=studio]:has(.setup-layout){max-width:none;padding:0}
/* JE-T2 (JOURNEY-EVAL T2 / JE-19): the funnel's viewport-height rules
   use svh/dvh, never bare vh — vh is the LARGE viewport, so under
   Safari's toolbars these shells ran taller than the visible area, and
   the safe-area insets only apply at all now that both index.html
   files declare viewport-fit=cover. Converted here and below: the
   setup layout shell (100svh), the reveal iframes (100svh), the
   expanded stage (80dvh), the collapsed Paso 1 window (40svh). */
.setup-layout{display:grid;grid-template-columns:clamp(400px,30vw,440px) minmax(0,1fr);min-height:calc(100svh - 110px)}
/* DA-T1: the rail carries the gutter token and the body token —
   funnel prose reads at 16/24; 17 survives only as the question
   and input sizes (their own rules below). */
.setup-layout .setup-rail{min-width:0;width:auto;max-width:none;margin:0;padding:var(--space-6) var(--mi-gutter);font-size:var(--mi-body);line-height:var(--mi-body-lh);background:var(--cloud);border:0;border-right:1px solid var(--line);border-radius:0;box-shadow:none}
[data-view=studio] .setup-layout section{margin-bottom:0}
.setup-layout .setup-stage{min-width:0;padding:var(--space-5);background:var(--surface)}
.setup-layout .setup-rail h1{font-size:var(--mi-title-2);line-height:var(--mi-title-2-lh);letter-spacing:-.01em}
/* DA-T1: the reveal's rail heading is the display-moment (28/1.1/800)
   — the step-3 display voice rules below keep its stretch/uppercase. */
.setup-layout.setup-layout-reveal .setup-rail h1{font-size:var(--mi-display-moment);line-height:var(--mi-display-moment-lh);font-weight:800}
.setup-step-name{font-size:var(--type-caption);color:var(--ink-2);margin:0 0 var(--space-4)}
.setup-rail[data-step="3"] .setup-progress i,
.setup-rail[data-step="service"] .setup-progress i{background:var(--sky)}
.setup-rail[data-step="3"] h1{font-family:var(--font-display);font-stretch:82%;letter-spacing:-.01em;text-transform:uppercase}
.setup-stage .preview-wrapper{margin:0 auto}
[data-peek-toggle]{display:none}
.service-days{display:flex;flex-wrap:wrap;gap:var(--space-2)}
.service-days button{padding:var(--space-2);flex:1 0 auto;font-size:var(--mi-segmented);font-weight:600;min-height:44px /* DA-T1: chip text = the segmented token (15/600) */}
.setup-rail fieldset{min-width:0;margin:var(--space-4) 0;border:1px solid var(--line);padding:var(--space-3)}
[data-slug-subdomain]:focus-visible{outline:2px solid var(--sky-deep);outline-offset:2px}
[data-reveal-preview] iframe{height:100svh;min-height:900px}
[data-reveal-actions]{display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-3);padding:var(--space-4) 0;border-bottom:1px solid var(--line)}
[data-reveal-caption]{font-size:var(--type-caption);color:var(--ink-3)}
.design-stage-picker{overflow-anchor:none}
.design-stage-preview{display:block;position:relative;width:100%;aspect-ratio:4/3;overflow:hidden;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-input)}
.design-stage-preview iframe{position:absolute;left:0;top:0;width:1000px;height:750px;transform-origin:top left;border:0;pointer-events:none}
.design-stage-current{display:grid;gap:var(--space-2);margin-bottom:var(--space-5)}
.design-stage-current .design-stage-preview{aspect-ratio:4/3}
.design-stage-tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--space-2)}
.design-stage-tiles button{display:flex;flex-direction:column;align-items:stretch;gap:var(--space-2);min-width:0;padding:var(--space-2);font-size:var(--type-caption)}
@media(max-width:900px){
 .funnel-header{padding:var(--space-3);flex-wrap:wrap}
 .funnel-header .wordmark{flex:1}
 .funnel-header [data-funnel-exit]{font-size:var(--type-caption);padding:var(--space-2)}
 .setup-layout{display:flex;flex-direction:column}
 /* DA-T1: the phone rail's inline padding is the gutter token too
    (this ≤900px override, not the base rule, is what phones get). */
 .setup-layout .setup-rail{border-right:0;padding:var(--space-5) var(--mi-gutter)}
 .setup-layout .setup-stage{order:-1;position:sticky;top:0;z-index:3;height:64px;overflow:hidden;padding:var(--space-2);display:flex;align-items:center;gap:var(--space-3);border-bottom:1px solid var(--line)}
 .setup-stage [data-setup-stage-frame]{margin:0;width:96px;height:48px;overflow:hidden;flex:none;border:1px solid var(--line);border-radius:var(--radius-input)}
 [data-setup-stage-frame] iframe{pointer-events:none;width:390px;min-height:600px;transform:scale(.24);transform-origin:top left}
 [data-peek-toggle]{display:block;margin-left:auto}
 .setup-layout .setup-stage[data-expanded="true"]{height:auto;position:relative;display:flex;flex-direction:column}
 .setup-stage[data-expanded="true"] [data-setup-stage-frame]{width:100%;height:auto;max-width:none}
 .setup-stage[data-expanded="true"] iframe{width:100%;transform:none;height:80dvh}
 /* DA-T1: the reveal's gutter was 8px — it carries the gutter token. */
 .setup-layout-reveal .setup-stage{order:0;position:static;display:block;height:auto;overflow:visible;padding:var(--mi-gutter)}
 [data-reveal-preview].mobile{width:100%;max-width:none}
 [data-reveal-preview] iframe{height:1100px;min-height:100svh}
 /* PX-F5a: the collapsed setup strip peeks at the top of the true phone
    render (scaled to the strip, never the old 0.24 sliver); the peek
    label keeps its own unclipped flex space; expanded follows the
    shared stage model. These rules live inside this existing block —
    elev-s2 pins the file's LAST max-width:900px block. DA-T2
    (DENSITY-AUDIT §2.3): the collapsed window's height is now the
    clamp(220px, 36svh, 320px) cap — the 40svh share (40% of the
    viewport) was the Paso 1/3 density defect, not its scale; the
    JE-T12 headline fit grows from this same clamp as its baseline. */
 .setup-layout .setup-stage [data-setup-stage-frame].preview-stage{width:auto;height:48px;flex:1 1 auto;min-width:0;margin:0}
 [data-peek-toggle]{flex:none;white-space:nowrap;margin-left:0}
 .setup-layout .setup-stage[data-expanded="true"] [data-setup-stage-frame].preview-stage{width:100%;height:auto}
 .design-stage-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
 /* UX-FIX-REVEAL (UXEVAL-B B-01/B-04, confirmed with captures): on a
    phone the pastor's own site was a 48px peek strip on the setup steps
    while Paso 2's fictional specimens rendered at 240px, and the reveal
    led with its back button while the primary sat below the frame. The
    collapsed (not expanded) setup stage now gives the live preview a
    real 40svh window of her site (JE-T2: svh, was vh) — the peek model is unchanged, only
    the window is taller — stacked above the form with the toggle
    beneath it; the expanded state keeps the shared stage model above
    exactly. Scoped to the non-reveal layout: the reveal's stage is
    handled by the next two rules. */
 .setup-layout:not(.setup-layout-reveal) .setup-stage:not([data-expanded="true"]){position:relative;height:auto;flex-direction:column;align-items:stretch}
 .setup-layout:not(.setup-layout-reveal) .setup-stage:not([data-expanded="true"]) [data-setup-stage-frame].preview-stage{width:100%;height:clamp(220px,36svh,320px);flex:none}
 .setup-layout:not(.setup-layout-reveal) .setup-stage:not([data-expanded="true"]) [data-peek-toggle]{align-self:flex-end}
 /* The phone reveal follows the same stage-first pattern as the other
    setup steps: the stage leads the screen and its actions sit above
    the frame, so the one solid primary is the first action she meets;
    the rail — headline and the quiet back button — follows. */
 .setup-layout-reveal .setup-stage{order:-1;display:flex;flex-direction:column;align-items:stretch}
 .setup-layout-reveal [data-reveal-actions]{order:-1}
 /* JE-T16 (JOURNEY-EVAL T16 / JE-08): on phone builds studio-view
    moves the reveal's heading group into the stage under
    [data-reveal-heading]; it leads the stage — above the actions'
    order:-1 — so the headline is the first thing on the screen, not
    a rail card below the frame. The h1 keeps the rail's exact
    treatment (the display-3 size/leading and the [data-step="3"]
    display voice), replicated here because the rail selectors no
    longer reach it inside the stage. */
 .setup-layout-reveal [data-reveal-heading]{order:-2}
 .setup-layout-reveal [data-reveal-heading] h1{font-family:var(--font-display);font-size:var(--mi-display-moment);line-height:var(--mi-display-moment-lh);font-weight:800;font-stretch:82%;letter-spacing:-.01em;text-transform:uppercase}
 /* DA-T2 (DENSITY-AUDIT §3.6): the reveal's actions sit 24px under
    the heading — no top margin, a 12px top padding over the stage's
    own 12px flex gap — the stacked rows tighten to 8px gaps, the
    divider under the block goes, and «Ver la vista previa completa»
    becomes a 44px text row instead of a third button, so her site
    starts ~90px higher on the first screen. Desktop keeps the
    shipped actions block; these rules are phone-only. */
 .setup-layout-reveal [data-reveal-actions]{margin-top:0;padding-top:12px;padding-bottom:12px;gap:8px;border-bottom:0}
 .setup-layout-reveal [data-reveal-actions] a.button.quiet{display:flex;align-items:center;min-height:44px;padding:0;background:transparent;border:0}
 /* JE-T4 (JOURNEY-EVAL T4, fixes JE-06 + the bar half of JE-07): the
    setup steps share one sticky action bar (§4.2-1) — sticky at the
    bottom of the step's own flow (never fixed, so it cannot drift
    above the iOS keyboard), 76px tall plus the safe-area inset, a
    --line top border on the surface token. The bar bleeds to the
    rail's edges (the rail's own --space-5 padding is its inset) and
    the rail returns its bottom padding when a bar is present, so the
    bar sits flush at the rail's foot at rest. Paso 2's application
    is interim — it goes when the T5 design browser lands. While a
    text field holds the keyboard (studio-view's sync sets
    data-keyboard-hidden), the bar steps aside: on Paso 1 the
    keyboard's own Go key is Continuar. */
 .setup-layout .setup-rail:has(> .setup-action-bar){padding-bottom:0}
 /* DA-T1: the bar bleeds and pads on the gutter token so it stays
    flush with the rail at every width; its buttons carry the button
    token (17/22/600) at the 48px comfort height. */
 .setup-action-bar{position:sticky;bottom:0;z-index:4;display:flex;flex-wrap:nowrap;align-items:center;gap:var(--space-4);min-height:76px;margin:var(--space-4) calc(-1 * var(--mi-gutter)) 0;padding:10px var(--mi-gutter);padding-bottom:calc(10px + env(safe-area-inset-bottom,0px));background:var(--surface);border-top:1px solid var(--line)}
 .setup-action-bar button{white-space:nowrap;padding-left:16px;padding-right:16px;font-size:var(--mi-button);line-height:var(--mi-button-lh);min-height:var(--mi-btn-h)}
 .setup-action-bar .primary{flex:1 1 auto;min-width:0}
 .setup-action-bar[data-keyboard-hidden="true"]{display:none}
 /* JE-T4: "Ver mi sitio" is now an in-stage 44x44 overlay control at
    the stage's bottom-right — the 53px row it used to occupy under
    the stage is gone, part of Paso 1's recovered height. The stage
    is positioned in every state it can be in (relative collapsed,
    sticky on the design step, relative expanded), so the overlay
    anchors to the stage directly in all of them. */
 .setup-layout .setup-stage [data-peek-toggle]{position:absolute;right:var(--space-3);bottom:var(--space-3);z-index:2;width:44px;height:44px;min-width:44px;padding:0;margin:0;display:flex;align-items:center;justify-content:center;font-size:20px;line-height:1}
 /* JE-T8 (founder flag F5): on a phone the preview IS the phone view,
    so the Computadora/Tableta/Teléfono toggle is pure chrome (JE-10).
    The DOM stays (PX-F26 contracts, desktop unchanged); the full
    preview (#/vista-previa) keeps all three devices at every width.
    The rule lives in THIS block because it is the file's last
    max-width:900px block (elev-s2/JE-T4/JE-T16 pin that position)
    and it comes after the base .studio-device-toggle rule, so the
    declaration wins the cascade at equal specificity. */
 .studio-device-toggle{display:none}
}
/* DA-T2 (DENSITY-AUDIT §3.6): the reveal heading group carries the
   design heading's discipline — one column, 2px gaps, no inherited
   h1 margins — so the moment's stack is measured, not accumulated.
   Component-scoped like the design browser's rules: the group is
   only ever BUILT at <=900px, and a rotation wider must not leave
   it unstyled. The h1's own treatment (display-moment, uppercase,
   stretch) lives in the <=900px block and is untouched. */
.setup-layout-reveal [data-reveal-heading]{display:flex;flex-direction:column;gap:2px}
.setup-layout-reveal [data-reveal-heading] .setup-step,
.setup-layout-reveal [data-reveal-heading] .setup-step-name{margin:0;line-height:1.3}
.setup-layout-reveal [data-reveal-heading] h1{margin:0}

/* JE-T5 DESIGN-BROWSER (JOURNEY-EVAL T5 / §3.3, F1 + F2) + JE-T5-FIX
   M6 (Claude pilot-t5review-001): Paso 2 at phone widths is a design
   browser — her own site in the stage, browsed freely, committed
   once by name. The heading block rides above the stage (order -2;
   the stage keeps its -1), the shared pre-T5 stage frame and its
   peek toggle step aside, and the stage is the browser's device
   frame: 8px ink border, 24px radius (the reveal's own treatment),
   height fitted to the available viewport (DA-T2: see the offset
   note on the stage rule). These rules are
   scoped to the component's own classes and live OUTSIDE any
   max-width block on purpose: the browser is only ever BUILT at
   <=900px, but a rotation or resize across 900px mid-step must
   never leave it unstyled (M6) — the classes exist nowhere else, so
   width-independence costs the desktop layout nothing. */
/* JE-T5-FIX H3: the heading regains the rail's inline padding
   (Claude: text touched the screen edges) and its progress segments
   1-2 fill again (the fill selector lives with the shared progress
   rules). The padding narrows the title's measure, so the display
   title wraps to two lines at phone widths; the stack's gaps tighten
   4px -> 2px to hold §3.3.8's composition budget (stage top <=200px;
   stage + grid + bar in view within a <=130px scroll). */
.setup-design-heading{order:-2;display:flex;flex-direction:column;gap:2px;padding:0 var(--mi-gutter)}
.setup-design-heading .setup-progress,.setup-design-heading .setup-step,.setup-design-heading .setup-step-name,.setup-design-heading h1{margin:0}
.setup-layout .setup-stage[data-design-browser] [data-setup-stage-frame],
.setup-layout .setup-stage[data-design-browser] [data-peek-toggle]{display:none}
/* JE-T5-FIX H1 companion: on Paso 2 the shared action bar is a direct
   child of the layout (its sticky range is the whole step), so the
   rail-bleed negative margins the base bar rule carries would push
   it past the layout's edges — flush it here. */
.setup-layout-design > .setup-action-bar{margin-left:0;margin-right:0}
.design-browser{display:flex;flex-direction:column;gap:8px;width:100%}
.design-browser-stage{position:relative;height:clamp(160px,calc(100svh - var(--da-t2-stage-offset,192px) - env(safe-area-inset-bottom,0px)),680px);border:8px solid var(--ink);border-radius:24px;background:var(--cloud);overflow:hidden;box-sizing:border-box}
/* DA-T2 (DENSITY-AUDIT §3.3): the stage height is FITTED, not fixed —
   viewport minus the top bar, minus the intro block (the 17px
   wayfinding row + 2px gap + the one-line 29px title + the stage's
   own 8px top padding = 56px), minus the action bar (76px; the
   safe-area inset is subtracted separately in the height above —
   the bar grows by it, so the caption bar keeps its clearance),
   minus the 8px the caption bar must clear the action bar by. The
   scale formula (design-browser.ts fit()) is untouched. Offsets by
   composition band: the <=430px funnel bar is 52px -> 192 total; at
   <=360px the Spanish funnel header wraps to ~68px -> 208; at
   431-900px the funnel header measures 78px -> 219 (the landscape
   phones live in this band). */
@media(max-width:360px){
 .design-browser-stage{--da-t2-stage-offset:208px}
}
@media(min-width:431px) and (max-width:900px){
 .design-browser-stage{--da-t2-stage-offset:219px}
}
/* JE-T5-FIX H2: the frame's left offset clamps at 0 — centering the
   UNSCALED 390px box and then scaling from the top-left corner put
   the scaled frame's left edge (innerW - 390)/2 OUTSIDE the stage
   whenever the stage was narrower than 390px, cropping her site. */
.design-browser-frame{position:absolute;top:0;left:max(0px,calc(50% - 195px));border:0;max-width:none;min-height:0;transform-origin:top left;pointer-events:none;opacity:0;visibility:hidden;transition:opacity 160ms var(--ease-standard),visibility 0s 160ms}
.design-browser-frame[data-current="true"],.design-browser-frame[data-incoming="true"]{opacity:1;visibility:visible;transition:opacity 160ms var(--ease-standard)}
.design-browser-stage[data-sliding="true"] .design-browser-frame{transition:transform 200ms var(--ease-standard)}
.design-browser-skeleton{position:absolute;inset:0;z-index:1;background:var(--surface)}
.design-browser-overlay{position:absolute;inset:0;z-index:2;touch-action:pan-y}
/* JE-T5-FIX L1: the prev/next discs ride IN the caption bar (and the
   preview's bottom bar) as static flex items — floating at 50% of
   the stage they sat on her hero headline and visit CTA, and no
   single overlay height clears the hero at every stage height. */
.design-browser-nav{position:static;flex:none;width:44px;height:44px;min-width:44px;padding:0;margin:0;border:1px solid var(--line);border-radius:50%;background:rgb(253 253 254 / .9);color:var(--ink);display:flex;align-items:center;justify-content:center;font-size:22px;line-height:1;cursor:pointer}
.design-browser-nav[hidden]{display:none}
.design-browser-caption{position:absolute;left:0;right:0;bottom:0;z-index:3;height:44px;display:flex;align-items:center;gap:4px;padding:0 4px;background:var(--cloud);border-top:1px solid var(--line);font-size:14px}
.design-browser-caption-text{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.design-browser-expand{width:44px;height:44px;min-width:44px;padding:0;margin:0;border:0;background:transparent;color:var(--ink);display:flex;align-items:center;justify-content:center;font-size:18px;line-height:1;cursor:pointer}
.design-browser-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.design-browser-chip{min-height:44px;display:flex;align-items:center;justify-content:center;padding:6px 4px;border:1px solid var(--line);border-radius:12px;background:var(--cloud);font-size:var(--mi-segmented);font-weight:600;text-align:center;cursor:pointer}
.design-browser-chip[aria-checked="true"]{border:2px solid var(--sky-deep);box-shadow:0 0 0 3px var(--sky-tint-2)}
.design-browser-chip[aria-checked="true"]::after{content:"✓";margin-left:6px;color:var(--sky-deep);font-weight:700}
.design-browser-chip:focus-visible{outline:3px solid var(--sky-deep);outline-offset:2px}
/* JE-T5-FIX M7 (spec §3.3.7): at tablet widths the name grid is ONE
   row of six, not 3x2 — the browser is built only at <=900px, so
   this band is exactly the widths where the row fits. */
@media(min-width:600px) and (max-width:900px){
 .setup-layout-design .design-browser-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
}
/* The full-screen preview lives on document.body (outside #app, the
   FIX-3 F20 pattern): 100dvh, the browsed design at 1:1 phone width
   in a scrollable frame, the same named commit in its bottom bar. */
.design-browser-dialog{position:fixed;inset:0;z-index:60;height:100dvh;display:flex;flex-direction:column;background:var(--cloud)}
.design-browser-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);padding:8px 8px 8px 16px;border-bottom:1px solid var(--line);font-size:15px}
.design-browser-dialog-close{min-width:44px;height:44px;padding:0 12px}
.design-browser-dialog-scroll{flex:1 1 auto;overflow-y:auto;display:flex;justify-content:center;background:var(--surface)}
.design-browser-dialog-frame{width:min(390px,100%);height:100%;border:0;background:white}
.design-browser-dialog-bar{display:flex;align-items:center;gap:var(--space-3);padding:10px var(--space-4);padding-bottom:calc(10px + env(safe-area-inset-bottom,0px));background:var(--surface);border-top:1px solid var(--line)}
.design-browser-dialog-bar .design-browser-nav{position:static;transform:none;flex:none}
.design-browser-dialog-commit{flex:1 1 auto;min-height:48px;line-height:var(--mi-button-lh)}
@media(prefers-reduced-motion:reduce){
 .design-browser-frame{transition:opacity 120ms var(--ease-standard),visibility 0s 120ms}
 .design-browser-stage[data-sliding="true"] .design-browser-frame{transition:opacity 120ms var(--ease-standard)}
}
@media(prefers-reduced-motion:reduce){
 [data-setup-stage-frame],[data-reveal-preview]{transition:opacity var(--motion-base) var(--ease-standard) !important;transform:none !important}
}

/* PX-F5a: true device viewports, fitted by the shared preview stage. */
.preview-wrapper.preview-stage{width:100%}
.preview-wrapper.preview-stage.mobile{width:100%;border:0;border-radius:0;overflow:visible}
.preview-wrapper.preview-stage.mobile .preview-stage-box{border:8px solid var(--ink);border-radius:24px}
.preview-stage-box{position:relative;overflow:hidden;margin-inline:auto;background:white;box-sizing:border-box}
.preview-wrapper.preview-stage .preview-stage-box>iframe{position:absolute;top:0;left:0;border:0;max-width:none;min-height:0;transform-origin:top left}
[data-reveal-preview].preview-stage{width:100%}

/* JE-T14 (JOURNEY-EVAL T14 / JE-20, founder flag F3): at <=430px the
   funnel header is ONE row — the Umbral mark (44x44) instead of the
   full lockup, with the language toggle and the draft exit beside
   it — 55px tall instead of the two-row 134px, returning ~79px to
   the stage on every setup step. Above 430px nothing in this block
   applies and the header is exactly as before. The 44px floor
   (UX-FIX-FLOOR) holds: the toggle's generic 53px height is capped
   to the row, and the brand link hugs the mark instead of stretching
   across the row. This block comes last so its declarations win over
   the <=900px funnel rules at equal specificity.
   DA-T2 (DENSITY-AUDIT §2.3): the bar is 52px — the block padding
   goes 5px -> 3.5px (44px row + 2x3.5px + the 1px border = 52);
   the 44px hit areas inside are unchanged. */
@media(max-width:430px){
 .funnel-header{flex-wrap:nowrap;padding:3.5px var(--space-3)}
 .funnel-header .wordmark{flex:none}
 .funnel-header .wordmark>span:not(.wordmark-mark){display:none}
 .funnel-header .wordmark-mark{display:inline-flex}
 .funnel-header .wordmark-mark>svg{height:44px}
 .funnel-header #btn-lang{height:44px;display:inline-flex;align-items:center;justify-content:center}
}

/* JE-T5-FIX L10 (Claude pilot-t5review-001): at 320px (Display Zoom)
   the action bar's named primary — "Continuar con Catedral", ~205px
   of nowrap text — overflowed its ~176px flex slot and clipped. At
   <=340px the bar tightens its inset and gap and the primary may
   wrap to two lines instead of clipping; the 44px target floor and
   every >=375px layout are untouched. */
@media(max-width:340px){
 .setup-action-bar{gap:var(--space-3);padding-left:var(--space-4);padding-right:var(--space-4)}
 .setup-action-bar button.primary{white-space:normal;line-height:1.2}
}

/* DA-T3 (Density §3.7): short landscape (844×390) — the Studio ribbon
   collapses to ONE row. The ≤900px rules wrap the mode switch onto
   its own full-width row and the ribbon reflows to ~3 rows, leaving
   0px of her site visible; here the brand steps aside (as it does
   ≤480px), the identity line truncates into the row's flexible
   slot, and the mode switch, language toggle and Continuar share
   the single line. The query is height-led on purpose: it must not
   disturb the file's max-width block position pins. */
@media(max-height:430px) and (max-width:900px){
 .studio-subbar{flex-wrap:nowrap;padding:6px var(--space-3);gap:var(--space-2)}
 .studio-subbar .studio-brand{display:none}
 .studio-subbar .studio-identity-line{display:flex;align-items:center;gap:6px;min-width:0;flex:1 1 auto;font-size:var(--mi-meta);line-height:var(--mi-meta-lh)}
 .studio-subbar .studio-identity{display:flex;align-items:center;gap:6px;min-width:0;flex:0 1 auto}
 .studio-subbar .unpublished{flex:none;white-space:nowrap}
 .studio-subbar [data-draft-name]{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:15px;font-weight:600}
 .studio-subbar .studio-design-ribbon{flex:1 1 0%;min-width:0;overflow:hidden;text-overflow:ellipsis}
 .studio-subbar [data-saved-note]{flex:none;white-space:nowrap}
 .studio-subbar .mobile-mode{position:static;flex:0 0 auto;flex-basis:auto;margin:0;padding:0;background:transparent}
 .studio-subbar .mobile-mode button{flex:none;padding:4px 10px}
 .studio-subbar #btn-save-continue{flex:none}
}
/* DA-T2 (DENSITY-AUDIT §2.3): at <=360px the action bar's Back is a
   48x48 icon «‹» — the 75-78px text button plus the named primary
   («Continuar con Catedral», 205px incl. padding) overflowed the
   320px bar and pushed the commit to two lines (the JE-T5-FIX L10
   wrap). With the icon, the primary fits one line at 48px tall in
   both languages (measured). The button's text stays in the DOM
   (font-size:0) and its aria-label is set at build, so the control
   keeps its name; only its presentation narrows. Paso 3's Back is
   not in its action bar (JE-T4 placed it in-flow) and keeps its
   text — nothing crowds it there. */
@media(max-width:360px){
 .setup-action-bar #setup-back{flex:none;width:48px;min-width:48px;height:48px;padding:0;font-size:0;display:inline-flex;align-items:center;justify-content:center}
 /* DA-FIX-2 (DENSITY-VERDICT D1): at 320px the ribbon's row 2 cannot
    hold the modes at full size, the 44px language chip AND the
    primary's label at 15px — the verdict's order is to shrink the
    PRIMARY's label before the segments. At the 13px meta size the
    label fits its flexible cell (wrapping inside its own 44px row
    in English) and the frame top stays ≤160. */
 .studio-subbar>#btn-save-continue{font-size:var(--mi-meta);line-height:1.15}
 .setup-action-bar #setup-back::before{content:"‹";font-size:26px;line-height:1;font-weight:600}
}

