
/* V50 standalone popup menu: original app controls are never moved */
body.calm-v50 #choiceDeck,body.calm-v50 #dock{display:none!important}
#v50Bar{position:fixed;z-index:2147483000;bottom:max(9px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;gap:10px}
#v50Bar button{border:1px solid #ffffff99;border-radius:24px;padding:11px 18px;min-height:44px;background:#23533de8;color:#fff;font:600 14px system-ui;box-shadow:0 6px 20px #092b2070}
#v50Shade[hidden]{display:none!important}
#v50Shade{position:fixed;inset:0;z-index:2147483001;background:#061b1680;display:grid;place-items:center;padding:14px;backdrop-filter:blur(4px)}
#v50Dialog{width:min(560px,96vw);max-height:min(78dvh,570px);overflow:auto;background:#f6f3e8;color:#274a36;border-radius:22px;border:2px solid #d2ddca;box-shadow:0 15px 50px #041d18a8;padding:16px}
.v50Head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}
.v50Head h2{font:clamp(20px,4vw,27px) Georgia,serif;margin:0}.v50Head button{border:0;background:transparent;font-size:24px;color:#2a513b;min-width:44px;min-height:44px}
.v50Choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.v50Choices>button{min-height:48px;border-radius:12px;border:1px solid #cbd8c6;background:#fff;color:#2c533c;font:600 14px system-ui;padding:10px;cursor:pointer}
.v50Choices>.v50Asset{height:105px;display:grid;place-items:center}.v50Asset img{max-width:100%;max-height:100%;object-fit:contain}
#v50Dialog button:focus-visible,#v50Bar button:focus-visible{outline:3px solid #b58b4b;outline-offset:2px}
@media(orientation:landscape) and (max-height:450px){#v50Dialog{max-height:83dvh;padding:10px}.v50Choices>.v50Asset{height:76px}.v50Choices>button{min-height:39px;padding:6px}}
.v50TreeHome{position:fixed;z-index:999;top:9px;left:9px}.v50TreeHome img{max-width:130px;max-height:43px;object-fit:contain}.v50Copyright{position:fixed;right:10px;bottom:6px;z-index:999;font:10px Georgia,serif;color:#fff;text-shadow:0 1px 4px #173f2c}

/* V51 — spacious decoration selection, not cramped thumbnails */
#v50Dialog:has(.v50Asset){width:min(790px,96vw);max-height:min(82dvh,650px);overflow-y:auto}
#v50Dialog:has(.v50Asset) .v50Choices{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:8px 5px 12px}
#v50Dialog .v50Choices>.v50Asset{min-height:138px;height:138px;padding:13px;border-radius:17px;background:#fffdf7;border:1px solid #d8dfd2;box-shadow:0 3px 10px rgba(24,54,36,.1)}
#v50Dialog .v50Choices>.v50Asset img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
@media(orientation:portrait){#v50Dialog:has(.v50Asset) .v50Choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}#v50Dialog .v50Choices>.v50Asset{height:132px;min-height:132px}}
@media(orientation:landscape) and (max-height:460px){#v50Dialog:has(.v50Asset){max-height:86dvh}#v50Dialog .v50Choices>.v50Asset{height:92px;min-height:92px;padding:7px}#v50Dialog:has(.v50Asset) .v50Choices{gap:11px}}
