.onboarding-layer:empty { display:none; }
.onboarding-layer { position:fixed; inset:0; z-index:10000; touch-action:none; overscroll-behavior:contain; }
.onboarding-shade, .onboarding-connector { position:fixed; inset:0; width:100%; height:100%; pointer-events:none; }
.onboarding-bubble { position:fixed; width:min(300px,calc(100vw - 48px)); box-sizing:border-box; color:#697265; border:0; overflow:auto; z-index:2; touch-action:pan-y; overscroll-behavior:contain; isolation:isolate; }
/* Crown headroom stays inside the measured dialog. The opaque body begins
   under the crown so scrolling and target placement do not clip its lobes. */
.onboarding-bubble--coachmark { --coachmark-surface:#fffbef; padding:52px 18px 14px; border-radius:26px; opacity:1; }
.onboarding-bubble--coachmark::before { content:""; position:absolute; inset:22px 0 0; z-index:-1; background:var(--coachmark-surface); border:1px solid #ead6a8; border-radius:26px; box-shadow:0 6px 22px rgba(122,105,59,.08),0 0 11px rgba(244,213,140,.16); }
.onboarding-bubble--coachmark .coachmark-lotus-cap { position:absolute; top:0; left:50%; transform:translateX(-50%); width:82px; height:50px; pointer-events:none; filter:drop-shadow(0 -1px 2px #fff7dd60); }
.onboarding-ornament { display:block; object-fit:contain; }
.onboarding-bubble h2 { font-family:inherit; font-weight:600; color:#405c33; }
.onboarding-bubble p { overflow-wrap:break-word; }
.onboarding-bubble--coachmark h2 { text-align:center; font-size:17px; line-height:1.35; margin:0 0 6px; text-wrap:balance; }
.onboarding-bubble--coachmark p { text-align:center; font-size:14px; line-height:1.5; margin:0 0 10px; text-wrap:pretty; }
.onboarding-bubble--welcome { width:min(300px,calc(100vw - 48px)); box-sizing:border-box; padding:18px 22px 18px; border-radius:28px; border:1px solid #e8ce94; background:linear-gradient(145deg,#fffcf3,#fcf7e8); box-shadow:0 12px 36px rgba(85,78,52,.12),0 0 16px rgba(255,244,206,.20); text-align:center; }
.onboarding-bubble--welcome .welcome-lotus { width:200px; height:145px; max-width:100%; object-fit:contain; margin:0 auto 8px; mix-blend-mode:multiply; mask-image:radial-gradient(ellipse at center,#000 50%,transparent 76%); }
[data-onboarding-active] .bubble { animation-play-state:paused!important; }
.onboarding-bubble--welcome h2 { max-width:235px; margin:0 auto 12px; font-family:"Cormorant Garamond",Georgia,serif; font-size:34px; font-weight:500; line-height:1.04; text-wrap:balance; }
.onboarding-divider { display:flex; align-items:center; gap:10px; width:82%; margin:0 auto 12px; }
.onboarding-divider::before, .onboarding-divider::after { content:""; height:1px; flex:1; background:linear-gradient(90deg,transparent,#d9b66d); }
.onboarding-divider::after { transform:scaleX(-1); }
.onboarding-divider img { width:22px; height:18px; opacity:.9; }
.onboarding-bubble--welcome p { font-size:14px; line-height:1.6; margin:0 0 18px; text-wrap:pretty; }
.onboarding-bubble button { font:inherit; font-size:14px; cursor:pointer; min-height:40px; border:0; background:transparent; color:#4a6139; padding:8px 10px; border-radius:12px; }
.onboarding-bubble .onboarding-close { position:absolute; right:3px; top:23px; width:40px; height:40px; padding:0; font-size:18px; color:#78836b; }
.onboarding-bubble--welcome .onboarding-close { top:3px; }
.onboarding-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:4px; }
.onboarding-bubble--welcome .onboarding-actions { justify-content:center; }
.onboarding-bubble .onboarding-next { background:#cfddb8; font-weight:600; border-radius:18px; padding-inline:16px; }
.onboarding-bubble--welcome .onboarding-next { background:#d6e1bd; min-height:42px; border-radius:20px; padding-inline:18px; }
.onboarding-dots { margin-right:auto; font-size:10px; letter-spacing:3px; color:#81916b; }
.onboarding-target { position:fixed; box-sizing:border-box; border:1px dashed #91a179a6; box-shadow:0 0 0 3px #fff3d52b; border-radius:18px; pointer-events:none; }
.onboarding-connector line { stroke:#91a177; stroke-width:1.5; stroke-dasharray:1 5; stroke-linecap:round; }
.onboarding-bubble button:focus-visible { outline:2px solid #526f35; outline-offset:2px; }
.big-text .onboarding-bubble p { font-size:17px; }
.big-text .onboarding-bubble h2 { font-size:21px; }
.big-text .onboarding-bubble--welcome h2 { font-size:40px; }
.measurement-template-secondary { display:flex; align-items:center; flex-wrap:wrap; gap:6px; border:0; background:transparent; color:var(--muted,#676c61); font:inherit; font-size:13px; min-height:44px; padding:6px 0; margin:0 0 12px; text-align:left; }
.measurement-template-secondary strong { color:#526f35; font-weight:600; }
.measurement-template-secondary:focus-visible { outline:2px solid #526f35; outline-offset:3px; }
@media(prefers-reduced-motion:reduce) { .onboarding-layer * { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
.reduce-motion .onboarding-layer * { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
