/* 邮箱认证、个人资料、好友申请和聊天视图 */
.account-page {max-width:790px;margin-inline:auto}
.panel.account-auth {max-width:490px;margin:clamp(1.5rem,6vh,5rem) auto;padding:clamp(1.25rem,4vw,2.8rem)}
.account-auth .page-head {margin:0 0 1.7rem}
.account-page h1,.account-auth h1,.chat-panel h1 {letter-spacing:-.055em;line-height:1.12}
.account-page h2,.member-dialog h2,.account-form h2,.chat-panel h1 {font-size:1.22rem;margin:0}
.account-form,.profile-group,.card-body {display:grid;gap:1rem}
.account-auth .account-form {gap:1.1rem}
.account-page .panel,.chat-panel {padding:clamp(1.2rem,4vw,2.1rem)}
.account-field {display:grid;gap:.42rem;min-width:0;font-size:.88rem;font-weight:600}
.account-field input,.account-field select,.account-field textarea,.chat-compose textarea {
  width:100%;min-width:0;box-sizing:border-box;border:1px solid #c9c4bd;border-radius:10px;
  background:#fffefa;color:#272521;line-height:1.45;padding:.67rem .8rem;font:inherit;font-weight:400;
}
.account-field textarea,.chat-compose textarea {resize:vertical}
.account-field :focus-visible,.chat-compose textarea:focus-visible,.avatar-button:focus-visible,.close-dialog:focus-visible {outline:3px solid #8776a9;outline-offset:2px}
.account-field input[type=range] {padding:0;accent-color:#50475a}
.account-page .actions,.member-dialog .actions,.account-links,.inbox-head,.dialog-bar,.chat-heading {display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap}
.account-links {justify-content:flex-start;margin-top:1.4rem;font-size:.86rem}
.account-auth a,.account-page a,.member-dialog a,.chat-heading a {color:inherit;text-underline-offset:.22em}
.code-row {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:.7rem}
.resend-clock {color:#655970}.resend-clock:empty,.form-status:empty {display:none}
.form-status {font-size:.89rem;margin:.15rem 0;color:#435748;overflow-wrap:anywhere}
.form-status.error {color:#9a292f}
.account-auth> a {font-size:.87rem}
.method-list {display:grid;gap:.8rem;margin-bottom:1.5rem}
.method-list a {display:flex;align-items:center;justify-content:space-between;text-decoration:none;border:1px solid #d7d2cc;padding:1rem;border-radius:12px;background:#fbfaf7}
.method-list a:hover {border-color:#93899b}
.method-list a strong,.method-list small,.inbox-copy small {display:block}
.method-list small,.inbox-copy small {color:#6d6963;font-size:.83rem;margin-top:.25rem}
.method-arrow {font-size:1.5rem}
.profile-heading,.card-identity {display:flex;align-items:center;gap:1rem}
.profile-heading p,.card-identity p {margin:.2rem 0 0}
.member-avatar {position:relative;display:inline-grid;place-items:center;width:42px;height:42px;flex:none;overflow:hidden;border-radius:50%;color:#56415f;background:#eae0eb;font-weight:650;line-height:1}
.member-avatar.large {width:68px;height:68px;font-size:1.6rem}
.member-avatar img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.account-form .profile-group {margin:0;padding:1rem 0 1.5rem;border:none;border-bottom:1px solid #dedad4;min-width:0}
.profile-group legend {padding:0;font-weight:670;font-size:1.08rem}
.profile-group p {margin:0}
.region-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem}
.check-field {display:flex;align-items:center;gap:.6rem;font-size:.9rem;cursor:pointer;min-height:30px}
.check-field input {width:18px;height:18px;accent-color:#47413e}
.photo-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem}
.photo-grid img {width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px;background:#eae5df}
.photo-grid figure {margin:0;display:flex;flex-flow:column;gap:.35rem}
.member-dialog {background:#fffefa;color:#272521;border:1px solid #ddd7d0;border-radius:20px;padding:clamp(1rem,4vw,1.8rem);width:min(450px,91vw);max-height:85dvh;overflow:auto;box-sizing:border-box}
.member-dialog::backdrop {background:rgb(35 29 37 / .44)}
.dialog-bar {margin-bottom:1.25rem}.dialog-bar h2 {font-size:1rem}
.close-dialog,.avatar-button {border:0;background:transparent;cursor:pointer;color:inherit}
.close-dialog {font-size:1.4rem;width:36px;height:36px;border-radius:50%;background:#eeeae4}
.crop-canvas {display:block;margin:0 auto 1rem;width:min(100%,320px);height:auto;border-radius:12px;touch-action:none}
.member-dialog .actions {margin-top:.65rem}
.card-identity h3,.card-body h3 {margin:0}
.profile-bio {margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.card-facts {display:grid;grid-template-columns:max-content 1fr;gap:.4rem 1rem;margin:0}
.card-facts dt {font-size:.87rem;color:#716c65}.card-facts dd {margin:0}
.inbox-section h2 {margin:0}
.inbox-rows {display:grid}.inbox-head {margin-bottom:.75rem}
.inbox-row {display:flex;align-items:center;gap:.65rem;padding:.8rem 0;border-top:1px solid #e3ded9}
.inbox-copy {flex:1;min-width:0;overflow-wrap:anywhere}.inbox-copy small {white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inbox-copy a {font-weight:650;text-decoration:none}.inbox-copy a:hover {text-decoration:underline}
.avatar-button {padding:0;display:flex;border-radius:50%}
.unread-pill {min-width:22px;border-radius:16px;background:#483a4b;color:white;text-align:center;font-size:.78rem;padding:.17rem .4rem}
.chat-panel {max-width:760px;margin:auto;display:grid;gap:1rem}
.chat-heading h1 {overflow-wrap:anywhere;min-width:0}
.chat-history {margin:0;padding:.4rem;list-style:none;min-height:150px;max-height:51dvh;overflow:auto;display:flex;flex-direction:column;gap:.85rem}
.chat-history li {max-width:86%;overflow-wrap:anywhere;display:grid;gap:.2rem;align-self:flex-start}
.chat-history .outgoing {align-self:flex-end}.chat-history .outgoing time {text-align:right}
.chat-history p {margin:0;background:#eeebe5;border-radius:14px 14px 14px 3px;padding:.65rem .9rem;white-space:pre-wrap}
.chat-history .outgoing p {background:#e6dbeb;border-radius:14px 14px 3px 14px}
.chat-history time {font-size:.72rem;color:#69645d}
.chat-compose {display:grid;grid-template-columns:1fr auto;gap:.4rem .8rem;align-items:center}
.chat-compose textarea {grid-column:1 / -1}
@media(max-width:450px){.region-grid{grid-template-columns:1fr}.inbox-row {flex-wrap:wrap}.inbox-copy{min-width:45%}.account-links{row-gap:.55rem}}
