/* Five main destinations. Secondary choices wrap instead of scrolling. */
body.modern .bottom{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:2px!important;overflow:visible!important;width:100%;max-width:100%;padding:7px 6px calc(7px + env(safe-area-inset-bottom))!important}
body.modern .bottom .nav-btn{min-width:0!important;width:auto!important;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;border:0;background:none;border-radius:14px;padding:7px 2px!important;text-decoration:none;color:#493252;font-size:13px!important;line-height:1.3!important}
body.modern .bottom .nav-btn i{font-size:25px!important;line-height:1.2;font-style:normal}
body.modern .bottom .nav-btn span{font-size:13px!important;white-space:normal!important;overflow-wrap:anywhere}
body.modern .bottom .nav-btn.active{background:#e9deef}
body.modern .community-nav{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));overflow:visible!important;gap:8px}
body.modern .community-nav button{white-space:normal!important;width:100%!important;min-width:0!important;padding:10px!important;border-radius:12px!important;font-size:16px!important}
body.modern #home .quick{flex-wrap:wrap;overflow:visible}
body.modern #home .quick .quick-link{min-width:100px;flex:1 1 30%}
body.modern .chapel-hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0}
body.modern .chapel-hub-card{border-radius:22px;overflow:hidden;position:relative;height:380px;padding:0;border:1px solid #cab9d1;color:white;text-align:left;background:#16121c}
body.modern .chapel-hub-card img{width:100%;height:100%;object-fit:cover}
body.modern .chapel-hub-card>span{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:flex-end;gap:10px;padding:22px;background:linear-gradient(transparent 20%,#171020ee)}
body.modern .chapel-hub-card strong{font-size:26px;line-height:1.2}
body.modern .chapel-hub-card small{font-size:16px;color:#f0e4f5}
body.modern .chapel-hub-card b{font-size:16px;color:#efd9ae}
body.modern .personal-enter{margin:0 0 18px}
#roomToolbar[hidden]{display:none!important}
#roomToolbar{position:fixed;inset:0 0 auto;z-index:65;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:66px;padding:10px 16px;padding-top:max(10px,env(safe-area-inset-top));background:#09090b;color:#fff;border-bottom:1px solid #393139}
#roomToolbar button{min-height:44px;min-width:68px;border:1px solid #55465f;border-radius:12px;padding:8px 12px;background:#231b2b;color:white;font-size:16px}
#roomToolbar strong{font-size:16px;text-align:center}
#roomEditDialog{width:min(94vw,500px);padding:24px;border:1px solid #856c96;border-radius:22px;background:#17121d;color:#fff;max-height:90svh;overflow:auto;z-index:90}
#roomEditDialog::backdrop{background:#08060bc9}
body.modern #roomEditDialog h2,body.modern #roomEditDialog p{color:#fff!important}
#roomEditDialog button{margin:8px 0}
#roomEditDialog .room-file-note{font-size:14px;line-height:1.5;color:#ddd0e5}
/* Immersive chapel surfaces use the actual shared view and its existing actions. */
body.modern[data-room]{background:#070708!important;overflow:hidden}
body.modern[data-room] header,body.modern[data-room] .bottom{display:none!important}
body.modern[data-room] .app{padding:0!important;max-width:none!important}
body.modern[data-room] .page.active{position:fixed!important;inset:66px 0 0!important;max-width:none!important;width:100%!important;margin:0!important;padding:0!important;overflow:auto;background:#070708!important;color:white!important;z-index:50}
body.modern[data-room] .page.active>.chapel-appearance-bar{display:none!important}
body.modern[data-room] .modal{z-index:80}
body.modern[data-room=family] #family>h1,body.modern[data-room=family] #family>p{display:none}
body.modern[data-room=family] #familyBody>*{display:none!important}
body.modern[data-room=family] #familyBody>.family-room-title{display:block!important;position:relative;z-index:2;background:#070708;padding:12px 20px!important;min-height:106px;text-align:center}
body.modern[data-room=family] #family .family-room-title h2{font-size:25px!important;margin:0 0 8px!important;color:white!important}
body.modern[data-room=family] #family .family-room-title>span{display:none}
body.modern[data-room=family] .chapel-metrics{justify-content:center;margin:0;gap:12px}
body.modern[data-room=family] .chapel-metrics>span{background:#17131c;color:#eee5f3!important;border-color:#39303f;padding:5px 12px}
body.modern[data-room=family] .chapel-metrics strong{color:#fff}
body.modern[data-room=family] #familyBody>.family-chapel-room{display:flex!important;position:relative;min-height:calc(100svh - 172px)!important;margin:0!important;border:0!important;border-radius:0!important;padding:14px 20px max(18px,env(safe-area-inset-bottom))!important;background-position:center 42%}
body.modern[data-room=family] .family-altar-candles{margin-top:180px;max-height:32svh}
body.modern[data-room=personal] #profile>*{display:none!important}
body.modern[data-room=personal] #profile>#myChapelBody{display:block!important}
body.modern[data-room=personal] #myChapelBody>*{display:none!important}
body.modern[data-room=personal] #myChapelBody>.personal-room-title{display:block!important;position:relative;z-index:2;background:#070708;padding:12px 20px;text-align:center;min-height:90px}
body.modern[data-room=personal] .personal-room-title h2{color:#fff!important;margin:0 0 8px!important;font-size:25px!important}
body.modern[data-room=personal] .personal-room-title>span{color:#dfd4e6!important}
body.modern[data-room=personal] #myChapelBody>.my-chapel-scene{display:block!important;position:fixed;inset:156px 0 0;border-radius:0;min-height:0;filter:none!important;background-position:center 42%}
body.modern[data-room=personal] #myChapelBody>.own-candles{display:flex!important;position:fixed;bottom:100px;left:0;right:0;z-index:3;padding:30px 20px 10px;justify-content:safe center;background:linear-gradient(transparent,#09080bc9);margin:0}
body.modern[data-room=personal] .own-candle{background:#1510189c!important;border:1px solid #a88e5d!important;color:white!important;flex-basis:100px}
body.modern[data-room=personal] .own-candles p{color:#fff!important}
body.modern[data-room=personal] #myChapelBody>.sanctuary-actions:has([data-modal=candle]){display:flex!important;position:fixed;bottom:0;left:0;right:0;padding:12px 16px max(18px,env(safe-area-inset-bottom));margin:0;z-index:4;background:#09080bdd}
body.modern[data-room=public] #chapel .chapel{min-height:calc(100svh - 66px);border-radius:0;margin:0}
body.modern[data-room=public] #chapel .chapel-content{padding-bottom:24px}
@media(min-width:900px){body.modern header .bottom{position:static!important;max-width:650px;flex:1}body.modern header .bottom .nav-btn{color:#fff}}
@media(max-width:600px){body.modern .chapel-hub-grid{grid-template-columns:1fr;gap:14px}.chapel-hub-card{height:230px!important}body.modern .community-nav{grid-template-columns:repeat(2,minmax(0,1fr))}body.modern #home .community-nav{grid-template-columns:1fr}body.modern #home .community-nav button{min-height:48px}#roomToolbar{gap:8px;padding-left:10px;padding-right:10px}#roomToolbar strong{font-size:15px}body.modern[data-room=family] #familyBody>.family-chapel-room{padding-left:12px!important;padding-right:12px!important}}
