.profile-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
}

.profile-modal.is-open {
    display: flex;
}

.profile-card {
    width: 300px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.profile-title {
    margin-bottom: 16px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.profile-avatar-section {
    margin-bottom: 16px;
    text-align: center;
}

.profile-avatar-trigger {
    position: relative;
    width: 64px;
    margin: 0 auto 8px;
    cursor: pointer;
}

.profile-avatar-preview {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 700;
    background-size: cover;
    background-position: center;
}

.profile-avatar-hover {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s;
    background: rgba(0,0,0,0.45);
}

.profile-avatar-trigger:hover .profile-avatar-hover {
    opacity: 1;
}

.profile-avatar-hover span {
    color: #fff;
}

.profile-file-input {
    display: none;
}

.profile-help {
    color: var(--text-faint);
    font-size: 0.68rem;
}

.profile-label {
    margin-bottom: 6px;
    color: var(--text-hint);
    font-size: 0.75rem;
}

.profile-label.color-label {
    margin-bottom: 8px;
}

.profile-input {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 16px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    background: var(--border-subtle);
    color: var(--text-primary);
    font-size: 0.88rem;
}

.profile-color-picker {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    margin-bottom: 20px;
}

.profile-color-dot {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex-shrink: 0;
    cursor: pointer;
    outline: none;
    outline-offset: 2px;
}

.profile-color-dot.active {
    outline: 2px solid var(--text-primary);
}

.profile-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.profile-cancel-btn,
.profile-save-btn {
    padding: 7px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.82rem;
}

.profile-cancel-btn {
    border: 1px solid var(--border);
    background: var(--border-subtle);
    color: var(--text-tertiary);
}

.profile-save-btn {
    border: none;
    background: var(--text-primary);
    color: var(--bg);
    font-weight: 500;
}

.profile-save-btn:disabled {
    opacity: 0.6;
    cursor: default;
}
