/* Personal space: type and fine rules carry the structure. */
@media(min-width:721px){
 .topbar-actions{flex:1;min-width:0;justify-content:flex-end}
 .user-message{display:-webkit-box;flex:1 1 auto;min-width:0;max-width:760px;margin:0 12px 0 0;padding:0;border:0;background:none;color:var(--muted);font:inherit;font-size:12px;font-style:normal;line-height:1.5;text-align:right;white-space:normal;overflow:hidden;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2;cursor:pointer}
 .user-message:hover{color:var(--ink)}
 .user-message:focus-visible{outline:2px solid var(--blue);outline-offset:4px}
}
.profile-button{flex:0 0 40px;width:40px;height:40px;min-width:40px;min-height:40px;padding:0;overflow:hidden;aspect-ratio:1;border-radius:50%}
#profile-avatar{display:grid;place-items:center;width:100%;height:100%;aspect-ratio:1;overflow:hidden;border-radius:50%}
#profile-avatar img{display:block;width:100%;height:100%;aspect-ratio:1;object-fit:cover;object-position:center}
.profile-dialog .dialog-card{width:min(100%,790px);padding:34px 38px 30px}
.profile-identity{display:grid;grid-template-columns:92px minmax(0,1fr);align-items:center;gap:30px;padding:18px 0 32px}
.profile-image{width:92px;height:92px;border:1px solid var(--line);border-radius:50%;overflow:hidden;display:grid;place-items:center;background:var(--bg);font-size:38px;cursor:pointer;transition:border-color .18s ease,transform .18s ease}
.profile-image:hover{border-color:var(--blue);transform:scale(1.035)}
.profile-image:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.profile-image img{display:block;width:100%;height:100%;aspect-ratio:1;object-fit:cover;object-position:center}
.profile-message-wrap{min-width:0}
.profile-message-read{display:flex;align-items:flex-start;gap:18px}
.profile-message-read[hidden],#profile-message[hidden]{display:none}
.profile-message-read p{flex:1;min-width:0;margin:0;color:var(--ink);font-size:clamp(19px,2vw,24px);line-height:1.5;font-weight:570;letter-spacing:-.025em;overflow-wrap:anywhere}
#profile-message-edit{flex:0 0 38px;width:38px;height:38px;display:grid;place-items:center;padding:8px;border:0;border-bottom:1px solid var(--line-strong);border-radius:0;background:transparent;color:var(--blue);cursor:pointer}
#profile-message-edit svg{width:19px;height:19px}
#profile-message-edit:hover{border-bottom-color:var(--blue);background:#e8edf8}
#profile-message-edit:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
#profile-message{width:100%;min-height:64px;max-height:160px;padding:4px 0 9px;resize:vertical;border:0;border-bottom:2px solid var(--blue);border-radius:0;background:transparent;color:var(--ink);font-family:inherit;font-size:22px;font-weight:570;line-height:1.5;letter-spacing:-.025em;overflow-wrap:anywhere}
#profile-message:focus{outline:0}
.profile-status{font-size:12px;color:var(--blue);margin:0 0 12px}
.profile-status:empty{display:none}
.profile-export{border-top:1px solid var(--line);padding:28px 0 0}
.profile-export header{display:flex;justify-content:space-between;align-items:end;gap:16px}
.profile-export .eyebrow{font-size:10px;font-weight:700;letter-spacing:.16em;margin:0 0 8px;color:var(--blue)}
.profile-export h3{font-size:clamp(25px,3vw,33px);line-height:1.22;letter-spacing:-.035em;margin:0}
.profile-export header>span{font:12px ui-monospace,monospace;color:var(--muted);white-space:nowrap;padding-bottom:4px}
.profile-empty{font-size:12px;color:var(--muted);margin:20px 0 0}
.profile-export-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:25px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.profile-export-options button{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;min-height:72px;padding:16px 17px 16px 4px;border:0;border-right:1px solid var(--line);border-radius:0;background:transparent;color:var(--ink);text-align:left;cursor:pointer;transition:color .18s ease,background .18s ease}
.profile-export-options button+button{padding-left:20px}
.profile-export-options button:last-child{border-right:0}
.profile-export-options b{font-size:18px;font-weight:650;letter-spacing:-.02em}
.profile-export-options span{color:var(--blue);font-size:20px;line-height:1}
.profile-export-options button:hover:not(:disabled){color:var(--blue);background:#e8edf8}
.profile-export-options button:disabled{opacity:.42;cursor:default}
.profile-export-options button:focus-visible{outline:3px solid var(--blue);outline-offset:-3px}
.profile-links{display:flex;gap:32px;align-items:center;border-top:1px solid var(--line);margin-top:32px;padding-top:18px}
.profile-links button{display:flex;align-items:center;gap:11px;min-height:40px;min-width:0;padding:2px 0;border:0;background:transparent;color:var(--text-soft);cursor:pointer;font-size:13px;text-align:left}
.profile-links button span{font-size:17px;width:20px;text-align:center}
.profile-links button i{font-style:normal;color:var(--blue);font-size:16px;margin-left:4px}
.profile-links button:hover{color:var(--blue)}
.profile-links button:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.profile-reset{border-top:1px solid var(--line);margin-top:20px;padding-top:14px}
.profile-reset button{border:0;background:transparent;color:var(--text-soft);padding:8px 0;cursor:pointer;font:inherit;font-size:13px}
.profile-reset button:hover{color:#b33128}
.reset-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px;flex-wrap:wrap}
.reset-confirm{border:1px solid #a72d25;background:#a72d25;color:#fff;padding:10px 16px;cursor:pointer;font:inherit}
.reset-confirm:focus-visible,.profile-reset button:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.note-print-actions{display:flex;justify-content:space-between;gap:12px}
.note-print-actions button{padding:10px 18px}
.note-print-dialog iframe{display:block;width:100%;height:55vh;min-height:260px;border:1px solid var(--line);background:#fff;margin-top:18px}
@media(max-width:720px){.profile-button{flex-basis:40px;width:40px;height:40px;min-width:40px;min-height:40px}}
@media(max-width:600px){
 .profile-dialog .dialog-card{padding:20px 18px 22px}
 .profile-identity{grid-template-columns:66px minmax(0,1fr);gap:18px;padding:17px 0 25px}
 .profile-image{width:66px;height:66px;font-size:29px}
 .profile-message-read{gap:8px}
 .profile-message-read p{font-size:17px;line-height:1.48}
 #profile-message-edit{flex-basis:34px;width:34px;height:34px;padding:7px}
 #profile-message{font-size:17px;min-height:52px}
 .profile-export{padding-top:23px}
 .profile-export h3{font-size:25px}
 .profile-export-options{margin-top:17px}
 .profile-export-options button{min-height:64px;padding:11px 7px 11px 2px}
 .profile-export-options button+button{padding-left:8px}
 .profile-export-options b{font-size:13px}
 .profile-export-options span{font-size:16px}
 .profile-links{gap:24px;margin-top:24px;padding-top:12px}
 .profile-links button{font-size:12px}
}
