/* Account screens: one task per page, comfortable phone controls. */
.account-page{width:min(720px,100%);margin:0 auto;color:var(--ink)}
.account-page *{box-sizing:border-box}
.account-back{display:inline-flex;align-items:center;gap:4px;min-height:44px;font-size:13px;color:var(--muted);margin:-8px 0 16px}
.account-back svg{width:18px;height:18px}
.account-page-title{margin-bottom:28px}
.account-page-title h1{font-size:28px;line-height:1.2;font-weight:650;margin-bottom:9px}
.account-page-title p{font-size:13px;line-height:1.5;color:var(--muted);margin:0}
.account-profile{padding:12px 0 30px}
.account-profile-header{display:flex;align-items:center;gap:24px}
.account-page .profile-photo{width:96px;height:96px;min-width:96px;max-width:96px;aspect-ratio:1/1;flex:0 0 96px;border-radius:50%;overflow:hidden;display:grid;place-items:center;background:var(--sage);border:1px solid var(--line);color:var(--green);font-size:36px;font-weight:650}
.account-page .profile-photo img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%}
.account-identity{min-width:0;flex:1}
.account-identity h1{font-size:25px;line-height:1.3;margin:0 0 7px;font-weight:650;overflow-wrap:anywhere}
.account-identity p{font-size:13px;color:var(--muted);margin:0 0 10px;overflow-wrap:anywhere}
.account-caption{font-size:11px;color:var(--muted)}
.account-card{border:1px solid var(--line);border-radius:16px;background:var(--white);padding:24px;margin-bottom:18px;min-width:0}
.account-card h2{font-size:15px;font-weight:650;margin:0 0 22px}
.account-goal-summary{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:22px}
.account-goal-summary>div{display:flex;flex-direction:column;gap:6px}
.account-goal-summary strong{font-size:21px;color:var(--green);font-weight:650}
.account-goal-summary span,.account-target-date span{font-size:11px;color:var(--muted)}
.account-target-date{border-top:1px solid var(--line);padding-top:16px;display:flex;justify-content:space-between;gap:12px;align-items:center}
.account-target-date b{font-size:12px;font-weight:550;text-align:right}
.account-settings-group{margin-bottom:26px}
.account-settings-group>h2{font-size:11px;letter-spacing:.5px;text-transform:uppercase;color:var(--muted);margin:0 0 10px;padding-left:2px}
.account-setting-list{border:1px solid var(--line);border-radius:15px;overflow:hidden;background:var(--white)}
.account-setting-row{display:flex;align-items:center;gap:14px;width:100%;min-height:78px;padding:16px 20px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);text-align:left;text-decoration:none}
.account-setting-row:last-child{border-bottom:0}
.account-setting-row:hover{background:var(--sage)}
.account-setting-icon{width:22px;height:24px;flex:0 0 22px;color:var(--green)}
.account-setting-icon svg{width:22px;height:22px}
.account-setting-copy{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}
.account-setting-copy b{font-size:14px;font-weight:600}
.account-setting-copy small{font-size:11px;line-height:1.4;color:var(--muted);overflow-wrap:anywhere}
.account-chevron{font-size:24px;color:var(--muted);font-weight:400}
.account-email{padding:18px 20px;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:6px;min-width:0}
.account-email span{font-size:11px;color:var(--muted)}
.account-email b{font-size:13px;font-weight:500;overflow-wrap:anywhere}
.account-logout .account-setting-icon,.account-logout b{color:var(--orange)}
.account-editor-page{max-width:600px}
.account-field{display:block;font-size:13px;font-weight:600;line-height:1.5;margin-bottom:22px}
.account-field span{font-size:11px;font-weight:400;color:var(--muted)}
.account-field input,.account-field select{display:block;margin-top:9px;width:100%;min-width:0;max-width:100%;min-height:48px;border:1px solid var(--line);border-radius:9px;padding:11px 12px;font:400 16px/1.5 var(--sans);background:var(--paper);color:var(--ink);color-scheme:light}
html[data-theme="yoru"] .account-field input,html[data-theme="yoru"] .account-field select{color-scheme:dark}
.account-field input:focus,.account-field select:focus{outline:2px solid var(--green);outline-offset:2px}
.account-help{font-size:12px;line-height:1.7;color:var(--muted);margin:0 0 10px}
.account-editor-actions{border-top:1px solid var(--line);margin-top:22px;padding-top:18px;display:flex;justify-content:space-between;gap:16px;align-items:center}
.account-cancel{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:9px 14px;font-size:13px;color:var(--muted)}
.account-save{min-height:46px;min-width:130px;border-radius:9px}
.account-form-status{font-size:12px;line-height:1.7;color:var(--green);margin:16px 0 0;overflow-wrap:anywhere}
.account-form-status:empty{display:none}
.account-form-status.is-error{color:var(--orange);padding:12px;background:var(--paper);border-left:3px solid var(--orange);border-radius:5px}
.account-photo-editor{text-align:center;padding:8px 0}
.account-page .account-photo-preview{width:144px;height:144px;min-width:144px;max-width:144px;flex-basis:144px;margin:0 auto 24px}
.account-gallery-button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 20px;margin:0 0 16px;background:var(--sage);color:var(--green);border:1px solid var(--line);border-radius:9px;font-size:13px;font-weight:600;cursor:pointer}
.account-file-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;opacity:0;overflow:hidden;clip:rect(0,0,0,0)}
.account-photo-status{font-size:12px;line-height:1.6;color:var(--green);margin:8px 0}
.account-page .profile-progress-row{grid-template-columns:120px minmax(0,1fr) 42px}
.account-page .profile-progress-row>div{min-width:0}
.account-page .profile-progress-row>div span{font-size:11px}
.topbar-actions{margin-left:auto;flex-shrink:0}
.profile-trigger,.theme-trigger{width:44px!important;height:44px!important}
body.auth-locked .profile-trigger{display:none}
@media(max-width:560px){
 .account-page-title{margin-bottom:22px}
 .account-page-title h1{font-size:25px}
 .account-card{padding:20px;border-radius:14px}
 .account-profile-header{gap:16px;align-items:center}
 .account-page .profile-photo{width:80px;height:80px;min-width:80px;max-width:80px;flex-basis:80px;font-size:30px}
 .account-identity h1{font-size:22px}
 .account-identity p{font-size:12px}
 .account-setting-row{min-height:78px;padding:16px;gap:13px}
 .account-email{padding:16px}
 .account-goal-summary strong{font-size:19px}
 .account-page .profile-progress-row{grid-template-columns:98px minmax(0,1fr) 36px;gap:8px}
 .account-page .account-photo-preview{width:140px;height:140px;min-width:140px;max-width:140px;flex-basis:140px}
 .account-page .profile-progress-row>div span{font-size:10px}
}

#toast{z-index:100;max-width:min(90vw,420px);text-align:center}@media(max-width:800px){#toast{bottom:calc(90px + env(safe-area-inset-bottom,0px));}}

.profile .avatar{flex:0 0 35px;width:35px;height:35px;aspect-ratio:1/1;border-radius:50%;overflow:hidden}.profile .avatar img{display:block;width:100%;height:100%;object-fit:cover}

html[data-theme="yoru"] .account-save{color:var(--paper);font-weight:650}
