:root{--ink:#252047;--muted:#5e5b70;--purple:#5b46c9;--purple-dark:#44339e;--light:#fffaf6;--line:#e6e2ee;--card:#fff;--focus:#20205a;--soft-shadow:0 12px 32px rgba(58,43,93,.09)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--light);color:var(--ink);font-family:ui-rounded,system-ui,-apple-system,"Segoe UI",sans-serif;font-size:18px;line-height:1.55}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.58}button:focus-visible,input:focus-visible,textarea:focus-visible,a:focus-visible{outline:4px solid var(--focus);outline-offset:3px}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.19;letter-spacing:-.025em}h1{font-size:clamp(2.15rem,4vw,3.3rem)}h2{font-size:clamp(1.65rem,3vw,2rem)}h3{font-size:1.25rem}p{margin-bottom:1rem}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip{position:absolute;top:-100px;left:12px;background:#fff;padding:12px;z-index:100}.skip:focus{top:10px}
.site-header{background:#fff;box-shadow:0 1px 0 #eee6e9}.header-wrap{max-width:1200px;margin:auto;padding:17px 24px;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.brand{display:flex;align-items:center;gap:12px}.brand-mark{display:grid;place-items:center;border-radius:16px;width:50px;height:50px;background:#fbd85b;color:#5140b1;font-size:2rem}.brand-name{font-weight:900;font-size:1.35rem;letter-spacing:-.05em;line-height:1.1}.brand-tagline{font-size:.81rem;color:var(--muted)}.mode-nav{display:flex;background:#f4f0fd;border-radius:16px;padding:5px;gap:5px}.mode{font-weight:800;border:0;border-radius:12px;background:transparent;padding:12px 17px;color:#554c79;min-height:46px}.mode.active{background:var(--purple);color:white;box-shadow:0 4px 14px #5846be31}.container{max-width:1200px;padding:20px 24px 60px;margin:auto}.demo-banner{padding:13px 18px;background:#fff5d9;border:1px solid #f2d99a;border-radius:15px;font-size:.87rem;color:#51422a;margin-bottom:18px}.top-actions{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 18px}.utility{border:1px solid #ddd7ed;background:#fff;color:#3d3763;min-height:45px;border-radius:12px;padding:9px 14px;font-weight:750;font-size:.89rem}.utility[aria-pressed=true]{border-color:var(--purple);background:#efeaff}.welcome{position:relative;overflow:hidden;background:linear-gradient(117deg,#f5d4ff 0%,#f9d7c2 56%,#ffe59b 100%);border-radius:30px;min-height:304px;display:flex;align-items:center;justify-content:space-between;padding:38px clamp(24px,5vw,60px);gap:16px}.welcome::after{content:"";position:absolute;width:220px;height:220px;border:3px solid #ffffff75;border-radius:50%;right:200px;top:-140px}.welcome-content{max-width:650px;z-index:1}.welcome-content h1{max-width:650px;margin:12px 0}.welcome-content p{font-size:1.1rem;max-width:530px}.eyebrow{color:#5f4386;text-transform:uppercase;font-weight:900;letter-spacing:.095em;font-size:.73rem}.welcome-actions,.button-group{display:flex;gap:10px;flex-wrap:wrap}.button{display:inline-flex;justify-content:center;align-items:center;text-decoration:none;gap:8px;border-radius:15px;border:2px solid transparent;padding:13px 19px;min-height:54px;font-size:1rem;font-weight:850;line-height:1.25;transition:transform .13s ease,background .13s ease}.button:hover:not(:disabled){transform:translateY(-2px)}.button-primary{background:var(--purple);color:#fff}.button-primary:hover{background:var(--purple-dark)}.button-white{color:#4235a0;background:white;border-color:#fff}.button-white:hover{background:#f7f3ff}.button-soft{color:var(--purple-dark);background:#efedff;border-color:#ded7ff}.button-coral{color:#5e243b;background:#ffd5dc;border-color:#ffc3ce}.sunny{position:relative;flex:0 0 200px;display:flex;flex-direction:column;align-items:center;z-index:1}.sunny-halo{position:absolute;inset:6px 3px auto;width:194px;height:194px;border-radius:50%;background:#fff7b6;opacity:.6}.sunny-face{position:relative;height:158px;width:158px;margin:20px auto 7px;background:linear-gradient(150deg,#ffb6a8,#ff866d);border-radius:48% 52% 45% 53%;box-shadow:0 12px 20px #9e4c7130;transform:rotate(-5deg)}.sunny-eye{position:absolute;top:61px;width:12px;height:19px;background:#59355a;border-radius:50%}.eye-left{left:49px}.eye-right{right:49px}.sunny-smile{position:absolute;top:78px;left:63px;width:35px;height:23px;border:5px solid #723e5e;border-top:0;border-radius:0 0 60px 60px}.sunny-cheek{position:absolute;top:86px;width:25px;height:14px;border-radius:50%;background:#f47077}.cheek-left{left:24px}.cheek-right{right:24px}.sunny-caption{font-weight:900;font-size:.9rem;color:#60466d}.dashboard{margin:30px 0}.section-header{display:flex;align-items:end;justify-content:space-between;gap:15px}.section-header h2{margin:5px 0 18px}.small-note{font-size:.83rem;color:var(--muted);margin-bottom:22px}.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.tile{border:2px solid transparent;min-height:174px;padding:24px 24px 19px;border-radius:24px;text-align:left;color:#232042;display:flex;flex-direction:column;align-items:start;box-shadow:0 6px 14px #594c5711;transition:transform .14s,box-shadow .14s}.tile:hover{transform:translateY(-3px);box-shadow:var(--soft-shadow)}.tile:focus-visible{border-color:var(--focus)}.tile-icon{display:grid;place-items:center;background:#ffffff85;border-radius:18px;width:58px;height:58px;font-size:1.8rem;margin-bottom:11px}.tile-name{font-weight:900;font-size:1.22rem;line-height:1.2}.tile-description{font-size:.9rem;color:#494253;margin-top:6px}.tile-purple{background:#e4d5ff}.tile-coral{background:#ffd8c9}.tile-teal{background:#bceee6}.tile-yellow{background:#ffecaa}.tile-pink{background:#ffd9e6}.tile-blue{background:#ceeaff}.detail{background:#fff;border:1px solid var(--line);border-radius:25px;padding:clamp(22px,4vw,36px);box-shadow:var(--soft-shadow);margin:25px 0}.back{border:0;background:#f2effc;color:#503da9;border-radius:12px;padding:12px 16px;min-height:48px;font-size:.92rem;font-weight:850;margin-bottom:23px}.detail-heading{display:flex;gap:15px;align-items:center;margin-bottom:14px}.detail-heading h2{margin:3px 0}.heading-emoji{font-size:2.35rem;background:#fff4d7;border-radius:18px;display:grid;place-items:center;min-width:68px;height:68px}.explain{color:#504b65;max-width:810px}.conversation{background:#faf8ff;border:1px solid #e7e0fa;border-radius:20px;min-height:220px;max-height:380px;overflow-y:auto;padding:18px;margin:22px 0}.bubble{max-width:75%;border-radius:19px;padding:13px 18px;margin:0 0 14px;overflow-wrap:anywhere}.bubble p{margin:5px 0 0}.sunny-bubble{background:#e6dbff;margin-right:auto;border-bottom-left-radius:4px}.user-bubble{background:#caede6;margin-left:auto;border-bottom-right-radius:4px}.bubble-name{display:block;font-size:.82rem;font-weight:900}.suggestions{display:flex;gap:9px;flex-wrap:wrap;margin:10px 0 18px}.suggest{border:2px solid #dbcffa;border-radius:30px;background:#fff;color:#48339e;font-weight:800;min-height:44px;padding:9px 15px}.chat-form{display:flex;gap:10px;align-items:stretch}.chat-form input{min-width:80px;flex:1}.footnote{font-size:.86rem;color:var(--muted);margin:12px 0 0}input,textarea{color:var(--ink);background:#fff;border:2px solid #c8c0d7;border-radius:13px;padding:14px 15px;min-height:54px;width:100%;line-height:1.4}textarea{resize:vertical}.stack{display:grid;gap:14px}.note-card,.story-card{background:#faf8ff;border:1px solid #e8e0fa;border-radius:18px;padding:19px}.note-card p,.story-card p{margin:8px 0}.note-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.note-name{font-weight:900}.note-date{font-size:.8rem;color:var(--muted)}.mini-button{border:1px solid #d5c8f8;background:white;color:#4b39a2;font-weight:800;border-radius:10px;padding:10px 14px;min-height:42px;margin-top:7px}.sub-panel,.recorder{margin-top:24px;padding:23px;border-radius:20px;background:#fff9ea;border:1px solid #f5e6c0}.sub-panel h3,.recorder h3{margin-bottom:12px}label{display:block;font-weight:800;margin:0 0 8px}form .button{margin-top:12px}.photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.photo-card{background:#fff;border:1px solid var(--line);border-radius:22px;overflow:hidden;margin:0;box-shadow:0 6px 18px #4c436a0b}.photo-card img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;display:block}.photo-card figcaption{padding:18px;display:grid;gap:5px}.photo-card figcaption strong{font-size:1.12rem}.photo-card figcaption span{font-size:.9rem;color:var(--muted)}.prompt-card{background:#e1f4eb;border-radius:20px;padding:24px;margin:17px 0 27px}.prompt-card p{font-size:1.25rem;font-weight:800;margin:8px 0 14px}.field{margin-bottom:18px}.club-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0}.club-card{border-radius:20px;border:1px solid var(--line);padding:22px;background:#fff}.club-card:nth-child(4n+1){background:#f2ecff}.club-card:nth-child(4n+2){background:#fff3db}.club-card:nth-child(4n+3){background:#e4f6f2}.club-card:nth-child(4n+4){background:#ffeaf1}.club-emoji{font-size:2rem}.club-title{font-weight:900;font-size:1.2rem;margin:8px 0}.club-meta{font-size:.85rem;color:#504a65;font-weight:750}.club-desc{margin:9px 0 14px}.friend-callout{display:flex;gap:16px;background:#e5f5fb;padding:20px;border-radius:18px}.friend-callout>span{font-size:2rem}.friend-callout p{margin:5px 0 0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.interests{border:0;padding:0;margin:12px 0 19px}.interests legend{font-weight:900;margin-bottom:12px}.choice-grid{display:flex;gap:10px;flex-wrap:wrap}.interest-choice{display:inline-flex;align-items:center;gap:9px;border:2px solid #d5cee9;background:#fff;border-radius:30px;padding:11px 16px;cursor:pointer;font-weight:800}.interest-choice:has(input:checked){background:#e5dbff;border-color:#6e4fd1}.interest-choice input{width:18px;height:18px;min-height:0;accent-color:#5b46c9;margin:0}.resident-footer{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap;margin:34px 0;color:#605a70;font-size:.83rem}.resident-footer p{margin:0}.plain-button{background:transparent;border:0;text-decoration:underline;color:#54459f;font-weight:800;padding:10px}.family-hero{background:linear-gradient(115deg,#dfd2ff,#ffdacb);padding:40px;border-radius:28px}.family-hero h1{margin:8px 0}.family-hero p{max-width:720px;margin:0}.family-layout{display:grid;grid-template-columns:1fr 1fr;gap:18px}.family-box{margin:20px 0}.family-box h3{font-size:1.05rem;margin:22px 0 13px}.family-note{background:#fff5dc;padding:20px;border-radius:18px;font-size:.92rem}
body.large-type{font-size:23px}body.large-type .tile-name{font-size:1.4rem}body.large-type .tile-description,body.large-type .small-note,body.large-type .footnote,body.large-type .brand-tagline,body.large-type .eyebrow,body.large-type .mode,body.large-type .utility,body.large-type .demo-banner{font-size:1rem}body.high-contrast{--ink:#111122;--muted:#29293a;--purple:#39249e;--purple-dark:#25146f;--light:#fff;--line:#4a4352;--focus:#000}body.high-contrast .tile{border:3px solid #232039}body.high-contrast .demo-banner{color:#211700;border:2px solid #302207}body.high-contrast .welcome{background:#fff0c4}body.high-contrast .eyebrow{color:#3c215b}body.high-contrast .mode-nav{background:#ddd6ff}
@media(max-width:820px){.tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.welcome{padding:28px}.sunny{flex-basis:156px}.sunny-halo{width:150px;height:150px}.sunny-face{width:126px;height:126px}.sunny-eye{top:48px}.eye-left{left:39px}.eye-right{right:39px}.sunny-smile{top:65px;left:49px}.sunny-cheek{top:76px}.cheek-left{left:18px}.cheek-right{right:18px}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.container{padding:15px 14px 45px}.header-wrap{padding:12px 15px}.brand-name{font-size:1.2rem}.brand-mark{width:42px;height:42px}.mode-nav{width:100%;justify-content:space-around}.mode{flex:1}.demo-banner{font-size:.8rem}.welcome{min-height:0;display:block;padding:26px 20px}.welcome-content h1{font-size:2.12rem;max-width:360px}.welcome-content p{font-size:1rem}.sunny{position:absolute;top:17px;right:5px;transform:scale(.58);transform-origin:top right;opacity:.9}.sunny-caption{display:none}.welcome-content{position:relative;z-index:2}.welcome-content .eyebrow{max-width:220px}.welcome-actions{margin-top:15px}.welcome-actions .button{min-height:50px}.tiles{gap:11px}.tile{padding:17px 14px;min-height:159px;border-radius:19px}.tile-icon{width:47px;height:47px;font-size:1.5rem}.tile-name{font-size:1.08rem}.tile-description{font-size:.82rem}.section-header{align-items:start}.small-note{display:none}.detail{padding:20px 16px;border-radius:21px}.detail-heading{gap:10px}.heading-emoji{min-width:54px;height:54px;font-size:1.75rem}.chat-form{flex-wrap:wrap}.chat-form input{flex:1 0 100%}.chat-form .button{flex:1}.bubble{max-width:94%}.club-grid,.photo-grid,.family-layout,.form-grid{grid-template-columns:1fr}.family-hero{padding:25px 19px}.top-actions{gap:7px}.utility{padding:8px 10px;font-size:.82rem}.resident-footer{display:block}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}

/* Optional, inclusive faith and reflection features */
.tile-mint{background:#b6f1d5}
.faith-options{background:#f7efff;border:1px solid #e3d9f2;border-radius:19px;padding:20px;margin:20px 0}
.faith-options select{width:100%;max-width:500px;min-height:56px;border:2px solid #c8c0d7;border-radius:13px;background:#fff;color:var(--ink);font:inherit;padding:11px}
.faith-options select:focus-visible{outline:4px solid var(--focus);outline-offset:3px}
.faith-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:22px 0}
.faith-card{border-radius:20px;padding:24px;border:1px solid var(--line);min-width:0}
.faith-reading{background:#eef5ff}.faith-music{background:#fff0dc}.faith-peace{background:#edfaee}.faith-time{background:#f7efff}
.faith-icon{font-size:2rem;display:block;margin-bottom:8px}.faith-card h3{margin-bottom:11px}.faith-card h4{margin:18px 0 9px}.faith-card p{overflow-wrap:anywhere}
.faith-readings{margin:12px 0 0;padding-left:23px}.faith-readings li{margin:8px 0}
.faith-hymns{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:15px 0}
.faith-song{border:2px solid #c9b8dc;border-radius:11px;padding:11px 14px;background:#fff;color:var(--ink);text-align:left;font-weight:800;min-height:49px}
.faith-song[aria-pressed=true]{border-color:#8654b3;background:#f6e8ff}
.faith-favourite{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-top:1px solid #e2d5dd}
.faith-favourite span{overflow-wrap:anywhere}.faith-favourite button{border:1px solid #b9a6ca;border-radius:9px;background:#fff;padding:8px 11px;color:#463375;font-weight:800}
.faith-quote{font-size:1.17rem;font-weight:750;line-height:1.65}
.faith-time input[type=time]{max-width:250px;display:block;margin:10px 0}
@media(max-width:700px){.faith-grid{grid-template-columns:1fr}.faith-card{padding:20px}}

/* Gentle, optional wishes & legacy pages: bright, respectful, never compulsory */
.tile-lilac{background:#f0ddff}
.legacy-note{background:#f1edff;border:1px solid #d9cef6;padding:19px 22px;border-radius:19px;margin:19px 0}
.legacy-note p{margin:8px 0 0}.legacy-intro{background:linear-gradient(125deg,#fff1d6,#f6e7ff);border-radius:22px;padding:30px;max-width:760px;margin:23px 0}
.legacy-flower{font-size:2.6rem}.legacy-intro h3{font-size:1.4rem;margin:10px 0}
.legacy-intro p{max-width:650px}.legacy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:22px 0}
.legacy-card{border:1px solid #dfd6ed;padding:21px;border-radius:20px;min-width:0;background:#fff7ee}
.legacy-card:nth-child(2){background:#f0edff}.legacy-card:nth-child(3){background:#ebfaf5}.legacy-card:nth-child(4){background:#ffebf3}
.legacy-card h3{font-size:1.17rem;margin:0 0 16px}
.legacy-card select,.legacy-share select{background:#fff;border:2px solid #c8c0d7;border-radius:13px;min-height:54px;padding:11px 13px;width:100%;font:inherit;color:var(--ink)}
.legacy-share{border:1px solid #d8ccf6;background:#f7f2ff;border-radius:20px;padding:23px;margin:24px 0}.legacy-share p{max-width:780px}
.legacy-preview{background:#f3fff8;border:1px solid #b6dfcb;border-radius:21px;padding:24px;margin:26px 0}.legacy-preview h3{font-size:1.35rem;margin:0 0 8px}
.legacy-preview-content{display:grid;grid-template-columns:1fr 1fr;gap:14px}.legacy-preview-row{padding:14px;border-radius:13px;background:white;border:1px solid #d2e7d9;min-width:0;overflow-wrap:anywhere}.legacy-preview-row p{margin:7px 0 0;white-space:pre-wrap}
@media(max-width:700px){.legacy-grid,.legacy-preview-content{grid-template-columns:1fr}.legacy-intro{padding:22px}.legacy-card,.legacy-share{padding:19px}}
