.elaris-camera-frame{display:contents}.elaris-camera-frame.enabled{display:block;position:relative;flex:none;overflow:hidden}.elaris-touch-camera{touch-action:none!important;overflow:auto!important;overscroll-behavior:contain;scrollbar-width:none}.elaris-touch-camera::-webkit-scrollbar{display:none}
.em-dialog{box-sizing:border-box;width:min(780px,calc(100vw - 28px));max-height:90dvh;overflow:auto;border:1px solid #d9c9b5;border-radius:25px;background:#fffaf3;color:#534238;padding:32px;font:16px/1.55 var(--sans,Arial);box-shadow:0 25px 100px #38271f40}.em-dialog::backdrop{background:#26314080;backdrop-filter:blur(5px)}.em-dialog h2{font:400 36px/1.15 var(--serif,Georgia);margin:10px 0 16px}.em-dialog h3{font:400 26px/1.2 var(--serif,Georgia);margin:0 0 15px}.em-dialog p{margin:12px 0}.em-dialog button,.em-dialog a.em-button{font:inherit;cursor:pointer;min-height:44px;border:1px solid #d2bba1;border-radius:24px;padding:10px 20px;background:#fff;color:#584431;text-decoration:none;display:inline-block}.em-dialog .em-primary{background:#72523f;color:#fff;border-color:#72523f}.em-close{float:right}.em-plans{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:24px 0}.em-plan{border:1px solid #ddcbb4;border-radius:18px;padding:24px;background:#fffdf8}.em-plan.annual{background:#f0f7fa;border-color:#b9d1db}.em-price{font-size:28px}.em-note{font-size:14px;color:#776857}.em-dialog label{display:block;margin-top:16px}.em-dialog input,.em-dialog textarea{box-sizing:border-box;width:100%;font:16px/1.5 var(--sans,Arial);border:1px solid #d9c6b0;border-radius:12px;padding:12px;margin:7px 0 14px;background:#fff;color:#483a30}.em-status{min-height:1.5em;white-space:pre-wrap}.em-row{display:flex;gap:10px;flex-wrap:wrap}.em-alert{border-left:3px solid #b68d63;padding:10px 14px;background:#f8eedf}.em-sync{position:fixed;bottom:8px;left:12px;z-index:99;background:#fffaf3e8;color:#584637;border-radius:20px;padding:5px 12px;font:12px/1.4 sans-serif;pointer-events:none}
@media(pointer:coarse){.realm-pan,.realm-overview,.self-pan-controls,.world-pan-controls,.cr-pan,.mp-pan{display:none!important}.realm-world-controls .realm-map-hint{display:block!important;font-size:13px!important}}
@media(max-width:760px){
 .em-dialog{padding:20px;max-height:92dvh}.em-plans{grid-template-columns:1fr}.em-dialog h2{font-size:30px}.em-plan{padding:18px}input,textarea,select{font-size:16px!important}
 #elarisNavigation{padding-top:env(safe-area-inset-top);flex-wrap:wrap}#journeyBack{max-width:38vw!important}#elarisNavigation .em-nav{padding:9px!important;font-size:12px!important}
 #room.self-palace[data-self-stage=writing] .self-writing-page{position:fixed!important;left:12px!important;top:calc(76px + env(safe-area-inset-top))!important;width:calc(100vw - 24px)!important;height:calc(100dvh - 96px - env(safe-area-inset-top))!important;max-height:none!important;padding:22px!important;background:#fff8ea!important;box-shadow:0 8px 45px #3b2a3933!important;border:1px solid #d9c5a8!important;border-radius:18px!important;overflow-y:auto!important;touch-action:pan-y pinch-zoom}
 #future[data-journey=page] .future-workspace{position:fixed!important;inset:74px 10px 12px!important;min-height:0!important;overflow:auto!important;border-radius:18px;background:#fff8ea!important;touch-action:pan-y pinch-zoom}
 #future[data-journey=page] .future-app,#future[data-journey=page] .future-main{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;max-height:none!important;display:block!important;padding:16px!important;background:#fff8ea!important;color:#574333}
 #future[data-journey=page] .future-side{position:relative!important;width:100%!important;display:block!important;height:auto!important;min-height:0!important}.future-grid{grid-template-columns:1fr!important}.fcard{grid-column:1/-1!important}
 #mind .room-card{max-width:calc(100vw - 24px)!important;max-height:calc(100dvh - 110px)!important;overflow:auto!important} .mp-drawer{width:calc(100vw - 24px)!important;max-height:calc(100dvh - 110px)!important;overflow:auto!important}.cr-intro{max-width:calc(100vw - 40px)!important}.cr-dialog{max-height:88dvh!important;overflow:auto!important}
 .modal.show,.future-modal.show{padding:14px!important;overflow:auto!important}.modal-card,.future-modal-card{max-width:100%!important;max-height:90dvh!important;overflow:auto!important}
}

/* Concise room purpose text stays inside the existing caption. */
#hub .palace-purpose,#mind .palace-purpose{display:block;max-width:34ch;margin-top:8px;font:14px/1.45 var(--sans);letter-spacing:normal;text-transform:none;color:inherit}
@media(max-width:760px){#hub .palace-purpose,#mind .palace-purpose{max-width:30ch;font-size:13px;margin-top:6px}#hub .self-hall-title h1,#mind .mind-garden-title h1{font-size:26px}}
/* Real plan selection and a visible member entry point. */
fieldset.em-plans{border:0;padding:0;min-width:0}
.em-dialog label.em-plan{display:flex;flex-direction:column;gap:15px;margin:0;cursor:pointer;text-align:left}
.em-plan-heading{display:flex;align-items:center;gap:12px}
.em-plan-heading strong{font:400 26px/1.2 var(--serif,Georgia)}
.em-dialog .em-plan input[type=radio]{width:20px;height:20px;flex:0 0 20px;margin:0;padding:0;accent-color:#72523f;cursor:pointer}
.em-plan.selected{border:2px solid #72523f;box-shadow:0 0 0 2px #72523f20;padding:23px}
.em-plan:focus-within{outline:3px solid #ad8050;outline-offset:3px}
.em-dialog a.em-primary{background:#72523f;color:#fff;border-color:#72523f}
#journeyMember{flex-shrink:0;border-color:#9e795a!important}
@media(max-width:760px){
 .em-plan.selected{padding:17px}
 #elarisNavigation{flex-wrap:nowrap}
 #elarisNavigation #journeyHome{padding:9px 8px;font-size:12px}
 #elarisNavigation #journeyBack{min-width:0;max-width:none!important;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:9px 8px}
 #elarisNavigation #journeyAbout{min-width:0;flex:1;padding:9px 8px;font-size:12px}
 #elarisNavigation #journeyPalaces,#elarisNavigation #journeyMember{padding:9px 8px!important;font-size:12px!important}
}
