.settings-screen .account-root{max-width:520px;padding-top:22px}.settings-screen .brand{display:none}.settings-screen .account-nav{position:sticky;top:0;z-index:2;background:#faf8fdf5;padding:6px 0 12px}.settings-group{margin:12px 0;border:1px solid #e9e2ef;background:#ffffffb5;border-radius:18px;overflow:hidden}.settings-group>summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;align-items:center;padding:19px 18px;font-size:16px;font-weight:600;min-height:76px}.settings-group>summary::-webkit-details-marker{display:none}.settings-group>summary:after{content:'›';font-size:25px;color:#aa9cb7}.settings-group[open]>summary:after{transform:rotate(90deg)}.settings-group small{display:block;color:#95879f;font-size:12px;font-weight:400;margin-top:6px}.settings-group>form,.settings-group>div,.settings-group>p,.settings-group>h2{margin-left:18px;margin-right:18px}.settings-group>button{max-width:calc(100% - 36px);margin-left:18px;margin-right:18px}.settings-group>form:last-child{padding-bottom:10px}.settings-group p{font-size:14px;line-height:1.8}.settings-group .toggle-row{display:flex;justify-content:space-between;align-items:center;padding:15px 0;border-bottom:1px solid #eee8f3;margin:0;gap:12px}.toggle-row input{width:20px;height:20px;accent-color:#8465aa;margin:0}.settings-group .text-button{background:transparent;color:#806399;font-size:13px;padding:8px 0;text-align:left;min-height:36px}.memory-card,.device-card{border-bottom:1px solid #eee8f3;padding:14px 0;overflow-wrap:anywhere}.memory-card p,.device-card p{margin:3px 0}.memory-card small,.device-card small{font-size:12px;color:#93839e}.row-actions{display:flex;gap:18px;margin-top:5px}.row-actions button{background:transparent;padding:8px 0;font-size:13px;color:#806399;width:auto;min-height:38px;margin:0}.settings-group .group-heading{font-size:14px;font-weight:500;margin-top:22px}.settings-screen .section-note{font-size:12px}.settings-screen #status{position:sticky;bottom:0;background:#faf8fdf5;border-radius:10px;padding:10px 0;z-index:2}.settings-screen #status:empty{display:none}.settings-group summary:focus-visible{outline:3px solid #b49ad0;outline-offset:-4px}.settings-screen input,.settings-screen select{max-width:100%}.settings-screen .danger{font-size:14px}

.founder-letter{padding:0 2px 16px}.founder-letter p{font-size:15px;line-height:1.95;color:#7e6c8b}.founder-letter .founder-intro{color:#654c7b;font-weight:600;font-size:17px}.founder-sign{text-align:right}.contact-card{padding:16px;background:#f3edf8;border-radius:16px;margin-top:22px}.contact-card h2{font-size:16px;color:#705682;margin:0}.contact-card a{display:block;min-height:48px;padding:12px 0;font-size:14px;overflow-wrap:anywhere;text-underline-offset:4px}.row-actions button,.settings-group .text-button{min-height:44px;padding:10px 8px}

.login-screen .brand{display:none}.login-screen .account-root{max-width:440px;padding:28px 28px 32px}.welcome-brand{display:flex;align-items:center;gap:12px;color:#8a749b;font-size:15px;letter-spacing:2px;margin-bottom:20px}.welcome-brand img{object-fit:contain;width:88px;height:88px}.account-root .welcome-title{font-family:"STKaiti","KaiTi",serif;font-size:34px;line-height:1.55;letter-spacing:2px;color:#60506e;margin-bottom:16px}.welcome-title em{font-style:normal;color:#9275ac}.welcome-copy{font-size:14px;line-height:1.9;color:#98869f;margin:0 0 26px}.auth-tabs{display:flex;background:#eee7f5;border-radius:15px;padding:4px;gap:4px}.auth-tabs button{flex:1;min-height:46px;background:transparent;color:#897496;border-radius:12px;font-size:14px}.auth-tabs button[aria-pressed=true]{background:#fff;color:#74588f;box-shadow:0 3px 10px #58406a0a}.auth-links{display:flex;justify-content:space-between;gap:12px;margin-top:14px}.auth-links button{background:transparent;color:#806595;padding:10px 0;min-height:44px;font-size:13px}.auth-footnote{color:#a293ad;text-align:center;font-size:11px;line-height:1.9;margin-top:22px}.login-screen .primary{box-shadow:0 5px 16px #80629c18}.password-setting{display:block;min-height:48px;padding:14px 0;text-underline-offset:4px;font-size:14px}@media(max-height:700px){.login-screen .account-root{padding-top:16px}.welcome-brand{margin-bottom:10px}.welcome-brand img{width:64px;height:64px}.account-root .welcome-title{font-size:29px}.welcome-copy{margin-bottom:18px}}

.login-screen:not(.auth-form-screen) #login{min-height:calc(100dvh - 60px);display:flex;flex-direction:column;justify-content:center}.auth-entry{margin-top:40px}.auth-back{min-width:72px;min-height:48px;border-radius:14px;background:#fff9;color:#806595;font-size:16px}.auth-form-screen .welcome-brand{margin-bottom:8px}.auth-form-screen .welcome-title{font-size:27px;margin-bottom:20px}#authTitle{font-size:20px;font-weight:500;color:#705883;margin:18px 0}.auth-form-screen .auth-tabs{margin-bottom:20px}
.login-screen #status:empty{display:none}

/* Account navigation stays at the top; brand remains centered. */
.login-screen .account-root{position:relative}.login-screen .welcome-brand{justify-content:center}.login-screen .welcome-title{text-align:center}.auth-form-screen .account-root{padding-top:84px}.auth-form-screen .auth-back{position:absolute;top:max(18px,env(safe-area-inset-top));left:20px;min-width:84px;min-height:52px;box-shadow:0 4px 14px #5941700c}#authTitle{text-align:center}.auth-form-screen .welcome-brand{margin-bottom:12px}.auth-form-screen .welcome-title{margin-bottom:24px}

.welcome-title>span{display:block;transform:translateX(-12px)}.welcome-title>em{display:block;transform:translateX(12px)}

.login-screen #login .primary,.login-screen #login .secondary{display:block;width:76%;max-width:260px;min-height:50px;margin-left:auto;margin-right:auto}
#registeredDialog{width:min(340px,calc(100vw - 40px));padding:28px 20px 22px;border:1px solid #e9e0f0;border-radius:24px;text-align:center;background:#fcfaff;color:#665273;box-shadow:0 18px 65px #45325325}
#registeredDialog::backdrop{background:#30223f38;backdrop-filter:blur(3px)}
#registeredDialog h2{font-size:19px;margin:0 0 16px;font-weight:600}
#registeredMessage{font-size:14px;line-height:1.9;color:#8b7899;margin:0 0 22px}
#registeredMessage span{display:block}
#registeredDialog .primary{display:block;width:160px;max-width:100%;min-height:50px;margin:0 auto}

.settings-screen .account-root{padding-top:0}
.settings-screen .account-nav{display:grid;grid-template-columns:48px 1fr 48px;gap:12px;align-items:center;margin:0 -24px 20px;padding:16px 16px 8px;top:0;background:#faf8fd}
.settings-screen .account-nav h1{text-align:center;font-size:18px;letter-spacing:1px;color:#625373;margin:0}
.login-screen #login .primary,.login-screen #login .secondary,.account-root form>.primary,.account-root>.danger{width:64%;max-width:220px;display:block;margin-left:auto;margin-right:auto;min-height:48px}
