/* Folding never changes the session; cinema also allows desktop profile folding. */
#profile-unfold{position:fixed;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));width:44px;height:44px;padding:0;overflow:hidden;border:1px solid #7191b4;border-radius:12px;background:#10243a;color:#b5cce6;box-shadow:0 4px 14px #0004;z-index:26}
#profile-unfold .hud-icon{width:30px;height:30px;margin:auto}
#profile-unfold:focus-visible,.profile-fold:focus-visible{outline:2px solid #b9d8ff;outline-offset:2px}
body:has(#start:not([hidden])) :is(#profile-unfold,#work-badge){visibility:hidden}
#bolha-profile .profile-fold{display:grid;place-items:center;flex:none;align-self:flex-start;width:32px;height:32px;padding:0;border:0;border-radius:8px;background:transparent;color:#9bb3ce;font:22px/1 system-ui;cursor:pointer}
#bolha-profile .profile-fold:hover,#bolha-profile .profile-fold:active{background:#ffffff0b;color:#ecf3fc}
@media(max-width:700px),(max-height:500px) and (orientation:landscape){
 body.bolha-hud #stick{opacity:.48;transition:opacity .12s}
 body.bolha-hud #stick:active{opacity:.7}
 body.bolha-hud.profile-folded #work-badge:not([hidden]){display:block!important;top:calc(max(12px,env(safe-area-inset-top)) + 54px);right:max(12px,env(safe-area-inset-right));max-width:190px;min-height:40px;padding:8px 10px;border:1px solid #42648599;border-radius:10px;background:#0b1b2ce8;color:#ecf3fc;font:12px/1.4 system-ui;font-variant-numeric:tabular-nums;z-index:26}
 body.bolha-hud.profile-folded:has(#work-panel:not([hidden])) #work-badge{display:none!important}
 body.bolha-hud.profile-folded.theater-watching #work-badge:not([hidden]){display:none!important}
}
@media(max-width:700px) and (orientation:portrait){
 body.bolha-hud #work-panel.timer-card.compact-work,body.bolha-hud:has(#minimap:not([hidden])) #work-panel.timer-card.compact-work{--work-top:calc(max(12px,env(safe-area-inset-top)) + var(--bolha-profile-height,150px) + 12px)}
}
@media(max-width:700px) and (max-height:740px) and (orientation:portrait){
 body.bolha-phone-open :is(#profile-unfold,#work-badge){visibility:hidden}
}
