/* Lanmao Space 我的头像页：复用备忘录页的壳，只补头像自己的样式。 */

.memo-topbar-links {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.memo-topbar-links button {
    background: none;
    border: none;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    color: inherit;
}

.profile-card h3 {
    margin: 28px 0 10px;
    font-size: 1.05rem;
}

.avatar-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea, #764ba2);
    flex-shrink: 0;
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-note {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.6;
}

.avatar-presets,
.avatar-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.avatar-preset {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: #f5f5f7;
    font-size: 1.35rem;
    cursor: pointer;
    padding: 0;
}

.avatar-color {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
}

.avatar-preset.is-selected,
.avatar-color.is-selected {
    border-color: #111;
}

.avatar-preset:focus-visible,
.avatar-color:focus-visible,
.profile-save:focus-visible,
.profile-reset:focus-visible {
    outline: 2px solid #0071e3;
    outline-offset: 2px;
}

#avatar-upload {
    max-width: 100%;
}

.profile-status {
    min-height: 1.5em;
    color: var(--gray-600);
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.profile-save,
.profile-reset {
    border-radius: 980px;
    padding: 10px 22px;
    font-size: 0.95rem;
    cursor: pointer;
}

.profile-save {
    background: #0071e3;
    color: #fff;
    border: none;
}

.profile-reset {
    background: transparent;
    border: 1px solid #d2d2d7;
    color: var(--gray-600);
}

.profile-save:disabled,
.profile-reset:disabled {
    opacity: 0.5;
    cursor: wait;
}

@media (prefers-reduced-motion: reduce) {
    .avatar-preset,
    .avatar-color,
    .profile-save,
    .profile-reset {
        transition: none;
    }
}

/* 小屏幕下头像页的返回、导航与退出操作可换行。 */
.memo-topbar-links { flex-wrap: wrap; min-width: 0; }
.memo-topbar-links a, .memo-topbar-links button { min-height: 44px; display: inline-flex; align-items: center; }
.profile-save, .profile-reset { min-height: 44px; }
@media (max-width: 600px) {
 .memo-topbar { align-items: flex-start; }
 .memo-topbar-links { gap: 8px 14px; }
 .profile-card input { max-width: 100%; min-width: 0; font-size: 16px; }
}
