/* A brighter community palette with visible, quiet boundaries. */
body.modern:not(.chapel-night):not([data-room]){background:#f2f3f8!important;color:#2b2638;--bg:#f2f3f8;--panel:#fff;--line:#d3cae5;--gold:#805e2e}
body.modern header{background:#302240!important;border-bottom:1px solid #765297!important}
body.modern:not(.chapel-night):not([data-room]) .primary{background:linear-gradient(120deg,#6542a0,#8752a5)!important;color:#fff!important;border:1px solid #5f388e!important;box-shadow:0 5px 15px #66409920!important}
body.modern:not(.chapel-night):not([data-room]) .secondary{background:#fff!important;color:#533775!important;border:1.5px solid #c5b4d9!important}
body.modern #home .compose-gift{background:#f0e9fa!important;border:1.5px solid #a38bc3!important;color:#533676!important;box-shadow:none!important}
body.modern #home .compose-gift>span[aria-hidden]{color:#856039}
body.modern #home .quick{border:0!important;gap:8px!important;padding:0 0 8px}
body.modern #home .quick .quick-link,body.modern #home .quick .quick-link:last-child{border:1.5px solid #c8b9d9!important;border-radius:14px!important;background:#fff!important;color:#543970!important;padding:12px 8px!important}
body.modern #home .section-head{border-bottom:1px solid #d8d0e5}
body.modern #homeFeed .prayer.status-card,body.modern #prayerFeed .prayer.status-card{background:#fff!important;border:1.5px solid #d1c3e1!important;border-top:1.5px solid #d1c3e1!important;border-radius:24px!important;box-shadow:0 7px 22px #53387808!important}
body.modern #homeFeed .prayer.status-card:nth-child(3n+2),body.modern #prayerFeed .prayer.status-card:nth-child(3n+2){background:#f3edfc!important;border-color:#d1bee5!important}
body.modern #homeFeed .prayer.status-card:nth-child(3n+3),body.modern #prayerFeed .prayer.status-card:nth-child(3n+3){background:#eefaF7!important;border-color:#b9d6ce!important}
body.modern .status-avatar{background:#e9dcf6;color:#653d88;box-shadow:0 0 0 3px #fff,0 0 0 5px #bc9dcf}
body.modern .demo-1 .status-avatar{background:#dcedf8;color:#365b7e;box-shadow:0 0 0 3px #fff,0 0 0 5px #a2c3d9}
body.modern .demo-2 .status-avatar{background:#fff0d7;color:#7b582a;box-shadow:0 0 0 3px #fff,0 0 0 5px #d7bc8c}
body.modern .status-card .pray-btn{background:#ece2f6!important;border:1.5px solid #b49bc9!important;color:#523171!important}
body.modern .status-card .pray-btn.on{background:#674494!important;color:#fff!important;border-color:#674494!important}
body.modern .status-card .text-link,body.modern .section-head .text-link{display:inline-flex;align-items:center;justify-content:center;border:1px solid #cbbadd!important;border-radius:12px;padding:8px 12px!important;background:#ffffffb8!important;color:#573576!important;text-decoration:none;min-height:44px}
body.modern .sanctuary-route-links a{border:1px solid #cbbadd;border-radius:12px;background:#fff;padding:10px 14px;text-decoration:none;color:#573576}
body.modern:not(.chapel-night):not([data-room]) :is(.community-panel,.sanctuary-panel,.profile-card,.guardian-card,.family-memory){background:#fff!important;border:1.5px solid #d0c4de!important;box-shadow:0 5px 20px #55397807!important}
body.modern:not(.chapel-night):not([data-room]) .community-nav button{border:1.5px solid #c4b2d6!important;background:#fff;color:#573576}
body.modern:not(.chapel-night):not([data-room]) .community-nav button[aria-current=true]{background:#684394!important;color:#fff;border-color:#684394!important}
body.modern:not(.chapel-night):not([data-room]) #profile .profile-menu .secondary:nth-child(3n+1){background:#f0e8fa!important;border-color:#cdb8e2!important}
body.modern:not(.chapel-night):not([data-room]) #profile .profile-menu .secondary:nth-child(3n+2){background:#eaf5f4!important;border-color:#b7d7d1!important}
body.modern:not(.chapel-night):not([data-room]) #profile .profile-menu .secondary:nth-child(3n){background:#fff3e5!important;border-color:#e2c9a8!important}
body.modern #profile .profile-menu .secondary{border-width:1.5px!important}
body.modern:not(.chapel-night) .bottom{background:#fff!important;border-top:1px solid #cdc0dc!important}
body.modern:not(.chapel-night) .bottom .nav-btn.active{background:#ecdef8!important;box-shadow:inset 0 -2px 0 #8855af;color:#553473}
body.modern .bottom .nav-btn.active i{color:#684394}
body.modern .chapel-hub-card,body.modern .family-entrance{border:1.5px solid #b8a0cc;border-radius:42px 42px 22px 22px;box-shadow:0 7px 22px #50356c14}
body.modern .chapel-hub-card b{border-top-color:#ccb6dd66;color:#f3e3ff}
body.modern .chapel-hub-card>span{background:linear-gradient(transparent 18%,#291535f0)}
body.modern #home .today-card,body.modern #today .today-card{border-color:#b8a0cc!important}
/* One header, frame, metric style and action treatment across all three chapels. */
body.modern[data-room] #roomToolbar{background:#100d16;border-bottom:1px solid #685077}
body.modern[data-room] #roomToolbar button{background:#281d34;border:1px solid #86629e;border-radius:13px;color:#fff}
body.modern[data-room] :is(.family-room-title,.personal-room-title,.public-room-title){background:#100d16!important;padding:12px 20px!important;min-height:106px!important;text-align:center;border-bottom:1px solid #45354f}
body.modern[data-room] :is(.family-room-title,.personal-room-title,.public-room-title) h2{color:#fff!important;font-size:25px!important;margin:0 0 8px!important;line-height:1.2!important;text-shadow:none!important}
body.modern[data-room] .chapel-metrics{justify-content:center;margin:0;gap:10px}
body.modern[data-room] .chapel-metrics>span{background:#251c30!important;border:1px solid #685077!important;color:#ece2f5!important;border-radius:12px;padding:5px 12px}
body.modern[data-room] .chapel-metrics strong{color:#fff!important}
body.modern[data-room] .personal-room-title>span{display:inline-flex;align-items:center;justify-content:center;min-height:37px;padding:5px 12px;border:1px solid #685077;border-radius:12px;background:#251c30;color:#ece2f5!important}
body.modern[data-room=personal] #myChapelBody>.my-chapel-scene{top:172px}
body.modern[data-room] :is(.family-room-actions,.sanctuary-actions)>button.primary,body.modern[data-room=public] #chapel .chapel-content>.primary{background:#725095!important;color:white!important;border:1px solid #ba99d2!important;border-radius:14px!important;box-shadow:none!important}
body.modern[data-room] :is(.family-room-actions,.sanctuary-actions)>button.secondary{background:#22172edb!important;color:#fff!important;border:1px solid #9c7ab3!important}
body.modern[data-room] .family-chapel-room{box-shadow:inset 0 0 0 1px #84679677}
body.modern[data-room=public] .public-room-title{position:relative;z-index:3}
body.modern .public-room-music{position:absolute;right:14px;top:22px}
body.modern #chapel .public-room-music #chapelMusic{border:1px solid #806191;border-radius:12px;background:#251c30;color:#fff;min-height:44px;padding:8px 10px;width:auto;font-size:15px;text-shadow:none}
body.modern .public-room-music #chapelMusicLabel{display:none}
body.modern .public-room-music #chapelMusicError{max-width:150px;background:#251c30;color:#fff}
body.modern[data-room=public] #chapel .chapel{min-height:calc(100svh - 172px)!important;margin:0;border:0;border-radius:0;background:#08070a}
body.modern[data-room=public] #chapel .chapel-backdrop{position:absolute;inset:0;width:100%;height:100%;background-image:linear-gradient(transparent 35%,#100b17cc),var(--chapel-image)!important;background-size:cover!important;background-position:center 42%!important;opacity:1}
body.modern[data-room=public] #chapel .chapel-content{display:flex;flex-direction:column;justify-content:flex-end;min-height:calc(100svh - 172px)!important;padding:130px 16px max(16px,env(safe-area-inset-bottom))!important;gap:10px}
body.modern[data-room=public] #chapel .chapel-heading{display:none}
body.modern[data-room=public] #chapel #candles{margin:0!important;height:auto!important;max-height:34svh;overflow:auto;padding:22px 0 8px;flex-shrink:0}
body.modern[data-room=public] #chapel .chapel-command{width:100%;max-width:none;margin:0!important}
body.modern[data-room=public] #chapel .chapel-command .chapel-filters{grid-template-columns:1fr 1fr;gap:8px}
body.modern[data-room=public] #chapel .chapel-command .chip{border:1px solid #9c7ab3;background:#22172edb;color:#fff;font-size:16px;min-height:46px}
body.modern[data-room=public] #chapel .chapel-command .chip.on{background:#493354;color:#fff;border-color:#c29bdf}
body.modern[data-room=public] #chapel .sacred-divider{display:none}
body.modern[data-room=public] #chapel .chapel-content>.primary{width:100%;margin:0}
body.modern[data-room=public] #chapel .chapel-note{margin:0;color:#e5d8ee;font-size:14px;text-align:center}
body.modern[data-room=public] #chapel .candle-dedication{background:#191020ed;border:1px solid #9c7ab3;color:#fff;max-height:35svh;overflow:auto}
@media(min-width:900px){body.modern:not(.chapel-night) header .bottom{background:transparent!important;border:0!important}body.modern:not(.chapel-night) header .bottom .nav-btn.active{background:#ffffff16!important}body.modern header .bottom .nav-btn.active i{color:#dac0ef}}
@media(max-width:420px){body.modern[data-room] :is(.family-room-title,.personal-room-title,.public-room-title) h2{font-size:23px!important}.public-room-title h2{padding:0 42px}}

/* One public title in the toolbar; keep the count and music above the image. */
body.modern[data-room=public] #chapel>.public-room-title{min-height:64px;padding:10px 76px 10px 16px;display:flex;align-items:center;justify-content:center}
body.modern[data-room=public] #chapel .chapel{min-height:calc(100svh - 130px)!important}
body.modern .bottom .nav-btn{min-width:0}
body.modern .bottom .nav-btn span{white-space:normal;line-height:1.12;overflow-wrap:normal}
body.modern #home .quick .quick-link{display:flex;align-items:center;justify-content:center;margin:0;min-width:0;min-height:74px;padding:12px 8px;text-align:center;border:1.5px solid #c6b9d5;border-radius:16px;background:#fff;color:#392844;font:inherit}
body.modern #home .quick .quick-link strong{font-size:16px;line-height:1.3}
body.modern .own-candle .own-wax{position:relative;display:block;width:32px;height:88px;margin:24px auto 12px;overflow:visible;filter:drop-shadow(0 0 15px #fbc76b66)}
body.modern .own-candle .own-wax img{display:block;width:100%;height:100%;object-fit:fill}
body.modern .family-wax .flame,body.modern .own-wax .flame{display:block!important;position:absolute;width:14px;height:30px;left:calc(50% - 7px);top:-23px;z-index:2;border-radius:65% 35% 48% 48%;background:radial-gradient(ellipse at 50% 86%,#668af1aa 0 7%,transparent 15%),radial-gradient(ellipse at 50% 66%,#fffff0 0 18%,#fff3bb 30%,#ffd574 52%,#ff9c30bd 70%,transparent 80%);filter:drop-shadow(0 0 7px #ffd77ddd);animation:real-votive-flame 2.7s ease-in-out infinite;transform-origin:50% 100%}
body.modern .own-candle:nth-child(2n) .flame{animation-delay:-.9s}
body.modern .own-candle:nth-child(3n) .flame{animation-delay:-1.8s}
body.modern .family-wax .flame:after,body.modern .own-wax .flame:after{content:'';position:absolute;inset:-18px -24px;background:radial-gradient(ellipse,#ffc45b45,transparent 68%);pointer-events:none}
@media(prefers-reduced-motion:reduce){body.modern .flame{animation:none!important}}
