
/* Scene 51. One mobile sheet geometry and one reversible navigation return. */
:root{--sheet-side51:max(8px,env(safe-area-inset-right),env(safe-area-inset-left));--sheet-top51:max(16px,env(safe-area-inset-top),env(safe-area-inset-right),env(safe-area-inset-bottom),env(safe-area-inset-left));--sheet-bottom51:var(--sheet-top51);--sheet-room51:calc(var(--visual-h,100dvh) - var(--sheet-top51) - var(--sheet-bottom51))}
#popup[data-panel-motion51][open],#consultant-panel23[open],#device-showcase .scene-sheet41[open]{animation:none!important}
#chat.chat22{will-change:auto!important}
html.evolution #chat-shade{opacity:1;}
html.evolution #device-showcase .ds-surface{touch-action:pan-y;overscroll-behavior-x:none}
#device-showcase .scene-sheet41[data-drawer51][open]{position:fixed;inset:24px auto 36px 24px;margin:0;width:min(370px,calc(100vw - 48px));max-width:none;height:calc(100dvh - 60px);max-height:none;display:grid;grid-template-rows:auto minmax(0,1fr);padding:0;overflow:hidden;border:1px solid #fff;border-radius:26px;color:#183b5e;background:linear-gradient(145deg,rgba(250,253,255,.98),rgba(224,240,253,.96));box-shadow:inset 0 1px 0 #fff,0 24px 75px #163c5b38;}
#device-showcase .scene-sheet41[data-drawer51] .ds-navigation-panel15{display:block!important;position:static!important;inset:auto!important;width:100%!important;min-width:0!important;max-width:none!important;max-height:none!important;overflow:auto!important;overscroll-behavior:contain;padding:12px 16px 24px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;animation:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;}
#device-showcase .scene-sheet41[data-drawer51] .ds-navigation-panel15>header{display:none}
#device-showcase .scene-sheet41[data-drawer51]>header{display:flex;align-items:center;justify-content:space-between;min-height:64px;padding:12px 16px 12px 22px;border-bottom:1px solid #b7d2e761;background:#f4faff}
#device-showcase .scene-sheet41[data-drawer51]>header button{display:grid;place-items:center;width:40px;height:40px;border-radius:14px;border:1px solid #c6ddec;background:#fff;color:#214866}
#device-showcase .scene-sheet41[data-drawer51]>header svg{width:19px;height:19px}
#device-showcase .scene-sheet41[data-drawer51] section{margin:14px 0}
#device-showcase .scene-sheet41[data-drawer51] section h3{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#5b7893;margin:0 10px 7px}
#device-showcase .scene-sheet41[data-drawer51] section button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;border:1px solid transparent;border-radius:12px;padding:10px 12px;font-size:13px;color:inherit;text-align:left}
#device-showcase .scene-sheet41[data-drawer51] section button[aria-pressed=true]{background:#fff;border-color:#d0e4f3;color:#075dce;box-shadow:0 2px 7px #2450800b}
#device-showcase .scene-sheet41[data-drawer51] section button:hover{background:#ffffffa6}
.ds-chapter-guide50{margin:0 0 18px;padding:15px;border-radius:17px;background:linear-gradient(135deg,#eef8ff,#ddecfb);border-color:#c8e0f1}
.ds-chapter-guide50 p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.55;margin:7px 0 12px}
.ds-chapter-guide50 button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:42px;background:#0867dc;color:white;border-radius:12px;padding:8px 12px;font-size:12px;font-weight:650}
.ds-chapter-guide50 button svg{width:16px;height:16px}
html[data-theme=dark] #device-showcase .scene-sheet41[data-drawer51][open]{color:#eaf5ff;border-color:#46647e;background:linear-gradient(145deg,#203951fa,#13283bf7)}
html[data-theme=dark] #device-showcase .scene-sheet41[data-drawer51]>header{background:#1c334a}
html[data-theme=dark] #device-showcase .scene-sheet41[data-drawer51] section button[aria-pressed=true]{background:#294863;color:#d0e8ff;border-color:#4f7596}
@media(max-width:760px){
 html.evolution body .navigation-cluster{visibility:visible!important;opacity:1!important;transform:none!important;translate:0 0;transition:translate 680ms cubic-bezier(.25,.65,.3,1)!important;will-change:auto;}
 html.evolution body .navigation-cluster :is(#dock,#chat-launcher,#consultant-launcher23){visibility:visible!important;}
 html.evolution[data-navigation-occluded51] body .navigation-cluster{translate:0 calc(100% + 24px + env(safe-area-inset-bottom));pointer-events:none!important;}
 html.evolution[data-navigation-occluded51] body .navigation-cluster *{pointer-events:none!important;}
 html.evolution body.keyboard-open .navigation-cluster{display:flex!important;}
 #chat.chat22,#chat.chat22[data-view22=focus]{left:var(--sheet-side51)!important;right:auto!important;top:calc(var(--chat-top,0px) + var(--sheet-top51))!important;bottom:auto!important;width:calc(var(--visual-w,100vw) - 2 * var(--sheet-side51))!important;height:var(--sheet-room51)!important;max-height:var(--sheet-room51)!important;border-radius:26px!important;}
 html.evolution #popup[open],#consultant-panel23[open]{position:fixed;inset:auto var(--sheet-side51) var(--sheet-bottom51)!important;width:calc(100vw - 2 * var(--sheet-side51))!important;max-width:none!important;max-height:var(--sheet-room51)!important;margin:0 auto!important;border-radius:26px!important;overflow:hidden;}
 #consultant-panel23[open]{overflow:auto;}
 html.evolution #popup.e-search[open]{height:var(--sheet-room51)!important;}
 #popup:has(.workspace-preview48)[open]{height:var(--sheet-room51)!important;}
 html.evolution #popup:has(.workspace-preview48) .pop-header{padding:13px 16px;}
 html.evolution #popup .pop-header{padding:16px 18px;min-height:64px;}
 html.evolution #popup .pop-header h2{font-size:19px;}
 html.evolution #popup .pop-body{padding:16px 18px 24px;overflow:auto;min-height:0;}
 html.evolution #popup:has(.workspace-preview48) .pop-body{padding:0;overflow:hidden;}
 #device-showcase .scene-sheet41[data-drawer51][open]{inset:var(--sheet-top51) auto var(--sheet-bottom51) var(--sheet-side51)!important;width:calc(100vw - 2 * var(--sheet-side51))!important;height:var(--sheet-room51)!important;max-height:none!important;}
}
@media(prefers-reduced-motion:reduce){html.evolution body .navigation-cluster{transition:none!important}}
html[data-motion=off].evolution body .navigation-cluster{transition:none!important}

#device-showcase .ds-chapter-guide50 [data-section-listen50] span{color:#fff!important;opacity:1!important;font-size:12px!important}

html.evolution #mobile-nav[open]>nav{animation:none!important}

/* The actual platform is the sole edge-to-edge workspace. Other sheets keep their gap. */
html.evolution #popup:has(.workspace-preview48)[open]{inset:0!important;margin:0!important;width:100vw!important;max-width:none!important;height:var(--visual-h,100dvh)!important;max-height:var(--visual-h,100dvh)!important;border:0!important;border-radius:0!important;}
html.evolution #popup:has(.workspace-preview48) .pop-header{padding: max(12px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left));}

#popup:has(.workspace-preview48) .pop-body{position:relative;}
.workspace-loading51{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:28px;background:#f5f9ff;color:#153552;text-align:center;}
.workspace-loading51 .orb-mark{width:46px;height:46px;flex:none;}
.workspace-loading51 strong{font-size:19px;letter-spacing:-.025em;}
.workspace-loading51 p{margin:0;color:#607c97;font-size:13px;}
.workspace-loading51 i{position:relative;display:block;width:120px;height:3px;overflow:hidden;border-radius:9px;background:#dce9f6;margin-top:8px;}
.workspace-loading51 i:after{content:'';position:absolute;inset:0 auto 0 0;width:40%;border-radius:inherit;background:#0868ed;animation:workspace-loading51 1.3s ease-in-out infinite;}
@keyframes workspace-loading51{from{transform:translateX(-100%)}to{transform:translateX(350%)}}
@media(prefers-reduced-motion:reduce){.workspace-loading51 i:after{animation:none;width:100%;opacity:.5;}}

/* Scene 52: visible rim depth and restrained optical colour, with readable content. */
html.evolution #device-showcase :is(.ds-devices15,.ds-composer15,.ds-navigation15>summary),html.evolution .navigation-cluster :is(#dock,#chat-launcher,#consultant-launcher23){background:linear-gradient(145deg,#ffffffd9 0%,#e5f5ffbc 48%,#bcdff36e 100%)!important;border:1px solid #ffffffed!important;box-shadow:inset 0 1.5px 1px #fff,inset 1px 0 2px #ffffffd9,inset 0 -2px 5px #619ac826,0 7px 23px #1b54851c,0 1px 2px #2c638621!important;}
html.evolution :is(#popup[open],#consultant-panel23[open],#chat.chat22,.scene-sheet41[open]){border-color:#ffffffed!important;box-shadow:inset 0 1.5px 1px #fff,inset 1px 0 2px #ffffffc9,inset 0 -1px 2px #9fcef780,0 26px 70px #15395730!important;}
html.evolution :is(#popup .pop-header,#chat .chat-head,.consultant-head23,.scene-sheet41>header){background:linear-gradient(115deg,#ffffffee,#e8f6ffb8 65%,#def9f4ac)!important;border-bottom:1px solid #c5ddeb85;}
html.evolution #popup:has(.workspace-preview48)[open]{box-shadow:none!important;}
@media(max-width:760px){
 html.evolution body #chat.chat22 .chat-head button[data-chat22=expand]{display:none!important;}
 html.evolution[data-navigation-occluded51] body .navigation-cluster{transition-duration:300ms!important;transition-timing-function:cubic-bezier(.45,0,.55,1)!important;}
 html.evolution #consultant-panel23[open]{height:var(--sheet-room51)!important;}
 html.evolution #popup[open]:not(:has(.workspace-preview48)){height:var(--sheet-room51)!important;}
}
@media(prefers-reduced-motion:reduce){html.evolution body .navigation-cluster{transition:none!important;}}
html[data-motion=off].evolution body .navigation-cluster{transition:none!important;}
html[data-theme=dark].evolution #device-showcase :is(.ds-devices15,.ds-composer15,.ds-navigation15>summary),html[data-theme=dark].evolution .navigation-cluster :is(#dock,#chat-launcher,#consultant-launcher23){background:linear-gradient(145deg,#214764ed,#14334ae0)!important;border-color:#8cc7ef66!important;}
html[data-theme=dark].evolution :is(#popup .pop-header,#chat .chat-head,.consultant-head23,.scene-sheet41>header){background:linear-gradient(115deg,#173951,#1c4057)!important;}
#lumen-host[popover]{color:inherit;}#lumen-host[popover]:not(:popover-open){display:block!important;}#lumen-host::backdrop{display:none;background:none;}

/* The physical camera island now belongs to the GLB screen plane in both render paths. */
#device-showcase .ds-island{display:none!important;}

/* The visual viewport moves these surfaces only after the composer receives focus. */
@media(max-width:760px){
 html.evolution #chat.chat22[data-composer-motion56]{
  max-height:none!important;
  transition:height 320ms cubic-bezier(.32,.22,.28,1),top 320ms cubic-bezier(.32,.22,.28,1)!important;
 }
 html.evolution #popup[data-preview-composer-motion56][open]:has(.workspace-preview48){
  /* Hold the iframe layout steady. The assistant inside it follows the keyboard. */
  height:var(--preview-layout-height56,100dvh)!important;
  max-height:none!important;
  top:var(--chat-top,0px)!important;
  bottom:auto!important;
 }
}
@media(prefers-reduced-motion:reduce){
 html.evolution #chat.chat22[data-composer-motion56],
 html.evolution #popup[data-preview-composer-motion56][open]:has(.workspace-preview48){transition:none!important;}
}
html.evolution[data-motion=off] #chat.chat22[data-composer-motion56],
html.evolution[data-motion=off] #popup[data-preview-composer-motion56][open]:has(.workspace-preview48){transition:none!important;}

@media(max-width:760px){.workspace-loading51{padding-bottom:calc(28px + 18dvh)}}

/* Keep the covered website in its last painted state while the live demo is open. */
html[data-demo-covered57] #site,html[data-demo-covered57] #site *{
 animation-play-state:paused!important;
}
