/* Fromheartbeat / immersive studio v2. Scoped overrides leave the admin intact. */
body:not(.admin-body){--header:64px;--panel:#100e1ce8;--muted:#bcb5ce;--line:#d9ccff22;--grad:linear-gradient(115deg,#ad80ff,#cd9aff);--nav-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
body:not(.admin-body) .header{padding:env(safe-area-inset-top,0px) 20px 0;height:calc(var(--header) + env(safe-area-inset-top,0px));background:linear-gradient(#090713d9,transparent)}
.wordmark{font-size:19px;letter-spacing:-.7px}.brand-icon{width:27px;height:32px}
#menu-toggle{width:44px;height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:1px solid var(--line);border-radius:50%;background:#110e1d99}#menu-toggle span{height:1px;width:17px;background:#eee6ff}#menu-toggle span:last-child{width:12px;align-self:center;margin-left:5px}
.header .sound-toggle{height:44px;width:44px}.header nav{gap:7px}
.panel,.panel.lobby-panel,.panel.tall,.panel.step-story,.panel.step-checkout{left:10px;right:10px;bottom:calc(78px + env(safe-area-inset-bottom,0px));height:42dvh;max-height:calc(100dvh - 176px);border:1px solid var(--line);border-radius:22px;box-shadow:0 18px 70px #0007;backdrop-filter:blur(24px);overflow:hidden}
.panel.lobby-panel{height:auto;max-height:46dvh}.panel.step-story,.panel.step-checkout,.panel.tall{height:48dvh}
.panel-head,.panel-body,.panel-foot{padding-left:18px;padding-right:18px}.panel-head{padding-top:0;padding-bottom:9px}.panel-body{padding-top:10px;padding-bottom:12px;scrollbar-width:thin;scrollbar-color:#66517c transparent}.panel-foot{padding-top:9px;padding-bottom:12px;background:#100d1cee;border-radius:0 0 22px 22px;gap:6px}
.sheet-toggle{display:flex;width:100%;height:20px;min-height:20px;align-items:center;justify-content:center;flex-shrink:0}.sheet-toggle span{height:3px;width:32px;background:#bcb1d366;border-radius:8px}.sheet-toggle:hover span{background:#d9c2ff}
.panel h1{font:500 clamp(24px,6.5vw,30px)/1.08 var(--serif);letter-spacing:-.45px}.lobby-panel h1{font-size:clamp(32px,9vw,43px);line-height:1.02}.lobby-panel .panel-head{padding-top:0;border:0;padding-bottom:0}.lobby-panel .panel-body{flex:0 1 auto;padding-top:10px}.lobby-panel .panel-foot{border:0;padding-top:2px}.lobby-panel .lede{font-size:13px;line-height:1.6;max-width:340px;margin-bottom:8px}.lobby-panel .eyebrow{font-size:8px;letter-spacing:1.6px;gap:7px;margin-bottom:9px}.live-dot{height:6px;width:6px;border-radius:50%;background:#c9a5ff;box-shadow:0 0 12px #bba0ff}.microcopy{font-size:11px}.lobby-note{text-align:center;color:#a79eb9;font-size:9px;margin:3px 0 0}
em{background:none;color:#c3a2f2}.primary{color:#1a102a;box-shadow:none;min-height:46px;font-size:13px}.secondary{min-height:46px;font-size:12px}.foot-row{gap:8px}.foot-row .primary{flex:1.5}.foot-row .secondary{flex:1}.hint{font-size:11px;line-height:1.5;margin-top:4px}.head-row{margin-bottom:4px}.head-row .icon-btn,.head-row .icon-spacer{width:32px;height:32px}.step-count{font-size:9px;letter-spacing:.8px}.progress{margin:0 0 7px;gap:5px}.progress i{height:2px}.summary{font-size:10px;line-height:1.35;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.room-nav{position:fixed;z-index:35;bottom:var(--nav-bottom);left:50%;transform:translateX(-50%);height:56px;width:min(350px,calc(100% - 32px));display:grid;grid-template-columns:repeat(4,1fr);padding:4px;border-radius:20px;border:1px solid #d0b9ff2b;background:#141020ed;backdrop-filter:blur(24px);box-shadow:0 10px 40px #0005}.room-nav button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:0;border-radius:15px;font-size:9px;color:#afa5c3}.room-nav button>span{font:20px/24px var(--sans)}.room-nav button.active{background:#c7a4ff18;color:#e8d7ff}.room-nav button.active>span{color:#c8a1ff}.room-nav button:hover{background:#c7a4ff24}
.scene-tools{position:fixed;z-index:4;right:16px;top:calc(76px + env(safe-area-inset-top,0px));display:flex;gap:2px;border:1px solid var(--line);background:#0d0b1799;border-radius:24px;backdrop-filter:blur(10px)}.scene-tools button{min-width:38px;height:38px;font-size:10px;color:#c5bbd5}.scene-tools button:first-child,.scene-tools button:last-child{font-size:17px}.scene-tools button:hover{color:#fff}.stage{touch-action:none}.stage-hint{font-size:9px;bottom:8px;padding:5px 10px;background:#0e0b1699;border-color:#c8a1ff22}.stage-hint b{font-weight:500}.shade{background:linear-gradient(180deg,#08061099,transparent 18%,transparent 70%,#08061088)}
.opts.grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.opt{min-height:44px;border-radius:11px;padding:8px;gap:5px;background:#21182d70}.opt-ic{width:23px;height:23px;font-size:14px;border:0;background:transparent}.opt-label{font-size:11px}.opt small{font-size:9px;line-height:1.35}.tick{width:13px;height:13px}.tick .ic{width:12px;height:12px}.opt.on{border-color:#c6a2ff;background:#a875ff22;box-shadow:0 0 0 1px #c6a2ff22 inset}.opts.grid .tick{display:none}.step-mood .opt small{display:none}.step-mood .opt-ic{font-size:0;width:10px;height:10px;border-radius:50%;background:var(--c);box-shadow:0 0 12px color-mix(in srgb,var(--c),transparent 65%)}.tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:5px;margin-bottom:10px;padding-bottom:4px;scrollbar-width:none}.tabs .tab{white-space:nowrap;min-height:36px;padding:7px 10px;flex-shrink:0;font-size:10px}.tabs .tab>span{display:none}.pick-info{padding:8px 10px;margin:8px 0 0;border:0;background:#b797df0b}.pick-info strong{font-size:11px}.pick-info p{font-size:10px;margin:2px 0 0}.opt-group{margin:0 0 10px}.opt-group legend{font-size:11px;margin-bottom:6px}.advanced-options{border-top:1px solid var(--line);padding-top:8px}.advanced-options summary{font-size:11px;cursor:pointer;padding:8px 0}.advanced-options summary span{color:var(--muted);font-size:9px;margin-left:8px}.advanced-options[open] summary{margin-bottom:10px}.field{margin-bottom:10px}.field>span{font-size:12px}.field input,.field textarea{font-size:16px;padding:10px 12px;border-radius:11px}.field textarea{min-height:90px}.chips{gap:5px}.chips .opt{min-height:36px;padding:6px 9px}.chips .opt-ic{display:none}.form-note{font-size:10px}.product-card{border:1px solid var(--line);border-radius:15px;overflow:hidden}.product-opt{border:0;border-radius:0;padding:13px;width:100%;gap:6px}.product-opt .price{font-size:24px;margin:0}.product-opt .opt-label{font-size:16px}.product-opt .tag{font-size:9px}.product-opt .points{font-size:10px}.product-details{padding:0 13px 10px}.product-details summary{font-size:10px;color:var(--muted);padding:7px 0;cursor:pointer}.product-details ul{font-size:11px;color:var(--muted);padding-left:15px}.products{gap:9px}.track{padding:6px 8px;min-height:56px;border-radius:12px;gap:10px}.track-meta strong{font-size:12px}.track-meta small{font-size:10px}.track-art{position:relative;flex-shrink:0;width:42px;height:42px}.track-art img{width:100%;height:100%;object-fit:cover;border-radius:8px}.track-art .play{position:absolute;inset:0;width:auto;height:auto;background:#0003;border-radius:8px;border:0}.track-art .play .ic{width:14px;height:14px}.mini-wave{height:20px}.tracks{gap:5px}
.audio-dock{top:auto;left:12px;right:12px;bottom:calc(79px + env(safe-area-inset-bottom,0px));border-radius:17px;padding:7px;gap:7px;background:#161021f5}.audio-open .panel{bottom:calc(169px + env(safe-area-inset-bottom,0px));height:34dvh}.audio-open .panel.lobby-panel{height:auto;max-height:38dvh}.audio-open .panel.step-story,.audio-open .panel.step-checkout,.audio-open .panel.tall{height:40dvh}.dock-cover{width:54px;background-size:cover;background-position:center;border-radius:10px}.dock-cover i{display:none}.audio-dock strong{font-size:11px}.audio-dock small{font-size:9px}.dock-top{gap:3px}.dock-controls{gap:0}#player-prev,#player-next{width:30px;height:40px}#player-close{width:30px;height:40px}.dock-progress{gap:5px}.dock-progress span{font-size:9px;min-width:24px}
.sheet-collapsed .panel{height:68px!important;max-height:68px}.sheet-collapsed .panel-body,.sheet-collapsed .panel-foot,.sheet-collapsed .hint,.sheet-collapsed .head-row,.sheet-collapsed .progress,.sheet-collapsed .eyebrow{display:none}.sheet-collapsed .panel-head{border:0}.sheet-collapsed .panel h1{font:500 18px var(--serif);text-align:center}.sheet-collapsed .panel h1 br{display:none}.sheet-collapsed .panel h1 em{margin-left:4px}.sheet-collapsed .sheet-toggle{height:24px;min-height:24px}.editing .panel.step-story,.editing .panel.step-checkout{height:68dvh}
#studio-menu{color:var(--ink);padding:22px;border:1px solid #d5beff33;border-radius:24px;background:#151020;width:min(390px,calc(100% - 28px));box-shadow:0 30px 100px #0009}#studio-menu::backdrop{background:#06030ab3;backdrop-filter:blur(8px)}.menu-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;font:26px var(--serif)}#menu-close{font:26px var(--sans);width:44px;height:44px;border:1px solid var(--line);border-radius:50%}#studio-menu>button{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:54px;text-align:left;border-top:1px solid var(--line);font-size:13px}#studio-menu>button span{color:#c5a3ff}.menu-legal{display:flex;gap:20px;margin-top:20px}.menu-legal button{min-height:44px;font-size:11px;color:var(--muted)}.light-mode .scene-tools{display:none}.light-mode .studio-photo:after{top:28%}
@media(min-width:760px){body:not(.admin-body){--header:86px}.header .wordmark{font-size:23px}.header .brand-icon{height:38px;width:34px}body:not(.admin-body) .header{padding:0 38px}.panel,.panel.lobby-panel,.panel.tall,.panel.step-story,.panel.step-checkout{left:38px;right:auto;top:50%;bottom:auto;transform:translateY(-50%);width:min(365px,33vw);height:auto;max-height:calc(100dvh - 215px);border-radius:24px}.panel.lobby-panel{background:linear-gradient(120deg,#120d1cc9,#120d1c88);width:min(405px,35vw);max-height:calc(100dvh - 190px)}.panel.enter{animation:reveal-panel .5s ease both}@keyframes reveal-panel{from{opacity:0;translate:-12px 0}to{opacity:1;translate:0 0}}.panel-head,.panel-body,.panel-foot{padding-left:23px;padding-right:23px}.panel h1{font-size:31px}.panel.lobby-panel h1{font-size:clamp(39px,3.8vw,55px)}.panel.lobby-panel .lede{font-size:14px;line-height:1.7;margin-bottom:15px}.lobby-panel .eyebrow{font-size:8px;letter-spacing:1.8px}.lobby-panel .panel-body{padding-bottom:20px}.lobby-panel .panel-foot{padding-bottom:20px}.lobby-note{font-size:10px}.sheet-toggle{height:25px;min-height:25px}.panel-head{padding-bottom:12px}.panel-body{padding-top:14px;padding-bottom:16px}.hint{font-size:12px}.opt-label{font-size:12px}.room-nav{bottom:24px;width:365px;height:61px}.scene-tools{right:38px;top:106px}.stage-hint{bottom:20px;font-size:10px}.audio-dock{right:28px;left:auto;bottom:24px;width:min(330px,29vw)}.audio-open .panel,.audio-open .panel.lobby-panel,.audio-open .panel.step-story,.audio-open .panel.step-checkout,.audio-open .panel.tall{bottom:auto;height:auto;max-height:calc(100dvh - 215px)}.audio-dock .dock-cover{width:42px}.audio-dock .dock-meta{flex:1}.audio-dock .dock-progress{gap:4px}.audio-dock .dock-controls #player-prev,.audio-dock .dock-controls #player-next{width:26px}.audio-dock #player-close{width:24px}.editing .panel.step-story,.editing .panel.step-checkout{height:auto}.sheet-collapsed .panel{top:auto;bottom:104px;transform:none}.light-mode .studio-photo:after{left:68%;top:45%}}
@media(max-width:359px){.header .wordmark{font-size:16px}.brand-icon{width:22px;margin-right:4px}body:not(.admin-body) .header{padding-left:13px;padding-right:13px}.panel-head,.panel-body,.panel-foot{padding-left:13px;padding-right:13px}.opts.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lobby-panel h1{font-size:31px}.lobby-panel .lede{font-size:12px}.lobby-note{display:none}}
@media(max-height:600px) and (max-width:759px){.panel,.panel.lobby-panel,.panel.tall{height:44dvh;max-height:44dvh}.panel h1{font-size:23px}.panel.lobby-panel .lede{display:none}.panel.lobby-panel .panel-body{padding:6px 18px}.lobby-note,.hint{display:none}.panel-head{padding-bottom:5px}.panel-foot{padding-top:6px;padding-bottom:7px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.product-opt{flex-direction:column;align-items:stretch}.product-opt .points{display:flex;flex-wrap:wrap}.room-nav button{font-size:10px}.opts .opt-label{font-size:12px}.tabs .tab{font-size:11px}.opt:not(.product-opt){justify-content:flex-start}.step-genre .opts.grid .opt-ic{display:none}.step-genre .opts.grid .opt{justify-content:center;text-align:center}.step-mood .opt.on .opt-ic{background:var(--c)}
@media(max-width:359px){.opts.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
