
#local-profile-entry{display:inline-flex;align-items:center;gap:7px;margin-left:auto;border-radius:24px;padding:6px 14px;font-size:14px;min-height:40px}
#local-profile-entry svg{width:30px;height:30px;display:block}
body[data-local-profiles=checking] #app{visibility:hidden}
#profile-overlay{position:fixed;inset:0;z-index:1000;overflow:auto;background:#fbf9f0;color:#244b39;padding:24px 16px}
#profile-overlay[hidden]{display:none}
.profile-wrap{max-width:650px;margin:0 auto;padding-bottom:40px}
.profile-wrap h1{font-size:clamp(26px,5vw,34px);line-height:1.3;margin:20px 0 8px}
.profile-wrap p{color:#64715d;margin:8px 0 18px}
.profile-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:24px}
.profile-person{display:flex;flex-direction:column;gap:5px;align-items:center;margin:0;padding:18px 10px;background:#fffdf8;border:1px solid #d4dfcb;border-radius:20px}
.profile-person svg{width:88px;height:88px}
.profile-person strong{font-size:20px}
.profile-person small{font-size:13px}
.pin-input{display:block;width:200px!important;margin:12px auto 20px!important;text-align:center;letter-spacing:.5em;font-size:30px!important;padding:10px!important}
.profile-primary{display:block;width:100%;background:#244b39!important;color:#fff9df!important;border:0!important;border-radius:14px!important;padding:12px!important;margin:10px 0!important;font-weight:700}
.profile-quiet{background:transparent!important;border:0!important;padding:8px!important;margin:6px 0!important}
.profile-form{background:#fffdf8;border-radius:20px;padding:20px;margin-top:20px}
.profile-form label{display:block;font-weight:650}
.avatar-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:12px 0 22px}
.avatar-option{margin:0;padding:6px 3px;background:#fbf9f0;border:2px solid transparent;border-radius:12px;text-align:center}
.avatar-option[aria-pressed=true]{border-color:#244b39;background:#e8efdd}
.avatar-option svg{width:100%;max-width:82px;margin:auto;display:block}
.avatar-option small{display:block;font-size:11px;line-height:1.35;margin-top:3px;color:#526754}
.profile-note{background:#edf1e4;padding:14px;border-radius:14px;font-size:14px;margin-top:22px}
#profile-error{color:#963d53;white-space:pre-wrap}
.profile-close{float:right}
.profile-selected-avatar{width:110px;margin:20px auto}
.profile-selected-avatar svg{width:100%;display:block}
@media(min-width:560px){.profile-choices{grid-template-columns:repeat(3,minmax(0,1fr))}.avatar-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
.profile-entry-screen{background:#e2f2e9!important;display:flex;align-items:center;justify-content:center;padding:24px 16px!important}
.profile-entry-screen .profile-wrap{width:min(940px,100%);max-width:940px;margin:auto;padding:0}
.profile-entry-shell{display:grid;grid-template-columns:1fr 1fr;background:#fffdf7;border-radius:30px;overflow:hidden;box-shadow:0 18px 60px #38654c1a}
.profile-art-panel{background:#c6e9d7;display:flex;flex-direction:column;justify-content:center}
.profile-entry-art{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover}
.profile-art-panel>span{display:block;text-align:center;font-size:14px;letter-spacing:.03em;padding:18px 10px;color:#3b6653}
.profile-entry-card{padding:28px 30px;text-align:center}
.profile-entry-card>span{font-size:14px;font-weight:700}
.profile-entry-card h1{font-size:27px;margin:18px 0 8px}
.profile-entry-card .profile-selected-avatar{width:72px;margin:12px auto 16px}
.profile-entry-card .profile-form{margin:0;padding:0;background:transparent}
#profile-heading:focus{outline:none}
.profile-entry-card .profile-quiet{font-size:13px}
.profile-pin-label{text-align:center;font-size:14px}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.profile-pin-digits{position:relative;display:flex;justify-content:center;gap:9px;width:100%;max-width:268px;margin:10px auto 20px}
.profile-pin-digits .pin-input{position:absolute;inset:0;width:100%!important;height:62px!important;margin:0!important;padding:0!important;border:0!important;opacity:.01;z-index:2;cursor:text}
.profile-pin-digits span{display:grid;place-items:center;width:54px;height:62px;border-radius:14px;border:2px solid #d5e2d7;background:#f4f8ef;font-size:22px;color:#244b39}
.profile-pin-digits:focus-within span{border-color:#719d7d}
.profile-pin-digits:focus-within{outline:none}
.profile-pin-digits .pin-input:focus,.profile-pin-digits .pin-input:focus-visible{outline:none!important;box-shadow:none!important}
.profile-pin-digits .filled{background:#e7efde}
.avatar-option small{font-size:13px;font-weight:650;margin:5px 0 2px}
@media(max-width:640px){
 .profile-entry-screen{align-items:flex-start;padding:16px!important}
 .profile-entry-shell{grid-template-columns:1fr;max-width:430px;margin:auto;border-radius:24px}
 .profile-art-panel{position:relative;height:178px;overflow:hidden}
 .profile-entry-art{height:100%;width:100%;object-fit:cover;object-position:center 44%}
 .profile-art-panel>span{display:none}
 .profile-entry-card{padding:18px 22px 24px}
 .profile-entry-card h1{font-size:24px;margin:12px 0 6px}
 .profile-entry-card>p{font-size:14px;margin:6px 0 12px}
 .profile-entry-card .profile-selected-avatar{width:58px;margin:8px auto 12px}
 .profile-pin-digits span{height:56px;width:50px}
 .profile-pin-digits .pin-input{height:56px!important}
 .profile-entry-card .profile-close{position:absolute;right:28px;top:22px;background:#fffdf7e8!important}
 .avatar-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px 5px}
 .avatar-option small{font-size:12px}
}

/* A quiet front door: warm paper, picture-book companions, one clear action. */
.profile-entry-screen{background:#f0eee3!important;background-image:radial-gradient(ellipse at 15% 0,#dde7d4 0,transparent 55%)!important}
.profile-entry-shell{background:#fffdf7;box-shadow:0 20px 70px #5a62421a;border:1px solid #e3e2d1}
.profile-art-panel{background:#dce8d5}
.profile-art-panel>span{font-size:13px;color:#5e725a;letter-spacing:.06em}
.profile-entry-card{padding:32px 30px}
.profile-entry-card>p{margin-top:16px!important}.profile-entry-card>p .pin-instruction{display:block;line-height:1.5}
.profile-entry-card>p .pin-invitation{display:block;margin-top:4px;color:#507450;font-size:15px;font-weight:600}
.profile-entry-card .profile-selected-avatar{width:112px;margin:10px auto 6px}
.profile-entry-card h1{letter-spacing:-.04em}
.profile-entry-card .profile-form{max-width:300px;margin:0 auto}
.profile-pin-digits span{background:#fffdf7;border-color:#d7d8c7;box-shadow:0 2px 4px #6c72520a}
.profile-entry-card .profile-primary{box-shadow:0 4px 10px #244b3914}
.profile-person{border-radius:24px;background:#fffdf6;box-shadow:0 3px 12px #5f6c4910}
.profile-person svg{width:112px;height:112px}
.avatar-option{background:transparent;border-radius:20px}
.avatar-option[aria-pressed=true]{background:#e9efdf;border-color:#6d855d}
@media(max-width:640px){
 .profile-art-panel{height:150px}
 .profile-entry-card{padding:18px 22px 22px}
 .profile-entry-card .profile-selected-avatar{width:92px;margin:4px auto}
 .profile-entry-card>p{margin-bottom:4px}
 .profile-entry-card>p .pin-invitation{margin-top:4px;font-size:14px}
 .profile-entry-card h1{font-size:25px}
}

