/* Clean preview: use the full height and hide the temporary landscape controls. */
body[data-home-demo=true] #appShell{height:var(--app-vh,100dvh)!important}
#studio-toggle,#studio-menu,#studio-menu[open]{display:none!important}
#studio-menu:not([open]){display:none!important}

#studio-media-settings{display:none!important}
#studio-menu .color-swatches{grid-template-columns:repeat(4,minmax(0,1fr))}
#studio-menu .color-swatches button{padding:7px 3px!important;font-size:13px!important}
#studio-menu #studio-save-page{border:2px solid #b8fff0!important;font-weight:700}
#studio-scope-note{padding:8px;border:1px solid #b2ede35c;border-radius:10px}
#demo-design-nav{display:none!important}
#demo-scene-label{min-width:80px;text-align:center;font-size:15px}
body[data-menu-side] #appShell .header-tools{margin-right:0}
body[data-menu-side] #appShell .app-header{padding-left:max(var(--pad),env(safe-area-inset-left))}
body[data-menu-side=left] #appShell .header-tools{margin-right:0}
/* One surface treatment for cards, buttons and navigation, scoped by scene and route. */
body[data-scene-style-custom=true] #appShell :is(.glass,.connect-card,.support-card,.home-secondary,.question-stem,.test-card,.community-cta,.book-recommendation,.prayer-heading,.prayer-reading,.prayer-book-card,.prayer-link-field,.prayer-category,.prayer-breadcrumbs a,.prayer-symbol,.reading-card,.list-card,.result-card,.domain-option,.answer,button:not(.identity),.button,.social-button,.bottom-nav){
 background:linear-gradient(100deg,rgb(var(--scene-glass)/calc(var(--scene-alpha)*.12)) 5%,rgb(var(--scene-glass)/var(--scene-alpha)) 42%,rgb(var(--scene-glass)/calc(var(--scene-alpha)*.87)) 80%,rgb(var(--scene-glass)/calc(var(--scene-alpha)*.15)))!important;
 border:1px solid rgb(225 245 255/var(--scene-border))!important;border-radius:var(--scene-radius)!important;backdrop-filter:blur(var(--scene-blur))!important;-webkit-backdrop-filter:blur(var(--scene-blur))!important;color:var(--scene-text)!important;
}
body[data-scene-style-custom=true] #appShell :is(h1,h2,h3,.connect-card h2,.support-card strong,.home-secondary strong,.prayer-category strong,.list-card strong,.test-card strong,[data-header-name]){color:var(--scene-title)!important;-webkit-text-fill-color:var(--scene-title)!important}
body[data-scene-style-custom=true] #appShell :is(.link-description,.support-card small,.home-secondary small,.profile-description,.prayer-heading p,.prayer-reading p,.prayer-book-card p,.prayer-category,.prayer-breadcrumbs,.reading-card,.answer,.domain-option,.list-card small,.subtitle,.bottom-nav a){color:var(--scene-text)!important;-webkit-text-fill-color:var(--scene-text)!important}
body[data-scene-style-custom=true] #appShell :is(.connect-symbol,.section-label,.design-subtitle,.eyebrow,.prayer-symbol,.tile-icon,svg.icon,.bottom-nav svg){color:var(--scene-accent)!important;-webkit-text-fill-color:var(--scene-accent)!important}
@media(max-width:380px){#appShell .identity strong{font-size:12px}#appShell .identity{gap:5px}#appShell .header-tools{gap:3px}#studio-toggle{width:44px;height:44px}}

#studio-export-panel[hidden]{display:none!important}
#studio-export-panel{scroll-margin:16px;padding-top:16px}
#studio-export-text{box-sizing:border-box;width:100%;max-width:100%;min-height:170px;padding:12px;border:1px solid #a8fff0;border-radius:12px;background:#082634e8;color:#fffdf4;font:14px/1.5 monospace;resize:vertical;user-select:text;-webkit-user-select:text}
#studio-export-panel .studio-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px}
#studio-export-panel button{font-size:15px!important;min-height:44px;padding:10px!important}
#studio-export-status{font-size:16px;line-height:1.5;color:#fffdf4}
/* The export itself needs a readable surface; the appearance editor stays transparent. */
#studio-export-panel{box-sizing:border-box;padding:14px;border:1px solid #a8fff070;border-radius:16px;background:#082634ed!important;color:#fffdf4!important}
#studio-export-panel button{background:#164956!important;color:#fffdf4!important}

#media-loading-note{position:fixed;z-index:520;left:50%;bottom:calc(146px + env(safe-area-inset-bottom));transform:translateX(-50%);box-sizing:border-box;max-width:90vw;width:max-content;padding:9px 14px;border:1px solid #a8fff080;border-radius:14px;background:#082634ec;color:#fffdf4;font:14px/1.4 system-ui;pointer-events:none;text-align:center}
#media-loading-note[hidden],#media-loading-note button[hidden]{display:none!important}
#media-loading-note button{pointer-events:auto;display:block;margin:8px auto 0;padding:10px;border:1px solid #a8fff0;border-radius:10px;background:#164956;color:white}
