@keyframes shUp{from{transform:translateY(100%)}to{transform:none}}@keyframes cdIn{from{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:none}}
#selbar.sheet .ph{flex:1 0 100%;display:flex;align-items:center;gap:8px;min-width:0}
#selbar.sheet .ph b{flex:1;min-width:0;margin:0;font:700 17px/1.2 Inter,system-ui,sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;align-items:center;gap:8px}
#selbar.sheet .ph b::before{content:"";flex:none;width:10px;height:10px;border-radius:3px;background:#FA5D19}
#selbar.sheet .pr{flex:1 0 100%;display:flex;align-items:center;gap:8px;min-width:0}
#selbar.sheet .pl{flex:0 0 68px;font:600 15px/1 Inter,system-ui,sans-serif;opacity:.8}
#selbar.sheet .pn{flex:0 0 76px;text-align:center;font:700 17px/1 ui-monospace,Menlo,monospace}
html body:not(.zz):not(.zy):not(.zx) #selbar.sheet .pr button{flex:1 1 0!important;min-width:0!important;display:grid!important;place-items:center;font-size:18px!important}
html body:not(.zz):not(.zy):not(.zx) #selbar.sheet .ph button{flex:none!important;padding:0 18px!important}
#selbar.sheet .pr button:active,#selbar.sheet .ph button:active,#wallPop button:active,#kindPop button:active{transform:scale(.96)}
/* phones and tablets: slide up from the bottom, hammer and 3D step aside */
html body.a1-draw:not(.dk-desk):not(.zz) #selbar.sheet:not([hidden]),body:not(.dk-desk) #wallPop,body:not(.dk-desk) #kindPop{position:fixed!important;left:0!important;right:0!important;top:auto!important;bottom:0!important;width:auto!important;max-width:none!important;margin:0!important;z-index:58!important;border-radius:22px 22px 0 0!important;border:0!important;border-top:1px solid rgba(255,255,255,.14)!important;background:#16223A!important;box-shadow:0 -14px 40px rgba(0,0,0,.5)!important;padding:10px 16px calc(16px + env(safe-area-inset-bottom,0px))!important;max-height:62vh!important;overflow-y:auto!important;animation:shUp .24s cubic-bezier(.2,.8,.2,1)}
html body.a1-draw:not(.dk-desk):not(.zz) #selbar.sheet:not([hidden]){gap:10px!important}
html body.a1-draw:not(.dk-desk):not(.zz) #selbar.sheet:not([hidden])::before,body:not(.dk-desk) #wallPop::before,body:not(.dk-desk) #kindPop::before{content:"";display:block;flex:0 0 44px;width:44px;height:5px;border-radius:3px;background:rgba(255,255,255,.28);margin:0 calc(50% - 22px) 2px}
body:not(.dk-desk) #wallPop::before,body:not(.dk-desk) #kindPop::before{margin:0 auto 10px}
html body.a1-draw:not(.dk-desk):not(.zz) #selbar.sheet .ph button,html body.a1-draw:not(.dk-desk):not(.zz) #selbar.sheet .pr button{height:52px!important;min-height:52px!important;border-radius:14px!important}
body:not(.dk-desk):has(#selbar:not([hidden])) .a2ham,body:not(.dk-desk):has(#wallPop) .a2ham,body:not(.dk-desk):has(#kindPop) .a2ham{opacity:0!important;pointer-events:none!important;transform:translateY(20px);transition:opacity .15s,transform .15s}
.a2ham{transition:opacity .2s,transform .2s}
/* computer: a small card in the bottom right corner of the drawing, away from the tools */
body.dk-desk #selbar.sheet:not([hidden]){left:auto!important;right:20px!important;bottom:84px!important;top:auto!important;width:360px!important;max-width:calc(100% - 40px)!important;display:flex;flex-wrap:wrap;gap:10px;padding:14px!important;border-radius:16px!important;animation:cdIn .18s ease-out;z-index:20}
body.dk-desk #selbar.sheet .ph button,body.dk-desk #selbar.sheet .pr button{min-height:44px;border-radius:10px}
body.dk-desk #selbar.sheet:not(:has(.ph)){width:560px!important}
body.dk-desk #wallPop,body.dk-desk #kindPop{left:auto!important;right:28px!important;bottom:28px!important;width:420px!important;margin:0!important;animation:cdIn .18s ease-out}
@media (prefers-reduced-motion:reduce){#selbar.sheet,#wallPop,#kindPop{animation:none!important}}
