/* Compact, readable personal navigation. */
body.modern #profile .profile-menu{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:24px 0}
body.modern #profile .profile-menu .secondary{display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;gap:14px!important;align-items:center!important;min-height:100px!important;padding:18px!important;border-radius:18px!important;text-align:left!important;border:1px solid #ddd5e2!important;background:#fff!important;transition:box-shadow .18s,border-color .18s}
body.modern #profile .profile-menu .secondary:hover{border-color:#896896!important;box-shadow:0 5px 20px #34243812!important}
body.modern #profile .profile-menu .secondary .menu-symbol{display:grid!important;place-items:center;width:48px!important;height:48px!important;border-radius:14px!important;background:#f2edf5!important;color:#634373!important;font-size:25px!important;margin:0!important;line-height:1!important}
body.modern #profile .profile-menu .secondary>span{font-size:18px!important;font-weight:750!important;line-height:1.3!important;color:#392642!important;min-width:0}
body.modern #profile .profile-menu .secondary .menu-count{display:block!important;margin-top:5px!important;font-size:14px!important;line-height:1.4!important;font-weight:400!important;color:#695a71!important}
body.modern #profile .profile-menu .secondary.family-menu-card{border-color:#bca678!important;background:#fffcf6!important}
body.modern #profile .profile-menu .family-menu-card .menu-symbol{background:#f1e5cf!important;color:#785821!important}
body.modern details.chapel-settings{padding:0!important;overflow:hidden}
body.modern details.chapel-settings>summary{padding:18px 20px;cursor:pointer;color:#493453;font-size:18px;font-weight:700;min-height:62px;list-style-position:inside}
body.modern details.chapel-settings>form,body.modern details.chapel-settings>div,body.modern details.chapel-settings>article,body.modern details.chapel-settings>button,body.modern details.chapel-settings>p{margin:12px 20px 20px}
body.modern details.chapel-settings>button{width:calc(100% - 40px)}
body.modern .family-theme-picker{margin:16px 0;padding:0;border:0;min-width:0}
body.modern .family-theme-picker legend{font-size:17px;font-weight:700;color:#493453;padding:0 0 12px}
body.modern .family-theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:440px;overflow:auto;padding:4px}
body.modern .family-theme-options .family-theme-option{position:relative;margin:0;display:block;min-width:0;border:2px solid transparent;border-radius:12px;overflow:hidden;background:#f6f3f7;cursor:pointer}
body.modern .family-theme-option img{display:block;width:100%;height:140px;object-fit:cover;object-position:center 38%}
body.modern .family-theme-option span{display:block;padding:10px 8px;color:#423249;font-size:15px;line-height:1.3}
body.modern .family-theme-option input[type=radio]{position:absolute;right:7px;top:7px;width:22px;height:22px;min-height:0;padding:0;margin:0;accent-color:#725084}
body.modern .family-theme-option:has(input:checked){border-color:#725084;background:#eee5f3;box-shadow:0 0 0 2px #72508425}
body.modern .family-theme-option:has(input:focus-visible){outline:3px solid #8d632c;outline-offset:2px}
body.modern .family-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:24px}
body.modern .family-entrance{position:relative;display:block;height:300px;padding:0;border:1px solid #b49664;border-radius:22px;overflow:hidden;background:#1b1717;text-align:left;color:#fff}
body.modern .family-entrance>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 40%}
body.modern .family-entrance>span{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:end;gap:6px;padding:24px;background:linear-gradient(transparent 10%,#100c19ed);color:#fff}
body.modern .family-entrance strong{font-size:25px;line-height:1.3;color:#fff}
body.modern .family-entrance small,body.modern .family-entrance span span{font-size:16px;color:#f7e3bd}
body.modern .family-chapel-room{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:space-between;min-height:680px;min-height:min(800px,90svh);border-radius:24px;overflow:hidden;margin:18px 0 12px;padding:26px 22px 20px;background:#100f13 var(--family-background) center 45%/cover no-repeat;color:white;border:1px solid #8f714d}
body.modern .family-chapel-room:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(#090810c9 0,transparent 32%,#0e0a1270 58%,#100b12f5 100%)}
body.modern .family-room-title{text-align:center}
body.modern .family-room-title h2{color:white!important;font-size:clamp(24px,5vw,34px)!important;line-height:1.25!important;margin:8px 0!important;text-shadow:0 2px 12px #000!important}
body.modern .family-room-title p,body.modern .family-room-title span{color:#f5e6d1!important;font-size:15px!important;line-height:1.5;margin:8px 0}
body.modern .family-altar-candles{display:grid;grid-template-columns:repeat(auto-fit,minmax(74px,1fr));justify-content:center;gap:16px 8px;align-items:end;max-height:270px;overflow:auto;margin:180px 0 22px;padding:26px 4px 10px;scrollbar-color:#ac8a55 #15121a}
body.modern .family-altar-candle{display:flex;flex-direction:column;align-items:center;justify-content:end;background:none;border:0;border-radius:10px;padding:4px;color:white;min-width:0;max-width:130px;width:100%;margin:auto;min-height:140px}
body.modern .family-altar-candle:hover,body.modern .family-altar-candle:focus-visible{background:#ffffff13}
body.modern .family-wax{position:relative;display:block;width:32px;height:88px;margin:10px auto 12px;filter:drop-shadow(0 0 15px #fbc76b66)}
body.modern .family-wax img{width:100%;height:100%;object-fit:fill}
body.modern .family-wax .flame{left:calc(50% - 6px);top:-19px}
body.modern .family-altar-candle strong{font-size:15px;line-height:1.35;color:#fff;overflow-wrap:anywhere}
body.modern .family-altar-candle small{font-size:13px;color:#e0cda9;margin-top:4px;overflow-wrap:anywhere}
body.modern .family-room-actions{display:flex;flex-wrap:wrap;gap:10px}
body.modern .family-room-actions button{flex:1;min-width:130px}
body.modern .family-room-actions .primary{background:#ebcf96!important;border-color:#ebcf96!important;color:#302016!important}
body.modern .family-room-actions .secondary{background:#201724d9!important;border-color:#aa957c!important;color:white!important}
body.modern .family-room-empty{color:#fff!important;text-align:center;grid-column:1/-1;background:#160f1aac;border-radius:14px;padding:16px;font-size:17px!important}
body.modern .family-room-note{color:#695a71!important;font-size:15px!important;line-height:1.5!important;margin:10px 0 24px!important}
body.modern #familyCompose{scroll-margin-top:90px}
body.modern #familyDedication{width:min(92vw,480px);border-radius:22px;border:1px solid #a58a64;background:#fffaf3;color:#382a3d;padding:26px;max-height:85vh}
body.modern #familyDedication::backdrop{background:#100d18bd}
body.modern #familyDedication p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:19px;line-height:1.65}
body.modern #familyDedication small{display:block;margin:18px 0;color:#675370;font-size:15px}
@media(max-width:600px){body.modern #profile .profile-menu{grid-template-columns:1fr}body.modern #profile .profile-menu .secondary{min-height:86px!important;padding:16px!important}body.modern .family-list{grid-template-columns:1fr}body.modern .family-theme-options{grid-template-columns:repeat(2,minmax(0,1fr))}body.modern .family-chapel-room{margin:18px -8px 10px;padding:22px 14px 16px;min-height:620px;border-radius:20px}body.modern .family-altar-candles{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:170px;max-height:230px}body.modern .family-room-actions button{font-size:16px!important;padding:12px!important}}

body.modern #familyDedication{overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;max-height:85dvh}
body.modern #familyDedication h2{overflow-wrap:anywhere}
body.modern #familyDedication .secondary{display:block;width:100%;box-sizing:border-box;margin-top:14px;min-height:48px}
