.profile-entry,.account-entry{display:flex;align-items:center;width:100%;gap:16px;text-align:left;background:#fff;border:1px solid var(--line,#e7e4d9);border-radius:20px;padding:20px;color:var(--ink,#27271f);margin-bottom:16px;box-shadow:none}
.profile-entry-copy{flex:1;min-width:0}.profile-entry-copy strong{display:block;overflow-wrap:anywhere;font-size:1.2rem}.profile-entry-copy>span{display:block;margin-top:6px;color:#69685f;font-size:.95rem}
.account-entry{justify-content:space-between;min-height:62px;font-weight:650}
.profile-avatar{display:grid;place-items:center;position:relative;flex:none;width:64px;height:64px;border-radius:50%;background:#fff1b4;color:#514100;font-size:1.6rem;font-weight:700;overflow:hidden}
.profile-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.profile-avatar.large{width:96px;height:96px;font-size:2rem}
.profile-page{max-width:760px;min-height:100dvh;margin:auto;padding:16px 20px calc(24px + env(safe-area-inset-bottom,0px));background:#fff;overflow-wrap:anywhere;box-sizing:border-box}
body:has(.profile-page, #phone-form) .cartoon-float{visibility:hidden}
.profile-header{display:flex;gap:16px;align-items:center;padding:12px 0 24px}.profile-header h1{font-size:1.4rem;margin:0}.profile-header .back-button{margin:0;flex:none}
.profile-body{min-width:0}.profile-photo{display:flex;flex-direction:column;align-items:center;gap:12px;padding:12px 0 24px}.profile-photo label{position:relative;cursor:pointer;display:flex;align-items:center;justify-content:center;overflow:hidden;min-height:48px}.profile-file{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.profile-photo p:empty{display:none}.profile-photo p{margin:0;text-align:center}
.profile-fields{display:grid;gap:12px;background:#fff;border:1px solid var(--line,#e7e4d9);border-radius:20px;padding:24px}.profile-fields>label{font-weight:650;margin-top:8px}.profile-fields input,.profile-fields select{width:100%;min-width:0;min-height:54px;font:inherit;box-sizing:border-box}.profile-optional{font-size:.85rem;font-weight:400;color:#6c6a5f;margin-left:6px}.profile-age{margin:0;color:#6c6a5f;font-size:.9rem}.profile-age:empty{display:none}
.profile-gender{border:0;padding:0;margin:12px 0;display:flex;flex-wrap:wrap;gap:8px;min-width:0}.profile-gender legend{margin-bottom:12px;font-weight:650}.profile-gender label{flex:1;position:relative;min-width:70px}.profile-gender input{position:absolute;opacity:0;inset:0;cursor:pointer}.profile-gender label>span{display:flex;justify-content:center;align-items:center;min-height:52px;padding:8px;border:1px solid #cbc8bc;border-radius:12px;box-sizing:border-box;white-space:nowrap}.profile-gender input:checked+span{border-color:#ae8900;background:#fff2ba;color:#29271d}.profile-gender input:focus-visible+span{outline:3px solid #514100;outline-offset:2px}
.profile-save{position:sticky;z-index:24;bottom:0;margin:24px -20px 0;background:#fff;padding:14px 20px calc(14px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line,#e7e4d9)}
#profile-status{margin:0}#profile-status:empty{display:none}#profile-status:not(:empty),.email-form [role=status]:not(:empty){padding:12px 0;color:#65500a;line-height:1.6}#profile-conflict{margin-bottom:16px}
.security-list{border:1px solid var(--line,#e7e4d9);border-radius:20px;background:#fff;overflow:hidden}.security-list section{display:flex;align-items:center;gap:12px;padding:22px 18px;border-bottom:1px solid var(--line,#e7e4d9)}.security-list section:last-child{border:0}.security-list section>div{flex:1;min-width:0}.security-list h2{font-size:1.1rem;margin:0 0 6px}.security-list p{margin:0;color:#69685f;font-size:1rem;overflow-wrap:anywhere}.security-symbol{display:grid;place-items:center;flex:none;width:40px;height:40px;background:#fff4c6;border-radius:12px;color:#5f4c00;font-weight:650}.security-state{color:#69685f;font-size:.9rem}.security-list button{flex:none;min-height:48px}.email-form{margin-top:20px}.email-form h2{font-size:1.2rem;margin:0 0 8px}
@media(max-width:390px){.profile-fields{padding:18px}.security-list section{padding:18px 12px;gap:10px}.security-symbol{display:none}.profile-entry{padding:16px}.profile-header{gap:12px}.profile-header h1{font-size:1.25rem}}
.profile-page{padding-top:0;background:var(--paper)}.profile-header{position:sticky;top:0;z-index:12;padding:10px 20px;min-height:68px;margin:0 -20px 25px;border-bottom:1px solid var(--line);background:#fff}.profile-header h1{margin-left:auto;font-size:1.05rem}.profile-fields{padding:0;border:0;background:transparent}.profile-photo{align-items:flex-start}.profile-gender{margin-top:18px}
@media(max-height:500px){.profile-save{position:static}}
