html dialog.profile-picture-preview{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(80vw,720px);max-width:calc(100vw - 32px);height:max-content;max-height:calc(100dvh - 40px);padding:12px;border:1px solid var(--line,#d6e0e5);border-radius:18px;background:var(--kira-cffffff,#fff);color:var(--chat-ink,#234a59);overflow:auto;box-shadow:0 18px 70px #0005}
html dialog.profile-picture-preview:not([open]){display:none}.profile-picture-preview::backdrop{background:#101c24a6}
.profile-picture-preview-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.profile-picture-preview-head h2{min-width:0;margin:0;font-size:17px;line-height:1.4;overflow-wrap:anywhere}
.profile-picture-preview-close{flex:0 0 44px;width:44px;height:44px;border:0;border-radius:9px;background:transparent;color:inherit;font-size:28px;cursor:pointer}
.profile-picture-preview img{display:block;width:100%;height:auto;max-height:calc(100dvh - 130px);object-fit:contain;border-radius:8px;user-select:none;-webkit-user-select:none}
.profile-picture-preview img[hidden],.profile-picture-preview-status[hidden]{display:none}.profile-picture-preview-status{min-height:120px;display:grid;place-items:center;text-align:center;margin:0;padding:20px;font-size:14px}
.profile-picture-preview :focus-visible{outline:2px solid var(--teal,#006590);outline-offset:2px}
.person-picture-edit.is-preview .avatar-pencil{display:none}
button#personal-photo{width:64px;height:64px;margin:12px 0;flex-shrink:0;padding:0;border:0;background:var(--soft);cursor:zoom-in}button#personal-photo:disabled{opacity:1;cursor:default}button#personal-photo:focus-visible{outline:2px solid var(--teal,#006590);outline-offset:3px}
@media(max-width:700px){html dialog.profile-picture-preview{width:100vw;max-width:100vw;max-height:calc(100dvh - 24px);padding:8px;border-left:0;border-right:0;border-radius:12px}.profile-picture-preview-head{gap:8px;margin-bottom:8px}.profile-picture-preview-head h2{font-size:16px}.profile-picture-preview img{max-height:calc(100dvh - 100px)}}
/* Keep all one-line profile fields aligned across browser-native controls. */
#profile-dialog input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),#profile-dialog select{height:44px;min-height:44px;box-sizing:border-box}
