html,body{margin:0;width:100%;height:100%;height:100dvh;overflow:hidden;background:#001024}iframe{display:block;width:100%;height:100%;height:100dvh;border:0;background:#001024}iframe[hidden]{display:none!important}
#shell-dialog{font:16px Tahoma,sans-serif;line-height:1.9;max-width:400px;width:calc(100% - 60px);border:1px solid #4c82e5;border-radius:22px;background:linear-gradient(130deg,#03213e,#150e35);color:#dce9ff;box-shadow:0 0 20px #6738ff66}#shell-dialog::backdrop{background:#000b}#shell-dialog button{width:100%;padding:12px;border:1px solid #76dfff;border-radius:14px;background:linear-gradient(100deg,#008dff,#5a00e3,#bd18e1);color:white;font:inherit}

iframe{position:absolute;inset:0}


/* Shell viewport: the frame fills its parent, not an independent viewport. */
html,body{height:100%;max-height:100%;overflow:hidden}
body{position:relative;height:100dvh;max-height:100dvh}
body>iframe{height:100%;max-height:100%;width:100%;inset:0;box-sizing:border-box}
#morabi-startup{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:16px;color:#dce9ff;background:#001024;z-index:1001;font:15px system-ui;text-align:center}
#morabi-startup img{width:96px;height:96px;object-fit:contain;border-radius:24px}
#morabi-shell-loading img{width:32px;height:32px;object-fit:contain;vertical-align:middle;margin-inline-end:8px;border-radius:8px}



#morabi-startup{background:radial-gradient(ellipse at 50% 45%,#11264c 0,#001024 55%,#010917 100%)}
.morabi-load-orb{width:104px;height:104px;display:grid;place-items:center;position:relative;border-radius:50%;border:1px solid #6de4ff;box-shadow:0 0 18px #008bff80,0 0 30px #aa38ff40,inset 0 0 18px #1288fe55;background:radial-gradient(circle,#122d56,#071327 70%)}
#morabi-startup .morabi-load-orb img{width:76px;height:60px;object-fit:contain;border-radius:0}
.morabi-load-orb::before{content:"";position:absolute;inset:-7px;border-radius:50%;border:2px solid transparent;border-top-color:#46dbff;border-right-color:#c35aff;animation:morabi-spin 1.4s linear infinite}
@keyframes morabi-spin{to{transform:rotate(360deg)}}
#morabi-shell-loading{animation:morabi-loading-reveal .15s .25s both}
@keyframes morabi-loading-reveal{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.morabi-load-orb::before,#morabi-shell-loading{animation:none}}

/* The outer PWA owns the physical safe area; nested screens receive the usable viewport. */
body>iframe{top:env(safe-area-inset-top,0px);bottom:env(safe-area-inset-bottom,0px);left:env(safe-area-inset-left,0px);right:env(safe-area-inset-right,0px);height:calc(100% - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));width:calc(100% - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px))}

