/* AnomsChat fullscreen 2026-11-05 — loaded last. Shell fills the whole screen; composer sits on the bottom edge.
   Browser: 100dvh. iOS standalone: --full-h (real screen height). Keyboard open: visualViewport height (--app-h). */
html{height:100%;height:-webkit-fill-available;background:#000}
body{height:100%;min-height:-webkit-fill-available;min-height:100dvh;margin:0;background:#000;overscroll-behavior:none}
body.light,html:has(body.light){background:var(--bg)}
.workspace,.dm-app,.chat,.drawer{height:100dvh!important}
html.standalone,html.standalone body{height:var(--full-h,100dvh)!important;min-height:var(--full-h,100dvh)!important}
html.standalone :is(.workspace,.dm-app,.chat,.drawer,.premium-login,.neon-login){height:var(--full-h,100dvh)!important}
html.kb-open :is(.workspace,.dm-app,.chat){height:var(--app-h,100dvh)!important}
html.kb-open body{height:var(--app-h,100dvh)!important;min-height:0!important;overflow:hidden}
/* safe area applied ONCE, on the composer wrapper only */
.composer-area,body:not(.light) .composer-area,.dm-composer-wrap{margin-bottom:0!important;padding-bottom:max(6px,env(safe-area-inset-bottom,0px))!important}
.composer-area .composer,.dm-composer-wrap form{margin-bottom:0!important}
html.kb-open .composer-area,html.kb-open .dm-composer-wrap{padding-bottom:6px!important}
@media (max-width:760px){.composer-area .composer-footer{display:none!important}}
/* ===== edge 2026-11-05: flush to the very top and bottom edges =====
   --safe-top/--safe-bottom are never set in production (test-only hook); they fall back to env(). */
:root{--sat:var(--safe-top,env(safe-area-inset-top,0px));--sab:var(--safe-bottom,env(safe-area-inset-bottom,0px))}
@media (max-width:760px){
 .chat-header,.dm-main>header{box-sizing:border-box;margin-top:0!important;padding-top:var(--sat)!important;padding-bottom:0!important;height:calc(62px + var(--sat))!important;min-height:0!important;background:rgba(0,4,4,.92)!important}
 .home-view{padding-top:calc(14px + var(--sat))!important}
}
.composer-area,body:not(.light) .composer-area,.dm-composer-wrap{margin-bottom:0!important;padding-bottom:max(6px,calc(var(--sab) - 20px))!important}
body:not(.light) .composer-area,body:not(.light) .dm-composer-wrap{background:rgba(0,6,6,.94)!important;border-top:1px solid rgba(0,255,156,.22);box-shadow:0 -8px 24px rgba(0,0,0,.45)}
html.kb-open .composer-area,html.kb-open .dm-composer-wrap{padding-bottom:6px!important}
.admin-shell{padding-top:calc(16px + var(--sat))!important;padding-bottom:calc(16px + var(--sab))!important}
