/* One mobile viewport and one in-flow composer. Desktop receives none of these rules. */
html[data-nova-mobile-viewport]{height:100%!important;min-height:0!important;overflow:hidden!important;--nova-mobile-dock:calc(64px + env(safe-area-inset-bottom,0px))}
html[data-nova-mobile-viewport] body.nova-mobile-native-active{height:100%!important;min-height:0!important;max-height:none!important;margin:0!important;padding:0!important;overflow:hidden!important}
html[data-nova-mobile-viewport] body.nova-mobile-native-active .app-shell{position:fixed!important;top:var(--nova-mobile-visible-top,0px)!important;left:0!important;right:0!important;bottom:auto!important;width:100%!important;height:calc(var(--nova-mobile-visible-height,100dvh) - var(--nova-mobile-dock))!important;min-height:0!important;max-height:none!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;overflow:hidden!important}
html[data-nova-mobile-viewport] body.nova-mobile-native-active .chat-main{height:100%!important;min-height:0!important;max-height:100%!important;display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;overflow:hidden!important}
html[data-nova-mobile-viewport] body.nova-mobile-native-active .chat-scroll{min-height:0!important;height:auto!important;max-height:none!important;overflow:auto!important;padding-bottom:16px!important;scroll-padding-bottom:16px!important;-webkit-overflow-scrolling:touch}
html[data-nova-mobile-viewport] body.nova-mobile-native-active #messages{padding-bottom:12px!important}
html[data-nova-mobile-viewport] body.nova-mobile-native-active #v57ComposerWrap{position:relative!important;inset:auto!important;min-height:0!important;width:100%!important;box-sizing:border-box!important;padding:8px max(10px,env(safe-area-inset-right)) 10px max(10px,env(safe-area-inset-left))!important;z-index:20!important}
html[data-nova-mobile-viewport] body.nova-mobile-native-active #composer.composer{position:relative!important;inset:auto!important;bottom:auto!important;width:100%!important;max-width:100%!important;margin:0!important;box-sizing:border-box!important;max-height:40dvh!important}
html[data-nova-mobile-viewport] body.nova-mobile-native-active #promptInput{font-size:16px!important;max-height:min(120px,24dvh)!important}
html[data-nova-mobile-viewport] body.nova-mobile-native-active #novaMobileNativeShell{position:fixed!important;left:0!important;right:0!important;top:calc(var(--nova-mobile-visible-top,0px) + var(--nova-mobile-visible-height,100dvh) - var(--nova-mobile-dock))!important;bottom:auto!important;height:var(--nova-mobile-dock)!important;min-height:0!important;box-sizing:border-box!important;display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;padding:6px 8px env(safe-area-inset-bottom,0px)!important;gap:4px;z-index:2200}
html[data-nova-mobile-viewport] body.nova-mobile-keyboard-open{--nova-mobile-dock:0px}
html[data-nova-mobile-viewport] body.nova-mobile-keyboard-open #novaMobileNativeShell{display:none!important;pointer-events:none!important}
html[data-nova-mobile-viewport] body.nova-mobile-native-active #novaSocialLayer{top:var(--nova-mobile-visible-top,0px)!important;bottom:auto!important;height:calc(var(--nova-mobile-visible-height,100dvh) - var(--nova-mobile-dock))!important;min-height:0!important;max-height:none!important}
html[data-nova-mobile-viewport] body.nova-mobile-native-active .nova-mobile-sheet{bottom:calc(100dvh - var(--nova-mobile-visible-top,0px) - var(--nova-mobile-visible-height,100dvh))!important;max-height:calc(var(--nova-mobile-visible-height,100dvh) - 24px)!important;box-sizing:border-box!important}
@media(max-width:1366px) and (pointer:coarse){html[data-nova-mobile-viewport] .nova-mobile-native-shell button{min-width:0;min-height:50px;border:0;background:transparent;color:var(--nova-optical-text,#dbeeff);border-radius:14px;display:grid;place-items:center;gap:1px;font:inherit}html[data-nova-mobile-viewport] .nova-mobile-native-shell button span{font-size:19px;line-height:1}html[data-nova-mobile-viewport] .nova-mobile-native-shell button small{font-size:10px}}
html[data-nova-mobile-viewport] body.nova-mobile-native-active #sendBtn.send-btn{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;max-width:44px!important;max-height:44px!important}
html[data-nova-mobile-viewport] body.nova-mobile-native-active .chat-header{height:auto!important;min-height:calc(56px + env(safe-area-inset-top,0px))!important;box-sizing:border-box!important;padding-top:max(6px,env(safe-area-inset-top,0px))!important;padding-bottom:6px!important;padding-left:max(10px,env(safe-area-inset-left,0px))!important;padding-right:max(10px,env(safe-area-inset-right,0px))!important}
html[data-nova-mobile-viewport] body.nova-mobile-native-active .chat-scroll{padding-left:max(10px,env(safe-area-inset-left,0px))!important;padding-right:max(10px,env(safe-area-inset-right,0px))!important}
html[data-nova-mobile-viewport] body.nova-mobile-native-active #novaMobileNativeShell{padding-left:max(8px,env(safe-area-inset-left,0px))!important;padding-right:max(8px,env(safe-area-inset-right,0px))!important}
/* Keep sheets above the main application's legacy stacking contexts. */
html[data-nova-mobile-viewport] body.nova-mobile-native-active .app-shell{z-index:0!important}
html[data-nova-mobile-viewport] body.nova-mobile-native-active .nova-mobile-sheet{z-index:2350!important}
