/* One edge-to-edge room, with thumb-reachable floating controls. */
body.modern.living[data-room] .page.active{inset:0!important;overflow:hidden!important}
body.modern.living[data-room] #roomToolbar{inset:auto 0 0!important;min-height:0;padding:10px 14px calc(12px + env(safe-area-inset-bottom))!important;background:transparent!important;border:0!important;pointer-events:none;gap:12px}
body.modern.living[data-room] #roomToolbar button{pointer-events:auto;background:#100d09a8!important;backdrop-filter:blur(10px);color:#fff5df!important;min-height:46px;border:1px solid #dfc68b!important;border-radius:24px!important;text-shadow:0 1px 4px #000;font-size:16px!important}
body.modern.living[data-room] #roomToolbar [data-exit-room]{min-width:46px;width:46px;padding:0;font:30px/1 Arial!important}
body.modern.living[data-room] #roomToolbar strong{display:none!important}
body.modern.living[data-room] #roomEditButton{margin-left:auto;margin-right:auto}
body.modern.living[data-room=personal] #myChapelBody>.my-chapel-scene{inset:0!important;background-position:center top!important}
body.modern.living[data-room=family] #familyBody>.family-room-title{display:none!important}
body.modern.living[data-room=family] #familyBody>.family-chapel-room{position:fixed!important;inset:0!important;min-height:100svh!important;padding:0!important;background-position:center top!important;border:0!important}
body.modern.living[data-room=family] .family-chapel-room:before{background:linear-gradient(transparent 55%,#100c0866)!important}
body.modern.living[data-room=public] #chapel .chapel{height:100svh!important;min-height:100svh!important;border:0!important}
body.modern.living[data-room=public] .chapel-backdrop{background-size:cover!important;background-position:center top!important;opacity:1!important;filter:none!important}
body.modern.living[data-room=public] .chapel-content{position:static!important;padding:0!important;max-width:none!important}
body.modern.living[data-room=public] :is(.chapel-heading,.chapel-note,.chapel-command .sacred-divider,.chapel-divine-light){display:none!important}
body.modern.living[data-room=public] #chapel .chapel:after{pointer-events:none;background:linear-gradient(transparent 55%,#100c0866)!important}
body.modern.living[data-room] :is(#myChapelBody>.own-candles,.family-altar-candles,#candles){position:fixed!important;inset:auto 0 calc(142px + env(safe-area-inset-bottom))!important;height:auto!important;max-height:42svh!important;margin:0!important;padding:28px 14px 8px!important;z-index:3;overflow:auto!important;background:transparent!important;display:flex!important;flex-wrap:nowrap!important;justify-content:safe center!important;align-items:end!important;gap:12px!important}
body.modern.living[data-room] :is(.own-candle,.family-altar-candle){flex:0 0 100px!important;background:transparent!important;border:0!important;box-shadow:none!important;max-width:110px!important}
body.modern.living[data-room] .family-altar-candle strong{font:400 22px/1.4 ChapelScript,Georgia,cursive!important;color:#eed38e!important;text-shadow:0 2px 4px #000,0 0 8px #000!important}
body.modern.living[data-room] .family-altar-candle small{color:#fff3d6!important;text-shadow:0 2px 4px #000}
.family-candle-holder{display:none}
body.modern.living[data-room=family] .family-candle-holder{display:block;width:80px;height:31px;object-fit:contain;margin:-16px auto 0;position:relative;z-index:2;pointer-events:none}
body.modern.living[data-room=public] #candles .votive{flex:0 0 105px!important;background:transparent!important;border:0!important;min-width:0!important}
body.modern.living[data-room] :is(#myChapelBody>.sanctuary-actions:has([data-modal=candle]),.family-room-actions){position:fixed!important;inset:auto 14px calc(76px + env(safe-area-inset-bottom))!important;padding:0!important;margin:0!important;background:transparent!important;z-index:5;display:flex!important;gap:10px;justify-content:center!important}
body.modern.living[data-room] :is(#myChapelBody>.sanctuary-actions,.family-room-actions) button{min-height:46px!important;max-width:420px;background:#100d0966!important;border:1px solid #dfc68b!important;color:#fff5df!important;backdrop-filter:blur(6px);border-radius:18px!important;font-size:17px!important;text-shadow:0 1px 4px #000}
body.modern.living[data-room=public] .chapel-command{position:fixed!important;bottom:calc(132px + env(safe-area-inset-bottom));left:14px;right:14px;z-index:5;margin:0!important}
body.modern.living[data-room=public] .chapel-filters{display:flex!important;gap:10px;justify-content:center;margin:0!important}
body.modern.living[data-room=public] .chapel-filters button,body.modern.living[data-room=public] .chapel-content>[data-modal=candle]{background:#100d0955!important;color:#fff5df!important;border:1px solid #dfc68b!important;backdrop-filter:blur(6px);text-shadow:0 1px 4px #000;border-radius:18px!important;font-size:17px!important;min-height:46px!important;padding:10px!important}
body.modern.living[data-room=public] .chapel-filters button{flex:1;max-width:240px}
body.modern.living[data-room=public] .chapel-filters .on{border-width:2px!important;background:#80612866!important}
body.modern.living[data-room=public] .chapel-content>[data-modal=candle]{position:fixed!important;bottom:calc(76px + env(safe-area-inset-bottom));left:14px;right:14px;width:calc(100% - 28px)!important;margin:0!important;z-index:5}
body.modern.living[data-room=public] #candles{bottom:calc(193px + env(safe-area-inset-bottom))!important}
body.modern.living[data-room=public] #candleDedication{position:fixed;bottom:calc(193px + env(safe-area-inset-bottom));left:14px;right:14px;max-height:35svh;overflow:auto;z-index:6;background:#140e09e8;color:#fff}
body.modern.living[data-room].room-quiet :is(.sanctuary-actions,.family-room-actions,.chapel-command,.chapel-content>[data-modal=candle],#candleDedication,.own-candle>span:last-child,.family-altar-candle strong,.family-altar-candle small,.candle-label,.candle-request,.mine-label,.chapel-empty,.family-room-empty,.own-candles>p){visibility:hidden!important;pointer-events:none!important}
body.modern.living[data-room].room-quiet :is(.own-candles,.family-altar-candles,#candles){pointer-events:none!important}
#roomMusicDialog{width:min(94vw,480px);max-height:85svh;overflow:auto;border:1px solid #c9ac6a;border-radius:22px;background:#19130f;color:#fff2da;padding:24px;z-index:100}
#roomMusicDialog::backdrop{background:#050302bb}
body.modern.living #roomMusicDialog :is(h2,p,label,small){color:#fff2da!important}
#roomMusicDialog select,#roomMusicDialog button{width:100%;min-height:48px;border:1px solid #c9ac6a;border-radius:12px;background:#302418;color:#fff2da;padding:10px;font-size:17px;margin:8px 0}
#roomMusicDialog audio{width:100%;margin:16px 0}
#roomMusicDialog a{color:#eed38e;font-size:14px}
#roomMusicDialog input[type=range]{width:100%}

/* Keep the same real table and holders in every room. */
body.modern.living[data-room] :is(#myChapelBody>.own-candles,.family-altar-candles){background:url('/assets/oak-table.webp') center calc(100% - 42px)/100% 80px no-repeat!important}
body.modern.living[data-room=public] .votive-row{background:url('/assets/oak-table.webp') center bottom/100% 55px no-repeat!important}
.room-candle-holder{width:64px;height:25px;object-fit:contain;display:block;margin:-12px auto 0;position:relative;z-index:3}
body.modern.living[data-room].room-quiet :is(.own-candle,.family-altar-candle,.votive){pointer-events:none!important}
.public-room-actions{display:flex;justify-content:center;gap:10px}
body.modern.living[data-room] :is(#myChapelBody>.sanctuary-actions:has([data-modal=candle]),.family-room-actions,.public-room-actions){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;align-items:stretch!important;max-width:650px!important;margin-left:auto!important;margin-right:auto!important}
body.modern.living[data-room] .public-room-actions{position:fixed;inset:auto 14px calc(76px + env(safe-area-inset-bottom));z-index:5}
body.modern.living[data-room] :is(.public-room-actions,.family-room-actions,#myChapelBody>.sanctuary-actions:has([data-modal=candle])) button{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;display:flex;align-items:center;justify-content:center;text-align:center;min-height:46px!important;padding:10px!important;background:#100d0966!important;border:1px solid #dfc68b!important;color:#fff5df!important;backdrop-filter:blur(6px);border-radius:18px!important;font-size:17px!important;text-shadow:0 1px 4px #000}
body.room-quiet .public-room-actions{visibility:hidden!important;pointer-events:none!important}
#roomInviteDialog{width:min(94vw,480px);max-height:85svh;overflow:auto;border:1px solid #c9ac6a;border-radius:22px;background:#19130f;color:#fff2da;padding:24px;z-index:100}
#roomInviteDialog::backdrop{background:#050302bb}
body.modern.living #roomInviteDialog :is(h2,p){color:#fff2da!important}
#roomInviteDialog :is(input,button){width:100%;min-height:48px;border:1px solid #c9ac6a;border-radius:12px;background:#302418;color:#fff2da;padding:10px;font-size:16px;margin:8px 0}
#roomInviteDialog [hidden]{display:none!important}

/* Shared centered controls in personal, family and public chapels. */
body.modern.living[data-room] #roomToolbar{display:flex!important;justify-content:center!important;align-items:center!important;gap:8px!important;width:100%;max-width:678px;box-sizing:border-box;margin-inline:auto!important}
body.modern.living[data-room] #roomToolbar[hidden]{display:none!important}
body.modern.living[data-room] #roomToolbar button{display:flex;align-items:center;justify-content:center;text-align:center;min-width:0;margin:0!important;padding:8px 10px;font-size:14px!important;line-height:1.25}
body.modern.living[data-room] #roomToolbar button[hidden]{display:none!important}
body.modern.living[data-room] #roomToolbar :is(#roomMusicButton,#roomEditButton,#roomTextButton){flex:1 1 0;max-width:180px}
body.modern.living[data-room] #roomToolbar [data-exit-room]{flex:0 0 46px}
body.modern.living[data-room].room-quiet #roomToolbar button:not(#roomTextButton):not(#roomMuteButton){display:none!important}
body.modern.living[data-room].room-quiet #roomTextButton{visibility:visible!important;pointer-events:auto!important;flex:0 1 180px}
/* Keep the quiet view unobstructed, including on touch devices. */
body.modern.living[data-room].room-quiet #roomToolbar #roomTextButton{opacity:.14!important;background:transparent!important;backdrop-filter:none!important;border-color:transparent!important;outline:none!important;box-shadow:none!important;color:#fff0d6!important;font-size:13px!important;text-shadow:none!important;max-width:160px;transition:opacity .2s}
body.modern.living[data-room] #roomToolbar #roomMuteButton{flex:0 0 38px;width:38px;min-height:44px;padding:8px!important;background:transparent!important;border-color:transparent!important;box-shadow:none!important;backdrop-filter:none!important;color:#fff0d6!important;opacity:.14;transition:opacity .2s}
body.modern.living[data-room].room-quiet #roomToolbar #roomMuteButton{position:absolute;left:14px;visibility:visible!important;pointer-events:auto!important}
body.modern.living[data-room].room-quiet #roomToolbar #roomTextButton:focus-visible,body.modern.living[data-room] #roomToolbar #roomMuteButton:focus-visible{opacity:1!important;outline:1px solid #dfc68b!important;outline-offset:2px}
@media(hover:hover) and (pointer:fine){body.modern.living[data-room].room-quiet #roomToolbar #roomTextButton:hover{opacity:.45!important}body.modern.living[data-room] #roomToolbar #roomMuteButton:hover{opacity:.45!important}}

/* Every background uses the same immersive room, candle scale and bottom controls. */
body.modern.living[data-room] :is(.public-room-title,.personal-room-title,.family-room-title){display:none!important}
body.modern.living[data-room=public] #chapel .chapel{position:fixed!important;inset:0!important;width:100%!important;height:100svh!important;min-height:100svh!important;margin:0!important;padding:0!important;border-radius:0!important}
body.modern.living[data-room=public] #chapel .chapel-backdrop{inset:0!important;width:100%!important;height:100%!important;background-image:var(--chapel-image)!important;background-size:cover!important;background-position:center top!important}
body.modern.living[data-room=public] #chapel .chapel-content{position:static!important;min-height:0!important;height:auto!important;padding:0!important}
body.modern.living[data-room=family] #familyBody>.family-chapel-room{height:100svh!important;background-size:cover!important}
body.modern.living[data-room=personal] #myChapelBody .living-chapel-photo{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center top!important}
body.modern.living[data-room=public] #chapel #candles{bottom:calc(142px + env(safe-area-inset-bottom))!important;max-height:42svh!important;padding:28px 14px 8px!important;gap:12px!important;background:url('/assets/oak-table.webp') center calc(100% - 42px)/100% 80px no-repeat!important}
body.modern.living[data-room=public] #chapel #candles .votive-row{display:contents!important}
body.modern.living[data-room=public] #chapel #candles .votive-row:before,body.modern.living[data-room=public] #chapel #candles .votive-empty{display:none!important}
body.modern.living[data-room=public] #chapel #candles .votive{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;flex:0 0 100px!important;max-width:110px!important;height:auto!important;min-height:0!important;padding:0!important;overflow:visible!important}
body.modern.living[data-room=public] #chapel #candles .votive .candle{position:relative!important;inset:auto!important;display:block!important;width:32px!important;height:var(--wax-height,88px)!important;margin:calc(112px - var(--wax-height,88px)) auto 4px!important;transform:none!important}
body.modern.living[data-room=public] #chapel #candles .votive .candle-wax-photo{width:32px!important;height:88px!important;object-fit:fill!important}
body.modern.living[data-room=public] #chapel #candles .room-candle-holder{width:80px!important;height:31px!important;margin:-16px auto 0!important;flex-shrink:0!important}
body.modern.living[data-room=public] #chapel #candles .votive .candle-label{display:block!important;margin:0!important;padding-top:6px!important;min-height:31px!important;max-height:62px!important;font:400 22px/1.4 ChapelScript,Georgia,cursive!important;color:#eed38e!important;text-shadow:0 2px 4px #000,0 0 8px #000!important}
body.modern.living[data-room=public] #chapel .chapel-command{left:14px!important;right:14px!important;width:auto!important;bottom:calc(340px + env(safe-area-inset-bottom))!important;max-width:650px!important;margin-inline:auto!important}
body.modern.living[data-room=public] #chapel .chapel-command .chapel-filters{flex-direction:row!important}

body.modern.living[data-room] :is(.own-candle,.family-altar-candle),body.modern.living[data-room=public] #chapel #candles .votive{padding:12px 8px 0!important}

/* The public room shares the personal candle markup; no legacy shelves or top bar. */
body.modern[data-room=public] #chapel{position:fixed!important;inset:0!important;padding:0!important;overflow:hidden!important}
body.modern[data-room=public] #chapel .chapel{position:fixed!important;inset:0!important;height:100svh!important;min-height:100svh!important;margin:0!important;border:0!important;border-radius:0!important}
body.modern[data-room=public] #chapel .chapel-backdrop{inset:0!important;width:100%!important;height:100%!important;background-image:var(--chapel-image)!important;background-size:cover!important;background-position:center top!important}
body.modern[data-room=public] #chapel #candles{display:flex!important;flex-wrap:nowrap!important;justify-content:safe center!important;align-items:end!important;position:fixed!important;inset:auto 0 calc(142px + env(safe-area-inset-bottom))!important;height:auto!important;margin:0!important;padding:28px 14px 8px!important;gap:12px!important;overflow:auto!important;background:url('/assets/oak-table.webp') center calc(100% - 42px)/100% 80px no-repeat!important}
body.modern[data-room=public] #chapel #candles .own-candle{position:relative!important;display:flex!important;flex-direction:column!important;align-items:center!important;flex:0 0 100px!important;height:auto!important;min-height:0!important;padding:12px 8px 0!important;background:transparent!important;border:0!important;box-shadow:none!important}
body.modern[data-room=public] #chapel #candles .own-wax{position:relative!important;inset:auto!important;display:block!important;margin-bottom:4px!important}
body.modern[data-room=public] #chapel #candles .own-candle-holder{display:block!important;width:80px!important;height:31px!important;margin:-16px auto 0!important;position:relative!important;flex-shrink:0!important;z-index:3}
body.modern[data-room=public] #chapel .chapel-command{position:fixed!important;inset:auto 14px calc(340px + env(safe-area-inset-bottom))!important;width:auto!important;max-width:650px!important;margin-inline:auto!important}
body.modern[data-room=public] #chapel .chapel-command .chapel-filters{display:flex!important;flex-direction:row!important;justify-content:center!important;gap:10px!important}
body.modern[data-room=public] #chapel .chapel-command .chapel-filters .chip{flex:1!important;width:auto!important;max-width:240px!important;min-height:44px!important;padding:8px!important;font-size:14px!important;text-align:center!important;justify-content:center!important;background:#100d0955!important;color:#fff5df!important;border:1px solid #dfc68b88!important;border-radius:18px!important;text-decoration:none!important}

body.modern[data-room] .room-loading{position:absolute;bottom:160px;left:20px;right:20px;text-align:center;color:#fff!important;text-shadow:0 1px 5px #000;z-index:4}

/* Reading a dedication must not leave a selection frame in the quiet scene. */
body.modern.living[data-room].room-quiet :is([data-candle],[data-own-candle],[data-family-candle]):not(:focus-visible),
body.modern.living[data-room].candle-pointer-mode :is([data-candle],[data-own-candle],[data-family-candle]){outline:none!important;box-shadow:none!important}
body.modern.living[data-room].room-quiet :is([data-candle],[data-own-candle],[data-family-candle]){border-color:transparent!important;background:transparent!important}

/* Keep every public candle and its two-line label inside one fixed-width slot. */
body.modern.living[data-room=public] #chapel #candles{gap:6px!important;align-items:flex-end!important}
body.modern.living[data-room=public] #chapel #candles .votive{box-sizing:border-box!important;flex:0 0 94px!important;width:94px!important;min-width:94px!important;max-width:94px!important;padding:12px 4px 0!important}
body.modern.living[data-room=public] #chapel #candles .votive .candle-label{box-sizing:border-box!important;display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;width:100%!important;max-width:100%!important;height:54px!important;min-height:54px!important;max-height:54px!important;overflow:hidden!important;overflow-wrap:anywhere!important;word-break:normal!important;white-space:normal!important;text-align:center!important;font-size:18px!important;line-height:24px!important;padding:6px 0 0!important;flex-shrink:0!important}

/* Compact candle slots with bounded, independently clipped name lines. */
body.modern.living[data-room] :is(#myChapelBody>.own-candles,.family-altar-candles),body.modern.living[data-room=public] #chapel #candles{gap:4px!important}
body.modern.living[data-room] :is(.own-candle,.family-altar-candle),body.modern.living[data-room=public] #chapel #candles .votive{box-sizing:border-box!important;flex:0 0 90px!important;width:90px!important;min-width:90px!important;max-width:90px!important;padding:12px 4px 0!important}
body.modern.living[data-room] :is([data-own-candle]>span:last-child,.family-altar-candle strong,.family-altar-candle small),body.modern.living[data-room=public] #chapel #candles .votive .candle-label{box-sizing:border-box!important;display:block!important;width:100%!important;max-width:100%!important;height:54px!important;min-height:54px!important;max-height:54px!important;margin:0!important;padding:6px 0 0!important;overflow:hidden!important;font-size:18px!important;line-height:24px!important;text-align:center!important;flex-shrink:0!important}
body.modern.living[data-room] .family-altar-candle small{font-size:14px!important;height:42px!important;min-height:42px!important;line-height:18px!important}
body.modern.living[data-room] .candle-name-line{display:block!important;width:100%!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;line-height:inherit!important}

/* Size each slot to its actual ten-character lines instead of clipping them. */
body.modern.living[data-room] :is(.own-candle,.family-altar-candle),body.modern.living[data-room=public] #chapel #candles .votive{flex:0 0 auto!important;width:max-content!important;min-width:90px!important;max-width:none!important}
body.modern.living[data-room] :is([data-own-candle]>span:last-child,.family-altar-candle strong,.family-altar-candle small),body.modern.living[data-room=public] #chapel #candles .votive .candle-label{width:max-content!important;min-width:82px!important;max-width:none!important;overflow:visible!important;text-overflow:clip!important}
body.modern.living[data-room] .candle-name-line{width:auto!important;max-width:none!important;white-space:nowrap!important;overflow:visible!important;text-overflow:clip!important;text-align:center!important}

/* Compact slots in every chapel, including the profile preview.
   Intrinsic label width preserves ten visible characters without overlap. */
body.modern.living #myChapelBody .own-candles,
body.modern.living #family .family-altar-candles,
body.modern.living[data-room=public] #chapel #candles{
 display:flex!important;flex-wrap:nowrap!important;justify-content:safe center!important;gap:2px!important;
}
body.modern.living #myChapelBody .own-candle,
body.modern.living #family .family-altar-candle,
body.modern.living[data-room=public] #chapel #candles .votive{
 box-sizing:border-box!important;flex:0 0 auto!important;width:max-content!important;
 min-width:82px!important;max-width:none!important;margin-inline:0!important;padding-inline:2px!important;
}
body.modern.living #myChapelBody [data-own-candle]>span:last-child,
body.modern.living #family .family-altar-candle strong,
body.modern.living #family .family-altar-candle small,
body.modern.living[data-room=public] #chapel #candles .votive .candle-label{
 box-sizing:border-box!important;display:block!important;width:max-content!important;
 min-width:74px!important;max-width:none!important;overflow:visible!important;
 text-align:center!important;font-size:18px!important;line-height:24px!important;
}
body.modern.living :is(#myChapelBody,#family,#chapel) .candle-name-line{
 display:block!important;width:auto!important;max-width:none!important;white-space:nowrap!important;
 overflow:visible!important;text-overflow:clip!important;text-align:center!important;
}

/* Keep text readable on photographic family entrance cards in either theme. */
body.modern.living #family .family-entrance>span,
body.modern.living #family .family-entrance>span :is(small,strong,span){
 color:#fff4da!important;-webkit-text-fill-color:#fff4da!important;text-shadow:0 2px 5px #000!important;
}
#roomFamilySettings[hidden]{display:none!important}
#roomFamilySettings{border-bottom:1px solid #856c96;padding-bottom:16px;margin-bottom:20px}
#roomFamilySettings label,#roomFamilySettings h3,#roomFamilySettings .room-family-member span{color:#fff!important;-webkit-text-fill-color:#fff!important}
#roomFamilyName{box-sizing:border-box;width:100%;min-height:46px;padding:10px 12px;margin-top:8px;background:#fff;color:#242024;-webkit-text-fill-color:#242024;border:1px solid #c9ac6a;border-radius:10px;font:inherit}
#roomFamilySettings button{min-height:44px;padding:10px 14px;width:100%}
.room-family-member{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0}
.room-family-member span{overflow-wrap:anywhere;min-width:0}
#roomFamilySettings .room-family-member button{width:auto;flex-shrink:0}

/* Explicit shared contact plane: 96px of labels + 8px bottom padding.
   The 80px table has a transparent upper edge; its wood starts near 108px from bottom. */
body.modern.living[data-room] #family .family-altar-candle strong{height:54px!important;min-height:54px!important;max-height:54px!important;margin:0!important}
body.modern.living[data-room] #family .family-altar-candle small{height:42px!important;min-height:42px!important;max-height:42px!important;margin:0!important;font-size:14px!important;line-height:18px!important}
body.modern.living[data-room] #family .family-altar-candle{padding-bottom:0!important;row-gap:0!important}
body.modern.living[data-room] #family .family-altar-candles{background-position:center bottom 40px!important;padding-bottom:8px!important}
body.modern.living[data-room=public] #chapel #candles .votive .candle-label,
body.modern.living[data-room] #myChapelBody [data-own-candle]>span:last-child{height:96px!important;min-height:96px!important;max-height:96px!important}
body.modern.living[data-room] #myChapelBody>.own-candles,
body.modern.living[data-room=public] #chapel #candles{background-position:center bottom 40px!important}

/* Put the brass feet inside the wooden surface, not on its rear transparent edge. */
body.modern.living[data-room=family] #family .family-altar-candle,
body.modern.living[data-room=personal] #myChapelBody .own-candle,
body.modern.living[data-room=public] #chapel #candles .votive{transform:translateY(24px)!important}
#roomDeleteFamily[hidden]{display:none!important}
#roomEditDialog #roomDeleteFamily{display:block;width:100%;margin-top:22px;color:#ffd9d5!important;background:#582b32!important;border:1px solid #d99c96!important;min-height:46px}

/* Photographic entrance cards keep their own readable palette in both themes. */
body.modern.living #chapelHub .chapel-hub-card>span{background:linear-gradient(180deg,#100b140d 0%,#100b148c 38%,#100b14ed 100%)!important}
body.modern.living #chapelHub .chapel-hub-card :is(strong,small,b){color:#fff5df!important;-webkit-text-fill-color:#fff5df!important;opacity:1!important;text-shadow:0 2px 4px #000!important}
body.modern.living #chapelHub .chapel-hub-card small{font-size:16px!important;line-height:1.45!important;font-weight:500!important}

body.modern.living[data-room=public] #chapel .chapel-command{inset:auto 14px calc(130px + env(safe-area-inset-bottom))!important;width:auto!important;max-width:650px!important;margin-inline:auto!important}
body.modern.living[data-room=public] #chapel .chapel-command .chapel-filters{display:flex!important;justify-content:center!important;gap:10px!important;margin:0!important}
body.modern.living[data-room=public] #chapel .chapel-command .chapel-filters .chip{flex:1 1 0!important;max-width:none!important;min-width:0!important;text-align:center!important}


/* One original table with a single scrollable candle row, also in quiet mode. */
body.modern.living :is(#myChapelBody .own-candles,#family .family-altar-candles,#chapel #candles){flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
body.modern.living[data-room].room-quiet :is(#myChapelBody .own-candles,#family .family-altar-candles,#chapel #candles){pointer-events:auto!important;touch-action:pan-x!important}
body.modern.living[data-room=public] #chapel #candles{inset:auto 0 calc(194px + env(safe-area-inset-bottom))!important}
/* A handwritten dedication on a small cream paper slip; fixed label reserves stay intact. */
body.modern.living :is(#myChapelBody,#family,#chapel) .candle-paper{
 box-sizing:border-box;display:inline-block!important;width:max-content!important;max-width:none!important;
 padding:3px 7px!important;margin:0!important;border:1px solid #b99c6b99;border-radius:2px 3px 2px 1px;
 background:repeating-linear-gradient(7deg,#fff5dc22 0 1px,transparent 1px 4px),linear-gradient(115deg,#f3e3be,#fff5d9 48%,#e8d2a7);
 color:#49341e!important;-webkit-text-fill-color:#49341e!important;text-shadow:none!important;
 box-shadow:0 2px 3px #160c0755,inset 0 0 6px #b78d3b18;
 font:400 17px/20px ChapelScript,'Segoe Print',cursive!important;
}
body.modern.living :is(#myChapelBody,#family,#chapel) .candle-paper .candle-name-line{
 color:#49341e!important;-webkit-text-fill-color:#49341e!important;text-shadow:none!important;
 font:inherit!important;line-height:20px!important;
}

/* Compact, centered controls and engraved nineteenth-century bronze plaques. */
body.modern.living[data-room] :is(.public-room-actions,.family-room-actions,#myChapelBody>.sanctuary-actions:has([data-modal=candle])){
 left:32px!important;right:32px!important;width:auto!important;max-width:400px!important;gap:8px!important;margin-inline:auto!important;
}
body.modern.living[data-room=public] #chapel .chapel-command{
 left:32px!important;right:32px!important;max-width:400px!important;margin-inline:auto!important;
}
body.modern.living[data-room=public] #chapel .chapel-command .chapel-filters{gap:8px!important}
body.modern.living[data-room] :is(.public-room-actions,.family-room-actions,#myChapelBody>.sanctuary-actions:has([data-modal=candle])) button,
body.modern.living[data-room=public] #chapel .chapel-command .chapel-filters .chip,
body.modern.living[data-room] #roomToolbar button{
 box-sizing:border-box!important;min-height:44px!important;height:44px!important;padding:6px 8px!important;
 border:1px solid #d2bc962b!important;border-radius:14px!important;background:#1b15113d!important;
 color:#e3ddd2!important;font:400 14px/1.2 Arial,sans-serif!important;
 box-shadow:none!important;text-shadow:0 1px 3px #000b!important;backdrop-filter:blur(4px)!important;
}
body.modern.living[data-room=public] #chapel .chapel-command .chapel-filters .chip.on{background:#6b503d59!important;border-width:1px!important}
body.modern.living[data-room] #roomToolbar{max-width:440px!important;padding-inline:16px!important;gap:8px!important}
body.modern.living[data-room] #roomToolbar :is(#roomMusicButton,#roomEditButton,#roomTextButton,[data-exit-room]){
 flex:1 1 0!important;width:0!important;min-width:0!important;max-width:none!important;
}
body.modern.living[data-room] #roomToolbar [data-exit-room]{font-size:25px!important;font-weight:400!important}
body.modern.living[data-room]:not(.room-quiet) #roomToolbar #roomTextButton{
 border:2px solid #d6c6a3!important;background:#21191166!important;color:#f5ecda!important;
}
body.modern.living[data-room] :is(.public-room-actions,.family-room-actions,.chapel-filters,#roomToolbar) button:focus-visible{
 outline:2px solid #f1dfb6!important;outline-offset:3px!important;
}
body.modern.living :is(#myChapelBody,#family,#chapel) .candle-paper{
 padding:4px 9px!important;border:1px solid #aa8151!important;border-radius:3px!important;
 background:repeating-linear-gradient(0deg,#dab18209 0 1px,transparent 1px 3px),linear-gradient(115deg,#39281d 0%,#765338 24%,#4a3325 54%,#6d4b32 80%,#34231b 100%)!important;
 color:#e0e0de!important;-webkit-text-fill-color:#e0e0de!important;
 box-shadow:inset 0 0 0 1px #21150d,inset 0 0 0 2px #bc93614d,0 2px 4px #0008!important;
 font:500 16px/21px Georgia,'Times New Roman',serif!important;letter-spacing:.02em!important;
 text-shadow:0 1px 1px #100b08,0 -1px 0 #ffffff28!important;
}
body.modern.living :is(#myChapelBody,#family,#chapel) .candle-paper .candle-name-line{
 color:#e0e0de!important;-webkit-text-fill-color:#e0e0de!important;
 font:inherit!important;line-height:21px!important;text-shadow:inherit!important;
}
