/* A single, calm reading path: illustration, pagination, message, action. */
#taily-onboarding{box-sizing:border-box;position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:none;padding:0;border:0;background:#faf9f5;color:var(--taily-ink);font-family:var(--taily-font);overflow:auto;overscroll-behavior:contain}
#taily-onboarding::backdrop{background:#faf9f5}
body.ob-open{overflow:hidden}
.ob-shell{box-sizing:border-box;width:100%;max-width:560px;min-height:100%;margin:auto;padding:max(12px,env(safe-area-inset-top)) 24px max(20px,env(safe-area-inset-bottom));display:flex;flex-direction:column}
.ob-header{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px;flex:none}
.ob-logo{display:block;width:70px;height:auto;flex:none}
.ob-header-actions{display:flex;align-items:center;gap:8px}
.ob-exit,.ob-signin{border:0;background:transparent;font:400 14px/1.4 var(--taily-font);min-height:44px;cursor:pointer;text-underline-offset:4px}
.ob-exit{padding:8px 0 8px 12px;color:#655773}
.ob-exit:hover,.ob-signin:hover{text-decoration:underline}
.ob-stage{flex:1;display:flex;align-items:center;justify-content:center;min-width:0}
.ob-scene{width:100%;display:flex;flex-direction:column;align-items:center;text-align:center;padding:8px 0 24px;box-sizing:border-box}
.ob-art{width:100%;max-width:440px;aspect-ratio:1;flex:none;position:relative}
.ob-illustration{display:block;width:100%;height:100%;object-fit:contain}
.ob-dots{display:flex;justify-content:center;align-items:center;margin:0 0 12px;padding:0;list-style:none}
.ob-dots button{display:grid;place-items:center;width:32px;height:44px;border:0;background:transparent;cursor:pointer;padding:0;color:var(--primary-action-bg,#7254f9)}
.ob-dots span{display:block;width:7px;height:7px;border-radius:99px;background:currentColor;opacity:.25;transition:opacity 200ms ease}
.ob-dots [aria-current] span{width:22px;opacity:1}
.ob-title h1{font-size:clamp(30px,8.5vw,40px);line-height:1.08;letter-spacing:-.025em;margin:0;font-weight:700;outline:none}
.ob-copy{max-width:36ch;font-size:16px;line-height:1.5;margin:16px 0 0;color:#655773;text-wrap:pretty}
.ob-footer{position:relative;flex:none;display:flex;flex-direction:column;align-items:center;width:100%}
.ob-next{width:100%;max-width:380px}
.ob-account-actions{display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap;font-size:13px;line-height:1.4;color:#655773;margin:12px 0 0}
.ob-signin{font-size:13px;font-weight:600;color:var(--primary-action-bg,#7254f9);padding:8px 2px}
.ob-step-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#taily-onboarding :is(button,a):focus-visible{outline:2px solid var(--primary-action-bg,#7254f9);outline-offset:3px}
#taily-onboarding ::selection{background:#d9ff55;color:#282034}
@media(prefers-reduced-motion:reduce){.ob-dots span{transition:none}}

/* Fixed viewport tracks keep every control still across slide content changes. */
.ob-shell{--ob-heading-size:clamp(30px,8.5vw,40px);--ob-copy-size:16px;height:100%;min-height:560px;max-width:none;display:grid;grid-template-rows:44px minmax(0,1fr) auto;gap:12px}
.ob-header{width:100%;height:44px}
.ob-header-actions{height:44px}
.ob-stage{width:min(100%,512px);height:100%;min-height:0;justify-self:center;display:block}
.ob-scene{height:100%;padding:0;display:grid;grid-template-rows:minmax(0,1fr) 44px calc(var(--ob-heading-size)*2.16) calc(var(--ob-copy-size)*6);row-gap:12px;justify-items:center;align-items:start}
.ob-art{width:100%;height:100%;min-height:0;max-width:440px;aspect-ratio:auto}
.ob-dots{height:44px;margin:0;align-self:center}
.ob-title{align-self:start;width:100%}
.ob-title h1{font-size:var(--ob-heading-size);line-height:1.08}
.ob-copy{font-size:var(--ob-copy-size);line-height:1.5;margin:0;align-self:start}
.ob-footer{width:min(100%,512px);justify-self:center}
.ob-next{flex:none}
.ob-account-actions{height:44px;margin:12px 0 0;flex-wrap:nowrap}
@media(max-height:760px){.ob-shell{--ob-heading-size:30px;--ob-copy-size:14px;gap:8px;padding-top:max(8px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom))}.ob-scene{row-gap:8px}.ob-account-actions{margin-top:4px}}
@media(min-width:700px){.ob-shell{--ob-heading-size:40px;padding-inline:32px}}
/* Persistent chrome and preloaded panels: only slide opacity changes. */
.ob-stage{position:relative;display:grid;grid-template-rows:minmax(0,1fr) 44px calc(var(--ob-heading-size)*2.16) calc(var(--ob-copy-size)*6);gap:12px;isolation:isolate}
.ob-scene{position:absolute;inset:0;opacity:0;visibility:hidden;pointer-events:none}
.ob-scene.is-active{opacity:1;visibility:visible;pointer-events:auto}
.ob-scene .ob-art{grid-row:1}.ob-scene .ob-title{grid-row:3}.ob-scene .ob-copy{grid-row:4}
.ob-stage>.ob-dots{position:relative;grid-row:2;grid-column:1;z-index:2;justify-self:center}
.ob-logo{height:37px;object-fit:contain}
/* A shared action track; the first and final steps have one full-width CTA. */
.ob-actions{display:grid;grid-template-columns:var(--taily-button-height-large) minmax(0,1fr);gap:12px;width:100%;max-width:380px;align-items:center;transition:grid-template-columns 220ms ease,gap 220ms ease}
.ob-actions .ob-next{min-width:0;max-width:none}
.ob-actions [data-ob-back]{transition:opacity 180ms ease,background-color 180ms ease}
#taily-onboarding:is([data-step="0"],[data-step="3"]) .ob-actions{grid-template-columns:0px minmax(0,1fr);gap:0}
#taily-onboarding:is([data-step="0"],[data-step="3"]) [data-ob-back]{opacity:0;visibility:hidden;pointer-events:none}
#taily-onboarding[data-step="3"] .ob-dots button{cursor:default}
.ob-next{position:relative;overflow:hidden}
.ob-next-label{display:grid;width:100%}
.ob-next-label>span{grid-area:1/1;transition:opacity 220ms ease}
.ob-register-label{opacity:0;visibility:hidden}
#taily-onboarding[data-step="3"] .ob-register-label{opacity:1;visibility:visible}
#taily-onboarding[data-step="3"] .ob-continue-label{opacity:0;visibility:hidden}
@media(max-height:760px){.ob-stage{gap:8px}}
@media(prefers-reduced-motion:reduce){.ob-next-label>span,.ob-actions,#taily-onboarding .ob-actions [data-ob-back]{transition:none}}
