/* The owner reserves the guide wrapper's right slot. Never size/move the sprite.
 * Headers: --bpg-slot-width:80px; --bpg-slot-height:66px.
 * Story: --bpg-slot-width:56px; --bpg-slot-height:60px.
 */
.bpg-scene{display:none}
@media(max-width:640px){
 .be-phone-guide>.bpg-scene{display:block;position:absolute;right:0;top:50%;width:var(--bpg-slot-width,80px);height:var(--bpg-slot-height,66px);max-width:100%;max-height:100%;transform:translateY(-50%);overflow:hidden;pointer-events:none;user-select:none;contain:layout style paint;isolation:isolate}
 .be-phone-guide>.bpg-scene[hidden]{display:none!important}
 .be-phone-guide>.bpg-scene[data-phone-scene="story"]{width:var(--bpg-slot-width,56px);height:var(--bpg-slot-height,60px)}
 .bpg-art{position:relative;display:block;width:100%;height:100%;transform-origin:center;pointer-events:none}
 .bpg-art>svg{display:block;width:100%;height:100%;overflow:hidden;shape-rendering:geometricPrecision}
 .bpg-catalogue{position:absolute;inset:2px 1px;display:flex;flex-direction:column;padding:5px 6px 4px;box-sizing:border-box;border:1px solid #dfe7f4;border-radius:8px;background:linear-gradient(145deg,#fff,#f7f9ff);overflow:hidden;color:#4b6288;font-family:Manrope,system-ui,sans-serif;box-shadow:0 2px 5px -4px #29426436}
 .bpg-catalogue-head{display:flex;align-items:center;justify-content:space-between;gap:3px;flex:0 0 11px;font-size:6.5px;font-weight:700;line-height:1;white-space:nowrap;letter-spacing:0}
 .bpg-catalogue-head>span{color:#8ca1c2;font-size:9px}
 .bpg-catalogue-window{display:block;position:relative;flex:1 1 0;min-height:0;overflow-x:hidden;overflow-y:hidden;overscroll-behavior:none;scroll-behavior:auto!important;border-radius:3px;scrollbar-width:none}
 .bpg-catalogue-window::-webkit-scrollbar{display:none}
 .bpg-catalogue-list{display:grid;gap:3px}
 .bpg-catalogue-row{display:flex;align-items:center;gap:4px;height:20px;box-sizing:border-box;padding:2px 3px;border:1px solid #e9eef7;border-radius:4px;background:#fff;white-space:nowrap}
 .be-phone-guide .bpg-catalogue-row img{display:block;width:14px;height:14px;flex:none;object-fit:contain}
 .bpg-catalogue-row>span{font-size:6.5px;line-height:1.1;font-weight:550;color:#667b9d}
 .bpg-catalogue-track{position:absolute;right:2px;top:18px;bottom:6px;width:2px;border-radius:2px;background:#edf1f9;overflow:hidden}
 .bpg-catalogue-thumb{position:absolute;top:0;left:0;width:2px;height:11px;border-radius:2px;background:#a8bbdf}
 .bpg-question-line{stroke-dasharray:100;stroke-dashoffset:100}
 /* The sculpted question replaces the earlier text-only question accent. */
 .be-faq__head>.be-phone-guide:has(>.bpg-scene)::after{display:none}
}
@media(prefers-reduced-motion:reduce){.bpg-scene *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(forced-colors:active){.bpg-scene{display:none!important}}

/* One real mobile handoff: CSS activates only while the controller supplies
   measured geometry. Failure / no script / reduced motion retains the original. */
.bpg-carried-app{display:none}
@media(max-width:640px) and (prefers-reduced-motion:no-preference){
 .bpg-carried-app:not([hidden]){display:block;position:fixed;left:0;top:0;width:32px;height:32px;z-index:8;transform-origin:0 0;pointer-events:none;user-select:none;contain:layout paint;overflow:hidden}
 .bpg-carried-app>img{display:block;width:32px;height:32px;object-fit:contain}
 #beyonder-story.bpg-story-placement .bs-sticky .bs-clipsy{opacity:var(--bpg-placed-first,0)!important}
 #beyonder-story.bpg-story-placement .bs-sticky .bs-clipsy img{opacity:var(--bpg-placed-icon,0)!important}
 #beyonder-story.bpg-story-placement .bs-sticky .bs-shary{opacity:var(--bpg-placed-second,0)!important}
 #beyonder-story.bpg-story-placement .bs-sticky .bs-connection{opacity:var(--bpg-placed-wire,0)!important}
 #beyonder-story.bpg-story-placement .bs-sticky .bs-connection path:last-child{opacity:var(--bpg-placed-arrow,0)!important}
 #beyonder-story.bpg-story-placement .bs-sticky .bs-connection-line{stroke-dasharray:1;stroke-dashoffset:calc(1 - var(--bpg-placed-wire,0))!important}
}

/* Held pricing/FAQ props share the full reserved guide box. Their exact origin
   comes from the rendered actor pose, never a separate floating animation. */
@media(max-width:640px){
 .be-phone-guide>.bpg-scene[data-phone-scene="pricing"],
 .be-phone-guide>.bpg-scene[data-phone-scene="faq"]{width:100%;height:100%;overflow:visible;contain:layout style}
 .bpg-scene[data-phone-scene="pricing"]>.bpg-art,
 .bpg-scene[data-phone-scene="faq"]>.bpg-art{position:absolute;left:0;top:0;transform-origin:0 0}
}
