.account-button {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 5px 6px 5px 12px;
    border: 1px solid transparent;
    border-radius: 24px;
    background: transparent;
    color: #9aa8ba;
}
.account-button:hover {
    border-color: var(--line);
    background: rgba(30, 107, 255, .08);
    color: var(--blue-soft);
}
.account-avatar, .profile-photo-large {
    display: grid;
    overflow: hidden;
    place-items: center;
    border: 1px solid rgba(101, 164, 255, .36);
    border-radius: 50%;
    background: linear-gradient(145deg, #1a2944, #0c1729);
    color: var(--blue-soft);
    font-weight: 750;
    box-shadow: 0 0 18px rgba(30, 107, 255, .12);
}
.account-avatar { width: 38px; height: 38px; font-size: 11px; }
.account-avatar img, .profile-photo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    grid-area: 1 / 1;
}
.account-avatar span, .profile-photo-large span { grid-area: 1 / 1; }
.profile-dialog { width: min(760px, 94vw); }
.profile-dialog .dialog-heading .muted { margin: 8px 0 0; }
.profile-editor { display: grid; grid-template-columns: 180px 1fr; gap: 34px; }
.photo-editor {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 12px;
    padding: 10px 0;
}
.profile-photo-large { width: 120px; height: 120px; font-size: 30px; }
.photo-picker { display: block; margin-top: 8px; cursor: pointer; }
.photo-editor small { color: var(--muted); line-height: 1.5; text-align: center; }
.text-button.danger { color: #ff7171; }
.profile-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.profile-fields label:first-child, .profile-fields label:last-child { grid-column: 1 / -1; }
.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}
@media (max-width: 760px) {
    .account-button #account-name { display: none; }
    .profile-editor { grid-template-columns: 1fr; }
    .profile-fields { grid-template-columns: 1fr; }
    .profile-fields label { grid-column: 1 / -1; }
    .photo-editor { padding-top: 0; }
}

