.wk-spacemembers {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.wk-spacemembers-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: var(--wk-line);
}

.wk-spacemembers-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wk-spacemembers-back {
    cursor: pointer;
    font-size: 18px;
    color: #666;
    padding: 2px 4px;
}

body[theme-mode=dark] .wk-spacemembers-back {
    color: #aaa;
}

.wk-spacemembers-title {
    font-size: 15px;
    font-weight: 600;
}

body[theme-mode=dark] .wk-spacemembers-title {
    color: #e0e0e0;
}

.wk-spacemembers-invite-btn {
    padding: 4px 12px;
    border: none;
    border-radius: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
}

.wk-spacemembers-invite-btn:hover {
    opacity: 0.9;
}

.wk-spacemembers-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.wk-spacemembers-loading {
    text-align: center;
    padding: 20px;
    color: #999;
}

.wk-spacemembers-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
}

.wk-spacemembers-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

body[theme-mode=dark] .wk-spacemembers-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.wk-spacemembers-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wk-spacemembers-item-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.wk-spacemembers-item-info {
    display: flex;
    flex-direction: column;
}

.wk-spacemembers-item-name {
    font-size: 14px;
    font-weight: 500;
}

body[theme-mode=dark] .wk-spacemembers-item-name {
    color: #e0e0e0;
}

.wk-spacemembers-item-role {
    font-size: 11px;
}

.wk-spacemembers-item-actions {
    display: flex;
    gap: 6px;
}

.wk-spacemembers-action-btn {
    padding: 3px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: transparent;
    font-size: 12px;
    cursor: pointer;
    color: #666;
}

body[theme-mode=dark] .wk-spacemembers-action-btn {
    border-color: #555;
    color: #aaa;
}

.wk-spacemembers-action-btn:hover {
    background-color: #f5f5f5;
}

body[theme-mode=dark] .wk-spacemembers-action-btn:hover {
    background-color: #3a3a3a;
}

.wk-spacemembers-action-danger {
    color: #e74c3c;
    border-color: #e74c3c;
}

.wk-spacemembers-action-danger:hover {
    background-color: #fef0ef;
}

body[theme-mode=dark] .wk-spacemembers-action-danger:hover {
    background-color: rgba(231, 76, 60, 0.15);
}
