/* Edge-to-edge backgrounds; content remains inside iPhone safe areas. */
html[data-edge="home"]{background:#f7f8fa}html[data-edge="flow"]{background:#f3f6f9}html[data-edge="practice"]{background:#fbfcfa}html[data-edge="nemo"]{background:#082229}
html[data-edge] body{padding-top:env(safe-area-inset-top,0px);padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px);min-height:100dvh;box-sizing:border-box}
.nemo-header{background:transparent!important;color:#dcefeb;border-color:#ffffff24!important}.nemo-header .nemo-language{display:inline-flex;align-items:center;gap:6px}.nemo-header .language-button{display:inline-flex!important;align-items:center;min-width:0!important;width:auto!important;height:34px;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;color:inherit!important}.nemo-header .language-button:before,.nemo-header .language-button:after{display:none!important}.nemo-header .language-code{background:none!important;padding:0!important}.nemo-header .c9-software-panel{color:#19313e}.nemo-header .home-link{color:#83e7ca!important}

/* NEMO: one language control, account at the right edge. */
.nemo-header .nemo-language>svg{display:none!important}
body>header.nemo-header nav{flex:1;justify-content:flex-end}
body>header.nemo-header nav .account-icon{margin-left:auto!important;flex:none}
@media(max-width:660px){body>header.nemo-header nav{justify-content:flex-start;column-gap:24px;flex:none;width:100%}}

/* Let the page canvas and ocean animation extend through the safe area. */
html[data-edge="nemo"]{background:transparent!important;min-height:100%}
html[data-edge="nemo"] body{isolation:isolate;min-height:100dvh}
html[data-edge="nemo"] .ocean-background{position:fixed!important;inset:0!important;width:100%!important;height:100dvh!important;margin:0!important;z-index:-1!important;pointer-events:none}

/* Keep the complete NEMO desktop navigation together on the right. */
@media(min-width:661px){body>header.nemo-header nav{justify-content:flex-end;margin-left:auto}body>header.nemo-header nav .account-icon{margin-left:0!important}}
