
html:root,html body,body #root{width:100%;height:100%;min-width:0;min-height:0;margin:0;overflow:hidden}
body #root{position:relative;isolation:isolate;display:grid;grid-template: auto minmax(0,1fr) / minmax(0,1fr);background:#000}
#root:has(>.boot):not(:has(.host-alert))>.local-control,#root>.runtime-strip,#root>.boot>p:nth-of-type(3),#root .authentic-app-workspace>.h-screen>header.sr-only{display:none}
#root>.local-control{position:static;grid-area:1/1;min-width:0;height:auto;min-height:0;padding:3px 8px;display:flex;justify-content:flex-end;flex-wrap:wrap;overflow:visible;background:#08090d;border-bottom:1px solid #21242b}
#root>.local-control button{min-height:32px;padding:4px 10px}
#root>.authentic-app-workspace,#root>.boot{grid-area:2/1;width:100%;height:100%;min-width:0;min-height:0;max-height:100%;padding-top:0;overflow:hidden}
#root .authentic-app-workspace>.h-screen{width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%}
#root .authentic-app-workspace main,#root .authentic-app-workspace main>.flex-1{min-width:0}
#root .authentic-app-workspace [class~="h-[260px]"]:has(button[title="Maximize terminal"]){height:min(30%,260px);min-height:0;overflow:auto;overscroll-behavior:contain}
#root .authentic-app-workspace main video{max-height:100%}
#root .authentic-app-workspace main div:has(>form input[placeholder="Message BRAINK..."]){opacity:1!important;transform:none!important}
#root .authentic-app-workspace>.h-screen>footer{min-width:0;max-height:28%;overflow:auto;overscroll-behavior:contain}
#root>.local-panel{position:relative;inset:auto;grid-area:2/1;align-self:start;justify-self:end;box-sizing:border-box;width:min(520px,100%);max-width:100%;max-height:100%;min-height:0;overflow:auto;overscroll-behavior:contain;overflow-wrap:anywhere}
@media(max-width:760px){
 #root .authentic-app-workspace>.h-screen>footer,#root .authentic-app-workspace>.h-screen>footer>div{flex-wrap:nowrap;justify-content:flex-start}
 #root .authentic-app-workspace>.h-screen>footer{padding:5px 8px;scroll-padding:8px}
 #root .authentic-app-workspace>.h-screen>footer button{flex:none;min-height:40px;white-space:nowrap}
 #root .authentic-app-workspace main:has(>aside){display:grid;grid-template-columns:minmax(0,1fr);grid-auto-rows:minmax(0,1fr)}
 #root .authentic-app-workspace main>aside{width:100%;min-width:0;max-height:100%;overflow:auto;overscroll-behavior:contain}
 #root .authentic-app-workspace main>div:has(+aside),#root .authentic-app-workspace main>aside+div{min-height:0}
 #root .authentic-app-workspace main .relative:has(>form input[placeholder="Message BRAINK..."]){padding:4px 8px 8px}
}
@media(max-height:480px){
 #root .authentic-app-workspace [class~="h-[260px]"]:has(button[title="Maximize terminal"]){height:36px}
 #root .authentic-app-workspace [class~="h-[260px]"]:has(button[title="Maximize terminal"])>div:first-child{height:100%;min-height:0;white-space:nowrap;overflow:auto}
 #root .authentic-app-workspace [class~="h-[260px]"]:has(button[title="Maximize terminal"])>:not(:first-child){display:none}
}
@media(max-width:760px) and (max-height:480px){
 #root .authentic-app-workspace main:has(>aside:first-child){grid-template-columns:minmax(100px,32%) minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
 #root .authentic-app-workspace main>aside:first-child>div:first-child{height:auto;min-height:40px;padding:4px;flex-wrap:wrap;gap:2px}
 #root .authentic-app-workspace main>aside:first-child+div>div:first-child{max-width:100%;overflow-x:auto;overflow-y:hidden;white-space:nowrap;overscroll-behavior:contain}
}
@media(prefers-reduced-motion:reduce){#root .authentic-app-workspace main div:has(>form input[placeholder="Message BRAINK..."]){transition:none!important}}
