/* /ept-web-frame-v211.css?v=38 */
/* One visual viewport, scoped to EPT's known mobile application shells. */
html.ept-frame211,html.ept-frame211 body{overflow:hidden!important;overscroll-behavior:none!important;height:100%!important;min-height:0!important}
html.ept-frame211 body{position:fixed!important;inset:0!important;width:100%!important;margin:0!important}
html.ept-frame211 body #settingsPage#settingsPage,html.ept-frame211 body #aiRegistrationPage#aiRegistrationPage,html.ept-frame211 body #storyViewer#storyViewer,html.ept-frame211 body #storyEditor#storyEditor,html.ept-frame211 body #ept-card-sheet-v16#ept-card-sheet-v16{position:fixed!important;top:var(--ept-frame-top,0px)!important;bottom:auto!important;left:0!important;right:0!important;width:100%!important;height:var(--ept-frame-height,100dvh)!important;max-height:var(--ept-frame-height,100dvh)!important;min-height:0!important;max-width:none!important;margin:0!important;overflow:hidden!important;box-sizing:border-box!important;transform:none!important}
html.ept-frame211 body #settingsPage#settingsPage:not(.hidden){display:flex!important;flex-direction:column!important;padding:var(--ept-frame-safe-top,0px) 0 var(--ept-frame-safe-bottom,0px)!important}
html.ept-frame211 body #settingsPage#settingsPage>header{flex:0 0 auto!important;position:relative!important;inset:auto!important;margin:0!important}
html.ept-frame211 body #settingsPage#settingsPage>.settings-content{flex:1 1 0!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch}
html.ept-frame211 body #ept-card-sheet-v16#ept-card-sheet-v16{padding:var(--ept-frame-safe-top,0px) 0 var(--ept-frame-safe-bottom,0px)!important}
html.ept-frame211 body #ept-card-sheet-v16#ept-card-sheet-v16>iframe{min-height:0!important;width:100%!important;flex:1 1 0!important}


/* V36: keep Android story controls away from side cut-outs in landscape. */
html.ept-story-ref18 body #storyViewer.ept-android-story36 #storyViewerHeader{left:calc(12px + max(env(safe-area-inset-left,0px),var(--ept-story-side36,0px)))!important;right:calc(12px + max(env(safe-area-inset-right,0px),var(--ept-story-side36,0px)))!important}
html.ept-story-ref18 body #storyViewer.ept-android-story36 .ept18-footer{left:calc(14px + max(env(safe-area-inset-left,0px),var(--ept-story-side36,0px)))!important;right:calc(14px + max(env(safe-area-inset-right,0px),var(--ept-story-side36,0px)))!important}
html.ept-story-ref18 body #storyViewer.ept-android-story36 #storyProgress{left:calc(10px + max(env(safe-area-inset-left,0px),var(--ept-story-side36,0px)))!important;right:calc(10px + max(env(safe-area-inset-right,0px),var(--ept-story-side36,0px)))!important}
/* Keep the established waveform styling; file-card layout must not wrap voices. */
html body #mainView #messages .ept-voice36{max-width:min(280px,calc(100vw - 64px))!important}


/* V37: one main shell. No ept20/ept-ios/frame height variable participates. */
@media(max-width:800px){
html.ept-layout37 body #mainView#mainView#mainView:not(.hidden){position:fixed!important;inset:0!important;bottom:var(--ept-keyboard37,0px)!important;width:100%!important;height:auto!important;max-height:none!important;min-height:0!important;margin:0!important;padding:0!important;box-sizing:border-box!important;display:block!important;overflow:hidden!important;transform:none!important;gap:0!important}
html.ept-layout37 body #mainView#mainView#mainView>.sidebar,
html.ept-layout37 body #mainView#mainView#mainView>.conversation{position:absolute!important;inset:0!important;width:100%!important;height:auto!important;max-height:none!important;min-height:0!important;margin:0!important;box-sizing:border-box!important;overflow:hidden!important;flex-direction:column!important;transform:none!important}
html.ept-layout37 body #mainView#mainView#mainView:not(.open)>.sidebar,
html.ept-layout37 body #mainView#mainView#mainView.open>.conversation{display:flex!important}
html.ept-layout37 body #mainView#mainView#mainView.open>.sidebar,
html.ept-layout37 body #mainView#mainView#mainView:not(.open)>.conversation{display:none!important}
html.ept-layout37 body #mainView#mainView#mainView .sidebar>.ept-inbox-scroll{display:block!important;position:relative!important;flex:1 1 auto!important;min-height:0!important;height:auto!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-y!important;overscroll-behavior-y:contain!important}
html.ept-layout37 body #mainView#mainView#mainView .sidebar .ept-inbox-scroll>#chatList{display:block!important;position:relative!important;flex:none!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important;touch-action:pan-y!important}
html.ept-layout37 body #mainView#mainView#mainView .sidebar>.sidebarfoot{position:relative!important;inset:auto!important;flex:0 0 auto!important;max-height:none!important;margin:0!important;transform:none!important}
html.ept-layout37 body #mainView#mainView#mainView .chatheader{position:relative!important;inset:auto!important;flex:0 0 auto!important;transform:none!important}
html.ept-layout37 body #mainView#mainView#mainView #chatView:not(.hidden){position:relative!important;inset:auto!important;display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:hidden!important;transform:none!important}
html.ept-layout37 body #mainView#mainView#mainView #messages{position:relative!important;inset:auto!important;flex:1 1 auto!important;min-height:0!important;height:auto!important;max-height:none!important;overflow-y:auto!important;transform:none!important}
html.ept-layout37 body #mainView#mainView#mainView #composer{position:relative!important;inset:auto!important;flex:0 0 auto!important;margin:0!important;transform:none!important}
html.ept-layout37 body #mainView#mainView#mainView #storyFile.story-file-input{position:absolute!important;left:-10000px!important;top:0!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
html.ept-frame211 body #storyViewer#storyViewer>.story-viewer-content{height:100%!important;max-height:100%!important;min-height:0!important}
}

